@ckeditor/ckeditor5-collaboration-core
Advanced tools
Comparing version 31.0.0 to 31.1.0
{ | ||
"name": "@ckeditor/ckeditor5-collaboration-core", | ||
"version": "31.0.0", | ||
"version": "31.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": "^31.0.0" | ||
"ckeditor5": "^31.1.0" | ||
} | ||
} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x2c0b=['noPermissions','config','pluginName','comment:admin','get','comment:write','context','isReadOnly','permissions-set-permissions-invalid-channel-id','has','CommentsOnly','commands','plugins','includes','setPermissions','document:write','editors','clearForceDisabled','CommentsRepository','find','Permissions','collaboration.channelId'];(function(_0x588b2c,_0x2c0bf9){const _0x1c8c2a=function(_0x5e09ad){while(--_0x5e09ad){_0x588b2c['push'](_0x588b2c['shift']());}};_0x1c8c2a(++_0x2c0bf9);}(_0x2c0b,0x1d8));const _0x1c8c=function(_0x588b2c,_0x2c0bf9){_0x588b2c=_0x588b2c-0x0;let _0x1c8c2a=_0x2c0b[_0x588b2c];return _0x1c8c2a;};import{ContextPlugin as _0x1cc3e1,Editor as _0x40eeee}from'ckeditor5/src/core';import{CKEditorError as _0x4798b4}from'ckeditor5/src/utils';export default class e extends _0x1cc3e1{static get[_0x1c8c('0xe')](){return _0x1c8c('0xa');}[_0x1c8c('0x4')](_0x148414,_0x11f96a){let _0x83ae3f;if(_0x11f96a||(_0x11f96a=this[_0x1c8c('0x12')][_0x1c8c('0xd')][_0x1c8c('0x10')](_0x1c8c('0xb'))),this[_0x1c8c('0x12')][_0x1c8c('0xd')]['get'](_0x1c8c('0xb'))==_0x11f96a?_0x83ae3f=this[_0x1c8c('0x12')]:this[_0x1c8c('0x12')][_0x1c8c('0x6')]&&(_0x83ae3f=this[_0x1c8c('0x12')][_0x1c8c('0x6')][_0x1c8c('0x9')](_0x356cca=>_0x356cca['config'][_0x1c8c('0x10')](_0x1c8c('0xb'))==_0x11f96a)),!_0x83ae3f)throw new _0x4798b4(_0x1c8c('0x14'),null);const _0x528a2e=_0x83ae3f[_0x1c8c('0x2')],_0x36dd39=_0x83ae3f instanceof _0x40eeee,_0x2ade43=_0x528a2e[_0x1c8c('0x15')](_0x1c8c('0x8'))&&_0x528a2e[_0x1c8c('0x10')](_0x1c8c('0x8')),_0x1f8104=_0x528a2e['has'](_0x1c8c('0x0'))&&_0x528a2e[_0x1c8c('0x10')](_0x1c8c('0x0')),_0x232102=_0x148414[_0x1c8c('0x3')](_0x1c8c('0x5')),_0x18883f=_0x148414[_0x1c8c('0x3')](_0x1c8c('0xf')),_0xede0a7=_0x148414[_0x1c8c('0x3')](_0x1c8c('0x11'))||_0x18883f;if(_0x1f8104&&(_0x1f8104['isEnabled']=!_0x232102&&_0xede0a7),_0x36dd39&&(_0x83ae3f[_0x1c8c('0x13')]=!(_0x232102||_0xede0a7&&_0x2ade43)),_0x2ade43){_0x2ade43['switchReadOnly'](!_0xede0a7,_0x11f96a),_0x2ade43['setAdminPermissions'](_0x18883f,_0x11f96a);const _0x3c9301=_0x36dd39&&_0x83ae3f[_0x1c8c('0x1')][_0x1c8c('0x10')]('addCommentThread');_0x3c9301&&(_0xede0a7?_0x3c9301[_0x1c8c('0x7')](_0x1c8c('0xc')):_0x3c9301['forceDisabled']('noPermissions'));}}} | ||
const _0x3f57=['plugins','commands','find','CommentsOnly','isReadOnly','forceDisabled','editors','CommentsRepository','get','addCommentThread','setPermissions','comment:admin','permissions-set-permissions-invalid-channel-id','clearForceDisabled','includes','has','Permissions','switchReadOnly','collaboration.channelId','noPermissions','config','context'];(function(_0x4387b9,_0x3f5773){const _0x1f35b5=function(_0x10a1a0){while(--_0x10a1a0){_0x4387b9['push'](_0x4387b9['shift']());}};_0x1f35b5(++_0x3f5773);}(_0x3f57,0x17f));const _0x1f35=function(_0x4387b9,_0x3f5773){_0x4387b9=_0x4387b9-0x0;let _0x1f35b5=_0x3f57[_0x4387b9];return _0x1f35b5;};import{ContextPlugin as _0x365a6b,Editor as _0x1f8c4c}from'ckeditor5/src/core';import{CKEditorError as _0x528b32}from'ckeditor5/src/utils';export default class e extends _0x365a6b{static get['pluginName'](){return _0x1f35('0x7');}[_0x1f35('0x1')](_0x160288,_0x12e783){let _0x51b197;if(_0x12e783||(_0x12e783=this[_0x1f35('0xc')]['config']['get'](_0x1f35('0x9'))),this[_0x1f35('0xc')][_0x1f35('0xb')][_0x1f35('0x15')]('collaboration.channelId')==_0x12e783?_0x51b197=this[_0x1f35('0xc')]:this[_0x1f35('0xc')][_0x1f35('0x13')]&&(_0x51b197=this['context']['editors'][_0x1f35('0xf')](_0x5afc58=>_0x5afc58['config'][_0x1f35('0x15')](_0x1f35('0x9'))==_0x12e783)),!_0x51b197)throw new _0x528b32(_0x1f35('0x3'),null);const _0x188401=_0x51b197[_0x1f35('0xd')],_0x3fa3b2=_0x51b197 instanceof _0x1f8c4c,_0x5eb14a=_0x188401[_0x1f35('0x6')]('CommentsRepository')&&_0x188401[_0x1f35('0x15')](_0x1f35('0x14')),_0x858bf8=_0x188401[_0x1f35('0x6')](_0x1f35('0x10'))&&_0x188401[_0x1f35('0x15')](_0x1f35('0x10')),_0x1a62aa=_0x160288['includes']('document:write'),_0x468eaa=_0x160288['includes'](_0x1f35('0x2')),_0x57aab4=_0x160288[_0x1f35('0x5')]('comment:write')||_0x468eaa;if(_0x858bf8&&(_0x858bf8['isEnabled']=!_0x1a62aa&&_0x57aab4),_0x3fa3b2&&(_0x51b197[_0x1f35('0x11')]=!(_0x1a62aa||_0x57aab4&&_0x5eb14a)),_0x5eb14a){_0x5eb14a[_0x1f35('0x8')](!_0x57aab4,_0x12e783),_0x5eb14a['setAdminPermissions'](_0x468eaa,_0x12e783);const _0x2d455e=_0x3fa3b2&&_0x51b197[_0x1f35('0xe')][_0x1f35('0x15')](_0x1f35('0x0'));_0x2d455e&&(_0x57aab4?_0x2d455e[_0x1f35('0x4')](_0x1f35('0xa')):_0x2d455e[_0x1f35('0x12')]('noPermissions'));}}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
import{ContextPlugin as _0x1c3534}from'ckeditor5/src/core';import{Collection as _0x2391e2,CKEditorError as _0x128d4e}from'ckeditor5/src/utils';import _0x2a7ca2 from'./permissions';import'../theme/usercolors.css';export default class r extends _0x1c3534{static get['pluginName'](){return'Users';}static get['requires'](){return[_0x2a7ca2];}constructor(_0x3b9171){super(_0x3b9171),_0x3b9171['config']['define']('users.anonymousUserId','anonymous-user'),_0x3b9171['config']['define']('users.colorsCount',0x8),this['users']=new _0x2391e2(),this['_locale']=_0x3b9171['locale'],this['_licenseKeyCheckInterval']=null,this['_lastColor']=0x0,this['_myId']=null,this['decorate']('getOperationAuthor');}['init'](){const _0x23bc28=this['context'];this['licenseKey']=_0x23bc28['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x594bec;for(const _0xd45a6b in _0x23bc28){const _0x26c20a=_0x23bc28[_0xd45a6b];if('licenseKeyTrial'===_0x26c20a||'licenseKeyInvalid'===_0x26c20a||'licenseKeyValid'===_0x26c20a||'licenseKeyTrialLimit'==_0x26c20a){delete _0x23bc28[_0xd45a6b],_0x594bec=_0x26c20a;break;}}if('licenseKeyInvalid'===_0x594bec)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x128d4e('invalid-license-key',null);if('licenseKeyTrial'===_0x594bec&&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'===_0x594bec)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x128d4e('trial-license-key-reached-limit',null);'licenseKeyValid'===_0x594bec&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}get['me'](){return null==this['_myId']?null:this['getUser'](this['_myId']);}['addUser'](_0x106f59){if(!(_0x106f59=Object['assign']({},_0x106f59,{'color':this['_getNextColor']()}))['id']||'string'!=typeof _0x106f59['id'])throw new _0x128d4e('users-add-invalid-id');if(this['users']['has'](_0x106f59['id']))throw new _0x128d4e('users-add-duplicated-id',null,{'id':_0x106f59['id']});_0x106f59['name']=function(_0x387daa,_0x728c82=''){const {t:t}=_0x387daa;return''==(_0x728c82=_0x728c82['trim']())?t('Anonymous'):_0x728c82;}(this['_locale'],_0x106f59['name']);const _0x13197d=new l(_0x106f59);return this['users']['add'](_0x13197d),_0x13197d;}['getUser'](_0x251040){return this['users']['get'](_0x251040);}['useAnonymousUser'](){const _0x24e6dd=this['context']['config']['get']('users.anonymousUserId'),{t:t}=this['_locale'];if(this['users']['has'](_0x24e6dd))return;this['addUser']({'id':_0x24e6dd,'name':t('Anonymous')})['_isAnonymous']=!0x0,this['defineMe'](_0x24e6dd);}['defineMe'](_0x1e442b){if(this['_myId'])throw new _0x128d4e('users-me-already-defined',null);if(!this['getUser'](_0x1e442b))throw new _0x128d4e('users-me-missing-user',null);this['_myId']=_0x1e442b;}['getOperationAuthor'](){return this['me'];}['destroy'](){super['destroy'](),clearInterval(this['_licenseKeyCheckInterval']);}['_getNextColor'](){const _0x242f03=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x242f03&&(this['_lastColor']=0x0),new u(this['_lastColor']++);}}class l{constructor(_0x4aae5d){this['id']=_0x4aae5d['id'],this['color']=_0x4aae5d['color'],this['name']=_0x4aae5d['name'],this['avatar']=_0x4aae5d['avatar'],this['_isAnonymous']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['initials'](){const _0x2f63d6=this['name']['split']('\x20');return 0x1===_0x2f63d6['length']?this['_getInitial'](_0x2f63d6[0x0]):this['_getInitial'](_0x2f63d6[0x0])+this['_getInitial'](_0x2f63d6[_0x2f63d6['length']-0x1]);}['_getInitial'](_0x4f4773){return _0x4f4773['charAt'](0x0)['toUpperCase']();}}class u{constructor(_0x2c9e9e){this['_id']=_0x2c9e9e;}['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 _0x2ab2af}from'ckeditor5/src/core';import{Collection as _0x526095,CKEditorError as _0x338fe4}from'ckeditor5/src/utils';import _0x39b788 from'./permissions';import'../theme/usercolors.css';export default class r extends _0x2ab2af{static get['pluginName'](){return'Users';}static get['requires'](){return[_0x39b788];}constructor(_0x50cad2){super(_0x50cad2),_0x50cad2['config']['define']('users.anonymousUserId','anonymous-user'),_0x50cad2['config']['define']('users.colorsCount',0x8),this['users']=new _0x526095(),this['_locale']=_0x50cad2['locale'],this['_licenseKeyCheckInterval']=null,this['_lastColor']=0x0,this['_myId']=null,this['decorate']('getOperationAuthor');}['init'](){const _0x531f7d=this['context'];this['licenseKey']=_0x531f7d['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x64097b;for(const _0x176383 in _0x531f7d){const _0x28825d=_0x531f7d[_0x176383];if('licenseKeyTrial'===_0x28825d||'licenseKeyInvalid'===_0x28825d||'licenseKeyValid'===_0x28825d||'licenseKeyTrialLimit'==_0x28825d){delete _0x531f7d[_0x176383],_0x64097b=_0x28825d;break;}}if('licenseKeyInvalid'===_0x64097b)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x338fe4('invalid-license-key',null);if('licenseKeyTrial'===_0x64097b&&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'===_0x64097b)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x338fe4('trial-license-key-reached-limit',null);'licenseKeyValid'===_0x64097b&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}get['me'](){return null==this['_myId']?null:this['getUser'](this['_myId']);}['addUser'](_0x3bf267){if(!(_0x3bf267=Object['assign']({},_0x3bf267,{'color':this['_getNextColor']()}))['id']||'string'!=typeof _0x3bf267['id'])throw new _0x338fe4('users-add-invalid-id');if(this['users']['has'](_0x3bf267['id']))throw new _0x338fe4('users-add-duplicated-id',null,{'id':_0x3bf267['id']});_0x3bf267['name']=function(_0x10684c,_0x436ca2=''){const {t:t}=_0x10684c;return''==(_0x436ca2=_0x436ca2['trim']())?t('Anonymous'):_0x436ca2;}(this['_locale'],_0x3bf267['name']);const _0x5eb475=new l(_0x3bf267);return this['users']['add'](_0x5eb475),_0x5eb475;}['getUser'](_0x59ac36){return this['users']['get'](_0x59ac36);}['useAnonymousUser'](){const _0x4d877c=this['context']['config']['get']('users.anonymousUserId'),{t:t}=this['_locale'];if(this['users']['has'](_0x4d877c))return;this['addUser']({'id':_0x4d877c,'name':t('Anonymous')})['_isAnonymous']=!0x0,this['defineMe'](_0x4d877c);}['defineMe'](_0x56298e){if(this['_myId'])throw new _0x338fe4('users-me-already-defined',null);if(!this['getUser'](_0x56298e))throw new _0x338fe4('users-me-missing-user',null);this['_myId']=_0x56298e;}['getOperationAuthor'](){return this['me'];}['destroy'](){super['destroy'](),clearInterval(this['_licenseKeyCheckInterval']);}['_getNextColor'](){const _0xc225d=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0xc225d&&(this['_lastColor']=0x0),new u(this['_lastColor']++);}}class l{constructor(_0x140154){this['id']=_0x140154['id'],this['color']=_0x140154['color'],this['name']=_0x140154['name'],this['avatar']=_0x140154['avatar'],this['_isAnonymous']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['initials'](){const _0x82f7b3=this['name']['split']('\x20');return 0x1===_0x82f7b3['length']?this['_getInitial'](_0x82f7b3[0x0]):this['_getInitial'](_0x82f7b3[0x0])+this['_getInitial'](_0x82f7b3[_0x82f7b3['length']-0x1]);}['_getInitial'](_0x7fe38c){return _0x7fe38c['charAt'](0x0)['toUpperCase']();}}class u{constructor(_0x155969){this['_id']=_0x155969;}['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 _0x334a=['ck-user','div','isAnonymous','avatar','ck-user__avatar','name','url(\x27','setTemplate','push'];(function(_0x59d92d,_0x334aad){const _0xdf6b3b=function(_0x5b9afb){while(--_0x5b9afb){_0x59d92d['push'](_0x59d92d['shift']());}};_0xdf6b3b(++_0x334aad);}(_0x334a,0x1dd));const _0xdf6b=function(_0x59d92d,_0x334aad){_0x59d92d=_0x59d92d-0x0;let _0xdf6b3b=_0x334a[_0x59d92d];return _0xdf6b3b;};import{View as _0x106807}from'ckeditor5/src/ui';import'../../../theme/users.css';export default class a extends _0x106807{constructor(_0x5c3815,_0xaf52c5){super(_0x5c3815),this[_0xdf6b('0x5')]=_0xaf52c5['name'];const _0x231e99=['ck','ck-user__img'];_0xaf52c5[_0xdf6b('0x2')]&&_0x231e99[_0xdf6b('0x8')]('ck-user__anonymous'),_0xaf52c5[_0xdf6b('0x3')]&&_0x231e99['push'](_0xdf6b('0x4')),this[_0xdf6b('0x7')]({'tag':_0xdf6b('0x1'),'attributes':{'class':['ck',_0xdf6b('0x0')],'data-user-id':_0xaf52c5['id']},'children':[{'tag':_0xdf6b('0x1'),'attributes':{'class':_0x231e99,'style':{'background-image':_0xaf52c5[_0xdf6b('0x3')]?_0xdf6b('0x6')+_0xaf52c5['avatar']+'\x27)':''}}},{'tag':_0xdf6b('0x1'),'attributes':{'class':_0xaf52c5[_0xdf6b('0x3')]?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name'},'children':[{'text':_0xaf52c5['initials']}]}]});}} | ||
const _0x16fd=['url(\x27','avatar','ck-user','ck\x20ck-user__name\x20ck-user__name--hidden','div','name','ck-user__avatar','isAnonymous','push','setTemplate','ck-user__img'];(function(_0x557af5,_0x16fd4f){const _0x16b766=function(_0x2e0b8c){while(--_0x2e0b8c){_0x557af5['push'](_0x557af5['shift']());}};_0x16b766(++_0x16fd4f);}(_0x16fd,0x1cb));const _0x16b7=function(_0x557af5,_0x16fd4f){_0x557af5=_0x557af5-0x0;let _0x16b766=_0x16fd[_0x557af5];return _0x16b766;};import{View as _0xf46906}from'ckeditor5/src/ui';import'../../../theme/users.css';export default class a extends _0xf46906{constructor(_0x42deb6,_0x2e6916){super(_0x42deb6),this[_0x16b7('0x8')]=_0x2e6916[_0x16b7('0x8')];const _0x25e2af=['ck',_0x16b7('0x2')];_0x2e6916[_0x16b7('0xa')]&&_0x25e2af[_0x16b7('0x0')]('ck-user__anonymous'),_0x2e6916[_0x16b7('0x4')]&&_0x25e2af['push'](_0x16b7('0x9')),this[_0x16b7('0x1')]({'tag':'div','attributes':{'class':['ck',_0x16b7('0x5')],'data-user-id':_0x2e6916['id']},'children':[{'tag':_0x16b7('0x7'),'attributes':{'class':_0x25e2af,'style':{'background-image':_0x2e6916[_0x16b7('0x4')]?_0x16b7('0x3')+_0x2e6916[_0x16b7('0x4')]+'\x27)':''}}},{'tag':_0x16b7('0x7'),'attributes':{'class':_0x2e6916[_0x16b7('0x4')]?_0x16b7('0x6'):'ck\x20ck-user__name'},'children':[{'text':_0x2e6916['initials']}]}]});}} |
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
50021
43
Updatedckeditor5@^31.1.0