@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,8 @@
|
|
|
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
|
+
import type { Translations } from '@ckeditor/ckeditor5-utils';
|
|
7
|
+
declare const translations: Translations;
|
|
8
|
+
export default translations;
|
|
@@ -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 default{'tt':{'dictionary':{'Anonymous':'Аноним','Yes':'Әйе','No':'Юк','Are\x20you\x20sure?':''},'getPluralForm':_0x39f135=>0x0}};
|
|
@@ -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
|
+
(_0x5e3cf6=>{const {tt:{dictionary:_0xc11cf5,getPluralForm:_0xac156d}}={'tt':{'dictionary':{'Anonymous':'Аноним','Yes':'Әйе','No':'Юк','Are\x20you\x20sure?':''},'getPluralForm':_0x382555=>0x0}};_0x5e3cf6['tt']||={'dictionary':{},'getPluralForm':null},_0x5e3cf6['tt']['dictionary']=Object['assign'](_0x5e3cf6['tt']['dictionary'],_0xc11cf5),_0x5e3cf6['tt']['getPluralForm']=_0xac156d;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
import type { Translations } from '@ckeditor/ckeditor5-utils';
|
|
7
|
+
declare const translations: Translations;
|
|
8
|
+
export default translations;
|
|
@@ -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 default{'ug':{'dictionary':{'Anonymous':'يوشۇرۇن','Yes':'ھەئە','No':'ياق','Are\x20you\x20sure?':'جەزملەشتۈرەمسىز؟'},'getPluralForm':_0x1731fa=>0x1!=_0x1731fa}};
|
|
@@ -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
|
+
(_0x1f8716=>{const {ug:{dictionary:_0x5ddeab,getPluralForm:_0xfbe4dc}}={'ug':{'dictionary':{'Anonymous':'يوشۇرۇن','Yes':'ھەئە','No':'ياق','Are\x20you\x20sure?':'جەزملەشتۈرەمسىز؟'},'getPluralForm':_0x390060=>0x1!=_0x390060}};_0x1f8716['ug']||={'dictionary':{},'getPluralForm':null},_0x1f8716['ug']['dictionary']=Object['assign'](_0x1f8716['ug']['dictionary'],_0x5ddeab),_0x1f8716['ug']['getPluralForm']=_0xfbe4dc;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
import type { Translations } from '@ckeditor/ckeditor5-utils';
|
|
7
|
+
declare const translations: Translations;
|
|
8
|
+
export default translations;
|
|
@@ -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 default{'uk':{'dictionary':{'Anonymous':'Анонім','Yes':'Так','No':'Ні','Are\x20you\x20sure?':'Ви\x20впевнені?'},'getPluralForm':_0x174f26=>_0x174f26%0x1==0x0&&_0x174f26%0xa==0x1&&_0x174f26%0x64!=0xb?0x0:_0x174f26%0x1==0x0&&_0x174f26%0xa>=0x2&&_0x174f26%0xa<=0x4&&(_0x174f26%0x64<0xc||_0x174f26%0x64>0xe)?0x1:_0x174f26%0x1==0x0&&(_0x174f26%0xa==0x0||_0x174f26%0xa>=0x5&&_0x174f26%0xa<=0x9||_0x174f26%0x64>=0xb&&_0x174f26%0x64<=0xe)?0x2:0x3}};
|
|
@@ -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
|
+
(_0x116db2=>{const {uk:{dictionary:_0x589283,getPluralForm:_0xf5ba48}}={'uk':{'dictionary':{'Anonymous':'Анонім','Yes':'Так','No':'Ні','Are\x20you\x20sure?':'Ви\x20впевнені?'},'getPluralForm':_0x1b5e02=>_0x1b5e02%0x1==0x0&&_0x1b5e02%0xa==0x1&&_0x1b5e02%0x64!=0xb?0x0:_0x1b5e02%0x1==0x0&&_0x1b5e02%0xa>=0x2&&_0x1b5e02%0xa<=0x4&&(_0x1b5e02%0x64<0xc||_0x1b5e02%0x64>0xe)?0x1:_0x1b5e02%0x1==0x0&&(_0x1b5e02%0xa==0x0||_0x1b5e02%0xa>=0x5&&_0x1b5e02%0xa<=0x9||_0x1b5e02%0x64>=0xb&&_0x1b5e02%0x64<=0xe)?0x2:0x3}};_0x116db2['uk']||={'dictionary':{},'getPluralForm':null},_0x116db2['uk']['dictionary']=Object['assign'](_0x116db2['uk']['dictionary'],_0x589283),_0x116db2['uk']['getPluralForm']=_0xf5ba48;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
import type { Translations } from '@ckeditor/ckeditor5-utils';
|
|
7
|
+
declare const translations: Translations;
|
|
8
|
+
export default translations;
|
|
@@ -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 default{'ur':{'dictionary':{'Anonymous':'بے\x20نام','Yes':'ہاں','No':'ناں','Are\x20you\x20sure?':'واقعی؟'},'getPluralForm':_0x52557e=>0x1!=_0x52557e}};
|
|
@@ -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
|
+
(_0x121357=>{const {ur:{dictionary:_0x57b731,getPluralForm:_0x2a2472}}={'ur':{'dictionary':{'Anonymous':'بے\x20نام','Yes':'ہاں','No':'ناں','Are\x20you\x20sure?':'واقعی؟'},'getPluralForm':_0x41fe22=>0x1!=_0x41fe22}};_0x121357['ur']||={'dictionary':{},'getPluralForm':null},_0x121357['ur']['dictionary']=Object['assign'](_0x121357['ur']['dictionary'],_0x57b731),_0x121357['ur']['getPluralForm']=_0x2a2472;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
import type { Translations } from '@ckeditor/ckeditor5-utils';
|
|
7
|
+
declare const translations: Translations;
|
|
8
|
+
export default translations;
|
|
@@ -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 default{'vi':{'dictionary':{'Anonymous':'Ẩn\x20danh','Yes':'Có','No':'Không','Are\x20you\x20sure?':'Bạn\x20có\x20chắc\x20chắn\x20không?'},'getPluralForm':_0xac1fc5=>0x0}};
|
|
@@ -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
|
+
(_0x27b41a=>{const {vi:{dictionary:_0x4a25e4,getPluralForm:_0x5549af}}={'vi':{'dictionary':{'Anonymous':'Ẩn\x20danh','Yes':'Có','No':'Không','Are\x20you\x20sure?':'Bạn\x20có\x20chắc\x20chắn\x20không?'},'getPluralForm':_0x173646=>0x0}};_0x27b41a['vi']||={'dictionary':{},'getPluralForm':null},_0x27b41a['vi']['dictionary']=Object['assign'](_0x27b41a['vi']['dictionary'],_0x4a25e4),_0x27b41a['vi']['getPluralForm']=_0x5549af;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
import type { Translations } from '@ckeditor/ckeditor5-utils';
|
|
7
|
+
declare const translations: Translations;
|
|
8
|
+
export default translations;
|
|
@@ -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 default{'zh-cn':{'dictionary':{'Anonymous':'匿名用户','Yes':'确定','No':'取消','Are\x20you\x20sure?':'你确定吗?'},'getPluralForm':_0x5c6d9f=>0x0}};
|
|
@@ -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
|
+
(_0x1880e1=>{const {'zh-cn':{dictionary:_0x141eee,getPluralForm:_0x30a18b}}={'zh-cn':{'dictionary':{'Anonymous':'匿名用户','Yes':'确定','No':'取消','Are\x20you\x20sure?':'你确定吗?'},'getPluralForm':_0x35b4d8=>0x0}};_0x1880e1['zh-cn']||={'dictionary':{},'getPluralForm':null},_0x1880e1['zh-cn']['dictionary']=Object['assign'](_0x1880e1['zh-cn']['dictionary'],_0x141eee),_0x1880e1['zh-cn']['getPluralForm']=_0x30a18b;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
import type { Translations } from '@ckeditor/ckeditor5-utils';
|
|
7
|
+
declare const translations: Translations;
|
|
8
|
+
export default translations;
|
|
@@ -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 default{'zh':{'dictionary':{'Anonymous':'匿名者','Yes':'好','No':'先不要','Are\x20you\x20sure?':'確定做此操作?'},'getPluralForm':_0x565e58=>0x0}};
|
|
@@ -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
|
+
(_0x2bbb6b=>{const {zh:{dictionary:_0x2116d8,getPluralForm:_0xa9566a}}={'zh':{'dictionary':{'Anonymous':'匿名者','Yes':'好','No':'先不要','Are\x20you\x20sure?':'確定做此操作?'},'getPluralForm':_0x5a200c=>0x0}};_0x2bbb6b['zh']||={'dictionary':{},'getPluralForm':null},_0x2bbb6b['zh']['dictionary']=Object['assign'](_0x2bbb6b['zh']['dictionary'],_0x2116d8),_0x2bbb6b['zh']['getPluralForm']=_0xa9566a;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -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/users/view/userview
|
|
11
|
+
*/
|
|
12
|
+
import { View, type TemplateDefinition } from 'ckeditor5/src/ui.js';
|
|
13
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
14
|
+
import type { User } from '../../users.js';
|
|
15
|
+
import '../../../theme/users.css';
|
|
16
|
+
export default class UserView extends View {
|
|
17
|
+
name: string;
|
|
18
|
+
notificationView: TemplateDefinition | null;
|
|
19
|
+
constructor(locale: Locale, user: User, notificationText?: null | string);
|
|
20
|
+
}
|
package/dist/users.d.ts
ADDED
|
@@ -0,0 +1,172 @@
|
|
|
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
|
+
/**
|
|
22
|
+
* Holds all {@link module:collaboration-core/users~User users} added to the editor.
|
|
23
|
+
*
|
|
24
|
+
* Note, that the {@link module:collaboration-core/users~User#isAnonymous anonymous user} is always present in the editor.
|
|
25
|
+
* You may want to filter it out when processing the users lists.
|
|
26
|
+
*
|
|
27
|
+
* ```ts
|
|
28
|
+
* for ( const user of editor.plugins.get( 'Users' ).users ) {
|
|
29
|
+
* if ( !user.isAnonymous ) {
|
|
30
|
+
* console.log( user.name );
|
|
31
|
+
* }
|
|
32
|
+
* }
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* Use {@link #addUser} to add a new user.
|
|
36
|
+
*/
|
|
37
|
+
readonly users: Collection<User>;
|
|
38
|
+
/**
|
|
39
|
+
* @inheritDoc
|
|
40
|
+
*/
|
|
41
|
+
static get pluginName(): "Users";
|
|
42
|
+
/**
|
|
43
|
+
* @inheritDoc
|
|
44
|
+
*/
|
|
45
|
+
static get isOfficialPlugin(): true;
|
|
46
|
+
/**
|
|
47
|
+
* @inheritDoc
|
|
48
|
+
*/
|
|
49
|
+
static get isPremiumPlugin(): true;
|
|
50
|
+
/**
|
|
51
|
+
* @inheritDoc
|
|
52
|
+
*/
|
|
53
|
+
static get requires(): readonly [typeof Permissions];
|
|
54
|
+
/**
|
|
55
|
+
* @inheritDoc
|
|
56
|
+
*/
|
|
57
|
+
constructor(context: Context | Editor);
|
|
58
|
+
/**
|
|
59
|
+
* @inheritDoc
|
|
60
|
+
*/
|
|
61
|
+
init(): void;
|
|
62
|
+
/**
|
|
63
|
+
* A reference to the local user or `null` if it has not been set.
|
|
64
|
+
*/
|
|
65
|
+
get me(): User | null;
|
|
66
|
+
/**
|
|
67
|
+
* Adds a new user to the list of users.
|
|
68
|
+
*/
|
|
69
|
+
addUser({ id, name, ...additionalData }: Partial<UserData>): User;
|
|
70
|
+
/**
|
|
71
|
+
* Returns the user with a given ID.
|
|
72
|
+
*/
|
|
73
|
+
getUser(id: string): User | null;
|
|
74
|
+
/**
|
|
75
|
+
* Sets an {@link module:collaboration-core/users~User#isAnonymous anonymous user} as {@link #me the local user}.
|
|
76
|
+
*
|
|
77
|
+
* The local user ID will be set to the value of `config.users.anonymousUserId` property. All actions performed by the local user
|
|
78
|
+
* will be contributed to the anonymous user.
|
|
79
|
+
*/
|
|
80
|
+
useAnonymousUser(): void;
|
|
81
|
+
/**
|
|
82
|
+
* Sets the user with the given ID as the local user ({@link #me}).
|
|
83
|
+
*
|
|
84
|
+
* The local user can be only set once (this includes setting anonymous as the local user).
|
|
85
|
+
*/
|
|
86
|
+
defineMe(userId: string): void;
|
|
87
|
+
/**
|
|
88
|
+
* Returns the author of the operation. It returns {@link #me} by default if it is not overwritten.
|
|
89
|
+
*/
|
|
90
|
+
getOperationAuthor(): User | null;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* The representation of a single user that is involved in document editing.
|
|
94
|
+
*/
|
|
95
|
+
export declare class User {
|
|
96
|
+
/**
|
|
97
|
+
* The ID of the user.
|
|
98
|
+
*/
|
|
99
|
+
id: string;
|
|
100
|
+
/**
|
|
101
|
+
* CSS colors classes object for the user.
|
|
102
|
+
*/
|
|
103
|
+
color: Color;
|
|
104
|
+
/**
|
|
105
|
+
* The name of the user.
|
|
106
|
+
*/
|
|
107
|
+
name: string;
|
|
108
|
+
/**
|
|
109
|
+
* The URL pointing to the image with the avatar of the user.
|
|
110
|
+
*
|
|
111
|
+
* If avatar is not set, default avatar is used.
|
|
112
|
+
*/
|
|
113
|
+
avatar: string | undefined;
|
|
114
|
+
/**
|
|
115
|
+
* @param data User data.
|
|
116
|
+
* @param data.id The ID of the user.
|
|
117
|
+
* @param data.color A helper object to generate CSS classes with the user color in the UI.
|
|
118
|
+
* @param data.name The name of the user.
|
|
119
|
+
* @param data.avatar The URL to the user avatar.
|
|
120
|
+
*/
|
|
121
|
+
constructor(data: UserData);
|
|
122
|
+
/**
|
|
123
|
+
* Is `true` for the anonymous user, `false` otherwise.
|
|
124
|
+
*
|
|
125
|
+
* The anonymous user is used when there is no defined user for given resource.
|
|
126
|
+
*
|
|
127
|
+
* The situations when the anonymous user is used will depend on your application. For example, it can be used when the editor can be
|
|
128
|
+
* used by "guest" users of your application, or when the original user's account was removed.
|
|
129
|
+
*/
|
|
130
|
+
get isAnonymous(): boolean;
|
|
131
|
+
/**
|
|
132
|
+
* Is `true` for the {@link module:collaboration-core/users~Users#me local user}.
|
|
133
|
+
*/
|
|
134
|
+
get isMe(): boolean;
|
|
135
|
+
/**
|
|
136
|
+
* The initials of the user.
|
|
137
|
+
*
|
|
138
|
+
* The initials are composed from the user name's first and last words:
|
|
139
|
+
*
|
|
140
|
+
* * for `Joe Doe`, the initials are `JD`,
|
|
141
|
+
* * for `Anonymous` the initials are `A`,
|
|
142
|
+
* * for `Katie John-Newman` the initials are `KJ`,
|
|
143
|
+
* * for `Adam Daniel Smith` the initials are `AS`.
|
|
144
|
+
*/
|
|
145
|
+
get initials(): string;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* The color object used to generate specified CSS classes with an individual color number assigned to the user.
|
|
149
|
+
*/
|
|
150
|
+
declare class Color {
|
|
151
|
+
constructor(colorId: number);
|
|
152
|
+
/**
|
|
153
|
+
* Returns CSS class for user avatar background color.
|
|
154
|
+
*/
|
|
155
|
+
getBackgroundColorClass(): string;
|
|
156
|
+
/**
|
|
157
|
+
* Returns CSS class for user selection highlight (the selected range).
|
|
158
|
+
*/
|
|
159
|
+
getSelectionClass(): string;
|
|
160
|
+
/**
|
|
161
|
+
* Returns CSS class for user caret position element (the pipe).
|
|
162
|
+
*/
|
|
163
|
+
getMarkerClass(): string;
|
|
164
|
+
}
|
|
165
|
+
type UserData = {
|
|
166
|
+
id: string;
|
|
167
|
+
color: Color;
|
|
168
|
+
name: string;
|
|
169
|
+
avatar?: string;
|
|
170
|
+
_isAnonymous?: boolean;
|
|
171
|
+
};
|
|
172
|
+
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;
|