@ckeditor/ckeditor5-collaboration-core
Advanced tools
Comparing version 27.1.0 to 28.0.0
{ | ||
"name": "@ckeditor/ckeditor5-collaboration-core", | ||
"version": "27.1.0", | ||
"version": "28.0.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": "^27.1.0" | ||
"ckeditor5": "^28.0.0" | ||
} | ||
} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
import{ContextPlugin as _0x3f7771}from'ckeditor5/src/core';import{Collection as _0x507022,CKEditorError as _0x423a3e}from'ckeditor5/src/utils';import'../theme/usercolors.css';export default class r extends _0x3f7771{static get['pluginName'](){return'Users';}constructor(_0x9466af){super(_0x9466af),_0x9466af['config']['define']('users.anonymousUserId','anonymous-user'),_0x9466af['config']['define']('users.colorsCount',0x8),this['users']=new _0x507022(),this['_locale']=_0x9466af['locale'],this['_licenseKeyCheckInterval']=null,this['_lastColor']=0x0,this['_myId']=null,this['decorate']('getOperationAuthor');}['init'](){const _0x539ca6=this['context'];this['licenseKey']=_0x539ca6['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4d97e8;for(const _0x48b8b2 in _0x539ca6){const _0x55e92e=_0x539ca6[_0x48b8b2];if('licenseKeyTrial'===_0x55e92e||'licenseKeyInvalid'===_0x55e92e||'licenseKeyValid'===_0x55e92e||'licenseKeyTrialLimit'==_0x55e92e){delete _0x539ca6[_0x48b8b2],_0x4d97e8=_0x55e92e;break;}}if('licenseKeyInvalid'===_0x4d97e8)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x423a3e('invalid-license-key',null);if('licenseKeyTrial'===_0x4d97e8&&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'===_0x4d97e8)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x423a3e('trial-license-key-reached-limit',null);'licenseKeyValid'===_0x4d97e8&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}get['me'](){return null==this['_myId']?null:this['getUser'](this['_myId']);}['addUser'](_0x4c91e7){if(!(_0x4c91e7=Object['assign']({},_0x4c91e7,{'color':this['_getNextColor']()}))['id']||'string'!=typeof _0x4c91e7['id'])throw new _0x423a3e('users-add-invalid-id');if(this['users']['has'](_0x4c91e7['id']))throw new _0x423a3e('users-add-duplicated-id',null,{'id':_0x4c91e7['id']});_0x4c91e7['name']=function(_0x1c22a8,_0x59e499=''){const {t:t}=_0x1c22a8;return''==(_0x59e499=_0x59e499['trim']())?t('Anonymous'):_0x59e499;}(this['_locale'],_0x4c91e7['name']);const _0xce8349=new n(_0x4c91e7);return this['users']['add'](_0xce8349),_0xce8349;}['getUser'](_0x9532bc){return this['users']['get'](_0x9532bc);}['useAnonymousUser'](){const _0x37d279=this['context']['config']['get']('users.anonymousUserId'),{t:t}=this['_locale'];if(this['users']['has'](_0x37d279))return;this['addUser']({'id':_0x37d279,'name':t('Anonymous')})['_isAnonymous']=!0x0,this['defineMe'](_0x37d279);}['defineMe'](_0x1d9bda){if(this['_myId'])throw new _0x423a3e('users-me-already-defined',null);if(!this['getUser'](_0x1d9bda))throw new _0x423a3e('users-me-missing-user',null);this['_myId']=_0x1d9bda;}['getOperationAuthor'](){return this['me'];}['destroy'](){super['destroy'](),clearInterval(this['_licenseKeyCheckInterval']);}['_getNextColor'](){const _0x27da82=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x27da82&&(this['_lastColor']=0x0),new o(this['_lastColor']++);}}class n{constructor(_0x437332){this['id']=_0x437332['id'],this['color']=_0x437332['color'],this['name']=_0x437332['name'],this['avatar']=_0x437332['avatar'],this['_isAnonymous']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['initials'](){return this['name']['split']('\x20')['map'](_0x11b4b6=>_0x11b4b6['charAt'](0x0))['slice'](0x0,0x2)['join']('')['toUpperCase']();}}class o{constructor(_0x49101f){this['_id']=_0x49101f;}['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 _0x1fdc14}from'ckeditor5/src/core';import{Collection as _0x49af65,CKEditorError as _0x3f8945}from'ckeditor5/src/utils';import'../theme/usercolors.css';export default class r extends _0x1fdc14{static get['pluginName'](){return'Users';}constructor(_0x4041f3){super(_0x4041f3),_0x4041f3['config']['define']('users.anonymousUserId','anonymous-user'),_0x4041f3['config']['define']('users.colorsCount',0x8),this['users']=new _0x49af65(),this['_locale']=_0x4041f3['locale'],this['_licenseKeyCheckInterval']=null,this['_lastColor']=0x0,this['_myId']=null,this['decorate']('getOperationAuthor');}['init'](){const _0x5854b6=this['context'];this['licenseKey']=_0x5854b6['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2b9806;for(const _0x46919c in _0x5854b6){const _0x52ce67=_0x5854b6[_0x46919c];if('licenseKeyTrial'===_0x52ce67||'licenseKeyInvalid'===_0x52ce67||'licenseKeyValid'===_0x52ce67||'licenseKeyTrialLimit'==_0x52ce67){delete _0x5854b6[_0x46919c],_0x2b9806=_0x52ce67;break;}}if('licenseKeyInvalid'===_0x2b9806)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x3f8945('invalid-license-key',null);if('licenseKeyTrial'===_0x2b9806&&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'===_0x2b9806)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x3f8945('trial-license-key-reached-limit',null);'licenseKeyValid'===_0x2b9806&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}get['me'](){return null==this['_myId']?null:this['getUser'](this['_myId']);}['addUser'](_0x22e1e2){if(!(_0x22e1e2=Object['assign']({},_0x22e1e2,{'color':this['_getNextColor']()}))['id']||'string'!=typeof _0x22e1e2['id'])throw new _0x3f8945('users-add-invalid-id');if(this['users']['has'](_0x22e1e2['id']))throw new _0x3f8945('users-add-duplicated-id',null,{'id':_0x22e1e2['id']});_0x22e1e2['name']=function(_0x29e344,_0x1e5bc5=''){const {t:t}=_0x29e344;return''==(_0x1e5bc5=_0x1e5bc5['trim']())?t('Anonymous'):_0x1e5bc5;}(this['_locale'],_0x22e1e2['name']);const _0x46a576=new n(_0x22e1e2);return this['users']['add'](_0x46a576),_0x46a576;}['getUser'](_0x3d0cf8){return this['users']['get'](_0x3d0cf8);}['useAnonymousUser'](){const _0x368d49=this['context']['config']['get']('users.anonymousUserId'),{t:t}=this['_locale'];if(this['users']['has'](_0x368d49))return;this['addUser']({'id':_0x368d49,'name':t('Anonymous')})['_isAnonymous']=!0x0,this['defineMe'](_0x368d49);}['defineMe'](_0x2b35ac){if(this['_myId'])throw new _0x3f8945('users-me-already-defined',null);if(!this['getUser'](_0x2b35ac))throw new _0x3f8945('users-me-missing-user',null);this['_myId']=_0x2b35ac;}['getOperationAuthor'](){return this['me'];}['destroy'](){super['destroy'](),clearInterval(this['_licenseKeyCheckInterval']);}['_getNextColor'](){const _0x2b5545=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x2b5545&&(this['_lastColor']=0x0),new o(this['_lastColor']++);}}class n{constructor(_0x3a7d8b){this['id']=_0x3a7d8b['id'],this['color']=_0x3a7d8b['color'],this['name']=_0x3a7d8b['name'],this['avatar']=_0x3a7d8b['avatar'],this['_isAnonymous']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['initials'](){return this['name']['split']('\x20')['map'](_0x20c09f=>_0x20c09f['charAt'](0x0))['slice'](0x0,0x2)['join']('')['toUpperCase']();}}class o{constructor(_0x40be1b){this['_id']=_0x40be1b;}['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 _0x2bde=['ck-user__anonymous','ck-user__img','push','name','div','isAnonymous','avatar','ck-user__avatar','ck-user','url(\x27','setTemplate'];(function(_0x5dbe45,_0x2bde6f){const _0x2b22ce=function(_0x264a14){while(--_0x264a14){_0x5dbe45['push'](_0x5dbe45['shift']());}};_0x2b22ce(++_0x2bde6f);}(_0x2bde,0x1ee));const _0x2b22=function(_0x5dbe45,_0x2bde6f){_0x5dbe45=_0x5dbe45-0x0;let _0x2b22ce=_0x2bde[_0x5dbe45];return _0x2b22ce;};import{View as _0x46987e}from'ckeditor5/src/ui';import'../../../theme/users.css';export default class a extends _0x46987e{constructor(_0x158dc8,_0x48ea9c){super(_0x158dc8),this[_0x2b22('0x4')]=_0x48ea9c[_0x2b22('0x4')];const _0x1dec51=['ck',_0x2b22('0x2')];_0x48ea9c[_0x2b22('0x6')]&&_0x1dec51[_0x2b22('0x3')](_0x2b22('0x1')),_0x48ea9c[_0x2b22('0x7')]&&_0x1dec51[_0x2b22('0x3')](_0x2b22('0x8')),this[_0x2b22('0x0')]({'tag':_0x2b22('0x5'),'attributes':{'class':['ck',_0x2b22('0x9')],'data-user-id':_0x48ea9c['id']},'children':[{'tag':_0x2b22('0x5'),'attributes':{'class':_0x1dec51,'style':{'background-image':_0x48ea9c[_0x2b22('0x7')]?_0x2b22('0xa')+_0x48ea9c[_0x2b22('0x7')]+'\x27)':''}}},{'tag':_0x2b22('0x5'),'attributes':{'class':_0x48ea9c['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name'},'children':[{'text':_0x48ea9c['initials']}]}]});}} | ||
const _0x131f=['div','push','ck-user__img','ck-user__avatar','avatar','ck\x20ck-user__name','ck-user__anonymous','url(\x27','name','initials','setTemplate','ck\x20ck-user__name\x20ck-user__name--hidden'];(function(_0x20867b,_0x131fd3){const _0x137fac=function(_0x569f2f){while(--_0x569f2f){_0x20867b['push'](_0x20867b['shift']());}};_0x137fac(++_0x131fd3);}(_0x131f,0xec));const _0x137f=function(_0x20867b,_0x131fd3){_0x20867b=_0x20867b-0x0;let _0x137fac=_0x131f[_0x20867b];return _0x137fac;};import{View as _0x2da630}from'ckeditor5/src/ui';import'../../../theme/users.css';export default class a extends _0x2da630{constructor(_0x7426b9,_0x5c7f74){super(_0x7426b9),this[_0x137f('0x0')]=_0x5c7f74[_0x137f('0x0')];const _0x62ed90=['ck',_0x137f('0x6')];_0x5c7f74['isAnonymous']&&_0x62ed90[_0x137f('0x5')](_0x137f('0xa')),_0x5c7f74['avatar']&&_0x62ed90[_0x137f('0x5')](_0x137f('0x7')),this[_0x137f('0x2')]({'tag':_0x137f('0x4'),'attributes':{'class':['ck','ck-user'],'data-user-id':_0x5c7f74['id']},'children':[{'tag':_0x137f('0x4'),'attributes':{'class':_0x62ed90,'style':{'background-image':_0x5c7f74['avatar']?_0x137f('0xb')+_0x5c7f74[_0x137f('0x8')]+'\x27)':''}}},{'tag':_0x137f('0x4'),'attributes':{'class':_0x5c7f74['avatar']?_0x137f('0x3'):_0x137f('0x9')},'children':[{'text':_0x5c7f74[_0x137f('0x1')]}]}]});}} |
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
43852
+ Added@ckeditor/ckeditor5-clipboard@28.0.0(transitive)
+ Added@ckeditor/ckeditor5-core@28.0.0(transitive)
+ Added@ckeditor/ckeditor5-engine@28.0.0(transitive)
+ Added@ckeditor/ckeditor5-enter@28.0.0(transitive)
+ Added@ckeditor/ckeditor5-paragraph@28.0.0(transitive)
+ Added@ckeditor/ckeditor5-select-all@28.0.0(transitive)
+ Added@ckeditor/ckeditor5-typing@28.0.0(transitive)
+ Added@ckeditor/ckeditor5-ui@28.0.0(transitive)
+ Added@ckeditor/ckeditor5-undo@28.0.0(transitive)
+ Added@ckeditor/ckeditor5-upload@28.0.0(transitive)
+ Added@ckeditor/ckeditor5-utils@28.0.0(transitive)
+ Added@ckeditor/ckeditor5-widget@28.0.0(transitive)
+ Addedckeditor5@28.0.0(transitive)
- Removed@ckeditor/ckeditor5-clipboard@27.1.0(transitive)
- Removed@ckeditor/ckeditor5-core@27.1.0(transitive)
- Removed@ckeditor/ckeditor5-engine@27.1.0(transitive)
- Removed@ckeditor/ckeditor5-enter@27.1.0(transitive)
- Removed@ckeditor/ckeditor5-paragraph@27.1.0(transitive)
- Removed@ckeditor/ckeditor5-select-all@27.1.0(transitive)
- Removed@ckeditor/ckeditor5-typing@27.1.0(transitive)
- Removed@ckeditor/ckeditor5-ui@27.1.0(transitive)
- Removed@ckeditor/ckeditor5-undo@27.1.0(transitive)
- Removed@ckeditor/ckeditor5-upload@27.1.0(transitive)
- Removed@ckeditor/ckeditor5-utils@27.1.0(transitive)
- Removed@ckeditor/ckeditor5-widget@27.1.0(transitive)
- Removedckeditor5@27.1.0(transitive)
Updatedckeditor5@^28.0.0