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 27.0.0 to 27.1.0

lang/translations/de-ch.po

4

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

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

"dependencies": {
"ckeditor5": "^27.0.0"
"ckeditor5": "^27.1.0"
}
}

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

*/
import{ContextPlugin as _0x3f7cab}from'ckeditor5/src/core';import{Collection as _0x3d4e3d,CKEditorError as _0x300e8a}from'ckeditor5/src/utils';import'../theme/usercolors.css';export default class r extends _0x3f7cab{static get['pluginName'](){return'Users';}constructor(_0x5c7ccf){super(_0x5c7ccf),_0x5c7ccf['config']['define']('users.anonymousUserId','anonymous-user'),_0x5c7ccf['config']['define']('users.colorsCount',0x8),this['users']=new _0x3d4e3d(),this['_locale']=_0x5c7ccf['locale'],this['_licenseKeyCheckInterval']=null,this['_lastColor']=0x0,this['_myId']=null,this['decorate']('getOperationAuthor');}['init'](){const _0x384bcd=this['context'];this['licenseKey']=_0x384bcd['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x43d3b7;for(const _0x4b147f in _0x384bcd){const _0x50668a=_0x384bcd[_0x4b147f];if('licenseKeyTrial'===_0x50668a||'licenseKeyInvalid'===_0x50668a||'licenseKeyValid'===_0x50668a||'licenseKeyTrialLimit'==_0x50668a){delete _0x384bcd[_0x4b147f],_0x43d3b7=_0x50668a;break;}}if('licenseKeyInvalid'===_0x43d3b7)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x300e8a('invalid-license-key',null);if('licenseKeyTrial'===_0x43d3b7&&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'===_0x43d3b7)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x300e8a('trial-license-key-reached-limit',null);'licenseKeyValid'===_0x43d3b7&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}get['me'](){return null==this['_myId']?null:this['getUser'](this['_myId']);}['addUser'](_0x21cba3){if(!(_0x21cba3=Object['assign']({},_0x21cba3,{'color':this['_getNextColor']()}))['id']||'string'!=typeof _0x21cba3['id'])throw new _0x300e8a('users-add-invalid-id');if(this['users']['has'](_0x21cba3['id']))throw new _0x300e8a('users-add-duplicated-id',null,{'id':_0x21cba3['id']});_0x21cba3['name']=function(_0x4b564f,_0x49b16d=''){const {t:t}=_0x4b564f;return''==(_0x49b16d=_0x49b16d['trim']())?t('Anonymous'):_0x49b16d;}(this['_locale'],_0x21cba3['name']);const _0x41a851=new n(_0x21cba3);return this['users']['add'](_0x41a851),_0x41a851;}['getUser'](_0x5542a0){return this['users']['get'](_0x5542a0);}['useAnonymousUser'](){const _0x12bbfd=this['context']['config']['get']('users.anonymousUserId'),{t:t}=this['_locale'];if(this['users']['has'](_0x12bbfd))return;this['addUser']({'id':_0x12bbfd,'name':t('Anonymous')})['_isAnonymous']=!0x0,this['defineMe'](_0x12bbfd);}['defineMe'](_0x4d5319){if(this['_myId'])throw new _0x300e8a('users-me-already-defined',null);if(!this['getUser'](_0x4d5319))throw new _0x300e8a('users-me-missing-user',null);this['_myId']=_0x4d5319;}['getOperationAuthor'](){return this['me'];}['destroy'](){super['destroy'](),clearInterval(this['_licenseKeyCheckInterval']);}['_getNextColor'](){const _0x2858b8=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x2858b8&&(this['_lastColor']=0x0),new o(this['_lastColor']++);}}class n{constructor(_0x4c6056){this['id']=_0x4c6056['id'],this['color']=_0x4c6056['color'],this['name']=_0x4c6056['name'],this['avatar']=_0x4c6056['avatar'],this['_isAnonymous']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['initials'](){return this['name']['split']('\x20')['map'](_0x339e5d=>_0x339e5d['charAt'](0x0))['slice'](0x0,0x2)['join']('')['toUpperCase']();}}class o{constructor(_0x4ddf48){this['_id']=_0x4ddf48;}['getBackgroundColorClass'](){return'ck-user__bg-color--'+this['_id'];}['getSelectionClass'](){return'ck-user__selection--'+this['_id'];}['getMarkerClass'](){return'ck-user__marker--'+this['_id'];}}
import{ContextPlugin as _0x3f7771}from'ckeditor5/src/core';import{Collection as _0x507022,CKEditorError as _0x423a3e}from'ckeditor5/src/utils';import'../theme/usercolors.css';export default class r extends _0x3f7771{static get['pluginName'](){return'Users';}constructor(_0x9466af){super(_0x9466af),_0x9466af['config']['define']('users.anonymousUserId','anonymous-user'),_0x9466af['config']['define']('users.colorsCount',0x8),this['users']=new _0x507022(),this['_locale']=_0x9466af['locale'],this['_licenseKeyCheckInterval']=null,this['_lastColor']=0x0,this['_myId']=null,this['decorate']('getOperationAuthor');}['init'](){const _0x539ca6=this['context'];this['licenseKey']=_0x539ca6['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4d97e8;for(const _0x48b8b2 in _0x539ca6){const _0x55e92e=_0x539ca6[_0x48b8b2];if('licenseKeyTrial'===_0x55e92e||'licenseKeyInvalid'===_0x55e92e||'licenseKeyValid'===_0x55e92e||'licenseKeyTrialLimit'==_0x55e92e){delete _0x539ca6[_0x48b8b2],_0x4d97e8=_0x55e92e;break;}}if('licenseKeyInvalid'===_0x4d97e8)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x423a3e('invalid-license-key',null);if('licenseKeyTrial'===_0x4d97e8&&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'===_0x4d97e8)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x423a3e('trial-license-key-reached-limit',null);'licenseKeyValid'===_0x4d97e8&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}get['me'](){return null==this['_myId']?null:this['getUser'](this['_myId']);}['addUser'](_0x4c91e7){if(!(_0x4c91e7=Object['assign']({},_0x4c91e7,{'color':this['_getNextColor']()}))['id']||'string'!=typeof _0x4c91e7['id'])throw new _0x423a3e('users-add-invalid-id');if(this['users']['has'](_0x4c91e7['id']))throw new _0x423a3e('users-add-duplicated-id',null,{'id':_0x4c91e7['id']});_0x4c91e7['name']=function(_0x1c22a8,_0x59e499=''){const {t:t}=_0x1c22a8;return''==(_0x59e499=_0x59e499['trim']())?t('Anonymous'):_0x59e499;}(this['_locale'],_0x4c91e7['name']);const _0xce8349=new n(_0x4c91e7);return this['users']['add'](_0xce8349),_0xce8349;}['getUser'](_0x9532bc){return this['users']['get'](_0x9532bc);}['useAnonymousUser'](){const _0x37d279=this['context']['config']['get']('users.anonymousUserId'),{t:t}=this['_locale'];if(this['users']['has'](_0x37d279))return;this['addUser']({'id':_0x37d279,'name':t('Anonymous')})['_isAnonymous']=!0x0,this['defineMe'](_0x37d279);}['defineMe'](_0x1d9bda){if(this['_myId'])throw new _0x423a3e('users-me-already-defined',null);if(!this['getUser'](_0x1d9bda))throw new _0x423a3e('users-me-missing-user',null);this['_myId']=_0x1d9bda;}['getOperationAuthor'](){return this['me'];}['destroy'](){super['destroy'](),clearInterval(this['_licenseKeyCheckInterval']);}['_getNextColor'](){const _0x27da82=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x27da82&&(this['_lastColor']=0x0),new o(this['_lastColor']++);}}class n{constructor(_0x437332){this['id']=_0x437332['id'],this['color']=_0x437332['color'],this['name']=_0x437332['name'],this['avatar']=_0x437332['avatar'],this['_isAnonymous']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['initials'](){return this['name']['split']('\x20')['map'](_0x11b4b6=>_0x11b4b6['charAt'](0x0))['slice'](0x0,0x2)['join']('')['toUpperCase']();}}class o{constructor(_0x49101f){this['_id']=_0x49101f;}['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 _0xa66f=['setTemplate','name','url(\x27','push','div','avatar','ck-user__img','ck-user','ck-user__avatar','ck\x20ck-user__name\x20ck-user__name--hidden','isAnonymous'];(function(_0x63d2e6,_0xa66f56){const _0x2e957a=function(_0x508406){while(--_0x508406){_0x63d2e6['push'](_0x63d2e6['shift']());}};_0x2e957a(++_0xa66f56);}(_0xa66f,0x7e));const _0x2e95=function(_0x63d2e6,_0xa66f56){_0x63d2e6=_0x63d2e6-0x0;let _0x2e957a=_0xa66f[_0x63d2e6];return _0x2e957a;};import{View as _0x56293e}from'ckeditor5/src/ui';import'../../../theme/users.css';export default class a extends _0x56293e{constructor(_0x53f10f,_0x19961d){super(_0x53f10f),this[_0x2e95('0x7')]=_0x19961d[_0x2e95('0x7')];const _0x52c180=['ck',_0x2e95('0x1')];_0x19961d[_0x2e95('0x5')]&&_0x52c180['push']('ck-user__anonymous'),_0x19961d[_0x2e95('0x0')]&&_0x52c180[_0x2e95('0x9')](_0x2e95('0x3')),this[_0x2e95('0x6')]({'tag':_0x2e95('0xa'),'attributes':{'class':['ck',_0x2e95('0x2')],'data-user-id':_0x19961d['id']},'children':[{'tag':_0x2e95('0xa'),'attributes':{'class':_0x52c180,'style':{'background-image':_0x19961d[_0x2e95('0x0')]?_0x2e95('0x8')+_0x19961d[_0x2e95('0x0')]+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x19961d[_0x2e95('0x0')]?_0x2e95('0x4'):'ck\x20ck-user__name'},'children':[{'text':_0x19961d['initials']}]}]});}}
const _0x2bde=['ck-user__anonymous','ck-user__img','push','name','div','isAnonymous','avatar','ck-user__avatar','ck-user','url(\x27','setTemplate'];(function(_0x5dbe45,_0x2bde6f){const _0x2b22ce=function(_0x264a14){while(--_0x264a14){_0x5dbe45['push'](_0x5dbe45['shift']());}};_0x2b22ce(++_0x2bde6f);}(_0x2bde,0x1ee));const _0x2b22=function(_0x5dbe45,_0x2bde6f){_0x5dbe45=_0x5dbe45-0x0;let _0x2b22ce=_0x2bde[_0x5dbe45];return _0x2b22ce;};import{View as _0x46987e}from'ckeditor5/src/ui';import'../../../theme/users.css';export default class a extends _0x46987e{constructor(_0x158dc8,_0x48ea9c){super(_0x158dc8),this[_0x2b22('0x4')]=_0x48ea9c[_0x2b22('0x4')];const _0x1dec51=['ck',_0x2b22('0x2')];_0x48ea9c[_0x2b22('0x6')]&&_0x1dec51[_0x2b22('0x3')](_0x2b22('0x1')),_0x48ea9c[_0x2b22('0x7')]&&_0x1dec51[_0x2b22('0x3')](_0x2b22('0x8')),this[_0x2b22('0x0')]({'tag':_0x2b22('0x5'),'attributes':{'class':['ck',_0x2b22('0x9')],'data-user-id':_0x48ea9c['id']},'children':[{'tag':_0x2b22('0x5'),'attributes':{'class':_0x1dec51,'style':{'background-image':_0x48ea9c[_0x2b22('0x7')]?_0x2b22('0xa')+_0x48ea9c[_0x2b22('0x7')]+'\x27)':''}}},{'tag':_0x2b22('0x5'),'attributes':{'class':_0x48ea9c['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name'},'children':[{'text':_0x48ea9c['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