@ckeditor/ckeditor5-collaboration-core 41.3.1 → 41.4.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 (200) hide show
  1. package/dist/index-content.css +332 -0
  2. package/dist/index-editor.css +312 -0
  3. package/dist/index.css +935 -0
  4. package/dist/index.js +23 -0
  5. package/dist/translations/af.d.ts +8 -0
  6. package/dist/translations/af.js +23 -0
  7. package/dist/translations/af.umd.js +23 -0
  8. package/dist/translations/ar.d.ts +8 -0
  9. package/dist/translations/ar.js +23 -0
  10. package/dist/translations/ar.umd.js +23 -0
  11. package/dist/translations/az.d.ts +8 -0
  12. package/dist/translations/az.js +23 -0
  13. package/dist/translations/az.umd.js +23 -0
  14. package/dist/translations/bg.d.ts +8 -0
  15. package/dist/translations/bg.js +23 -0
  16. package/dist/translations/bg.umd.js +23 -0
  17. package/dist/translations/bn.d.ts +8 -0
  18. package/dist/translations/bn.js +23 -0
  19. package/dist/translations/bn.umd.js +23 -0
  20. package/dist/translations/bs.d.ts +8 -0
  21. package/dist/translations/bs.js +23 -0
  22. package/dist/translations/bs.umd.js +23 -0
  23. package/dist/translations/ca.d.ts +8 -0
  24. package/dist/translations/ca.js +23 -0
  25. package/dist/translations/ca.umd.js +23 -0
  26. package/dist/translations/cs.d.ts +8 -0
  27. package/dist/translations/cs.js +23 -0
  28. package/dist/translations/cs.umd.js +23 -0
  29. package/dist/translations/da.d.ts +8 -0
  30. package/dist/translations/da.js +23 -0
  31. package/dist/translations/da.umd.js +23 -0
  32. package/dist/translations/de-ch.d.ts +8 -0
  33. package/dist/translations/de-ch.js +23 -0
  34. package/dist/translations/de-ch.umd.js +23 -0
  35. package/dist/translations/de.d.ts +8 -0
  36. package/dist/translations/de.js +23 -0
  37. package/dist/translations/de.umd.js +23 -0
  38. package/dist/translations/el.d.ts +8 -0
  39. package/dist/translations/el.js +23 -0
  40. package/dist/translations/el.umd.js +23 -0
  41. package/dist/translations/en-au.d.ts +8 -0
  42. package/dist/translations/en-au.js +23 -0
  43. package/dist/translations/en-au.umd.js +23 -0
  44. package/dist/translations/en.d.ts +8 -0
  45. package/dist/translations/en.js +23 -0
  46. package/dist/translations/en.umd.js +23 -0
  47. package/dist/translations/es-co.d.ts +8 -0
  48. package/dist/translations/es-co.js +23 -0
  49. package/dist/translations/es-co.umd.js +23 -0
  50. package/dist/translations/es.d.ts +8 -0
  51. package/dist/translations/es.js +23 -0
  52. package/dist/translations/es.umd.js +23 -0
  53. package/dist/translations/et.d.ts +8 -0
  54. package/dist/translations/et.js +23 -0
  55. package/dist/translations/et.umd.js +23 -0
  56. package/dist/translations/fa.d.ts +8 -0
  57. package/dist/translations/fa.js +23 -0
  58. package/dist/translations/fa.umd.js +23 -0
  59. package/dist/translations/fi.d.ts +8 -0
  60. package/dist/translations/fi.js +23 -0
  61. package/dist/translations/fi.umd.js +23 -0
  62. package/dist/translations/fr.d.ts +8 -0
  63. package/dist/translations/fr.js +23 -0
  64. package/dist/translations/fr.umd.js +23 -0
  65. package/dist/translations/gl.d.ts +8 -0
  66. package/dist/translations/gl.js +23 -0
  67. package/dist/translations/gl.umd.js +23 -0
  68. package/dist/translations/he.d.ts +8 -0
  69. package/dist/translations/he.js +23 -0
  70. package/dist/translations/he.umd.js +23 -0
  71. package/dist/translations/hi.d.ts +8 -0
  72. package/dist/translations/hi.js +23 -0
  73. package/dist/translations/hi.umd.js +23 -0
  74. package/dist/translations/hr.d.ts +8 -0
  75. package/dist/translations/hr.js +23 -0
  76. package/dist/translations/hr.umd.js +23 -0
  77. package/dist/translations/hu.d.ts +8 -0
  78. package/dist/translations/hu.js +23 -0
  79. package/dist/translations/hu.umd.js +23 -0
  80. package/dist/translations/id.d.ts +8 -0
  81. package/dist/translations/id.js +23 -0
  82. package/dist/translations/id.umd.js +23 -0
  83. package/dist/translations/it.d.ts +8 -0
  84. package/dist/translations/it.js +23 -0
  85. package/dist/translations/it.umd.js +23 -0
  86. package/dist/translations/ja.d.ts +8 -0
  87. package/dist/translations/ja.js +23 -0
  88. package/dist/translations/ja.umd.js +23 -0
  89. package/dist/translations/jv.d.ts +8 -0
  90. package/dist/translations/jv.js +23 -0
  91. package/dist/translations/jv.umd.js +23 -0
  92. package/dist/translations/ko.d.ts +8 -0
  93. package/dist/translations/ko.js +23 -0
  94. package/dist/translations/ko.umd.js +23 -0
  95. package/dist/translations/lt.d.ts +8 -0
  96. package/dist/translations/lt.js +23 -0
  97. package/dist/translations/lt.umd.js +23 -0
  98. package/dist/translations/lv.d.ts +8 -0
  99. package/dist/translations/lv.js +23 -0
  100. package/dist/translations/lv.umd.js +23 -0
  101. package/dist/translations/ms.d.ts +8 -0
  102. package/dist/translations/ms.js +23 -0
  103. package/dist/translations/ms.umd.js +23 -0
  104. package/dist/translations/nl.d.ts +8 -0
  105. package/dist/translations/nl.js +23 -0
  106. package/dist/translations/nl.umd.js +23 -0
  107. package/dist/translations/no.d.ts +8 -0
  108. package/dist/translations/no.js +23 -0
  109. package/dist/translations/no.umd.js +23 -0
  110. package/dist/translations/pl.d.ts +8 -0
  111. package/dist/translations/pl.js +23 -0
  112. package/dist/translations/pl.umd.js +23 -0
  113. package/dist/translations/pt-br.d.ts +8 -0
  114. package/dist/translations/pt-br.js +23 -0
  115. package/dist/translations/pt-br.umd.js +23 -0
  116. package/dist/translations/pt.d.ts +8 -0
  117. package/dist/translations/pt.js +23 -0
  118. package/dist/translations/pt.umd.js +23 -0
  119. package/dist/translations/ro.d.ts +8 -0
  120. package/dist/translations/ro.js +23 -0
  121. package/dist/translations/ro.umd.js +23 -0
  122. package/dist/translations/ru.d.ts +8 -0
  123. package/dist/translations/ru.js +23 -0
  124. package/dist/translations/ru.umd.js +23 -0
  125. package/dist/translations/sk.d.ts +8 -0
  126. package/dist/translations/sk.js +23 -0
  127. package/dist/translations/sk.umd.js +23 -0
  128. package/dist/translations/sr-latn.d.ts +8 -0
  129. package/dist/translations/sr-latn.js +23 -0
  130. package/dist/translations/sr-latn.umd.js +23 -0
  131. package/dist/translations/sr.d.ts +8 -0
  132. package/dist/translations/sr.js +23 -0
  133. package/dist/translations/sr.umd.js +23 -0
  134. package/dist/translations/sv.d.ts +8 -0
  135. package/dist/translations/sv.js +23 -0
  136. package/dist/translations/sv.umd.js +23 -0
  137. package/dist/translations/th.d.ts +8 -0
  138. package/dist/translations/th.js +23 -0
  139. package/dist/translations/th.umd.js +23 -0
  140. package/dist/translations/tk.d.ts +8 -0
  141. package/dist/translations/tk.js +23 -0
  142. package/dist/translations/tk.umd.js +23 -0
  143. package/dist/translations/tr.d.ts +8 -0
  144. package/dist/translations/tr.js +23 -0
  145. package/dist/translations/tr.umd.js +23 -0
  146. package/dist/translations/tt.d.ts +8 -0
  147. package/dist/translations/tt.js +23 -0
  148. package/dist/translations/tt.umd.js +23 -0
  149. package/dist/translations/ug.d.ts +8 -0
  150. package/dist/translations/ug.js +23 -0
  151. package/dist/translations/ug.umd.js +23 -0
  152. package/dist/translations/uk.d.ts +8 -0
  153. package/dist/translations/uk.js +23 -0
  154. package/dist/translations/uk.umd.js +23 -0
  155. package/dist/translations/ur.d.ts +8 -0
  156. package/dist/translations/ur.js +23 -0
  157. package/dist/translations/ur.umd.js +23 -0
  158. package/dist/translations/vi.d.ts +8 -0
  159. package/dist/translations/vi.js +23 -0
  160. package/dist/translations/vi.umd.js +23 -0
  161. package/dist/translations/zh-cn.d.ts +8 -0
  162. package/dist/translations/zh-cn.js +23 -0
  163. package/dist/translations/zh-cn.umd.js +23 -0
  164. package/dist/translations/zh.d.ts +8 -0
  165. package/dist/translations/zh.js +23 -0
  166. package/dist/translations/zh.umd.js +23 -0
  167. package/dist/types/augmentation.d.ts +42 -0
  168. package/dist/types/collaborationhistory.d.ts +25 -0
  169. package/dist/types/collaborationoperation.d.ts +32 -0
  170. package/dist/types/config.d.ts +106 -0
  171. package/dist/types/index.d.ts +23 -0
  172. package/dist/types/permissions.d.ts +50 -0
  173. package/dist/types/suggestionstyles.d.ts +16 -0
  174. package/dist/types/users/view/userview.d.ts +20 -0
  175. package/dist/types/users.d.ts +169 -0
  176. package/dist/types/utils/common-translations.d.ts +13 -0
  177. package/dist/types/utils/confirmmixin.d.ts +24 -0
  178. package/dist/types/utils/confirmview.d.ts +17 -0
  179. package/dist/types/utils/getdatetimeformatter.d.ts +33 -0
  180. package/dist/types/utils/getmarkerdomelement.d.ts +26 -0
  181. package/dist/types/utils/hashobject.d.ts +12 -0
  182. package/dist/types/utils/sanitizeEditorConfig.d.ts +19 -0
  183. package/dist/types/utils/surroundingmarkersdetector.d.ts +20 -0
  184. package/dist/types/utils/trim-html.d.ts +20 -0
  185. package/package.json +3 -2
  186. package/src/index.d.ts +2 -2
  187. package/src/index.js +1 -1
  188. package/src/permissions.js +1 -1
  189. package/src/suggestionstyles.js +1 -1
  190. package/src/users/view/userview.js +1 -1
  191. package/src/users.js +1 -1
  192. package/src/utils/common-translations.js +1 -1
  193. package/src/utils/confirmmixin.js +1 -1
  194. package/src/utils/confirmview.js +1 -1
  195. package/src/utils/getdatetimeformatter.js +1 -1
  196. package/src/utils/getmarkerdomelement.js +1 -1
  197. package/src/utils/hashobject.js +1 -1
  198. package/src/utils/sanitizeEditorConfig.js +1 -1
  199. package/src/utils/surroundingmarkersdetector.js +1 -1
  200. package/src/utils/trim-html.js +1 -1
@@ -0,0 +1,169 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module collaboration-core/users
11
+ * @publicApi
12
+ */
13
+ import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core.js';
14
+ import { Collection } from 'ckeditor5/src/utils.js';
15
+ import Permissions from './permissions.js';
16
+ import '../theme/usercolors.css';
17
+ /**
18
+ * The `Users` plugin provides the basic interface for setting and getting users involved in the document editing process.
19
+ */
20
+ export default class Users extends ContextPlugin {
21
+ licenseKey: string;
22
+ /**
23
+ * Holds all {@link module:collaboration-core/users~User users} added to the editor.
24
+ *
25
+ * Note, that the {@link module:collaboration-core/users~User#isAnonymous anonymous user} is always present in the editor.
26
+ * You may want to filter it out when processing the users lists.
27
+ *
28
+ * ```ts
29
+ * for ( const user of editor.plugins.get( 'Users' ).users ) {
30
+ * if ( !user.isAnonymous ) {
31
+ * console.log( user.name );
32
+ * }
33
+ * }
34
+ * ```
35
+ *
36
+ * Use {@link #addUser} to add a new user.
37
+ */
38
+ readonly users: Collection<User>;
39
+ /**
40
+ * @inheritDoc
41
+ */
42
+ static get pluginName(): "Users";
43
+ /**
44
+ * @inheritDoc
45
+ */
46
+ static get requires(): readonly [typeof Permissions];
47
+ /**
48
+ * @inheritDoc
49
+ */
50
+ constructor(context: Context | Editor);
51
+ /**
52
+ * @inheritDoc
53
+ */
54
+ init(): void;
55
+ /**
56
+ * A reference to the local user or `null` if it has not been set.
57
+ */
58
+ get me(): User | null;
59
+ /**
60
+ * Adds a new user to the list of users.
61
+ */
62
+ addUser({ id, name, ...additionalData }: Partial<UserData>): User;
63
+ /**
64
+ * Returns the user with a given ID.
65
+ */
66
+ getUser(id: string): User | null;
67
+ /**
68
+ * Sets an {@link module:collaboration-core/users~User#isAnonymous anonymous user} as {@link #me the local user}.
69
+ *
70
+ * The local user ID will be set to the value of `config.users.anonymousUserId` property. All actions performed by the local user
71
+ * will be contributed to the anonymous user.
72
+ */
73
+ useAnonymousUser(): void;
74
+ /**
75
+ * Sets the user with the given ID as the local user ({@link #me}).
76
+ *
77
+ * The local user can be only set once (this includes setting anonymous as the local user).
78
+ */
79
+ defineMe(userId: string): void;
80
+ /**
81
+ * Returns the author of the operation. It returns {@link #me} by default if it is not overwritten.
82
+ */
83
+ getOperationAuthor(): User | null;
84
+ /**
85
+ * @inheritDoc
86
+ */
87
+ destroy(): void;
88
+ }
89
+ /**
90
+ * The representation of a single user that is involved in document editing.
91
+ */
92
+ export declare class User {
93
+ /**
94
+ * The ID of the user.
95
+ */
96
+ id: string;
97
+ /**
98
+ * CSS colors classes object for the user.
99
+ */
100
+ color: Color;
101
+ /**
102
+ * The name of the user.
103
+ */
104
+ name: string;
105
+ /**
106
+ * The URL pointing to the image with the avatar of the user.
107
+ *
108
+ * If avatar is not set, default avatar is used.
109
+ */
110
+ avatar: string | undefined;
111
+ /**
112
+ * @param data User data.
113
+ * @param data.id The ID of the user.
114
+ * @param data.color A helper object to generate CSS classes with the user color in the UI.
115
+ * @param data.name The name of the user.
116
+ * @param data.avatar The URL to the user avatar.
117
+ */
118
+ constructor(data: UserData);
119
+ /**
120
+ * Is `true` for the anonymous user, `false` otherwise.
121
+ *
122
+ * The anonymous user is used when there is no defined user for given resource.
123
+ *
124
+ * The situations when the anonymous user is used will depend on your application. For example, it can be used when the editor can be
125
+ * used by "guest" users of your application, or when the original user's account was removed.
126
+ */
127
+ get isAnonymous(): boolean;
128
+ /**
129
+ * Is `true` for the {@link module:collaboration-core/users~Users#me local user}.
130
+ */
131
+ get isMe(): boolean;
132
+ /**
133
+ * The initials of the user.
134
+ *
135
+ * The initials are composed from the user name's first and last words:
136
+ *
137
+ * * for `Joe Doe`, the initials are `JD`,
138
+ * * for `Anonymous` the initials are `A`,
139
+ * * for `Katie John-Newman` the initials are `KJ`,
140
+ * * for `Adam Daniel Smith` the initials are `AS`.
141
+ */
142
+ get initials(): string;
143
+ }
144
+ /**
145
+ * The color object used to generate specified CSS classes with an individual color number assigned to the user.
146
+ */
147
+ declare class Color {
148
+ constructor(colorId: number);
149
+ /**
150
+ * Returns CSS class for user avatar background color.
151
+ */
152
+ getBackgroundColorClass(): string;
153
+ /**
154
+ * Returns CSS class for user selection highlight (the selected range).
155
+ */
156
+ getSelectionClass(): string;
157
+ /**
158
+ * Returns CSS class for user caret position element (the pipe).
159
+ */
160
+ getMarkerClass(): string;
161
+ }
162
+ type UserData = {
163
+ id: string;
164
+ color: Color;
165
+ name: string;
166
+ avatar?: string;
167
+ _isAnonymous?: boolean;
168
+ };
169
+ export {};
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module collaboration-core/utils/common-translations
11
+ */
12
+ import type { Locale } from 'ckeditor5/src/utils.js';
13
+ export declare function getTranslation(locale: Locale, id: string): string;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module comments/comments/ui/view/confirmmixin
11
+ */
12
+ import type { View } from 'ckeditor5/src/ui.js';
13
+ import type { Locale, Mixed } from 'ckeditor5/src/utils.js';
14
+ /**
15
+ * Adds interface for showing confirmation view in the specific for `CommentThreadView` and `CommentView` structure
16
+ * Confirm is always set to the `content` collection at the last position.
17
+ */
18
+ export default function ConfirmMixin<Base extends new (...args: Array<any>) => View>(base: Base): Mixed<Base, ConfirmApi>;
19
+ export interface ConfirmApi {
20
+ isConfirm: boolean;
21
+ locale: Locale;
22
+ showConfirm(message: string, element: Element): Promise<unknown>;
23
+ cancelConfirm(): void;
24
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module comments/comments/ui/view/confirmview
11
+ */
12
+ import { View } from 'ckeditor5/src/ui.js';
13
+ import type { Locale } from 'ckeditor5/src/utils.js';
14
+ export default class ConfirmView extends View {
15
+ message: string;
16
+ constructor(locale: Locale);
17
+ }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ import type { LocaleConfig } from '../config.js';
10
+ /**
11
+ * Returns a function that formats the date to the set format.
12
+ *
13
+ * The default formatting can be changed by setting a custom formatting function to `config.locale.dateTimeFormat`.
14
+ *
15
+ * ```ts
16
+ * import format from 'date-fns/format';
17
+ *
18
+ * ClassicEditor
19
+ * .create( document.querySelector( '#editor' ), {
20
+ * toolbar: {
21
+ * items: [ 'bold', 'italic', '|', 'comment' ]
22
+ * },
23
+ * sidebar: {
24
+ * container: document.querySelector( '#sidebar' )
25
+ * },
26
+ * locale: {
27
+ * dateTimeFormat: date => format( date, 'dd/MM/yyyy' )
28
+ * }
29
+ * } )
30
+ * .catch( error => console.error( error ) );
31
+ * ```
32
+ */
33
+ export default function getDateTimeFormatter(localeConfig?: LocaleConfig): (date: Date | string) => string;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ import type { EditingController, Marker } from 'ckeditor5/src/engine.js';
10
+ /**
11
+ * Returns a first DOM element mapped with the marker.
12
+ *
13
+ * @param editing Editing controller instance.
14
+ * @param marker Marker instance.
15
+ */
16
+ export default function getMarkerDomElement(editing: EditingController, marker: Marker): HTMLElement | null;
17
+ /**
18
+ * Returns all DOM elements mapped with all given markers. DOM elements are sorted by their client rects in top-most, left-most order.
19
+ * Returns `null` if `markers` is empty or there are no DOM elements bound with the markers.
20
+ *
21
+ * Note, that markers should not intersect.
22
+ *
23
+ * @param editing Editing controller instance.
24
+ * @param markers Markers instances.
25
+ */
26
+ export declare function getAllMarkersDomElementsSorted(editing: EditingController, markers: Array<Marker>): Array<HTMLElement> | null;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module track-changes/utils/hashobject
11
+ */
12
+ export default function hashObject(obj: Record<string, unknown>): string;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module collaboration-core/utils/common-translations
11
+ */
12
+ import type { Editor, EditorConfig } from 'ckeditor5/src/core.js';
13
+ /**
14
+ * A function that prepares config for internal editors removing all unnecessary plugins like RTC.
15
+ *
16
+ * @param editor The instance of the source editor.
17
+ * @param extraBlackListedPlugins Additional list of plugins that should not be added to the config.
18
+ */
19
+ export default function sanitizeEditorConfig(editor: Editor, extraBlackListedPlugins?: Array<string>): EditorConfig;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module collaboration-core/utils/surroundingmarkersdetector
11
+ */
12
+ import type { Marker, Model } from 'ckeditor5/src/engine.js';
13
+ /**
14
+ * A utility that responds to range changes in the document selection and detects which markers' ranges
15
+ * touch or contain (surround) the document selection's focus.
16
+ */
17
+ export default function surroundingMarkersDetector(model: Model, onMarkersChange: (changedMarkers: {
18
+ left: Array<Marker>;
19
+ entered: Array<Marker>;
20
+ }) => void): void;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * Trims text inside a html tags and takes care of all closing tags.
11
+ *
12
+ * @param html
13
+ * @param options
14
+ * @param limit Limit of the characters.
15
+ * @param suffix
16
+ */
17
+ export default function trimHtml(html: string, { limit, suffix }: {
18
+ limit: number;
19
+ suffix?: string;
20
+ }): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-collaboration-core",
3
- "version": "41.3.1",
3
+ "version": "41.4.0",
4
4
  "description": "Base utilities used by CKEditor 5 collaboration features to support multiple users working together in a rich text editor.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -32,10 +32,11 @@
32
32
  "type": "module",
33
33
  "main": "src/index.js",
34
34
  "dependencies": {
35
- "ckeditor5": "41.3.1",
35
+ "ckeditor5": "41.4.0",
36
36
  "date-fns": "2.30.0"
37
37
  },
38
38
  "files": [
39
+ "dist",
39
40
  "lang",
40
41
  "src/**/*.js",
41
42
  "src/**/*.d.ts",
package/src/index.d.ts CHANGED
@@ -12,8 +12,8 @@ export { default as ConfirmMixin } from './utils/confirmmixin.js';
12
12
  export { default as hashObject } from './utils/hashobject.js';
13
13
  export { default as sanitizeEditorConfig } from './utils/sanitizeEditorConfig.js';
14
14
  export { default as surroundingMarkersDetector } from './utils/surroundingmarkersdetector.js';
15
- export { default as CollaborationOperation, InsertCollaborationOperation, SplitCollaborationOperation, MarkerCollaborationOperation, MoveCollaborationOperation, MergeCollaborationOperation, RootCollaborationOperation, RootAttributeCollaborationOperation } from './collaborationoperation.js';
16
- export { default as CollaborationHistory } from './collaborationhistory.js';
15
+ export type { default as CollaborationOperation, InsertCollaborationOperation, SplitCollaborationOperation, MarkerCollaborationOperation, MoveCollaborationOperation, MergeCollaborationOperation, RootCollaborationOperation, RootAttributeCollaborationOperation } from './collaborationoperation.js';
16
+ export type { default as CollaborationHistory } from './collaborationhistory.js';
17
17
  export type { LocaleConfig, RealTimeCollaborationConfig } from './config.js';
18
18
  export * from './suggestionstyles.js';
19
19
  import './augmentation.js';
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x65ca51,_0x50ee03){var _0x67139e=_0x43a6,_0x7790d3=_0x65ca51();while(!![]){try{var _0x1960b5=-parseInt(_0x67139e(0x10f))/0x1*(parseInt(_0x67139e(0x110))/0x2)+-parseInt(_0x67139e(0x114))/0x3*(-parseInt(_0x67139e(0x113))/0x4)+-parseInt(_0x67139e(0x118))/0x5+-parseInt(_0x67139e(0x11a))/0x6*(-parseInt(_0x67139e(0x111))/0x7)+-parseInt(_0x67139e(0x117))/0x8*(parseInt(_0x67139e(0x115))/0x9)+parseInt(_0x67139e(0x119))/0xa*(parseInt(_0x67139e(0x116))/0xb)+parseInt(_0x67139e(0x112))/0xc;if(_0x1960b5===_0x50ee03)break;else _0x7790d3['push'](_0x7790d3['shift']());}catch(_0x130d62){_0x7790d3['push'](_0x7790d3['shift']());}}}(_0x5d6c,0x46fe1));export{default as Permissions}from'./permissions.js';function _0x43a6(_0x2f27e4,_0x5593d4){var _0x5d6cd6=_0x5d6c();return _0x43a6=function(_0x43a600,_0x5ab613){_0x43a600=_0x43a600-0x10f;var _0x84591d=_0x5d6cd6[_0x43a600];return _0x84591d;},_0x43a6(_0x2f27e4,_0x5593d4);}export{default as Users}from'./users.js';export{default as UserView}from'./users/view/userview.js';export{default as getDateTimeFormatter}from'./utils/getdatetimeformatter.js';export{default as getMarkerDomElement,getAllMarkersDomElementsSorted}from'./utils/getmarkerdomelement.js';export{default as trimHtml}from'./utils/trim-html.js';export{default as ConfirmMixin}from'./utils/confirmmixin.js';export{default as hashObject}from'./utils/hashobject.js';export{default as sanitizeEditorConfig}from'./utils/sanitizeEditorConfig.js';function _0x5d6c(){var _0x1ddd95=['573584PZEOyo','1776FtNfyX','1568565wCmJrd','40yRetiz','1672566mZFhGE','98771DWjuIS','6ylMVUK','7fEPNfQ','362184qeCkKh','47364dHiQtM','138dojZep','6543TLnZvA'];_0x5d6c=function(){return _0x1ddd95;};return _0x5d6c();}export{default as surroundingMarkersDetector}from'./utils/surroundingmarkersdetector.js';export*from'./suggestionstyles.js';import'./augmentation.js';
23
+ function _0x132c(_0x35f992,_0x27d066){var _0xebcda8=_0xebcd();return _0x132c=function(_0x132cce,_0x16f70e){_0x132cce=_0x132cce-0x19a;var _0x21b3cf=_0xebcda8[_0x132cce];return _0x21b3cf;},_0x132c(_0x35f992,_0x27d066);}(function(_0x250bef,_0x1e9561){var _0x11998c=_0x132c,_0x4f41c5=_0x250bef();while(!![]){try{var _0xf6ee02=-parseInt(_0x11998c(0x19b))/0x1*(-parseInt(_0x11998c(0x1a2))/0x2)+-parseInt(_0x11998c(0x19f))/0x3+parseInt(_0x11998c(0x1a5))/0x4*(parseInt(_0x11998c(0x19d))/0x5)+-parseInt(_0x11998c(0x1a0))/0x6*(parseInt(_0x11998c(0x19c))/0x7)+-parseInt(_0x11998c(0x19a))/0x8*(parseInt(_0x11998c(0x1a1))/0x9)+-parseInt(_0x11998c(0x1a3))/0xa*(-parseInt(_0x11998c(0x1a4))/0xb)+-parseInt(_0x11998c(0x19e))/0xc;if(_0xf6ee02===_0x1e9561)break;else _0x4f41c5['push'](_0x4f41c5['shift']());}catch(_0x16b45b){_0x4f41c5['push'](_0x4f41c5['shift']());}}}(_0xebcd,0x58f82));function _0xebcd(){var _0x35fdff=['989785VXYQzi','686256xWDYmD','1473330LehcBp','6oTJUmA','125991kBdxck','2FfQiGE','492490HTrPit','154HglhcF','12sjNYmO','56tmdWnl','388724jiwkiI','4629604YkwCxu'];_0xebcd=function(){return _0x35fdff;};return _0xebcd();}export{default as Permissions}from'./permissions.js';export{default as Users}from'./users.js';export{default as UserView}from'./users/view/userview.js';export{default as getDateTimeFormatter}from'./utils/getdatetimeformatter.js';export{default as getMarkerDomElement,getAllMarkersDomElementsSorted}from'./utils/getmarkerdomelement.js';export{default as trimHtml}from'./utils/trim-html.js';export{default as ConfirmMixin}from'./utils/confirmmixin.js';export{default as hashObject}from'./utils/hashobject.js';export{default as sanitizeEditorConfig}from'./utils/sanitizeEditorConfig.js';export{default as surroundingMarkersDetector}from'./utils/surroundingmarkersdetector.js';export*from'./suggestionstyles.js';import'./augmentation.js';
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x130542=_0x270f;function _0x270f(_0x31928c,_0x305f3e){const _0x4daf81=_0x4daf();return _0x270f=function(_0x270f8e,_0x460d48){_0x270f8e=_0x270f8e-0x76;let _0x55fb57=_0x4daf81[_0x270f8e];return _0x55fb57;},_0x270f(_0x31928c,_0x305f3e);}(function(_0x1b2f97,_0x584af6){const _0x1fcdc0=_0x270f,_0x946e17=_0x1b2f97();while(!![]){try{const _0x41d0e8=parseInt(_0x1fcdc0(0x8a))/0x1*(-parseInt(_0x1fcdc0(0x84))/0x2)+parseInt(_0x1fcdc0(0x98))/0x3*(-parseInt(_0x1fcdc0(0x96))/0x4)+-parseInt(_0x1fcdc0(0x8c))/0x5+-parseInt(_0x1fcdc0(0x80))/0x6+parseInt(_0x1fcdc0(0x76))/0x7+parseInt(_0x1fcdc0(0x78))/0x8+parseInt(_0x1fcdc0(0x87))/0x9;if(_0x41d0e8===_0x584af6)break;else _0x946e17['push'](_0x946e17['shift']());}catch(_0xe43881){_0x946e17['push'](_0x946e17['shift']());}}}(_0x4daf,0x5a9bf));import{ContextPlugin as _0xed33e6,Editor as _0x54550a}from'ckeditor5/src/core.js';import{CKEditorError as _0x48e986}from'ckeditor5/src/utils.js';function _0x4daf(){const _0x383108=['1272OWZRcE','clearForceDisabled','find','4592679SNgmRH','forceDisabled','2032848JMUdiV','comment:admin','get','enableReadOnlyMode','isEnabled','collaboration.channelId','permissions-set-permissions-invalid-channel-id','comment:write','1248594xVfcGF','disableReadOnlyMode','addCommentThread','plugins','260214hiHgFL','Permissions','no-permissions','5364441bmXlnv','editors','CommentsRepository','2DXXduD','commands','94660KnCbFS','document:write','noPermissions','context','config','pluginName','CommentsOnly','has','setPermissions','comment:modify_all','6112dHRBDL','includes'];_0x4daf=function(){return _0x383108;};return _0x4daf();}export default class n extends _0xed33e6{static get[_0x130542(0x91)](){const _0x2f731e=_0x130542;return _0x2f731e(0x85);}[_0x130542(0x94)](_0x19b8c7,_0x55bd77){const _0x5db274=_0x130542;let _0x24c84e;if(_0x55bd77||(_0x55bd77=this[_0x5db274(0x8f)][_0x5db274(0x90)][_0x5db274(0x7a)](_0x5db274(0x7d))),this[_0x5db274(0x8f)][_0x5db274(0x90)][_0x5db274(0x7a)](_0x5db274(0x7d))==_0x55bd77?_0x24c84e=this[_0x5db274(0x8f)]:_0x5db274(0x88)in this[_0x5db274(0x8f)]&&this[_0x5db274(0x8f)][_0x5db274(0x88)]&&(_0x24c84e=this[_0x5db274(0x8f)][_0x5db274(0x88)][_0x5db274(0x9a)](_0x2e917b=>_0x2e917b[_0x5db274(0x90)][_0x5db274(0x7a)](_0x5db274(0x7d))==_0x55bd77)),!_0x24c84e)throw new _0x48e986(_0x5db274(0x7e),null);const _0x9c6b70=_0x24c84e[_0x5db274(0x83)],_0x228ea5=_0x9c6b70[_0x5db274(0x93)](_0x5db274(0x89))?_0x9c6b70[_0x5db274(0x7a)](_0x5db274(0x89)):void 0x0,_0x441d7d=_0x9c6b70[_0x5db274(0x93)](_0x5db274(0x92))&&_0x9c6b70[_0x5db274(0x7a)](_0x5db274(0x92)),_0x5a08f5=_0x19b8c7[_0x5db274(0x97)](_0x5db274(0x8d)),_0x5363f6=_0x19b8c7[_0x5db274(0x97)](_0x5db274(0x95)),_0x599ac5=_0x19b8c7[_0x5db274(0x97)](_0x5db274(0x79)),_0x1aebd0=_0x19b8c7[_0x5db274(0x97)](_0x5db274(0x7f)),_0x334e40=_0x1aebd0||_0x599ac5,_0x16bbc6=_0x334e40||_0x5363f6,_0x1459f0=_0x5a08f5||_0x334e40;(_0x441d7d&&(_0x441d7d[_0x5db274(0x7c)]=!_0x5a08f5&&_0x16bbc6),_0x24c84e instanceof _0x54550a)&&(!(_0x5a08f5||_0x16bbc6&&_0x228ea5)?_0x24c84e[_0x5db274(0x7b)](_0x5db274(0x86)):_0x24c84e[_0x5db274(0x81)](_0x5db274(0x86)));if(_0x228ea5){_0x228ea5[_0x5db274(0x94)]({'admin':_0x599ac5,'modifyAll':_0x5363f6,'write':_0x1aebd0,'resolve':_0x1459f0},_0x55bd77);const _0x2c9f1e=_0x24c84e instanceof _0x54550a&&_0x24c84e[_0x5db274(0x8b)][_0x5db274(0x7a)](_0x5db274(0x82));_0x2c9f1e&&(_0x334e40?_0x2c9f1e[_0x5db274(0x99)](_0x5db274(0x8e)):_0x2c9f1e[_0x5db274(0x77)](_0x5db274(0x8e)));}}}
23
+ const _0x551892=_0x3138;function _0x19a5(){const _0x15508d=['227000YGnMqb','get','editors','addCommentThread','2585692iBEqHh','find','noPermissions','setPermissions','includes','isEnabled','CommentsRepository','document:write','config','70xlIFXP','collaboration.channelId','no-permissions','forceDisabled','has','disableReadOnlyMode','7505197qTLEua','826407LljjFB','comment:modify_all','plugins','enableReadOnlyMode','393864rrHzCf','13706824sIBnJz','1911096qmIdQG','context','Permissions','pluginName','comment:write','commands','clearForceDisabled','CommentsOnly','comment:admin','permissions-set-permissions-invalid-channel-id'];_0x19a5=function(){return _0x15508d;};return _0x19a5();}(function(_0x20b5f1,_0x3f8107){const _0x4a7a2c=_0x3138,_0x48c929=_0x20b5f1();while(!![]){try{const _0x219f28=parseInt(_0x4a7a2c(0xc2))/0x1+-parseInt(_0x4a7a2c(0xd6))/0x2+parseInt(_0x4a7a2c(0xc6))/0x3+parseInt(_0x4a7a2c(0xd2))/0x4*(parseInt(_0x4a7a2c(0xbb))/0x5)+-parseInt(_0x4a7a2c(0xc8))/0x6+-parseInt(_0x4a7a2c(0xc1))/0x7+parseInt(_0x4a7a2c(0xc7))/0x8;if(_0x219f28===_0x3f8107)break;else _0x48c929['push'](_0x48c929['shift']());}catch(_0x4e92d2){_0x48c929['push'](_0x48c929['shift']());}}}(_0x19a5,0xbeebf));import{ContextPlugin as _0x4387a7,Editor as _0x24979a}from'ckeditor5/src/core.js';function _0x3138(_0x2b55be,_0x556e7e){const _0x19a58a=_0x19a5();return _0x3138=function(_0x313825,_0x1730f3){_0x313825=_0x313825-0xb8;let _0x2cec7a=_0x19a58a[_0x313825];return _0x2cec7a;},_0x3138(_0x2b55be,_0x556e7e);}import{CKEditorError as _0x20273e}from'ckeditor5/src/utils.js';export default class n extends _0x4387a7{static get[_0x551892(0xcb)](){const _0x1d6756=_0x551892;return _0x1d6756(0xca);}[_0x551892(0xd9)](_0x5ba508,_0x552718){const _0x227829=_0x551892;let _0xf8f190;if(_0x552718||(_0x552718=this[_0x227829(0xc9)][_0x227829(0xba)][_0x227829(0xd3)](_0x227829(0xbc))),this[_0x227829(0xc9)][_0x227829(0xba)][_0x227829(0xd3)](_0x227829(0xbc))==_0x552718?_0xf8f190=this[_0x227829(0xc9)]:_0x227829(0xd4)in this[_0x227829(0xc9)]&&this[_0x227829(0xc9)][_0x227829(0xd4)]&&(_0xf8f190=this[_0x227829(0xc9)][_0x227829(0xd4)][_0x227829(0xd7)](_0x51ae49=>_0x51ae49[_0x227829(0xba)][_0x227829(0xd3)](_0x227829(0xbc))==_0x552718)),!_0xf8f190)throw new _0x20273e(_0x227829(0xd1),null);const _0x251890=_0xf8f190[_0x227829(0xc4)],_0x38b055=_0x251890[_0x227829(0xbf)](_0x227829(0xb8))?_0x251890[_0x227829(0xd3)](_0x227829(0xb8)):void 0x0,_0x5492ad=_0x251890[_0x227829(0xbf)](_0x227829(0xcf))&&_0x251890[_0x227829(0xd3)](_0x227829(0xcf)),_0x5b6274=_0x5ba508[_0x227829(0xda)](_0x227829(0xb9)),_0x15cb0a=_0x5ba508[_0x227829(0xda)](_0x227829(0xc3)),_0x209da8=_0x5ba508[_0x227829(0xda)](_0x227829(0xd0)),_0x54569f=_0x5ba508[_0x227829(0xda)](_0x227829(0xcc)),_0x395663=_0x54569f||_0x209da8,_0x6e950e=_0x395663||_0x15cb0a,_0x302abd=_0x5b6274||_0x395663;(_0x5492ad&&(_0x5492ad[_0x227829(0xdb)]=!_0x5b6274&&_0x6e950e),_0xf8f190 instanceof _0x24979a)&&(!(_0x5b6274||_0x6e950e&&_0x38b055)?_0xf8f190[_0x227829(0xc5)](_0x227829(0xbd)):_0xf8f190[_0x227829(0xc0)](_0x227829(0xbd)));if(_0x38b055){_0x38b055[_0x227829(0xd9)]({'admin':_0x209da8,'modifyAll':_0x15cb0a,'write':_0x54569f,'resolve':_0x302abd},_0x552718);const _0x186ef8=_0xf8f190 instanceof _0x24979a&&_0xf8f190[_0x227829(0xcd)][_0x227829(0xd3)](_0x227829(0xd5));_0x186ef8&&(_0x395663?_0x186ef8[_0x227829(0xce)](_0x227829(0xd8)):_0x186ef8[_0x227829(0xbe)](_0x227829(0xd8)));}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x310150,_0x53de2b){var _0x50b2c1=_0x4bcf,_0x1ceb95=_0x310150();while(!![]){try{var _0x5284ce=-parseInt(_0x50b2c1(0x161))/0x1*(parseInt(_0x50b2c1(0x160))/0x2)+parseInt(_0x50b2c1(0x166))/0x3*(-parseInt(_0x50b2c1(0x167))/0x4)+parseInt(_0x50b2c1(0x169))/0x5+-parseInt(_0x50b2c1(0x165))/0x6+-parseInt(_0x50b2c1(0x168))/0x7+parseInt(_0x50b2c1(0x15f))/0x8*(parseInt(_0x50b2c1(0x163))/0x9)+parseInt(_0x50b2c1(0x164))/0xa*(parseInt(_0x50b2c1(0x162))/0xb);if(_0x5284ce===_0x53de2b)break;else _0x1ceb95['push'](_0x1ceb95['shift']());}catch(_0x5b9bc1){_0x1ceb95['push'](_0x1ceb95['shift']());}}}(_0x3fc8,0x5e1f0));import'../theme/suggestion.css';function _0x3fc8(){var _0x2cd5ea=['2264yIZuVd','2961525CeTxSm','2453215eaDuQJ','4808328TBwRbY','6IBPCFm','219891qBeVOG','22CLZkmj','9BiQhNh','7666930NsNPmR','2998056qItBkF','3483WbYYpB'];_0x3fc8=function(){return _0x2cd5ea;};return _0x3fc8();}import'../theme/suggestionmarker.css';import'../theme/integrations/image.css';function _0x4bcf(_0x383dbf,_0x43815c){var _0x3fc880=_0x3fc8();return _0x4bcf=function(_0x4bcf42,_0x33d799){_0x4bcf42=_0x4bcf42-0x15f;var _0x214439=_0x3fc880[_0x4bcf42];return _0x214439;},_0x4bcf(_0x383dbf,_0x43815c);}import'../theme/integrations/horizontalline.css';import'../theme/integrations/mediaembed.css';import'../theme/integrations/pagebreak.css';import'../theme/integrations/table.css';import'../theme/integrations/codeblock.css';
23
+ (function(_0x5567f2,_0x29faf3){var _0x290d1c=_0x3b21,_0x4124bd=_0x5567f2();while(!![]){try{var _0x213fc3=-parseInt(_0x290d1c(0x1b8))/0x1*(-parseInt(_0x290d1c(0x1b2))/0x2)+parseInt(_0x290d1c(0x1b3))/0x3*(parseInt(_0x290d1c(0x1b1))/0x4)+parseInt(_0x290d1c(0x1b5))/0x5*(parseInt(_0x290d1c(0x1b6))/0x6)+-parseInt(_0x290d1c(0x1bb))/0x7+-parseInt(_0x290d1c(0x1b7))/0x8*(parseInt(_0x290d1c(0x1bc))/0x9)+-parseInt(_0x290d1c(0x1b9))/0xa*(-parseInt(_0x290d1c(0x1ba))/0xb)+-parseInt(_0x290d1c(0x1b4))/0xc;if(_0x213fc3===_0x29faf3)break;else _0x4124bd['push'](_0x4124bd['shift']());}catch(_0x2c6ab1){_0x4124bd['push'](_0x4124bd['shift']());}}}(_0x41ea,0x85cb9));import'../theme/suggestion.css';import'../theme/suggestionmarker.css';import'../theme/integrations/image.css';function _0x41ea(){var _0x5b4e04=['70rupBHp','438130xjazXV','44037aknYwW','621162hvmJvo','24hsHRxM','2037358dxUTDL','92079NOIPuO','18220380zpJxXS','1650130HvsmIZ','12uCatTk','8RCZXoY','1cuCcpY'];_0x41ea=function(){return _0x5b4e04;};return _0x41ea();}import'../theme/integrations/horizontalline.css';function _0x3b21(_0x518d2f,_0x2a32f1){var _0x41ea17=_0x41ea();return _0x3b21=function(_0x3b215b,_0x45bb13){_0x3b215b=_0x3b215b-0x1b1;var _0x4c2f5b=_0x41ea17[_0x3b215b];return _0x4c2f5b;},_0x3b21(_0x518d2f,_0x2a32f1);}import'../theme/integrations/mediaembed.css';import'../theme/integrations/pagebreak.css';import'../theme/integrations/table.css';import'../theme/integrations/codeblock.css';
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x347088,_0x14d829){const _0xd92ae8=_0x1084,_0x3c7b1e=_0x347088();while(!![]){try{const _0x1d684c=parseInt(_0xd92ae8(0x183))/0x1*(-parseInt(_0xd92ae8(0x178))/0x2)+parseInt(_0xd92ae8(0x18a))/0x3*(parseInt(_0xd92ae8(0x181))/0x4)+parseInt(_0xd92ae8(0x179))/0x5*(parseInt(_0xd92ae8(0x17f))/0x6)+parseInt(_0xd92ae8(0x16e))/0x7*(-parseInt(_0xd92ae8(0x174))/0x8)+-parseInt(_0xd92ae8(0x18c))/0x9*(parseInt(_0xd92ae8(0x185))/0xa)+-parseInt(_0xd92ae8(0x17b))/0xb*(-parseInt(_0xd92ae8(0x17c))/0xc)+-parseInt(_0xd92ae8(0x177))/0xd*(-parseInt(_0xd92ae8(0x172))/0xe);if(_0x1d684c===_0x14d829)break;else _0x3c7b1e['push'](_0x3c7b1e['shift']());}catch(_0x258edb){_0x3c7b1e['push'](_0x3c7b1e['shift']());}}}(_0x55a2,0xcd7ed));import{View as _0x4641ed,IconView as _0x2f4dfe}from'ckeditor5/src/ui.js';function _0x1084(_0x58d518,_0x246017){const _0x55a268=_0x55a2();return _0x1084=function(_0x1084f2,_0x2458aa){_0x1084f2=_0x1084f2-0x16d;let _0x44faf5=_0x55a268[_0x1084f2];return _0x44faf5;},_0x1084(_0x58d518,_0x246017);}import _0x4c1a8a from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class E extends _0x4641ed{constructor(_0xbedce2,_0x5d83b1,_0x2220b8){const _0x14c285=_0x1084;super(_0xbedce2),this[_0x14c285(0x182)]=_0x5d83b1[_0x14c285(0x182)],this[_0x14c285(0x186)]=null;const _0x44fd48=['ck',_0x14c285(0x173)],_0x367a67=['ck',_0x14c285(0x18b)];if(_0x5d83b1[_0x14c285(0x188)]&&_0x367a67[_0x14c285(0x18e)](_0x14c285(0x180)),!_0x5d83b1[_0x14c285(0x188)]&&_0x5d83b1[_0x14c285(0x184)]&&_0x44fd48[_0x14c285(0x18e)](_0x14c285(0x17d)),_0x5d83b1[_0x14c285(0x18f)]&&_0x367a67[_0x14c285(0x18e)](_0x14c285(0x16f)),_0x2220b8){const _0x279329=new _0x2f4dfe();_0x279329[_0x14c285(0x17a)]({'attributes':{'class':[_0x14c285(0x16d)]}}),_0x279329[_0x14c285(0x18d)]=_0x4c1a8a,this[_0x14c285(0x186)]={'tag':_0x14c285(0x187),'attributes':{'class':['ck',_0x14c285(0x189)],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x2220b8},'children':[_0x279329]};}const _0x5678a1=[{'tag':_0x14c285(0x187),'attributes':{'class':_0x367a67,'style':{'background-image':_0x5d83b1[_0x14c285(0x18f)]?_0x14c285(0x175)+_0x5d83b1[_0x14c285(0x18f)]+'\x27)':''}}},{'tag':_0x14c285(0x187),'attributes':{'class':_0x5d83b1[_0x14c285(0x18f)]?_0x14c285(0x176):_0x14c285(0x170)},'children':[{'text':_0x5d83b1[_0x14c285(0x17e)]}]}];this[_0x14c285(0x186)]&&_0x5678a1[_0x14c285(0x18e)](this[_0x14c285(0x186)]),this[_0x14c285(0x171)]({'tag':_0x14c285(0x187),'attributes':{'class':_0x44fd48,'data-user-id':_0x5d83b1['id']},'children':_0x5678a1});}}function _0x55a2(){const _0x4d6e86=['ck-user__img','9YxfZWl','content','push','avatar','ck-user__icon','317359ceaGhk','ck-user__avatar','ck\x20ck-user__name','setTemplate','196SUhUSJ','ck-user','88qVhoDq','url(\x27','ck\x20ck-user__name\x20ck-user__name--hidden','2019329gemith','293878ysSBPS','85XlAezF','extendTemplate','784267VHhVGh','24ARudyf','ck-user_me','initials','391506oWAKUX','ck-user__anonymous','4uRnxzC','name','11lgarVs','isMe','8596970rhixIx','notificationView','div','isAnonymous','ck-user__notification','1169757ObTNhx'];_0x55a2=function(){return _0x4d6e86;};return _0x55a2();}
23
+ function _0x4438(_0x32bfb3,_0x38de4c){const _0x40cace=_0x40ca();return _0x4438=function(_0x4438d7,_0xc91621){_0x4438d7=_0x4438d7-0x108;let _0x2168f3=_0x40cace[_0x4438d7];return _0x2168f3;},_0x4438(_0x32bfb3,_0x38de4c);}function _0x40ca(){const _0x4ca07c=['1266YELtSR','9124inUrvh','ck-user__icon','setTemplate','1045790gvWqam','content','ck-user__anonymous','2UpSGUu','div','notificationView','avatar','url(\x27','ck-user__img','8045610rOuFnI','push','1343430YPJrBf','name','198rrTwFm','ck\x20ck-user__name','isAnonymous','10592496TXOrym','isMe','extendTemplate','ck-user__avatar','initials','ck-user','183589FZUNYS','4444398KRchyp','ck-user_me','ck\x20ck-user__name\x20ck-user__name--hidden','ck-user__notification'];_0x40ca=function(){return _0x4ca07c;};return _0x40ca();}(function(_0x5d183b,_0x598e6c){const _0x477bf2=_0x4438,_0x3e74b6=_0x5d183b();while(!![]){try{const _0x4fb849=-parseInt(_0x477bf2(0x10f))/0x1*(-parseInt(_0x477bf2(0x112))/0x2)+parseInt(_0x477bf2(0x10b))/0x3*(parseInt(_0x477bf2(0x10c))/0x4)+-parseInt(_0x477bf2(0x11a))/0x5+-parseInt(_0x477bf2(0x11c))/0x6*(-parseInt(_0x477bf2(0x125))/0x7)+-parseInt(_0x477bf2(0x11f))/0x8+parseInt(_0x477bf2(0x126))/0x9+-parseInt(_0x477bf2(0x118))/0xa;if(_0x4fb849===_0x598e6c)break;else _0x3e74b6['push'](_0x3e74b6['shift']());}catch(_0x9f416d){_0x3e74b6['push'](_0x3e74b6['shift']());}}}(_0x40ca,0xece88));import{View as _0x59ce4f,IconView as _0x3c4784}from'ckeditor5/src/ui.js';import _0x3a7f1c from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class E extends _0x59ce4f{constructor(_0x5db4a1,_0x4876ea,_0x431793){const _0x2eb8e5=_0x4438;super(_0x5db4a1),this[_0x2eb8e5(0x11b)]=_0x4876ea[_0x2eb8e5(0x11b)],this[_0x2eb8e5(0x114)]=null;const _0x1ba697=['ck',_0x2eb8e5(0x124)],_0x402de9=['ck',_0x2eb8e5(0x117)];if(_0x4876ea[_0x2eb8e5(0x11e)]&&_0x402de9[_0x2eb8e5(0x119)](_0x2eb8e5(0x111)),!_0x4876ea[_0x2eb8e5(0x11e)]&&_0x4876ea[_0x2eb8e5(0x120)]&&_0x1ba697[_0x2eb8e5(0x119)](_0x2eb8e5(0x108)),_0x4876ea[_0x2eb8e5(0x115)]&&_0x402de9[_0x2eb8e5(0x119)](_0x2eb8e5(0x122)),_0x431793){const _0x55ad16=new _0x3c4784();_0x55ad16[_0x2eb8e5(0x121)]({'attributes':{'class':[_0x2eb8e5(0x10d)]}}),_0x55ad16[_0x2eb8e5(0x110)]=_0x3a7f1c,this[_0x2eb8e5(0x114)]={'tag':_0x2eb8e5(0x113),'attributes':{'class':['ck',_0x2eb8e5(0x10a)],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x431793},'children':[_0x55ad16]};}const _0xb2666c=[{'tag':_0x2eb8e5(0x113),'attributes':{'class':_0x402de9,'style':{'background-image':_0x4876ea[_0x2eb8e5(0x115)]?_0x2eb8e5(0x116)+_0x4876ea[_0x2eb8e5(0x115)]+'\x27)':''}}},{'tag':_0x2eb8e5(0x113),'attributes':{'class':_0x4876ea[_0x2eb8e5(0x115)]?_0x2eb8e5(0x109):_0x2eb8e5(0x11d)},'children':[{'text':_0x4876ea[_0x2eb8e5(0x123)]}]}];this[_0x2eb8e5(0x114)]&&_0xb2666c[_0x2eb8e5(0x119)](this[_0x2eb8e5(0x114)]),this[_0x2eb8e5(0x10e)]({'tag':_0x2eb8e5(0x113),'attributes':{'class':_0x1ba697,'data-user-id':_0x4876ea['id']},'children':_0xb2666c});}}
package/src/users.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4b0a(){const _0x592fea=['Anonymous','licenseKeyTrialLimit:operations','info','destroy','_id','toUpperCase','_lastColor','initials','_licenseKeyCheckInterval','trim','addUser','decorate','getSelectionClass','licenseKeyTrial','1776778gDGYOH','requires','ck-user__marker--','_getInitial','has','color','_getNextColor','useAnonymousUser','getOperationAuthor','licenseKeyTrialLimit:revisions','Users','charAt','pluginName','isAnonymous','includes','_isAnonymous','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20collaboration\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','users-add-duplicated-id','ck-user__bg-color--','licenseKey','anonymous-user','locale','trial-license-key-reached-limit-revisions','users','users.anonymousUserId','users.colorsCount','length','config','context','users-me-already-defined','licenseKeyTrialLimit:time','ck-user__selection--','init','avatar','split','3463056TqRvsv','423001AhcnVV','3576216toOqip','licenseKeyValid','invalid-license-key','get','users-me-missing-user','27DnVAKZ','add','trial-license-key-reached-limit-changes','name','14949200ppvbrr','define','trial-license-key-reached-limit-time','_locale','getBackgroundColorClass','getMarkerClass','isMe','4785715apVhNr','defineMe','string','licenseKeyInvalid','_isMe','getUser','users-add-invalid-id','_addAnonymousUser','_myId','238356AzEvbU'];_0x4b0a=function(){return _0x592fea;};return _0x4b0a();}function _0x38a5(_0x57eb45,_0x49af8b){const _0x4b0aa6=_0x4b0a();return _0x38a5=function(_0x38a5c3,_0x1affd9){_0x38a5c3=_0x38a5c3-0x17e;let _0x3f0923=_0x4b0aa6[_0x38a5c3];return _0x3f0923;},_0x38a5(_0x57eb45,_0x49af8b);}const _0x2a2f61=_0x38a5;(function(_0x35e10b,_0x40ad75){const _0x4bec41=_0x38a5,_0x59d695=_0x35e10b();while(!![]){try{const _0x277c4b=parseInt(_0x4bec41(0x19f))/0x1+parseInt(_0x4bec41(0x1c8))/0x2+-parseInt(_0x4bec41(0x1a5))/0x3*(parseInt(_0x4bec41(0x1b9))/0x4)+-parseInt(_0x4bec41(0x1b0))/0x5+-parseInt(_0x4bec41(0x19e))/0x6+-parseInt(_0x4bec41(0x1a0))/0x7+parseInt(_0x4bec41(0x1a9))/0x8;if(_0x277c4b===_0x40ad75)break;else _0x59d695['push'](_0x59d695['shift']());}catch(_0x1f96fa){_0x59d695['push'](_0x59d695['shift']());}}}(_0x4b0a,0x92204));import{ContextPlugin as _0x24e06f}from'ckeditor5/src/core.js';import{Collection as _0x119e4f,CKEditorError as _0x17569a}from'ckeditor5/src/utils.js';import _0x4a1552 from'./permissions.js';import{getTranslation as _0xe277d4}from'./utils/common-translations.js';import'../theme/usercolors.css';export default class l extends _0x24e06f{static get[_0x2a2f61(0x187)](){const _0x37faf7=_0x2a2f61;return _0x37faf7(0x185);}static get[_0x2a2f61(0x1c9)](){return[_0x4a1552];}constructor(_0x23616e){const _0x59c1c6=_0x2a2f61;super(_0x23616e),this[_0x59c1c6(0x197)][_0x59c1c6(0x196)][_0x59c1c6(0x1aa)](_0x59c1c6(0x193),_0x59c1c6(0x18f)),this[_0x59c1c6(0x197)][_0x59c1c6(0x196)][_0x59c1c6(0x1aa)](_0x59c1c6(0x194),0x8),this[_0x59c1c6(0x192)]=new _0x119e4f(),this[_0x59c1c6(0x1ac)]=_0x23616e[_0x59c1c6(0x190)],this[_0x59c1c6(0x1c2)]=null,this[_0x59c1c6(0x1c0)]=0x0,this[_0x59c1c6(0x1b8)]=null,this[_0x59c1c6(0x1c5)](_0x59c1c6(0x183));}[_0x2a2f61(0x19b)](){const _0x3d5588=_0x2a2f61,_0x4ee3f4=this[_0x3d5588(0x197)];this[_0x3d5588(0x18e)]=_0x4ee3f4[_0x3d5588(0x196)][_0x3d5588(0x1a3)](_0x3d5588(0x18e));const _0x210bc4=[_0x3d5588(0x1c7),_0x3d5588(0x1b3),_0x3d5588(0x1a1),_0x3d5588(0x1bb),_0x3d5588(0x199),_0x3d5588(0x184)];this[_0x3d5588(0x1c2)]=setInterval(()=>{const _0x395eaf=_0x3d5588;let _0x4a63d6;for(const _0x57127a in _0x4ee3f4){const _0x13425f=_0x4ee3f4[_0x57127a];if(_0x210bc4[_0x395eaf(0x189)](_0x13425f)){delete _0x4ee3f4[_0x57127a],_0x4a63d6=_0x13425f;break;}}if(_0x395eaf(0x1b3)===_0x4a63d6)throw clearInterval(this[_0x395eaf(0x1c2)]),new _0x17569a(_0x395eaf(0x1a2),null);if(_0x395eaf(0x1c7)===_0x4a63d6&&console[_0x395eaf(0x1bc)](_0x395eaf(0x18b)),_0x395eaf(0x1bb)===_0x4a63d6)throw clearInterval(this[_0x395eaf(0x1c2)]),new _0x17569a(_0x395eaf(0x1a7),null);if(_0x395eaf(0x199)===_0x4a63d6)throw clearInterval(this[_0x395eaf(0x1c2)]),new _0x17569a(_0x395eaf(0x1ab),null);if(_0x395eaf(0x184)===_0x4a63d6)throw clearInterval(this[_0x395eaf(0x1c2)]),new _0x17569a(_0x395eaf(0x191),null);_0x395eaf(0x1a1)===_0x4a63d6&&clearInterval(this[_0x395eaf(0x1c2)]);},0x3e8),this[_0x3d5588(0x1b7)]();}get['me'](){const _0x1cf122=_0x2a2f61;return null==this[_0x1cf122(0x1b8)]?null:this[_0x1cf122(0x1b5)](this[_0x1cf122(0x1b8)]);}[_0x2a2f61(0x1c4)]({id:_0x4f04e4,name:_0x2bbf57,..._0x283a4d}){const _0x33dbe3=_0x2a2f61;if(!_0x4f04e4||_0x33dbe3(0x1b2)!=typeof _0x4f04e4)throw new _0x17569a(_0x33dbe3(0x1b6));if(this[_0x33dbe3(0x192)][_0x33dbe3(0x17f)](_0x4f04e4))throw new _0x17569a(_0x33dbe3(0x18c),null,{'id':_0x4f04e4});const _0x53f5be={..._0x283a4d,'id':_0x4f04e4,'name':a(this[_0x33dbe3(0x1ac)],_0x2bbf57),'color':this[_0x33dbe3(0x181)]()};_0x53f5be[_0x33dbe3(0x1a8)]=a(this[_0x33dbe3(0x1ac)],_0x53f5be[_0x33dbe3(0x1a8)]);const _0x4fc0be=new User(_0x53f5be);return this[_0x33dbe3(0x192)][_0x33dbe3(0x1a6)](_0x4fc0be),_0x4fc0be;}[_0x2a2f61(0x1b5)](_0x255a54){const _0x5e72c8=_0x2a2f61;return this[_0x5e72c8(0x192)][_0x5e72c8(0x1a3)](_0x255a54);}[_0x2a2f61(0x182)](){const _0x153156=_0x2a2f61,_0x44f45e=this[_0x153156(0x197)][_0x153156(0x196)][_0x153156(0x1a3)](_0x153156(0x193));this[_0x153156(0x1b8)]||this[_0x153156(0x1b1)](_0x44f45e);}[_0x2a2f61(0x1b1)](_0x28d133){const _0x8b79c=_0x2a2f61;if(this[_0x8b79c(0x1b8)])throw new _0x17569a(_0x8b79c(0x198),null);const _0x20c4e7=this[_0x8b79c(0x1b5)](_0x28d133);if(!_0x20c4e7)throw new _0x17569a(_0x8b79c(0x1a4),null);this[_0x8b79c(0x1b8)]=_0x28d133,_0x20c4e7[_0x8b79c(0x1b4)]=!0x0;}[_0x2a2f61(0x183)](){return this['me'];}[_0x2a2f61(0x1bd)](){const _0x44d7e3=_0x2a2f61;super[_0x44d7e3(0x1bd)](),clearInterval(this[_0x44d7e3(0x1c2)]);}[_0x2a2f61(0x181)](){const _0x2a2b5f=_0x2a2f61,_0x335f9c=this[_0x2a2b5f(0x197)][_0x2a2b5f(0x196)][_0x2a2b5f(0x1a3)](_0x2a2b5f(0x194));return this[_0x2a2b5f(0x1c0)]>=_0x335f9c&&(this[_0x2a2b5f(0x1c0)]=0x0),new u(this[_0x2a2b5f(0x1c0)]++);}[_0x2a2f61(0x1b7)](){const _0x5c6637=_0x2a2f61,_0x58b2f6=this[_0x5c6637(0x197)][_0x5c6637(0x196)][_0x5c6637(0x1a3)](_0x5c6637(0x193));this[_0x5c6637(0x1c4)]({'id':_0x58b2f6,'name':_0xe277d4(this[_0x5c6637(0x1ac)],_0x5c6637(0x1ba))})[_0x5c6637(0x18a)]=!0x0;}}export class User{constructor(_0x548911){const _0x44af36=_0x2a2f61;this['id']=_0x548911['id'],this[_0x44af36(0x180)]=_0x548911[_0x44af36(0x180)],this[_0x44af36(0x1a8)]=_0x548911[_0x44af36(0x1a8)],this[_0x44af36(0x19c)]=_0x548911[_0x44af36(0x19c)],this[_0x44af36(0x18a)]=!0x1,this[_0x44af36(0x1b4)]=!0x1;}get[_0x2a2f61(0x188)](){const _0x268bb8=_0x2a2f61;return this[_0x268bb8(0x18a)];}get[_0x2a2f61(0x1af)](){const _0x44f78f=_0x2a2f61;return this[_0x44f78f(0x1b4)];}get[_0x2a2f61(0x1c1)](){const _0x23e22d=_0x2a2f61,_0x255aac=this[_0x23e22d(0x1a8)][_0x23e22d(0x19d)]('\x20');return 0x1===_0x255aac[_0x23e22d(0x195)]?this[_0x23e22d(0x17e)](_0x255aac[0x0]):this[_0x23e22d(0x17e)](_0x255aac[0x0])+this[_0x23e22d(0x17e)](_0x255aac[_0x255aac[_0x23e22d(0x195)]-0x1]);}[_0x2a2f61(0x17e)](_0x394afe){const _0x9fc859=_0x2a2f61;return _0x394afe[_0x9fc859(0x186)](0x0)[_0x9fc859(0x1bf)]();}}function a(_0x503b5c,_0x57f510=''){const _0x40e246=_0x2a2f61;return''==(_0x57f510=_0x57f510[_0x40e246(0x1c3)]())?_0xe277d4(_0x503b5c,_0x40e246(0x1ba)):_0x57f510;}class u{constructor(_0x5685e2){const _0x5c2f7d=_0x2a2f61;this[_0x5c2f7d(0x1be)]=_0x5685e2;}[_0x2a2f61(0x1ad)](){const _0x509a72=_0x2a2f61;return _0x509a72(0x18d)+this[_0x509a72(0x1be)];}[_0x2a2f61(0x1c6)](){const _0x3785dd=_0x2a2f61;return _0x3785dd(0x19a)+this[_0x3785dd(0x1be)];}[_0x2a2f61(0x1ae)](){const _0x14ab1e=_0x2a2f61;return _0x14ab1e(0x1ca)+this[_0x14ab1e(0x1be)];}}
23
+ const _0x488528=_0x574f;(function(_0x28ba08,_0xf6485c){const _0x3856a8=_0x574f,_0x17c1e6=_0x28ba08();while(!![]){try{const _0x2e6adb=-parseInt(_0x3856a8(0x1e8))/0x1+-parseInt(_0x3856a8(0x1e9))/0x2*(parseInt(_0x3856a8(0x213))/0x3)+parseInt(_0x3856a8(0x1d5))/0x4+parseInt(_0x3856a8(0x201))/0x5+-parseInt(_0x3856a8(0x216))/0x6*(-parseInt(_0x3856a8(0x1e1))/0x7)+-parseInt(_0x3856a8(0x1f4))/0x8*(parseInt(_0x3856a8(0x1de))/0x9)+-parseInt(_0x3856a8(0x1d9))/0xa*(-parseInt(_0x3856a8(0x205))/0xb);if(_0x2e6adb===_0xf6485c)break;else _0x17c1e6['push'](_0x17c1e6['shift']());}catch(_0x54e915){_0x17c1e6['push'](_0x17c1e6['shift']());}}}(_0x2f08,0x8aa82));import{ContextPlugin as _0x52786e}from'ckeditor5/src/core.js';import{Collection as _0x1dae6d,CKEditorError as _0x180f05}from'ckeditor5/src/utils.js';import _0x3e339c from'./permissions.js';function _0x574f(_0x17ae4f,_0x5534eb){const _0x2f08c5=_0x2f08();return _0x574f=function(_0x574f18,_0x29db7d){_0x574f18=_0x574f18-0x1cf;let _0x569d0c=_0x2f08c5[_0x574f18];return _0x569d0c;},_0x574f(_0x17ae4f,_0x5534eb);}import{getTranslation as _0x46a477}from'./utils/common-translations.js';import'../theme/usercolors.css';export default class l extends _0x52786e{static get[_0x488528(0x21a)](){const _0x50e3b4=_0x488528;return _0x50e3b4(0x1df);}static get[_0x488528(0x1f5)](){return[_0x3e339c];}constructor(_0x24b3e2){const _0x25c9e4=_0x488528;super(_0x24b3e2),this[_0x25c9e4(0x211)][_0x25c9e4(0x1f6)][_0x25c9e4(0x1dd)](_0x25c9e4(0x1f7),_0x25c9e4(0x1d3)),this[_0x25c9e4(0x211)][_0x25c9e4(0x1f6)][_0x25c9e4(0x1dd)](_0x25c9e4(0x204),0x8),this[_0x25c9e4(0x1f0)]=new _0x1dae6d(),this[_0x25c9e4(0x1fa)]=_0x24b3e2[_0x25c9e4(0x1f1)],this[_0x25c9e4(0x207)]=null,this[_0x25c9e4(0x1e2)]=0x0,this[_0x25c9e4(0x1e3)]=null,this[_0x25c9e4(0x1d6)](_0x25c9e4(0x1e7));}[_0x488528(0x20b)](){const _0x12576c=_0x488528,_0x2ec589=this[_0x12576c(0x211)];this[_0x12576c(0x1da)]=_0x2ec589[_0x12576c(0x1f6)][_0x12576c(0x1fe)](_0x12576c(0x1da));const _0x405b9d=[_0x12576c(0x1e0),_0x12576c(0x210),_0x12576c(0x1ef),_0x12576c(0x212),_0x12576c(0x21b),_0x12576c(0x217)];this[_0x12576c(0x207)]=setInterval(()=>{const _0x4ba961=_0x12576c;let _0x4721c8;for(const _0x4bc262 in _0x2ec589){const _0x5ec710=_0x2ec589[_0x4bc262];if(_0x405b9d[_0x4ba961(0x215)](_0x5ec710)){delete _0x2ec589[_0x4bc262],_0x4721c8=_0x5ec710;break;}}if(_0x4ba961(0x210)===_0x4721c8)throw clearInterval(this[_0x4ba961(0x207)]),new _0x180f05(_0x4ba961(0x1ea),null);if(_0x4ba961(0x1e0)===_0x4721c8&&console[_0x4ba961(0x1d1)](_0x4ba961(0x1fd)),_0x4ba961(0x212)===_0x4721c8)throw clearInterval(this[_0x4ba961(0x207)]),new _0x180f05(_0x4ba961(0x200),null);if(_0x4ba961(0x21b)===_0x4721c8)throw clearInterval(this[_0x4ba961(0x207)]),new _0x180f05(_0x4ba961(0x1d4),null);if(_0x4ba961(0x217)===_0x4721c8)throw clearInterval(this[_0x4ba961(0x207)]),new _0x180f05(_0x4ba961(0x20a),null);_0x4ba961(0x1ef)===_0x4721c8&&clearInterval(this[_0x4ba961(0x207)]);},0x3e8),this[_0x12576c(0x20e)]();}get['me'](){const _0x12f315=_0x488528;return null==this[_0x12f315(0x1e3)]?null:this[_0x12f315(0x20f)](this[_0x12f315(0x1e3)]);}[_0x488528(0x1ee)]({id:_0x4020f8,name:_0x5eecbe,..._0x50e531}){const _0xe2b5c=_0x488528;if(!_0x4020f8||_0xe2b5c(0x1f2)!=typeof _0x4020f8)throw new _0x180f05(_0xe2b5c(0x20c));if(this[_0xe2b5c(0x1f0)][_0xe2b5c(0x1ff)](_0x4020f8))throw new _0x180f05(_0xe2b5c(0x1fb),null,{'id':_0x4020f8});const _0xa6385a={..._0x50e531,'id':_0x4020f8,'name':a(this[_0xe2b5c(0x1fa)],_0x5eecbe),'color':this[_0xe2b5c(0x1f3)]()};_0xa6385a[_0xe2b5c(0x1ed)]=a(this[_0xe2b5c(0x1fa)],_0xa6385a[_0xe2b5c(0x1ed)]);const _0x21c374=new User(_0xa6385a);return this[_0xe2b5c(0x1f0)][_0xe2b5c(0x1f9)](_0x21c374),_0x21c374;}[_0x488528(0x20f)](_0x476967){const _0x17bda8=_0x488528;return this[_0x17bda8(0x1f0)][_0x17bda8(0x1fe)](_0x476967);}[_0x488528(0x203)](){const _0xc7a884=_0x488528,_0x77a3a9=this[_0xc7a884(0x211)][_0xc7a884(0x1f6)][_0xc7a884(0x1fe)](_0xc7a884(0x1f7));this[_0xc7a884(0x1e3)]||this[_0xc7a884(0x1d7)](_0x77a3a9);}[_0x488528(0x1d7)](_0x3c0c3e){const _0x1c5a1a=_0x488528;if(this[_0x1c5a1a(0x1e3)])throw new _0x180f05(_0x1c5a1a(0x214),null);const _0x85f7f1=this[_0x1c5a1a(0x20f)](_0x3c0c3e);if(!_0x85f7f1)throw new _0x180f05(_0x1c5a1a(0x21d),null);this[_0x1c5a1a(0x1e3)]=_0x3c0c3e,_0x85f7f1[_0x1c5a1a(0x1dc)]=!0x0;}[_0x488528(0x1e7)](){return this['me'];}[_0x488528(0x21e)](){const _0x368318=_0x488528;super[_0x368318(0x21e)](),clearInterval(this[_0x368318(0x207)]);}[_0x488528(0x1f3)](){const _0x18593f=_0x488528,_0x371a43=this[_0x18593f(0x211)][_0x18593f(0x1f6)][_0x18593f(0x1fe)](_0x18593f(0x204));return this[_0x18593f(0x1e2)]>=_0x371a43&&(this[_0x18593f(0x1e2)]=0x0),new u(this[_0x18593f(0x1e2)]++);}[_0x488528(0x20e)](){const _0x47293c=_0x488528,_0x3d8890=this[_0x47293c(0x211)][_0x47293c(0x1f6)][_0x47293c(0x1fe)](_0x47293c(0x1f7));this[_0x47293c(0x1ee)]({'id':_0x3d8890,'name':_0x46a477(this[_0x47293c(0x1fa)],_0x47293c(0x1fc))})[_0x47293c(0x1d8)]=!0x0;}}export class User{constructor(_0x58a5c2){const _0x23e4dd=_0x488528;this['id']=_0x58a5c2['id'],this[_0x23e4dd(0x218)]=_0x58a5c2[_0x23e4dd(0x218)],this[_0x23e4dd(0x1ed)]=_0x58a5c2[_0x23e4dd(0x1ed)],this[_0x23e4dd(0x1db)]=_0x58a5c2[_0x23e4dd(0x1db)],this[_0x23e4dd(0x1d8)]=!0x1,this[_0x23e4dd(0x1dc)]=!0x1;}get[_0x488528(0x209)](){const _0x367b42=_0x488528;return this[_0x367b42(0x1d8)];}get[_0x488528(0x1ec)](){const _0x5eaad2=_0x488528;return this[_0x5eaad2(0x1dc)];}get[_0x488528(0x208)](){const _0x2224a3=_0x488528,_0xabb511=this[_0x2224a3(0x1ed)][_0x2224a3(0x206)]('\x20');return 0x1===_0xabb511[_0x2224a3(0x1f8)]?this[_0x2224a3(0x1e6)](_0xabb511[0x0]):this[_0x2224a3(0x1e6)](_0xabb511[0x0])+this[_0x2224a3(0x1e6)](_0xabb511[_0xabb511[_0x2224a3(0x1f8)]-0x1]);}[_0x488528(0x1e6)](_0x45e0f5){const _0x5263d6=_0x488528;return _0x45e0f5[_0x5263d6(0x1eb)](0x0)[_0x5263d6(0x1e4)]();}}function a(_0x47852e,_0x360ff2=''){const _0x26e1a6=_0x488528;return''==(_0x360ff2=_0x360ff2[_0x26e1a6(0x219)]())?_0x46a477(_0x47852e,_0x26e1a6(0x1fc)):_0x360ff2;}class u{constructor(_0x1460ff){const _0x105fad=_0x488528;this[_0x105fad(0x202)]=_0x1460ff;}[_0x488528(0x1d0)](){const _0x5a297a=_0x488528;return _0x5a297a(0x1cf)+this[_0x5a297a(0x202)];}[_0x488528(0x20d)](){const _0x38709f=_0x488528;return _0x38709f(0x1e5)+this[_0x38709f(0x202)];}[_0x488528(0x1d2)](){const _0x1d23ae=_0x488528;return _0x1d23ae(0x21c)+this[_0x1d23ae(0x202)];}}function _0x2f08(){const _0x2ca2fd=['_locale','users-add-duplicated-id','Anonymous','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20collaboration\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','get','has','trial-license-key-reached-limit-changes','5643435EkFKao','_id','useAnonymousUser','users.colorsCount','123002dLQLtn','split','_licenseKeyCheckInterval','initials','isAnonymous','trial-license-key-reached-limit-revisions','init','users-add-invalid-id','getSelectionClass','_addAnonymousUser','getUser','licenseKeyInvalid','context','licenseKeyTrialLimit:operations','18bUXxeM','users-me-already-defined','includes','858MdBFKi','licenseKeyTrialLimit:revisions','color','trim','pluginName','licenseKeyTrialLimit:time','ck-user__marker--','users-me-missing-user','destroy','ck-user__bg-color--','getBackgroundColorClass','info','getMarkerClass','anonymous-user','trial-license-key-reached-limit-time','2435272VYgght','decorate','defineMe','_isAnonymous','530UCCYbw','licenseKey','avatar','_isMe','define','87786TPURzO','Users','licenseKeyTrial','4403ANMIxd','_lastColor','_myId','toUpperCase','ck-user__selection--','_getInitial','getOperationAuthor','161222MXrjIi','310042xaHsup','invalid-license-key','charAt','isMe','name','addUser','licenseKeyValid','users','locale','string','_getNextColor','624QuXOxu','requires','config','users.anonymousUserId','length','add'];_0x2f08=function(){return _0x2ca2fd;};return _0x2f08();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x411373,_0x2795cb){const t=_0x411373['t'];switch(_0x2795cb){case'Anonymous':return t('Anonymous');case'Yes':return t('Yes');case'No':return t('No');case'Are\x20you\x20sure?':return t('Are\x20you\x20sure?');default:return'';}}
23
+ export function getTranslation(_0x3c15a6,_0x5f56ab){const t=_0x3c15a6['t'];switch(_0x5f56ab){case'Anonymous':return t('Anonymous');case'Yes':return t('Yes');case'No':return t('No');case'Are\x20you\x20sure?':return t('Are\x20you\x20sure?');default:return'';}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0xc079(_0x4c1109,_0x753a2a){var _0x2ff622=_0x2ff6();return _0xc079=function(_0xc07906,_0xd354c9){_0xc07906=_0xc07906-0x159;var _0xd93e3c=_0x2ff622[_0xc07906];return _0xd93e3c;},_0xc079(_0x4c1109,_0x753a2a);}(function(_0x3275e5,_0x456ce2){var _0x335bc1=_0xc079,_0x1fe231=_0x3275e5();while(!![]){try{var _0x1786cd=-parseInt(_0x335bc1(0x160))/0x1*(parseInt(_0x335bc1(0x174))/0x2)+parseInt(_0x335bc1(0x168))/0x3+-parseInt(_0x335bc1(0x167))/0x4+-parseInt(_0x335bc1(0x178))/0x5*(parseInt(_0x335bc1(0x16f))/0x6)+-parseInt(_0x335bc1(0x163))/0x7*(parseInt(_0x335bc1(0x15d))/0x8)+parseInt(_0x335bc1(0x164))/0x9*(-parseInt(_0x335bc1(0x15a))/0xa)+-parseInt(_0x335bc1(0x16b))/0xb*(-parseInt(_0x335bc1(0x159))/0xc);if(_0x1786cd===_0x456ce2)break;else _0x1fe231['push'](_0x1fe231['shift']());}catch(_0x1a5d25){_0x1fe231['push'](_0x1fe231['shift']());}}}(_0x2ff6,0x5013f));function _0x2ff6(){var _0x4ce1de=['set','161tDjIEJ','197361vpnCRU','_removeConfirm','element','89080ZIoiel','1795611DYZyDO','registerChild','submit','8767UlaHzp','cancel','cancelConfirm','showConfirm','203586ZAqolB','once','locale','confirmView','remove','26gWuWWK','fire','message','focus','60dVbxaQ','8700dPtEQL','90UMnUau','deregisterChild','destroy','49016foZOKe','render','isConfirm','6203sgaBJY','appendChild'];_0x2ff6=function(){return _0x4ce1de;};return _0x2ff6();}import _0x260cc0 from'./confirmview.js';export default function m(_0x2f4007){var _0x4388b5=_0xc079;return class extends _0x2f4007{[_0x4388b5(0x16e)](_0x8532c,_0x34b75d){var _0xce152c=_0x4388b5;return this[_0xce152c(0x172)]=new _0x260cc0(this[_0xce152c(0x171)]),this[_0xce152c(0x172)][_0xce152c(0x15e)](),this[_0xce152c(0x172)][_0xce152c(0x176)]=_0x8532c,this[_0xce152c(0x172)][_0xce152c(0x170)](_0xce152c(0x16c),()=>{var _0x5e1477=_0xce152c;this[_0x5e1477(0x165)]();}),this[_0xce152c(0x172)][_0xce152c(0x170)](_0xce152c(0x16a),()=>{var _0x493fce=_0xce152c;this[_0x493fce(0x165)]();}),_0x34b75d[_0xce152c(0x161)](this[_0xce152c(0x172)][_0xce152c(0x166)]),this[_0xce152c(0x169)](this[_0xce152c(0x172)]),this[_0xce152c(0x166)][_0xce152c(0x177)](),this[_0xce152c(0x162)](_0xce152c(0x15f),!0x0),new Promise(_0x2aa56f=>this[_0xce152c(0x172)]['on'](_0xce152c(0x16a),_0x2aa56f));}[_0x4388b5(0x16d)](){var _0x1be0f5=_0x4388b5;this[_0x1be0f5(0x15f)]&&this[_0x1be0f5(0x172)][_0x1be0f5(0x175)](_0x1be0f5(0x16c));}[_0x4388b5(0x165)](){var _0x24daad=_0x4388b5;this[_0x24daad(0x166)]&&this[_0x24daad(0x172)]&&this[_0x24daad(0x172)][_0x24daad(0x166)]&&(this[_0x24daad(0x166)][_0x24daad(0x177)](),this[_0x24daad(0x172)][_0x24daad(0x166)][_0x24daad(0x173)](),this[_0x24daad(0x15b)](this[_0x24daad(0x172)]),this[_0x24daad(0x15f)]=!0x1,this[_0x24daad(0x172)][_0x24daad(0x15c)](),this[_0x24daad(0x172)]=void 0x0);}};}
23
+ (function(_0x2c485d,_0x52b1f1){var _0x11f208=_0x1626,_0xadfdf7=_0x2c485d();while(!![]){try{var _0x27ae53=parseInt(_0x11f208(0x102))/0x1+parseInt(_0x11f208(0x108))/0x2*(-parseInt(_0x11f208(0x109))/0x3)+parseInt(_0x11f208(0x106))/0x4*(-parseInt(_0x11f208(0x10e))/0x5)+parseInt(_0x11f208(0x117))/0x6*(-parseInt(_0x11f208(0xfd))/0x7)+-parseInt(_0x11f208(0xfa))/0x8+-parseInt(_0x11f208(0x100))/0x9+-parseInt(_0x11f208(0x114))/0xa*(-parseInt(_0x11f208(0xfe))/0xb);if(_0x27ae53===_0x52b1f1)break;else _0xadfdf7['push'](_0xadfdf7['shift']());}catch(_0x560a5a){_0xadfdf7['push'](_0xadfdf7['shift']());}}}(_0x2773,0xc8b74));import _0x12ba7a from'./confirmview.js';export default function m(_0x2bc760){var _0x224aed=_0x1626;return class extends _0x2bc760{[_0x224aed(0x111)](_0x12066f,_0x3ee884){var _0x381a20=_0x224aed;return this[_0x381a20(0x101)]=new _0x12ba7a(this[_0x381a20(0x116)]),this[_0x381a20(0x101)][_0x381a20(0x105)](),this[_0x381a20(0x101)][_0x381a20(0x107)]=_0x12066f,this[_0x381a20(0x101)][_0x381a20(0x113)](_0x381a20(0x10f),()=>{var _0x54c3da=_0x381a20;this[_0x54c3da(0x110)]();}),this[_0x381a20(0x101)][_0x381a20(0x113)](_0x381a20(0xfc),()=>{var _0x37abbf=_0x381a20;this[_0x37abbf(0x110)]();}),_0x3ee884[_0x381a20(0x10b)](this[_0x381a20(0x101)][_0x381a20(0x104)]),this[_0x381a20(0x10a)](this[_0x381a20(0x101)]),this[_0x381a20(0x104)][_0x381a20(0x10d)](),this[_0x381a20(0x112)](_0x381a20(0xff),!0x0),new Promise(_0x8b6289=>this[_0x381a20(0x101)]['on'](_0x381a20(0xfc),_0x8b6289));}[_0x224aed(0x10c)](){var _0x8a55fc=_0x224aed;this[_0x8a55fc(0xff)]&&this[_0x8a55fc(0x101)][_0x8a55fc(0x115)](_0x8a55fc(0x10f));}[_0x224aed(0x110)](){var _0x7537c0=_0x224aed;this[_0x7537c0(0x104)]&&this[_0x7537c0(0x101)]&&this[_0x7537c0(0x101)][_0x7537c0(0x104)]&&(this[_0x7537c0(0x104)][_0x7537c0(0x10d)](),this[_0x7537c0(0x101)][_0x7537c0(0x104)][_0x7537c0(0xfb)](),this[_0x7537c0(0x118)](this[_0x7537c0(0x101)]),this[_0x7537c0(0xff)]=!0x1,this[_0x7537c0(0x101)][_0x7537c0(0x103)](),this[_0x7537c0(0x101)]=void 0x0);}};}function _0x1626(_0x2356fd,_0x31db95){var _0x27733b=_0x2773();return _0x1626=function(_0x16268b,_0x4b61c2){_0x16268b=_0x16268b-0xfa;var _0x50bab8=_0x27733b[_0x16268b];return _0x50bab8;},_0x1626(_0x2356fd,_0x31db95);}function _0x2773(){var _0x3e7247=['confirmView','1366574YJXVEF','destroy','element','render','902684CYOjVC','message','136DkoDdC','8616yyDnxm','registerChild','appendChild','cancelConfirm','focus','25cGKjbu','cancel','_removeConfirm','showConfirm','set','once','730RgENXO','fire','locale','2118GDdwCT','deregisterChild','7294248hNcCjb','remove','submit','12523FsubyN','473539PSmFxD','isConfirm','7380630gUdyPq'];_0x2773=function(){return _0x3e7247;};return _0x2773();}