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 28.0.0 to 29.0.0

lang/translations/es.po

4

package.json
{
"name": "@ckeditor/ckeditor5-collaboration-core",
"version": "28.0.0",
"version": "29.0.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": "^28.0.0"
"ckeditor5": "^29.0.0"
}
}

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

*/
import{ContextPlugin as _0x1fdc14}from'ckeditor5/src/core';import{Collection as _0x49af65,CKEditorError as _0x3f8945}from'ckeditor5/src/utils';import'../theme/usercolors.css';export default class r extends _0x1fdc14{static get['pluginName'](){return'Users';}constructor(_0x4041f3){super(_0x4041f3),_0x4041f3['config']['define']('users.anonymousUserId','anonymous-user'),_0x4041f3['config']['define']('users.colorsCount',0x8),this['users']=new _0x49af65(),this['_locale']=_0x4041f3['locale'],this['_licenseKeyCheckInterval']=null,this['_lastColor']=0x0,this['_myId']=null,this['decorate']('getOperationAuthor');}['init'](){const _0x5854b6=this['context'];this['licenseKey']=_0x5854b6['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2b9806;for(const _0x46919c in _0x5854b6){const _0x52ce67=_0x5854b6[_0x46919c];if('licenseKeyTrial'===_0x52ce67||'licenseKeyInvalid'===_0x52ce67||'licenseKeyValid'===_0x52ce67||'licenseKeyTrialLimit'==_0x52ce67){delete _0x5854b6[_0x46919c],_0x2b9806=_0x52ce67;break;}}if('licenseKeyInvalid'===_0x2b9806)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x3f8945('invalid-license-key',null);if('licenseKeyTrial'===_0x2b9806&&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'===_0x2b9806)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x3f8945('trial-license-key-reached-limit',null);'licenseKeyValid'===_0x2b9806&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}get['me'](){return null==this['_myId']?null:this['getUser'](this['_myId']);}['addUser'](_0x22e1e2){if(!(_0x22e1e2=Object['assign']({},_0x22e1e2,{'color':this['_getNextColor']()}))['id']||'string'!=typeof _0x22e1e2['id'])throw new _0x3f8945('users-add-invalid-id');if(this['users']['has'](_0x22e1e2['id']))throw new _0x3f8945('users-add-duplicated-id',null,{'id':_0x22e1e2['id']});_0x22e1e2['name']=function(_0x29e344,_0x1e5bc5=''){const {t:t}=_0x29e344;return''==(_0x1e5bc5=_0x1e5bc5['trim']())?t('Anonymous'):_0x1e5bc5;}(this['_locale'],_0x22e1e2['name']);const _0x46a576=new n(_0x22e1e2);return this['users']['add'](_0x46a576),_0x46a576;}['getUser'](_0x3d0cf8){return this['users']['get'](_0x3d0cf8);}['useAnonymousUser'](){const _0x368d49=this['context']['config']['get']('users.anonymousUserId'),{t:t}=this['_locale'];if(this['users']['has'](_0x368d49))return;this['addUser']({'id':_0x368d49,'name':t('Anonymous')})['_isAnonymous']=!0x0,this['defineMe'](_0x368d49);}['defineMe'](_0x2b35ac){if(this['_myId'])throw new _0x3f8945('users-me-already-defined',null);if(!this['getUser'](_0x2b35ac))throw new _0x3f8945('users-me-missing-user',null);this['_myId']=_0x2b35ac;}['getOperationAuthor'](){return this['me'];}['destroy'](){super['destroy'](),clearInterval(this['_licenseKeyCheckInterval']);}['_getNextColor'](){const _0x2b5545=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x2b5545&&(this['_lastColor']=0x0),new o(this['_lastColor']++);}}class n{constructor(_0x3a7d8b){this['id']=_0x3a7d8b['id'],this['color']=_0x3a7d8b['color'],this['name']=_0x3a7d8b['name'],this['avatar']=_0x3a7d8b['avatar'],this['_isAnonymous']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['initials'](){return this['name']['split']('\x20')['map'](_0x20c09f=>_0x20c09f['charAt'](0x0))['slice'](0x0,0x2)['join']('')['toUpperCase']();}}class o{constructor(_0x40be1b){this['_id']=_0x40be1b;}['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 _0x1d3383}from'ckeditor5/src/core';import{Collection as _0x42a1b8,CKEditorError as _0x8b37c1}from'ckeditor5/src/utils';import _0x416f03 from'./permissions';import'../theme/usercolors.css';export default class r extends _0x1d3383{static get['pluginName'](){return'Users';}static get['requires'](){return[_0x416f03];}constructor(_0x43b921){super(_0x43b921),_0x43b921['config']['define']('users.anonymousUserId','anonymous-user'),_0x43b921['config']['define']('users.colorsCount',0x8),this['users']=new _0x42a1b8(),this['_locale']=_0x43b921['locale'],this['_licenseKeyCheckInterval']=null,this['_lastColor']=0x0,this['_myId']=null,this['decorate']('getOperationAuthor');}['init'](){const _0x2d1fc7=this['context'];this['licenseKey']=_0x2d1fc7['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4af13c;for(const _0x5bc2cc in _0x2d1fc7){const _0x37e643=_0x2d1fc7[_0x5bc2cc];if('licenseKeyTrial'===_0x37e643||'licenseKeyInvalid'===_0x37e643||'licenseKeyValid'===_0x37e643||'licenseKeyTrialLimit'==_0x37e643){delete _0x2d1fc7[_0x5bc2cc],_0x4af13c=_0x37e643;break;}}if('licenseKeyInvalid'===_0x4af13c)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x8b37c1('invalid-license-key',null);if('licenseKeyTrial'===_0x4af13c&&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'===_0x4af13c)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x8b37c1('trial-license-key-reached-limit',null);'licenseKeyValid'===_0x4af13c&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}get['me'](){return null==this['_myId']?null:this['getUser'](this['_myId']);}['addUser'](_0x565aca){if(!(_0x565aca=Object['assign']({},_0x565aca,{'color':this['_getNextColor']()}))['id']||'string'!=typeof _0x565aca['id'])throw new _0x8b37c1('users-add-invalid-id');if(this['users']['has'](_0x565aca['id']))throw new _0x8b37c1('users-add-duplicated-id',null,{'id':_0x565aca['id']});_0x565aca['name']=function(_0x399d05,_0x315d53=''){const {t:t}=_0x399d05;return''==(_0x315d53=_0x315d53['trim']())?t('Anonymous'):_0x315d53;}(this['_locale'],_0x565aca['name']);const _0xdadc55=new l(_0x565aca);return this['users']['add'](_0xdadc55),_0xdadc55;}['getUser'](_0x147b1a){return this['users']['get'](_0x147b1a);}['useAnonymousUser'](){const _0x1e0553=this['context']['config']['get']('users.anonymousUserId'),{t:t}=this['_locale'];if(this['users']['has'](_0x1e0553))return;this['addUser']({'id':_0x1e0553,'name':t('Anonymous')})['_isAnonymous']=!0x0,this['defineMe'](_0x1e0553);}['defineMe'](_0x167964){if(this['_myId'])throw new _0x8b37c1('users-me-already-defined',null);if(!this['getUser'](_0x167964))throw new _0x8b37c1('users-me-missing-user',null);this['_myId']=_0x167964;}['getOperationAuthor'](){return this['me'];}['destroy'](){super['destroy'](),clearInterval(this['_licenseKeyCheckInterval']);}['_getNextColor'](){const _0xf33c29=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0xf33c29&&(this['_lastColor']=0x0),new u(this['_lastColor']++);}}class l{constructor(_0xbe6241){this['id']=_0xbe6241['id'],this['color']=_0xbe6241['color'],this['name']=_0xbe6241['name'],this['avatar']=_0xbe6241['avatar'],this['_isAnonymous']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['initials'](){return this['name']['split']('\x20')['map'](_0x51ceef=>_0x51ceef['charAt'](0x0))['slice'](0x0,0x2)['join']('')['toUpperCase']();}}class u{constructor(_0xdce4c7){this['_id']=_0xdce4c7;}['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 _0x131f=['div','push','ck-user__img','ck-user__avatar','avatar','ck\x20ck-user__name','ck-user__anonymous','url(\x27','name','initials','setTemplate','ck\x20ck-user__name\x20ck-user__name--hidden'];(function(_0x20867b,_0x131fd3){const _0x137fac=function(_0x569f2f){while(--_0x569f2f){_0x20867b['push'](_0x20867b['shift']());}};_0x137fac(++_0x131fd3);}(_0x131f,0xec));const _0x137f=function(_0x20867b,_0x131fd3){_0x20867b=_0x20867b-0x0;let _0x137fac=_0x131f[_0x20867b];return _0x137fac;};import{View as _0x2da630}from'ckeditor5/src/ui';import'../../../theme/users.css';export default class a extends _0x2da630{constructor(_0x7426b9,_0x5c7f74){super(_0x7426b9),this[_0x137f('0x0')]=_0x5c7f74[_0x137f('0x0')];const _0x62ed90=['ck',_0x137f('0x6')];_0x5c7f74['isAnonymous']&&_0x62ed90[_0x137f('0x5')](_0x137f('0xa')),_0x5c7f74['avatar']&&_0x62ed90[_0x137f('0x5')](_0x137f('0x7')),this[_0x137f('0x2')]({'tag':_0x137f('0x4'),'attributes':{'class':['ck','ck-user'],'data-user-id':_0x5c7f74['id']},'children':[{'tag':_0x137f('0x4'),'attributes':{'class':_0x62ed90,'style':{'background-image':_0x5c7f74['avatar']?_0x137f('0xb')+_0x5c7f74[_0x137f('0x8')]+'\x27)':''}}},{'tag':_0x137f('0x4'),'attributes':{'class':_0x5c7f74['avatar']?_0x137f('0x3'):_0x137f('0x9')},'children':[{'text':_0x5c7f74[_0x137f('0x1')]}]}]});}}
const _0x3947=['ck-user','push','div','initials','name','ck-user__avatar','ck\x20ck-user__name','avatar'];(function(_0xb7cd88,_0x394783){const _0x27ae07=function(_0x15b2c6){while(--_0x15b2c6){_0xb7cd88['push'](_0xb7cd88['shift']());}};_0x27ae07(++_0x394783);}(_0x3947,0x94));const _0x27ae=function(_0xb7cd88,_0x394783){_0xb7cd88=_0xb7cd88-0x0;let _0x27ae07=_0x3947[_0xb7cd88];return _0x27ae07;};import{View as _0x515da0}from'ckeditor5/src/ui';import'../../../theme/users.css';export default class a extends _0x515da0{constructor(_0x37aa57,_0x49cbe9){super(_0x37aa57),this[_0x27ae('0x0')]=_0x49cbe9[_0x27ae('0x0')];const _0x1f45d1=['ck','ck-user__img'];_0x49cbe9['isAnonymous']&&_0x1f45d1[_0x27ae('0x5')]('ck-user__anonymous'),_0x49cbe9[_0x27ae('0x3')]&&_0x1f45d1[_0x27ae('0x5')](_0x27ae('0x1')),this['setTemplate']({'tag':_0x27ae('0x6'),'attributes':{'class':['ck',_0x27ae('0x4')],'data-user-id':_0x49cbe9['id']},'children':[{'tag':_0x27ae('0x6'),'attributes':{'class':_0x1f45d1,'style':{'background-image':_0x49cbe9['avatar']?'url(\x27'+_0x49cbe9[_0x27ae('0x3')]+'\x27)':''}}},{'tag':_0x27ae('0x6'),'attributes':{'class':_0x49cbe9[_0x27ae('0x3')]?'ck\x20ck-user__name\x20ck-user__name--hidden':_0x27ae('0x2')},'children':[{'text':_0x49cbe9[_0x27ae('0x7')]}]}]});}}
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