@ckeditor/ckeditor5-collaboration-core 0.0.0-nightly-20240128.0 → 0.0.0-nightly-20240130.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/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-20240130.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-20240130.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 _0x5175=['plugins','no-permissions','comment:modify_all','comment:write','CommentsOnly','disableReadOnlyMode','document:write','Permissions','addCommentThread','context','setPermissions','enableReadOnlyMode','comment:admin','collaboration.channelId','forceDisabled','editors','noPermissions','pluginName','get','includes','config','find','clearForceDisabled','CommentsRepository','has'];(function(_0x217cbe,_0x51758b){const _0x33415d=function(_0x1d17c5){while(--_0x1d17c5){_0x217cbe['push'](_0x217cbe['shift']());}};_0x33415d(++_0x51758b);}(_0x5175,0xf0));const _0x3341=function(_0x217cbe,_0x51758b){_0x217cbe=_0x217cbe-0x0;let _0x33415d=_0x5175[_0x217cbe];return _0x33415d;};import{ContextPlugin as _0xda4e70,Editor as _0x2ccaaf}from'ckeditor5/src/core.js';import{CKEditorError as _0x1b91ab}from'ckeditor5/src/utils.js';export default class n extends _0xda4e70{static get[_0x3341('0x2')](){return _0x3341('0x11');}['setPermissions'](_0x559482,_0x1a7039){let _0x417d06;if(_0x1a7039||(_0x1a7039=this[_0x3341('0x13')]['config']['get']('collaboration.channelId')),this[_0x3341('0x13')][_0x3341('0x5')][_0x3341('0x3')](_0x3341('0x17'))==_0x1a7039?_0x417d06=this['context']:_0x3341('0x0')in this[_0x3341('0x13')]&&this[_0x3341('0x13')][_0x3341('0x0')]&&(_0x417d06=this[_0x3341('0x13')]['editors'][_0x3341('0x6')](_0x575138=>_0x575138[_0x3341('0x5')][_0x3341('0x3')]('collaboration.channelId')==_0x1a7039)),!_0x417d06)throw new _0x1b91ab('permissions-set-permissions-invalid-channel-id',null);const _0x5ed2ca=_0x417d06[_0x3341('0xa')],_0x5eeda3=_0x5ed2ca[_0x3341('0x9')](_0x3341('0x8'))?_0x5ed2ca['get']('CommentsRepository'):void 0x0,_0x50c49e=_0x5ed2ca[_0x3341('0x9')](_0x3341('0xe'))&&_0x5ed2ca[_0x3341('0x3')](_0x3341('0xe')),_0x86390f=_0x559482['includes'](_0x3341('0x10')),_0x1673fd=_0x559482['includes'](_0x3341('0xc')),_0x191708=_0x559482[_0x3341('0x4')](_0x3341('0x16')),_0x129666=_0x559482[_0x3341('0x4')](_0x3341('0xd')),_0x221980=_0x129666||_0x191708,_0x2bc86f=_0x221980||_0x1673fd,_0x9bfe3e=_0x86390f||_0x221980;(_0x50c49e&&(_0x50c49e['isEnabled']=!_0x86390f&&_0x2bc86f),_0x417d06 instanceof _0x2ccaaf)&&(!(_0x86390f||_0x2bc86f&&_0x5eeda3)?_0x417d06[_0x3341('0x15')](_0x3341('0xb')):_0x417d06[_0x3341('0xf')](_0x3341('0xb')));if(_0x5eeda3){_0x5eeda3[_0x3341('0x14')]({'admin':_0x191708,'modifyAll':_0x1673fd,'write':_0x129666,'resolve':_0x9bfe3e},_0x1a7039);const _0x1d07fb=_0x417d06 instanceof _0x2ccaaf&&_0x417d06['commands']['get'](_0x3341('0x12'));_0x1d07fb&&(_0x221980?_0x1d07fb[_0x3341('0x7')]('noPermissions'):_0x1d07fb[_0x3341('0x18')](_0x3341('0x1')));}}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x4268=['isAnonymous','div','ck-user__anonymous','ck\x20ck-user__name','setTemplate','ck\x20ck-user__name\x20ck-user__name--hidden','name','ck-user__img','url(\x27','ck-user','notificationView','initials','ck-user__avatar','avatar'];(function(_0x26c81c,_0x42683a){const _0x35c312=function(_0x3e7a4c){while(--_0x3e7a4c){_0x26c81c['push'](_0x26c81c['shift']());}};_0x35c312(++_0x42683a);}(_0x4268,0x107));const _0x35c3=function(_0x26c81c,_0x42683a){_0x26c81c=_0x26c81c-0x0;let _0x35c312=_0x4268[_0x26c81c];return _0x35c312;};import{View as _0xcd7753,IconView as _0x5d6f62}from'ckeditor5/src/ui.js';import _0x40fc55 from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class E extends _0xcd7753{constructor(_0x277fb1,_0xf614a5,_0x55f9ce){super(_0x277fb1),this[_0x35c3('0x9')]=_0xf614a5[_0x35c3('0x9')],this[_0x35c3('0xd')]=null;const _0x1ee27d=['ck',_0x35c3('0xa')];if(_0xf614a5[_0x35c3('0x3')]&&_0x1ee27d['push'](_0x35c3('0x5')),_0xf614a5[_0x35c3('0x2')]&&_0x1ee27d['push'](_0x35c3('0x1')),_0x55f9ce){const _0xd0c8ea=new _0x5d6f62();_0xd0c8ea['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0xd0c8ea['content']=_0x40fc55,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x55f9ce},'children':[_0xd0c8ea]};}const _0x254915=[{'tag':_0x35c3('0x4'),'attributes':{'class':_0x1ee27d,'style':{'background-image':_0xf614a5['avatar']?_0x35c3('0xb')+_0xf614a5[_0x35c3('0x2')]+'\x27)':''}}},{'tag':_0x35c3('0x4'),'attributes':{'class':_0xf614a5['avatar']?_0x35c3('0x8'):_0x35c3('0x6')},'children':[{'text':_0xf614a5[_0x35c3('0x0')]}]}];this[_0x35c3('0xd')]&&_0x254915['push'](this[_0x35c3('0xd')]),this[_0x35c3('0x7')]({'tag':_0x35c3('0x4'),'attributes':{'class':['ck',_0x35c3('0xc')],'data-user-id':_0xf614a5['id']},'children':_0x254915});}}
|
package/src/users.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x1ffe=['users.anonymousUserId','Anonymous','config','info','licenseKeyTrialLimit:operations','_addAnonymousUser','_getNextColor','Users','licenseKeyTrialLimit:revisions','decorate','context','_licenseKeyCheckInterval','getSelectionClass','requires','trim','anonymous-user','getOperationAuthor','name','getBackgroundColorClass','split','users-add-invalid-id','charAt','licenseKeyInvalid','trial-license-key-reached-limit-revisions','destroy','users-me-already-defined','_id','_locale','getUser','define','length','defineMe','color','_getInitial','_lastColor','includes','trial-license-key-reached-limit-time','get','toUpperCase','users-add-duplicated-id','licenseKeyTrial','trial-license-key-reached-limit-changes','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.','licenseKey','init','getMarkerClass','users.colorsCount','add','_myId','locale','has','ck-user__bg-color--','addUser','avatar','_isAnonymous','licenseKeyValid','users'];(function(_0x988487,_0x1ffe43){const _0x5eb0b0=function(_0x14cb9d){while(--_0x14cb9d){_0x988487['push'](_0x988487['shift']());}};_0x5eb0b0(++_0x1ffe43);}(_0x1ffe,0x8c));const _0x5eb0=function(_0x988487,_0x1ffe43){_0x988487=_0x988487-0x0;let _0x5eb0b0=_0x1ffe[_0x988487];return _0x5eb0b0;};import{ContextPlugin as _0x4e8a05}from'ckeditor5/src/core.js';import{Collection as _0x200a45,CKEditorError as _0x365c15}from'ckeditor5/src/utils.js';import _0x104276 from'./permissions.js';import{getTranslation as _0x57b729}from'./utils/common-translations.js';import'../theme/usercolors.css';export default class l extends _0x4e8a05{static get['pluginName'](){return _0x5eb0('0x26');}static get[_0x5eb0('0x2c')](){return[_0x104276];}constructor(_0x5d0c40){super(_0x5d0c40),this['context'][_0x5eb0('0x21')][_0x5eb0('0x3')](_0x5eb0('0x1f'),_0x5eb0('0x2e')),this[_0x5eb0('0x29')][_0x5eb0('0x21')]['define'](_0x5eb0('0x14'),0x8),this['users']=new _0x200a45(),this['_locale']=_0x5d0c40[_0x5eb0('0x17')],this[_0x5eb0('0x2a')]=null,this[_0x5eb0('0x8')]=0x0,this[_0x5eb0('0x16')]=null,this[_0x5eb0('0x28')](_0x5eb0('0x2f'));}[_0x5eb0('0x12')](){const _0x453045=this['context'];this[_0x5eb0('0x11')]=_0x453045[_0x5eb0('0x21')]['get'](_0x5eb0('0x11'));const _0x3fb0e3=[_0x5eb0('0xe'),_0x5eb0('0x35'),_0x5eb0('0x1d'),_0x5eb0('0x23'),'licenseKeyTrialLimit:time','licenseKeyTrialLimit:revisions'];this[_0x5eb0('0x2a')]=setInterval(()=>{let _0x2c7ded;for(const _0x360114 in _0x453045){const _0x4c4309=_0x453045[_0x360114];if(_0x3fb0e3[_0x5eb0('0x9')](_0x4c4309)){delete _0x453045[_0x360114],_0x2c7ded=_0x4c4309;break;}}if('licenseKeyInvalid'===_0x2c7ded)throw clearInterval(this[_0x5eb0('0x2a')]),new _0x365c15('invalid-license-key',null);if(_0x5eb0('0xe')===_0x2c7ded&&console[_0x5eb0('0x22')](_0x5eb0('0x10')),_0x5eb0('0x23')===_0x2c7ded)throw clearInterval(this[_0x5eb0('0x2a')]),new _0x365c15(_0x5eb0('0xf'),null);if('licenseKeyTrialLimit:time'===_0x2c7ded)throw clearInterval(this[_0x5eb0('0x2a')]),new _0x365c15(_0x5eb0('0xa'),null);if(_0x5eb0('0x27')===_0x2c7ded)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x365c15(_0x5eb0('0x36'),null);_0x5eb0('0x1d')===_0x2c7ded&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8),this[_0x5eb0('0x24')]();}get['me'](){return null==this[_0x5eb0('0x16')]?null:this[_0x5eb0('0x2')](this[_0x5eb0('0x16')]);}[_0x5eb0('0x1a')]({id:_0x156105,name:_0x23c929,..._0x1c3e2f}){if(!_0x156105||'string'!=typeof _0x156105)throw new _0x365c15(_0x5eb0('0x33'));if(this['users'][_0x5eb0('0x18')](_0x156105))throw new _0x365c15(_0x5eb0('0xd'),null,{'id':_0x156105});const _0x5f1073={..._0x1c3e2f,'id':_0x156105,'name':a(this[_0x5eb0('0x1')],_0x23c929),'color':this[_0x5eb0('0x25')]()};_0x5f1073[_0x5eb0('0x30')]=a(this[_0x5eb0('0x1')],_0x5f1073['name']);const _0x186480=new User(_0x5f1073);return this[_0x5eb0('0x1e')][_0x5eb0('0x15')](_0x186480),_0x186480;}[_0x5eb0('0x2')](_0x338a86){return this['users'][_0x5eb0('0xb')](_0x338a86);}['useAnonymousUser'](){const _0xaad2a8=this[_0x5eb0('0x29')]['config'][_0x5eb0('0xb')]('users.anonymousUserId');this[_0x5eb0('0x16')]||this[_0x5eb0('0x5')](_0xaad2a8);}['defineMe'](_0x465693){if(this[_0x5eb0('0x16')])throw new _0x365c15(_0x5eb0('0x38'),null);if(!this['getUser'](_0x465693))throw new _0x365c15('users-me-missing-user',null);this[_0x5eb0('0x16')]=_0x465693;}['getOperationAuthor'](){return this['me'];}[_0x5eb0('0x37')](){super['destroy'](),clearInterval(this[_0x5eb0('0x2a')]);}[_0x5eb0('0x25')](){const _0x2b92be=this[_0x5eb0('0x29')][_0x5eb0('0x21')][_0x5eb0('0xb')]('users.colorsCount');return this[_0x5eb0('0x8')]>=_0x2b92be&&(this[_0x5eb0('0x8')]=0x0),new u(this['_lastColor']++);}[_0x5eb0('0x24')](){const _0x52b6ea=this[_0x5eb0('0x29')]['config']['get'](_0x5eb0('0x1f'));this[_0x5eb0('0x1a')]({'id':_0x52b6ea,'name':_0x57b729(this[_0x5eb0('0x1')],_0x5eb0('0x20'))})[_0x5eb0('0x1c')]=!0x0;}}export class User{constructor(_0x325966){this['id']=_0x325966['id'],this[_0x5eb0('0x6')]=_0x325966[_0x5eb0('0x6')],this[_0x5eb0('0x30')]=_0x325966['name'],this['avatar']=_0x325966[_0x5eb0('0x1b')],this[_0x5eb0('0x1c')]=!0x1;}get['isAnonymous'](){return this[_0x5eb0('0x1c')];}get['initials'](){const _0x259c9e=this[_0x5eb0('0x30')][_0x5eb0('0x32')]('\x20');return 0x1===_0x259c9e[_0x5eb0('0x4')]?this['_getInitial'](_0x259c9e[0x0]):this[_0x5eb0('0x7')](_0x259c9e[0x0])+this['_getInitial'](_0x259c9e[_0x259c9e[_0x5eb0('0x4')]-0x1]);}[_0x5eb0('0x7')](_0x2961f5){return _0x2961f5[_0x5eb0('0x34')](0x0)[_0x5eb0('0xc')]();}}function a(_0x4cf232,_0x29fce2=''){return''==(_0x29fce2=_0x29fce2[_0x5eb0('0x2d')]())?_0x57b729(_0x4cf232,_0x5eb0('0x20')):_0x29fce2;}class u{constructor(_0x4e5039){this[_0x5eb0('0x0')]=_0x4e5039;}[_0x5eb0('0x31')](){return _0x5eb0('0x19')+this[_0x5eb0('0x0')];}[_0x5eb0('0x2b')](){return'ck-user__selection--'+this['_id'];}[_0x5eb0('0x13')](){return'ck-user__marker--'+this['_id'];}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
export function getTranslation(
|
23
|
+
export function getTranslation(_0x705d00,_0x13c67a){const t=_0x705d00['t'];switch(_0x13c67a){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 _0x4077=['showConfirm','locale','render','submit','fire','cancel','remove','message','once','focus','destroy','cancelConfirm','isConfirm','element','confirmView','_removeConfirm'];(function(_0x5dbd9a,_0x407782){var _0x2469ae=function(_0x205c6e){while(--_0x205c6e){_0x5dbd9a['push'](_0x5dbd9a['shift']());}};_0x2469ae(++_0x407782);}(_0x4077,0x1ee));var _0x2469=function(_0x5dbd9a,_0x407782){_0x5dbd9a=_0x5dbd9a-0x0;var _0x2469ae=_0x4077[_0x5dbd9a];return _0x2469ae;};import _0x1e5c00 from'./confirmview.js';export default function m(_0x138d62){return class extends _0x138d62{[_0x2469('0x2')](_0x266944,_0x470fe3){return this[_0x2469('0x0')]=new _0x1e5c00(this[_0x2469('0x3')]),this[_0x2469('0x0')][_0x2469('0x4')](),this[_0x2469('0x0')][_0x2469('0x9')]=_0x266944,this[_0x2469('0x0')]['once'](_0x2469('0x7'),()=>{this[_0x2469('0x1')]();}),this[_0x2469('0x0')][_0x2469('0xa')](_0x2469('0x5'),()=>{this[_0x2469('0x1')]();}),_0x470fe3['appendChild'](this['confirmView'][_0x2469('0xf')]),this['registerChild'](this['confirmView']),this[_0x2469('0xf')][_0x2469('0xb')](),this['set'](_0x2469('0xe'),!0x0),new Promise(_0x3ae511=>this[_0x2469('0x0')]['on']('submit',_0x3ae511));}[_0x2469('0xd')](){this[_0x2469('0xe')]&&this[_0x2469('0x0')][_0x2469('0x6')](_0x2469('0x7'));}[_0x2469('0x1')](){this[_0x2469('0xf')]&&this[_0x2469('0x0')]&&this[_0x2469('0x0')]['element']&&(this[_0x2469('0xf')][_0x2469('0xb')](),this['confirmView'][_0x2469('0xf')][_0x2469('0x8')](),this['deregisterChild'](this[_0x2469('0x0')]),this[_0x2469('0xe')]=!0x1,this[_0x2469('0x0')][_0x2469('0xc')](),this['confirmView']=void 0x0);}};}
|
package/src/utils/confirmview.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x2934=['submit','setTemplate','icon','ck-thread__remove-confirm-inner','bindTemplate','_createButtonView','Yes','extendTemplate','label','message','div','submitView','fire','execute','cancel','ck-thread__remove-confirm-actions','Are\x20you\x20sure?'];(function(_0x63c7ef,_0x293499){const _0x5d9794=function(_0x37e995){while(--_0x37e995){_0x63c7ef['push'](_0x63c7ef['shift']());}};_0x5d9794(++_0x293499);}(_0x2934,0x7e));const _0x5d97=function(_0x63c7ef,_0x293499){_0x63c7ef=_0x63c7ef-0x0;let _0x5d9794=_0x2934[_0x63c7ef];return _0x5d9794;};import{View as _0x49ebbd,ButtonView as _0x10ac61}from'ckeditor5/src/ui.js';import{icons as _0x5e3c84}from'ckeditor5/src/core.js';import{getTranslation as _0x12a839}from'./common-translations.js';export default class h extends _0x49ebbd{constructor(_0x5dfa54){super(_0x5dfa54);const _0xf951ce=this[_0x5d97('0xe')];this[_0x5d97('0x4')]=this['_createButtonView'](_0x5dfa54,_0x12a839(_0x5dfa54,_0x5d97('0x10')),_0x5e3c84['check'],_0x5d97('0xa')),this['cancelView']=this[_0x5d97('0xf')](_0x5dfa54,_0x12a839(_0x5dfa54,'No'),_0x5e3c84[_0x5d97('0x7')],_0x5d97('0x7')),this['set'](_0x5d97('0x2'),_0x12a839(_0x5dfa54,_0x5d97('0x9'))),this[_0x5d97('0xb')]({'tag':'div','attributes':{'class':['ck-thread__remove-confirm']},'children':[{'tag':_0x5d97('0x3'),'attributes':{'class':_0x5d97('0xd')},'children':[{'tag':'p','children':[{'text':_0xf951ce['to'](_0x5d97('0x2'))}]},{'tag':_0x5d97('0x3'),'attributes':{'class':_0x5d97('0x8')},'children':[this['submitView'],this['cancelView']]}]}]});}['_createButtonView'](_0x30578f,_0x2d5e79,_0x3d886b,_0x341441){const _0x469407=new _0x10ac61(_0x30578f);return _0x469407[_0x5d97('0x1')]=_0x2d5e79,_0x469407[_0x5d97('0xc')]=_0x3d886b,_0x469407[_0x5d97('0x0')]({'attributes':{'class':'ck-thread__remove-confirm-'+_0x341441}}),_0x469407['on'](_0x5d97('0x6'),()=>this[_0x5d97('0x5')](_0x341441)),_0x469407;}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x111a=['MM-dd-yyyy\x20hh:mma','\x27Last\x27\x20EEEE\x20hh:mma','invalid-date-time-format','dateTimeFormat','\x27Today\x27\x20hh:mma'];(function(_0xb5346e,_0x111ab6){const _0x54596c=function(_0x51ba88){while(--_0x51ba88){_0xb5346e['push'](_0xb5346e['shift']());}};_0x54596c(++_0x111ab6);}(_0x111a,0x93));const _0x5459=function(_0xb5346e,_0x111ab6){_0xb5346e=_0xb5346e-0x0;let _0x54596c=_0x111a[_0xb5346e];return _0x54596c;};import _0x5a262f from'date-fns/format/index.js';import _0x2f4b84 from'date-fns/parseISO/index.js';import _0x3fd5d7 from'date-fns/differenceInCalendarDays/index.js';import{CKEditorError as _0x1188f2}from'ckeditor5/src/utils.js';export default function j(_0x34dbfe={}){if(void 0x0!==_0x34dbfe['dateTimeFormat']&&'function'!=typeof _0x34dbfe['dateTimeFormat'])throw new _0x1188f2(_0x5459('0x0'));return _0xa0459b=>{const _0x1925bc='string'==typeof _0xa0459b?_0x2f4b84(_0xa0459b):_0xa0459b,_0x3d8a68=new Date(),_0x57f345=_0x3fd5d7(_0x3d8a68,_0x1925bc);return _0x34dbfe[_0x5459('0x1')]?_0x34dbfe[_0x5459('0x1')](_0x1925bc):_0x5a262f(_0x1925bc,0x0===_0x57f345?_0x5459('0x2'):0x1===_0x57f345?'\x27Yesterday\x27\x20hh:mma':_0x57f345<0x7?_0x5459('0x4'):_0x5459('0x3'));};}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x4d01=['name','from','values','map','domConverter','getClientRects','length','markerNameToElements','view','item','mapper','push'];(function(_0x44d1ff,_0x4d0184){const _0x339d60=function(_0x478e9b){while(--_0x478e9b){_0x44d1ff['push'](_0x44d1ff['shift']());}};_0x339d60(++_0x4d0184);}(_0x4d01,0x185));const _0x339d=function(_0x44d1ff,_0x4d0184){_0x44d1ff=_0x44d1ff-0x0;let _0x339d60=_0x4d01[_0x44d1ff];return _0x339d60;};import{first as _0x2b0714}from'ckeditor5/src/utils.js';export default function k(_0x39d634,_0x1657b6){const _0x273963=_0x39d634[_0x339d('0x5')][_0x339d('0x2')](_0x1657b6[_0x339d('0x7')]);if(!_0x273963)return null;const _0x335b98=_0x2b0714(_0x273963[_0x339d('0x9')]());return _0x39d634[_0x339d('0x3')][_0x339d('0xb')]['mapViewToDom'](_0x335b98)||null;}export function getAllMarkersDomElementsSorted(_0x573803,_0x28b85d){if(0x0===_0x28b85d['length'])return null;const _0x5ad12c=[],_0xfaad94=_0x573803['view'][_0x339d('0xb')];for(const _0x6a9f86 of _0x28b85d){const _0x28fbed=_0x573803[_0x339d('0x5')][_0x339d('0x2')](_0x6a9f86[_0x339d('0x7')]);if(!_0x28fbed)continue;const _0x593b70=Array[_0x339d('0x8')](_0x28fbed)[_0x339d('0xa')](_0x180805=>_0xfaad94['mapViewToDom'](_0x180805))['filter'](_0x31e503=>!!_0x31e503);_0x5ad12c[_0x339d('0x6')](..._0x593b70);}if(0x0===_0x5ad12c[_0x339d('0x1')])return null;const _0xa91e6b=[];for(const _0x3d6ddb of _0x5ad12c){const _0x219634=_0x3d6ddb[_0x339d('0x0')]()[_0x339d('0x4')](0x0);_0x219634&&_0xa91e6b[_0x339d('0x6')]({'x':_0x219634['x'],'y':_0x219634['y'],'domElement':_0x3d6ddb});}return 0x0===_0xa91e6b[_0x339d('0x1')]?null:(_0xa91e6b['sort']((_0x26a33b,_0x5400a1)=>_0x26a33b['y']-_0x5400a1['y']||_0x26a33b['x']-_0x5400a1['x']),_0xa91e6b[_0x339d('0xa')](_0x4851dc=>_0x4851dc['domElement']));}
|
package/src/utils/hashobject.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x1606=['isArray','toString','keys','number','string','object'];(function(_0x380dea,_0x16068b){const _0x5d1ffe=function(_0x122134){while(--_0x122134){_0x380dea['push'](_0x380dea['shift']());}};_0x5d1ffe(++_0x16068b);}(_0x1606,0x14f));const _0x5d1f=function(_0x380dea,_0x16068b){_0x380dea=_0x380dea-0x0;let _0x5d1ffe=_0x1606[_0x380dea];return _0x5d1ffe;};export default function b(_0x456735){let _0xa151d6=0x0,_0x5c4377=0x0;for(const _0x5ca64e of A(_0x456735))_0xa151d6=(_0xa151d6<<0x5)-_0xa151d6+_0x5ca64e,_0xa151d6&=_0xa151d6,[_0xa151d6,_0x5c4377]=[_0x5c4377,_0xa151d6];return q(_0xa151d6)+q(_0x5c4377);}function*g(_0x121dbe){null==_0x121dbe||null==_0x121dbe?yield 0x12b9b0a1:0x0===_0x121dbe||!0x1===_0x121dbe?yield 0x0:0x1===_0x121dbe||0x1==_0x121dbe?yield 0x1:Array[_0x5d1f('0x1')](_0x121dbe)?yield*function*(_0x2d60fc){for(const _0xd67a21 of _0x2d60fc)yield*g(_0xd67a21);}(_0x121dbe):_0x5d1f('0x0')==typeof _0x121dbe?yield*A(_0x121dbe):_0x5d1f('0x5')==typeof _0x121dbe?yield*M(_0x121dbe):_0x5d1f('0x4')==typeof _0x121dbe&&(yield _0x121dbe);}function*A(_0x2eb6d6){if(yield O('{'),_0x2eb6d6){const _0x5e3cd0=Object[_0x5d1f('0x3')](_0x2eb6d6)['sort']();for(const _0xe45b85 of _0x5e3cd0){yield*M(_0xe45b85),yield O(':');const _0x4000e5=_0x2eb6d6[_0xe45b85];yield*g(_0x4000e5);}}yield O('}');}function*M(_0x58ac7d){yield O('\x22');for(const _0x509e3a of _0x58ac7d)yield O(_0x509e3a);yield O('\x22');}function O(_0x5000d8){return _0x5000d8['charCodeAt'](0x0);}function q(_0x4d1d3f){return(_0x4d1d3f*=Math['sign'](_0x4d1d3f))[_0x5d1f('0x2')](0x24);}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x118f=['length','plugins','rootsAttributes','pluginName','DocumentOutline','_context','map','set','toolbar','has','config','removePlugins','WProofreader','concat','initialData','name','builtinPlugins','get','WebSocketGateway','string','includes','context','filter','constructor','Autosave','every','from','extraPlugins'];(function(_0x4b1969,_0x118f9b){const _0x2e7ed6=function(_0x5c3412){while(--_0x5c3412){_0x4b1969['push'](_0x4b1969['shift']());}};_0x2e7ed6(++_0x118f9b);}(_0x118f,0x19f));const _0x2e7e=function(_0x4b1969,_0x118f9b){_0x4b1969=_0x4b1969-0x0;let _0x2e7ed6=_0x118f[_0x4b1969];return _0x2e7ed6;};const w=[_0x2e7e('0x13'),_0x2e7e('0x1a'),_0x2e7e('0xd'),_0x2e7e('0x7')],W=[_0x2e7e('0x17'),'RevisionTracker',_0x2e7e('0x1'),'WordCount',_0x2e7e('0x9'),_0x2e7e('0x11')];function v(_0x3de2fa,_0x22049d,_0x47d69e,_0x59dad2=[]){const _0x43ffe1=_0x2e7e('0x18')==typeof _0x3de2fa?_0x47d69e[_0x2e7e('0x16')](_0x3de2fa)[_0x2e7e('0x0')]:_0x3de2fa,_0xff2904=_0x43ffe1['pluginName']||_0x43ffe1[_0x2e7e('0x14')];if(_0x22049d[_0x2e7e('0xe')](_0xff2904))return _0x22049d[_0x2e7e('0x16')](_0xff2904);if(_0x22049d['set'](_0xff2904,!0x0),_0xff2904&&W[_0x2e7e('0x12')](_0x59dad2)[_0x2e7e('0x19')](_0xff2904))return _0x22049d['set'](_0xff2904,!0x1),!0x1;if(!_0x43ffe1['requires'])return _0x22049d[_0x2e7e('0xc')](_0xff2904,!0x0),!0x0;const _0x526bb2=_0x43ffe1['requires'][_0x2e7e('0x2')](_0xa187f3=>v(_0xa187f3,_0x22049d,_0x47d69e,_0x59dad2));return _0x22049d[_0x2e7e('0xc')](_0xff2904,_0x526bb2),_0x526bb2;}export default function D(_0xe0b2f8,_0x27ac45){const _0x403ed9={};for(const _0x43ca5c of _0xe0b2f8[_0x2e7e('0xf')]['names']())w[_0x2e7e('0x19')](_0x43ca5c)||(_0x403ed9[_0x43ca5c]=_0xe0b2f8[_0x2e7e('0xf')]['get'](_0x43ca5c));const _0x40dcb4=_0x403ed9[_0x2e7e('0x6')]||[],_0x2955a1=_0xe0b2f8[_0x2e7e('0x0')][_0x2e7e('0x15')]||[],_0x491ac5=_0x40dcb4[_0x2e7e('0x5')]?_0x40dcb4:_0x2955a1,_0x2bad00=_0x403ed9[_0x2e7e('0x4')]||[];delete _0x403ed9[_0x2e7e('0x4')];const _0x131941=_0x403ed9[_0x2e7e('0x10')]||[];delete _0x403ed9[_0x2e7e('0x10')];const _0x3ff271=_0xe0b2f8[_0x2e7e('0xa')][_0x2e7e('0xf')][_0x2e7e('0x16')](_0x2e7e('0x6'))||[],_0x72bfed=_0x491ac5[_0x2e7e('0x12')](_0x2bad00)[_0x2e7e('0x12')](_0x3ff271)[_0x2e7e('0xb')](_0x149179=>_0x2e7e('0x18')==typeof _0x149179?_0x2955a1['find'](_0x57d181=>_0x57d181['pluginName']==_0x149179):_0x149179)[_0x2e7e('0x1b')](_0x4f79c9=>!_0x131941[_0x2e7e('0x19')](_0x4f79c9)&&!_0x131941[_0x2e7e('0x19')](_0x4f79c9[_0x2e7e('0x8')])),_0x340bd5=Array[_0x2e7e('0x3')](new Set(_0x72bfed)),_0x45a88e=new Map();return _0x403ed9[_0x2e7e('0x6')]=_0x340bd5['filter'](_0x355f4d=>v(_0x355f4d,_0x45a88e,_0xe0b2f8[_0x2e7e('0x6')],_0x27ac45)),_0x403ed9;}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x1535=['isEqual','includes','length','document','change:range','push','focus','selection','end','containsPosition','getRange','start'];(function(_0x205149,_0x153526){const _0x4c181b=function(_0x33410f){while(--_0x33410f){_0x205149['push'](_0x205149['shift']());}};_0x4c181b(++_0x153526);}(_0x1535,0xeb));const _0x4c18=function(_0x205149,_0x153526){_0x205149=_0x205149-0x0;let _0x4c181b=_0x1535[_0x205149];return _0x4c181b;};export default function z(_0x17cb54,_0x295dfa){const _0x4b35e5=[];_0x17cb54[_0x4c18('0x8')][_0x4c18('0x0')]['on'](_0x4c18('0x9'),()=>{const _0x3ea202=function(_0x6c82d2,_0x2e3e7b){const _0x2b75d1=[];for(const _0x53b484 of _0x6c82d2['markers']){const _0x139e19=_0x53b484[_0x4c18('0x3')]();(_0x139e19[_0x4c18('0x2')](_0x2e3e7b)||_0x139e19[_0x4c18('0x4')]['isEqual'](_0x2e3e7b)||_0x139e19[_0x4c18('0x1')][_0x4c18('0x5')](_0x2e3e7b))&&_0x2b75d1[_0x4c18('0xa')](_0x53b484);}return _0x2b75d1;}(_0x17cb54,_0x17cb54[_0x4c18('0x8')][_0x4c18('0x0')][_0x4c18('0xb')]),_0x34a9ca=[],_0x479baf=[],_0x2234f1=[];for(const _0x3dec23 of _0x4b35e5)_0x3ea202[_0x4c18('0x6')](_0x3dec23)||_0x34a9ca[_0x4c18('0xa')](_0x3dec23);for(const _0x252c19 of _0x3ea202)_0x4b35e5[_0x4c18('0x6')](_0x252c19)||_0x479baf['push'](_0x252c19),_0x2234f1[_0x4c18('0xa')](_0x252c19);(_0x34a9ca[_0x4c18('0x7')]||_0x479baf[_0x4c18('0x7')])&&_0x295dfa({'left':_0x34a9ca,'entered':_0x479baf}),_0x4b35e5[_0x4c18('0x7')]=0x0,_0x4b35e5[_0x4c18('0xa')](..._0x2234f1);});}
|
package/src/utils/trim-html.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x59e2=['...','match','replace','length','indexOf','substring','join','slice','startsWith','push','pop'];(function(_0x404a17,_0x59e2f1){const _0x60e4ef=function(_0x205570){while(--_0x205570){_0x404a17['push'](_0x404a17['shift']());}};_0x60e4ef(++_0x59e2f1);}(_0x59e2,0x172));const _0x60e4=function(_0x404a17,_0x59e2f1){_0x404a17=_0x404a17-0x0;let _0x60e4ef=_0x59e2[_0x404a17];return _0x60e4ef;};export default function Z(_0x3c050f,{limit:_0x5417cf,suffix:_0x53fcfc=_0x60e4('0x4')}){const _0x570b8b=[];let _0x33defd=0x0;const _0x34b811=_0x3c050f[_0x60e4('0x6')](/</g,'\x0a<')[_0x60e4('0x6')](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x39b440=0x0;_0x39b440<_0x34b811[_0x60e4('0x7')];_0x39b440++){let _0x412416=_0x34b811[_0x39b440];const _0x12aacd=$(_0x412416);if(_0x412416[_0x60e4('0x1')]('<')){if(_0x33defd>=_0x5417cf){const _0x130d28=_0x412416[_0x60e4('0x5')](/[a-zA-Z]+/);if(!_0x130d28){_0x34b811[_0x39b440]='';continue;}const _0x58f5df=_0x130d28[0x0];_0x412416['startsWith']('</')?(_0x570b8b['length']&&(_0x412416=''),_0x570b8b[_0x60e4('0x3')]()):(_0x570b8b[_0x60e4('0x2')](_0x58f5df),_0x412416='');}}else{if(_0x33defd>=_0x5417cf)_0x412416='';else{if(_0x33defd+_0x12aacd[_0x60e4('0x7')]>=_0x5417cf){let _0x14246b=_0x5417cf-_0x33defd;if('\x20'===_0x12aacd[_0x14246b-0x1])_0x14246b--;else{const _0x3ec923=_0x12aacd[_0x60e4('0x0')](_0x14246b)[_0x60e4('0x8')]('\x20');-0x1!==_0x3ec923?_0x14246b+=_0x3ec923:_0x14246b=_0x412416[_0x60e4('0x7')];}_0x412416=_0x12aacd['slice'](0x0,_0x14246b)[_0x60e4('0xa')]('')+_0x53fcfc,_0x33defd=_0x5417cf;}else _0x33defd+=_0x12aacd['length'];}}_0x34b811[_0x39b440]=_0x412416;}return _0x34b811['join']('\x0a')['replace'](/\n/g,'');}function $(_0x2b17b3){const _0x55c3e9=[];for(let _0x5886bd=0x0;_0x5886bd<_0x2b17b3[_0x60e4('0x7')];_0x5886bd++){const _0x528fcc=_0x2b17b3[_0x60e4('0x9')](_0x5886bd)['match'](/^&[a-z0-9#]+;/);if(_0x528fcc){const _0x1ffea2=_0x528fcc[0x0];_0x55c3e9[_0x60e4('0x2')](_0x1ffea2),_0x5886bd+=_0x1ffea2[_0x60e4('0x7')]-0x1;}else _0x55c3e9['push'](_0x2b17b3[_0x5886bd]);}return _0x55c3e9;}
|