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.1.0 to 1.2.0

6

CHANGELOG.md
Changelog
=========
## 1.2.0 (2019-08-22)
### Features
* Added a method to get an operation author. See the [Users API guide](https://ckeditor.com/docs/ckeditor5/latest/features/collaboration/users.html#operation-authors) for more information.
## 1.1.0 (2019-07-04)

@@ -5,0 +11,0 @@

8

package.json
{
"name": "@ckeditor/ckeditor5-collaboration-core",
"version": "1.1.0",
"version": "1.2.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.2.0",
"@ckeditor/ckeditor5-ui": "^13.0.1",
"@ckeditor/ckeditor5-utils": "^13.0.0"
"@ckeditor/ckeditor5-core": "^12.3.0",
"@ckeditor/ckeditor5-ui": "^14.0.0",
"@ckeditor/ckeditor5-utils": "^14.0.0"
}
}

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

*/
var _0x351e=['split','map','join','toUpperCase','getBackgroundColorClass','ck-user__bg-color--','ck-user__selection--','trim','pluginName','init','editor','users','config','get','licenseKey','licenseKeyTrial','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.','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','users-me-already-defined:\x20Cannot\x20add\x20local\x20user\x20more\x20than\x20once.','users-me-missing-user:\x20Cannot\x20add\x20undefined\x20user\x20as\x20local\x20user.','isReadOnly','destroy','user-invalid-id:\x20Id\x20is\x20required\x20as\x20a\x20string.','color','name','avatar','Anonymous','initials'];(function(_0x548f5f,_0x2da8c1){var _0x1cec27=function(_0x48c17f){while(--_0x48c17f){_0x548f5f['push'](_0x548f5f['shift']());}};_0x1cec27(++_0x2da8c1);}(_0x351e,0x6e));var _0x526a=function(_0x40ac8a,_0x145865){_0x40ac8a=_0x40ac8a-0x0;var _0x26c7c1=_0x351e[_0x40ac8a];return _0x26c7c1;};import _0x281d1a from'@ckeditor/ckeditor5-core/src/plugin';import _0x31d4bb from'@ckeditor/ckeditor5-utils/src/collection';import'../theme/usercolors.css';import _0x160184 from'@ckeditor/ckeditor5-utils/src/ckeditorerror';const colorsCount=0x8;export default class Users extends _0x281d1a{static get[_0x526a('0x0')](){return'Users';}constructor(e){super(e),this['e']=null;}[_0x526a('0x1')](){const e=this[_0x526a('0x2')];this[_0x526a('0x3')]=new _0x31d4bb(),this['r']=0x0,this['licenseKey']=e[_0x526a('0x4')][_0x526a('0x5')](_0x526a('0x6'));let r=!0x1;this['e']=setInterval(()=>{let i;for(const r in e){const s=e[r];_0x526a('0x7')!==s&&'licenseKeyInvalid'!==s&&'licenseKeyValid'!==s||(i=s);}if(_0x526a('0x8')===i)throw this['i'](),new _0x160184(_0x526a('0x9'),this);if(_0x526a('0x7')!==i)i&&clearInterval(this['e']);else{r||(console[_0x526a('0xa')](_0x526a('0xb')),r=!0x0);for(const r in e)if('licenseKeyTrialLimit'===e[r])throw this['i'](),new _0x160184(_0x526a('0xc'),this);}},0x7d0);}[_0x526a('0xd')](e){e['color']=this['s']();const r=new User(e,this[_0x526a('0x2')]);return this['users'][_0x526a('0xe')](r),r;}[_0x526a('0xf')](e){return this[_0x526a('0x3')][_0x526a('0x5')](e);}['defineMe'](e){if(this['o'])throw new _0x160184(_0x526a('0x10'),this);if(!this[_0x526a('0xf')](e))throw new _0x160184(_0x526a('0x11'),this);this['o']=e;}get['me'](){if(!this['o'])throw new _0x160184('users-me-not-defined:\x20Local\x20user\x20is\x20not\x20defined.',this);return this['getUser'](this['o']);}['s'](){return this['r']>=colorsCount&&(this['r']=0x0),new Color(this['r']++);}['i'](){clearInterval(this['e']),this[_0x526a('0x2')][_0x526a('0x12')]=!0x0;}[_0x526a('0x13')](){super[_0x526a('0x13')](),clearInterval(this['e']);}};class User{constructor(e,r){if(!e['id']||'string'!=typeof e['id'])throw new _0x160184(_0x526a('0x14'),r);this['id']=e['id'],this['color']=e[_0x526a('0x15')],this[_0x526a('0x16')]=_getName(e['name']),this['avatar']=e[_0x526a('0x17')];}get['isAnonymous'](){return _0x526a('0x18')==this[_0x526a('0x16')];}get[_0x526a('0x19')](){return this[_0x526a('0x16')][_0x526a('0x1a')]('\x20')[_0x526a('0x1b')](e=>e['charAt'](0x0))['slice'](0x0,0x2)[_0x526a('0x1c')]('')[_0x526a('0x1d')]();}}class Color{constructor(e){this['n']=e;}[_0x526a('0x1e')](){return _0x526a('0x1f')+this['n'];}['getSelectionClass'](){return _0x526a('0x20')+this['n'];}['getMarkerClass'](){return'ck-user__marker--'+this['n'];}}function _getName(e=''){return 0x0===e[_0x526a('0x21')]()['length']?_0x526a('0x18'):e[_0x526a('0x21')]();}
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'];}}

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

*/
var _0x38de=['push','ck-user__anonymous','ck-user__avatar','setTemplate','div','ck-user','avatar','url(\x27','ck\x20ck-user__name\x20ck-user__name--hidden','ck\x20ck-user__name','initials','name','ck-user__img','isAnonymous'];(function(_0x2cd143,_0x394de2){var _0x530b01=function(_0x536ec9){while(--_0x536ec9){_0x2cd143['push'](_0x2cd143['shift']());}};_0x530b01(++_0x394de2);}(_0x38de,0x1e7));var _0x4b64=function(_0x5eaa78,_0x5591bd){_0x5eaa78=_0x5eaa78-0x0;var _0x2f6ec8=_0x38de[_0x5eaa78];return _0x2f6ec8;};import _0x3b3bf5 from'@ckeditor/ckeditor5-ui/src/view';import'../../../theme/users.css';export default class UserView extends _0x3b3bf5{constructor(e,s){super(e),this['name']=s[_0x4b64('0x0')];const r=['ck',_0x4b64('0x1')];s[_0x4b64('0x2')]&&r[_0x4b64('0x3')](_0x4b64('0x4')),s['avatar']&&r[_0x4b64('0x3')](_0x4b64('0x5')),this[_0x4b64('0x6')]({'tag':_0x4b64('0x7'),'attributes':{'class':['ck',_0x4b64('0x8')],'data-user-id':s['id']},'children':[{'tag':_0x4b64('0x7'),'attributes':{'class':r,'style':{'background-image':s[_0x4b64('0x9')]?_0x4b64('0xa')+s[_0x4b64('0x9')]+'\x27)':''}}},{'tag':'div','attributes':{'class':s[_0x4b64('0x9')]?_0x4b64('0xb'):_0x4b64('0xc')},'children':[{'text':s[_0x4b64('0xd')]}]}]});}};
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']}]}]});}}
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