@ckeditor/ckeditor5-collaboration-core 29.2.0 → 32.0.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/LICENSE.md +2 -2
- package/README.md +2 -2
- package/lang/translations/bs.po +21 -0
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +21 -0
- package/lang/translations/de-ch.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/fa.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/ug.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +2 -2
- package/src/permissions.js +2 -2
- package/src/users/view/userview.js +2 -2
- package/src/users.js +2 -2
- package/theme/usercolors.css +1 -1
- package/theme/users.css +1 -1
package/LICENSE.md
CHANGED
@@ -2,7 +2,7 @@ Software License Agreement
|
|
2
2
|
==========================
|
3
3
|
|
4
4
|
**CKEditor 5 collaboration core** (https://ckeditor.com/collaboration/)<br>
|
5
|
-
Copyright (c) 2003-2021, [CKSource](http://cksource.com)
|
5
|
+
Copyright (c) 2003-2021, [CKSource](http://cksource.com) Holding sp. z o.o. All rights reserved.
|
6
6
|
|
7
7
|
CKEditor 5 collaboration core is licensed under a commercial license and is protected by copyright law.
|
8
8
|
We operate on subscription-based licensing terms. For more details about available licensing options please contact us at sales@cksource.com.
|
@@ -19,4 +19,4 @@ The following libraries are included in CKEditor 5 collaboration core under the
|
|
19
19
|
Trademarks
|
20
20
|
----------
|
21
21
|
|
22
|
-
**CKEditor** is a trademark of [CKSource](http://cksource.com)
|
22
|
+
**CKEditor** is a trademark of [CKSource](http://cksource.com) Holding sp. z o.o. All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
|
package/README.md
CHANGED
@@ -17,11 +17,11 @@ As a licensed CKEditor 5 collaboration features user you can report bugs and req
|
|
17
17
|
## License
|
18
18
|
|
19
19
|
**CKEditor 5 collaboration core**<br>
|
20
|
-
Copyright (c) 2003-2021, [CKSource](http://cksource.com)
|
20
|
+
Copyright (c) 2003-2021, [CKSource](http://cksource.com) Holding sp. z o.o. All rights reserved.
|
21
21
|
|
22
22
|
CKEditor 5 collaboration core is licensed under a commercial license and is protected by copyright law.
|
23
23
|
For more details about available licensing options please contact us at sales@cksource.com.
|
24
24
|
|
25
25
|
### Trademarks
|
26
26
|
|
27
|
-
**CKEditor** is a trademark of [CKSource](http://cksource.com)
|
27
|
+
**CKEditor** is a trademark of [CKSource](http://cksource.com) Holding sp. z o.o. All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
2
|
+
#
|
3
|
+
# !!! IMPORTANT !!!
|
4
|
+
#
|
5
|
+
# Before you edit this file, please keep in mind that contributing to the project
|
6
|
+
# translations is possible ONLY via the Transifex online service.
|
7
|
+
#
|
8
|
+
# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
|
9
|
+
#
|
10
|
+
# To learn more, check out the official contributor's guide:
|
11
|
+
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
12
|
+
#
|
13
|
+
msgid ""
|
14
|
+
msgstr ""
|
15
|
+
"Language-Team: Bosnian (https://www.transifex.com/ckeditor/teams/11143/bs/)\n"
|
16
|
+
"Language: bs\n"
|
17
|
+
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
18
|
+
|
19
|
+
msgctxt "A label for the anonymous user icon"
|
20
|
+
msgid "Anonymous"
|
21
|
+
msgstr "Anonimno"
|
package/lang/translations/cs.po
CHANGED
@@ -0,0 +1,21 @@
|
|
1
|
+
# Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
2
|
+
#
|
3
|
+
# !!! IMPORTANT !!!
|
4
|
+
#
|
5
|
+
# Before you edit this file, please keep in mind that contributing to the project
|
6
|
+
# translations is possible ONLY via the Transifex online service.
|
7
|
+
#
|
8
|
+
# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
|
9
|
+
#
|
10
|
+
# To learn more, check out the official contributor's guide:
|
11
|
+
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
12
|
+
#
|
13
|
+
msgid ""
|
14
|
+
msgstr ""
|
15
|
+
"Language-Team: Danish (https://www.transifex.com/ckeditor/teams/11143/da/)\n"
|
16
|
+
"Language: da\n"
|
17
|
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
18
|
+
|
19
|
+
msgctxt "A label for the anonymous user icon"
|
20
|
+
msgid "Anonymous"
|
21
|
+
msgstr "Anonym"
|
package/lang/translations/de.po
CHANGED
package/lang/translations/en.po
CHANGED
package/lang/translations/es.po
CHANGED
package/lang/translations/et.po
CHANGED
package/lang/translations/fa.po
CHANGED
package/lang/translations/fr.po
CHANGED
package/lang/translations/gl.po
CHANGED
package/lang/translations/hi.po
CHANGED
package/lang/translations/hr.po
CHANGED
package/lang/translations/hu.po
CHANGED
package/lang/translations/it.po
CHANGED
package/lang/translations/ja.po
CHANGED
package/lang/translations/ko.po
CHANGED
package/lang/translations/nl.po
CHANGED
package/lang/translations/no.po
CHANGED
package/lang/translations/pl.po
CHANGED
package/lang/translations/ro.po
CHANGED
package/lang/translations/ru.po
CHANGED
package/lang/translations/sk.po
CHANGED
package/lang/translations/sr.po
CHANGED
package/lang/translations/tk.po
CHANGED
package/lang/translations/tr.po
CHANGED
package/lang/translations/ug.po
CHANGED
package/lang/translations/uk.po
CHANGED
package/lang/translations/zh.po
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ckeditor/ckeditor5-collaboration-core",
|
3
|
-
"version": "
|
3
|
+
"version": "32.0.0",
|
4
4
|
"description": "Base utilities used by CKEditor 5 collaboration features to support multiple users working together in a rich text editor.",
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
@@ -27,6 +27,6 @@
|
|
27
27
|
"framework"
|
28
28
|
],
|
29
29
|
"dependencies": {
|
30
|
-
"ckeditor5": "^
|
30
|
+
"ckeditor5": "^32.0.0"
|
31
31
|
}
|
32
32
|
}
|
package/src/permissions.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Copyright (c) 2016 -
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
*
|
4
4
|
*
|
5
5
|
*
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x5514=['comment:write','comment:admin','noPermissions','includes','config','pluginName','permissions-set-permissions-invalid-channel-id','isReadOnly','isEnabled','get','CommentsRepository','setAdminPermissions','collaboration.channelId','find','editors','switchReadOnly','plugins','document:write','has','forceDisabled','CommentsOnly','setPermissions','context','clearForceDisabled','Permissions','commands','addCommentThread'];(function(_0x37a0d2,_0x55147c){const _0x3cfba9=function(_0x52a82a){while(--_0x52a82a){_0x37a0d2['push'](_0x37a0d2['shift']());}};_0x3cfba9(++_0x55147c);}(_0x5514,0x14d));const _0x3cfb=function(_0x37a0d2,_0x55147c){_0x37a0d2=_0x37a0d2-0x0;let _0x3cfba9=_0x5514[_0x37a0d2];return _0x3cfba9;};import{ContextPlugin as _0x3a2376,Editor as _0x3059ee}from'ckeditor5/src/core';import{CKEditorError as _0x2d73c2}from'ckeditor5/src/utils';export default class e extends _0x3a2376{static get[_0x3cfb('0x17')](){return _0x3cfb('0xf');}[_0x3cfb('0xc')](_0x1f088c,_0x472914){let _0x5a7eee;if(_0x472914||(_0x472914=this[_0x3cfb('0xd')][_0x3cfb('0x16')][_0x3cfb('0x0')]('collaboration.channelId')),this[_0x3cfb('0xd')][_0x3cfb('0x16')][_0x3cfb('0x0')](_0x3cfb('0x3'))==_0x472914?_0x5a7eee=this[_0x3cfb('0xd')]:this[_0x3cfb('0xd')][_0x3cfb('0x5')]&&(_0x5a7eee=this['context'][_0x3cfb('0x5')][_0x3cfb('0x4')](_0x3848aa=>_0x3848aa['config'][_0x3cfb('0x0')](_0x3cfb('0x3'))==_0x472914)),!_0x5a7eee)throw new _0x2d73c2(_0x3cfb('0x18'),null);const _0x4e4469=_0x5a7eee[_0x3cfb('0x7')],_0x50d3be=_0x5a7eee instanceof _0x3059ee,_0x1d534b=_0x4e4469[_0x3cfb('0x9')](_0x3cfb('0x1'))&&_0x4e4469[_0x3cfb('0x0')]('CommentsRepository'),_0x249c6e=_0x4e4469['has'](_0x3cfb('0xb'))&&_0x4e4469['get'](_0x3cfb('0xb')),_0x37c50a=_0x1f088c[_0x3cfb('0x15')](_0x3cfb('0x8')),_0x13de38=_0x1f088c[_0x3cfb('0x15')](_0x3cfb('0x13')),_0x5cd966=_0x1f088c[_0x3cfb('0x15')](_0x3cfb('0x12'))||_0x13de38;if(_0x249c6e&&(_0x249c6e[_0x3cfb('0x1a')]=!_0x37c50a&&_0x5cd966),_0x50d3be&&(_0x5a7eee[_0x3cfb('0x19')]=!(_0x37c50a||_0x5cd966&&_0x1d534b)),_0x1d534b){_0x1d534b[_0x3cfb('0x6')](!_0x5cd966,_0x472914),_0x1d534b[_0x3cfb('0x2')](_0x13de38,_0x472914);const _0x21264d=_0x50d3be&&_0x5a7eee[_0x3cfb('0x10')][_0x3cfb('0x0')](_0x3cfb('0x11'));_0x21264d&&(_0x5cd966?_0x21264d[_0x3cfb('0xe')](_0x3cfb('0x14')):_0x21264d[_0x3cfb('0xa')](_0x3cfb('0x14')));}}}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Copyright (c) 2016 -
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
*
|
4
4
|
*
|
5
5
|
*
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x6ad4=['ck-user__avatar','ck-user__anonymous','push','setTemplate','ck\x20ck-user__name\x20ck-user__name--hidden','name','div','initials','avatar','ck-user__img','isAnonymous','ck-user','ck\x20ck-user__name'];(function(_0x2fe54f,_0x6ad4ef){const _0x1eebfb=function(_0x2609c0){while(--_0x2609c0){_0x2fe54f['push'](_0x2fe54f['shift']());}};_0x1eebfb(++_0x6ad4ef);}(_0x6ad4,0x12d));const _0x1eeb=function(_0x2fe54f,_0x6ad4ef){_0x2fe54f=_0x2fe54f-0x0;let _0x1eebfb=_0x6ad4[_0x2fe54f];return _0x1eebfb;};import{View as _0x41fbec}from'ckeditor5/src/ui';import'../../../theme/users.css';export default class a extends _0x41fbec{constructor(_0x586c3a,_0x127d8e){super(_0x586c3a),this[_0x1eeb('0x3')]=_0x127d8e[_0x1eeb('0x3')];const _0x391963=['ck',_0x1eeb('0x7')];_0x127d8e[_0x1eeb('0x8')]&&_0x391963['push'](_0x1eeb('0xc')),_0x127d8e[_0x1eeb('0x6')]&&_0x391963[_0x1eeb('0x0')](_0x1eeb('0xb')),this[_0x1eeb('0x1')]({'tag':_0x1eeb('0x4'),'attributes':{'class':['ck',_0x1eeb('0x9')],'data-user-id':_0x127d8e['id']},'children':[{'tag':'div','attributes':{'class':_0x391963,'style':{'background-image':_0x127d8e['avatar']?'url(\x27'+_0x127d8e[_0x1eeb('0x6')]+'\x27)':''}}},{'tag':_0x1eeb('0x4'),'attributes':{'class':_0x127d8e[_0x1eeb('0x6')]?_0x1eeb('0x2'):_0x1eeb('0xa')},'children':[{'text':_0x127d8e[_0x1eeb('0x5')]}]}]});}}
|
package/src/users.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Copyright (c) 2016 -
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
*
|
4
4
|
*
|
5
5
|
*
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
import{ContextPlugin as
|
23
|
+
import{ContextPlugin as _0x2bacea}from'ckeditor5/src/core';import{Collection as _0x43d56d,CKEditorError as _0x1cf0a4}from'ckeditor5/src/utils';import _0x355f10 from'./permissions';import'../theme/usercolors.css';export default class r extends _0x2bacea{static get['pluginName'](){return'Users';}static get['requires'](){return[_0x355f10];}constructor(_0x4a5287){super(_0x4a5287),_0x4a5287['config']['define']('users.anonymousUserId','anonymous-user'),_0x4a5287['config']['define']('users.colorsCount',0x8),this['users']=new _0x43d56d(),this['_locale']=_0x4a5287['locale'],this['_licenseKeyCheckInterval']=null,this['_lastColor']=0x0,this['_myId']=null,this['decorate']('getOperationAuthor');}['init'](){const _0x3a877f=this['context'];this['licenseKey']=_0x3a877f['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x414a18;for(const _0x144372 in _0x3a877f){const _0x43e571=_0x3a877f[_0x144372];if('licenseKeyTrial'===_0x43e571||'licenseKeyInvalid'===_0x43e571||'licenseKeyValid'===_0x43e571||'licenseKeyTrialLimit'==_0x43e571){delete _0x3a877f[_0x144372],_0x414a18=_0x43e571;break;}}if('licenseKeyInvalid'===_0x414a18)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x1cf0a4('invalid-license-key',null);if('licenseKeyTrial'===_0x414a18&&console['info']('You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20collaboration\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.'),'licenseKeyTrialLimit'===_0x414a18)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x1cf0a4('trial-license-key-reached-limit',null);'licenseKeyValid'===_0x414a18&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8),this['_addAnonymousUser']();}get['me'](){return null==this['_myId']?null:this['getUser'](this['_myId']);}['addUser'](_0x21634b){if(!(_0x21634b=Object['assign']({},_0x21634b,{'color':this['_getNextColor']()}))['id']||'string'!=typeof _0x21634b['id'])throw new _0x1cf0a4('users-add-invalid-id');if(this['users']['has'](_0x21634b['id']))throw new _0x1cf0a4('users-add-duplicated-id',null,{'id':_0x21634b['id']});_0x21634b['name']=function(_0x4e5621,_0x41c002=''){const {t:t}=_0x4e5621;return''==(_0x41c002=_0x41c002['trim']())?t('Anonymous'):_0x41c002;}(this['_locale'],_0x21634b['name']);const _0x3748c9=new l(_0x21634b);return this['users']['add'](_0x3748c9),_0x3748c9;}['getUser'](_0x831d0b){return this['users']['get'](_0x831d0b);}['useAnonymousUser'](){const _0x33ad75=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x33ad75);}['defineMe'](_0x425ad9){if(this['_myId'])throw new _0x1cf0a4('users-me-already-defined',null);if(!this['getUser'](_0x425ad9))throw new _0x1cf0a4('users-me-missing-user',null);this['_myId']=_0x425ad9;}['getOperationAuthor'](){return this['me'];}['destroy'](){super['destroy'](),clearInterval(this['_licenseKeyCheckInterval']);}['_getNextColor'](){const _0x345a62=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x345a62&&(this['_lastColor']=0x0),new u(this['_lastColor']++);}['_addAnonymousUser'](){const {t:t}=this['_locale'],_0x2dc9b1=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x2dc9b1,'name':t('Anonymous')})['_isAnonymous']=!0x0;}}class l{constructor(_0x4c482a){this['id']=_0x4c482a['id'],this['color']=_0x4c482a['color'],this['name']=_0x4c482a['name'],this['avatar']=_0x4c482a['avatar'],this['_isAnonymous']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['initials'](){const _0xd04941=this['name']['split']('\x20');return 0x1===_0xd04941['length']?this['_getInitial'](_0xd04941[0x0]):this['_getInitial'](_0xd04941[0x0])+this['_getInitial'](_0xd04941[_0xd04941['length']-0x1]);}['_getInitial'](_0x128ac0){return _0x128ac0['charAt'](0x0)['toUpperCase']();}}class u{constructor(_0x34adda){this['_id']=_0x34adda;}['getBackgroundColorClass'](){return'ck-user__bg-color--'+this['_id'];}['getSelectionClass'](){return'ck-user__selection--'+this['_id'];}['getMarkerClass'](){return'ck-user__marker--'+this['_id'];}}
|
package/theme/usercolors.css
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
* CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
4
4
|
* all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
5
5
|
*
|
6
|
-
* Copyright (c) 2003-2021, CKSource
|
6
|
+
* Copyright (c) 2003-2021, CKSource Holding sp. z o.o. All rights reserved.
|
7
7
|
*/
|
8
8
|
|
9
9
|
@import "./usercolormixin.css";
|
package/theme/users.css
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
* CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
4
4
|
* all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
5
5
|
*
|
6
|
-
* Copyright (c) 2003-2021, CKSource
|
6
|
+
* Copyright (c) 2003-2021, CKSource Holding sp. z o.o. All rights reserved.
|
7
7
|
*/
|
8
8
|
|
9
9
|
@import '@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css';
|