@ckeditor/ckeditor5-collaboration-core 32.0.0 → 33.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE.md CHANGED
@@ -2,7 +2,7 @@ Software License Agreement
2
2
  ==========================
3
3
 
4
4
  **CKEditor 5 collaboration core** (https://ckeditor.com/collaboration/)<br>
5
- Copyright (c) 2003-2021, [CKSource](http://cksource.com) Holding sp. z o.o. All rights reserved.
5
+ Copyright (c) 2003-2022, [CKSource](http://cksource.com) Holding sp. z o.o. All rights reserved.
6
6
 
7
7
  CKEditor 5 collaboration core is licensed under a commercial license and is protected by copyright law.
8
8
  We operate on subscription-based licensing terms. For more details about available licensing options please contact us at sales@cksource.com.
package/README.md CHANGED
@@ -17,7 +17,7 @@ As a licensed CKEditor 5 collaboration features user you can report bugs and req
17
17
  ## License
18
18
 
19
19
  **CKEditor 5 collaboration core**<br>
20
- Copyright (c) 2003-2021, [CKSource](http://cksource.com) Holding sp. z o.o. All rights reserved.
20
+ Copyright (c) 2003-2022, [CKSource](http://cksource.com) Holding sp. z o.o. All rights reserved.
21
21
 
22
22
  CKEditor 5 collaboration core is licensed under a commercial license and is protected by copyright law.
23
23
  For more details about available licensing options please contact us at sales@cksource.com.
@@ -0,0 +1,21 @@
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # !!! IMPORTANT !!!
4
+ #
5
+ # Before you edit this file, please keep in mind that contributing to the project
6
+ # translations is possible ONLY via the Transifex online service.
7
+ #
8
+ # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
+ #
10
+ # To learn more, check out the official contributor's guide:
11
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
+ #
13
+ msgid ""
14
+ msgstr ""
15
+ "Language-Team: Greek (https://www.transifex.com/ckeditor/teams/11143/el/)\n"
16
+ "Language: el\n"
17
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+
19
+ msgctxt "A label for the anonymous user icon"
20
+ msgid "Anonymous"
21
+ msgstr "Ανώνυμος"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-collaboration-core",
3
- "version": "32.0.0",
3
+ "version": "33.0.0",
4
4
  "description": "Base utilities used by CKEditor 5 collaboration features to support multiple users working together in a rich text editor.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -26,7 +26,9 @@
26
26
  "real time",
27
27
  "framework"
28
28
  ],
29
+ "main": "src/index.js",
29
30
  "dependencies": {
30
- "ckeditor5": "^32.0.0"
31
+ "ckeditor5": "^33.0.0",
32
+ "date-fns": "^2.17.0"
31
33
  }
32
34
  }
package/src/index.js ADDED
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ export{default as Permissions}from'./permissions';export{default as Users}from'./users';export{default as UserView}from'./users/view/userview';export{default as getDateTimeFormatter}from'./utils/getdatetimeformatter';export{default as getMarkerDomElement}from'./utils/getmarkerdomelement';export{default as trimHtml}from'./utils/trim-html';
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- 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')));}}}
23
+ 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')));}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- 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')]}]}]});}}
23
+ 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')]}]}]});}}
package/src/users.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- 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'];}}
23
+ 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'];}}
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ const _0x22dc=['MM-dd-yyyy\x20hh:mma','\x27Last\x27\x20EEEE\x20hh:mma','dateTimeFormat','\x27Today\x27\x20hh:mma','string','invalid-date-time-format','\x27Yesterday\x27\x20hh:mma'];(function(_0x2146be,_0x22dc9c){const _0x5e6b3a=function(_0x1aa8f1){while(--_0x1aa8f1){_0x2146be['push'](_0x2146be['shift']());}};_0x5e6b3a(++_0x22dc9c);}(_0x22dc,0xef));const _0x5e6b=function(_0x2146be,_0x22dc9c){_0x2146be=_0x2146be-0x0;let _0x5e6b3a=_0x22dc[_0x2146be];return _0x5e6b3a;};import _0x1ba023 from'date-fns/format';import _0x4a4cb5 from'date-fns/parseISO';import _0x10b9b3 from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x28b488}from'ckeditor5/src/utils';export default function d(_0x49df54={}){if(void 0x0!==_0x49df54[_0x5e6b('0x1')]&&'function'!=typeof _0x49df54[_0x5e6b('0x1')])throw new _0x28b488(_0x5e6b('0x4'));return _0x2d75f8=>{const _0x3b0336=_0x5e6b('0x3')==typeof _0x2d75f8?_0x4a4cb5(_0x2d75f8):_0x2d75f8,_0x420892=new Date(),_0x548786=_0x10b9b3(_0x420892,_0x3b0336);return _0x49df54[_0x5e6b('0x1')]?_0x49df54[_0x5e6b('0x1')](_0x3b0336):_0x1ba023(_0x3b0336,0x0===_0x548786?_0x5e6b('0x2'):0x1===_0x548786?_0x5e6b('0x5'):_0x548786<0x7?_0x5e6b('0x0'):_0x5e6b('0x6'));};}
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ const _0x1a25=['values','view','name','markerNameToElements','domConverter','mapViewToDom','mapper'];(function(_0x477661,_0x1a254c){const _0x43198a=function(_0x57dee9){while(--_0x57dee9){_0x477661['push'](_0x477661['shift']());}};_0x43198a(++_0x1a254c);}(_0x1a25,0x190));const _0x4319=function(_0x477661,_0x1a254c){_0x477661=_0x477661-0x0;let _0x43198a=_0x1a25[_0x477661];return _0x43198a;};import{first as _0x34b17b}from'ckeditor5/src/utils';export default function p(_0x34a6ab,_0x3dd0b9){const _0x37fe0e=_0x34a6ab[_0x4319('0x5')][_0x4319('0x2')](_0x3dd0b9[_0x4319('0x1')]),_0x4ba223=_0x34b17b(_0x37fe0e[_0x4319('0x6')]());return _0x34a6ab[_0x4319('0x0')][_0x4319('0x3')][_0x4319('0x4')](_0x4ba223);}
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ const _0x3478=['split','join','push','match','replace','startsWith','slice','pop','length'];(function(_0x150517,_0x3478c2){const _0x10cc6e=function(_0x1fa8b4){while(--_0x1fa8b4){_0x150517['push'](_0x150517['shift']());}};_0x10cc6e(++_0x3478c2);}(_0x3478,0xbc));const _0x10cc=function(_0x150517,_0x3478c2){_0x150517=_0x150517-0x0;let _0x10cc6e=_0x3478[_0x150517];return _0x10cc6e;};export default function g(_0x4218a5,{limit:_0x49ccb7,suffix:_0x36173a='...'}){const _0x54752f=[];let _0x4f4c46=0x0;const _0x55da35=_0x4218a5[_0x10cc('0x5')](/</g,'\x0a<')[_0x10cc('0x5')](/>/g,'>\x0a')[_0x10cc('0x5')](/^\n/g,'')[_0x10cc('0x5')](/\n$/g,'')[_0x10cc('0x1')]('\x0a');for(let _0x3ccf91=0x0;_0x3ccf91<_0x55da35[_0x10cc('0x0')];_0x3ccf91++){let _0x4a8c26=_0x55da35[_0x3ccf91];const _0x50e08c=x(_0x4a8c26);if(_0x4a8c26[_0x10cc('0x6')]('<')){if(_0x4f4c46>=_0x49ccb7){const _0x1bbbdf=_0x4a8c26[_0x10cc('0x4')](/[a-zA-Z]+/)[0x0];_0x4a8c26['startsWith']('</')?(_0x54752f[_0x10cc('0x0')]&&(_0x4a8c26=''),_0x54752f[_0x10cc('0x8')]()):(_0x54752f['push'](_0x1bbbdf),_0x4a8c26='');}}else{if(_0x4f4c46>=_0x49ccb7)_0x4a8c26='';else{if(_0x4f4c46+_0x50e08c[_0x10cc('0x0')]>=_0x49ccb7){let _0x233d8b=_0x49ccb7-_0x4f4c46;if('\x20'===_0x50e08c[_0x233d8b-0x1])_0x233d8b--;else{const _0x1096d3=_0x50e08c[_0x10cc('0x7')](_0x233d8b)['indexOf']('\x20');-0x1!==_0x1096d3?_0x233d8b+=_0x1096d3:_0x233d8b=_0x4a8c26['length'];}_0x4a8c26=_0x50e08c[_0x10cc('0x7')](0x0,_0x233d8b)[_0x10cc('0x2')]('')+_0x36173a,_0x4f4c46=_0x49ccb7;}else _0x4f4c46+=_0x50e08c[_0x10cc('0x0')];}}_0x55da35[_0x3ccf91]=_0x4a8c26;}return _0x55da35[_0x10cc('0x2')]('\x0a')[_0x10cc('0x5')](/\n/g,'');}function x(_0x43c4ab){const _0xc4736d=[];for(let _0x4ebcf3=0x0;_0x4ebcf3<_0x43c4ab[_0x10cc('0x0')];_0x4ebcf3++){const _0x2d47ea=_0x43c4ab['substring'](_0x4ebcf3)[_0x10cc('0x4')](/^&[a-z0-9#]+;/);if(_0x2d47ea){const _0x2fd283=_0x2d47ea[0x0];_0xc4736d[_0x10cc('0x3')](_0x2fd283),_0x4ebcf3+=_0x2fd283['length']-0x1;}else _0xc4736d[_0x10cc('0x3')](_0x43c4ab[_0x4ebcf3]);}return _0xc4736d;}
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2021, CKSource Holding sp. z o.o. All rights reserved.
6
+ * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
7
7
  */
8
8
 
9
9
  @import "./usercolormixin.css";
package/theme/users.css CHANGED
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2021, CKSource Holding sp. z o.o. All rights reserved.
6
+ * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
7
7
  */
8
8
 
9
9
  @import '@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css';