@ckeditor/ckeditor5-collaboration-core 0.0.0-internal-20241017.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/CHANGELOG.md +4 -0
- package/LICENSE.md +23 -0
- package/README.md +35 -0
- package/dist/augmentation.d.ts +42 -0
- package/dist/collaborationhistory.d.ts +25 -0
- package/dist/collaborationoperation.d.ts +32 -0
- package/dist/config.d.ts +106 -0
- package/dist/index-content.css +470 -0
- package/dist/index-editor.css +426 -0
- package/dist/index.css +1080 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.js +23 -0
- package/dist/legacyerrors.d.ts +33 -0
- package/dist/permissions.d.ts +58 -0
- package/dist/suggestions/view/ariadescriptionview.d.ts +27 -0
- package/dist/suggestions/view/latefocusbuttonview.d.ts +41 -0
- package/dist/suggestionstyles.d.ts +18 -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/users/view/userview.d.ts +20 -0
- package/dist/users.d.ts +172 -0
- package/dist/utils/common-translations.d.ts +13 -0
- package/dist/utils/confirmmixin.d.ts +28 -0
- package/dist/utils/confirmview.d.ts +33 -0
- package/dist/utils/getdatetimeformatter.d.ts +33 -0
- package/dist/utils/getmarkerdomelement.d.ts +26 -0
- package/dist/utils/hashobject.d.ts +12 -0
- package/dist/utils/sanitizeEditorConfig.d.ts +19 -0
- package/dist/utils/setupthreadkeyboardnavigation.d.ts +49 -0
- package/dist/utils/surroundingmarkersdetector.d.ts +20 -0
- package/dist/utils/trim-html.d.ts +23 -0
- package/lang/contexts.json +6 -0
- package/lang/translations/af.po +34 -0
- package/lang/translations/ar.po +34 -0
- package/lang/translations/az.po +34 -0
- package/lang/translations/bg.po +34 -0
- package/lang/translations/bn.po +34 -0
- package/lang/translations/bs.po +34 -0
- package/lang/translations/ca.po +34 -0
- package/lang/translations/cs.po +34 -0
- package/lang/translations/da.po +34 -0
- package/lang/translations/de-ch.po +34 -0
- package/lang/translations/de.po +34 -0
- package/lang/translations/el.po +34 -0
- package/lang/translations/en-au.po +34 -0
- package/lang/translations/en.po +34 -0
- package/lang/translations/es-co.po +34 -0
- package/lang/translations/es.po +34 -0
- package/lang/translations/et.po +34 -0
- package/lang/translations/fa.po +34 -0
- package/lang/translations/fi.po +34 -0
- package/lang/translations/fr.po +34 -0
- package/lang/translations/gl.po +34 -0
- package/lang/translations/he.po +34 -0
- package/lang/translations/hi.po +34 -0
- package/lang/translations/hr.po +34 -0
- package/lang/translations/hu.po +34 -0
- package/lang/translations/id.po +34 -0
- package/lang/translations/it.po +34 -0
- package/lang/translations/ja.po +34 -0
- package/lang/translations/jv.po +34 -0
- package/lang/translations/ko.po +34 -0
- package/lang/translations/lt.po +34 -0
- package/lang/translations/lv.po +34 -0
- package/lang/translations/ms.po +34 -0
- package/lang/translations/nl.po +34 -0
- package/lang/translations/no.po +34 -0
- package/lang/translations/pl.po +34 -0
- package/lang/translations/pt-br.po +34 -0
- package/lang/translations/pt.po +34 -0
- package/lang/translations/ro.po +34 -0
- package/lang/translations/ru.po +34 -0
- package/lang/translations/sk.po +34 -0
- package/lang/translations/sr-latn.po +34 -0
- package/lang/translations/sr.po +34 -0
- package/lang/translations/sv.po +34 -0
- package/lang/translations/th.po +34 -0
- package/lang/translations/tk.po +34 -0
- package/lang/translations/tr.po +34 -0
- package/lang/translations/tt.po +34 -0
- package/lang/translations/ug.po +34 -0
- package/lang/translations/uk.po +34 -0
- package/lang/translations/ur.po +34 -0
- package/lang/translations/vi.po +34 -0
- package/lang/translations/zh-cn.po +34 -0
- package/lang/translations/zh.po +34 -0
- package/package.json +52 -0
- package/src/augmentation.d.ts +38 -0
- package/src/augmentation.js +23 -0
- package/src/collaborationhistory.d.ts +21 -0
- package/src/collaborationhistory.js +23 -0
- package/src/collaborationoperation.d.ts +28 -0
- package/src/collaborationoperation.js +23 -0
- package/src/config.d.ts +102 -0
- package/src/config.js +23 -0
- package/src/index.d.ts +22 -0
- package/src/index.js +23 -0
- package/src/legacyerrors.d.ts +29 -0
- package/src/legacyerrors.js +23 -0
- package/src/permissions.d.ts +54 -0
- package/src/permissions.js +23 -0
- package/src/suggestions/view/ariadescriptionview.d.ts +23 -0
- package/src/suggestions/view/ariadescriptionview.js +23 -0
- package/src/suggestions/view/latefocusbuttonview.d.ts +37 -0
- package/src/suggestions/view/latefocusbuttonview.js +23 -0
- package/src/suggestionstyles.d.ts +14 -0
- package/src/suggestionstyles.js +23 -0
- package/src/users/view/userview.d.ts +16 -0
- package/src/users/view/userview.js +23 -0
- package/src/users.d.ts +168 -0
- package/src/users.js +23 -0
- package/src/utils/common-translations.d.ts +9 -0
- package/src/utils/common-translations.js +23 -0
- package/src/utils/confirmmixin.d.ts +24 -0
- package/src/utils/confirmmixin.js +23 -0
- package/src/utils/confirmview.d.ts +29 -0
- package/src/utils/confirmview.js +23 -0
- package/src/utils/getdatetimeformatter.d.ts +29 -0
- package/src/utils/getdatetimeformatter.js +23 -0
- package/src/utils/getmarkerdomelement.d.ts +22 -0
- package/src/utils/getmarkerdomelement.js +23 -0
- package/src/utils/hashobject.d.ts +8 -0
- package/src/utils/hashobject.js +23 -0
- package/src/utils/sanitizeEditorConfig.d.ts +15 -0
- package/src/utils/sanitizeEditorConfig.js +23 -0
- package/src/utils/setupthreadkeyboardnavigation.d.ts +45 -0
- package/src/utils/setupthreadkeyboardnavigation.js +23 -0
- package/src/utils/surroundingmarkersdetector.d.ts +16 -0
- package/src/utils/surroundingmarkersdetector.js +23 -0
- package/src/utils/trim-html.d.ts +19 -0
- package/src/utils/trim-html.js +23 -0
- package/theme/ariadescription.css +12 -0
- package/theme/icons/notification.svg +11 -0
- package/theme/integrations/codeblock.css +17 -0
- package/theme/integrations/horizontalline.css +24 -0
- package/theme/integrations/image.css +66 -0
- package/theme/integrations/mediaembed.css +28 -0
- package/theme/integrations/mergefields.css +67 -0
- package/theme/integrations/pagebreak.css +24 -0
- package/theme/integrations/table.css +200 -0
- package/theme/suggestion.css +131 -0
- package/theme/suggestionmarker.css +162 -0
- package/theme/usercolormixin.css +41 -0
- package/theme/usercolors.css +49 -0
- package/theme/users.css +110 -0
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
* @module collaboration-core/permissions
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { ContextPlugin } from 'ckeditor5/src/core.js';
|
|
10
|
+
/**
|
|
11
|
+
* The `Permissions` plugin manages permissions set for the local user.
|
|
12
|
+
*
|
|
13
|
+
* Following is the list of all defined permissions:
|
|
14
|
+
*
|
|
15
|
+
* * `document:write` - modify the content of the document, and resolve comment threads created by any user,
|
|
16
|
+
* * `comment:write` - create, edit and remove own comments and create, remove own comment threads,
|
|
17
|
+
* and resolve comment threads created by any user,
|
|
18
|
+
* * `comment:admin` - resolve and remove comment threads created by other users (enables `comment:write`).
|
|
19
|
+
* * `comment:modify_all` - edit and remove any comments created by other users.
|
|
20
|
+
*
|
|
21
|
+
* For example, a user with `comment:write` permission but with no `document:write` permission will be able to add
|
|
22
|
+
* comments but will not be able to change the document data (comments-only mode).
|
|
23
|
+
*
|
|
24
|
+
* By default, the following permissions are set: `document:write`, `comment:write`, `comment:admin`.
|
|
25
|
+
*
|
|
26
|
+
* Permissions are handled separately for each channel id (for each editor instance and context instance).
|
|
27
|
+
*
|
|
28
|
+
* See also the {@glink features/collaboration/users#user-permissions User permissions} guide to learn how to use this plugin.
|
|
29
|
+
*/
|
|
30
|
+
export default class Permissions extends ContextPlugin {
|
|
31
|
+
/**
|
|
32
|
+
* @inheritDoc
|
|
33
|
+
*/
|
|
34
|
+
static get pluginName(): "Permissions";
|
|
35
|
+
/**
|
|
36
|
+
* @inheritDoc
|
|
37
|
+
*/
|
|
38
|
+
static get isOfficialPlugin(): true;
|
|
39
|
+
/**
|
|
40
|
+
* @inheritDoc
|
|
41
|
+
*/
|
|
42
|
+
static get isPremiumPlugin(): true;
|
|
43
|
+
/**
|
|
44
|
+
* Sets permissions for editor/context instance with given `channelId`.
|
|
45
|
+
*
|
|
46
|
+
* If `channelId` is not set, the channel id of the editor/context to which the plugin was added will be used.
|
|
47
|
+
* This means that it is not required if the plugin is added to the editor configuration and {@link module:core/context~Context}
|
|
48
|
+
* is not used.
|
|
49
|
+
*
|
|
50
|
+
* @param permissions Permissions to set.
|
|
51
|
+
* @param channelId The channel ID.
|
|
52
|
+
*/
|
|
53
|
+
setPermissions(permissions: Array<string>, channelId?: string): void;
|
|
54
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x9eef4c=_0x2f03;(function(_0x26c106,_0x846055){const _0x98290a=_0x2f03,_0x158532=_0x26c106();while(!![]){try{const _0x3a4c18=parseInt(_0x98290a(0xff))/0x1*(-parseInt(_0x98290a(0xfa))/0x2)+-parseInt(_0x98290a(0x105))/0x3*(-parseInt(_0x98290a(0xf5))/0x4)+-parseInt(_0x98290a(0x111))/0x5+parseInt(_0x98290a(0x110))/0x6+parseInt(_0x98290a(0x10c))/0x7+-parseInt(_0x98290a(0xeb))/0x8*(-parseInt(_0x98290a(0x109))/0x9)+-parseInt(_0x98290a(0xfc))/0xa;if(_0x3a4c18===_0x846055)break;else _0x158532['push'](_0x158532['shift']());}catch(_0x3ef127){_0x158532['push'](_0x158532['shift']());}}}(_0x4bf9,0x71ab9));function _0x4bf9(){const _0x555304=['3cXudID','addCommentThread','get','find','207jTxqjU','disableReadOnlyMode','isEnabled','2566907kEbyqq','comment:write','comment:modify_all','no-permissions','3675498acJJCU','703935sEWUox','plugins','148424YzdCYw','noPermissions','forceDisabled','CommentsOnly','clearForceDisabled','config','CommentsRepository','isOfficialPlugin','collaboration.channelId','commands','2447464WbedLq','isPremiumPlugin','includes','editors','Permissions','12szUGWv','pluginName','11393050VgLcLZ','permissions-set-permissions-invalid-channel-id','enableReadOnlyMode','45364esjVna','has','comment:admin','setPermissions','context','document:write'];_0x4bf9=function(){return _0x555304;};return _0x4bf9();}import{ContextPlugin as _0xbd22f7,Editor as _0x186f57}from'ckeditor5/src/core.js';function _0x2f03(_0x234ae9,_0x9ea0e1){const _0x4bf9d2=_0x4bf9();return _0x2f03=function(_0x2f030e,_0x3e6fad){_0x2f030e=_0x2f030e-0xeb;let _0x3799f8=_0x4bf9d2[_0x2f030e];return _0x3799f8;},_0x2f03(_0x234ae9,_0x9ea0e1);}import{CKEditorError as _0xefa2c1}from'ckeditor5/src/utils.js';export default class o extends _0xbd22f7{static get[_0x9eef4c(0xfb)](){const _0x2c7744=_0x9eef4c;return _0x2c7744(0xf9);}static get[_0x9eef4c(0xf2)](){return!0x0;}static get[_0x9eef4c(0xf6)](){return!0x0;}[_0x9eef4c(0x102)](_0x4aef63,_0x2b738e){const _0x53fa38=_0x9eef4c;let _0x2918a0;if(_0x2b738e||(_0x2b738e=this[_0x53fa38(0x103)][_0x53fa38(0xf0)][_0x53fa38(0x107)](_0x53fa38(0xf3))),this[_0x53fa38(0x103)][_0x53fa38(0xf0)][_0x53fa38(0x107)](_0x53fa38(0xf3))==_0x2b738e?_0x2918a0=this[_0x53fa38(0x103)]:_0x53fa38(0xf8)in this[_0x53fa38(0x103)]&&this[_0x53fa38(0x103)][_0x53fa38(0xf8)]&&(_0x2918a0=this[_0x53fa38(0x103)][_0x53fa38(0xf8)][_0x53fa38(0x108)](_0xf68b47=>_0xf68b47[_0x53fa38(0xf0)][_0x53fa38(0x107)](_0x53fa38(0xf3))==_0x2b738e)),!_0x2918a0)throw new _0xefa2c1(_0x53fa38(0xfd),null);const _0x56ed73=_0x2918a0[_0x53fa38(0x112)],_0x15af95=_0x56ed73[_0x53fa38(0x100)](_0x53fa38(0xf1))?_0x56ed73[_0x53fa38(0x107)](_0x53fa38(0xf1)):void 0x0,_0x39a52c=_0x56ed73[_0x53fa38(0x100)](_0x53fa38(0xee))&&_0x56ed73[_0x53fa38(0x107)](_0x53fa38(0xee)),_0x574680=_0x4aef63[_0x53fa38(0xf7)](_0x53fa38(0x104)),_0xf5137f=_0x4aef63[_0x53fa38(0xf7)](_0x53fa38(0x10e)),_0x395c8c=_0x4aef63[_0x53fa38(0xf7)](_0x53fa38(0x101)),_0xd2774b=_0x4aef63[_0x53fa38(0xf7)](_0x53fa38(0x10d)),_0x278c75=_0xd2774b||_0x395c8c,_0xede0b7=_0x278c75||_0xf5137f,_0x3ec19b=_0x574680||_0x278c75;(_0x39a52c&&(_0x39a52c[_0x53fa38(0x10b)]=!_0x574680&&_0xede0b7),_0x2918a0 instanceof _0x186f57)&&(!(_0x574680||_0xede0b7&&_0x15af95)?_0x2918a0[_0x53fa38(0xfe)](_0x53fa38(0x10f)):_0x2918a0[_0x53fa38(0x10a)](_0x53fa38(0x10f)));if(_0x15af95){_0x15af95[_0x53fa38(0x102)]({'admin':_0x395c8c,'modifyAll':_0xf5137f,'write':_0xd2774b,'resolve':_0x3ec19b},_0x2b738e);const _0x35ab1d=_0x2918a0 instanceof _0x186f57&&_0x2918a0[_0x53fa38(0xf4)][_0x53fa38(0x107)](_0x53fa38(0x106));_0x35ab1d&&(_0x278c75?_0x35ab1d[_0x53fa38(0xef)](_0x53fa38(0xec)):_0x35ab1d[_0x53fa38(0xed)](_0x53fa38(0xec)));}}}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
* @module collaboration-core/suggestions/view/ariadescriptionview
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
10
|
+
import { View } from 'ckeditor5/src/ui.js';
|
|
11
|
+
/**
|
|
12
|
+
* The view class (container) for a text referenced by a `aria-describedby` attribute.
|
|
13
|
+
*/
|
|
14
|
+
export default class AriaDescriptionView extends View {
|
|
15
|
+
readonly id: string;
|
|
16
|
+
/**
|
|
17
|
+
* Creates an instance of `AriaDescriptionView`.
|
|
18
|
+
*
|
|
19
|
+
* @param locale Locale instance.
|
|
20
|
+
* @param description Plaintext description of the element.
|
|
21
|
+
*/
|
|
22
|
+
constructor(locale: Locale, description: string);
|
|
23
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
function _0x3def(){var _0x10500e=['ck-aria-description','145xMAFbv','64xDdyjy','2523647eBmizm','setTemplate','28958yuOpuE','4917414vRGXQc','ck-aria-description-','span','27BjCMtD','2289870eWEWPy','50888ZNceFa','23317690UFvWPG','626992xcLkpH'];_0x3def=function(){return _0x10500e;};return _0x3def();}function _0x2c44(_0x1c2d04,_0x3b3efc){var _0x3defd5=_0x3def();return _0x2c44=function(_0x2c446a,_0xf7183){_0x2c446a=_0x2c446a-0x134;var _0x4d3bec=_0x3defd5[_0x2c446a];return _0x4d3bec;},_0x2c44(_0x1c2d04,_0x3b3efc);}(function(_0x36d659,_0x143a95){var _0x13929c=_0x2c44,_0x40e24b=_0x36d659();while(!![]){try{var _0x3b4d68=-parseInt(_0x13929c(0x140))/0x1*(parseInt(_0x13929c(0x13d))/0x2)+-parseInt(_0x13929c(0x137))/0x3+-parseInt(_0x13929c(0x138))/0x4*(parseInt(_0x13929c(0x13c))/0x5)+parseInt(_0x13929c(0x141))/0x6+-parseInt(_0x13929c(0x13e))/0x7+parseInt(_0x13929c(0x13a))/0x8*(-parseInt(_0x13929c(0x136))/0x9)+parseInt(_0x13929c(0x139))/0xa;if(_0x3b4d68===_0x143a95)break;else _0x40e24b['push'](_0x40e24b['shift']());}catch(_0x40bd75){_0x40e24b['push'](_0x40e24b['shift']());}}}(_0x3def,0x794ab));import{uid as _0x5cbf07}from'ckeditor5/src/utils.js';import{View as _0x1ac236}from'ckeditor5/src/ui.js';export default class G extends _0x1ac236{constructor(_0x2c79ed,_0x4f990d){var _0x1a169b=_0x2c44;super(_0x2c79ed),this['id']=_0x1a169b(0x134)+_0x5cbf07(),this[_0x1a169b(0x13f)]({'tag':_0x1a169b(0x135),'attributes':{'class':['ck',_0x1a169b(0x13b)],'id':this['id']},'children':[{'text':_0x4f990d}]});}}
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
* @module collaboration-core/suggestions/view/latefocusbuttonview
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { ButtonView, DropdownButtonView } from 'ckeditor5/src/ui.js';
|
|
10
|
+
/**
|
|
11
|
+
* The view class representing a button that becomes focused on `mouseup` rather than on `mousedown`.
|
|
12
|
+
*
|
|
13
|
+
* This is to delay any "on focus" actions (like e.g. activating annotation) until the user released mouse down,
|
|
14
|
+
* so that button related actions happen before focus related actions.
|
|
15
|
+
*
|
|
16
|
+
* Also, see {@link module:collaboration-core/suggestions/view/latefocusbuttonview~LateFocusDropdownButtonView}.
|
|
17
|
+
*/
|
|
18
|
+
export declare class LateFocusButtonView extends ButtonView {
|
|
19
|
+
/**
|
|
20
|
+
* @inheritDoc
|
|
21
|
+
*/
|
|
22
|
+
render(): void;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The view class representing a dropdown button that becomes focused on `mouseup` rather than on `mousedown`.
|
|
26
|
+
*
|
|
27
|
+
* This is to delay any "on focus" actions (like e.g. activating annotation) until the user released mouse key,
|
|
28
|
+
* so that button related actions happen before focus related actions.
|
|
29
|
+
*
|
|
30
|
+
* Also, see {@link module:collaboration-core/suggestions/view/latefocusbuttonview~LateFocusButtonView}.
|
|
31
|
+
*/
|
|
32
|
+
export declare class LateFocusDropdownButtonView extends DropdownButtonView {
|
|
33
|
+
/**
|
|
34
|
+
* @inheritDoc
|
|
35
|
+
*/
|
|
36
|
+
render(): void;
|
|
37
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
function _0x331c(){var _0x5179f4=['mouseup','render','11ZVgBst','17152695hmtwiR','listenTo','44599584DLkJXE','focus','1587816WgFnxO','28ubZecX','14975580OsSYPn','1075188WNqupM','552470nxoQvG','stopPropagation','element','29730lispGL','mousedown','preventDefault','21qmtYul','30LnNmqH','12hfNaJU'];_0x331c=function(){return _0x5179f4;};return _0x331c();}var _0x1f1bbd=_0x1e8a;(function(_0x4da7ec,_0x400578){var _0x39777b=_0x1e8a,_0x11cec1=_0x4da7ec();while(!![]){try{var _0x44d1a5=-parseInt(_0x39777b(0x1e8))/0x1*(-parseInt(_0x39777b(0x1ec))/0x2)+parseInt(_0x39777b(0x1eb))/0x3*(parseInt(_0x39777b(0x1e4))/0x4)+parseInt(_0x39777b(0x1e5))/0x5*(-parseInt(_0x39777b(0x1ed))/0x6)+-parseInt(_0x39777b(0x1f6))/0x7*(parseInt(_0x39777b(0x1f5))/0x8)+parseInt(_0x39777b(0x1f1))/0x9+parseInt(_0x39777b(0x1e3))/0xa+parseInt(_0x39777b(0x1f0))/0xb*(-parseInt(_0x39777b(0x1f3))/0xc);if(_0x44d1a5===_0x400578)break;else _0x11cec1['push'](_0x11cec1['shift']());}catch(_0x1c1c0b){_0x11cec1['push'](_0x11cec1['shift']());}}}(_0x331c,0xf3ff6));import{ButtonView as _0x4bf632,DropdownButtonView as _0x4db42c}from'ckeditor5/src/ui.js';function _0x1e8a(_0x30d637,_0xce757e){var _0x331c0c=_0x331c();return _0x1e8a=function(_0x1e8a18,_0x57a6ad){_0x1e8a18=_0x1e8a18-0x1e3;var _0x12a0c0=_0x331c0c[_0x1e8a18];return _0x12a0c0;},_0x1e8a(_0x30d637,_0xce757e);}export class LateFocusButtonView extends _0x4bf632{[_0x1f1bbd(0x1ef)](){var _0x1d4b08=_0x1f1bbd;super[_0x1d4b08(0x1ef)](),V(this);}}export class LateFocusDropdownButtonView extends _0x4db42c{[_0x1f1bbd(0x1ef)](){var _0x40db00=_0x1f1bbd;super[_0x40db00(0x1ef)](),V(this);}}function V(_0xaa78f8){var _0x1f8482=_0x1f1bbd;_0xaa78f8[_0x1f8482(0x1f2)](_0xaa78f8[_0x1f8482(0x1e7)],_0x1f8482(0x1e9),(_0x3f940f,_0x10d946)=>{var _0x17c435=_0x1f8482;_0x10d946[_0x17c435(0x1e6)](),_0x10d946[_0x17c435(0x1ea)]();}),_0xaa78f8[_0x1f8482(0x1f2)](_0xaa78f8[_0x1f8482(0x1e7)],_0x1f8482(0x1ee),()=>{var _0x28991f=_0x1f8482;_0xaa78f8[_0x28991f(0x1e7)][_0x28991f(0x1f4)]();});}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
import '../theme/suggestion.css';
|
|
6
|
+
import '../theme/suggestionmarker.css';
|
|
7
|
+
import '../theme/ariadescription.css';
|
|
8
|
+
import '../theme/integrations/image.css';
|
|
9
|
+
import '../theme/integrations/horizontalline.css';
|
|
10
|
+
import '../theme/integrations/mediaembed.css';
|
|
11
|
+
import '../theme/integrations/mergefields.css';
|
|
12
|
+
import '../theme/integrations/pagebreak.css';
|
|
13
|
+
import '../theme/integrations/table.css';
|
|
14
|
+
import '../theme/integrations/codeblock.css';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
(function(_0x45a5b8,_0x5e6171){var _0x45b896=_0x1d5d,_0x53766a=_0x45a5b8();while(!![]){try{var _0x11df6e=-parseInt(_0x45b896(0x1b4))/0x1*(-parseInt(_0x45b896(0x1b8))/0x2)+parseInt(_0x45b896(0x1b9))/0x3+-parseInt(_0x45b896(0x1b7))/0x4*(parseInt(_0x45b896(0x1bd))/0x5)+parseInt(_0x45b896(0x1b6))/0x6+parseInt(_0x45b896(0x1ba))/0x7+parseInt(_0x45b896(0x1be))/0x8*(parseInt(_0x45b896(0x1bc))/0x9)+parseInt(_0x45b896(0x1b5))/0xa*(-parseInt(_0x45b896(0x1bb))/0xb);if(_0x11df6e===_0x5e6171)break;else _0x53766a['push'](_0x53766a['shift']());}catch(_0x3a974c){_0x53766a['push'](_0x53766a['shift']());}}}(_0x42ce,0xc76c5));function _0x42ce(){var _0x30b0cb=['24zcYaTF','935901qxxKgz','5082434qoeqhG','2518241KgzmiA','36EwANcJ','45CvmUZz','2265112FAZeYU','57811DjBYsJ','130vhzaPu','7185474lYZmUe','119536ePzHfp'];_0x42ce=function(){return _0x30b0cb;};return _0x42ce();}import'../theme/suggestion.css';import'../theme/suggestionmarker.css';function _0x1d5d(_0x590cfc,_0x32e816){var _0x42ced5=_0x42ce();return _0x1d5d=function(_0x1d5d87,_0x1efd2f){_0x1d5d87=_0x1d5d87-0x1b4;var _0x507ce3=_0x42ced5[_0x1d5d87];return _0x507ce3;},_0x1d5d(_0x590cfc,_0x32e816);}import'../theme/ariadescription.css';import'../theme/integrations/image.css';import'../theme/integrations/horizontalline.css';import'../theme/integrations/mediaembed.css';import'../theme/integrations/mergefields.css';import'../theme/integrations/pagebreak.css';import'../theme/integrations/table.css';import'../theme/integrations/codeblock.css';
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
* @module collaboration-core/users/view/userview
|
|
7
|
+
*/
|
|
8
|
+
import { View, type TemplateDefinition } from 'ckeditor5/src/ui.js';
|
|
9
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
10
|
+
import type { User } from '../../users.js';
|
|
11
|
+
import '../../../theme/users.css';
|
|
12
|
+
export default class UserView extends View {
|
|
13
|
+
name: string;
|
|
14
|
+
notificationView: TemplateDefinition | null;
|
|
15
|
+
constructor(locale: Locale, user: User, notificationText?: null | string);
|
|
16
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
(function(_0x5ab7d3,_0x2c0987){const _0x5aa08b=_0x3c63,_0x4b4b93=_0x5ab7d3();while(!![]){try{const _0x2c9753=-parseInt(_0x5aa08b(0x19b))/0x1*(parseInt(_0x5aa08b(0x198))/0x2)+parseInt(_0x5aa08b(0x191))/0x3+-parseInt(_0x5aa08b(0x189))/0x4+parseInt(_0x5aa08b(0x192))/0x5*(parseInt(_0x5aa08b(0x188))/0x6)+-parseInt(_0x5aa08b(0x186))/0x7+-parseInt(_0x5aa08b(0x185))/0x8*(-parseInt(_0x5aa08b(0x18f))/0x9)+parseInt(_0x5aa08b(0x19a))/0xa;if(_0x2c9753===_0x2c0987)break;else _0x4b4b93['push'](_0x4b4b93['shift']());}catch(_0x1ca046){_0x4b4b93['push'](_0x4b4b93['shift']());}}}(_0x3878,0x7d7db));function _0x3878(){const _0x265820=['isMe','content','div','8YfrRlx','2275518Zzjjvy','setTemplate','1819026CmVtVu','1891920pxMZRd','ck-user__anonymous','avatar','ck-user__icon','initials','ck-user_me','3548034teRDHG','notificationView','2670915ZiLKcq','5FhlKLg','ck-user__notification','ck-user','ck\x20ck-user__name\x20ck-user__name--hidden','url(\x27','extendTemplate','8HAhlcW','name','6116990UtniJJ','221834giCCCm','push','ck-user__img','ck-user__avatar','ck\x20ck-user__name','isAnonymous'];_0x3878=function(){return _0x265820;};return _0x3878();}import{View as _0x3fec43,IconView as _0x2458cb}from'ckeditor5/src/ui.js';import _0xd50b82 from'../../../theme/icons/notification.svg';function _0x3c63(_0x38bd80,_0xc5e2c8){const _0x387867=_0x3878();return _0x3c63=function(_0x3c6312,_0x576745){_0x3c6312=_0x3c6312-0x181;let _0x2e8ade=_0x387867[_0x3c6312];return _0x2e8ade;},_0x3c63(_0x38bd80,_0xc5e2c8);}import'../../../theme/users.css';export default class J extends _0x3fec43{constructor(_0x4a7d93,_0x2d39d8,_0xea3617){const _0x54013c=_0x3c63;super(_0x4a7d93),this[_0x54013c(0x199)]=_0x2d39d8[_0x54013c(0x199)],this[_0x54013c(0x190)]=null;const _0x54f876=['ck',_0x54013c(0x194)],_0xc141e1=['ck',_0x54013c(0x19d)];if(_0x2d39d8[_0x54013c(0x181)]&&_0xc141e1[_0x54013c(0x19c)](_0x54013c(0x18a)),!_0x2d39d8[_0x54013c(0x181)]&&_0x2d39d8[_0x54013c(0x182)]&&_0x54f876[_0x54013c(0x19c)](_0x54013c(0x18e)),_0x2d39d8[_0x54013c(0x18b)]&&_0xc141e1[_0x54013c(0x19c)](_0x54013c(0x19e)),_0xea3617){const _0x378abc=new _0x2458cb();_0x378abc[_0x54013c(0x197)]({'attributes':{'class':[_0x54013c(0x18c)]}}),_0x378abc[_0x54013c(0x183)]=_0xd50b82,this[_0x54013c(0x190)]={'tag':_0x54013c(0x184),'attributes':{'class':['ck',_0x54013c(0x193)],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0xea3617},'children':[_0x378abc]};}const _0x14070f=[{'tag':_0x54013c(0x184),'attributes':{'class':_0xc141e1,'style':{'background-image':_0x2d39d8[_0x54013c(0x18b)]?_0x54013c(0x196)+_0x2d39d8[_0x54013c(0x18b)]+'\x27)':''}}},{'tag':_0x54013c(0x184),'attributes':{'class':_0x2d39d8[_0x54013c(0x18b)]?_0x54013c(0x195):_0x54013c(0x19f),'aria-label':_0x2d39d8[_0x54013c(0x199)]},'children':[{'text':_0x2d39d8[_0x54013c(0x18d)]}]}];this[_0x54013c(0x190)]&&_0x14070f[_0x54013c(0x19c)](this[_0x54013c(0x190)]),this[_0x54013c(0x187)]({'tag':_0x54013c(0x184),'attributes':{'class':_0x54f876,'data-user-id':_0x2d39d8['id']},'children':_0x14070f});}}
|
package/src/users.d.ts
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
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
|
+
* @module collaboration-core/users
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core.js';
|
|
10
|
+
import { Collection } from 'ckeditor5/src/utils.js';
|
|
11
|
+
import Permissions from './permissions.js';
|
|
12
|
+
import '../theme/usercolors.css';
|
|
13
|
+
/**
|
|
14
|
+
* The `Users` plugin provides the basic interface for setting and getting users involved in the document editing process.
|
|
15
|
+
*/
|
|
16
|
+
export default class Users extends ContextPlugin {
|
|
17
|
+
/**
|
|
18
|
+
* Holds all {@link module:collaboration-core/users~User users} added to the editor.
|
|
19
|
+
*
|
|
20
|
+
* Note, that the {@link module:collaboration-core/users~User#isAnonymous anonymous user} is always present in the editor.
|
|
21
|
+
* You may want to filter it out when processing the users lists.
|
|
22
|
+
*
|
|
23
|
+
* ```ts
|
|
24
|
+
* for ( const user of editor.plugins.get( 'Users' ).users ) {
|
|
25
|
+
* if ( !user.isAnonymous ) {
|
|
26
|
+
* console.log( user.name );
|
|
27
|
+
* }
|
|
28
|
+
* }
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* Use {@link #addUser} to add a new user.
|
|
32
|
+
*/
|
|
33
|
+
readonly users: Collection<User>;
|
|
34
|
+
/**
|
|
35
|
+
* @inheritDoc
|
|
36
|
+
*/
|
|
37
|
+
static get pluginName(): "Users";
|
|
38
|
+
/**
|
|
39
|
+
* @inheritDoc
|
|
40
|
+
*/
|
|
41
|
+
static get isOfficialPlugin(): true;
|
|
42
|
+
/**
|
|
43
|
+
* @inheritDoc
|
|
44
|
+
*/
|
|
45
|
+
static get isPremiumPlugin(): true;
|
|
46
|
+
/**
|
|
47
|
+
* @inheritDoc
|
|
48
|
+
*/
|
|
49
|
+
static get requires(): readonly [typeof Permissions];
|
|
50
|
+
/**
|
|
51
|
+
* @inheritDoc
|
|
52
|
+
*/
|
|
53
|
+
constructor(context: Context | Editor);
|
|
54
|
+
/**
|
|
55
|
+
* @inheritDoc
|
|
56
|
+
*/
|
|
57
|
+
init(): void;
|
|
58
|
+
/**
|
|
59
|
+
* A reference to the local user or `null` if it has not been set.
|
|
60
|
+
*/
|
|
61
|
+
get me(): User | null;
|
|
62
|
+
/**
|
|
63
|
+
* Adds a new user to the list of users.
|
|
64
|
+
*/
|
|
65
|
+
addUser({ id, name, ...additionalData }: Partial<UserData>): User;
|
|
66
|
+
/**
|
|
67
|
+
* Returns the user with a given ID.
|
|
68
|
+
*/
|
|
69
|
+
getUser(id: string): User | null;
|
|
70
|
+
/**
|
|
71
|
+
* Sets an {@link module:collaboration-core/users~User#isAnonymous anonymous user} as {@link #me the local user}.
|
|
72
|
+
*
|
|
73
|
+
* The local user ID will be set to the value of `config.users.anonymousUserId` property. All actions performed by the local user
|
|
74
|
+
* will be contributed to the anonymous user.
|
|
75
|
+
*/
|
|
76
|
+
useAnonymousUser(): void;
|
|
77
|
+
/**
|
|
78
|
+
* Sets the user with the given ID as the local user ({@link #me}).
|
|
79
|
+
*
|
|
80
|
+
* The local user can be only set once (this includes setting anonymous as the local user).
|
|
81
|
+
*/
|
|
82
|
+
defineMe(userId: string): void;
|
|
83
|
+
/**
|
|
84
|
+
* Returns the author of the operation. It returns {@link #me} by default if it is not overwritten.
|
|
85
|
+
*/
|
|
86
|
+
getOperationAuthor(): User | null;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* The representation of a single user that is involved in document editing.
|
|
90
|
+
*/
|
|
91
|
+
export declare class User {
|
|
92
|
+
/**
|
|
93
|
+
* The ID of the user.
|
|
94
|
+
*/
|
|
95
|
+
id: string;
|
|
96
|
+
/**
|
|
97
|
+
* CSS colors classes object for the user.
|
|
98
|
+
*/
|
|
99
|
+
color: Color;
|
|
100
|
+
/**
|
|
101
|
+
* The name of the user.
|
|
102
|
+
*/
|
|
103
|
+
name: string;
|
|
104
|
+
/**
|
|
105
|
+
* The URL pointing to the image with the avatar of the user.
|
|
106
|
+
*
|
|
107
|
+
* If avatar is not set, default avatar is used.
|
|
108
|
+
*/
|
|
109
|
+
avatar: string | undefined;
|
|
110
|
+
/**
|
|
111
|
+
* @param data User data.
|
|
112
|
+
* @param data.id The ID of the user.
|
|
113
|
+
* @param data.color A helper object to generate CSS classes with the user color in the UI.
|
|
114
|
+
* @param data.name The name of the user.
|
|
115
|
+
* @param data.avatar The URL to the user avatar.
|
|
116
|
+
*/
|
|
117
|
+
constructor(data: UserData);
|
|
118
|
+
/**
|
|
119
|
+
* Is `true` for the anonymous user, `false` otherwise.
|
|
120
|
+
*
|
|
121
|
+
* The anonymous user is used when there is no defined user for given resource.
|
|
122
|
+
*
|
|
123
|
+
* The situations when the anonymous user is used will depend on your application. For example, it can be used when the editor can be
|
|
124
|
+
* used by "guest" users of your application, or when the original user's account was removed.
|
|
125
|
+
*/
|
|
126
|
+
get isAnonymous(): boolean;
|
|
127
|
+
/**
|
|
128
|
+
* Is `true` for the {@link module:collaboration-core/users~Users#me local user}.
|
|
129
|
+
*/
|
|
130
|
+
get isMe(): boolean;
|
|
131
|
+
/**
|
|
132
|
+
* The initials of the user.
|
|
133
|
+
*
|
|
134
|
+
* The initials are composed from the user name's first and last words:
|
|
135
|
+
*
|
|
136
|
+
* * for `Joe Doe`, the initials are `JD`,
|
|
137
|
+
* * for `Anonymous` the initials are `A`,
|
|
138
|
+
* * for `Katie John-Newman` the initials are `KJ`,
|
|
139
|
+
* * for `Adam Daniel Smith` the initials are `AS`.
|
|
140
|
+
*/
|
|
141
|
+
get initials(): string;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* The color object used to generate specified CSS classes with an individual color number assigned to the user.
|
|
145
|
+
*/
|
|
146
|
+
declare class Color {
|
|
147
|
+
constructor(colorId: number);
|
|
148
|
+
/**
|
|
149
|
+
* Returns CSS class for user avatar background color.
|
|
150
|
+
*/
|
|
151
|
+
getBackgroundColorClass(): string;
|
|
152
|
+
/**
|
|
153
|
+
* Returns CSS class for user selection highlight (the selected range).
|
|
154
|
+
*/
|
|
155
|
+
getSelectionClass(): string;
|
|
156
|
+
/**
|
|
157
|
+
* Returns CSS class for user caret position element (the pipe).
|
|
158
|
+
*/
|
|
159
|
+
getMarkerClass(): string;
|
|
160
|
+
}
|
|
161
|
+
type UserData = {
|
|
162
|
+
id: string;
|
|
163
|
+
color: Color;
|
|
164
|
+
name: string;
|
|
165
|
+
avatar?: string;
|
|
166
|
+
_isAnonymous?: boolean;
|
|
167
|
+
};
|
|
168
|
+
export {};
|
package/src/users.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0xd20a4f=_0x40b6;(function(_0x5f3800,_0x2e3614){const _0x2030f2=_0x40b6,_0x4cf5bb=_0x5f3800();while(!![]){try{const _0x5b0c82=parseInt(_0x2030f2(0x90))/0x1+parseInt(_0x2030f2(0x84))/0x2*(-parseInt(_0x2030f2(0x7e))/0x3)+parseInt(_0x2030f2(0x95))/0x4+-parseInt(_0x2030f2(0x97))/0x5+-parseInt(_0x2030f2(0x9d))/0x6*(-parseInt(_0x2030f2(0xb4))/0x7)+parseInt(_0x2030f2(0x7d))/0x8*(-parseInt(_0x2030f2(0x9c))/0x9)+parseInt(_0x2030f2(0xa3))/0xa*(-parseInt(_0x2030f2(0xa7))/0xb);if(_0x5b0c82===_0x2e3614)break;else _0x4cf5bb['push'](_0x4cf5bb['shift']());}catch(_0x371bb7){_0x4cf5bb['push'](_0x4cf5bb['shift']());}}}(_0x5e47,0xc9e76));import{ContextPlugin as _0x1534e9}from'ckeditor5/src/core.js';import{Collection as _0x40547e,CKEditorError as _0x39a66d}from'ckeditor5/src/utils.js';import _0x575ba5 from'./permissions.js';function _0x40b6(_0xa91573,_0xbc3fb1){const _0x5e477e=_0x5e47();return _0x40b6=function(_0x40b630,_0x21b4b2){_0x40b630=_0x40b630-0x7c;let _0x4b927b=_0x5e477e[_0x40b630];return _0x4b927b;},_0x40b6(_0xa91573,_0xbc3fb1);}import{getTranslation as _0x1f7177}from'./utils/common-translations.js';import'../theme/usercolors.css';export default class u extends _0x1534e9{static get[_0xd20a4f(0xac)](){const _0x35c04b=_0xd20a4f;return _0x35c04b(0x8b);}static get[_0xd20a4f(0xa2)](){return!0x0;}static get[_0xd20a4f(0x91)](){return!0x0;}static get[_0xd20a4f(0xb2)](){return[_0x575ba5];}constructor(_0x20c820){const _0x238b8f=_0xd20a4f;super(_0x20c820),this[_0x238b8f(0xaf)][_0x238b8f(0x8d)][_0x238b8f(0xa0)](_0x238b8f(0xa8),_0x238b8f(0xa5)),this[_0x238b8f(0xaf)][_0x238b8f(0x8d)][_0x238b8f(0xa0)](_0x238b8f(0x9b),0x8),this[_0x238b8f(0x7f)]=new _0x40547e(),this[_0x238b8f(0xbc)]=_0x20c820[_0x238b8f(0xad)],this[_0x238b8f(0x98)]=0x0,this[_0x238b8f(0xba)]=null,this[_0x238b8f(0x81)](_0x238b8f(0x89));}[_0xd20a4f(0xb0)](){const _0x5f325a=_0xd20a4f;this[_0x5f325a(0xb3)]();}get['me'](){const _0xf11304=_0xd20a4f;return null==this[_0xf11304(0xba)]?null:this[_0xf11304(0x96)](this[_0xf11304(0xba)]);}[_0xd20a4f(0xbd)]({id:_0x2f9e57,name:_0x391c91,..._0x405931}){const _0x5aa2e9=_0xd20a4f;if(!_0x2f9e57||_0x5aa2e9(0x87)!=typeof _0x2f9e57)throw new _0x39a66d(_0x5aa2e9(0x9a));if(this[_0x5aa2e9(0x7f)][_0x5aa2e9(0xab)](_0x2f9e57))throw new _0x39a66d(_0x5aa2e9(0xaa),null,{'id':_0x2f9e57});const _0x582aef={..._0x405931,'id':_0x2f9e57,'name':h(this[_0x5aa2e9(0xbc)],_0x391c91),'color':this[_0x5aa2e9(0x9e)]()};_0x582aef[_0x5aa2e9(0xb7)]=h(this[_0x5aa2e9(0xbc)],_0x582aef[_0x5aa2e9(0xb7)]);const _0x24b4e1=new User(_0x582aef);return this[_0x5aa2e9(0x7f)][_0x5aa2e9(0xa1)](_0x24b4e1),_0x24b4e1;}[_0xd20a4f(0x96)](_0x1490ea){const _0x7ed463=_0xd20a4f;return this[_0x7ed463(0x7f)][_0x7ed463(0x8e)](_0x1490ea);}[_0xd20a4f(0xa9)](){const _0x2264a3=_0xd20a4f,_0x2f2679=this[_0x2264a3(0xaf)][_0x2264a3(0x8d)][_0x2264a3(0x8e)](_0x2264a3(0xa8));this[_0x2264a3(0xba)]||this[_0x2264a3(0x8f)](_0x2f2679);}[_0xd20a4f(0x8f)](_0x4bd746){const _0x1db4c1=_0xd20a4f;if(this[_0x1db4c1(0xba)])throw new _0x39a66d(_0x1db4c1(0x7c),null);const _0xa8dec4=this[_0x1db4c1(0x96)](_0x4bd746);if(!_0xa8dec4)throw new _0x39a66d(_0x1db4c1(0x9f),null);this[_0x1db4c1(0xba)]=_0x4bd746,_0xa8dec4[_0x1db4c1(0xb9)]=!0x0;}[_0xd20a4f(0x89)](){return this['me'];}[_0xd20a4f(0x9e)](){const _0x37a39d=_0xd20a4f,_0x133176=this[_0x37a39d(0xaf)][_0x37a39d(0x8d)][_0x37a39d(0x8e)](_0x37a39d(0x9b));return this[_0x37a39d(0x98)]>=_0x133176&&(this[_0x37a39d(0x98)]=0x0),new c(this[_0x37a39d(0x98)]++);}[_0xd20a4f(0xb3)](){const _0x123c0a=_0xd20a4f,_0xc1c3df=this[_0x123c0a(0xaf)][_0x123c0a(0x8d)][_0x123c0a(0x8e)](_0x123c0a(0xa8));this[_0x123c0a(0xbd)]({'id':_0xc1c3df,'name':_0x1f7177(this[_0x123c0a(0xbc)],_0x123c0a(0x80))})[_0x123c0a(0x99)]=!0x0;}}function _0x5e47(){const _0x596d66=['75031vMrOrG','users.anonymousUserId','useAnonymousUser','users-add-duplicated-id','has','pluginName','locale','getBackgroundColorClass','context','init','split','requires','_addAnonymousUser','161mowtpz','_getInitial','ck-user__selection--','name','_id','_isMe','_myId','trim','_locale','addUser','users-me-already-defined','104FEyezz','2169QyFkXZ','users','Anonymous','decorate','ck-user__marker--','avatar','178aNpOac','length','isMe','string','color','getOperationAuthor','isAnonymous','Users','ck-user__bg-color--','config','get','defineMe','1512525wyBHbo','isPremiumPlugin','getMarkerClass','initials','charAt','62576KBWcJX','getUser','2512205xvMkAT','_lastColor','_isAnonymous','users-add-invalid-id','users.colorsCount','179829vIeAMU','322746MtMfpi','_getNextColor','users-me-missing-user','define','add','isOfficialPlugin','1630kGhJKg','getSelectionClass','anonymous-user','toUpperCase'];_0x5e47=function(){return _0x596d66;};return _0x5e47();}export class User{constructor(_0x5b672d){const _0x1b3df8=_0xd20a4f;this['id']=_0x5b672d['id'],this[_0x1b3df8(0x88)]=_0x5b672d[_0x1b3df8(0x88)],this[_0x1b3df8(0xb7)]=_0x5b672d[_0x1b3df8(0xb7)],this[_0x1b3df8(0x83)]=_0x5b672d[_0x1b3df8(0x83)],this[_0x1b3df8(0x99)]=!0x1,this[_0x1b3df8(0xb9)]=!0x1;}get[_0xd20a4f(0x8a)](){const _0x6918c6=_0xd20a4f;return this[_0x6918c6(0x99)];}get[_0xd20a4f(0x86)](){const _0x29475d=_0xd20a4f;return this[_0x29475d(0xb9)];}get[_0xd20a4f(0x93)](){const _0x127d17=_0xd20a4f,_0x3b05f6=this[_0x127d17(0xb7)][_0x127d17(0xb1)]('\x20');return 0x1===_0x3b05f6[_0x127d17(0x85)]?this[_0x127d17(0xb5)](_0x3b05f6[0x0]):this[_0x127d17(0xb5)](_0x3b05f6[0x0])+this[_0x127d17(0xb5)](_0x3b05f6[_0x3b05f6[_0x127d17(0x85)]-0x1]);}[_0xd20a4f(0xb5)](_0x38bd85){const _0x5cae50=_0xd20a4f;return _0x38bd85[_0x5cae50(0x94)](0x0)[_0x5cae50(0xa6)]();}}function h(_0x2973bd,_0x2382df=''){const _0x3c1be0=_0xd20a4f;return''==(_0x2382df=_0x2382df[_0x3c1be0(0xbb)]())?_0x1f7177(_0x2973bd,_0x3c1be0(0x80)):_0x2382df;}class c{constructor(_0x519241){const _0x5c4312=_0xd20a4f;this[_0x5c4312(0xb8)]=_0x519241;}[_0xd20a4f(0xae)](){const _0x10f806=_0xd20a4f;return _0x10f806(0x8c)+this[_0x10f806(0xb8)];}[_0xd20a4f(0xa4)](){const _0x1c9b49=_0xd20a4f;return _0x1c9b49(0xb6)+this[_0x1c9b49(0xb8)];}[_0xd20a4f(0x92)](){const _0x36e2fc=_0xd20a4f;return _0x36e2fc(0x82)+this[_0x36e2fc(0xb8)];}}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
* @module collaboration-core/utils/common-translations
|
|
7
|
+
*/
|
|
8
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
export declare function getTranslation(locale: Locale, id: string): string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export function getTranslation(_0x4e0de9,_0x16d9f4){const t=_0x4e0de9['t'];switch(_0x16d9f4){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'';}}
|
|
@@ -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
|
+
* @module collaboration-core/utils/confirmmixin
|
|
7
|
+
*/
|
|
8
|
+
import type { View } from 'ckeditor5/src/ui.js';
|
|
9
|
+
import type { Locale, Mixed } from 'ckeditor5/src/utils.js';
|
|
10
|
+
/**
|
|
11
|
+
* Adds interface for showing confirmation view in the specific for `CommentThreadView` and `CommentView` structure
|
|
12
|
+
* Confirm is always set to the `content` collection at the last position.
|
|
13
|
+
*/
|
|
14
|
+
export default function ConfirmMixin<Base extends new (...args: Array<any>) => View>(base: Base): Mixed<Base, ConfirmApi>;
|
|
15
|
+
export interface ConfirmApi {
|
|
16
|
+
isConfirm: boolean;
|
|
17
|
+
locale: Locale;
|
|
18
|
+
showConfirm(message: string, element: Element): Promise<unknown>;
|
|
19
|
+
cancelConfirm(): void;
|
|
20
|
+
}
|
|
21
|
+
export type RemoveConfirmEvent = {
|
|
22
|
+
name: 'removeConfirm';
|
|
23
|
+
args: [];
|
|
24
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
(function(_0x3eab06,_0x220238){var _0x46b47c=_0x2a34,_0x5b2142=_0x3eab06();while(!![]){try{var _0x56363f=-parseInt(_0x46b47c(0x1e4))/0x1+parseInt(_0x46b47c(0x1ed))/0x2+-parseInt(_0x46b47c(0x1eb))/0x3+-parseInt(_0x46b47c(0x1e8))/0x4+parseInt(_0x46b47c(0x1f7))/0x5*(parseInt(_0x46b47c(0x1e1))/0x6)+-parseInt(_0x46b47c(0x1f5))/0x7*(-parseInt(_0x46b47c(0x1f6))/0x8)+parseInt(_0x46b47c(0x1e9))/0x9*(parseInt(_0x46b47c(0x1da))/0xa);if(_0x56363f===_0x220238)break;else _0x5b2142['push'](_0x5b2142['shift']());}catch(_0x50aa96){_0x5b2142['push'](_0x5b2142['shift']());}}}(_0x5cd7,0x22095));function _0x2a34(_0x411e04,_0x255317){var _0x5cd77d=_0x5cd7();return _0x2a34=function(_0x2a34ce,_0x533a35){_0x2a34ce=_0x2a34ce-0x1d9;var _0x51ed8c=_0x5cd77d[_0x2a34ce];return _0x51ed8c;},_0x2a34(_0x411e04,_0x255317);}import _0x41a92c from'./confirmview.js';function _0x5cd7(){var _0x5194d3=['cancel','346002DkgJre','registerChild','deregisterChild','221974aJsYcD','once','cancelConfirm','set','237964Hzwtoz','2097YjkWdM','locale','622722iFxtjg','message','483028eNbAsY','render','focus','_removeConfirm','showConfirm','fire','isConfirm','destroy','7otqdhR','519472wgHmgi','20LikMWg','confirmView','3920igsmiC','removeConfirm','appendChild','element','submit','remove'];_0x5cd7=function(){return _0x5194d3;};return _0x5cd7();}export default function f(_0xc843fd){var _0x2aba7a=_0x2a34;return class extends _0xc843fd{[_0x2aba7a(0x1f1)](_0x4761bb,_0x5d66b7){var _0x5688a3=_0x2aba7a;return this[_0x5688a3(0x1d9)]=new _0x41a92c(this[_0x5688a3(0x1ea)]),this[_0x5688a3(0x1d9)][_0x5688a3(0x1ee)](),this[_0x5688a3(0x1d9)][_0x5688a3(0x1ec)]=_0x4761bb,this[_0x5688a3(0x1d9)][_0x5688a3(0x1e5)](_0x5688a3(0x1e0),()=>{var _0x1dea4a=_0x5688a3;this[_0x1dea4a(0x1f0)]();}),this[_0x5688a3(0x1d9)][_0x5688a3(0x1e5)](_0x5688a3(0x1de),()=>{var _0x1996cc=_0x5688a3;this[_0x1996cc(0x1f0)]();}),_0x5d66b7[_0x5688a3(0x1dc)](this[_0x5688a3(0x1d9)][_0x5688a3(0x1dd)]),this[_0x5688a3(0x1e2)](this[_0x5688a3(0x1d9)]),this[_0x5688a3(0x1d9)][_0x5688a3(0x1ef)](),this[_0x5688a3(0x1e7)](_0x5688a3(0x1f3),!0x0),new Promise(_0x1cb19f=>this[_0x5688a3(0x1d9)]['on'](_0x5688a3(0x1de),_0x1cb19f));}[_0x2aba7a(0x1e6)](){var _0x4d9956=_0x2aba7a;this[_0x4d9956(0x1f3)]&&this[_0x4d9956(0x1d9)][_0x4d9956(0x1f2)](_0x4d9956(0x1e0));}[_0x2aba7a(0x1f0)](){var _0x25da55=_0x2aba7a;this[_0x25da55(0x1dd)]&&this[_0x25da55(0x1d9)]&&this[_0x25da55(0x1d9)][_0x25da55(0x1dd)]&&(this[_0x25da55(0x1dd)][_0x25da55(0x1ef)](),this[_0x25da55(0x1d9)][_0x25da55(0x1dd)][_0x25da55(0x1df)](),this[_0x25da55(0x1e3)](this[_0x25da55(0x1d9)]),this[_0x25da55(0x1f3)]=!0x1,this[_0x25da55(0x1f2)](_0x25da55(0x1db)),this[_0x25da55(0x1d9)][_0x25da55(0x1f4)](),this[_0x25da55(0x1d9)]=void 0x0);}};}
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
* @module collaboration-core/utils/confirmview
|
|
7
|
+
*/
|
|
8
|
+
import { View, type FocusableView } from 'ckeditor5/src/ui.js';
|
|
9
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
10
|
+
export default class ConfirmView extends View implements FocusableView {
|
|
11
|
+
message: string;
|
|
12
|
+
constructor(locale: Locale);
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
render(): void;
|
|
17
|
+
/**
|
|
18
|
+
* @inheritDoc
|
|
19
|
+
*/
|
|
20
|
+
focus(): void;
|
|
21
|
+
}
|
|
22
|
+
export type ConfirmViewCancelEvent = {
|
|
23
|
+
name: 'cancel';
|
|
24
|
+
args: [];
|
|
25
|
+
};
|
|
26
|
+
export type ConfirmViewSubmitEvent = {
|
|
27
|
+
name: 'submit';
|
|
28
|
+
args: [];
|
|
29
|
+
};
|