@ckeditor/ckeditor5-collaboration-core
Advanced tools
Comparing version 20.0.1 to 21.0.0
Changelog | ||
========= | ||
## 21.0.0 (2020-07-24) | ||
Internal changes only (updated dependencies, documentation, etc.). | ||
## 20.0.1 (2020-06-26) | ||
@@ -5,0 +10,0 @@ |
{ | ||
"name": "@ckeditor/ckeditor5-collaboration-core", | ||
"version": "20.0.1", | ||
"version": "21.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": "^20.0.0", | ||
"@ckeditor/ckeditor5-ui": "^20.0.0", | ||
"@ckeditor/ckeditor5-utils": "^20.0.0" | ||
"@ckeditor/ckeditor5-core": "^21.0.0", | ||
"@ckeditor/ckeditor5-ui": "^21.0.0", | ||
"@ckeditor/ckeditor5-utils": "^21.0.0" | ||
} | ||
} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
import _0x44e570 from'@ckeditor/ckeditor5-core/src/contextplugin';import _0x4cd840 from'@ckeditor/ckeditor5-utils/src/collection';import'../theme/usercolors.css';import _0x54fec3 from'@ckeditor/ckeditor5-utils/src/ckeditorerror';export default class r extends _0x44e570{static get['pluginName'](){return'Users';}constructor(_0x153e6d){super(_0x153e6d),_0x153e6d['config']['define']('users.anonymousUserId','anonymous-user'),_0x153e6d['config']['define']('users.colorsCount',0x8),this['users']=new _0x4cd840(),this['s']=_0x153e6d['locale'],this['i']=null,this['o']=0x0,this['l']=null,this['decorate']('getOperationAuthor');}['init'](){const _0x3ed4da=this['context'];this['licenseKey']=_0x3ed4da['config']['get']('licenseKey'),this['i']=setInterval(()=>{let _0x17ad5e;for(const _0x281fe5 in _0x3ed4da){const _0x2f7a2f=_0x3ed4da[_0x281fe5];if('licenseKeyTrial'===_0x2f7a2f||'licenseKeyInvalid'===_0x2f7a2f||'licenseKeyValid'===_0x2f7a2f||'licenseKeyTrialLimit'==_0x2f7a2f){delete _0x3ed4da[_0x281fe5],_0x17ad5e=_0x2f7a2f;break;}}if('licenseKeyInvalid'===_0x17ad5e)throw clearInterval(this['i']),new _0x54fec3('invalid-license-key:\x20Invalid\x20license\x20key.\x20Please\x20contact\x20our\x20customer\x20support\x20at\x20https://ckeditor.com/contact/.',null);if('licenseKeyTrial'===_0x17ad5e&&console['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'===_0x17ad5e)throw clearInterval(this['i']),new _0x54fec3('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/.',null);'licenseKeyValid'===_0x17ad5e&&clearInterval(this['i']);},0x3e8);}get['me'](){return null==this['l']?null:this['getUser'](this['l']);}['addUser'](_0x10145c){if(!(_0x10145c=Object['assign']({},_0x10145c,{'color':this['u']()}))['id']||'string'!=typeof _0x10145c['id'])throw new _0x54fec3('users-add-invalid-id:\x20The\x20id\x20must\x20be\x20a\x20string.');if(this['users']['has'](_0x10145c['id']))throw new _0x54fec3('users-add-duplicated-id:\x20User\x20with\x20a\x20given\x20id\x20is\x20already\x20added.',null,{'id':_0x10145c['id']});_0x10145c['name']=function(_0x4b9fbd,_0x34ee0f=''){const {t:t}=_0x4b9fbd;return''==(_0x34ee0f=_0x34ee0f['trim']())?t('Anonymous'):_0x34ee0f;}(this['s'],_0x10145c['name']);const _0x1d2c15=new n(_0x10145c);return this['users']['add'](_0x1d2c15),_0x1d2c15;}['getUser'](_0x585d7f){return this['users']['get'](_0x585d7f);}['useAnonymousUser'](){const _0x3a8c70=this['context']['config']['get']('users.anonymousUserId'),{t:t}=this['s'];if(this['users']['has'](_0x3a8c70))return;this['addUser']({'id':_0x3a8c70,'name':t('Anonymous')})['_isAnonymous']=!0x0,this['defineMe'](_0x3a8c70);}['defineMe'](_0x30145b){if(this['l'])throw new _0x54fec3('users-me-already-defined:\x20Cannot\x20add\x20a\x20local\x20user\x20more\x20than\x20once.',null);if(!this['getUser'](_0x30145b))throw new _0x54fec3('users-me-missing-user:\x20Cannot\x20add\x20an\x20undefined\x20user\x20as\x20a\x20local\x20user.',null);this['l']=_0x30145b;}['getOperationAuthor'](){return this['me'];}['destroy'](){super['destroy'](),clearInterval(this['i']);}['u'](){const _0x43fbb6=this['context']['config']['get']('users.colorsCount');return this['o']>=_0x43fbb6&&(this['o']=0x0),new o(this['o']++);}}class n{constructor(_0x45b687){this['id']=_0x45b687['id'],this['color']=_0x45b687['color'],this['name']=_0x45b687['name'],this['avatar']=_0x45b687['avatar'],this['_isAnonymous']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['initials'](){return this['name']['split']('\x20')['map'](_0x45fa51=>_0x45fa51['charAt'](0x0))['slice'](0x0,0x2)['join']('')['toUpperCase']();}}class o{constructor(_0x3f32ff){this['h']=_0x3f32ff;}['getBackgroundColorClass'](){return'ck-user__bg-color--'+this['h'];}['getSelectionClass'](){return'ck-user__selection--'+this['h'];}['getMarkerClass'](){return'ck-user__marker--'+this['h'];}} | ||
import _0x5e9c21 from'@ckeditor/ckeditor5-core/src/contextplugin';import _0x69b836 from'@ckeditor/ckeditor5-utils/src/collection';import'../theme/usercolors.css';import _0x276e1a from'@ckeditor/ckeditor5-utils/src/ckeditorerror';export default class r extends _0x5e9c21{static get['pluginName'](){return'Users';}constructor(_0x27c85f){super(_0x27c85f),_0x27c85f['config']['define']('users.anonymousUserId','anonymous-user'),_0x27c85f['config']['define']('users.colorsCount',0x8),this['users']=new _0x69b836(),this['s']=_0x27c85f['locale'],this['i']=null,this['o']=0x0,this['l']=null,this['decorate']('getOperationAuthor');}['init'](){const _0x1a9e56=this['context'];this['licenseKey']=_0x1a9e56['config']['get']('licenseKey'),this['i']=setInterval(()=>{let _0x140788;for(const _0x558b16 in _0x1a9e56){const _0x55adc9=_0x1a9e56[_0x558b16];if('licenseKeyTrial'===_0x55adc9||'licenseKeyInvalid'===_0x55adc9||'licenseKeyValid'===_0x55adc9||'licenseKeyTrialLimit'==_0x55adc9){delete _0x1a9e56[_0x558b16],_0x140788=_0x55adc9;break;}}if('licenseKeyInvalid'===_0x140788)throw clearInterval(this['i']),new _0x276e1a('invalid-license-key:\x20Invalid\x20license\x20key.\x20Please\x20contact\x20our\x20customer\x20support\x20at\x20https://ckeditor.com/contact/.',null);if('licenseKeyTrial'===_0x140788&&console['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'===_0x140788)throw clearInterval(this['i']),new _0x276e1a('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/.',null);'licenseKeyValid'===_0x140788&&clearInterval(this['i']);},0x3e8);}get['me'](){return null==this['l']?null:this['getUser'](this['l']);}['addUser'](_0x460550){if(!(_0x460550=Object['assign']({},_0x460550,{'color':this['u']()}))['id']||'string'!=typeof _0x460550['id'])throw new _0x276e1a('users-add-invalid-id:\x20The\x20id\x20must\x20be\x20a\x20string.');if(this['users']['has'](_0x460550['id']))throw new _0x276e1a('users-add-duplicated-id:\x20User\x20with\x20a\x20given\x20id\x20is\x20already\x20added.',null,{'id':_0x460550['id']});_0x460550['name']=function(_0x480eca,_0x3cb29e=''){const {t:t}=_0x480eca;return''==(_0x3cb29e=_0x3cb29e['trim']())?t('Anonymous'):_0x3cb29e;}(this['s'],_0x460550['name']);const _0x132e5c=new n(_0x460550);return this['users']['add'](_0x132e5c),_0x132e5c;}['getUser'](_0x3717b4){return this['users']['get'](_0x3717b4);}['useAnonymousUser'](){const _0x520602=this['context']['config']['get']('users.anonymousUserId'),{t:t}=this['s'];if(this['users']['has'](_0x520602))return;this['addUser']({'id':_0x520602,'name':t('Anonymous')})['_isAnonymous']=!0x0,this['defineMe'](_0x520602);}['defineMe'](_0x2f7bf9){if(this['l'])throw new _0x276e1a('users-me-already-defined:\x20Cannot\x20add\x20a\x20local\x20user\x20more\x20than\x20once.',null);if(!this['getUser'](_0x2f7bf9))throw new _0x276e1a('users-me-missing-user:\x20Cannot\x20add\x20an\x20undefined\x20user\x20as\x20a\x20local\x20user.',null);this['l']=_0x2f7bf9;}['getOperationAuthor'](){return this['me'];}['destroy'](){super['destroy'](),clearInterval(this['i']);}['u'](){const _0x32cb5a=this['context']['config']['get']('users.colorsCount');return this['o']>=_0x32cb5a&&(this['o']=0x0),new o(this['o']++);}}class n{constructor(_0x2f0328){this['id']=_0x2f0328['id'],this['color']=_0x2f0328['color'],this['name']=_0x2f0328['name'],this['avatar']=_0x2f0328['avatar'],this['_isAnonymous']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['initials'](){return this['name']['split']('\x20')['map'](_0x3162df=>_0x3162df['charAt'](0x0))['slice'](0x0,0x2)['join']('')['toUpperCase']();}}class o{constructor(_0xf60232){this['h']=_0xf60232;}['getBackgroundColorClass'](){return'ck-user__bg-color--'+this['h'];}['getSelectionClass'](){return'ck-user__selection--'+this['h'];}['getMarkerClass'](){return'ck-user__marker--'+this['h'];}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x2bbc=['initials','avatar','ck-user','div','ck\x20ck-user__name\x20ck-user__name--hidden','url(\x27','setTemplate','name'];(function(_0x5b85eb,_0x2bbc61){const _0x3e9ec3=function(_0x4e088b){while(--_0x4e088b){_0x5b85eb['push'](_0x5b85eb['shift']());}};_0x3e9ec3(++_0x2bbc61);}(_0x2bbc,0x7c));const _0x3e9e=function(_0x5b85eb,_0x2bbc61){_0x5b85eb=_0x5b85eb-0x0;let _0x3e9ec3=_0x2bbc[_0x5b85eb];return _0x3e9ec3;};import _0x20d217 from'@ckeditor/ckeditor5-ui/src/view';import'../../../theme/users.css';export default class a extends _0x20d217{constructor(_0x8a6a49,_0x4ba746){super(_0x8a6a49),this['name']=_0x4ba746[_0x3e9e('0x3')];const _0x29474e=['ck','ck-user__img'];_0x4ba746['isAnonymous']&&_0x29474e['push']('ck-user__anonymous'),_0x4ba746[_0x3e9e('0x5')]&&_0x29474e['push']('ck-user__avatar'),this[_0x3e9e('0x2')]({'tag':_0x3e9e('0x7'),'attributes':{'class':['ck',_0x3e9e('0x6')],'data-user-id':_0x4ba746['id']},'children':[{'tag':_0x3e9e('0x7'),'attributes':{'class':_0x29474e,'style':{'background-image':_0x4ba746[_0x3e9e('0x5')]?_0x3e9e('0x1')+_0x4ba746['avatar']+'\x27)':''}}},{'tag':_0x3e9e('0x7'),'attributes':{'class':_0x4ba746['avatar']?_0x3e9e('0x0'):'ck\x20ck-user__name'},'children':[{'text':_0x4ba746[_0x3e9e('0x4')]}]}]});}} | ||
const _0x39c0=['ck-user__anonymous','name','avatar','initials','ck\x20ck-user__name\x20ck-user__name--hidden','div','push','ck-user__avatar','url(\x27','ck-user__img','ck-user'];(function(_0x1c6641,_0x39c0f5){const _0x5219e5=function(_0x3322d4){while(--_0x3322d4){_0x1c6641['push'](_0x1c6641['shift']());}};_0x5219e5(++_0x39c0f5);}(_0x39c0,0xdb));const _0x5219=function(_0x1c6641,_0x39c0f5){_0x1c6641=_0x1c6641-0x0;let _0x5219e5=_0x39c0[_0x1c6641];return _0x5219e5;};import _0x4a6626 from'@ckeditor/ckeditor5-ui/src/view';import'../../../theme/users.css';export default class a extends _0x4a6626{constructor(_0x392961,_0x5513ea){super(_0x392961),this[_0x5219('0x2')]=_0x5513ea[_0x5219('0x2')];const _0x14f17d=['ck',_0x5219('0xa')];_0x5513ea['isAnonymous']&&_0x14f17d[_0x5219('0x7')](_0x5219('0x1')),_0x5513ea['avatar']&&_0x14f17d[_0x5219('0x7')](_0x5219('0x8')),this['setTemplate']({'tag':_0x5219('0x6'),'attributes':{'class':['ck',_0x5219('0x0')],'data-user-id':_0x5513ea['id']},'children':[{'tag':_0x5219('0x6'),'attributes':{'class':_0x14f17d,'style':{'background-image':_0x5513ea[_0x5219('0x3')]?_0x5219('0x9')+_0x5513ea['avatar']+'\x27)':''}}},{'tag':_0x5219('0x6'),'attributes':{'class':_0x5513ea['avatar']?_0x5219('0x5'):'ck\x20ck-user__name'},'children':[{'text':_0x5513ea[_0x5219('0x4')]}]}]});}} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36195
30
+ Added@ckeditor/ckeditor5-core@21.0.0(transitive)
+ Added@ckeditor/ckeditor5-engine@21.0.0(transitive)
+ Added@ckeditor/ckeditor5-ui@21.0.0(transitive)
+ Added@ckeditor/ckeditor5-utils@21.0.0(transitive)
- Removed@ckeditor/ckeditor5-core@20.0.0(transitive)
- Removed@ckeditor/ckeditor5-engine@20.0.0(transitive)
- Removed@ckeditor/ckeditor5-ui@20.0.0(transitive)
- Removed@ckeditor/ckeditor5-utils@20.0.0(transitive)