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 21.0.0 to 22.0.0

lang/translations/ko.po

4

CHANGELOG.md
Changelog
=========
## 22.0.0 (2020-08-25)
Internal changes only (updated dependencies, documentation, etc.).
## 21.0.0 (2020-07-24)

@@ -5,0 +9,0 @@

8

package.json
{
"name": "@ckeditor/ckeditor5-collaboration-core",
"version": "21.0.0",
"version": "22.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": "^21.0.0",
"@ckeditor/ckeditor5-ui": "^21.0.0",
"@ckeditor/ckeditor5-utils": "^21.0.0"
"@ckeditor/ckeditor5-core": "^22.0.0",
"@ckeditor/ckeditor5-ui": "^22.0.0",
"@ckeditor/ckeditor5-utils": "^22.0.0"
}
}

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

*/
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'];}}
import _0x402deb from'@ckeditor/ckeditor5-core/src/contextplugin';import _0x1cbabc from'@ckeditor/ckeditor5-utils/src/collection';import'../theme/usercolors.css';import _0x1817d7 from'@ckeditor/ckeditor5-utils/src/ckeditorerror';export default class r extends _0x402deb{static get['pluginName'](){return'Users';}constructor(_0x25def2){super(_0x25def2),_0x25def2['config']['define']('users.anonymousUserId','anonymous-user'),_0x25def2['config']['define']('users.colorsCount',0x8),this['users']=new _0x1cbabc(),this['s']=_0x25def2['locale'],this['i']=null,this['o']=0x0,this['l']=null,this['decorate']('getOperationAuthor');}['init'](){const _0x3fe593=this['context'];this['licenseKey']=_0x3fe593['config']['get']('licenseKey'),this['i']=setInterval(()=>{let _0x56bed2;for(const _0x14db7a in _0x3fe593){const _0x1f3c37=_0x3fe593[_0x14db7a];if('licenseKeyTrial'===_0x1f3c37||'licenseKeyInvalid'===_0x1f3c37||'licenseKeyValid'===_0x1f3c37||'licenseKeyTrialLimit'==_0x1f3c37){delete _0x3fe593[_0x14db7a],_0x56bed2=_0x1f3c37;break;}}if('licenseKeyInvalid'===_0x56bed2)throw clearInterval(this['i']),new _0x1817d7('invalid-license-key:\x20Invalid\x20license\x20key.\x20Please\x20contact\x20our\x20customer\x20support\x20at\x20https://ckeditor.com/contact/.',null);if('licenseKeyTrial'===_0x56bed2&&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'===_0x56bed2)throw clearInterval(this['i']),new _0x1817d7('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'===_0x56bed2&&clearInterval(this['i']);},0x3e8);}get['me'](){return null==this['l']?null:this['getUser'](this['l']);}['addUser'](_0x1c56bf){if(!(_0x1c56bf=Object['assign']({},_0x1c56bf,{'color':this['u']()}))['id']||'string'!=typeof _0x1c56bf['id'])throw new _0x1817d7('users-add-invalid-id:\x20The\x20id\x20must\x20be\x20a\x20string.');if(this['users']['has'](_0x1c56bf['id']))throw new _0x1817d7('users-add-duplicated-id:\x20User\x20with\x20a\x20given\x20id\x20is\x20already\x20added.',null,{'id':_0x1c56bf['id']});_0x1c56bf['name']=function(_0x5db37e,_0x314bf3=''){const {t:t}=_0x5db37e;return''==(_0x314bf3=_0x314bf3['trim']())?t('Anonymous'):_0x314bf3;}(this['s'],_0x1c56bf['name']);const _0x1802a0=new n(_0x1c56bf);return this['users']['add'](_0x1802a0),_0x1802a0;}['getUser'](_0x3cf6b3){return this['users']['get'](_0x3cf6b3);}['useAnonymousUser'](){const _0x2463c3=this['context']['config']['get']('users.anonymousUserId'),{t:t}=this['s'];if(this['users']['has'](_0x2463c3))return;this['addUser']({'id':_0x2463c3,'name':t('Anonymous')})['_isAnonymous']=!0x0,this['defineMe'](_0x2463c3);}['defineMe'](_0x4b602d){if(this['l'])throw new _0x1817d7('users-me-already-defined:\x20Cannot\x20add\x20a\x20local\x20user\x20more\x20than\x20once.',null);if(!this['getUser'](_0x4b602d))throw new _0x1817d7('users-me-missing-user:\x20Cannot\x20add\x20an\x20undefined\x20user\x20as\x20a\x20local\x20user.',null);this['l']=_0x4b602d;}['getOperationAuthor'](){return this['me'];}['destroy'](){super['destroy'](),clearInterval(this['i']);}['u'](){const _0x5c8209=this['context']['config']['get']('users.colorsCount');return this['o']>=_0x5c8209&&(this['o']=0x0),new o(this['o']++);}}class n{constructor(_0x7f983a){this['id']=_0x7f983a['id'],this['color']=_0x7f983a['color'],this['name']=_0x7f983a['name'],this['avatar']=_0x7f983a['avatar'],this['_isAnonymous']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['initials'](){return this['name']['split']('\x20')['map'](_0x28041a=>_0x28041a['charAt'](0x0))['slice'](0x0,0x2)['join']('')['toUpperCase']();}}class o{constructor(_0x583c3c){this['h']=_0x583c3c;}['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 _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')]}]}]});}}
const _0x3d19=['push','ck-user__img','avatar','ck\x20ck-user__name\x20ck-user__name--hidden','url(\x27','initials','div','ck\x20ck-user__name','name','setTemplate','ck-user__avatar'];(function(_0x19609a,_0x3d19d1){const _0x35f2de=function(_0x5f4a20){while(--_0x5f4a20){_0x19609a['push'](_0x19609a['shift']());}};_0x35f2de(++_0x3d19d1);}(_0x3d19,0xce));const _0x35f2=function(_0x19609a,_0x3d19d1){_0x19609a=_0x19609a-0x0;let _0x35f2de=_0x3d19[_0x19609a];return _0x35f2de;};import _0x51a2e8 from'@ckeditor/ckeditor5-ui/src/view';import'../../../theme/users.css';export default class a extends _0x51a2e8{constructor(_0x14526e,_0x2aed5b){super(_0x14526e),this['name']=_0x2aed5b[_0x35f2('0x0')];const _0x40570a=['ck',_0x35f2('0x4')];_0x2aed5b['isAnonymous']&&_0x40570a[_0x35f2('0x3')]('ck-user__anonymous'),_0x2aed5b[_0x35f2('0x5')]&&_0x40570a[_0x35f2('0x3')](_0x35f2('0x2')),this[_0x35f2('0x1')]({'tag':_0x35f2('0x9'),'attributes':{'class':['ck','ck-user'],'data-user-id':_0x2aed5b['id']},'children':[{'tag':'div','attributes':{'class':_0x40570a,'style':{'background-image':_0x2aed5b[_0x35f2('0x5')]?_0x35f2('0x7')+_0x2aed5b[_0x35f2('0x5')]+'\x27)':''}}},{'tag':_0x35f2('0x9'),'attributes':{'class':_0x2aed5b[_0x35f2('0x5')]?_0x35f2('0x6'):_0x35f2('0xa')},'children':[{'text':_0x2aed5b[_0x35f2('0x8')]}]}]});}}
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