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 25.0.0 to 26.0.0

lang/translations/nl.po

6

package.json
{
"name": "@ckeditor/ckeditor5-collaboration-core",
"version": "25.0.0",
"version": "26.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,4 @@ "license": "SEE LICENSE IN LICENSE.md",

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

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

*/
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'];}}
import{ContextPlugin as _0x55a8ef}from'ckeditor5/src/core';import{Collection as _0x4913e8,CKEditorError as _0x31f89a}from'ckeditor5/src/utils';import'../theme/usercolors.css';export default class r extends _0x55a8ef{static get['pluginName'](){return'Users';}constructor(_0x21255d){super(_0x21255d),_0x21255d['config']['define']('users.anonymousUserId','anonymous-user'),_0x21255d['config']['define']('users.colorsCount',0x8),this['users']=new _0x4913e8(),this['_locale']=_0x21255d['locale'],this['_licenseKeyCheckInterval']=null,this['_lastColor']=0x0,this['_myId']=null,this['decorate']('getOperationAuthor');}['init'](){const _0x217896=this['context'];this['licenseKey']=_0x217896['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x107100;for(const _0x2e578c in _0x217896){const _0x34f13d=_0x217896[_0x2e578c];if('licenseKeyTrial'===_0x34f13d||'licenseKeyInvalid'===_0x34f13d||'licenseKeyValid'===_0x34f13d||'licenseKeyTrialLimit'==_0x34f13d){delete _0x217896[_0x2e578c],_0x107100=_0x34f13d;break;}}if('licenseKeyInvalid'===_0x107100)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x31f89a('invalid-license-key',null);if('licenseKeyTrial'===_0x107100&&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'===_0x107100)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x31f89a('trial-license-key-reached-limit',null);'licenseKeyValid'===_0x107100&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}get['me'](){return null==this['_myId']?null:this['getUser'](this['_myId']);}['addUser'](_0xc67214){if(!(_0xc67214=Object['assign']({},_0xc67214,{'color':this['_getNextColor']()}))['id']||'string'!=typeof _0xc67214['id'])throw new _0x31f89a('users-add-invalid-id');if(this['users']['has'](_0xc67214['id']))throw new _0x31f89a('users-add-duplicated-id',null,{'id':_0xc67214['id']});_0xc67214['name']=function(_0x467aef,_0x48c2a4=''){const {t:t}=_0x467aef;return''==(_0x48c2a4=_0x48c2a4['trim']())?t('Anonymous'):_0x48c2a4;}(this['_locale'],_0xc67214['name']);const _0x3b190f=new n(_0xc67214);return this['users']['add'](_0x3b190f),_0x3b190f;}['getUser'](_0x5746de){return this['users']['get'](_0x5746de);}['useAnonymousUser'](){const _0x598ba6=this['context']['config']['get']('users.anonymousUserId'),{t:t}=this['_locale'];if(this['users']['has'](_0x598ba6))return;this['addUser']({'id':_0x598ba6,'name':t('Anonymous')})['_isAnonymous']=!0x0,this['defineMe'](_0x598ba6);}['defineMe'](_0xfdf5c9){if(this['_myId'])throw new _0x31f89a('users-me-already-defined',null);if(!this['getUser'](_0xfdf5c9))throw new _0x31f89a('users-me-missing-user',null);this['_myId']=_0xfdf5c9;}['getOperationAuthor'](){return this['me'];}['destroy'](){super['destroy'](),clearInterval(this['_licenseKeyCheckInterval']);}['_getNextColor'](){const _0x26ca28=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x26ca28&&(this['_lastColor']=0x0),new o(this['_lastColor']++);}}class n{constructor(_0x467d11){this['id']=_0x467d11['id'],this['color']=_0x467d11['color'],this['name']=_0x467d11['name'],this['avatar']=_0x467d11['avatar'],this['_isAnonymous']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['initials'](){return this['name']['split']('\x20')['map'](_0x510ffe=>_0x510ffe['charAt'](0x0))['slice'](0x0,0x2)['join']('')['toUpperCase']();}}class o{constructor(_0x19bf30){this['_id']=_0x19bf30;}['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 _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')]}]}]});}}
const _0x1913=['ck-user__img','ck\x20ck-user__name','name','div','ck-user__avatar','setTemplate','url(\x27','push','initials','isAnonymous','ck-user__anonymous','avatar'];(function(_0x3d03b1,_0x1913c9){const _0x12c250=function(_0x44e73f){while(--_0x44e73f){_0x3d03b1['push'](_0x3d03b1['shift']());}};_0x12c250(++_0x1913c9);}(_0x1913,0x164));const _0x12c2=function(_0x3d03b1,_0x1913c9){_0x3d03b1=_0x3d03b1-0x0;let _0x12c250=_0x1913[_0x3d03b1];return _0x12c250;};import{View as _0x93b573}from'ckeditor5/src/ui';import'../../../theme/users.css';export default class a extends _0x93b573{constructor(_0x638198,_0x3f67c2){super(_0x638198),this[_0x12c2('0x6')]=_0x3f67c2[_0x12c2('0x6')];const _0x86d06=['ck',_0x12c2('0x4')];_0x3f67c2[_0x12c2('0x1')]&&_0x86d06['push'](_0x12c2('0x2')),_0x3f67c2[_0x12c2('0x3')]&&_0x86d06[_0x12c2('0xb')](_0x12c2('0x8')),this[_0x12c2('0x9')]({'tag':'div','attributes':{'class':['ck','ck-user'],'data-user-id':_0x3f67c2['id']},'children':[{'tag':'div','attributes':{'class':_0x86d06,'style':{'background-image':_0x3f67c2[_0x12c2('0x3')]?_0x12c2('0xa')+_0x3f67c2[_0x12c2('0x3')]+'\x27)':''}}},{'tag':_0x12c2('0x7'),'attributes':{'class':_0x3f67c2['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':_0x12c2('0x5')},'children':[{'text':_0x3f67c2[_0x12c2('0x0')]}]}]});}}
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