@ckeditor/ckeditor5-collaboration-core 0.0.0-nightly-20240205.0 → 0.0.0-nightly-20240206.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/package.json +2 -2
- package/src/permissions.js +1 -1
- package/src/users/view/userview.js +1 -1
- package/src/users.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/confirmmixin.js +1 -1
- package/src/utils/confirmview.js +1 -1
- package/src/utils/getdatetimeformatter.js +1 -1
- package/src/utils/getmarkerdomelement.js +1 -1
- package/src/utils/hashobject.js +1 -1
- package/src/utils/sanitizeEditorConfig.js +1 -1
- package/src/utils/surroundingmarkersdetector.js +1 -1
- package/src/utils/trim-html.js +1 -1
- package/theme/users.css +2 -2
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ckeditor/ckeditor5-collaboration-core",
|
3
|
-
"version": "0.0.0-nightly-
|
3
|
+
"version": "0.0.0-nightly-20240206.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/)",
|
@@ -32,7 +32,7 @@
|
|
32
32
|
"type": "module",
|
33
33
|
"main": "src/index.js",
|
34
34
|
"dependencies": {
|
35
|
-
"ckeditor5": "0.0.0-nightly-
|
35
|
+
"ckeditor5": "0.0.0-nightly-20240206.0",
|
36
36
|
"date-fns": "2.30.0"
|
37
37
|
},
|
38
38
|
"files": [
|
package/src/permissions.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x4795=['get','document:write','has','clearForceDisabled','forceDisabled','isEnabled','disableReadOnlyMode','Permissions','collaboration.channelId','config','CommentsRepository','no-permissions','pluginName','comment:write','plugins','addCommentThread','enableReadOnlyMode','noPermissions','editors','setPermissions','CommentsOnly','comment:admin','includes','context'];(function(_0x410b48,_0x4795b5){const _0x57197f=function(_0x20e927){while(--_0x20e927){_0x410b48['push'](_0x410b48['shift']());}};_0x57197f(++_0x4795b5);}(_0x4795,0x175));const _0x5719=function(_0x410b48,_0x4795b5){_0x410b48=_0x410b48-0x0;let _0x57197f=_0x4795[_0x410b48];return _0x57197f;};import{ContextPlugin as _0x1695eb,Editor as _0x4de595}from'ckeditor5/src/core.js';import{CKEditorError as _0x11f684}from'ckeditor5/src/utils.js';export default class n extends _0x1695eb{static get[_0x5719('0x17')](){return _0x5719('0x12');}[_0x5719('0x6')](_0x279a26,_0x5e2b38){let _0x497581;if(_0x5e2b38||(_0x5e2b38=this[_0x5719('0xa')][_0x5719('0x14')][_0x5719('0xb')](_0x5719('0x13'))),this[_0x5719('0xa')][_0x5719('0x14')][_0x5719('0xb')](_0x5719('0x13'))==_0x5e2b38?_0x497581=this[_0x5719('0xa')]:_0x5719('0x5')in this[_0x5719('0xa')]&&this[_0x5719('0xa')]['editors']&&(_0x497581=this[_0x5719('0xa')]['editors']['find'](_0x20fd3e=>_0x20fd3e[_0x5719('0x14')][_0x5719('0xb')](_0x5719('0x13'))==_0x5e2b38)),!_0x497581)throw new _0x11f684('permissions-set-permissions-invalid-channel-id',null);const _0x509209=_0x497581[_0x5719('0x1')],_0x581a9d=_0x509209[_0x5719('0xd')](_0x5719('0x15'))?_0x509209[_0x5719('0xb')](_0x5719('0x15')):void 0x0,_0x377bd2=_0x509209['has']('CommentsOnly')&&_0x509209[_0x5719('0xb')](_0x5719('0x7')),_0x3c8190=_0x279a26[_0x5719('0x9')](_0x5719('0xc')),_0x2d9fb5=_0x279a26['includes']('comment:modify_all'),_0xf8db83=_0x279a26[_0x5719('0x9')](_0x5719('0x8')),_0x54a254=_0x279a26[_0x5719('0x9')](_0x5719('0x0')),_0x3f7633=_0x54a254||_0xf8db83,_0x3fd72f=_0x3f7633||_0x2d9fb5,_0x21d85a=_0x3c8190||_0x3f7633;(_0x377bd2&&(_0x377bd2[_0x5719('0x10')]=!_0x3c8190&&_0x3fd72f),_0x497581 instanceof _0x4de595)&&(!(_0x3c8190||_0x3fd72f&&_0x581a9d)?_0x497581[_0x5719('0x3')](_0x5719('0x16')):_0x497581[_0x5719('0x11')](_0x5719('0x16')));if(_0x581a9d){_0x581a9d[_0x5719('0x6')]({'admin':_0xf8db83,'modifyAll':_0x2d9fb5,'write':_0x54a254,'resolve':_0x21d85a},_0x5e2b38);const _0x1393db=_0x497581 instanceof _0x4de595&&_0x497581['commands'][_0x5719('0xb')](_0x5719('0x2'));_0x1393db&&(_0x3f7633?_0x1393db[_0x5719('0xe')](_0x5719('0x4')):_0x1393db[_0x5719('0xf')]('noPermissions'));}}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x5ef8=['ck\x20ck-user__name\x20ck-user__name--hidden','setTemplate','notificationView','extendTemplate','ck-user__notification','ck\x20ck-user__name','avatar','ck-user__img','isAnonymous','name','ck-user_me','ck-user__anonymous','isMe','div','push','url(\x27'];(function(_0x318222,_0x5ef89a){const _0x2e1d1d=function(_0x376792){while(--_0x376792){_0x318222['push'](_0x318222['shift']());}};_0x2e1d1d(++_0x5ef89a);}(_0x5ef8,0x134));const _0x2e1d=function(_0x318222,_0x5ef89a){_0x318222=_0x318222-0x0;let _0x2e1d1d=_0x5ef8[_0x318222];return _0x2e1d1d;};import{View as _0xf42595,IconView as _0x180b79}from'ckeditor5/src/ui.js';import _0x2f3078 from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class E extends _0xf42595{constructor(_0x452478,_0x157cc6,_0xa1d204){super(_0x452478),this[_0x2e1d('0x5')]=_0x157cc6[_0x2e1d('0x5')],this[_0x2e1d('0xe')]=null;const _0x406a7a=['ck','ck-user'],_0x5067bd=['ck',_0x2e1d('0x3')];if(_0x157cc6[_0x2e1d('0x4')]&&_0x5067bd[_0x2e1d('0xa')](_0x2e1d('0x7')),!_0x157cc6[_0x2e1d('0x4')]&&_0x157cc6[_0x2e1d('0x8')]&&_0x406a7a['push'](_0x2e1d('0x6')),_0x157cc6[_0x2e1d('0x2')]&&_0x5067bd['push']('ck-user__avatar'),_0xa1d204){const _0x3f9215=new _0x180b79();_0x3f9215[_0x2e1d('0xf')]({'attributes':{'class':['ck-user__icon']}}),_0x3f9215['content']=_0x2f3078,this[_0x2e1d('0xe')]={'tag':'div','attributes':{'class':['ck',_0x2e1d('0x0')],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0xa1d204},'children':[_0x3f9215]};}const _0x4f22d8=[{'tag':_0x2e1d('0x9'),'attributes':{'class':_0x5067bd,'style':{'background-image':_0x157cc6[_0x2e1d('0x2')]?_0x2e1d('0xb')+_0x157cc6[_0x2e1d('0x2')]+'\x27)':''}}},{'tag':_0x2e1d('0x9'),'attributes':{'class':_0x157cc6[_0x2e1d('0x2')]?_0x2e1d('0xc'):_0x2e1d('0x1')},'children':[{'text':_0x157cc6['initials']}]}];this[_0x2e1d('0xe')]&&_0x4f22d8[_0x2e1d('0xa')](this['notificationView']),this[_0x2e1d('0xd')]({'tag':_0x2e1d('0x9'),'attributes':{'class':_0x406a7a,'data-user-id':_0x157cc6['id']},'children':_0x4f22d8});}}
|
package/src/users.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x1c7b=['trial-license-key-reached-limit-time','trim','color','users','users-me-already-defined','getSelectionClass','name','_licenseKeyCheckInterval','licenseKeyTrialLimit:time','ck-user__selection--','invalid-license-key','context','_id','get','getUser','defineMe','users.colorsCount','licenseKeyValid','_myId','decorate','string','trial-license-key-reached-limit-changes','charAt','addUser','licenseKeyTrial','Anonymous','_lastColor','toUpperCase','_getNextColor','define','info','_isMe','isAnonymous','length','licenseKeyTrialLimit:revisions','config','isMe','_getInitial','_locale','users.anonymousUserId','includes','getMarkerClass','users-add-invalid-id','pluginName','add','useAnonymousUser','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.','Users','split','licenseKeyInvalid','destroy','licenseKeyTrialLimit:operations','_isAnonymous','ck-user__bg-color--','has','getBackgroundColorClass','getOperationAuthor','anonymous-user','_addAnonymousUser'];(function(_0x3c9944,_0x1c7b83){const _0x24b263=function(_0x3f34d1){while(--_0x3f34d1){_0x3c9944['push'](_0x3c9944['shift']());}};_0x24b263(++_0x1c7b83);}(_0x1c7b,0x162));const _0x24b2=function(_0x3c9944,_0x1c7b83){_0x3c9944=_0x3c9944-0x0;let _0x24b263=_0x1c7b[_0x3c9944];return _0x24b263;};import{ContextPlugin as _0x16bd99}from'ckeditor5/src/core.js';import{Collection as _0x2efcd9,CKEditorError as _0x381d43}from'ckeditor5/src/utils.js';import _0x52cdec from'./permissions.js';import{getTranslation as _0x18a476}from'./utils/common-translations.js';import'../theme/usercolors.css';export default class l extends _0x16bd99{static get[_0x24b2('0x2b')](){return _0x24b2('0x2f');}static get['requires'](){return[_0x52cdec];}constructor(_0x1673b4){super(_0x1673b4),this[_0x24b2('0xb')][_0x24b2('0x23')]['define']('users.anonymousUserId',_0x24b2('0x39')),this[_0x24b2('0xb')][_0x24b2('0x23')][_0x24b2('0x1d')]('users.colorsCount',0x8),this[_0x24b2('0x3')]=new _0x2efcd9(),this['_locale']=_0x1673b4['locale'],this[_0x24b2('0x7')]=null,this[_0x24b2('0x1a')]=0x0,this['_myId']=null,this[_0x24b2('0x13')](_0x24b2('0x38'));}['init'](){const _0x109c7a=this[_0x24b2('0xb')];this['licenseKey']=_0x109c7a['config'][_0x24b2('0xd')]('licenseKey');const _0x26c107=['licenseKeyTrial',_0x24b2('0x31'),_0x24b2('0x11'),_0x24b2('0x33'),'licenseKeyTrialLimit:time',_0x24b2('0x22')];this[_0x24b2('0x7')]=setInterval(()=>{let _0x202d21;for(const _0x22d52f in _0x109c7a){const _0x5956c5=_0x109c7a[_0x22d52f];if(_0x26c107[_0x24b2('0x28')](_0x5956c5)){delete _0x109c7a[_0x22d52f],_0x202d21=_0x5956c5;break;}}if(_0x24b2('0x31')===_0x202d21)throw clearInterval(this[_0x24b2('0x7')]),new _0x381d43(_0x24b2('0xa'),null);if(_0x24b2('0x18')===_0x202d21&&console[_0x24b2('0x1e')](_0x24b2('0x2e')),_0x24b2('0x33')===_0x202d21)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x381d43(_0x24b2('0x15'),null);if(_0x24b2('0x8')===_0x202d21)throw clearInterval(this[_0x24b2('0x7')]),new _0x381d43(_0x24b2('0x0'),null);if(_0x24b2('0x22')===_0x202d21)throw clearInterval(this[_0x24b2('0x7')]),new _0x381d43('trial-license-key-reached-limit-revisions',null);_0x24b2('0x11')===_0x202d21&&clearInterval(this[_0x24b2('0x7')]);},0x3e8),this['_addAnonymousUser']();}get['me'](){return null==this[_0x24b2('0x12')]?null:this[_0x24b2('0xe')](this[_0x24b2('0x12')]);}[_0x24b2('0x17')]({id:_0x36edde,name:_0x53e42c,..._0x59b5ea}){if(!_0x36edde||_0x24b2('0x14')!=typeof _0x36edde)throw new _0x381d43(_0x24b2('0x2a'));if(this[_0x24b2('0x3')][_0x24b2('0x36')](_0x36edde))throw new _0x381d43('users-add-duplicated-id',null,{'id':_0x36edde});const _0x271a04={..._0x59b5ea,'id':_0x36edde,'name':a(this[_0x24b2('0x26')],_0x53e42c),'color':this[_0x24b2('0x1c')]()};_0x271a04[_0x24b2('0x6')]=a(this[_0x24b2('0x26')],_0x271a04[_0x24b2('0x6')]);const _0xe4cc7e=new User(_0x271a04);return this[_0x24b2('0x3')][_0x24b2('0x2c')](_0xe4cc7e),_0xe4cc7e;}[_0x24b2('0xe')](_0x41ea5c){return this['users'][_0x24b2('0xd')](_0x41ea5c);}[_0x24b2('0x2d')](){const _0x6978c5=this['context'][_0x24b2('0x23')][_0x24b2('0xd')](_0x24b2('0x27'));this[_0x24b2('0x12')]||this[_0x24b2('0xf')](_0x6978c5);}['defineMe'](_0x4ee003){if(this[_0x24b2('0x12')])throw new _0x381d43(_0x24b2('0x4'),null);const _0x1f2302=this[_0x24b2('0xe')](_0x4ee003);if(!_0x1f2302)throw new _0x381d43('users-me-missing-user',null);this['_myId']=_0x4ee003,_0x1f2302[_0x24b2('0x1f')]=!0x0;}[_0x24b2('0x38')](){return this['me'];}[_0x24b2('0x32')](){super['destroy'](),clearInterval(this[_0x24b2('0x7')]);}['_getNextColor'](){const _0x200cbe=this[_0x24b2('0xb')][_0x24b2('0x23')][_0x24b2('0xd')](_0x24b2('0x10'));return this[_0x24b2('0x1a')]>=_0x200cbe&&(this[_0x24b2('0x1a')]=0x0),new u(this[_0x24b2('0x1a')]++);}[_0x24b2('0x3a')](){const _0x45f50b=this[_0x24b2('0xb')][_0x24b2('0x23')][_0x24b2('0xd')](_0x24b2('0x27'));this[_0x24b2('0x17')]({'id':_0x45f50b,'name':_0x18a476(this['_locale'],_0x24b2('0x19'))})[_0x24b2('0x34')]=!0x0;}}export class User{constructor(_0x540d09){this['id']=_0x540d09['id'],this['color']=_0x540d09[_0x24b2('0x2')],this[_0x24b2('0x6')]=_0x540d09['name'],this['avatar']=_0x540d09['avatar'],this[_0x24b2('0x34')]=!0x1,this[_0x24b2('0x1f')]=!0x1;}get[_0x24b2('0x20')](){return this['_isAnonymous'];}get[_0x24b2('0x24')](){return this['_isMe'];}get['initials'](){const _0x4c6393=this[_0x24b2('0x6')][_0x24b2('0x30')]('\x20');return 0x1===_0x4c6393[_0x24b2('0x21')]?this[_0x24b2('0x25')](_0x4c6393[0x0]):this[_0x24b2('0x25')](_0x4c6393[0x0])+this[_0x24b2('0x25')](_0x4c6393[_0x4c6393[_0x24b2('0x21')]-0x1]);}[_0x24b2('0x25')](_0x51c174){return _0x51c174[_0x24b2('0x16')](0x0)[_0x24b2('0x1b')]();}}function a(_0x2f018f,_0x31572a=''){return''==(_0x31572a=_0x31572a[_0x24b2('0x1')]())?_0x18a476(_0x2f018f,_0x24b2('0x19')):_0x31572a;}class u{constructor(_0x428bdd){this['_id']=_0x428bdd;}[_0x24b2('0x37')](){return _0x24b2('0x35')+this[_0x24b2('0xc')];}[_0x24b2('0x5')](){return _0x24b2('0x9')+this[_0x24b2('0xc')];}[_0x24b2('0x29')](){return'ck-user__marker--'+this[_0x24b2('0xc')];}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
export function getTranslation(
|
23
|
+
export function getTranslation(_0x3fd8ec,_0x42e07e){const t=_0x3fd8ec['t'];switch(_0x42e07e){case'Anonymous':return t('Anonymous');case'Yes':return t('Yes');case'No':return t('No');case'Are\x20you\x20sure?':return t('Are\x20you\x20sure?');default:return'';}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
var
|
23
|
+
var _0x21f3=['deregisterChild','once','submit','_removeConfirm','locale','render','registerChild','cancel','appendChild','focus','showConfirm','message','element','cancelConfirm','confirmView','fire','remove','isConfirm'];(function(_0x36eb25,_0x21f303){var _0x3348ea=function(_0x343517){while(--_0x343517){_0x36eb25['push'](_0x36eb25['shift']());}};_0x3348ea(++_0x21f303);}(_0x21f3,0x14a));var _0x3348=function(_0x36eb25,_0x21f303){_0x36eb25=_0x36eb25-0x0;var _0x3348ea=_0x21f3[_0x36eb25];return _0x3348ea;};import _0x51f21c from'./confirmview.js';export default function m(_0x4aca38){return class extends _0x4aca38{[_0x3348('0x4')](_0x5f2e6f,_0x45a12f){return this[_0x3348('0x8')]=new _0x51f21c(this[_0x3348('0x10')]),this[_0x3348('0x8')][_0x3348('0x11')](),this[_0x3348('0x8')][_0x3348('0x5')]=_0x5f2e6f,this['confirmView'][_0x3348('0xd')](_0x3348('0x1'),()=>{this['_removeConfirm']();}),this[_0x3348('0x8')][_0x3348('0xd')]('submit',()=>{this[_0x3348('0xf')]();}),_0x45a12f[_0x3348('0x2')](this[_0x3348('0x8')][_0x3348('0x6')]),this[_0x3348('0x0')](this[_0x3348('0x8')]),this[_0x3348('0x6')][_0x3348('0x3')](),this['set'](_0x3348('0xb'),!0x0),new Promise(_0xd73b35=>this[_0x3348('0x8')]['on'](_0x3348('0xe'),_0xd73b35));}[_0x3348('0x7')](){this['isConfirm']&&this['confirmView'][_0x3348('0x9')]('cancel');}['_removeConfirm'](){this[_0x3348('0x6')]&&this['confirmView']&&this[_0x3348('0x8')]['element']&&(this[_0x3348('0x6')][_0x3348('0x3')](),this['confirmView'][_0x3348('0x6')][_0x3348('0xa')](),this[_0x3348('0xc')](this[_0x3348('0x8')]),this[_0x3348('0xb')]=!0x1,this[_0x3348('0x8')]['destroy'](),this[_0x3348('0x8')]=void 0x0);}};}
|
package/src/utils/confirmview.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x5cc0=['check','_createButtonView','submitView','ck-thread__remove-confirm','cancel','message','bindTemplate','icon','set','ck-thread__remove-confirm-inner','extendTemplate','label','Are\x20you\x20sure?','ck-thread__remove-confirm-actions','fire','div','setTemplate','submit','cancelView'];(function(_0x24368c,_0x5cc0c6){const _0x41f63a=function(_0x4de8a8){while(--_0x4de8a8){_0x24368c['push'](_0x24368c['shift']());}};_0x41f63a(++_0x5cc0c6);}(_0x5cc0,0xfc));const _0x41f6=function(_0x24368c,_0x5cc0c6){_0x24368c=_0x24368c-0x0;let _0x41f63a=_0x5cc0[_0x24368c];return _0x41f63a;};import{View as _0x3a3191,ButtonView as _0x415a37}from'ckeditor5/src/ui.js';import{icons as _0x43d9d3}from'ckeditor5/src/core.js';import{getTranslation as _0x220cf7}from'./common-translations.js';export default class h extends _0x3a3191{constructor(_0x315853){super(_0x315853);const _0x39ca8f=this[_0x41f6('0x1')];this[_0x41f6('0x10')]=this[_0x41f6('0xf')](_0x315853,_0x220cf7(_0x315853,'Yes'),_0x43d9d3[_0x41f6('0xe')],_0x41f6('0xc')),this[_0x41f6('0xd')]=this[_0x41f6('0xf')](_0x315853,_0x220cf7(_0x315853,'No'),_0x43d9d3[_0x41f6('0x12')],_0x41f6('0x12')),this[_0x41f6('0x3')](_0x41f6('0x0'),_0x220cf7(_0x315853,_0x41f6('0x7'))),this[_0x41f6('0xb')]({'tag':_0x41f6('0xa'),'attributes':{'class':[_0x41f6('0x11')]},'children':[{'tag':_0x41f6('0xa'),'attributes':{'class':_0x41f6('0x4')},'children':[{'tag':'p','children':[{'text':_0x39ca8f['to'](_0x41f6('0x0'))}]},{'tag':_0x41f6('0xa'),'attributes':{'class':_0x41f6('0x8')},'children':[this['submitView'],this['cancelView']]}]}]});}[_0x41f6('0xf')](_0x44e87b,_0x360936,_0x10d16d,_0x31b68e){const _0x4d4c00=new _0x415a37(_0x44e87b);return _0x4d4c00[_0x41f6('0x6')]=_0x360936,_0x4d4c00[_0x41f6('0x2')]=_0x10d16d,_0x4d4c00[_0x41f6('0x5')]({'attributes':{'class':'ck-thread__remove-confirm-'+_0x31b68e}}),_0x4d4c00['on']('execute',()=>this[_0x41f6('0x9')](_0x31b68e)),_0x4d4c00;}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x279a=['invalid-date-time-format','\x27Last\x27\x20EEEE\x20hh:mma','string','dateTimeFormat'];(function(_0x4d1c64,_0x279a6c){const _0x58d6f7=function(_0x5ee3ff){while(--_0x5ee3ff){_0x4d1c64['push'](_0x4d1c64['shift']());}};_0x58d6f7(++_0x279a6c);}(_0x279a,0x1a8));const _0x58d6=function(_0x4d1c64,_0x279a6c){_0x4d1c64=_0x4d1c64-0x0;let _0x58d6f7=_0x279a[_0x4d1c64];return _0x58d6f7;};import _0x5c3692 from'date-fns/format/index.js';import _0x2e0cb5 from'date-fns/parseISO/index.js';import _0x577694 from'date-fns/differenceInCalendarDays/index.js';import{CKEditorError as _0x56c150}from'ckeditor5/src/utils.js';export default function j(_0x44c306={}){if(void 0x0!==_0x44c306['dateTimeFormat']&&'function'!=typeof _0x44c306['dateTimeFormat'])throw new _0x56c150(_0x58d6('0x0'));return _0x9fc9c4=>{const _0x33d343=_0x58d6('0x2')==typeof _0x9fc9c4?_0x2e0cb5(_0x9fc9c4):_0x9fc9c4,_0x334a70=new Date(),_0x494667=_0x577694(_0x334a70,_0x33d343);return _0x44c306[_0x58d6('0x3')]?_0x44c306[_0x58d6('0x3')](_0x33d343):_0x5c3692(_0x33d343,0x0===_0x494667?'\x27Today\x27\x20hh:mma':0x1===_0x494667?'\x27Yesterday\x27\x20hh:mma':_0x494667<0x7?_0x58d6('0x1'):'MM-dd-yyyy\x20hh:mma');};}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x2db9=['domConverter','domElement','item','push','mapViewToDom','name','map','filter','mapper','markerNameToElements','from','view','length','sort'];(function(_0x2654d8,_0x2db970){const _0x3ade5d=function(_0x14518f){while(--_0x14518f){_0x2654d8['push'](_0x2654d8['shift']());}};_0x3ade5d(++_0x2db970);}(_0x2db9,0x105));const _0x3ade=function(_0x2654d8,_0x2db970){_0x2654d8=_0x2654d8-0x0;let _0x3ade5d=_0x2db9[_0x2654d8];return _0x3ade5d;};import{first as _0x3de7f3}from'ckeditor5/src/utils.js';export default function k(_0x5d69b2,_0x4742ed){const _0x24ae6b=_0x5d69b2[_0x3ade('0xd')][_0x3ade('0x0')](_0x4742ed['name']);if(!_0x24ae6b)return null;const _0xa7b631=_0x3de7f3(_0x24ae6b['values']());return _0x5d69b2[_0x3ade('0x2')][_0x3ade('0x5')][_0x3ade('0x9')](_0xa7b631)||null;}export function getAllMarkersDomElementsSorted(_0x21dbf6,_0x5422d9){if(0x0===_0x5422d9[_0x3ade('0x3')])return null;const _0x19b3c5=[],_0x554606=_0x21dbf6[_0x3ade('0x2')][_0x3ade('0x5')];for(const _0x1df89c of _0x5422d9){const _0x21fe2f=_0x21dbf6[_0x3ade('0xd')][_0x3ade('0x0')](_0x1df89c[_0x3ade('0xa')]);if(!_0x21fe2f)continue;const _0x2955ca=Array[_0x3ade('0x1')](_0x21fe2f)[_0x3ade('0xb')](_0x365257=>_0x554606[_0x3ade('0x9')](_0x365257))[_0x3ade('0xc')](_0x14dc14=>!!_0x14dc14);_0x19b3c5[_0x3ade('0x8')](..._0x2955ca);}if(0x0===_0x19b3c5[_0x3ade('0x3')])return null;const _0x4b73f2=[];for(const _0xa1c413 of _0x19b3c5){const _0x34af40=_0xa1c413['getClientRects']()[_0x3ade('0x7')](0x0);_0x34af40&&_0x4b73f2[_0x3ade('0x8')]({'x':_0x34af40['x'],'y':_0x34af40['y'],'domElement':_0xa1c413});}return 0x0===_0x4b73f2[_0x3ade('0x3')]?null:(_0x4b73f2[_0x3ade('0x4')]((_0x521f09,_0x5101ee)=>_0x521f09['y']-_0x5101ee['y']||_0x521f09['x']-_0x5101ee['x']),_0x4b73f2[_0x3ade('0xb')](_0x1793b5=>_0x1793b5[_0x3ade('0x6')]));}
|
package/src/utils/hashobject.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x1155=['sign','string','isArray','toString','number'];(function(_0x21bf6b,_0x11559c){const _0x3950bb=function(_0x4c8cdd){while(--_0x4c8cdd){_0x21bf6b['push'](_0x21bf6b['shift']());}};_0x3950bb(++_0x11559c);}(_0x1155,0xf1));const _0x3950=function(_0x21bf6b,_0x11559c){_0x21bf6b=_0x21bf6b-0x0;let _0x3950bb=_0x1155[_0x21bf6b];return _0x3950bb;};export default function b(_0x2f5f2e){let _0x4a982b=0x0,_0x3a2905=0x0;for(const _0x42680d of A(_0x2f5f2e))_0x4a982b=(_0x4a982b<<0x5)-_0x4a982b+_0x42680d,_0x4a982b&=_0x4a982b,[_0x4a982b,_0x3a2905]=[_0x3a2905,_0x4a982b];return q(_0x4a982b)+q(_0x3a2905);}function*g(_0x8228dc){null==_0x8228dc||null==_0x8228dc?yield 0x12b9b0a1:0x0===_0x8228dc||!0x1===_0x8228dc?yield 0x0:0x1===_0x8228dc||0x1==_0x8228dc?yield 0x1:Array[_0x3950('0x1')](_0x8228dc)?yield*function*(_0x129ac8){for(const _0x615ea0 of _0x129ac8)yield*g(_0x615ea0);}(_0x8228dc):'object'==typeof _0x8228dc?yield*A(_0x8228dc):_0x3950('0x0')==typeof _0x8228dc?yield*M(_0x8228dc):_0x3950('0x3')==typeof _0x8228dc&&(yield _0x8228dc);}function*A(_0x39b3d6){if(yield O('{'),_0x39b3d6){const _0x20af5e=Object['keys'](_0x39b3d6)['sort']();for(const _0x1aec8b of _0x20af5e){yield*M(_0x1aec8b),yield O(':');const _0x941dd9=_0x39b3d6[_0x1aec8b];yield*g(_0x941dd9);}}yield O('}');}function*M(_0x2e29fc){yield O('\x22');for(const _0x32c49d of _0x2e29fc)yield O(_0x32c49d);yield O('\x22');}function O(_0x1db225){return _0x1db225['charCodeAt'](0x0);}function q(_0x13304b){return(_0x13304b*=Math[_0x3950('0x4')](_0x13304b))[_0x3950('0x2')](0x24);}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x5b73=['plugins','has','set','WordCount','map','find','pluginName','context','toolbar','length','WebSocketGateway','get','string','builtinPlugins','name','DocumentOutline','constructor','_context','Autosave','includes','requires','config','removePlugins','concat','extraPlugins','from','WProofreader','RevisionTracker'];(function(_0x666509,_0x5b7370){const _0x357439=function(_0x3b0d63){while(--_0x3b0d63){_0x666509['push'](_0x666509['shift']());}};_0x357439(++_0x5b7370);}(_0x5b73,0x7e));const _0x3574=function(_0x666509,_0x5b7370){_0x666509=_0x666509-0x0;let _0x357439=_0x5b73[_0x666509];return _0x357439;};const w=['initialData',_0x3574('0x15'),_0x3574('0x16'),'rootsAttributes'],W=[_0x3574('0x18'),_0x3574('0xd'),_0x3574('0x4'),_0x3574('0x11'),_0x3574('0x1'),_0x3574('0xc')];function v(_0x1c6037,_0x5bd463,_0x389921,_0x581a68=[]){const _0x2e071b=_0x3574('0x1a')==typeof _0x1c6037?_0x389921[_0x3574('0x19')](_0x1c6037)[_0x3574('0x2')]:_0x1c6037,_0x21cc2c=_0x2e071b[_0x3574('0x14')]||_0x2e071b[_0x3574('0x0')];if(_0x5bd463[_0x3574('0xf')](_0x21cc2c))return _0x5bd463[_0x3574('0x19')](_0x21cc2c);if(_0x5bd463[_0x3574('0x10')](_0x21cc2c,!0x0),_0x21cc2c&&W['concat'](_0x581a68)[_0x3574('0x5')](_0x21cc2c))return _0x5bd463[_0x3574('0x10')](_0x21cc2c,!0x1),!0x1;if(!_0x2e071b[_0x3574('0x6')])return _0x5bd463[_0x3574('0x10')](_0x21cc2c,!0x0),!0x0;const _0xe34cd6=_0x2e071b[_0x3574('0x6')]['every'](_0x14be88=>v(_0x14be88,_0x5bd463,_0x389921,_0x581a68));return _0x5bd463[_0x3574('0x10')](_0x21cc2c,_0xe34cd6),_0xe34cd6;}export default function D(_0xdd7da5,_0x45a5ba){const _0x5008e1={};for(const _0x155e13 of _0xdd7da5[_0x3574('0x7')]['names']())w[_0x3574('0x5')](_0x155e13)||(_0x5008e1[_0x155e13]=_0xdd7da5['config'][_0x3574('0x19')](_0x155e13));const _0x4b61a8=_0x5008e1['plugins']||[],_0x1ca832=_0xdd7da5[_0x3574('0x2')][_0x3574('0x1b')]||[],_0x11cb69=_0x4b61a8[_0x3574('0x17')]?_0x4b61a8:_0x1ca832,_0x1d5887=_0x5008e1[_0x3574('0xa')]||[];delete _0x5008e1[_0x3574('0xa')];const _0x4e94be=_0x5008e1[_0x3574('0x8')]||[];delete _0x5008e1[_0x3574('0x8')];const _0x16021b=_0xdd7da5[_0x3574('0x3')]['config'][_0x3574('0x19')](_0x3574('0xe'))||[],_0xede2b9=_0x11cb69[_0x3574('0x9')](_0x1d5887)[_0x3574('0x9')](_0x16021b)[_0x3574('0x12')](_0x10ff92=>_0x3574('0x1a')==typeof _0x10ff92?_0x1ca832[_0x3574('0x13')](_0x267034=>_0x267034[_0x3574('0x14')]==_0x10ff92):_0x10ff92)['filter'](_0x3ec7f2=>!_0x4e94be[_0x3574('0x5')](_0x3ec7f2)&&!_0x4e94be['includes'](_0x3ec7f2[_0x3574('0x14')])),_0x153005=Array[_0x3574('0xb')](new Set(_0xede2b9)),_0x5a2a24=new Map();return _0x5008e1[_0x3574('0xe')]=_0x153005['filter'](_0x1fd2d8=>v(_0x1fd2d8,_0x5a2a24,_0xdd7da5['plugins'],_0x45a5ba)),_0x5008e1;}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0xd3d1=['document','start','getRange','containsPosition','focus','selection','end','isEqual','change:range','push','length'];(function(_0x2ddab0,_0xd3d17a){const _0x40373a=function(_0x1b3b74){while(--_0x1b3b74){_0x2ddab0['push'](_0x2ddab0['shift']());}};_0x40373a(++_0xd3d17a);}(_0xd3d1,0x124));const _0x4037=function(_0x2ddab0,_0xd3d17a){_0x2ddab0=_0x2ddab0-0x0;let _0x40373a=_0xd3d1[_0x2ddab0];return _0x40373a;};export default function z(_0x2bcbcf,_0x48836c){const _0x4a32b8=[];_0x2bcbcf[_0x4037('0x5')][_0x4037('0xa')]['on'](_0x4037('0x2'),()=>{const _0x4cd5ca=function(_0xdc7626,_0x118219){const _0x27ce74=[];for(const _0x58960b of _0xdc7626['markers']){const _0x4ec1c9=_0x58960b[_0x4037('0x7')]();(_0x4ec1c9[_0x4037('0x8')](_0x118219)||_0x4ec1c9[_0x4037('0x6')]['isEqual'](_0x118219)||_0x4ec1c9[_0x4037('0x0')][_0x4037('0x1')](_0x118219))&&_0x27ce74[_0x4037('0x3')](_0x58960b);}return _0x27ce74;}(_0x2bcbcf,_0x2bcbcf[_0x4037('0x5')][_0x4037('0xa')][_0x4037('0x9')]),_0x4a57fc=[],_0x41b142=[],_0x5c0e3e=[];for(const _0x5c1e04 of _0x4a32b8)_0x4cd5ca['includes'](_0x5c1e04)||_0x4a57fc[_0x4037('0x3')](_0x5c1e04);for(const _0x4ad265 of _0x4cd5ca)_0x4a32b8['includes'](_0x4ad265)||_0x41b142['push'](_0x4ad265),_0x5c0e3e[_0x4037('0x3')](_0x4ad265);(_0x4a57fc['length']||_0x41b142[_0x4037('0x4')])&&_0x48836c({'left':_0x4a57fc,'entered':_0x41b142}),_0x4a32b8[_0x4037('0x4')]=0x0,_0x4a32b8[_0x4037('0x3')](..._0x5c0e3e);});}
|
package/src/utils/trim-html.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x1bba=['length','split','replace','slice','join','substring','match','push','indexOf','startsWith'];(function(_0x162bd1,_0x1bbaae){const _0x15cfbf=function(_0x41a915){while(--_0x41a915){_0x162bd1['push'](_0x162bd1['shift']());}};_0x15cfbf(++_0x1bbaae);}(_0x1bba,0xc1));const _0x15cf=function(_0x162bd1,_0x1bbaae){_0x162bd1=_0x162bd1-0x0;let _0x15cfbf=_0x1bba[_0x162bd1];return _0x15cfbf;};export default function Z(_0x1add40,{limit:_0xa82db1,suffix:_0x62182e='...'}){const _0x39bdac=[];let _0x4b969b=0x0;const _0x4f0ee9=_0x1add40[_0x15cf('0x9')](/</g,'\x0a<')[_0x15cf('0x9')](/>/g,'>\x0a')[_0x15cf('0x9')](/^\n/g,'')['replace'](/\n$/g,'')[_0x15cf('0x8')]('\x0a');for(let _0x4e3aea=0x0;_0x4e3aea<_0x4f0ee9[_0x15cf('0x7')];_0x4e3aea++){let _0x18540c=_0x4f0ee9[_0x4e3aea];const _0x19e1d5=$(_0x18540c);if(_0x18540c['startsWith']('<')){if(_0x4b969b>=_0xa82db1){const _0x5a4139=_0x18540c[_0x15cf('0x3')](/[a-zA-Z]+/);if(!_0x5a4139){_0x4f0ee9[_0x4e3aea]='';continue;}const _0x5992e1=_0x5a4139[0x0];_0x18540c[_0x15cf('0x6')]('</')?(_0x39bdac['length']&&(_0x18540c=''),_0x39bdac['pop']()):(_0x39bdac['push'](_0x5992e1),_0x18540c='');}}else{if(_0x4b969b>=_0xa82db1)_0x18540c='';else{if(_0x4b969b+_0x19e1d5[_0x15cf('0x7')]>=_0xa82db1){let _0x140f92=_0xa82db1-_0x4b969b;if('\x20'===_0x19e1d5[_0x140f92-0x1])_0x140f92--;else{const _0x987ebd=_0x19e1d5[_0x15cf('0x0')](_0x140f92)[_0x15cf('0x5')]('\x20');-0x1!==_0x987ebd?_0x140f92+=_0x987ebd:_0x140f92=_0x18540c[_0x15cf('0x7')];}_0x18540c=_0x19e1d5[_0x15cf('0x0')](0x0,_0x140f92)[_0x15cf('0x1')]('')+_0x62182e,_0x4b969b=_0xa82db1;}else _0x4b969b+=_0x19e1d5['length'];}}_0x4f0ee9[_0x4e3aea]=_0x18540c;}return _0x4f0ee9[_0x15cf('0x1')]('\x0a')[_0x15cf('0x9')](/\n/g,'');}function $(_0x34080f){const _0x1d37b7=[];for(let _0x12a5b4=0x0;_0x12a5b4<_0x34080f[_0x15cf('0x7')];_0x12a5b4++){const _0x1ac6a3=_0x34080f[_0x15cf('0x2')](_0x12a5b4)[_0x15cf('0x3')](/^&[a-z0-9#]+;/);if(_0x1ac6a3){const _0x22f4eb=_0x1ac6a3[0x0];_0x1d37b7[_0x15cf('0x4')](_0x22f4eb),_0x12a5b4+=_0x22f4eb[_0x15cf('0x7')]-0x1;}else _0x1d37b7['push'](_0x34080f[_0x12a5b4]);}return _0x1d37b7;}
|
package/theme/users.css
CHANGED
@@ -28,12 +28,12 @@
|
|
28
28
|
width: var(--ck-user-avatar-size);
|
29
29
|
min-width: var(--ck-user-avatar-size);
|
30
30
|
min-height: var(--ck-user-avatar-size);
|
31
|
-
overflow: hidden;
|
32
31
|
line-height: 100%;
|
32
|
+
margin: 2px;
|
33
33
|
|
34
34
|
&.ck-user_me {
|
35
35
|
border: 2px solid var(--ck-user-me-border-color);
|
36
|
-
|
36
|
+
outline: 2px solid var(--ck-user-avatar-background);
|
37
37
|
}
|
38
38
|
}
|
39
39
|
|