Socket
Socket
Sign inDemoInstall

@ckeditor/ckeditor5-collaboration-core

Package Overview
Dependencies
Maintainers
1
Versions
595
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 15.0.0 to 16.0.0

theme/usercolormixin.css

7

CHANGELOG.md
Changelog
=========
## 16.0.0 (2019-12-02)
### Features
* Introduced [`users.colorsCount`](https://ckeditor.com/docs/ckeditor5/latest/features/collaboration/users.html#adding-more-users-colors) configuration option.
## 15.0.0 (2019-10-23)

@@ -5,0 +12,0 @@

8

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

"dependencies": {
"@ckeditor/ckeditor5-core": "^15.0.0",
"@ckeditor/ckeditor5-ui": "^15.0.0",
"@ckeditor/ckeditor5-utils": "^15.0.0"
"@ckeditor/ckeditor5-core": "^16.0.0",
"@ckeditor/ckeditor5-ui": "^16.0.0",
"@ckeditor/ckeditor5-utils": "^16.0.0"
}
}

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

*/
var _0x2d1a=['licenseKeyValid','licenseKeyInvalid','invalid-license-key:\x20Invalid\x20license\x20key.\x20Please\x20contact\x20our\x20customer\x20support\x20at\x20https://ckeditor.com/contact/.','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','trial-license-key-reached-limit:\x20You\x20have\x20exhausted\x20the\x20trial\x20usage\x20limit.\x20You\x20need\x20to\x20restart\x20the\x20editor\x20now.\x20Please\x20contact\x20our\x20customer\x20support\x20to\x20get\x20a\x20full\x20access\x20at\x20https://ckeditor.com/contact/.','addUser','editor','add','defineMe','users-me-already-defined:\x20Cannot\x20add\x20a\x20local\x20user\x20more\x20than\x20once.','getUser','users-me-missing-user:\x20Cannot\x20add\x20an\x20undefined\x20user\x20as\x20a\x20local\x20user.','warn','anonymous-user','isReadOnly','destroy','string','user-invalid-id:\x20The\x20ID\x20must\x20be\x20a\x20string.','color','name','trim','length','Anonymous','avatar','isAnonymous','initials','map','charAt','join','toUpperCase','getBackgroundColorClass','ck-user__bg-color--','ck-user__marker--','pluginName','Users','decorate','getOperationAuthor','init','users','licenseKey','get','licenseKeyTrial'];(function(_0x2d8f05,_0x4b81bb){var _0x4d74cb=function(_0x32719f){while(--_0x32719f){_0x2d8f05['push'](_0x2d8f05['shift']());}};_0x4d74cb(++_0x4b81bb);}(_0x2d1a,0x7b));var _0x32c2=function(_0x447c9d,_0x4f8199){_0x447c9d=_0x447c9d-0x0;var _0x945e5d=_0x2d1a[_0x447c9d];return _0x945e5d;};import _0x3e3fb1 from'@ckeditor/ckeditor5-core/src/plugin';import _0x349f0e from'@ckeditor/ckeditor5-utils/src/collection';import'../theme/usercolors.css';import _0x2e78fc,{attachLinkToDocumentation as _0xff3254}from'@ckeditor/ckeditor5-utils/src/ckeditorerror';const o=0x8;export default class n extends _0x3e3fb1{static get[_0x32c2('0x0')](){return _0x32c2('0x1');}constructor(_0x3e3fb1){super(_0x3e3fb1),this['s']=null,this[_0x32c2('0x2')](_0x32c2('0x3'));}[_0x32c2('0x4')](){const _0x3e3fb1=this['editor'];this[_0x32c2('0x5')]=new _0x349f0e(),this['i']=0x0,this[_0x32c2('0x6')]=_0x3e3fb1['config'][_0x32c2('0x7')](_0x32c2('0x6'));let _0xff3254=!0x1;this['s']=setInterval(()=>{let _0x349f0e;for(const _0x2e78fc in _0x3e3fb1){const _0xff3254=_0x3e3fb1[_0x2e78fc];_0x32c2('0x8')!==_0xff3254&&'licenseKeyInvalid'!==_0xff3254&&_0x32c2('0x9')!==_0xff3254||(_0x349f0e=_0xff3254);}if(_0x32c2('0xa')===_0x349f0e)throw this['o'](),new _0x2e78fc(_0x32c2('0xb'));if(_0x32c2('0x8')!==_0x349f0e)_0x349f0e&&clearInterval(this['s']);else{_0xff3254||(console[_0x32c2('0xc')](_0x32c2('0xd')),_0xff3254=!0x0);for(const _0x349f0e in _0x3e3fb1)if(_0x32c2('0xe')===_0x3e3fb1[_0x349f0e])throw this['o'](),new _0x2e78fc(_0x32c2('0xf'),this);}},0x7d0);}[_0x32c2('0x10')](_0x3e3fb1){_0x3e3fb1=Object['assign']({},_0x3e3fb1,{'color':this['l']()});const _0x349f0e=new c(_0x3e3fb1,this[_0x32c2('0x11')]);return this[_0x32c2('0x5')][_0x32c2('0x12')](_0x349f0e),_0x349f0e;}['getUser'](_0x3e3fb1){return this[_0x32c2('0x5')][_0x32c2('0x7')](_0x3e3fb1);}[_0x32c2('0x13')](_0x3e3fb1){if(this['u'])throw new _0x2e78fc(_0x32c2('0x14'),this);if(!this[_0x32c2('0x15')](_0x3e3fb1))throw new _0x2e78fc(_0x32c2('0x16'),this);this['u']=_0x3e3fb1;}get['me'](){if(!this['u']){console[_0x32c2('0x17')](_0xff3254('users-me-not-defined:\x20Local\x20user\x20is\x20not\x20defined.'));const _0x3e3fb1=_0x32c2('0x18');this['addUser']({'name':'','id':_0x3e3fb1}),this[_0x32c2('0x13')](_0x3e3fb1);}return this['getUser'](this['u']);}[_0x32c2('0x3')](){return this['me'];}['l'](){return this['i']>=o&&(this['i']=0x0),new l(this['i']++);}['o'](){clearInterval(this['s']),this[_0x32c2('0x11')][_0x32c2('0x19')]=!0x0;}[_0x32c2('0x1a')](){super[_0x32c2('0x1a')](),clearInterval(this['s']);}}class c{constructor(_0x3e3fb1,_0x349f0e){if(!_0x3e3fb1['id']||_0x32c2('0x1b')!=typeof _0x3e3fb1['id'])throw new _0x2e78fc(_0x32c2('0x1c'),_0x349f0e);this['id']=_0x3e3fb1['id'],this[_0x32c2('0x1d')]=_0x3e3fb1[_0x32c2('0x1d')],this[_0x32c2('0x1e')]=function(_0x3e3fb1=''){if(0x0===_0x3e3fb1[_0x32c2('0x1f')]()[_0x32c2('0x20')])return _0x32c2('0x21');return _0x3e3fb1[_0x32c2('0x1f')]();}(_0x3e3fb1[_0x32c2('0x1e')]),this[_0x32c2('0x22')]=_0x3e3fb1[_0x32c2('0x22')];}get[_0x32c2('0x23')](){return _0x32c2('0x21')==this[_0x32c2('0x1e')];}get[_0x32c2('0x24')](){return this['name']['split']('\x20')[_0x32c2('0x25')](_0x3e3fb1=>_0x3e3fb1[_0x32c2('0x26')](0x0))['slice'](0x0,0x2)[_0x32c2('0x27')]('')[_0x32c2('0x28')]();}}class l{constructor(_0x3e3fb1){this['h']=_0x3e3fb1;}[_0x32c2('0x29')](){return _0x32c2('0x2a')+this['h'];}['getSelectionClass'](){return'ck-user__selection--'+this['h'];}['getMarkerClass'](){return _0x32c2('0x2b')+this['h'];}}
var _0x1386=['user-invalid-id:\x20The\x20ID\x20must\x20be\x20a\x20string.','color','trim','name','avatar','isAnonymous','Anonymous','map','charAt','join','toUpperCase','ck-user__bg-color--','getSelectionClass','ck-user__selection--','getMarkerClass','ck-user__marker--','pluginName','Users','getOperationAuthor','config','get','users.colorsCount','init','editor','users','licenseKey','licenseKeyTrial','licenseKeyInvalid','licenseKeyValid','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','trial-license-key-reached-limit:\x20You\x20have\x20exhausted\x20the\x20trial\x20usage\x20limit.\x20You\x20need\x20to\x20restart\x20the\x20editor\x20now.\x20Please\x20contact\x20our\x20customer\x20support\x20to\x20get\x20a\x20full\x20access\x20at\x20https://ckeditor.com/contact/.','addUser','add','getUser','defineMe','users-me-already-defined:\x20Cannot\x20add\x20a\x20local\x20user\x20more\x20than\x20once.','warn','anonymous-user','isReadOnly','destroy','string'];(function(_0x152fa2,_0xb16aec){var _0x39bf74=function(_0x2d0f19){while(--_0x2d0f19){_0x152fa2['push'](_0x152fa2['shift']());}};_0x39bf74(++_0xb16aec);}(_0x1386,0x13d));var _0x25f5=function(_0x15f412,_0x3a449f){_0x15f412=_0x15f412-0x0;var _0x26395b=_0x1386[_0x15f412];return _0x26395b;};import _0x21d549 from'@ckeditor/ckeditor5-core/src/plugin';import _0x45fb4e from'@ckeditor/ckeditor5-utils/src/collection';import'../theme/usercolors.css';import _0x41100d,{attachLinkToDocumentation as _0x58ebf9}from'@ckeditor/ckeditor5-utils/src/ckeditorerror';export default class n extends _0x21d549{static get[_0x25f5('0x0')](){return _0x25f5('0x1');}constructor(_0x21d549){super(_0x21d549),this['s']=null,this['decorate'](_0x25f5('0x2')),this['i']=_0x21d549[_0x25f5('0x3')][_0x25f5('0x4')](_0x25f5('0x5'))||0x8;}[_0x25f5('0x6')](){const _0x21d549=this[_0x25f5('0x7')];this[_0x25f5('0x8')]=new _0x45fb4e(),this['o']=0x0,this['licenseKey']=_0x21d549[_0x25f5('0x3')][_0x25f5('0x4')](_0x25f5('0x9'));let _0x58ebf9=!0x1;this['s']=setInterval(()=>{let _0x45fb4e;for(const _0x41100d in _0x21d549){const _0x58ebf9=_0x21d549[_0x41100d];_0x25f5('0xa')!==_0x58ebf9&&_0x25f5('0xb')!==_0x58ebf9&&_0x25f5('0xc')!==_0x58ebf9||(_0x45fb4e=_0x58ebf9);}if(_0x25f5('0xb')===_0x45fb4e)throw this['l'](),new _0x41100d('invalid-license-key:\x20Invalid\x20license\x20key.\x20Please\x20contact\x20our\x20customer\x20support\x20at\x20https://ckeditor.com/contact/.',null);if(_0x25f5('0xa')!==_0x45fb4e)_0x45fb4e&&clearInterval(this['s']);else{_0x58ebf9||(console[_0x25f5('0xd')](_0x25f5('0xe')),_0x58ebf9=!0x0);for(const _0x45fb4e in _0x21d549)if(_0x25f5('0xf')===_0x21d549[_0x45fb4e])throw this['l'](),new _0x41100d(_0x25f5('0x10'),null);}},0x7d0);}[_0x25f5('0x11')](_0x21d549){_0x21d549=Object['assign']({},_0x21d549,{'color':this['u']()});const _0x45fb4e=new o(_0x21d549,this[_0x25f5('0x7')]);return this['users'][_0x25f5('0x12')](_0x45fb4e),_0x45fb4e;}[_0x25f5('0x13')](_0x21d549){return this['users'][_0x25f5('0x4')](_0x21d549);}[_0x25f5('0x14')](_0x21d549){if(this['h'])throw new _0x41100d(_0x25f5('0x15'),null);if(!this[_0x25f5('0x13')](_0x21d549))throw new _0x41100d('users-me-missing-user:\x20Cannot\x20add\x20an\x20undefined\x20user\x20as\x20a\x20local\x20user.',null);this['h']=_0x21d549;}get['me'](){if(!this['h']){console[_0x25f5('0x16')](_0x58ebf9('users-me-not-defined:\x20Local\x20user\x20is\x20not\x20defined.'));const _0x21d549=_0x25f5('0x17');this[_0x25f5('0x11')]({'name':'','id':_0x21d549}),this[_0x25f5('0x14')](_0x21d549);}return this['getUser'](this['h']);}[_0x25f5('0x2')](){return this['me'];}['u'](){return this['o']>=this['i']&&(this['o']=0x0),new l(this['o']++);}['l'](){clearInterval(this['s']),this[_0x25f5('0x7')][_0x25f5('0x18')]=!0x0;}['destroy'](){super[_0x25f5('0x19')](),clearInterval(this['s']);}}class o{constructor(_0x21d549,_0x45fb4e){if(!_0x21d549['id']||_0x25f5('0x1a')!=typeof _0x21d549['id'])throw new _0x41100d(_0x25f5('0x1b'),_0x45fb4e);this['id']=_0x21d549['id'],this[_0x25f5('0x1c')]=_0x21d549[_0x25f5('0x1c')],this['name']=function(_0x21d549=''){if(0x0===_0x21d549[_0x25f5('0x1d')]()['length'])return'Anonymous';return _0x21d549[_0x25f5('0x1d')]();}(_0x21d549[_0x25f5('0x1e')]),this[_0x25f5('0x1f')]=_0x21d549['avatar'];}get[_0x25f5('0x20')](){return _0x25f5('0x21')==this[_0x25f5('0x1e')];}get['initials'](){return this['name']['split']('\x20')[_0x25f5('0x22')](_0x21d549=>_0x21d549[_0x25f5('0x23')](0x0))['slice'](0x0,0x2)[_0x25f5('0x24')]('')[_0x25f5('0x25')]();}}class l{constructor(_0x21d549){this['m']=_0x21d549;}['getBackgroundColorClass'](){return _0x25f5('0x26')+this['m'];}[_0x25f5('0x27')](){return _0x25f5('0x28')+this['m'];}[_0x25f5('0x29')](){return _0x25f5('0x2a')+this['m'];}}

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

*/
var _0x2812=['push','ck-user__avatar','div','ck-user','ck\x20ck-user__name\x20ck-user__name--hidden','ck\x20ck-user__name','initials','name','ck-user__img','isAnonymous','ck-user__anonymous','avatar'];(function(_0x18fbdb,_0x55147b){var _0x4308ae=function(_0x5ed0b7){while(--_0x5ed0b7){_0x18fbdb['push'](_0x18fbdb['shift']());}};_0x4308ae(++_0x55147b);}(_0x2812,0xc7));var _0x3954=function(_0x12c1e4,_0x41c9aa){_0x12c1e4=_0x12c1e4-0x0;var _0x1df5b5=_0x2812[_0x12c1e4];return _0x1df5b5;};import _0x5e5e76 from'@ckeditor/ckeditor5-ui/src/view';import'../../../theme/users.css';export default class u extends _0x5e5e76{constructor(s,e){super(s),this[_0x3954('0x0')]=e[_0x3954('0x0')];const r=['ck',_0x3954('0x1')];e[_0x3954('0x2')]&&r['push'](_0x3954('0x3')),e[_0x3954('0x4')]&&r[_0x3954('0x5')](_0x3954('0x6')),this['setTemplate']({'tag':_0x3954('0x7'),'attributes':{'class':['ck',_0x3954('0x8')],'data-user-id':e['id']},'children':[{'tag':_0x3954('0x7'),'attributes':{'class':r,'style':{'background-image':e[_0x3954('0x4')]?'url(\x27'+e[_0x3954('0x4')]+'\x27)':''}}},{'tag':_0x3954('0x7'),'attributes':{'class':e[_0x3954('0x4')]?_0x3954('0x9'):_0x3954('0xa')},'children':[{'text':e[_0x3954('0xb')]}]}]});}}
var _0x2dce=['avatar','ck-user__avatar','setTemplate','div','url(\x27','ck\x20ck-user__name\x20ck-user__name--hidden','ck\x20ck-user__name','initials','name','isAnonymous','push'];(function(_0x21a3ab,_0x4465d3){var _0x71dc2f=function(_0x2d9b48){while(--_0x2d9b48){_0x21a3ab['push'](_0x21a3ab['shift']());}};_0x71dc2f(++_0x4465d3);}(_0x2dce,0x1c0));var _0x193f=function(_0x2e4e91,_0xa9e967){_0x2e4e91=_0x2e4e91-0x0;var _0x36293c=_0x2dce[_0x2e4e91];return _0x36293c;};import _0x5b6b9b from'@ckeditor/ckeditor5-ui/src/view';import'../../../theme/users.css';export default class a extends _0x5b6b9b{constructor(s,e){super(s),this[_0x193f('0x0')]=e[_0x193f('0x0')];const r=['ck','ck-user__img'];e[_0x193f('0x1')]&&r[_0x193f('0x2')]('ck-user__anonymous'),e[_0x193f('0x3')]&&r[_0x193f('0x2')](_0x193f('0x4')),this[_0x193f('0x5')]({'tag':_0x193f('0x6'),'attributes':{'class':['ck','ck-user'],'data-user-id':e['id']},'children':[{'tag':_0x193f('0x6'),'attributes':{'class':r,'style':{'background-image':e[_0x193f('0x3')]?_0x193f('0x7')+e[_0x193f('0x3')]+'\x27)':''}}},{'tag':_0x193f('0x6'),'attributes':{'class':e[_0x193f('0x3')]?_0x193f('0x8'):_0x193f('0x9')},'children':[{'text':e[_0x193f('0xa')]}]}]});}}

Sorry, the diff of this file is not supported yet

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