Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ckeditor/ckeditor5-collaboration-core

Package Overview
Dependencies
Maintainers
1
Versions
674
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 29.0.0 to 29.1.0

4

package.json
{
"name": "@ckeditor/ckeditor5-collaboration-core",
"version": "29.0.0",
"version": "29.1.0",
"description": "Base utilities used by CKEditor 5 collaboration features to support multiple users working together in a rich text editor.",

@@ -30,4 +30,4 @@ "license": "SEE LICENSE IN LICENSE.md",

"dependencies": {
"ckeditor5": "^29.0.0"
"ckeditor5": "^29.1.0"
}
}

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

*/
const _0x4f3e=['CommentsRepository','clearForceDisabled','get','isEnabled','switchReadOnly','config','context','isReadOnly','CommentsOnly','commands','comment:admin','pluginName','has','find','forceDisabled','setAdminPermissions','addCommentThread','editors','collaboration.channelId','plugins','Permissions','comment:write','setPermissions','includes','document:write','noPermissions'];(function(_0x3bc598,_0x4f3e68){const _0x5ff9fd=function(_0x309609){while(--_0x309609){_0x3bc598['push'](_0x3bc598['shift']());}};_0x5ff9fd(++_0x4f3e68);}(_0x4f3e,0x15f));const _0x5ff9=function(_0x3bc598,_0x4f3e68){_0x3bc598=_0x3bc598-0x0;let _0x5ff9fd=_0x4f3e[_0x3bc598];return _0x5ff9fd;};import{ContextPlugin as _0x1a6e0a,Editor as _0x12547e}from'ckeditor5/src/core';import{CKEditorError as _0xde2fb7}from'ckeditor5/src/utils';export default class e extends _0x1a6e0a{static get[_0x5ff9('0x18')](){return _0x5ff9('0x7');}[_0x5ff9('0x9')](_0x31920b,_0x57d49a){let _0x48bc55;if(_0x57d49a||(_0x57d49a=this[_0x5ff9('0x13')][_0x5ff9('0x12')]['get'](_0x5ff9('0x5'))),this['context'][_0x5ff9('0x12')][_0x5ff9('0xf')](_0x5ff9('0x5'))==_0x57d49a?_0x48bc55=this[_0x5ff9('0x13')]:this[_0x5ff9('0x13')][_0x5ff9('0x4')]&&(_0x48bc55=this['context'][_0x5ff9('0x4')][_0x5ff9('0x0')](_0x53c5fa=>_0x53c5fa['config'][_0x5ff9('0xf')](_0x5ff9('0x5'))==_0x57d49a)),!_0x48bc55)throw new _0xde2fb7('permissions-set-permissions-invalid-channel-id',null);const _0x382cc6=_0x48bc55[_0x5ff9('0x6')],_0x5f2b95=_0x48bc55 instanceof _0x12547e,_0x452326=_0x382cc6['has']('CommentsRepository')&&_0x382cc6[_0x5ff9('0xf')](_0x5ff9('0xd')),_0x5acc85=_0x382cc6[_0x5ff9('0x19')](_0x5ff9('0x15'))&&_0x382cc6[_0x5ff9('0xf')](_0x5ff9('0x15')),_0x20109a=_0x31920b['includes'](_0x5ff9('0xb')),_0x74aac2=_0x31920b[_0x5ff9('0xa')](_0x5ff9('0x17')),_0x247b02=_0x31920b['includes'](_0x5ff9('0x8'))||_0x74aac2;if(_0x5acc85&&(_0x5acc85[_0x5ff9('0x10')]=!_0x20109a&&_0x247b02),_0x5f2b95&&(_0x48bc55[_0x5ff9('0x14')]=!(_0x20109a||_0x247b02&&_0x452326)),_0x452326){_0x452326[_0x5ff9('0x11')](!_0x247b02,_0x57d49a),_0x452326[_0x5ff9('0x2')](_0x74aac2,_0x57d49a);const _0x7beddf=_0x5f2b95&&_0x48bc55[_0x5ff9('0x16')][_0x5ff9('0xf')](_0x5ff9('0x3'));_0x7beddf&&(_0x247b02?_0x7beddf[_0x5ff9('0xe')]('noPermissions'):_0x7beddf[_0x5ff9('0x1')](_0x5ff9('0xc')));}}}
const _0x586d=['find','includes','get','pluginName','editors','permissions-set-permissions-invalid-channel-id','forceDisabled','commands','Permissions','has','setAdminPermissions','setPermissions','collaboration.channelId','context','noPermissions','isReadOnly','config','comment:write','CommentsRepository','plugins','comment:admin','CommentsOnly','clearForceDisabled','switchReadOnly'];(function(_0x5ee8ce,_0x586deb){const _0x12ed5f=function(_0x429f26){while(--_0x429f26){_0x5ee8ce['push'](_0x5ee8ce['shift']());}};_0x12ed5f(++_0x586deb);}(_0x586d,0x1f3));const _0x12ed=function(_0x5ee8ce,_0x586deb){_0x5ee8ce=_0x5ee8ce-0x0;let _0x12ed5f=_0x586d[_0x5ee8ce];return _0x12ed5f;};import{ContextPlugin as _0x5ee861,Editor as _0x550c3f}from'ckeditor5/src/core';import{CKEditorError as _0x2d47f0}from'ckeditor5/src/utils';export default class e extends _0x5ee861{static get[_0x12ed('0x8')](){return _0x12ed('0xd');}[_0x12ed('0x10')](_0x143528,_0x4dd363){let _0x22243e;if(_0x4dd363||(_0x4dd363=this[_0x12ed('0x12')][_0x12ed('0x15')][_0x12ed('0x7')](_0x12ed('0x11'))),this[_0x12ed('0x12')][_0x12ed('0x15')][_0x12ed('0x7')](_0x12ed('0x11'))==_0x4dd363?_0x22243e=this[_0x12ed('0x12')]:this[_0x12ed('0x12')]['editors']&&(_0x22243e=this[_0x12ed('0x12')][_0x12ed('0x9')][_0x12ed('0x5')](_0x138cfc=>_0x138cfc[_0x12ed('0x15')][_0x12ed('0x7')](_0x12ed('0x11'))==_0x4dd363)),!_0x22243e)throw new _0x2d47f0(_0x12ed('0xa'),null);const _0x38efe5=_0x22243e[_0x12ed('0x0')],_0x3164df=_0x22243e instanceof _0x550c3f,_0x57eaa9=_0x38efe5[_0x12ed('0xe')](_0x12ed('0x17'))&&_0x38efe5[_0x12ed('0x7')]('CommentsRepository'),_0x5c6765=_0x38efe5[_0x12ed('0xe')](_0x12ed('0x2'))&&_0x38efe5[_0x12ed('0x7')]('CommentsOnly'),_0x3783fd=_0x143528[_0x12ed('0x6')]('document:write'),_0x3959b4=_0x143528['includes'](_0x12ed('0x1')),_0x5f1a1f=_0x143528[_0x12ed('0x6')](_0x12ed('0x16'))||_0x3959b4;if(_0x5c6765&&(_0x5c6765['isEnabled']=!_0x3783fd&&_0x5f1a1f),_0x3164df&&(_0x22243e[_0x12ed('0x14')]=!(_0x3783fd||_0x5f1a1f&&_0x57eaa9)),_0x57eaa9){_0x57eaa9[_0x12ed('0x4')](!_0x5f1a1f,_0x4dd363),_0x57eaa9[_0x12ed('0xf')](_0x3959b4,_0x4dd363);const _0x578543=_0x3164df&&_0x22243e[_0x12ed('0xc')][_0x12ed('0x7')]('addCommentThread');_0x578543&&(_0x5f1a1f?_0x578543[_0x12ed('0x3')](_0x12ed('0x13')):_0x578543[_0x12ed('0xb')]('noPermissions'));}}}

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

*/
import{ContextPlugin as _0x1d3383}from'ckeditor5/src/core';import{Collection as _0x42a1b8,CKEditorError as _0x8b37c1}from'ckeditor5/src/utils';import _0x416f03 from'./permissions';import'../theme/usercolors.css';export default class r extends _0x1d3383{static get['pluginName'](){return'Users';}static get['requires'](){return[_0x416f03];}constructor(_0x43b921){super(_0x43b921),_0x43b921['config']['define']('users.anonymousUserId','anonymous-user'),_0x43b921['config']['define']('users.colorsCount',0x8),this['users']=new _0x42a1b8(),this['_locale']=_0x43b921['locale'],this['_licenseKeyCheckInterval']=null,this['_lastColor']=0x0,this['_myId']=null,this['decorate']('getOperationAuthor');}['init'](){const _0x2d1fc7=this['context'];this['licenseKey']=_0x2d1fc7['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4af13c;for(const _0x5bc2cc in _0x2d1fc7){const _0x37e643=_0x2d1fc7[_0x5bc2cc];if('licenseKeyTrial'===_0x37e643||'licenseKeyInvalid'===_0x37e643||'licenseKeyValid'===_0x37e643||'licenseKeyTrialLimit'==_0x37e643){delete _0x2d1fc7[_0x5bc2cc],_0x4af13c=_0x37e643;break;}}if('licenseKeyInvalid'===_0x4af13c)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x8b37c1('invalid-license-key',null);if('licenseKeyTrial'===_0x4af13c&&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'===_0x4af13c)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x8b37c1('trial-license-key-reached-limit',null);'licenseKeyValid'===_0x4af13c&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}get['me'](){return null==this['_myId']?null:this['getUser'](this['_myId']);}['addUser'](_0x565aca){if(!(_0x565aca=Object['assign']({},_0x565aca,{'color':this['_getNextColor']()}))['id']||'string'!=typeof _0x565aca['id'])throw new _0x8b37c1('users-add-invalid-id');if(this['users']['has'](_0x565aca['id']))throw new _0x8b37c1('users-add-duplicated-id',null,{'id':_0x565aca['id']});_0x565aca['name']=function(_0x399d05,_0x315d53=''){const {t:t}=_0x399d05;return''==(_0x315d53=_0x315d53['trim']())?t('Anonymous'):_0x315d53;}(this['_locale'],_0x565aca['name']);const _0xdadc55=new l(_0x565aca);return this['users']['add'](_0xdadc55),_0xdadc55;}['getUser'](_0x147b1a){return this['users']['get'](_0x147b1a);}['useAnonymousUser'](){const _0x1e0553=this['context']['config']['get']('users.anonymousUserId'),{t:t}=this['_locale'];if(this['users']['has'](_0x1e0553))return;this['addUser']({'id':_0x1e0553,'name':t('Anonymous')})['_isAnonymous']=!0x0,this['defineMe'](_0x1e0553);}['defineMe'](_0x167964){if(this['_myId'])throw new _0x8b37c1('users-me-already-defined',null);if(!this['getUser'](_0x167964))throw new _0x8b37c1('users-me-missing-user',null);this['_myId']=_0x167964;}['getOperationAuthor'](){return this['me'];}['destroy'](){super['destroy'](),clearInterval(this['_licenseKeyCheckInterval']);}['_getNextColor'](){const _0xf33c29=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0xf33c29&&(this['_lastColor']=0x0),new u(this['_lastColor']++);}}class l{constructor(_0xbe6241){this['id']=_0xbe6241['id'],this['color']=_0xbe6241['color'],this['name']=_0xbe6241['name'],this['avatar']=_0xbe6241['avatar'],this['_isAnonymous']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['initials'](){return this['name']['split']('\x20')['map'](_0x51ceef=>_0x51ceef['charAt'](0x0))['slice'](0x0,0x2)['join']('')['toUpperCase']();}}class u{constructor(_0xdce4c7){this['_id']=_0xdce4c7;}['getBackgroundColorClass'](){return'ck-user__bg-color--'+this['_id'];}['getSelectionClass'](){return'ck-user__selection--'+this['_id'];}['getMarkerClass'](){return'ck-user__marker--'+this['_id'];}}
import{ContextPlugin as _0x1e79e3}from'ckeditor5/src/core';import{Collection as _0x1fadd9,CKEditorError as _0x41bb3c}from'ckeditor5/src/utils';import _0x149531 from'./permissions';import'../theme/usercolors.css';export default class r extends _0x1e79e3{static get['pluginName'](){return'Users';}static get['requires'](){return[_0x149531];}constructor(_0x4e1ece){super(_0x4e1ece),_0x4e1ece['config']['define']('users.anonymousUserId','anonymous-user'),_0x4e1ece['config']['define']('users.colorsCount',0x8),this['users']=new _0x1fadd9(),this['_locale']=_0x4e1ece['locale'],this['_licenseKeyCheckInterval']=null,this['_lastColor']=0x0,this['_myId']=null,this['decorate']('getOperationAuthor');}['init'](){const _0x24faf2=this['context'];this['licenseKey']=_0x24faf2['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xa18d2;for(const _0x1501a7 in _0x24faf2){const _0x478ad1=_0x24faf2[_0x1501a7];if('licenseKeyTrial'===_0x478ad1||'licenseKeyInvalid'===_0x478ad1||'licenseKeyValid'===_0x478ad1||'licenseKeyTrialLimit'==_0x478ad1){delete _0x24faf2[_0x1501a7],_0xa18d2=_0x478ad1;break;}}if('licenseKeyInvalid'===_0xa18d2)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x41bb3c('invalid-license-key',null);if('licenseKeyTrial'===_0xa18d2&&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'===_0xa18d2)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x41bb3c('trial-license-key-reached-limit',null);'licenseKeyValid'===_0xa18d2&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}get['me'](){return null==this['_myId']?null:this['getUser'](this['_myId']);}['addUser'](_0x8c64d7){if(!(_0x8c64d7=Object['assign']({},_0x8c64d7,{'color':this['_getNextColor']()}))['id']||'string'!=typeof _0x8c64d7['id'])throw new _0x41bb3c('users-add-invalid-id');if(this['users']['has'](_0x8c64d7['id']))throw new _0x41bb3c('users-add-duplicated-id',null,{'id':_0x8c64d7['id']});_0x8c64d7['name']=function(_0x1573d2,_0x40d9ca=''){const {t:t}=_0x1573d2;return''==(_0x40d9ca=_0x40d9ca['trim']())?t('Anonymous'):_0x40d9ca;}(this['_locale'],_0x8c64d7['name']);const _0x20d2b9=new l(_0x8c64d7);return this['users']['add'](_0x20d2b9),_0x20d2b9;}['getUser'](_0xccf965){return this['users']['get'](_0xccf965);}['useAnonymousUser'](){const _0x30d0ad=this['context']['config']['get']('users.anonymousUserId'),{t:t}=this['_locale'];if(this['users']['has'](_0x30d0ad))return;this['addUser']({'id':_0x30d0ad,'name':t('Anonymous')})['_isAnonymous']=!0x0,this['defineMe'](_0x30d0ad);}['defineMe'](_0x2e4a4d){if(this['_myId'])throw new _0x41bb3c('users-me-already-defined',null);if(!this['getUser'](_0x2e4a4d))throw new _0x41bb3c('users-me-missing-user',null);this['_myId']=_0x2e4a4d;}['getOperationAuthor'](){return this['me'];}['destroy'](){super['destroy'](),clearInterval(this['_licenseKeyCheckInterval']);}['_getNextColor'](){const _0x5bceb7=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x5bceb7&&(this['_lastColor']=0x0),new u(this['_lastColor']++);}}class l{constructor(_0x17a00b){this['id']=_0x17a00b['id'],this['color']=_0x17a00b['color'],this['name']=_0x17a00b['name'],this['avatar']=_0x17a00b['avatar'],this['_isAnonymous']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['initials'](){const _0x3e5c7f=this['name']['split']('\x20');return 0x1===_0x3e5c7f['length']?this['_getInitial'](_0x3e5c7f[0x0]):this['_getInitial'](_0x3e5c7f[0x0])+this['_getInitial'](_0x3e5c7f[_0x3e5c7f['length']-0x1]);}['_getInitial'](_0x44fca0){return _0x44fca0['charAt'](0x0)['toUpperCase']();}}class u{constructor(_0x55b269){this['_id']=_0x55b269;}['getBackgroundColorClass'](){return'ck-user__bg-color--'+this['_id'];}['getSelectionClass'](){return'ck-user__selection--'+this['_id'];}['getMarkerClass'](){return'ck-user__marker--'+this['_id'];}}

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

*/
const _0x3947=['ck-user','push','div','initials','name','ck-user__avatar','ck\x20ck-user__name','avatar'];(function(_0xb7cd88,_0x394783){const _0x27ae07=function(_0x15b2c6){while(--_0x15b2c6){_0xb7cd88['push'](_0xb7cd88['shift']());}};_0x27ae07(++_0x394783);}(_0x3947,0x94));const _0x27ae=function(_0xb7cd88,_0x394783){_0xb7cd88=_0xb7cd88-0x0;let _0x27ae07=_0x3947[_0xb7cd88];return _0x27ae07;};import{View as _0x515da0}from'ckeditor5/src/ui';import'../../../theme/users.css';export default class a extends _0x515da0{constructor(_0x37aa57,_0x49cbe9){super(_0x37aa57),this[_0x27ae('0x0')]=_0x49cbe9[_0x27ae('0x0')];const _0x1f45d1=['ck','ck-user__img'];_0x49cbe9['isAnonymous']&&_0x1f45d1[_0x27ae('0x5')]('ck-user__anonymous'),_0x49cbe9[_0x27ae('0x3')]&&_0x1f45d1[_0x27ae('0x5')](_0x27ae('0x1')),this['setTemplate']({'tag':_0x27ae('0x6'),'attributes':{'class':['ck',_0x27ae('0x4')],'data-user-id':_0x49cbe9['id']},'children':[{'tag':_0x27ae('0x6'),'attributes':{'class':_0x1f45d1,'style':{'background-image':_0x49cbe9['avatar']?'url(\x27'+_0x49cbe9[_0x27ae('0x3')]+'\x27)':''}}},{'tag':_0x27ae('0x6'),'attributes':{'class':_0x49cbe9[_0x27ae('0x3')]?'ck\x20ck-user__name\x20ck-user__name--hidden':_0x27ae('0x2')},'children':[{'text':_0x49cbe9[_0x27ae('0x7')]}]}]});}}
const _0x51ba=['ck-user__anonymous','ck-user','avatar','isAnonymous','setTemplate','initials','div','push','ck\x20ck-user__name'];(function(_0x51f4c3,_0x51baa2){const _0x855b55=function(_0x49f2db){while(--_0x49f2db){_0x51f4c3['push'](_0x51f4c3['shift']());}};_0x855b55(++_0x51baa2);}(_0x51ba,0x1bc));const _0x855b=function(_0x51f4c3,_0x51baa2){_0x51f4c3=_0x51f4c3-0x0;let _0x855b55=_0x51ba[_0x51f4c3];return _0x855b55;};import{View as _0x149942}from'ckeditor5/src/ui';import'../../../theme/users.css';export default class a extends _0x149942{constructor(_0x2e7c91,_0x139831){super(_0x2e7c91),this['name']=_0x139831['name'];const _0xbc5dc2=['ck','ck-user__img'];_0x139831[_0x855b('0x0')]&&_0xbc5dc2[_0x855b('0x4')](_0x855b('0x6')),_0x139831[_0x855b('0x8')]&&_0xbc5dc2[_0x855b('0x4')]('ck-user__avatar'),this[_0x855b('0x1')]({'tag':_0x855b('0x3'),'attributes':{'class':['ck',_0x855b('0x7')],'data-user-id':_0x139831['id']},'children':[{'tag':_0x855b('0x3'),'attributes':{'class':_0xbc5dc2,'style':{'background-image':_0x139831[_0x855b('0x8')]?'url(\x27'+_0x139831[_0x855b('0x8')]+'\x27)':''}}},{'tag':_0x855b('0x3'),'attributes':{'class':_0x139831['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':_0x855b('0x5')},'children':[{'text':_0x139831[_0x855b('0x2')]}]}]});}}
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