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
678
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 32.0.0 to 33.0.0

lang/translations/el.po

2

LICENSE.md

@@ -5,3 +5,3 @@ Software License Agreement

**CKEditor 5 collaboration core** (https://ckeditor.com/collaboration/)<br>
Copyright (c) 2003-2021, [CKSource](http://cksource.com) Holding sp. z o.o. All rights reserved.
Copyright (c) 2003-2022, [CKSource](http://cksource.com) Holding sp. z o.o. All rights reserved.

@@ -8,0 +8,0 @@ CKEditor 5 collaboration core is licensed under a commercial license and is protected by copyright law.

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

@@ -29,5 +29,7 @@ "license": "SEE LICENSE IN LICENSE.md",

],
"main": "src/index.js",
"dependencies": {
"ckeditor5": "^32.0.0"
"ckeditor5": "^33.0.0",
"date-fns": "^2.17.0"
}
}

@@ -20,3 +20,3 @@ # CKEditor 5 collaboration core

**CKEditor 5 collaboration core**<br>
Copyright (c) 2003-2021, [CKSource](http://cksource.com) Holding sp. z o.o. All rights reserved.
Copyright (c) 2003-2022, [CKSource](http://cksource.com) Holding sp. z o.o. All rights reserved.

@@ -23,0 +23,0 @@ CKEditor 5 collaboration core is licensed under a commercial license and is protected by copyright law.

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

*/
const _0x5514=['comment:write','comment:admin','noPermissions','includes','config','pluginName','permissions-set-permissions-invalid-channel-id','isReadOnly','isEnabled','get','CommentsRepository','setAdminPermissions','collaboration.channelId','find','editors','switchReadOnly','plugins','document:write','has','forceDisabled','CommentsOnly','setPermissions','context','clearForceDisabled','Permissions','commands','addCommentThread'];(function(_0x37a0d2,_0x55147c){const _0x3cfba9=function(_0x52a82a){while(--_0x52a82a){_0x37a0d2['push'](_0x37a0d2['shift']());}};_0x3cfba9(++_0x55147c);}(_0x5514,0x14d));const _0x3cfb=function(_0x37a0d2,_0x55147c){_0x37a0d2=_0x37a0d2-0x0;let _0x3cfba9=_0x5514[_0x37a0d2];return _0x3cfba9;};import{ContextPlugin as _0x3a2376,Editor as _0x3059ee}from'ckeditor5/src/core';import{CKEditorError as _0x2d73c2}from'ckeditor5/src/utils';export default class e extends _0x3a2376{static get[_0x3cfb('0x17')](){return _0x3cfb('0xf');}[_0x3cfb('0xc')](_0x1f088c,_0x472914){let _0x5a7eee;if(_0x472914||(_0x472914=this[_0x3cfb('0xd')][_0x3cfb('0x16')][_0x3cfb('0x0')]('collaboration.channelId')),this[_0x3cfb('0xd')][_0x3cfb('0x16')][_0x3cfb('0x0')](_0x3cfb('0x3'))==_0x472914?_0x5a7eee=this[_0x3cfb('0xd')]:this[_0x3cfb('0xd')][_0x3cfb('0x5')]&&(_0x5a7eee=this['context'][_0x3cfb('0x5')][_0x3cfb('0x4')](_0x3848aa=>_0x3848aa['config'][_0x3cfb('0x0')](_0x3cfb('0x3'))==_0x472914)),!_0x5a7eee)throw new _0x2d73c2(_0x3cfb('0x18'),null);const _0x4e4469=_0x5a7eee[_0x3cfb('0x7')],_0x50d3be=_0x5a7eee instanceof _0x3059ee,_0x1d534b=_0x4e4469[_0x3cfb('0x9')](_0x3cfb('0x1'))&&_0x4e4469[_0x3cfb('0x0')]('CommentsRepository'),_0x249c6e=_0x4e4469['has'](_0x3cfb('0xb'))&&_0x4e4469['get'](_0x3cfb('0xb')),_0x37c50a=_0x1f088c[_0x3cfb('0x15')](_0x3cfb('0x8')),_0x13de38=_0x1f088c[_0x3cfb('0x15')](_0x3cfb('0x13')),_0x5cd966=_0x1f088c[_0x3cfb('0x15')](_0x3cfb('0x12'))||_0x13de38;if(_0x249c6e&&(_0x249c6e[_0x3cfb('0x1a')]=!_0x37c50a&&_0x5cd966),_0x50d3be&&(_0x5a7eee[_0x3cfb('0x19')]=!(_0x37c50a||_0x5cd966&&_0x1d534b)),_0x1d534b){_0x1d534b[_0x3cfb('0x6')](!_0x5cd966,_0x472914),_0x1d534b[_0x3cfb('0x2')](_0x13de38,_0x472914);const _0x21264d=_0x50d3be&&_0x5a7eee[_0x3cfb('0x10')][_0x3cfb('0x0')](_0x3cfb('0x11'));_0x21264d&&(_0x5cd966?_0x21264d[_0x3cfb('0xe')](_0x3cfb('0x14')):_0x21264d[_0x3cfb('0xa')](_0x3cfb('0x14')));}}}
const _0xa514=['context','editors','pluginName','has','get','includes','setPermissions','plugins','setAdminPermissions','noPermissions','document:write','config','forceDisabled','clearForceDisabled','commands','switchReadOnly','isReadOnly','isEnabled','Permissions','collaboration.channelId','CommentsRepository','CommentsOnly','permissions-set-permissions-invalid-channel-id'];(function(_0x1c3437,_0xa51416){const _0x210bc7=function(_0x374eaf){while(--_0x374eaf){_0x1c3437['push'](_0x1c3437['shift']());}};_0x210bc7(++_0xa51416);}(_0xa514,0xda));const _0x210b=function(_0x1c3437,_0xa51416){_0x1c3437=_0x1c3437-0x0;let _0x210bc7=_0xa514[_0x1c3437];return _0x210bc7;};import{ContextPlugin as _0x27e6f6,Editor as _0xfd55c9}from'ckeditor5/src/core';import{CKEditorError as _0xa88513}from'ckeditor5/src/utils';export default class e extends _0x27e6f6{static get[_0x210b('0xe')](){return _0x210b('0x7');}[_0x210b('0x12')](_0x316861,_0x821c4f){let _0x3fb2d1;if(_0x821c4f||(_0x821c4f=this[_0x210b('0xc')][_0x210b('0x0')][_0x210b('0x10')]('collaboration.channelId')),this[_0x210b('0xc')][_0x210b('0x0')][_0x210b('0x10')]('collaboration.channelId')==_0x821c4f?_0x3fb2d1=this['context']:this['context'][_0x210b('0xd')]&&(_0x3fb2d1=this[_0x210b('0xc')]['editors']['find'](_0xb60c62=>_0xb60c62[_0x210b('0x0')][_0x210b('0x10')](_0x210b('0x8'))==_0x821c4f)),!_0x3fb2d1)throw new _0xa88513(_0x210b('0xb'),null);const _0x121b89=_0x3fb2d1[_0x210b('0x13')],_0x30a1f9=_0x3fb2d1 instanceof _0xfd55c9,_0x1fb88f=_0x121b89[_0x210b('0xf')]('CommentsRepository')&&_0x121b89[_0x210b('0x10')](_0x210b('0x9')),_0x29cca6=_0x121b89[_0x210b('0xf')](_0x210b('0xa'))&&_0x121b89[_0x210b('0x10')](_0x210b('0xa')),_0x42ae38=_0x316861[_0x210b('0x11')](_0x210b('0x16')),_0x164387=_0x316861[_0x210b('0x11')]('comment:admin'),_0x1f82df=_0x316861[_0x210b('0x11')]('comment:write')||_0x164387;if(_0x29cca6&&(_0x29cca6[_0x210b('0x6')]=!_0x42ae38&&_0x1f82df),_0x30a1f9&&(_0x3fb2d1[_0x210b('0x5')]=!(_0x42ae38||_0x1f82df&&_0x1fb88f)),_0x1fb88f){_0x1fb88f[_0x210b('0x4')](!_0x1f82df,_0x821c4f),_0x1fb88f[_0x210b('0x14')](_0x164387,_0x821c4f);const _0x12728d=_0x30a1f9&&_0x3fb2d1[_0x210b('0x3')][_0x210b('0x10')]('addCommentThread');_0x12728d&&(_0x1f82df?_0x12728d[_0x210b('0x2')](_0x210b('0x15')):_0x12728d[_0x210b('0x1')](_0x210b('0x15')));}}}

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

*/
import{ContextPlugin as _0x2bacea}from'ckeditor5/src/core';import{Collection as _0x43d56d,CKEditorError as _0x1cf0a4}from'ckeditor5/src/utils';import _0x355f10 from'./permissions';import'../theme/usercolors.css';export default class r extends _0x2bacea{static get['pluginName'](){return'Users';}static get['requires'](){return[_0x355f10];}constructor(_0x4a5287){super(_0x4a5287),_0x4a5287['config']['define']('users.anonymousUserId','anonymous-user'),_0x4a5287['config']['define']('users.colorsCount',0x8),this['users']=new _0x43d56d(),this['_locale']=_0x4a5287['locale'],this['_licenseKeyCheckInterval']=null,this['_lastColor']=0x0,this['_myId']=null,this['decorate']('getOperationAuthor');}['init'](){const _0x3a877f=this['context'];this['licenseKey']=_0x3a877f['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x414a18;for(const _0x144372 in _0x3a877f){const _0x43e571=_0x3a877f[_0x144372];if('licenseKeyTrial'===_0x43e571||'licenseKeyInvalid'===_0x43e571||'licenseKeyValid'===_0x43e571||'licenseKeyTrialLimit'==_0x43e571){delete _0x3a877f[_0x144372],_0x414a18=_0x43e571;break;}}if('licenseKeyInvalid'===_0x414a18)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x1cf0a4('invalid-license-key',null);if('licenseKeyTrial'===_0x414a18&&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'===_0x414a18)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x1cf0a4('trial-license-key-reached-limit',null);'licenseKeyValid'===_0x414a18&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8),this['_addAnonymousUser']();}get['me'](){return null==this['_myId']?null:this['getUser'](this['_myId']);}['addUser'](_0x21634b){if(!(_0x21634b=Object['assign']({},_0x21634b,{'color':this['_getNextColor']()}))['id']||'string'!=typeof _0x21634b['id'])throw new _0x1cf0a4('users-add-invalid-id');if(this['users']['has'](_0x21634b['id']))throw new _0x1cf0a4('users-add-duplicated-id',null,{'id':_0x21634b['id']});_0x21634b['name']=function(_0x4e5621,_0x41c002=''){const {t:t}=_0x4e5621;return''==(_0x41c002=_0x41c002['trim']())?t('Anonymous'):_0x41c002;}(this['_locale'],_0x21634b['name']);const _0x3748c9=new l(_0x21634b);return this['users']['add'](_0x3748c9),_0x3748c9;}['getUser'](_0x831d0b){return this['users']['get'](_0x831d0b);}['useAnonymousUser'](){const _0x33ad75=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x33ad75);}['defineMe'](_0x425ad9){if(this['_myId'])throw new _0x1cf0a4('users-me-already-defined',null);if(!this['getUser'](_0x425ad9))throw new _0x1cf0a4('users-me-missing-user',null);this['_myId']=_0x425ad9;}['getOperationAuthor'](){return this['me'];}['destroy'](){super['destroy'](),clearInterval(this['_licenseKeyCheckInterval']);}['_getNextColor'](){const _0x345a62=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x345a62&&(this['_lastColor']=0x0),new u(this['_lastColor']++);}['_addAnonymousUser'](){const {t:t}=this['_locale'],_0x2dc9b1=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x2dc9b1,'name':t('Anonymous')})['_isAnonymous']=!0x0;}}class l{constructor(_0x4c482a){this['id']=_0x4c482a['id'],this['color']=_0x4c482a['color'],this['name']=_0x4c482a['name'],this['avatar']=_0x4c482a['avatar'],this['_isAnonymous']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['initials'](){const _0xd04941=this['name']['split']('\x20');return 0x1===_0xd04941['length']?this['_getInitial'](_0xd04941[0x0]):this['_getInitial'](_0xd04941[0x0])+this['_getInitial'](_0xd04941[_0xd04941['length']-0x1]);}['_getInitial'](_0x128ac0){return _0x128ac0['charAt'](0x0)['toUpperCase']();}}class u{constructor(_0x34adda){this['_id']=_0x34adda;}['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 _0x332a5b}from'ckeditor5/src/core';import{Collection as _0x2a8f78,CKEditorError as _0xdbc054}from'ckeditor5/src/utils';import _0x301be6 from'./permissions';import'../theme/usercolors.css';export default class r extends _0x332a5b{static get['pluginName'](){return'Users';}static get['requires'](){return[_0x301be6];}constructor(_0xa80bb9){super(_0xa80bb9),_0xa80bb9['config']['define']('users.anonymousUserId','anonymous-user'),_0xa80bb9['config']['define']('users.colorsCount',0x8),this['users']=new _0x2a8f78(),this['_locale']=_0xa80bb9['locale'],this['_licenseKeyCheckInterval']=null,this['_lastColor']=0x0,this['_myId']=null,this['decorate']('getOperationAuthor');}['init'](){const _0x220f15=this['context'];this['licenseKey']=_0x220f15['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x102b82;for(const _0x4a670a in _0x220f15){const _0x1612db=_0x220f15[_0x4a670a];if('licenseKeyTrial'===_0x1612db||'licenseKeyInvalid'===_0x1612db||'licenseKeyValid'===_0x1612db||'licenseKeyTrialLimit'==_0x1612db){delete _0x220f15[_0x4a670a],_0x102b82=_0x1612db;break;}}if('licenseKeyInvalid'===_0x102b82)throw clearInterval(this['_licenseKeyCheckInterval']),new _0xdbc054('invalid-license-key',null);if('licenseKeyTrial'===_0x102b82&&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'===_0x102b82)throw clearInterval(this['_licenseKeyCheckInterval']),new _0xdbc054('trial-license-key-reached-limit',null);'licenseKeyValid'===_0x102b82&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8),this['_addAnonymousUser']();}get['me'](){return null==this['_myId']?null:this['getUser'](this['_myId']);}['addUser'](_0x492f3a){if(!(_0x492f3a=Object['assign']({},_0x492f3a,{'color':this['_getNextColor']()}))['id']||'string'!=typeof _0x492f3a['id'])throw new _0xdbc054('users-add-invalid-id');if(this['users']['has'](_0x492f3a['id']))throw new _0xdbc054('users-add-duplicated-id',null,{'id':_0x492f3a['id']});_0x492f3a['name']=function(_0xd16cf4,_0x25f682=''){const {t:t}=_0xd16cf4;return''==(_0x25f682=_0x25f682['trim']())?t('Anonymous'):_0x25f682;}(this['_locale'],_0x492f3a['name']);const _0x55859e=new l(_0x492f3a);return this['users']['add'](_0x55859e),_0x55859e;}['getUser'](_0x41e01a){return this['users']['get'](_0x41e01a);}['useAnonymousUser'](){const _0x25165d=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x25165d);}['defineMe'](_0x427f64){if(this['_myId'])throw new _0xdbc054('users-me-already-defined',null);if(!this['getUser'](_0x427f64))throw new _0xdbc054('users-me-missing-user',null);this['_myId']=_0x427f64;}['getOperationAuthor'](){return this['me'];}['destroy'](){super['destroy'](),clearInterval(this['_licenseKeyCheckInterval']);}['_getNextColor'](){const _0x154849=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x154849&&(this['_lastColor']=0x0),new u(this['_lastColor']++);}['_addAnonymousUser'](){const {t:t}=this['_locale'],_0x3a79e4=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x3a79e4,'name':t('Anonymous')})['_isAnonymous']=!0x0;}}class l{constructor(_0x1f1b70){this['id']=_0x1f1b70['id'],this['color']=_0x1f1b70['color'],this['name']=_0x1f1b70['name'],this['avatar']=_0x1f1b70['avatar'],this['_isAnonymous']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['initials'](){const _0x13e269=this['name']['split']('\x20');return 0x1===_0x13e269['length']?this['_getInitial'](_0x13e269[0x0]):this['_getInitial'](_0x13e269[0x0])+this['_getInitial'](_0x13e269[_0x13e269['length']-0x1]);}['_getInitial'](_0x5aa585){return _0x5aa585['charAt'](0x0)['toUpperCase']();}}class u{constructor(_0x537e79){this['_id']=_0x537e79;}['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 _0x6ad4=['ck-user__avatar','ck-user__anonymous','push','setTemplate','ck\x20ck-user__name\x20ck-user__name--hidden','name','div','initials','avatar','ck-user__img','isAnonymous','ck-user','ck\x20ck-user__name'];(function(_0x2fe54f,_0x6ad4ef){const _0x1eebfb=function(_0x2609c0){while(--_0x2609c0){_0x2fe54f['push'](_0x2fe54f['shift']());}};_0x1eebfb(++_0x6ad4ef);}(_0x6ad4,0x12d));const _0x1eeb=function(_0x2fe54f,_0x6ad4ef){_0x2fe54f=_0x2fe54f-0x0;let _0x1eebfb=_0x6ad4[_0x2fe54f];return _0x1eebfb;};import{View as _0x41fbec}from'ckeditor5/src/ui';import'../../../theme/users.css';export default class a extends _0x41fbec{constructor(_0x586c3a,_0x127d8e){super(_0x586c3a),this[_0x1eeb('0x3')]=_0x127d8e[_0x1eeb('0x3')];const _0x391963=['ck',_0x1eeb('0x7')];_0x127d8e[_0x1eeb('0x8')]&&_0x391963['push'](_0x1eeb('0xc')),_0x127d8e[_0x1eeb('0x6')]&&_0x391963[_0x1eeb('0x0')](_0x1eeb('0xb')),this[_0x1eeb('0x1')]({'tag':_0x1eeb('0x4'),'attributes':{'class':['ck',_0x1eeb('0x9')],'data-user-id':_0x127d8e['id']},'children':[{'tag':'div','attributes':{'class':_0x391963,'style':{'background-image':_0x127d8e['avatar']?'url(\x27'+_0x127d8e[_0x1eeb('0x6')]+'\x27)':''}}},{'tag':_0x1eeb('0x4'),'attributes':{'class':_0x127d8e[_0x1eeb('0x6')]?_0x1eeb('0x2'):_0x1eeb('0xa')},'children':[{'text':_0x127d8e[_0x1eeb('0x5')]}]}]});}}
const _0x408e=['setTemplate','push','ck\x20ck-user__name','div','isAnonymous','initials','name','ck\x20ck-user__name\x20ck-user__name--hidden','ck-user__img','ck-user__anonymous','avatar','url(\x27','ck-user__avatar','ck-user'];(function(_0x2696ca,_0x408ecb){const _0x503c21=function(_0x596b6a){while(--_0x596b6a){_0x2696ca['push'](_0x2696ca['shift']());}};_0x503c21(++_0x408ecb);}(_0x408e,0x106));const _0x503c=function(_0x2696ca,_0x408ecb){_0x2696ca=_0x2696ca-0x0;let _0x503c21=_0x408e[_0x2696ca];return _0x503c21;};import{View as _0x292c73}from'ckeditor5/src/ui';import'../../../theme/users.css';export default class _ extends _0x292c73{constructor(_0x362150,_0x539aec){super(_0x362150),this['name']=_0x539aec[_0x503c('0xa')];const _0x27a56b=['ck',_0x503c('0xc')];_0x539aec[_0x503c('0x8')]&&_0x27a56b[_0x503c('0x5')](_0x503c('0xd')),_0x539aec['avatar']&&_0x27a56b['push'](_0x503c('0x2')),this[_0x503c('0x4')]({'tag':_0x503c('0x7'),'attributes':{'class':['ck',_0x503c('0x3')],'data-user-id':_0x539aec['id']},'children':[{'tag':_0x503c('0x7'),'attributes':{'class':_0x27a56b,'style':{'background-image':_0x539aec['avatar']?_0x503c('0x1')+_0x539aec[_0x503c('0x0')]+'\x27)':''}}},{'tag':_0x503c('0x7'),'attributes':{'class':_0x539aec[_0x503c('0x0')]?_0x503c('0xb'):_0x503c('0x6')},'children':[{'text':_0x539aec[_0x503c('0x9')]}]}]});}}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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