@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.
- package/dist/index-content.css +332 -0
- package/dist/index-editor.css +312 -0
- package/dist/index.css +935 -0
- package/dist/index.js +23 -0
- package/dist/translations/af.d.ts +8 -0
- package/dist/translations/af.js +23 -0
- package/dist/translations/af.umd.js +23 -0
- package/dist/translations/ar.d.ts +8 -0
- package/dist/translations/ar.js +23 -0
- package/dist/translations/ar.umd.js +23 -0
- package/dist/translations/az.d.ts +8 -0
- package/dist/translations/az.js +23 -0
- package/dist/translations/az.umd.js +23 -0
- package/dist/translations/bg.d.ts +8 -0
- package/dist/translations/bg.js +23 -0
- package/dist/translations/bg.umd.js +23 -0
- package/dist/translations/bn.d.ts +8 -0
- package/dist/translations/bn.js +23 -0
- package/dist/translations/bn.umd.js +23 -0
- package/dist/translations/bs.d.ts +8 -0
- package/dist/translations/bs.js +23 -0
- package/dist/translations/bs.umd.js +23 -0
- package/dist/translations/ca.d.ts +8 -0
- package/dist/translations/ca.js +23 -0
- package/dist/translations/ca.umd.js +23 -0
- package/dist/translations/cs.d.ts +8 -0
- package/dist/translations/cs.js +23 -0
- package/dist/translations/cs.umd.js +23 -0
- package/dist/translations/da.d.ts +8 -0
- package/dist/translations/da.js +23 -0
- package/dist/translations/da.umd.js +23 -0
- package/dist/translations/de-ch.d.ts +8 -0
- package/dist/translations/de-ch.js +23 -0
- package/dist/translations/de-ch.umd.js +23 -0
- package/dist/translations/de.d.ts +8 -0
- package/dist/translations/de.js +23 -0
- package/dist/translations/de.umd.js +23 -0
- package/dist/translations/el.d.ts +8 -0
- package/dist/translations/el.js +23 -0
- package/dist/translations/el.umd.js +23 -0
- package/dist/translations/en-au.d.ts +8 -0
- package/dist/translations/en-au.js +23 -0
- package/dist/translations/en-au.umd.js +23 -0
- package/dist/translations/en.d.ts +8 -0
- package/dist/translations/en.js +23 -0
- package/dist/translations/en.umd.js +23 -0
- package/dist/translations/es-co.d.ts +8 -0
- package/dist/translations/es-co.js +23 -0
- package/dist/translations/es-co.umd.js +23 -0
- package/dist/translations/es.d.ts +8 -0
- package/dist/translations/es.js +23 -0
- package/dist/translations/es.umd.js +23 -0
- package/dist/translations/et.d.ts +8 -0
- package/dist/translations/et.js +23 -0
- package/dist/translations/et.umd.js +23 -0
- package/dist/translations/fa.d.ts +8 -0
- package/dist/translations/fa.js +23 -0
- package/dist/translations/fa.umd.js +23 -0
- package/dist/translations/fi.d.ts +8 -0
- package/dist/translations/fi.js +23 -0
- package/dist/translations/fi.umd.js +23 -0
- package/dist/translations/fr.d.ts +8 -0
- package/dist/translations/fr.js +23 -0
- package/dist/translations/fr.umd.js +23 -0
- package/dist/translations/gl.d.ts +8 -0
- package/dist/translations/gl.js +23 -0
- package/dist/translations/gl.umd.js +23 -0
- package/dist/translations/he.d.ts +8 -0
- package/dist/translations/he.js +23 -0
- package/dist/translations/he.umd.js +23 -0
- package/dist/translations/hi.d.ts +8 -0
- package/dist/translations/hi.js +23 -0
- package/dist/translations/hi.umd.js +23 -0
- package/dist/translations/hr.d.ts +8 -0
- package/dist/translations/hr.js +23 -0
- package/dist/translations/hr.umd.js +23 -0
- package/dist/translations/hu.d.ts +8 -0
- package/dist/translations/hu.js +23 -0
- package/dist/translations/hu.umd.js +23 -0
- package/dist/translations/id.d.ts +8 -0
- package/dist/translations/id.js +23 -0
- package/dist/translations/id.umd.js +23 -0
- package/dist/translations/it.d.ts +8 -0
- package/dist/translations/it.js +23 -0
- package/dist/translations/it.umd.js +23 -0
- package/dist/translations/ja.d.ts +8 -0
- package/dist/translations/ja.js +23 -0
- package/dist/translations/ja.umd.js +23 -0
- package/dist/translations/jv.d.ts +8 -0
- package/dist/translations/jv.js +23 -0
- package/dist/translations/jv.umd.js +23 -0
- package/dist/translations/ko.d.ts +8 -0
- package/dist/translations/ko.js +23 -0
- package/dist/translations/ko.umd.js +23 -0
- package/dist/translations/lt.d.ts +8 -0
- package/dist/translations/lt.js +23 -0
- package/dist/translations/lt.umd.js +23 -0
- package/dist/translations/lv.d.ts +8 -0
- package/dist/translations/lv.js +23 -0
- package/dist/translations/lv.umd.js +23 -0
- package/dist/translations/ms.d.ts +8 -0
- package/dist/translations/ms.js +23 -0
- package/dist/translations/ms.umd.js +23 -0
- package/dist/translations/nl.d.ts +8 -0
- package/dist/translations/nl.js +23 -0
- package/dist/translations/nl.umd.js +23 -0
- package/dist/translations/no.d.ts +8 -0
- package/dist/translations/no.js +23 -0
- package/dist/translations/no.umd.js +23 -0
- package/dist/translations/pl.d.ts +8 -0
- package/dist/translations/pl.js +23 -0
- package/dist/translations/pl.umd.js +23 -0
- package/dist/translations/pt-br.d.ts +8 -0
- package/dist/translations/pt-br.js +23 -0
- package/dist/translations/pt-br.umd.js +23 -0
- package/dist/translations/pt.d.ts +8 -0
- package/dist/translations/pt.js +23 -0
- package/dist/translations/pt.umd.js +23 -0
- package/dist/translations/ro.d.ts +8 -0
- package/dist/translations/ro.js +23 -0
- package/dist/translations/ro.umd.js +23 -0
- package/dist/translations/ru.d.ts +8 -0
- package/dist/translations/ru.js +23 -0
- package/dist/translations/ru.umd.js +23 -0
- package/dist/translations/sk.d.ts +8 -0
- package/dist/translations/sk.js +23 -0
- package/dist/translations/sk.umd.js +23 -0
- package/dist/translations/sr-latn.d.ts +8 -0
- package/dist/translations/sr-latn.js +23 -0
- package/dist/translations/sr-latn.umd.js +23 -0
- package/dist/translations/sr.d.ts +8 -0
- package/dist/translations/sr.js +23 -0
- package/dist/translations/sr.umd.js +23 -0
- package/dist/translations/sv.d.ts +8 -0
- package/dist/translations/sv.js +23 -0
- package/dist/translations/sv.umd.js +23 -0
- package/dist/translations/th.d.ts +8 -0
- package/dist/translations/th.js +23 -0
- package/dist/translations/th.umd.js +23 -0
- package/dist/translations/tk.d.ts +8 -0
- package/dist/translations/tk.js +23 -0
- package/dist/translations/tk.umd.js +23 -0
- package/dist/translations/tr.d.ts +8 -0
- package/dist/translations/tr.js +23 -0
- package/dist/translations/tr.umd.js +23 -0
- package/dist/translations/tt.d.ts +8 -0
- package/dist/translations/tt.js +23 -0
- package/dist/translations/tt.umd.js +23 -0
- package/dist/translations/ug.d.ts +8 -0
- package/dist/translations/ug.js +23 -0
- package/dist/translations/ug.umd.js +23 -0
- package/dist/translations/uk.d.ts +8 -0
- package/dist/translations/uk.js +23 -0
- package/dist/translations/uk.umd.js +23 -0
- package/dist/translations/ur.d.ts +8 -0
- package/dist/translations/ur.js +23 -0
- package/dist/translations/ur.umd.js +23 -0
- package/dist/translations/vi.d.ts +8 -0
- package/dist/translations/vi.js +23 -0
- package/dist/translations/vi.umd.js +23 -0
- package/dist/translations/zh-cn.d.ts +8 -0
- package/dist/translations/zh-cn.js +23 -0
- package/dist/translations/zh-cn.umd.js +23 -0
- package/dist/translations/zh.d.ts +8 -0
- package/dist/translations/zh.js +23 -0
- package/dist/translations/zh.umd.js +23 -0
- package/dist/types/augmentation.d.ts +42 -0
- package/dist/types/collaborationhistory.d.ts +25 -0
- package/dist/types/collaborationoperation.d.ts +32 -0
- package/dist/types/config.d.ts +106 -0
- package/dist/types/index.d.ts +23 -0
- package/dist/types/permissions.d.ts +50 -0
- package/dist/types/suggestionstyles.d.ts +16 -0
- package/dist/types/users/view/userview.d.ts +20 -0
- package/dist/types/users.d.ts +169 -0
- package/dist/types/utils/common-translations.d.ts +13 -0
- package/dist/types/utils/confirmmixin.d.ts +24 -0
- package/dist/types/utils/confirmview.d.ts +17 -0
- package/dist/types/utils/getdatetimeformatter.d.ts +33 -0
- package/dist/types/utils/getmarkerdomelement.d.ts +26 -0
- package/dist/types/utils/hashobject.d.ts +12 -0
- package/dist/types/utils/sanitizeEditorConfig.d.ts +19 -0
- package/dist/types/utils/surroundingmarkersdetector.d.ts +20 -0
- package/dist/types/utils/trim-html.d.ts +20 -0
- package/package.json +3 -2
- package/src/index.d.ts +2 -2
- package/src/index.js +1 -1
- package/src/permissions.js +1 -1
- package/src/suggestionstyles.js +1 -1
- package/src/users/view/userview.js +1 -1
- package/src/users.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/confirmmixin.js +1 -1
- package/src/utils/confirmview.js +1 -1
- package/src/utils/getdatetimeformatter.js +1 -1
- package/src/utils/getmarkerdomelement.js +1 -1
- package/src/utils/hashobject.js +1 -1
- package/src/utils/sanitizeEditorConfig.js +1 -1
- package/src/utils/surroundingmarkersdetector.js +1 -1
- 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
|
+
"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.
|
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(
|
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';
|
package/src/permissions.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
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)));}}}
|
package/src/suggestionstyles.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
(function(
|
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(
|
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
|
-
|
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(
|
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
|
-
|
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();}
|