Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ckeditor/ckeditor5-collaboration-core

Package Overview
Dependencies
Maintainers
1
Versions
674
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 23.0.0 to 23.1.0

lang/translations/fa.po

2

LICENSE.md

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

**CKEditor 5 collaboration core** (https://ckeditor.com/collaboration/)<br>
Copyright (c) 2003-2019, [CKSource](http://cksource.com) Frederico Knabben. All rights reserved.
Copyright (c) 2003-2020, [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": "23.0.0",
"version": "23.1.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": "^23.0.0",
"@ckeditor/ckeditor5-ui": "^23.0.0",
"@ckeditor/ckeditor5-utils": "^23.0.0"
"@ckeditor/ckeditor5-core": "^23.1.0",
"@ckeditor/ckeditor5-ui": "^23.1.0",
"@ckeditor/ckeditor5-utils": "^23.1.0"
}
}

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

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

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

*/
import _0x4a63e0 from'@ckeditor/ckeditor5-core/src/contextplugin';import _0x41c2b8 from'@ckeditor/ckeditor5-utils/src/collection';import'../theme/usercolors.css';import _0x258e04 from'@ckeditor/ckeditor5-utils/src/ckeditorerror';export default class r extends _0x4a63e0{static get['pluginName'](){return'Users';}constructor(_0x5430e0){super(_0x5430e0),_0x5430e0['config']['define']('users.anonymousUserId','anonymous-user'),_0x5430e0['config']['define']('users.colorsCount',0x8),this['users']=new _0x41c2b8(),this['_locale']=_0x5430e0['locale'],this['_licenseKeyCheckInterval']=null,this['_lastColor']=0x0,this['_myId']=null,this['decorate']('getOperationAuthor');}['init'](){const _0x55cd31=this['context'];this['licenseKey']=_0x55cd31['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x264d3a;for(const _0x584f08 in _0x55cd31){const _0x1828ec=_0x55cd31[_0x584f08];if('licenseKeyTrial'===_0x1828ec||'licenseKeyInvalid'===_0x1828ec||'licenseKeyValid'===_0x1828ec||'licenseKeyTrialLimit'==_0x1828ec){delete _0x55cd31[_0x584f08],_0x264d3a=_0x1828ec;break;}}if('licenseKeyInvalid'===_0x264d3a)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x258e04('invalid-license-key',null);if('licenseKeyTrial'===_0x264d3a&&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'===_0x264d3a)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x258e04('trial-license-key-reached-limit',null);'licenseKeyValid'===_0x264d3a&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}get['me'](){return null==this['_myId']?null:this['getUser'](this['_myId']);}['addUser'](_0x6024ef){if(!(_0x6024ef=Object['assign']({},_0x6024ef,{'color':this['_getNextColor']()}))['id']||'string'!=typeof _0x6024ef['id'])throw new _0x258e04('users-add-invalid-id');if(this['users']['has'](_0x6024ef['id']))throw new _0x258e04('users-add-duplicated-id',null,{'id':_0x6024ef['id']});_0x6024ef['name']=function(_0x561bb1,_0x48a443=''){const {t:t}=_0x561bb1;return''==(_0x48a443=_0x48a443['trim']())?t('Anonymous'):_0x48a443;}(this['_locale'],_0x6024ef['name']);const _0x4b4712=new n(_0x6024ef);return this['users']['add'](_0x4b4712),_0x4b4712;}['getUser'](_0x3ab79c){return this['users']['get'](_0x3ab79c);}['useAnonymousUser'](){const _0x4ea074=this['context']['config']['get']('users.anonymousUserId'),{t:t}=this['_locale'];if(this['users']['has'](_0x4ea074))return;this['addUser']({'id':_0x4ea074,'name':t('Anonymous')})['_isAnonymous']=!0x0,this['defineMe'](_0x4ea074);}['defineMe'](_0x45ce8b){if(this['_myId'])throw new _0x258e04('users-me-already-defined',null);if(!this['getUser'](_0x45ce8b))throw new _0x258e04('users-me-missing-user',null);this['_myId']=_0x45ce8b;}['getOperationAuthor'](){return this['me'];}['destroy'](){super['destroy'](),clearInterval(this['_licenseKeyCheckInterval']);}['_getNextColor'](){const _0x32b387=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x32b387&&(this['_lastColor']=0x0),new o(this['_lastColor']++);}}class n{constructor(_0x13387f){this['id']=_0x13387f['id'],this['color']=_0x13387f['color'],this['name']=_0x13387f['name'],this['avatar']=_0x13387f['avatar'],this['_isAnonymous']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['initials'](){return this['name']['split']('\x20')['map'](_0x3d3f4e=>_0x3d3f4e['charAt'](0x0))['slice'](0x0,0x2)['join']('')['toUpperCase']();}}class o{constructor(_0x26b642){this['_id']=_0x26b642;}['getBackgroundColorClass'](){return'ck-user__bg-color--'+this['_id'];}['getSelectionClass'](){return'ck-user__selection--'+this['_id'];}['getMarkerClass'](){return'ck-user__marker--'+this['_id'];}}
import _0xee249a from'@ckeditor/ckeditor5-core/src/contextplugin';import _0x461ef2 from'@ckeditor/ckeditor5-utils/src/collection';import'../theme/usercolors.css';import _0x4d6326 from'@ckeditor/ckeditor5-utils/src/ckeditorerror';export default class r extends _0xee249a{static get['pluginName'](){return'Users';}constructor(_0x6f4f33){super(_0x6f4f33),_0x6f4f33['config']['define']('users.anonymousUserId','anonymous-user'),_0x6f4f33['config']['define']('users.colorsCount',0x8),this['users']=new _0x461ef2(),this['_locale']=_0x6f4f33['locale'],this['_licenseKeyCheckInterval']=null,this['_lastColor']=0x0,this['_myId']=null,this['decorate']('getOperationAuthor');}['init'](){const _0x135cc2=this['context'];this['licenseKey']=_0x135cc2['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x6be246;for(const _0x4962fc in _0x135cc2){const _0x437866=_0x135cc2[_0x4962fc];if('licenseKeyTrial'===_0x437866||'licenseKeyInvalid'===_0x437866||'licenseKeyValid'===_0x437866||'licenseKeyTrialLimit'==_0x437866){delete _0x135cc2[_0x4962fc],_0x6be246=_0x437866;break;}}if('licenseKeyInvalid'===_0x6be246)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x4d6326('invalid-license-key',null);if('licenseKeyTrial'===_0x6be246&&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'===_0x6be246)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x4d6326('trial-license-key-reached-limit',null);'licenseKeyValid'===_0x6be246&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}get['me'](){return null==this['_myId']?null:this['getUser'](this['_myId']);}['addUser'](_0x43ad5e){if(!(_0x43ad5e=Object['assign']({},_0x43ad5e,{'color':this['_getNextColor']()}))['id']||'string'!=typeof _0x43ad5e['id'])throw new _0x4d6326('users-add-invalid-id');if(this['users']['has'](_0x43ad5e['id']))throw new _0x4d6326('users-add-duplicated-id',null,{'id':_0x43ad5e['id']});_0x43ad5e['name']=function(_0x218ca8,_0x912ac0=''){const {t:t}=_0x218ca8;return''==(_0x912ac0=_0x912ac0['trim']())?t('Anonymous'):_0x912ac0;}(this['_locale'],_0x43ad5e['name']);const _0x57367d=new n(_0x43ad5e);return this['users']['add'](_0x57367d),_0x57367d;}['getUser'](_0x234937){return this['users']['get'](_0x234937);}['useAnonymousUser'](){const _0x43b3a4=this['context']['config']['get']('users.anonymousUserId'),{t:t}=this['_locale'];if(this['users']['has'](_0x43b3a4))return;this['addUser']({'id':_0x43b3a4,'name':t('Anonymous')})['_isAnonymous']=!0x0,this['defineMe'](_0x43b3a4);}['defineMe'](_0x4a49a9){if(this['_myId'])throw new _0x4d6326('users-me-already-defined',null);if(!this['getUser'](_0x4a49a9))throw new _0x4d6326('users-me-missing-user',null);this['_myId']=_0x4a49a9;}['getOperationAuthor'](){return this['me'];}['destroy'](){super['destroy'](),clearInterval(this['_licenseKeyCheckInterval']);}['_getNextColor'](){const _0x27d065=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x27d065&&(this['_lastColor']=0x0),new o(this['_lastColor']++);}}class n{constructor(_0x3ca6e1){this['id']=_0x3ca6e1['id'],this['color']=_0x3ca6e1['color'],this['name']=_0x3ca6e1['name'],this['avatar']=_0x3ca6e1['avatar'],this['_isAnonymous']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['initials'](){return this['name']['split']('\x20')['map'](_0x485285=>_0x485285['charAt'](0x0))['slice'](0x0,0x2)['join']('')['toUpperCase']();}}class o{constructor(_0x1810dc){this['_id']=_0x1810dc;}['getBackgroundColorClass'](){return'ck-user__bg-color--'+this['_id'];}['getSelectionClass'](){return'ck-user__selection--'+this['_id'];}['getMarkerClass'](){return'ck-user__marker--'+this['_id'];}}

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

*/
const _0x54d4=['avatar','isAnonymous','setTemplate','ck\x20ck-user__name\x20ck-user__name--hidden','ck-user','push','div','url(\x27','initials','ck-user__anonymous','ck-user__img','name','ck-user__avatar'];(function(_0x1c819a,_0x54d48e){const _0x30ce0d=function(_0x37d830){while(--_0x37d830){_0x1c819a['push'](_0x1c819a['shift']());}};_0x30ce0d(++_0x54d48e);}(_0x54d4,0xdb));const _0x30ce=function(_0x1c819a,_0x54d48e){_0x1c819a=_0x1c819a-0x0;let _0x30ce0d=_0x54d4[_0x1c819a];return _0x30ce0d;};import _0x54a3f7 from'@ckeditor/ckeditor5-ui/src/view';import'../../../theme/users.css';export default class a extends _0x54a3f7{constructor(_0x2f3cf9,_0xd2e134){super(_0x2f3cf9),this[_0x30ce('0x0')]=_0xd2e134[_0x30ce('0x0')];const _0x8b286e=['ck',_0x30ce('0xc')];_0xd2e134[_0x30ce('0x3')]&&_0x8b286e[_0x30ce('0x7')](_0x30ce('0xb')),_0xd2e134[_0x30ce('0x2')]&&_0x8b286e['push'](_0x30ce('0x1')),this[_0x30ce('0x4')]({'tag':_0x30ce('0x8'),'attributes':{'class':['ck',_0x30ce('0x6')],'data-user-id':_0xd2e134['id']},'children':[{'tag':_0x30ce('0x8'),'attributes':{'class':_0x8b286e,'style':{'background-image':_0xd2e134[_0x30ce('0x2')]?_0x30ce('0x9')+_0xd2e134['avatar']+'\x27)':''}}},{'tag':_0x30ce('0x8'),'attributes':{'class':_0xd2e134[_0x30ce('0x2')]?_0x30ce('0x5'):'ck\x20ck-user__name'},'children':[{'text':_0xd2e134[_0x30ce('0xa')]}]}]});}}
const _0x4c8f=['ck\x20ck-user__name\x20ck-user__name--hidden','isAnonymous','name','ck\x20ck-user__name','ck-user__avatar','push','div','ck-user__img','setTemplate','avatar','url(\x27'];(function(_0x2ee08a,_0x4c8fa8){const _0x2667ab=function(_0x562e98){while(--_0x562e98){_0x2ee08a['push'](_0x2ee08a['shift']());}};_0x2667ab(++_0x4c8fa8);}(_0x4c8f,0x70));const _0x2667=function(_0x2ee08a,_0x4c8fa8){_0x2ee08a=_0x2ee08a-0x0;let _0x2667ab=_0x4c8f[_0x2ee08a];return _0x2667ab;};import _0x6a5f7c from'@ckeditor/ckeditor5-ui/src/view';import'../../../theme/users.css';export default class a extends _0x6a5f7c{constructor(_0x197ee6,_0x5b22be){super(_0x197ee6),this[_0x2667('0x0')]=_0x5b22be[_0x2667('0x0')];const _0x397e61=['ck',_0x2667('0x5')];_0x5b22be[_0x2667('0xa')]&&_0x397e61[_0x2667('0x3')]('ck-user__anonymous'),_0x5b22be[_0x2667('0x7')]&&_0x397e61[_0x2667('0x3')](_0x2667('0x2')),this[_0x2667('0x6')]({'tag':_0x2667('0x4'),'attributes':{'class':['ck','ck-user'],'data-user-id':_0x5b22be['id']},'children':[{'tag':_0x2667('0x4'),'attributes':{'class':_0x397e61,'style':{'background-image':_0x5b22be[_0x2667('0x7')]?_0x2667('0x8')+_0x5b22be[_0x2667('0x7')]+'\x27)':''}}},{'tag':_0x2667('0x4'),'attributes':{'class':_0x5b22be[_0x2667('0x7')]?_0x2667('0x9'):_0x2667('0x1')},'children':[{'text':_0x5b22be['initials']}]}]});}}
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