@ckeditor/ckeditor5-collaboration-core
Advanced tools
Comparing version 19.0.2 to 20.0.0
Changelog | ||
========= | ||
## 20.0.0 (2020-06-23) | ||
Internal changes only (updated dependencies, documentation, etc.). | ||
## 19.0.2 (2020-05-25) | ||
@@ -5,0 +10,0 @@ |
{ | ||
"name": "@ckeditor/ckeditor5-collaboration-core", | ||
"version": "19.0.2", | ||
"version": "20.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": "^19.0.1", | ||
"@ckeditor/ckeditor5-ui": "^19.0.1", | ||
"@ckeditor/ckeditor5-utils": "^19.0.1" | ||
"@ckeditor/ckeditor5-core": "^20.0.0", | ||
"@ckeditor/ckeditor5-ui": "^20.0.0", | ||
"@ckeditor/ckeditor5-utils": "^20.0.0" | ||
} | ||
} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
import _0x396df2 from'@ckeditor/ckeditor5-core/src/contextplugin';import _0x257327 from'@ckeditor/ckeditor5-utils/src/collection';import'../theme/usercolors.css';import _0x5c58c4 from'@ckeditor/ckeditor5-utils/src/ckeditorerror';export default class r extends _0x396df2{static get['pluginName'](){return'Users';}constructor(_0xc715e0){super(_0xc715e0),_0xc715e0['config']['define']('users.anonymousUserId','anonymous-user'),_0xc715e0['config']['define']('users.colorsCount',0x8),this['users']=new _0x257327(),this['s']=_0xc715e0['locale'],this['i']=null,this['o']=0x0,this['l']=null,this['decorate']('getOperationAuthor');}['init'](){const _0x386e01=this['context'];this['licenseKey']=_0x386e01['config']['get']('licenseKey'),this['i']=setInterval(()=>{let _0x298cf4;for(const _0x52d480 in _0x386e01){const _0x15c2f9=_0x386e01[_0x52d480];if('licenseKeyTrial'===_0x15c2f9||'licenseKeyInvalid'===_0x15c2f9||'licenseKeyValid'===_0x15c2f9||'licenseKeyTrialLimit'==_0x15c2f9){delete _0x386e01[_0x52d480],_0x298cf4=_0x15c2f9;break;}}if('licenseKeyInvalid'===_0x298cf4)throw clearInterval(this['i']),new _0x5c58c4('invalid-license-key:\x20Invalid\x20license\x20key.\x20Please\x20contact\x20our\x20customer\x20support\x20at\x20https://ckeditor.com/contact/.',null);if('licenseKeyTrial'===_0x298cf4&&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'===_0x298cf4)throw clearInterval(this['i']),new _0x5c58c4('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'===_0x298cf4&&clearInterval(this['i']);},0x3e8);}get['me'](){return null==this['l']?null:this['getUser'](this['l']);}['addUser'](_0x46a212){if(!(_0x46a212=Object['assign']({},_0x46a212,{'color':this['u']()}))['id']||'string'!=typeof _0x46a212['id'])throw new _0x5c58c4('users-add-invalid-id:\x20The\x20id\x20must\x20be\x20a\x20string.');if(this['users']['has'](_0x46a212['id']))throw new _0x5c58c4('users-add-duplicated-id:\x20User\x20with\x20a\x20given\x20id\x20is\x20already\x20added.',null,{'id':_0x46a212['id']});_0x46a212['name']=function(_0x58e05d,_0x4ce74f=''){const {t:t}=_0x58e05d;return''==(_0x4ce74f=_0x4ce74f['trim']())?t('Anonymous'):_0x4ce74f;}(this['s'],_0x46a212['name']);const _0x266962=new n(_0x46a212);return this['users']['add'](_0x266962),_0x266962;}['getUser'](_0x288691){return this['users']['get'](_0x288691);}['useAnonymousUser'](){const _0x4ad8f9=this['context']['config']['get']('users.anonymousUserId'),{t:t}=this['s'];if(this['users']['has'](_0x4ad8f9))return;this['addUser']({'id':_0x4ad8f9,'name':t('Anonymous')})['_isAnonymous']=!0x0,this['defineMe'](_0x4ad8f9);}['defineMe'](_0xdf2658){if(this['l'])throw new _0x5c58c4('users-me-already-defined:\x20Cannot\x20add\x20a\x20local\x20user\x20more\x20than\x20once.',null);if(!this['getUser'](_0xdf2658))throw new _0x5c58c4('users-me-missing-user:\x20Cannot\x20add\x20an\x20undefined\x20user\x20as\x20a\x20local\x20user.',null);this['l']=_0xdf2658;}['getOperationAuthor'](){return this['me'];}['destroy'](){super['destroy'](),clearInterval(this['i']);}['u'](){const _0x42c623=this['context']['config']['get']('users.colorsCount');return this['o']>=_0x42c623&&(this['o']=0x0),new o(this['o']++);}}class n{constructor(_0x35cb15){this['id']=_0x35cb15['id'],this['color']=_0x35cb15['color'],this['name']=_0x35cb15['name'],this['avatar']=_0x35cb15['avatar'],this['_isAnonymous']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['initials'](){return this['name']['split']('\x20')['map'](_0x1607a6=>_0x1607a6['charAt'](0x0))['slice'](0x0,0x2)['join']('')['toUpperCase']();}}class o{constructor(_0x1e7b60){this['h']=_0x1e7b60;}['getBackgroundColorClass'](){return'ck-user__bg-color--'+this['h'];}['getSelectionClass'](){return'ck-user__selection--'+this['h'];}['getMarkerClass'](){return'ck-user__marker--'+this['h'];}} | ||
import _0x1746f6 from'@ckeditor/ckeditor5-core/src/contextplugin';import _0x22a955 from'@ckeditor/ckeditor5-utils/src/collection';import'../theme/usercolors.css';import _0x12c5f3 from'@ckeditor/ckeditor5-utils/src/ckeditorerror';export default class r extends _0x1746f6{static get['pluginName'](){return'Users';}constructor(_0x50cf97){super(_0x50cf97),_0x50cf97['config']['define']('users.anonymousUserId','anonymous-user'),_0x50cf97['config']['define']('users.colorsCount',0x8),this['users']=new _0x22a955(),this['s']=_0x50cf97['locale'],this['i']=null,this['o']=0x0,this['l']=null,this['decorate']('getOperationAuthor');}['init'](){const _0x43be5a=this['context'];this['licenseKey']=_0x43be5a['config']['get']('licenseKey'),this['i']=setInterval(()=>{let _0x51b865;for(const _0x12acd9 in _0x43be5a){const _0x2982a0=_0x43be5a[_0x12acd9];if('licenseKeyTrial'===_0x2982a0||'licenseKeyInvalid'===_0x2982a0||'licenseKeyValid'===_0x2982a0||'licenseKeyTrialLimit'==_0x2982a0){delete _0x43be5a[_0x12acd9],_0x51b865=_0x2982a0;break;}}if('licenseKeyInvalid'===_0x51b865)throw clearInterval(this['i']),new _0x12c5f3('invalid-license-key:\x20Invalid\x20license\x20key.\x20Please\x20contact\x20our\x20customer\x20support\x20at\x20https://ckeditor.com/contact/.',null);if('licenseKeyTrial'===_0x51b865&&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'===_0x51b865)throw clearInterval(this['i']),new _0x12c5f3('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'===_0x51b865&&clearInterval(this['i']);},0x3e8);}get['me'](){return null==this['l']?null:this['getUser'](this['l']);}['addUser'](_0x4fe0cd){if(!(_0x4fe0cd=Object['assign']({},_0x4fe0cd,{'color':this['u']()}))['id']||'string'!=typeof _0x4fe0cd['id'])throw new _0x12c5f3('users-add-invalid-id:\x20The\x20id\x20must\x20be\x20a\x20string.');if(this['users']['has'](_0x4fe0cd['id']))throw new _0x12c5f3('users-add-duplicated-id:\x20User\x20with\x20a\x20given\x20id\x20is\x20already\x20added.',null,{'id':_0x4fe0cd['id']});_0x4fe0cd['name']=function(_0x5c15af,_0x16511e=''){const {t:t}=_0x5c15af;return''==(_0x16511e=_0x16511e['trim']())?t('Anonymous'):_0x16511e;}(this['s'],_0x4fe0cd['name']);const _0x254cfc=new n(_0x4fe0cd);return this['users']['add'](_0x254cfc),_0x254cfc;}['getUser'](_0x418e11){return this['users']['get'](_0x418e11);}['useAnonymousUser'](){const _0x56c4a7=this['context']['config']['get']('users.anonymousUserId'),{t:t}=this['s'];if(this['users']['has'](_0x56c4a7))return;this['addUser']({'id':_0x56c4a7,'name':t('Anonymous')})['_isAnonymous']=!0x0,this['defineMe'](_0x56c4a7);}['defineMe'](_0x3504c6){if(this['l'])throw new _0x12c5f3('users-me-already-defined:\x20Cannot\x20add\x20a\x20local\x20user\x20more\x20than\x20once.',null);if(!this['getUser'](_0x3504c6))throw new _0x12c5f3('users-me-missing-user:\x20Cannot\x20add\x20an\x20undefined\x20user\x20as\x20a\x20local\x20user.',null);this['l']=_0x3504c6;}['getOperationAuthor'](){return this['me'];}['destroy'](){super['destroy'](),clearInterval(this['i']);}['u'](){const _0x45eccd=this['context']['config']['get']('users.colorsCount');return this['o']>=_0x45eccd&&(this['o']=0x0),new o(this['o']++);}}class n{constructor(_0x5de6b3){this['id']=_0x5de6b3['id'],this['color']=_0x5de6b3['color'],this['name']=_0x5de6b3['name'],this['avatar']=_0x5de6b3['avatar'],this['_isAnonymous']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['initials'](){return this['name']['split']('\x20')['map'](_0x1d9019=>_0x1d9019['charAt'](0x0))['slice'](0x0,0x2)['join']('')['toUpperCase']();}}class o{constructor(_0x90c92c){this['h']=_0x90c92c;}['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 _0x524d=['url(\x27','isAnonymous','ck\x20ck-user__name\x20ck-user__name--hidden','setTemplate','ck-user__anonymous','push','name','ck\x20ck-user__name','avatar','div','initials','ck-user__avatar'];(function(_0x30d9cf,_0x524d2b){const _0x4debba=function(_0x41dbe3){while(--_0x41dbe3){_0x30d9cf['push'](_0x30d9cf['shift']());}};_0x4debba(++_0x524d2b);}(_0x524d,0x131));const _0x4deb=function(_0x30d9cf,_0x524d2b){_0x30d9cf=_0x30d9cf-0x0;let _0x4debba=_0x524d[_0x30d9cf];return _0x4debba;};import _0x3bc316 from'@ckeditor/ckeditor5-ui/src/view';import'../../../theme/users.css';export default class a extends _0x3bc316{constructor(_0x94d803,_0x4273dd){super(_0x94d803),this[_0x4deb('0x1')]=_0x4273dd[_0x4deb('0x1')];const _0x52625b=['ck','ck-user__img'];_0x4273dd[_0x4deb('0x8')]&&_0x52625b[_0x4deb('0x0')](_0x4deb('0xb')),_0x4273dd['avatar']&&_0x52625b[_0x4deb('0x0')](_0x4deb('0x6')),this[_0x4deb('0xa')]({'tag':_0x4deb('0x4'),'attributes':{'class':['ck','ck-user'],'data-user-id':_0x4273dd['id']},'children':[{'tag':'div','attributes':{'class':_0x52625b,'style':{'background-image':_0x4273dd[_0x4deb('0x3')]?_0x4deb('0x7')+_0x4273dd[_0x4deb('0x3')]+'\x27)':''}}},{'tag':_0x4deb('0x4'),'attributes':{'class':_0x4273dd[_0x4deb('0x3')]?_0x4deb('0x9'):_0x4deb('0x2')},'children':[{'text':_0x4273dd[_0x4deb('0x5')]}]}]});}} | ||
const _0x5ac6=['ck\x20ck-user__name','name','div','isAnonymous','avatar','initials','ck\x20ck-user__name\x20ck-user__name--hidden','url(\x27','ck-user__img','ck-user__avatar','push','ck-user__anonymous','ck-user'];(function(_0x381d10,_0x5ac69a){const _0x4e35ff=function(_0x328eac){while(--_0x328eac){_0x381d10['push'](_0x381d10['shift']());}};_0x4e35ff(++_0x5ac69a);}(_0x5ac6,0x14f));const _0x4e35=function(_0x381d10,_0x5ac69a){_0x381d10=_0x381d10-0x0;let _0x4e35ff=_0x5ac6[_0x381d10];return _0x4e35ff;};import _0x5cdbe5 from'@ckeditor/ckeditor5-ui/src/view';import'../../../theme/users.css';export default class a extends _0x5cdbe5{constructor(_0x1aac36,_0x481d3a){super(_0x1aac36),this[_0x4e35('0x4')]=_0x481d3a[_0x4e35('0x4')];const _0x31f337=['ck',_0x4e35('0xb')];_0x481d3a[_0x4e35('0x6')]&&_0x31f337[_0x4e35('0x0')](_0x4e35('0x1')),_0x481d3a[_0x4e35('0x7')]&&_0x31f337[_0x4e35('0x0')](_0x4e35('0xc')),this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x4e35('0x2')],'data-user-id':_0x481d3a['id']},'children':[{'tag':'div','attributes':{'class':_0x31f337,'style':{'background-image':_0x481d3a[_0x4e35('0x7')]?_0x4e35('0xa')+_0x481d3a[_0x4e35('0x7')]+'\x27)':''}}},{'tag':_0x4e35('0x5'),'attributes':{'class':_0x481d3a[_0x4e35('0x7')]?_0x4e35('0x9'):_0x4e35('0x3')},'children':[{'text':_0x481d3a[_0x4e35('0x8')]}]}]});}} |
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
32663
+ Added@ckeditor/ckeditor5-core@20.0.0(transitive)
+ Added@ckeditor/ckeditor5-engine@20.0.0(transitive)
+ Added@ckeditor/ckeditor5-ui@20.0.0(transitive)
+ Added@ckeditor/ckeditor5-utils@20.0.0(transitive)
- Removed@ckeditor/ckeditor5-core@19.0.1(transitive)
- Removed@ckeditor/ckeditor5-engine@19.0.1(transitive)
- Removed@ckeditor/ckeditor5-ui@19.0.1(transitive)
- Removed@ckeditor/ckeditor5-utils@19.0.2(transitive)