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 1.2.0 to 15.0.0

10

CHANGELOG.md
Changelog
=========
## 15.0.0 (2019-10-23)
### Other changes
* Added more explanatory message for an error that is thrown when the local user is not defined.
## 1.2.0 (2019-08-22)

@@ -10,2 +17,3 @@

## 1.1.0 (2019-07-04)

@@ -17,2 +25,3 @@

## 1.0.3 (2019-06-05)

@@ -22,2 +31,3 @@

## 1.0.2 (2019-04-05)

@@ -24,0 +34,0 @@

8

package.json
{
"name": "@ckeditor/ckeditor5-collaboration-core",
"version": "1.2.0",
"version": "15.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": "^12.3.0",
"@ckeditor/ckeditor5-ui": "^14.0.0",
"@ckeditor/ckeditor5-utils": "^14.0.0"
"@ckeditor/ckeditor5-core": "^15.0.0",
"@ckeditor/ckeditor5-ui": "^15.0.0",
"@ckeditor/ckeditor5-utils": "^15.0.0"
}
}

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

*/
var _0x162b=['ck-user__selection--','getMarkerClass','ck-user__marker--','pluginName','Users','editor','users','config','get','licenseKey','licenseKeyTrial','licenseKeyInvalid','licenseKeyValid','invalid-license-key:\x20Invalid\x20license\x20key.\x20Please\x20contact\x20our\x20customer\x20support\x20at\x20https://ckeditor.com/contact/.','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/.','color','add','getUser','defineMe','users-me-missing-user:\x20Cannot\x20add\x20an\x20undefined\x20user\x20as\x20a\x20local\x20user.','getOperationAuthor','isReadOnly','destroy','string','user-invalid-id:\x20The\x20ID\x20must\x20be\x20a\x20string.','name','trim','length','Anonymous','avatar','isAnonymous','split','map','charAt','slice','toUpperCase','getBackgroundColorClass','ck-user__bg-color--','getSelectionClass'];(function(_0x46d60d,_0x9bd13d){var _0xe0304f=function(_0x414aed){while(--_0x414aed){_0x46d60d['push'](_0x46d60d['shift']());}};_0xe0304f(++_0x9bd13d);}(_0x162b,0xa7));var _0x53a4=function(_0x3354ee,_0x84718b){_0x3354ee=_0x3354ee-0x0;var _0x1a89fb=_0x162b[_0x3354ee];return _0x1a89fb;};import _0x3ced1f from'@ckeditor/ckeditor5-core/src/plugin';import _0x47fa35 from'@ckeditor/ckeditor5-utils/src/collection';import'../theme/usercolors.css';import _0x1b0771 from'@ckeditor/ckeditor5-utils/src/ckeditorerror';const r=0x8;export default class n extends _0x3ced1f{static get[_0x53a4('0x0')](){return _0x53a4('0x1');}constructor(_0x3ced1f){super(_0x3ced1f),this['s']=null,this['decorate']('getOperationAuthor');}['init'](){const _0x3ced1f=this[_0x53a4('0x2')];this[_0x53a4('0x3')]=new _0x47fa35(),this['i']=0x0,this['licenseKey']=_0x3ced1f[_0x53a4('0x4')][_0x53a4('0x5')](_0x53a4('0x6'));let r=!0x1;this['s']=setInterval(()=>{let _0x47fa35;for(const _0x1b0771 in _0x3ced1f){const r=_0x3ced1f[_0x1b0771];_0x53a4('0x7')!==r&&_0x53a4('0x8')!==r&&_0x53a4('0x9')!==r||(_0x47fa35=r);}if(_0x53a4('0x8')===_0x47fa35)throw this['o'](),new _0x1b0771(_0x53a4('0xa'));if(_0x53a4('0x7')!==_0x47fa35)_0x47fa35&&clearInterval(this['s']);else{r||(console['info'](_0x53a4('0xb')),r=!0x0);for(const _0x47fa35 in _0x3ced1f)if(_0x53a4('0xc')===_0x3ced1f[_0x47fa35])throw this['o'](),new _0x1b0771(_0x53a4('0xd'),this);}},0x7d0);}['addUser'](_0x3ced1f){_0x3ced1f[_0x53a4('0xe')]=this['l']();const _0x47fa35=new o(_0x3ced1f,this[_0x53a4('0x2')]);return this[_0x53a4('0x3')][_0x53a4('0xf')](_0x47fa35),_0x47fa35;}[_0x53a4('0x10')](_0x3ced1f){return this[_0x53a4('0x3')][_0x53a4('0x5')](_0x3ced1f);}[_0x53a4('0x11')](_0x3ced1f){if(this['u'])throw new _0x1b0771('users-me-already-defined:\x20Cannot\x20add\x20a\x20local\x20user\x20more\x20than\x20once.',this);if(!this[_0x53a4('0x10')](_0x3ced1f))throw new _0x1b0771(_0x53a4('0x12'),this);this['u']=_0x3ced1f;}get['me'](){if(!this['u'])throw new _0x1b0771('users-me-not-defined:\x20Local\x20user\x20is\x20not\x20defined.',this);return this[_0x53a4('0x10')](this['u']);}[_0x53a4('0x13')](){return this['me'];}['l'](){return this['i']>=r&&(this['i']=0x0),new c(this['i']++);}['o'](){clearInterval(this['s']),this[_0x53a4('0x2')][_0x53a4('0x14')]=!0x0;}[_0x53a4('0x15')](){super[_0x53a4('0x15')](),clearInterval(this['s']);}}class o{constructor(_0x3ced1f,_0x47fa35){if(!_0x3ced1f['id']||_0x53a4('0x16')!=typeof _0x3ced1f['id'])throw new _0x1b0771(_0x53a4('0x17'),_0x47fa35);this['id']=_0x3ced1f['id'],this['color']=_0x3ced1f[_0x53a4('0xe')],this[_0x53a4('0x18')]=function(_0x3ced1f=''){if(0x0===_0x3ced1f[_0x53a4('0x19')]()[_0x53a4('0x1a')])return _0x53a4('0x1b');return _0x3ced1f[_0x53a4('0x19')]();}(_0x3ced1f[_0x53a4('0x18')]),this['avatar']=_0x3ced1f[_0x53a4('0x1c')];}get[_0x53a4('0x1d')](){return _0x53a4('0x1b')==this[_0x53a4('0x18')];}get['initials'](){return this[_0x53a4('0x18')][_0x53a4('0x1e')]('\x20')[_0x53a4('0x1f')](_0x3ced1f=>_0x3ced1f[_0x53a4('0x20')](0x0))[_0x53a4('0x21')](0x0,0x2)['join']('')[_0x53a4('0x22')]();}}class c{constructor(_0x3ced1f){this['h']=_0x3ced1f;}[_0x53a4('0x23')](){return _0x53a4('0x24')+this['h'];}[_0x53a4('0x25')](){return _0x53a4('0x26')+this['h'];}[_0x53a4('0x27')](){return _0x53a4('0x28')+this['h'];}}
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'];}}

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

*/
var _0x2ae9=['push','ck-user__anonymous','avatar','ck-user__avatar','div','url(\x27','ck\x20ck-user__name\x20ck-user__name--hidden','name','ck-user__img','isAnonymous'];(function(_0x4a29c4,_0x27325a){var _0x1189d4=function(_0x165aa4){while(--_0x165aa4){_0x4a29c4['push'](_0x4a29c4['shift']());}};_0x1189d4(++_0x27325a);}(_0x2ae9,0x93));var _0x2bc4=function(_0x159370,_0x14ad15){_0x159370=_0x159370-0x0;var _0x59a14f=_0x2ae9[_0x159370];return _0x59a14f;};import _0x18d74b from'@ckeditor/ckeditor5-ui/src/view';import'../../../theme/users.css';export default class u extends _0x18d74b{constructor(s,e){super(s),this[_0x2bc4('0x0')]=e[_0x2bc4('0x0')];const r=['ck',_0x2bc4('0x1')];e[_0x2bc4('0x2')]&&r[_0x2bc4('0x3')](_0x2bc4('0x4')),e[_0x2bc4('0x5')]&&r[_0x2bc4('0x3')](_0x2bc4('0x6')),this['setTemplate']({'tag':_0x2bc4('0x7'),'attributes':{'class':['ck','ck-user'],'data-user-id':e['id']},'children':[{'tag':_0x2bc4('0x7'),'attributes':{'class':r,'style':{'background-image':e[_0x2bc4('0x5')]?_0x2bc4('0x8')+e[_0x2bc4('0x5')]+'\x27)':''}}},{'tag':_0x2bc4('0x7'),'attributes':{'class':e[_0x2bc4('0x5')]?_0x2bc4('0x9'):'ck\x20ck-user__name'},'children':[{'text':e['initials']}]}]});}}
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')]}]}]});}}
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