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

2

CHANGELOG.md
Changelog
=========
All changes in the package are documented at https://ckeditor.com/collaboration/changelog/.
All changes in the package are documented at https://ckeditor.com/collaboration/changelog/ and https://github.com/ckeditor/ckeditor5/blob/master/CHANGELOG.md.

@@ -6,0 +6,0 @@ Changes for the past releases are available below.

{
"name": "@ckeditor/ckeditor5-collaboration-core",
"version": "26.0.0",
"version": "27.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": "^26.0.0"
"ckeditor5": "^27.0.0"
}
}

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

Also, make sure you visit the [CKEditor 5 collaboration features changelog](https://ckeditor.com/collaboration/changelog/) whenever a new version of the package is released.
Also, make sure you visit the [CKEditor 5 changelog](https://github.com/ckeditor/ckeditor5/blob/master/CHANGELOG.md) whenever a new version of the package is released.

@@ -12,0 +12,0 @@ ## Getting support

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

*/
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'];}}
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'];}}

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

*/
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')]}]}]});}}
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']}]}]});}}
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