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 16.0.0 to 17.0.0

src/utils/get-channel-id.js

9

CHANGELOG.md
Changelog
=========
## 17.0.0 (2020-02-20)
Internal changes only (updated dependencies, documentation, etc.).
## 16.0.0 (2019-12-02)

@@ -8,3 +13,3 @@

* Introduced [`users.colorsCount`](https://ckeditor.com/docs/ckeditor5/latest/features/collaboration/users.html#adding-more-users-colors) configuration option.
* Introduced the [`users.colorsCount`](https://ckeditor.com/docs/ckeditor5/latest/features/collaboration/users.html#adding-more-users-colors) configuration option.

@@ -16,3 +21,3 @@

* Added more explanatory message for an error that is thrown when the local user is not defined.
* Added a more explanatory message for an error that is thrown when the local user is not defined.

@@ -19,0 +24,0 @@

{
"name": "@ckeditor/ckeditor5-collaboration-core",
"version": "16.0.0",
"version": "17.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": "^16.0.0",
"@ckeditor/ckeditor5-ui": "^16.0.0",
"@ckeditor/ckeditor5-utils": "^16.0.0"
"@ckeditor/ckeditor5-core": "^17.0.0",
"@ckeditor/ckeditor5-ui": "^17.0.0",
"@ckeditor/ckeditor5-utils": "^17.0.0"
}
}
/*
* Copyright (c) 2016 - 2019, CKSource - Frederico Knabben. All rights reserved.
* Copyright (c) 2016 - 2020, CKSource - Frederico Knabben. All rights reserved.
*

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

*/
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'];}}
const _0x1be4=['string','invalid-license-key:\x20Invalid\x20license\x20key.\x20Please\x20contact\x20our\x20customer\x20support\x20at\x20https://ckeditor.com/contact/.','slice','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/.','users.colorsCount','addUser','Users','decorate','charAt','color','users','avatar','destroy','Anonymous','map','licenseKeyInvalid','split','add','toUpperCase','name','getUser','ck-user__bg-color--','has','licenseKey','licenseKeyTrial','assign','getOperationAuthor','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.','get','defineMe','context','initials','licenseKeyValid','config','users-add-duplicated-id:\x20User\x20with\x20a\x20given\x20id\x20is\x20already\x20added.'];(function(_0x29c1b9,_0x4c95a0){const _0x41aa24=function(_0x1b2247){while(--_0x1b2247){_0x29c1b9['push'](_0x29c1b9['shift']());}};_0x41aa24(++_0x4c95a0);}(_0x1be4,0x136));const _0x1658=function(_0x29c1b9,_0x4c95a0){_0x29c1b9=_0x29c1b9-0x0;let _0x41aa24=_0x1be4[_0x29c1b9];return _0x41aa24;};import _0x5adf52 from'@ckeditor/ckeditor5-core/src/contextplugin';import _0x40a099 from'@ckeditor/ckeditor5-utils/src/collection';import'../theme/usercolors.css';import _0x12cdef,{attachLinkToDocumentation as _0x3308b2}from'@ckeditor/ckeditor5-utils/src/ckeditorerror';export default class n extends _0x5adf52{static get['pluginName'](){return _0x1658('0xb');}constructor(_0x2c7386){super(_0x2c7386),this['i']=null,this[_0x1658('0xc')](_0x1658('0x1f')),this['s']=_0x2c7386[_0x1658('0x3')]['get'](_0x1658('0x9'))||0x8;}['init'](){const _0x34974c=this[_0x1658('0x0')];this[_0x1658('0xf')]=new _0x40a099(),this['o']=0x0,this[_0x1658('0x1c')]=_0x34974c[_0x1658('0x3')][_0x1658('0x21')](_0x1658('0x1c')),this['i']=setInterval(()=>{let _0x3eb11c;for(const _0x43e97c in _0x34974c){const _0xcf14fa=_0x34974c[_0x43e97c];if(_0x1658('0x1d')===_0xcf14fa||_0x1658('0x14')===_0xcf14fa||'licenseKeyValid'===_0xcf14fa||'licenseKeyTrialLimit'==_0xcf14fa){delete _0x34974c[_0x43e97c],_0x3eb11c=_0xcf14fa;break;}}if('licenseKeyInvalid'===_0x3eb11c)throw clearInterval(this['i']),new _0x12cdef(_0x1658('0x6'),null);if(_0x1658('0x1d')===_0x3eb11c&&console['info'](_0x1658('0x20')),'licenseKeyTrialLimit'===_0x3eb11c)throw clearInterval(this['i']),new _0x12cdef(_0x1658('0x8'),null);_0x1658('0x2')===_0x3eb11c&&clearInterval(this['i']);},0x3e8);}[_0x1658('0xa')](_0x7da835){if(!(_0x7da835=Object[_0x1658('0x1e')]({},_0x7da835,{'color':this['l']()}))['id']||_0x1658('0x5')!=typeof _0x7da835['id'])throw new _0x12cdef('users-add-invalid-id:\x20The\x20id\x20must\x20be\x20a\x20string.');if(this[_0x1658('0xf')][_0x1658('0x1b')](_0x7da835['id']))throw new _0x12cdef(_0x1658('0x4'),null,{'id':_0x7da835['id']});const _0x15b92a=new o(_0x7da835);return this[_0x1658('0xf')][_0x1658('0x16')](_0x15b92a),_0x15b92a;}[_0x1658('0x19')](_0x5739a9){return this[_0x1658('0xf')][_0x1658('0x21')](_0x5739a9);}[_0x1658('0x22')](_0x56bf6c){if(this['u'])throw new _0x12cdef('users-me-already-defined:\x20Cannot\x20add\x20a\x20local\x20user\x20more\x20than\x20once.',null);if(!this[_0x1658('0x19')](_0x56bf6c))throw new _0x12cdef('users-me-missing-user:\x20Cannot\x20add\x20an\x20undefined\x20user\x20as\x20a\x20local\x20user.',null);this['u']=_0x56bf6c;}get['me'](){if(!this['u']){console['warn'](_0x3308b2('users-me-not-defined:\x20Local\x20user\x20is\x20not\x20defined.'));const _0x1547f0='anonymous-user';this[_0x1658('0xa')]({'name':'','id':_0x1547f0}),this['defineMe'](_0x1547f0);}return this['getUser'](this['u']);}[_0x1658('0x1f')](){return this['me'];}['l'](){return this['o']>=this['s']&&(this['o']=0x0),new l(this['o']++);}['destroy'](){super[_0x1658('0x11')](),clearInterval(this['i']);}}class o{constructor(_0x1b8d2a){this['id']=_0x1b8d2a['id'],this[_0x1658('0xe')]=_0x1b8d2a[_0x1658('0xe')],this[_0x1658('0x18')]=function(_0x17e1c3=''){if(0x0===_0x17e1c3['trim']()['length'])return _0x1658('0x12');return _0x17e1c3['trim']();}(_0x1b8d2a[_0x1658('0x18')]),this['avatar']=_0x1b8d2a[_0x1658('0x10')];}get['isAnonymous'](){return _0x1658('0x12')==this['name'];}get[_0x1658('0x1')](){return this[_0x1658('0x18')][_0x1658('0x15')]('\x20')[_0x1658('0x13')](_0x57f444=>_0x57f444[_0x1658('0xd')](0x0))[_0x1658('0x7')](0x0,0x2)['join']('')[_0x1658('0x17')]();}}class l{constructor(_0x1e3ab0){this['h']=_0x1e3ab0;}['getBackgroundColorClass'](){return _0x1658('0x1a')+this['h'];}['getSelectionClass'](){return'ck-user__selection--'+this['h'];}['getMarkerClass'](){return'ck-user__marker--'+this['h'];}}
/*
* Copyright (c) 2016 - 2019, CKSource - Frederico Knabben. All rights reserved.
* Copyright (c) 2016 - 2020, CKSource - Frederico Knabben. All rights reserved.
*

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

*/
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')]}]}]});}}
const _0x2cd0=['div','isAnonymous','initials','push','ck\x20ck-user__name\x20ck-user__name--hidden','ck-user__avatar','avatar','name','url(\x27','ck-user__img','ck-user','ck\x20ck-user__name','setTemplate'];(function(_0x435e0f,_0x29455e){const _0x193232=function(_0x25c40f){while(--_0x25c40f){_0x435e0f['push'](_0x435e0f['shift']());}};_0x193232(++_0x29455e);}(_0x2cd0,0xc5));const _0x55c8=function(_0x435e0f,_0x29455e){_0x435e0f=_0x435e0f-0x0;let _0x193232=_0x2cd0[_0x435e0f];return _0x193232;};import _0x8b6aa8 from'@ckeditor/ckeditor5-ui/src/view';import'../../../theme/users.css';export default class a extends _0x8b6aa8{constructor(_0x55a404,_0x560743){super(_0x55a404),this[_0x55c8('0x5')]=_0x560743[_0x55c8('0x5')];const _0x9710be=['ck',_0x55c8('0x7')];_0x560743[_0x55c8('0xc')]&&_0x9710be[_0x55c8('0x1')]('ck-user__anonymous'),_0x560743[_0x55c8('0x4')]&&_0x9710be[_0x55c8('0x1')](_0x55c8('0x3')),this[_0x55c8('0xa')]({'tag':_0x55c8('0xb'),'attributes':{'class':['ck',_0x55c8('0x8')],'data-user-id':_0x560743['id']},'children':[{'tag':_0x55c8('0xb'),'attributes':{'class':_0x9710be,'style':{'background-image':_0x560743[_0x55c8('0x4')]?_0x55c8('0x6')+_0x560743[_0x55c8('0x4')]+'\x27)':''}}},{'tag':_0x55c8('0xb'),'attributes':{'class':_0x560743['avatar']?_0x55c8('0x2'):_0x55c8('0x9')},'children':[{'text':_0x560743[_0x55c8('0x0')]}]}]});}}
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