@ckeditor/ckeditor5-collaboration-core 0.0.0-nightly-20240423.0 → 0.0.0-nightly-20240425.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": "0.0.0-nightly-
|
3
|
+
"version": "0.0.0-nightly-20240425.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": "0.0.0-nightly-
|
35
|
+
"ckeditor5": "0.0.0-nightly-20240425.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(_0x48e972,_0xbaf9db){var _0x2525ea=_0x4305,_0x2ab6b7=_0x48e972();while(!![]){try{var _0x5bcb65=parseInt(_0x2525ea(0x1cf))/0x1+-parseInt(_0x2525ea(0x1cc))/0x2+parseInt(_0x2525ea(0x1d1))/0x3+parseInt(_0x2525ea(0x1d3))/0x4*(parseInt(_0x2525ea(0x1cd))/0x5)+parseInt(_0x2525ea(0x1ce))/0x6+parseInt(_0x2525ea(0x1d2))/0x7+-parseInt(_0x2525ea(0x1d0))/0x8;if(_0x5bcb65===_0xbaf9db)break;else _0x2ab6b7['push'](_0x2ab6b7['shift']());}catch(_0x236df4){_0x2ab6b7['push'](_0x2ab6b7['shift']());}}}(_0x5bb0,0x821f3));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';function _0x5bb0(){var _0x3e946c=['786706LpoOWR','5gsQzpR','6048948dKllZx','742613bGtGBb','20887320PbAMDf','390870HoHvaQ','6129669pdqdsW','3122076czkIpr'];_0x5bb0=function(){return _0x3e946c;};return _0x5bb0();}export{default as getMarkerDomElement,getAllMarkersDomElementsSorted}from'./utils/getmarkerdomelement.js';function _0x4305(_0x2caf3d,_0x4b0a7a){var _0x5bb083=_0x5bb0();return _0x4305=function(_0x4305ea,_0x2a318e){_0x4305ea=_0x4305ea-0x1cc;var _0x15465b=_0x5bb083[_0x4305ea];return _0x15465b;},_0x4305(_0x2caf3d,_0x4b0a7a);}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
|
-
|
23
|
+
const _0x4fa131=_0x61d9;(function(_0x1fa1bb,_0x17a913){const _0x5bd722=_0x61d9,_0x3d1246=_0x1fa1bb();while(!![]){try{const _0x4f38e1=parseInt(_0x5bd722(0xd3))/0x1+-parseInt(_0x5bd722(0xd2))/0x2*(parseInt(_0x5bd722(0xee))/0x3)+parseInt(_0x5bd722(0xec))/0x4*(-parseInt(_0x5bd722(0xc8))/0x5)+-parseInt(_0x5bd722(0xd6))/0x6*(-parseInt(_0x5bd722(0xdb))/0x7)+-parseInt(_0x5bd722(0xc7))/0x8*(parseInt(_0x5bd722(0xdd))/0x9)+-parseInt(_0x5bd722(0xe4))/0xa*(parseInt(_0x5bd722(0xd9))/0xb)+parseInt(_0x5bd722(0xe1))/0xc;if(_0x4f38e1===_0x17a913)break;else _0x3d1246['push'](_0x3d1246['shift']());}catch(_0x217e14){_0x3d1246['push'](_0x3d1246['shift']());}}}(_0x5302,0x2da0e));import{ContextPlugin as _0x554527,Editor as _0x36a99a}from'ckeditor5/src/core.js';import{CKEditorError as _0x2e654a}from'ckeditor5/src/utils.js';export default class n extends _0x554527{static get[_0x4fa131(0xce)](){const _0x2e43fa=_0x4fa131;return _0x2e43fa(0xda);}[_0x4fa131(0xcb)](_0x4779ae,_0x18ccf3){const _0x313b93=_0x4fa131;let _0x5a4c91;if(_0x18ccf3||(_0x18ccf3=this[_0x313b93(0xd8)][_0x313b93(0xdc)][_0x313b93(0xd5)](_0x313b93(0xde))),this[_0x313b93(0xd8)][_0x313b93(0xdc)][_0x313b93(0xd5)](_0x313b93(0xde))==_0x18ccf3?_0x5a4c91=this[_0x313b93(0xd8)]:_0x313b93(0xd4)in this[_0x313b93(0xd8)]&&this[_0x313b93(0xd8)][_0x313b93(0xd4)]&&(_0x5a4c91=this[_0x313b93(0xd8)][_0x313b93(0xd4)][_0x313b93(0xe0)](_0x491305=>_0x491305[_0x313b93(0xdc)][_0x313b93(0xd5)](_0x313b93(0xde))==_0x18ccf3)),!_0x5a4c91)throw new _0x2e654a(_0x313b93(0xe3),null);const _0x4a8dac=_0x5a4c91[_0x313b93(0xc9)],_0x517f2a=_0x4a8dac[_0x313b93(0xd0)](_0x313b93(0xeb))?_0x4a8dac[_0x313b93(0xd5)](_0x313b93(0xeb)):void 0x0,_0x4e09b2=_0x4a8dac[_0x313b93(0xd0)](_0x313b93(0xea))&&_0x4a8dac[_0x313b93(0xd5)](_0x313b93(0xea)),_0x2a20f6=_0x4779ae[_0x313b93(0xe2)](_0x313b93(0xd1)),_0x5aba23=_0x4779ae[_0x313b93(0xe2)](_0x313b93(0xe5)),_0x3e583f=_0x4779ae[_0x313b93(0xe2)](_0x313b93(0xe8)),_0x3fcc5f=_0x4779ae[_0x313b93(0xe2)](_0x313b93(0xca)),_0x64a944=_0x3fcc5f||_0x3e583f,_0x16350d=_0x64a944||_0x5aba23,_0x49d677=_0x2a20f6||_0x64a944;(_0x4e09b2&&(_0x4e09b2[_0x313b93(0xdf)]=!_0x2a20f6&&_0x16350d),_0x5a4c91 instanceof _0x36a99a)&&(!(_0x2a20f6||_0x16350d&&_0x517f2a)?_0x5a4c91[_0x313b93(0xed)](_0x313b93(0xcf)):_0x5a4c91[_0x313b93(0xd7)](_0x313b93(0xcf)));if(_0x517f2a){_0x517f2a[_0x313b93(0xcb)]({'admin':_0x3e583f,'modifyAll':_0x5aba23,'write':_0x3fcc5f,'resolve':_0x49d677},_0x18ccf3);const _0x49ece2=_0x5a4c91 instanceof _0x36a99a&&_0x5a4c91[_0x313b93(0xe7)][_0x313b93(0xd5)](_0x313b93(0xcd));_0x49ece2&&(_0x64a944?_0x49ece2[_0x313b93(0xe9)](_0x313b93(0xcc)):_0x49ece2[_0x313b93(0xe6)](_0x313b93(0xcc)));}}}function _0x61d9(_0x58456c,_0x1b6750){const _0x5302dc=_0x5302();return _0x61d9=function(_0x61d9dd,_0x18741e){_0x61d9dd=_0x61d9dd-0xc7;let _0x4bfbd6=_0x5302dc[_0x61d9dd];return _0x4bfbd6;},_0x61d9(_0x58456c,_0x1b6750);}function _0x5302(){const _0x5cbd81=['5gAoyMI','plugins','comment:write','setPermissions','noPermissions','addCommentThread','pluginName','no-permissions','has','document:write','2MjXpna','222828FfyKJs','editors','get','42420KgWdsy','disableReadOnlyMode','context','2956679vOXmYf','Permissions','350TsMufz','config','2944062AbuScc','collaboration.channelId','isEnabled','find','8109804jNLWPN','includes','permissions-set-permissions-invalid-channel-id','10UBamIp','comment:modify_all','forceDisabled','commands','comment:admin','clearForceDisabled','CommentsOnly','CommentsRepository','383412noFeza','enableReadOnlyMode','1120473qhZafy','8tpZKzE'];_0x5302=function(){return _0x5cbd81;};return _0x5302();}
|
package/src/suggestionstyles.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
(function(
|
23
|
+
(function(_0x55672b,_0x564195){var _0x595682=_0x493d,_0x3630a9=_0x55672b();while(!![]){try{var _0x497493=-parseInt(_0x595682(0x110))/0x1*(parseInt(_0x595682(0x10e))/0x2)+-parseInt(_0x595682(0x115))/0x3+-parseInt(_0x595682(0x111))/0x4+parseInt(_0x595682(0x113))/0x5*(-parseInt(_0x595682(0x10d))/0x6)+parseInt(_0x595682(0x10f))/0x7+parseInt(_0x595682(0x114))/0x8+parseInt(_0x595682(0x112))/0x9;if(_0x497493===_0x564195)break;else _0x3630a9['push'](_0x3630a9['shift']());}catch(_0x4d2e89){_0x3630a9['push'](_0x3630a9['shift']());}}}(_0x23da,0xc133c));import'../theme/suggestion.css';import'../theme/suggestionmarker.css';import'../theme/integrations/image.css';import'../theme/integrations/horizontalline.css';import'../theme/integrations/mediaembed.css';function _0x493d(_0x62146c,_0x4a2121){var _0x23dae9=_0x23da();return _0x493d=function(_0x493d8d,_0x6ff008){_0x493d8d=_0x493d8d-0x10d;var _0x4c2992=_0x23dae9[_0x493d8d];return _0x4c2992;},_0x493d(_0x62146c,_0x4a2121);}function _0x23da(){var _0x417c9f=['910740iqBsWS','647286xrXUda','1925728ZPIaHP','1WpAiwz','5726728yqkwJv','36341316PKQOiD','35rIadjM','4973688WakaJg','3976584qLzPFt'];_0x23da=function(){return _0x417c9f;};return _0x23da();}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 _0x28db(_0x19c7ab,_0x39e697){const _0x3eae83=_0x3eae();return _0x28db=function(_0x28dba9,_0x3eff8c){_0x28dba9=_0x28dba9-0x17c;let _0x414476=_0x3eae83[_0x28dba9];return _0x414476;},_0x28db(_0x19c7ab,_0x39e697);}(function(_0x21209b,_0x4bb026){const _0x47d9ad=_0x28db,_0x4e959a=_0x21209b();while(!![]){try{const _0x21adbb=-parseInt(_0x47d9ad(0x184))/0x1+-parseInt(_0x47d9ad(0x185))/0x2*(-parseInt(_0x47d9ad(0x199))/0x3)+-parseInt(_0x47d9ad(0x191))/0x4*(-parseInt(_0x47d9ad(0x18b))/0x5)+-parseInt(_0x47d9ad(0x193))/0x6+-parseInt(_0x47d9ad(0x197))/0x7+parseInt(_0x47d9ad(0x17c))/0x8+parseInt(_0x47d9ad(0x189))/0x9*(parseInt(_0x47d9ad(0x195))/0xa);if(_0x21adbb===_0x4bb026)break;else _0x4e959a['push'](_0x4e959a['shift']());}catch(_0x284956){_0x4e959a['push'](_0x4e959a['shift']());}}}(_0x3eae,0xa96b7));function _0x3eae(){const _0x52a6bd=['ck-user__avatar','push','extendTemplate','url(\x27','div','616QNpMCz','ck\x20ck-user__name\x20ck-user__name--hidden','900774dhQXgB','setTemplate','5827420UPtKSC','ck-user__notification','4222862ImJZXy','ck-user__img','2675502ueePnK','isAnonymous','5825912LUjYvN','content','ck-user','ck-user_me','ck-user__icon','name','initials','notificationView','844797HAzrSH','2rXvfKI','ck\x20ck-user__name','isMe','ck-user__anonymous','9RRqHYR','avatar','2900PpfguL'];_0x3eae=function(){return _0x52a6bd;};return _0x3eae();}import{View as _0x4d2126,IconView as _0x5f440f}from'ckeditor5/src/ui.js';import _0x19f27b from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class E extends _0x4d2126{constructor(_0x513172,_0x463e93,_0x2e8806){const _0xcb4086=_0x28db;super(_0x513172),this[_0xcb4086(0x181)]=_0x463e93[_0xcb4086(0x181)],this[_0xcb4086(0x183)]=null;const _0x583a2a=['ck',_0xcb4086(0x17e)],_0x515547=['ck',_0xcb4086(0x198)];if(_0x463e93[_0xcb4086(0x19a)]&&_0x515547[_0xcb4086(0x18d)](_0xcb4086(0x188)),!_0x463e93[_0xcb4086(0x19a)]&&_0x463e93[_0xcb4086(0x187)]&&_0x583a2a[_0xcb4086(0x18d)](_0xcb4086(0x17f)),_0x463e93[_0xcb4086(0x18a)]&&_0x515547[_0xcb4086(0x18d)](_0xcb4086(0x18c)),_0x2e8806){const _0x43b614=new _0x5f440f();_0x43b614[_0xcb4086(0x18e)]({'attributes':{'class':[_0xcb4086(0x180)]}}),_0x43b614[_0xcb4086(0x17d)]=_0x19f27b,this[_0xcb4086(0x183)]={'tag':_0xcb4086(0x190),'attributes':{'class':['ck',_0xcb4086(0x196)],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x2e8806},'children':[_0x43b614]};}const _0x387f5b=[{'tag':_0xcb4086(0x190),'attributes':{'class':_0x515547,'style':{'background-image':_0x463e93[_0xcb4086(0x18a)]?_0xcb4086(0x18f)+_0x463e93[_0xcb4086(0x18a)]+'\x27)':''}}},{'tag':_0xcb4086(0x190),'attributes':{'class':_0x463e93[_0xcb4086(0x18a)]?_0xcb4086(0x192):_0xcb4086(0x186)},'children':[{'text':_0x463e93[_0xcb4086(0x182)]}]}];this[_0xcb4086(0x183)]&&_0x387f5b[_0xcb4086(0x18d)](this[_0xcb4086(0x183)]),this[_0xcb4086(0x194)]({'tag':_0xcb4086(0x190),'attributes':{'class':_0x583a2a,'data-user-id':_0x463e93['id']},'children':_0x387f5b});}}
|
package/src/users.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x199f7c=_0x517d;(function(_0x525918,_0xe8ec88){const _0x40590b=_0x517d,_0x58cd7b=_0x525918();while(!![]){try{const _0x5de4d1=parseInt(_0x40590b(0x1dc))/0x1*(-parseInt(_0x40590b(0x1e8))/0x2)+parseInt(_0x40590b(0x1f0))/0x3+-parseInt(_0x40590b(0x1e5))/0x4*(parseInt(_0x40590b(0x1cd))/0x5)+-parseInt(_0x40590b(0x1bd))/0x6+parseInt(_0x40590b(0x201))/0x7+parseInt(_0x40590b(0x1d3))/0x8*(parseInt(_0x40590b(0x1bc))/0x9)+parseInt(_0x40590b(0x1f5))/0xa;if(_0x5de4d1===_0xe8ec88)break;else _0x58cd7b['push'](_0x58cd7b['shift']());}catch(_0x3c28cf){_0x58cd7b['push'](_0x58cd7b['shift']());}}}(_0x3225,0xe877f));import{ContextPlugin as _0x317b02}from'ckeditor5/src/core.js';import{Collection as _0x3d9f73,CKEditorError as _0x1a7a0c}from'ckeditor5/src/utils.js';import _0xf61d37 from'./permissions.js';import{getTranslation as _0x594f70}from'./utils/common-translations.js';import'../theme/usercolors.css';export default class l extends _0x317b02{static get[_0x199f7c(0x1ba)](){const _0x16caa8=_0x199f7c;return _0x16caa8(0x1d0);}static get[_0x199f7c(0x1e1)](){return[_0xf61d37];}constructor(_0x4c40d2){const _0x16c344=_0x199f7c;super(_0x4c40d2),this[_0x16c344(0x1ed)][_0x16c344(0x1c9)][_0x16c344(0x1bb)](_0x16c344(0x200),_0x16c344(0x202)),this[_0x16c344(0x1ed)][_0x16c344(0x1c9)][_0x16c344(0x1bb)](_0x16c344(0x1c2),0x8),this[_0x16c344(0x203)]=new _0x3d9f73(),this[_0x16c344(0x1f3)]=_0x4c40d2[_0x16c344(0x1e0)],this[_0x16c344(0x1bf)]=null,this[_0x16c344(0x1e4)]=0x0,this[_0x16c344(0x1eb)]=null,this[_0x16c344(0x1cc)](_0x16c344(0x1fa));}[_0x199f7c(0x1db)](){const _0x2f316c=_0x199f7c,_0x123aa2=this[_0x2f316c(0x1ed)];this[_0x2f316c(0x1ee)]=_0x123aa2[_0x2f316c(0x1c9)][_0x2f316c(0x1c1)](_0x2f316c(0x1ee));const _0x3456bd=[_0x2f316c(0x1ec),_0x2f316c(0x1fb),_0x2f316c(0x1ef),_0x2f316c(0x1d7),_0x2f316c(0x1ff),_0x2f316c(0x1b9)];this[_0x2f316c(0x1bf)]=setInterval(()=>{const _0x5a5fe2=_0x2f316c;let _0x33b360;for(const _0x485f54 in _0x123aa2){const _0x86e00a=_0x123aa2[_0x485f54];if(_0x3456bd[_0x5a5fe2(0x1cf)](_0x86e00a)){delete _0x123aa2[_0x485f54],_0x33b360=_0x86e00a;break;}}if(_0x5a5fe2(0x1fb)===_0x33b360)throw clearInterval(this[_0x5a5fe2(0x1bf)]),new _0x1a7a0c(_0x5a5fe2(0x1ea),null);if(_0x5a5fe2(0x1ec)===_0x33b360&&console[_0x5a5fe2(0x1de)](_0x5a5fe2(0x1f2)),_0x5a5fe2(0x1d7)===_0x33b360)throw clearInterval(this[_0x5a5fe2(0x1bf)]),new _0x1a7a0c(_0x5a5fe2(0x1df),null);if(_0x5a5fe2(0x1ff)===_0x33b360)throw clearInterval(this[_0x5a5fe2(0x1bf)]),new _0x1a7a0c(_0x5a5fe2(0x1c4),null);if(_0x5a5fe2(0x1b9)===_0x33b360)throw clearInterval(this[_0x5a5fe2(0x1bf)]),new _0x1a7a0c(_0x5a5fe2(0x1f8),null);_0x5a5fe2(0x1ef)===_0x33b360&&clearInterval(this[_0x5a5fe2(0x1bf)]);},0x3e8),this[_0x2f316c(0x1c7)]();}get['me'](){const _0x18d160=_0x199f7c;return null==this[_0x18d160(0x1eb)]?null:this[_0x18d160(0x1d9)](this[_0x18d160(0x1eb)]);}[_0x199f7c(0x1f7)]({id:_0x5bcfbe,name:_0xf25e0f,..._0x37db55}){const _0x2e8869=_0x199f7c;if(!_0x5bcfbe||_0x2e8869(0x1be)!=typeof _0x5bcfbe)throw new _0x1a7a0c(_0x2e8869(0x1d5));if(this[_0x2e8869(0x203)][_0x2e8869(0x1e3)](_0x5bcfbe))throw new _0x1a7a0c(_0x2e8869(0x1c3),null,{'id':_0x5bcfbe});const _0x2d62b0={..._0x37db55,'id':_0x5bcfbe,'name':a(this[_0x2e8869(0x1f3)],_0xf25e0f),'color':this[_0x2e8869(0x1ca)]()};_0x2d62b0[_0x2e8869(0x206)]=a(this[_0x2e8869(0x1f3)],_0x2d62b0[_0x2e8869(0x206)]);const _0x39cbc0=new User(_0x2d62b0);return this[_0x2e8869(0x203)][_0x2e8869(0x1e2)](_0x39cbc0),_0x39cbc0;}[_0x199f7c(0x1d9)](_0x995f3a){const _0xb64fd=_0x199f7c;return this[_0xb64fd(0x203)][_0xb64fd(0x1c1)](_0x995f3a);}[_0x199f7c(0x1d2)](){const _0x5cf5bd=_0x199f7c,_0x2f4948=this[_0x5cf5bd(0x1ed)][_0x5cf5bd(0x1c9)][_0x5cf5bd(0x1c1)](_0x5cf5bd(0x200));this[_0x5cf5bd(0x1eb)]||this[_0x5cf5bd(0x1d4)](_0x2f4948);}[_0x199f7c(0x1d4)](_0x490675){const _0x5a8490=_0x199f7c;if(this[_0x5a8490(0x1eb)])throw new _0x1a7a0c(_0x5a8490(0x205),null);const _0x47e5f5=this[_0x5a8490(0x1d9)](_0x490675);if(!_0x47e5f5)throw new _0x1a7a0c(_0x5a8490(0x1e7),null);this[_0x5a8490(0x1eb)]=_0x490675,_0x47e5f5[_0x5a8490(0x1d6)]=!0x0;}[_0x199f7c(0x1fa)](){return this['me'];}[_0x199f7c(0x1c6)](){const _0x4136e3=_0x199f7c;super[_0x4136e3(0x1c6)](),clearInterval(this[_0x4136e3(0x1bf)]);}[_0x199f7c(0x1ca)](){const _0x550192=_0x199f7c,_0x162380=this[_0x550192(0x1ed)][_0x550192(0x1c9)][_0x550192(0x1c1)](_0x550192(0x1c2));return this[_0x550192(0x1e4)]>=_0x162380&&(this[_0x550192(0x1e4)]=0x0),new u(this[_0x550192(0x1e4)]++);}[_0x199f7c(0x1c7)](){const _0x18a85f=_0x199f7c,_0x422e19=this[_0x18a85f(0x1ed)][_0x18a85f(0x1c9)][_0x18a85f(0x1c1)](_0x18a85f(0x200));this[_0x18a85f(0x1f7)]({'id':_0x422e19,'name':_0x594f70(this[_0x18a85f(0x1f3)],_0x18a85f(0x1f1))})[_0x18a85f(0x1da)]=!0x0;}}function _0x517d(_0x11fbce,_0xe9dfa5){const _0x322514=_0x3225();return _0x517d=function(_0x517dd6,_0x5a987a){_0x517dd6=_0x517dd6-0x1b9;let _0x5e436f=_0x322514[_0x517dd6];return _0x5e436f;},_0x517d(_0x11fbce,_0xe9dfa5);}export class User{constructor(_0x45e83d){const _0x2f6cb9=_0x199f7c;this['id']=_0x45e83d['id'],this[_0x2f6cb9(0x1dd)]=_0x45e83d[_0x2f6cb9(0x1dd)],this[_0x2f6cb9(0x206)]=_0x45e83d[_0x2f6cb9(0x206)],this[_0x2f6cb9(0x1fe)]=_0x45e83d[_0x2f6cb9(0x1fe)],this[_0x2f6cb9(0x1da)]=!0x1,this[_0x2f6cb9(0x1d6)]=!0x1;}get[_0x199f7c(0x1ce)](){const _0x1ff886=_0x199f7c;return this[_0x1ff886(0x1da)];}get[_0x199f7c(0x1e9)](){const _0x296e24=_0x199f7c;return this[_0x296e24(0x1d6)];}get[_0x199f7c(0x1fc)](){const _0x306f25=_0x199f7c,_0x573a66=this[_0x306f25(0x206)][_0x306f25(0x1f9)]('\x20');return 0x1===_0x573a66[_0x306f25(0x1d8)]?this[_0x306f25(0x1fd)](_0x573a66[0x0]):this[_0x306f25(0x1fd)](_0x573a66[0x0])+this[_0x306f25(0x1fd)](_0x573a66[_0x573a66[_0x306f25(0x1d8)]-0x1]);}[_0x199f7c(0x1fd)](_0xadc970){const _0x168705=_0x199f7c;return _0xadc970[_0x168705(0x1cb)](0x0)[_0x168705(0x1c5)]();}}function a(_0xe16a68,_0x3f8743=''){const _0x5f4ad5=_0x199f7c;return''==(_0x3f8743=_0x3f8743[_0x5f4ad5(0x1d1)]())?_0x594f70(_0xe16a68,_0x5f4ad5(0x1f1)):_0x3f8743;}class u{constructor(_0x1a2f39){const _0x268dcf=_0x199f7c;this[_0x268dcf(0x204)]=_0x1a2f39;}[_0x199f7c(0x1e6)](){const _0x18a6c8=_0x199f7c;return _0x18a6c8(0x1c8)+this[_0x18a6c8(0x204)];}[_0x199f7c(0x1f4)](){const _0x11fc6a=_0x199f7c;return _0x11fc6a(0x1f6)+this[_0x11fc6a(0x204)];}[_0x199f7c(0x207)](){const _0x37d778=_0x199f7c;return _0x37d778(0x1c0)+this[_0x37d778(0x204)];}}function _0x3225(){const _0x3b1d30=['get','users.colorsCount','users-add-duplicated-id','trial-license-key-reached-limit-time','toUpperCase','destroy','_addAnonymousUser','ck-user__bg-color--','config','_getNextColor','charAt','decorate','15SccMYi','isAnonymous','includes','Users','trim','useAnonymousUser','1066344NnWlgY','defineMe','users-add-invalid-id','_isMe','licenseKeyTrialLimit:operations','length','getUser','_isAnonymous','init','771943WGdYIO','color','info','trial-license-key-reached-limit-changes','locale','requires','add','has','_lastColor','1844204iuLRRd','getBackgroundColorClass','users-me-missing-user','2kPXsnE','isMe','invalid-license-key','_myId','licenseKeyTrial','context','licenseKey','licenseKeyValid','265935yJjnff','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.','_locale','getSelectionClass','22273230vuIGQr','ck-user__selection--','addUser','trial-license-key-reached-limit-revisions','split','getOperationAuthor','licenseKeyInvalid','initials','_getInitial','avatar','licenseKeyTrialLimit:time','users.anonymousUserId','263578lyFqJW','anonymous-user','users','_id','users-me-already-defined','name','getMarkerClass','licenseKeyTrialLimit:revisions','pluginName','define','90ZjgPyx','3475590SoXhgP','string','_licenseKeyCheckInterval','ck-user__marker--'];_0x3225=function(){return _0x3b1d30;};return _0x3225();}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
export function getTranslation(
|
23
|
+
export function getTranslation(_0x4d8044,_0xa90276){const t=_0x4d8044['t'];switch(_0xa90276){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(
|
23
|
+
(function(_0x1eb22c,_0x15763d){var _0x43a8dc=_0x45b7,_0x3b40e2=_0x1eb22c();while(!![]){try{var _0x1d5105=-parseInt(_0x43a8dc(0xd3))/0x1*(parseInt(_0x43a8dc(0xd9))/0x2)+-parseInt(_0x43a8dc(0xe1))/0x3+-parseInt(_0x43a8dc(0xc3))/0x4*(-parseInt(_0x43a8dc(0xd0))/0x5)+-parseInt(_0x43a8dc(0xc4))/0x6*(-parseInt(_0x43a8dc(0xc8))/0x7)+-parseInt(_0x43a8dc(0xd2))/0x8*(-parseInt(_0x43a8dc(0xc6))/0x9)+-parseInt(_0x43a8dc(0xe2))/0xa*(-parseInt(_0x43a8dc(0xcb))/0xb)+parseInt(_0x43a8dc(0xd6))/0xc*(-parseInt(_0x43a8dc(0xce))/0xd);if(_0x1d5105===_0x15763d)break;else _0x3b40e2['push'](_0x3b40e2['shift']());}catch(_0x271953){_0x3b40e2['push'](_0x3b40e2['shift']());}}}(_0x4451,0x6bcd9));import _0x2a3731 from'./confirmview.js';export default function m(_0x1ef003){var _0x133acb=_0x45b7;return class extends _0x1ef003{[_0x133acb(0xcd)](_0x4aa903,_0x4d71ac){var _0x5c0e69=_0x133acb;return this[_0x5c0e69(0xd1)]=new _0x2a3731(this[_0x5c0e69(0xe0)]),this[_0x5c0e69(0xd1)][_0x5c0e69(0xde)](),this[_0x5c0e69(0xd1)][_0x5c0e69(0xc7)]=_0x4aa903,this[_0x5c0e69(0xd1)][_0x5c0e69(0xd8)](_0x5c0e69(0xd4),()=>{var _0x2bbbd6=_0x5c0e69;this[_0x2bbbd6(0xca)]();}),this[_0x5c0e69(0xd1)][_0x5c0e69(0xd8)](_0x5c0e69(0xd7),()=>{var _0xb37452=_0x5c0e69;this[_0xb37452(0xca)]();}),_0x4d71ac[_0x5c0e69(0xdc)](this[_0x5c0e69(0xd1)][_0x5c0e69(0xcc)]),this[_0x5c0e69(0xcf)](this[_0x5c0e69(0xd1)]),this[_0x5c0e69(0xcc)][_0x5c0e69(0xd5)](),this[_0x5c0e69(0xdb)](_0x5c0e69(0xdd),!0x0),new Promise(_0x26d64c=>this[_0x5c0e69(0xd1)]['on'](_0x5c0e69(0xd7),_0x26d64c));}[_0x133acb(0xdf)](){var _0x49d446=_0x133acb;this[_0x49d446(0xdd)]&&this[_0x49d446(0xd1)][_0x49d446(0xda)](_0x49d446(0xd4));}[_0x133acb(0xca)](){var _0xc75b21=_0x133acb;this[_0xc75b21(0xcc)]&&this[_0xc75b21(0xd1)]&&this[_0xc75b21(0xd1)][_0xc75b21(0xcc)]&&(this[_0xc75b21(0xcc)][_0xc75b21(0xd5)](),this[_0xc75b21(0xd1)][_0xc75b21(0xcc)][_0xc75b21(0xc5)](),this[_0xc75b21(0xe3)](this[_0xc75b21(0xd1)]),this[_0xc75b21(0xdd)]=!0x1,this[_0xc75b21(0xd1)][_0xc75b21(0xc9)](),this[_0xc75b21(0xd1)]=void 0x0);}};}function _0x45b7(_0x5e4c13,_0x139f38){var _0x4451c2=_0x4451();return _0x45b7=function(_0x45b7f7,_0x27f179){_0x45b7f7=_0x45b7f7-0xc3;var _0x54285d=_0x4451c2[_0x45b7f7];return _0x54285d;},_0x45b7(_0x5e4c13,_0x139f38);}function _0x4451(){var _0x2e9cd1=['isConfirm','render','cancelConfirm','locale','527940ntrPLA','28140VyroUi','deregisterChild','1384jRzpUU','258BqfWdQ','remove','9sNZlyC','message','67753jcDspr','destroy','_removeConfirm','2981KmQcSf','element','showConfirm','26HNjXyN','registerChild','10740ipSvbA','confirmView','1979976QbnHRT','368909jhaRYm','cancel','focus','7098276LYWuIl','submit','once','2uWLbtN','fire','set','appendChild'];_0x4451=function(){return _0x2e9cd1;};return _0x4451();}
|