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.0.0 to 1.0.1

theme/usercolors.css

7

CHANGELOG.md
Changelog
=========
## 1.0.1 (2019-02-25)
Internal changes only (updated dependencies, documentation, etc.).
## 1.0.0 (2018-12-06)
The initialization of this repository. CKEditor 5 collaboration core was extracted from the CKEditor 5 collaboration package. It contains a plugin that supports [user handling](https://ckeditor.com/docs/ckeditor5/latest/features/collaboration/users.html) which is a common part for two collaboration features: [real-time collaboration](https://www.npmjs.com/package/@ckeditor/ckeditor5-real-time-collaboration) and [comments](https://www.npmjs.com/package/@ckeditor/ckeditor5-comments).
The initialization of this repository. CKEditor 5 collaboration core was extracted from the CKEditor 5 collaboration package. It contains a plugin that supports [user handling](https://ckeditor.com/docs/ckeditor5/latest/features/collaboration/users.html) which is a common part for two collaboration features: [real-time collaboration](https://ckeditor.com/collaboration/real-time/) and [comments](https://ckeditor.com/collaboration/comments/).

6

LICENSE.md
Software License Agreement
==========================
**CKEditor 5 collaboration core** (https://ckeditor.com/collaborative-editing/)<br>
Copyright (c) 2003-2018, [CKSource](http://cksource.com) Frederico Knabben. All rights reserved.
**CKEditor 5 collaboration core** (https://ckeditor.com/collaboration/)<br>
Copyright (c) 2003-2019, [CKSource](http://cksource.com) Frederico Knabben. All rights reserved.

@@ -17,3 +17,3 @@ CKEditor 5 collaboration core is licensed under a commercial license and is protected by copyright law.

* Lo-Dash - Copyright (c) JS Foundation and other contributors https://js.foundation/. Based on Underscore.js, copyright Jeremy Ashkenas,
* Lo-Dash - Copyright (c) JS Foundation and other contributors https://js.foundation/. Based on Underscore.js, copyright Jeremy Ashkenas,

@@ -20,0 +20,0 @@ Trademarks

{
"name": "@ckeditor/ckeditor5-collaboration-core",
"version": "1.0.0",
"version": "1.0.1",
"description": "Base utilities used by CKEditor 5 collaboration features to support multiple users working together in a rich-text editor.",
"license": "SEE LICENSE IN LICENSE.md",
"author": "CKSource (http://cksource.com/)",
"homepage": "https://ckeditor.com/collaborative-editing/",
"homepage": "https://ckeditor.com/collaboration/",
"keywords": [

@@ -30,7 +30,7 @@ "CKEditor",

"dependencies": {
"@ckeditor/ckeditor5-core": "^11.1.0",
"@ckeditor/ckeditor5-engine": "^12.0.0",
"@ckeditor/ckeditor5-ui": "^11.2.0",
"@ckeditor/ckeditor5-utils": "^11.1.0"
"@ckeditor/ckeditor5-core": "^12.0.0",
"@ckeditor/ckeditor5-engine": "^13.0.0",
"@ckeditor/ckeditor5-ui": "^12.0.0",
"@ckeditor/ckeditor5-utils": "^12.0.0"
}
}
# CKEditor 5 collaboration core
CKEditor 5 collaboration core is a low-level API that provides base features to support multiple users working together in a rich-text editor. It is used in collaborative features such as [comments](https://ckeditor.com/docs/ckeditor5/latest/features/collaboration/comments/comments.html) or [real-time collaboration](https://ckeditor.com/docs/ckeditor5/latest/features/collaboration/real-time-collaboration/real-time-collaboration.html) in CKEditor 5.
CKEditor 5 collaboration core is a low-level API that provides base features to support multiple users working together in a rich-text editor. It is used in collaborative features such as [comments](https://ckeditor.com/collaboration/comments/) or [real-time collaboration](https://ckeditor.com/collaboration/real-time/) in CKEditor 5.

@@ -16,3 +16,3 @@ For more information about collaboration visit [CKEditor 5 collaboration overview documentation](https://ckeditor.com/docs/ckeditor5/latest/features/collaboration/collaboration.html).

**CKEditor 5 collaboration core**<br>
Copyright (c) 2003-2018, [CKSource](http://cksource.com) Frederico Knabben. All rights reserved.
Copyright (c) 2003-2019, [CKSource](http://cksource.com) Frederico Knabben. All rights reserved.

@@ -19,0 +19,0 @@ CKEditor 5 collaboration core is licensed under a commercial license and is protected by copyright law.

/*
* Copyright (c) 2016 - 2018, CKSource - Frederico Knabben. All rights reserved.
* Copyright (c) 2016 - 2019, CKSource - Frederico Knabben. All rights reserved.
*

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

*/
var _0x21e2=['getMarkerClass','trim','length','pluginName','Users','init','users','editor','get','licenseKey','once','ready','licenseKeyTrial','licenseKeyInvalid','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20comments\x20plugin.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','isReadOnly','Invalid\x20license\x20key.\x20Please\x20contact\x20our\x20customer\x20support\x20at\x20https://ckeditor.com/contact/.','addUser','color','add','getUser','defineMe','users-me-already-defined:\x20Cannot\x20add\x20local\x20user\x20more\x20than\x20once.','users-me-not-defined:\x20Local\x20user\x20is\x20not\x20defined.','string','user-invalid-id:\x20Id\x20is\x20required\x20as\x20a\x20String.','name','isAnonymous','Anonymous','split','map','charAt','slice','join','toUpperCase','getBackgroundColorClass','ck-user__bg-color--','ck-user__selection--'];(function(_0x1f718e,_0xee1c5b){var _0x4ce060=function(_0x202bd1){while(--_0x202bd1){_0x1f718e['push'](_0x1f718e['shift']());}};_0x4ce060(++_0xee1c5b);}(_0x21e2,0x1cb));var _0x610f=function(_0x54df47,_0x284c3c){_0x54df47=_0x54df47-0x0;var _0x42a656=_0x21e2[_0x54df47];return _0x42a656;};import _0x12fc29 from'@ckeditor/ckeditor5-core/src/plugin';import _0x1c6c6e from'@ckeditor/ckeditor5-utils/src/collection';import'./users/usercolors.css';const colorsCount=0x8;export default class Users extends _0x12fc29{static get[_0x610f('0x0')](){return _0x610f('0x1');}[_0x610f('0x2')](){this[_0x610f('0x3')]=new _0x1c6c6e(),this['e']=0x0,this['licenseKey']=this[_0x610f('0x4')]['config'][_0x610f('0x5')](_0x610f('0x6')),this['editor'][_0x610f('0x7')](_0x610f('0x8'),()=>{setTimeout(()=>{let e;for(const t in this[_0x610f('0x4')])_0x610f('0x9')!==this[_0x610f('0x4')][t]&&_0x610f('0xa')!==this[_0x610f('0x4')][t]||(e=this[_0x610f('0x4')][t]);if(_0x610f('0x9')===e&&console['info'](_0x610f('0xb')),_0x610f('0xa')===e)throw this[_0x610f('0x4')][_0x610f('0xc')]=!0x0,new Error(_0x610f('0xd'));},0x2af8);});}[_0x610f('0xe')](e){e[_0x610f('0xf')]=this['s']();const t=new User(e);return this[_0x610f('0x3')][_0x610f('0x10')](t),t;}[_0x610f('0x11')](e){return this[_0x610f('0x3')][_0x610f('0x5')](e);}[_0x610f('0x12')](e){if(this['r'])throw new Error(_0x610f('0x13'));if(!this[_0x610f('0x11')](e))throw new Error('users-me-missing-user:\x20Cannot\x20add\x20undefined\x20user\x20as\x20local\x20user.');this['r']=e;}get['me'](){if(!this['r'])throw new Error(_0x610f('0x14'));return this['getUser'](this['r']);}['s'](){return this['e']>=colorsCount&&(this['e']=0x0),new Color(this['e']++);}};class User{constructor(e){if(!e['id']||_0x610f('0x15')!=typeof e['id'])throw new Error(_0x610f('0x16'));this['id']=e['id'],this['color']=e[_0x610f('0xf')],this[_0x610f('0x17')]=_getName(e[_0x610f('0x17')]),this['avatar']=e['avatar'];}get[_0x610f('0x18')](){return _0x610f('0x19')==this[_0x610f('0x17')];}get['initials'](){return this[_0x610f('0x17')][_0x610f('0x1a')]('\x20')[_0x610f('0x1b')](e=>e[_0x610f('0x1c')](0x0))[_0x610f('0x1d')](0x0,0x2)[_0x610f('0x1e')]('')[_0x610f('0x1f')]();}}class Color{constructor(e){this['i']=e;}[_0x610f('0x20')](){return _0x610f('0x21')+this['i'];}['getSelectionClass'](){return _0x610f('0x22')+this['i'];}[_0x610f('0x23')](){return'ck-user__marker--'+this['i'];}}function _getName(e=''){return 0x0===e[_0x610f('0x24')]()[_0x610f('0x25')]?_0x610f('0x19'):e[_0x610f('0x24')]();}
var _0x6c1c=['users-me-missing-user:\x20Cannot\x20add\x20undefined\x20user\x20as\x20local\x20user.','users-me-not-defined:\x20Local\x20user\x20is\x20not\x20defined.','destroy','string','name','avatar','isAnonymous','Anonymous','charAt','slice','join','ck-user__bg-color--','getSelectionClass','ck-user__selection--','getMarkerClass','ck-user__marker--','length','trim','pluginName','Users','init','editor','config','licenseKey','licenseKeyInvalid','licenseKeyValid','Invalid\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.','You\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','color','users','get','defineMe','users-me-already-defined:\x20Cannot\x20add\x20local\x20user\x20more\x20than\x20once.','getUser'];(function(_0x1eae88,_0x31655f){var _0xbef4ce=function(_0x3859af){while(--_0x3859af){_0x1eae88['push'](_0x1eae88['shift']());}};_0xbef4ce(++_0x31655f);}(_0x6c1c,0x15f));var _0x5a4e=function(_0x52988c,_0x7e603b){_0x52988c=_0x52988c-0x0;var _0x1fb5c8=_0x6c1c[_0x52988c];return _0x1fb5c8;};import _0x3e53cc from'@ckeditor/ckeditor5-core/src/plugin';import _0x3a45c1 from'@ckeditor/ckeditor5-utils/src/collection';import'../theme/usercolors.css';const colorsCount=0x8;export default class Users extends _0x3e53cc{static get[_0x5a4e('0x0')](){return _0x5a4e('0x1');}constructor(e){super(e),this['e']=null;}[_0x5a4e('0x2')](){const e=this[_0x5a4e('0x3')];this['users']=new _0x3a45c1(),this['s']=0x0,this['licenseKey']=e[_0x5a4e('0x4')]['get'](_0x5a4e('0x5'));let t=!0x1;this['e']=setInterval(()=>{let s;for(const t in e){const r=e[t];'licenseKeyTrial'!==r&&_0x5a4e('0x6')!==r&&_0x5a4e('0x7')!==r||(s=r);}if(_0x5a4e('0x6')===s&&this['r'](_0x5a4e('0x8')),'licenseKeyTrial'!==s)s&&clearInterval(this['e']);else{t||(console[_0x5a4e('0x9')](_0x5a4e('0xa')),t=!0x0);for(const t in e)'licenseKeyTrialLimit'===e[t]&&this['r'](_0x5a4e('0xb'));}},0x7d0);}[_0x5a4e('0xc')](e){e[_0x5a4e('0xd')]=this['i']();const t=new User(e);return this['users']['add'](t),t;}['getUser'](e){return this[_0x5a4e('0xe')][_0x5a4e('0xf')](e);}[_0x5a4e('0x10')](e){if(this['o'])throw new Error(_0x5a4e('0x11'));if(!this[_0x5a4e('0x12')](e))throw new Error(_0x5a4e('0x13'));this['o']=e;}get['me'](){if(!this['o'])throw new Error(_0x5a4e('0x14'));return this[_0x5a4e('0x12')](this['o']);}['i'](){return this['s']>=colorsCount&&(this['s']=0x0),new Color(this['s']++);}['r'](e){throw clearInterval(this['e']),this[_0x5a4e('0x3')]['isReadOnly']=!0x0,new Error(e);}['destroy'](){super[_0x5a4e('0x15')](),clearInterval(this['e']);}};class User{constructor(e){if(!e['id']||_0x5a4e('0x16')!=typeof e['id'])throw new Error('user-invalid-id:\x20Id\x20is\x20required\x20as\x20a\x20String.');this['id']=e['id'],this[_0x5a4e('0xd')]=e[_0x5a4e('0xd')],this['name']=_getName(e[_0x5a4e('0x17')]),this[_0x5a4e('0x18')]=e[_0x5a4e('0x18')];}get[_0x5a4e('0x19')](){return _0x5a4e('0x1a')==this[_0x5a4e('0x17')];}get['initials'](){return this[_0x5a4e('0x17')]['split']('\x20')['map'](e=>e[_0x5a4e('0x1b')](0x0))[_0x5a4e('0x1c')](0x0,0x2)[_0x5a4e('0x1d')]('')['toUpperCase']();}}class Color{constructor(e){this['n']=e;}['getBackgroundColorClass'](){return _0x5a4e('0x1e')+this['n'];}[_0x5a4e('0x1f')](){return _0x5a4e('0x20')+this['n'];}[_0x5a4e('0x21')](){return _0x5a4e('0x22')+this['n'];}}function _getName(e=''){return 0x0===e['trim']()[_0x5a4e('0x23')]?_0x5a4e('0x1a'):e[_0x5a4e('0x24')]();}
/*
* Copyright (c) 2016 - 2018, CKSource - Frederico Knabben. All rights reserved.
* Copyright (c) 2016 - 2019, CKSource - Frederico Knabben. All rights reserved.
*

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

*/
var _0x4ef4=['ck-user','avatar','url(\x27','ck\x20ck-user__name\x20ck-user__name--hidden','initials','name','ck-user__img','isAnonymous','push','ck-user__avatar','setTemplate','div'];(function(_0x76a17b,_0x5c2a47){var _0x3a22b8=function(_0x5325bd){while(--_0x5325bd){_0x76a17b['push'](_0x76a17b['shift']());}};_0x3a22b8(++_0x5c2a47);}(_0x4ef4,0xf5));var _0x3768=function(_0xa55c0a,_0x1706fd){_0xa55c0a=_0xa55c0a-0x0;var _0x29fce0=_0x4ef4[_0xa55c0a];return _0x29fce0;};import _0x4913c8 from'@ckeditor/ckeditor5-ui/src/view';import'../users.css';export default class UserView extends _0x4913c8{constructor(e,s){super(e),this[_0x3768('0x0')]=s[_0x3768('0x0')];const t=['ck',_0x3768('0x1')];s[_0x3768('0x2')]&&t['push']('ck-user__anonymous'),s['avatar']&&t[_0x3768('0x3')](_0x3768('0x4')),this[_0x3768('0x5')]({'tag':_0x3768('0x6'),'attributes':{'class':['ck',_0x3768('0x7')]},'children':[{'tag':_0x3768('0x6'),'attributes':{'class':t,'style':{'background-image':s[_0x3768('0x8')]?_0x3768('0x9')+s[_0x3768('0x8')]+'\x27)':''}}},{'tag':_0x3768('0x6'),'attributes':{'class':s[_0x3768('0x8')]?_0x3768('0xa'):'ck\x20ck-user__name'},'children':[{'text':s[_0x3768('0xb')]}]}]});}};
var _0x4f6d=['isAnonymous','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','name','ck-user__img'];(function(_0x200594,_0x5d543d){var _0x63bfbc=function(_0x4fb5f0){while(--_0x4fb5f0){_0x200594['push'](_0x200594['shift']());}};_0x63bfbc(++_0x5d543d);}(_0x4f6d,0xc1));var _0x227f=function(_0x5e6f26,_0x5e968a){_0x5e6f26=_0x5e6f26-0x0;var _0x41007d=_0x4f6d[_0x5e6f26];return _0x41007d;};import _0x2f0990 from'@ckeditor/ckeditor5-ui/src/view';import'../../../theme/users.css';export default class UserView extends _0x2f0990{constructor(e,s){super(e),this['name']=s[_0x227f('0x0')];const t=['ck',_0x227f('0x1')];s[_0x227f('0x2')]&&t[_0x227f('0x3')](_0x227f('0x4')),s['avatar']&&t[_0x227f('0x3')](_0x227f('0x5')),this[_0x227f('0x6')]({'tag':_0x227f('0x7'),'attributes':{'class':['ck',_0x227f('0x8')]},'children':[{'tag':'div','attributes':{'class':t,'style':{'background-image':s[_0x227f('0x9')]?_0x227f('0xa')+s['avatar']+'\x27)':''}}},{'tag':_0x227f('0x7'),'attributes':{'class':s['avatar']?_0x227f('0xb'):_0x227f('0xc')},'children':[{'text':s['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