Socket
Socket
Sign inDemoInstall

@ckeditor/ckeditor5-collaboration-core

Package Overview
Dependencies
Maintainers
1
Versions
595
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ckeditor/ckeditor5-collaboration-core - npm Package Compare versions

Comparing version 24.0.0 to 25.0.0

5

CHANGELOG.md
Changelog
=========
All changes in the package are documented at https://ckeditor.com/collaboration/changelog/.
Changes for the past releases are available below.
## 23.0.0 (2020-09-25)

@@ -5,0 +10,0 @@

2

LICENSE.md

@@ -5,3 +5,3 @@ Software License Agreement

**CKEditor 5 collaboration core** (https://ckeditor.com/collaboration/)<br>
Copyright (c) 2003-2020, [CKSource](http://cksource.com) Frederico Knabben. All rights reserved.
Copyright (c) 2003-2021, [CKSource](http://cksource.com) Frederico Knabben. All rights reserved.

@@ -8,0 +8,0 @@ CKEditor 5 collaboration core is licensed under a commercial license and is protected by copyright law.

{
"name": "@ckeditor/ckeditor5-collaboration-core",
"version": "24.0.0",
"version": "25.0.0",
"description": "Base utilities used by CKEditor 5 collaboration features to support multiple users working together in a rich text editor.",

@@ -30,6 +30,6 @@ "license": "SEE LICENSE IN LICENSE.md",

"dependencies": {
"@ckeditor/ckeditor5-core": "^24.0.0",
"@ckeditor/ckeditor5-ui": "^24.0.0",
"@ckeditor/ckeditor5-utils": "^24.0.0"
"@ckeditor/ckeditor5-core": "^25.0.0",
"@ckeditor/ckeditor5-ui": "^25.0.0",
"@ckeditor/ckeditor5-utils": "^25.0.0"
}
}

@@ -20,3 +20,3 @@ # CKEditor 5 collaboration core

**CKEditor 5 collaboration core**<br>
Copyright (c) 2003-2020, [CKSource](http://cksource.com) Frederico Knabben. All rights reserved.
Copyright (c) 2003-2021, [CKSource](http://cksource.com) Frederico Knabben. All rights reserved.

@@ -23,0 +23,0 @@ CKEditor 5 collaboration core is licensed under a commercial license and is protected by copyright law.

/*
* Copyright (c) 2016 - 2020, CKSource - Frederico Knabben. All rights reserved.
* Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
*

@@ -23,2 +23,2 @@ *

*/
import _0x1b4738 from'@ckeditor/ckeditor5-core/src/contextplugin';import _0x93fad0 from'@ckeditor/ckeditor5-utils/src/collection';import'../theme/usercolors.css';import _0x1cc5eb from'@ckeditor/ckeditor5-utils/src/ckeditorerror';export default class r extends _0x1b4738{static get['pluginName'](){return'Users';}constructor(_0x411d5c){super(_0x411d5c),_0x411d5c['config']['define']('users.anonymousUserId','anonymous-user'),_0x411d5c['config']['define']('users.colorsCount',0x8),this['users']=new _0x93fad0(),this['_locale']=_0x411d5c['locale'],this['_licenseKeyCheckInterval']=null,this['_lastColor']=0x0,this['_myId']=null,this['decorate']('getOperationAuthor');}['init'](){const _0x80a10=this['context'];this['licenseKey']=_0x80a10['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2703d9;for(const _0x4c38c3 in _0x80a10){const _0x843983=_0x80a10[_0x4c38c3];if('licenseKeyTrial'===_0x843983||'licenseKeyInvalid'===_0x843983||'licenseKeyValid'===_0x843983||'licenseKeyTrialLimit'==_0x843983){delete _0x80a10[_0x4c38c3],_0x2703d9=_0x843983;break;}}if('licenseKeyInvalid'===_0x2703d9)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x1cc5eb('invalid-license-key',null);if('licenseKeyTrial'===_0x2703d9&&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'===_0x2703d9)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x1cc5eb('trial-license-key-reached-limit',null);'licenseKeyValid'===_0x2703d9&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}get['me'](){return null==this['_myId']?null:this['getUser'](this['_myId']);}['addUser'](_0x3c7d8c){if(!(_0x3c7d8c=Object['assign']({},_0x3c7d8c,{'color':this['_getNextColor']()}))['id']||'string'!=typeof _0x3c7d8c['id'])throw new _0x1cc5eb('users-add-invalid-id');if(this['users']['has'](_0x3c7d8c['id']))throw new _0x1cc5eb('users-add-duplicated-id',null,{'id':_0x3c7d8c['id']});_0x3c7d8c['name']=function(_0x5af8c3,_0x3dd26a=''){const {t:t}=_0x5af8c3;return''==(_0x3dd26a=_0x3dd26a['trim']())?t('Anonymous'):_0x3dd26a;}(this['_locale'],_0x3c7d8c['name']);const _0x8b45c=new n(_0x3c7d8c);return this['users']['add'](_0x8b45c),_0x8b45c;}['getUser'](_0x4a7632){return this['users']['get'](_0x4a7632);}['useAnonymousUser'](){const _0x333274=this['context']['config']['get']('users.anonymousUserId'),{t:t}=this['_locale'];if(this['users']['has'](_0x333274))return;this['addUser']({'id':_0x333274,'name':t('Anonymous')})['_isAnonymous']=!0x0,this['defineMe'](_0x333274);}['defineMe'](_0x11a5fa){if(this['_myId'])throw new _0x1cc5eb('users-me-already-defined',null);if(!this['getUser'](_0x11a5fa))throw new _0x1cc5eb('users-me-missing-user',null);this['_myId']=_0x11a5fa;}['getOperationAuthor'](){return this['me'];}['destroy'](){super['destroy'](),clearInterval(this['_licenseKeyCheckInterval']);}['_getNextColor'](){const _0x1a5d4e=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x1a5d4e&&(this['_lastColor']=0x0),new o(this['_lastColor']++);}}class n{constructor(_0x4064f5){this['id']=_0x4064f5['id'],this['color']=_0x4064f5['color'],this['name']=_0x4064f5['name'],this['avatar']=_0x4064f5['avatar'],this['_isAnonymous']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['initials'](){return this['name']['split']('\x20')['map'](_0x36e671=>_0x36e671['charAt'](0x0))['slice'](0x0,0x2)['join']('')['toUpperCase']();}}class o{constructor(_0x1ec66a){this['_id']=_0x1ec66a;}['getBackgroundColorClass'](){return'ck-user__bg-color--'+this['_id'];}['getSelectionClass'](){return'ck-user__selection--'+this['_id'];}['getMarkerClass'](){return'ck-user__marker--'+this['_id'];}}
import _0x390fa5 from'@ckeditor/ckeditor5-core/src/contextplugin';import _0x152616 from'@ckeditor/ckeditor5-utils/src/collection';import'../theme/usercolors.css';import _0x207d25 from'@ckeditor/ckeditor5-utils/src/ckeditorerror';export default class r extends _0x390fa5{static get['pluginName'](){return'Users';}constructor(_0x540efe){super(_0x540efe),_0x540efe['config']['define']('users.anonymousUserId','anonymous-user'),_0x540efe['config']['define']('users.colorsCount',0x8),this['users']=new _0x152616(),this['_locale']=_0x540efe['locale'],this['_licenseKeyCheckInterval']=null,this['_lastColor']=0x0,this['_myId']=null,this['decorate']('getOperationAuthor');}['init'](){const _0x451dab=this['context'];this['licenseKey']=_0x451dab['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x26162f;for(const _0x4035a3 in _0x451dab){const _0x121522=_0x451dab[_0x4035a3];if('licenseKeyTrial'===_0x121522||'licenseKeyInvalid'===_0x121522||'licenseKeyValid'===_0x121522||'licenseKeyTrialLimit'==_0x121522){delete _0x451dab[_0x4035a3],_0x26162f=_0x121522;break;}}if('licenseKeyInvalid'===_0x26162f)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x207d25('invalid-license-key',null);if('licenseKeyTrial'===_0x26162f&&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'===_0x26162f)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x207d25('trial-license-key-reached-limit',null);'licenseKeyValid'===_0x26162f&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}get['me'](){return null==this['_myId']?null:this['getUser'](this['_myId']);}['addUser'](_0x29891a){if(!(_0x29891a=Object['assign']({},_0x29891a,{'color':this['_getNextColor']()}))['id']||'string'!=typeof _0x29891a['id'])throw new _0x207d25('users-add-invalid-id');if(this['users']['has'](_0x29891a['id']))throw new _0x207d25('users-add-duplicated-id',null,{'id':_0x29891a['id']});_0x29891a['name']=function(_0x594920,_0x5075e7=''){const {t:t}=_0x594920;return''==(_0x5075e7=_0x5075e7['trim']())?t('Anonymous'):_0x5075e7;}(this['_locale'],_0x29891a['name']);const _0x22afb8=new n(_0x29891a);return this['users']['add'](_0x22afb8),_0x22afb8;}['getUser'](_0x4f8218){return this['users']['get'](_0x4f8218);}['useAnonymousUser'](){const _0x24b885=this['context']['config']['get']('users.anonymousUserId'),{t:t}=this['_locale'];if(this['users']['has'](_0x24b885))return;this['addUser']({'id':_0x24b885,'name':t('Anonymous')})['_isAnonymous']=!0x0,this['defineMe'](_0x24b885);}['defineMe'](_0x497cfc){if(this['_myId'])throw new _0x207d25('users-me-already-defined',null);if(!this['getUser'](_0x497cfc))throw new _0x207d25('users-me-missing-user',null);this['_myId']=_0x497cfc;}['getOperationAuthor'](){return this['me'];}['destroy'](){super['destroy'](),clearInterval(this['_licenseKeyCheckInterval']);}['_getNextColor'](){const _0x925c7a=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x925c7a&&(this['_lastColor']=0x0),new o(this['_lastColor']++);}}class n{constructor(_0x257609){this['id']=_0x257609['id'],this['color']=_0x257609['color'],this['name']=_0x257609['name'],this['avatar']=_0x257609['avatar'],this['_isAnonymous']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['initials'](){return this['name']['split']('\x20')['map'](_0x3fbd68=>_0x3fbd68['charAt'](0x0))['slice'](0x0,0x2)['join']('')['toUpperCase']();}}class o{constructor(_0x1d020b){this['_id']=_0x1d020b;}['getBackgroundColorClass'](){return'ck-user__bg-color--'+this['_id'];}['getSelectionClass'](){return'ck-user__selection--'+this['_id'];}['getMarkerClass'](){return'ck-user__marker--'+this['_id'];}}
/*
* Copyright (c) 2016 - 2020, CKSource - Frederico Knabben. All rights reserved.
* Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
*

@@ -23,2 +23,2 @@ *

*/
const _0x56fd=['div','setTemplate','ck\x20ck-user__name\x20ck-user__name--hidden','push','ck-user__avatar','ck\x20ck-user__name','name','avatar','url(\x27','ck-user__img','ck-user__anonymous'];(function(_0x14f858,_0x56fdf9){const _0x163edb=function(_0x50ec5f){while(--_0x50ec5f){_0x14f858['push'](_0x14f858['shift']());}};_0x163edb(++_0x56fdf9);}(_0x56fd,0xbc));const _0x163e=function(_0x14f858,_0x56fdf9){_0x14f858=_0x14f858-0x0;let _0x163edb=_0x56fd[_0x14f858];return _0x163edb;};import _0x1275b5 from'@ckeditor/ckeditor5-ui/src/view';import'../../../theme/users.css';export default class a extends _0x1275b5{constructor(_0x193488,_0x43c781){super(_0x193488),this[_0x163e('0x5')]=_0x43c781[_0x163e('0x5')];const _0x1ed09e=['ck',_0x163e('0x8')];_0x43c781['isAnonymous']&&_0x1ed09e[_0x163e('0x2')](_0x163e('0x9')),_0x43c781['avatar']&&_0x1ed09e['push'](_0x163e('0x3')),this[_0x163e('0x0')]({'tag':_0x163e('0xa'),'attributes':{'class':['ck','ck-user'],'data-user-id':_0x43c781['id']},'children':[{'tag':'div','attributes':{'class':_0x1ed09e,'style':{'background-image':_0x43c781[_0x163e('0x6')]?_0x163e('0x7')+_0x43c781[_0x163e('0x6')]+'\x27)':''}}},{'tag':_0x163e('0xa'),'attributes':{'class':_0x43c781[_0x163e('0x6')]?_0x163e('0x1'):_0x163e('0x4')},'children':[{'text':_0x43c781['initials']}]}]});}}
const _0x23f4=['ck\x20ck-user__name','avatar','push','ck\x20ck-user__name\x20ck-user__name--hidden','url(\x27','ck-user__avatar','ck-user__anonymous','initials','div','setTemplate'];(function(_0x153db0,_0x23f4e0){const _0x377076=function(_0x11f5d6){while(--_0x11f5d6){_0x153db0['push'](_0x153db0['shift']());}};_0x377076(++_0x23f4e0);}(_0x23f4,0xbd));const _0x3770=function(_0x153db0,_0x23f4e0){_0x153db0=_0x153db0-0x0;let _0x377076=_0x23f4[_0x153db0];return _0x377076;};import _0x401b8e from'@ckeditor/ckeditor5-ui/src/view';import'../../../theme/users.css';export default class a extends _0x401b8e{constructor(_0x307f01,_0x24962d){super(_0x307f01),this['name']=_0x24962d['name'];const _0x57881b=['ck','ck-user__img'];_0x24962d['isAnonymous']&&_0x57881b[_0x3770('0x3')](_0x3770('0x7')),_0x24962d['avatar']&&_0x57881b[_0x3770('0x3')](_0x3770('0x6')),this[_0x3770('0x0')]({'tag':_0x3770('0x9'),'attributes':{'class':['ck','ck-user'],'data-user-id':_0x24962d['id']},'children':[{'tag':'div','attributes':{'class':_0x57881b,'style':{'background-image':_0x24962d[_0x3770('0x2')]?_0x3770('0x5')+_0x24962d[_0x3770('0x2')]+'\x27)':''}}},{'tag':_0x3770('0x9'),'attributes':{'class':_0x24962d[_0x3770('0x2')]?_0x3770('0x4'):_0x3770('0x1')},'children':[{'text':_0x24962d[_0x3770('0x8')]}]}]});}}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc