@ckeditor/ckeditor5-collaboration-core 0.0.0-nightly-20231030.0 → 0.0.0-nightly-20231031.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/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-20231031.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/)",
|
@@ -31,7 +31,7 @@
|
|
31
31
|
],
|
32
32
|
"main": "src/index.js",
|
33
33
|
"dependencies": {
|
34
|
-
"ckeditor5": "0.0.0-nightly-
|
34
|
+
"ckeditor5": "0.0.0-nightly-20231031.0",
|
35
35
|
"date-fns": "2.30.0"
|
36
36
|
},
|
37
37
|
"files": [
|
package/src/permissions.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x4441=['disableReadOnlyMode','includes','collaboration.channelId','comment:admin','isEnabled','find','enableReadOnlyMode','setPermissions','get','comment:modify_all','plugins','CommentsOnly','context','config','editors','document:write','has','addCommentThread','commands','noPermissions','permissions-set-permissions-invalid-channel-id','no-permissions','clearForceDisabled','CommentsRepository'];(function(_0x545a18,_0x44413a){const _0x313938=function(_0x5296f9){while(--_0x5296f9){_0x545a18['push'](_0x545a18['shift']());}};_0x313938(++_0x44413a);}(_0x4441,0x1c6));const _0x3139=function(_0x545a18,_0x44413a){_0x545a18=_0x545a18-0x0;let _0x313938=_0x4441[_0x545a18];return _0x313938;};import{ContextPlugin as _0x3b3557,Editor as _0x36fc32}from'ckeditor5/src/core';import{CKEditorError as _0x3ecf2e}from'ckeditor5/src/utils';export default class n extends _0x3b3557{static get['pluginName'](){return'Permissions';}[_0x3139('0x9')](_0x2644fe,_0xcc717e){let _0x2f1a9f;if(_0xcc717e||(_0xcc717e=this[_0x3139('0xe')]['config'][_0x3139('0xa')](_0x3139('0x4'))),this[_0x3139('0xe')][_0x3139('0xf')]['get'](_0x3139('0x4'))==_0xcc717e?_0x2f1a9f=this[_0x3139('0xe')]:_0x3139('0x10')in this['context']&&this[_0x3139('0xe')]['editors']&&(_0x2f1a9f=this['context'][_0x3139('0x10')][_0x3139('0x7')](_0x5b9b71=>_0x5b9b71[_0x3139('0xf')][_0x3139('0xa')](_0x3139('0x4'))==_0xcc717e)),!_0x2f1a9f)throw new _0x3ecf2e(_0x3139('0x16'),null);const _0x1e1297=_0x2f1a9f[_0x3139('0xc')],_0x4b99f2=_0x1e1297[_0x3139('0x12')](_0x3139('0x1'))?_0x1e1297[_0x3139('0xa')](_0x3139('0x1')):void 0x0,_0x23d765=_0x1e1297[_0x3139('0x12')](_0x3139('0xd'))&&_0x1e1297[_0x3139('0xa')](_0x3139('0xd')),_0x5171ff=_0x2644fe['includes'](_0x3139('0x11')),_0x383ae0=_0x2644fe['includes'](_0x3139('0xb')),_0x22a0ee=_0x2644fe['includes'](_0x3139('0x5')),_0x5b951a=_0x2644fe[_0x3139('0x3')]('comment:write'),_0x26d510=_0x5b951a||_0x22a0ee,_0x2262e7=_0x26d510||_0x383ae0,_0x4138cd=_0x5171ff||_0x26d510;(_0x23d765&&(_0x23d765[_0x3139('0x6')]=!_0x5171ff&&_0x2262e7),_0x2f1a9f instanceof _0x36fc32)&&(!(_0x5171ff||_0x2262e7&&_0x4b99f2)?_0x2f1a9f[_0x3139('0x8')](_0x3139('0x17')):_0x2f1a9f[_0x3139('0x2')](_0x3139('0x17')));if(_0x4b99f2){_0x4b99f2['setPermissions']({'admin':_0x22a0ee,'modifyAll':_0x383ae0,'write':_0x5b951a,'resolve':_0x4138cd},_0xcc717e);const _0x283d8d=_0x2f1a9f instanceof _0x36fc32&&_0x2f1a9f[_0x3139('0x14')][_0x3139('0xa')](_0x3139('0x13'));_0x283d8d&&(_0x26d510?_0x283d8d[_0x3139('0x0')]('noPermissions'):_0x283d8d['forceDisabled'](_0x3139('0x15')));}}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x1400=['push','div','ck-user__icon','content','ck-user__avatar','ck-user__anonymous','ck\x20ck-user__name','avatar','name','notificationView','initials','extendTemplate','ck-user__img','ck\x20ck-user__name\x20ck-user__name--hidden','ck-user'];(function(_0x415eb3,_0x14000d){const _0x1532ea=function(_0x54062b){while(--_0x54062b){_0x415eb3['push'](_0x415eb3['shift']());}};_0x1532ea(++_0x14000d);}(_0x1400,0x176));const _0x1532=function(_0x415eb3,_0x14000d){_0x415eb3=_0x415eb3-0x0;let _0x1532ea=_0x1400[_0x415eb3];return _0x1532ea;};import{View as _0x502d62,IconView as _0x297033}from'ckeditor5/src/ui';import _0x47320b from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class B extends _0x502d62{constructor(_0x28b79e,_0x1f819c,_0x2ff97c){super(_0x28b79e),this['name']=_0x1f819c[_0x1532('0x9')],this[_0x1532('0xa')]=null;const _0x8ab9eb=['ck',_0x1532('0xd')];if(_0x1f819c['isAnonymous']&&_0x8ab9eb[_0x1532('0x1')](_0x1532('0x6')),_0x1f819c[_0x1532('0x8')]&&_0x8ab9eb[_0x1532('0x1')](_0x1532('0x5')),_0x2ff97c){const _0x3a98f2=new _0x297033();_0x3a98f2[_0x1532('0xc')]({'attributes':{'class':[_0x1532('0x3')]}}),_0x3a98f2[_0x1532('0x4')]=_0x47320b,this[_0x1532('0xa')]={'tag':_0x1532('0x2'),'attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x2ff97c},'children':[_0x3a98f2]};}const _0x33b628=[{'tag':_0x1532('0x2'),'attributes':{'class':_0x8ab9eb,'style':{'background-image':_0x1f819c['avatar']?'url(\x27'+_0x1f819c[_0x1532('0x8')]+'\x27)':''}}},{'tag':_0x1532('0x2'),'attributes':{'class':_0x1f819c[_0x1532('0x8')]?_0x1532('0xe'):_0x1532('0x7')},'children':[{'text':_0x1f819c[_0x1532('0xb')]}]}];this[_0x1532('0xa')]&&_0x33b628[_0x1532('0x1')](this['notificationView']),this['setTemplate']({'tag':_0x1532('0x2'),'attributes':{'class':['ck',_0x1532('0x0')],'data-user-id':_0x1f819c['id']},'children':_0x33b628});}}
|
package/src/users.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x5b32=['anonymous-user','info','licenseKeyTrial','licenseKeyTrialLimit:operations','licenseKeyInvalid','config','get','decorate','initials','users-me-already-defined','licenseKeyTrialLimit:revisions','users.anonymousUserId','destroy','licenseKeyValid','string','trial-license-key-reached-limit-revisions','_getInitial','getMarkerClass','avatar','ck-user__selection--','init','charAt','trim','users.colorsCount','Users','licenseKeyTrialLimit:time','isAnonymous','ck-user__marker--','trial-license-key-reached-limit-changes','licenseKey','pluginName','getBackgroundColorClass','toUpperCase','_addAnonymousUser','getOperationAuthor','_myId','getSelectionClass','_lastColor','getUser','add','_id','_locale','includes','_getNextColor','context','trial-license-key-reached-limit-time','_licenseKeyCheckInterval','useAnonymousUser','invalid-license-key','defineMe','addUser','users-add-duplicated-id','name','users','define','length','color','users-add-invalid-id','_isAnonymous','Anonymous'];(function(_0x4d407a,_0x5b327a){const _0xaffab=function(_0x1f019d){while(--_0x1f019d){_0x4d407a['push'](_0x4d407a['shift']());}};_0xaffab(++_0x5b327a);}(_0x5b32,0x1a8));const _0xaffa=function(_0x4d407a,_0x5b327a){_0x4d407a=_0x4d407a-0x0;let _0xaffab=_0x5b32[_0x4d407a];return _0xaffab;};import{ContextPlugin as _0x40cc00}from'ckeditor5/src/core';import{Collection as _0x56e252,CKEditorError as _0x17a3cf}from'ckeditor5/src/utils';import _0x37520d from'./permissions';import{getTranslation as _0x1a75a5}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x40cc00{static get[_0xaffa('0x1a')](){return _0xaffa('0x14');}static get['requires'](){return[_0x37520d];}constructor(_0x1a3294){super(_0x1a3294),this[_0xaffa('0x28')][_0xaffa('0x1')][_0xaffa('0x32')](_0xaffa('0x7'),_0xaffa('0x38')),this[_0xaffa('0x28')]['config'][_0xaffa('0x32')]('users.colorsCount',0x8),this[_0xaffa('0x31')]=new _0x56e252(),this['_locale']=_0x1a3294['locale'],this[_0xaffa('0x2a')]=null,this[_0xaffa('0x21')]=0x0,this['_myId']=null,this[_0xaffa('0x3')](_0xaffa('0x1e'));}[_0xaffa('0x10')](){const _0x4fcc95=this[_0xaffa('0x28')];this[_0xaffa('0x19')]=_0x4fcc95[_0xaffa('0x1')][_0xaffa('0x2')](_0xaffa('0x19'));const _0xb5daa1=[_0xaffa('0x3a'),_0xaffa('0x0'),_0xaffa('0x9'),_0xaffa('0x3b'),_0xaffa('0x15'),_0xaffa('0x6')];this[_0xaffa('0x2a')]=setInterval(()=>{let _0x184041;for(const _0x3ee99f in _0x4fcc95){const _0x3bde83=_0x4fcc95[_0x3ee99f];if(_0xb5daa1[_0xaffa('0x26')](_0x3bde83)){delete _0x4fcc95[_0x3ee99f],_0x184041=_0x3bde83;break;}}if(_0xaffa('0x0')===_0x184041)throw clearInterval(this[_0xaffa('0x2a')]),new _0x17a3cf(_0xaffa('0x2c'),null);if(_0xaffa('0x3a')===_0x184041&&console[_0xaffa('0x39')]('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.'),_0xaffa('0x3b')===_0x184041)throw clearInterval(this[_0xaffa('0x2a')]),new _0x17a3cf(_0xaffa('0x18'),null);if('licenseKeyTrialLimit:time'===_0x184041)throw clearInterval(this[_0xaffa('0x2a')]),new _0x17a3cf(_0xaffa('0x29'),null);if(_0xaffa('0x6')===_0x184041)throw clearInterval(this[_0xaffa('0x2a')]),new _0x17a3cf(_0xaffa('0xb'),null);_0xaffa('0x9')===_0x184041&&clearInterval(this[_0xaffa('0x2a')]);},0x3e8),this[_0xaffa('0x1d')]();}get['me'](){return null==this[_0xaffa('0x1f')]?null:this[_0xaffa('0x22')](this[_0xaffa('0x1f')]);}[_0xaffa('0x2e')]({id:_0x5b9e7e,name:_0x1adf1b,..._0x20885e}){if(!_0x5b9e7e||_0xaffa('0xa')!=typeof _0x5b9e7e)throw new _0x17a3cf(_0xaffa('0x35'));if(this[_0xaffa('0x31')]['has'](_0x5b9e7e))throw new _0x17a3cf(_0xaffa('0x2f'),null,{'id':_0x5b9e7e});const _0x54d165={..._0x20885e,'id':_0x5b9e7e,'name':a(this[_0xaffa('0x25')],_0x1adf1b),'color':this['_getNextColor']()};_0x54d165[_0xaffa('0x30')]=a(this[_0xaffa('0x25')],_0x54d165[_0xaffa('0x30')]);const _0x43de34=new User(_0x54d165);return this['users'][_0xaffa('0x23')](_0x43de34),_0x43de34;}['getUser'](_0x3dd76c){return this[_0xaffa('0x31')][_0xaffa('0x2')](_0x3dd76c);}[_0xaffa('0x2b')](){const _0x2954da=this[_0xaffa('0x28')]['config'][_0xaffa('0x2')](_0xaffa('0x7'));this[_0xaffa('0x1f')]||this['defineMe'](_0x2954da);}[_0xaffa('0x2d')](_0x285083){if(this[_0xaffa('0x1f')])throw new _0x17a3cf(_0xaffa('0x5'),null);if(!this[_0xaffa('0x22')](_0x285083))throw new _0x17a3cf('users-me-missing-user',null);this['_myId']=_0x285083;}['getOperationAuthor'](){return this['me'];}[_0xaffa('0x8')](){super[_0xaffa('0x8')](),clearInterval(this[_0xaffa('0x2a')]);}[_0xaffa('0x27')](){const _0x129446=this['context'][_0xaffa('0x1')][_0xaffa('0x2')](_0xaffa('0x13'));return this['_lastColor']>=_0x129446&&(this[_0xaffa('0x21')]=0x0),new u(this['_lastColor']++);}[_0xaffa('0x1d')](){const _0x53f716=this[_0xaffa('0x28')][_0xaffa('0x1')][_0xaffa('0x2')](_0xaffa('0x7'));this[_0xaffa('0x2e')]({'id':_0x53f716,'name':_0x1a75a5(this[_0xaffa('0x25')],_0xaffa('0x37'))})[_0xaffa('0x36')]=!0x0;}}export class User{constructor(_0x53d078){this['id']=_0x53d078['id'],this[_0xaffa('0x34')]=_0x53d078[_0xaffa('0x34')],this[_0xaffa('0x30')]=_0x53d078[_0xaffa('0x30')],this[_0xaffa('0xe')]=_0x53d078['avatar'],this['_isAnonymous']=!0x1;}get[_0xaffa('0x16')](){return this[_0xaffa('0x36')];}get[_0xaffa('0x4')](){const _0x400da3=this[_0xaffa('0x30')]['split']('\x20');return 0x1===_0x400da3[_0xaffa('0x33')]?this[_0xaffa('0xc')](_0x400da3[0x0]):this['_getInitial'](_0x400da3[0x0])+this[_0xaffa('0xc')](_0x400da3[_0x400da3[_0xaffa('0x33')]-0x1]);}[_0xaffa('0xc')](_0x2bd1b1){return _0x2bd1b1[_0xaffa('0x11')](0x0)[_0xaffa('0x1c')]();}}function a(_0x4e7005,_0x42bbf7=''){return''==(_0x42bbf7=_0x42bbf7[_0xaffa('0x12')]())?_0x1a75a5(_0x4e7005,_0xaffa('0x37')):_0x42bbf7;}class u{constructor(_0x4a5949){this[_0xaffa('0x24')]=_0x4a5949;}[_0xaffa('0x1b')](){return'ck-user__bg-color--'+this[_0xaffa('0x24')];}[_0xaffa('0x20')](){return _0xaffa('0xf')+this[_0xaffa('0x24')];}[_0xaffa('0xd')](){return _0xaffa('0x17')+this[_0xaffa('0x24')];}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
export function getTranslation(
|
23
|
+
export function getTranslation(_0x1c93cf,_0x19c3a0){const t=_0x1c93cf['t'];switch(_0x19c3a0){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 _0x31d2=['submit','cancelConfirm','registerChild','message','once','_removeConfirm','deregisterChild','isConfirm','set','fire','locale','element','appendChild','confirmView','focus','remove','showConfirm'];(function(_0x1ab90b,_0x31d278){var _0x466b3e=function(_0xe09565){while(--_0xe09565){_0x1ab90b['push'](_0x1ab90b['shift']());}};_0x466b3e(++_0x31d278);}(_0x31d2,0x6a));var _0x466b=function(_0x1ab90b,_0x31d278){_0x1ab90b=_0x1ab90b-0x0;var _0x466b3e=_0x31d2[_0x1ab90b];return _0x466b3e;};import _0x1ee849 from'./confirmview';export default function m(_0x571ff1){return class extends _0x571ff1{[_0x466b('0xc')](_0x550de,_0x5da4f1){return this[_0x466b('0x9')]=new _0x1ee849(this[_0x466b('0x6')]),this[_0x466b('0x9')]['render'](),this[_0x466b('0x9')][_0x466b('0x10')]=_0x550de,this[_0x466b('0x9')][_0x466b('0x0')]('cancel',()=>{this[_0x466b('0x1')]();}),this['confirmView']['once'](_0x466b('0xd'),()=>{this['_removeConfirm']();}),_0x5da4f1[_0x466b('0x8')](this[_0x466b('0x9')][_0x466b('0x7')]),this[_0x466b('0xf')](this[_0x466b('0x9')]),this['element'][_0x466b('0xa')](),this[_0x466b('0x4')](_0x466b('0x3'),!0x0),new Promise(_0x3e86d7=>this[_0x466b('0x9')]['on'](_0x466b('0xd'),_0x3e86d7));}[_0x466b('0xe')](){this[_0x466b('0x3')]&&this['confirmView'][_0x466b('0x5')]('cancel');}[_0x466b('0x1')](){this[_0x466b('0x7')]&&this[_0x466b('0x9')]&&this['confirmView'][_0x466b('0x7')]&&(this['element']['focus'](),this['confirmView']['element'][_0x466b('0xb')](),this[_0x466b('0x2')](this[_0x466b('0x9')]),this[_0x466b('0x3')]=!0x1,this[_0x466b('0x9')]['destroy'](),this[_0x466b('0x9')]=void 0x0);}};}
|
package/src/utils/confirmview.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x323c=['Are\x20you\x20sure?','set','fire','div','execute','icon','ck-thread__remove-confirm-','submit','cancelView','extendTemplate','ck-thread__remove-confirm-inner','message','ck-thread__remove-confirm','setTemplate','cancel','_createButtonView','submitView','ck-thread__remove-confirm-actions','label','bindTemplate','Yes'];(function(_0x371ff4,_0x323c25){const _0x19b70a=function(_0x5d5d97){while(--_0x5d5d97){_0x371ff4['push'](_0x371ff4['shift']());}};_0x19b70a(++_0x323c25);}(_0x323c,0x72));const _0x19b7=function(_0x371ff4,_0x323c25){_0x371ff4=_0x371ff4-0x0;let _0x19b70a=_0x323c[_0x371ff4];return _0x19b70a;};import{View as _0xa8a2c5,ButtonView as _0x5630c6}from'ckeditor5/src/ui';import{icons as _0x5c6d09}from'ckeditor5/src/core';import{getTranslation as _0x592bec}from'./common-translations';export default class h extends _0xa8a2c5{constructor(_0x4773d0){super(_0x4773d0);const _0x537e72=this[_0x19b7('0xa')];this[_0x19b7('0x7')]=this[_0x19b7('0x6')](_0x4773d0,_0x592bec(_0x4773d0,_0x19b7('0xb')),_0x5c6d09['check'],_0x19b7('0x13')),this[_0x19b7('0x14')]=this[_0x19b7('0x6')](_0x4773d0,_0x592bec(_0x4773d0,'No'),_0x5c6d09[_0x19b7('0x5')],'cancel'),this[_0x19b7('0xd')]('message',_0x592bec(_0x4773d0,_0x19b7('0xc'))),this[_0x19b7('0x4')]({'tag':_0x19b7('0xf'),'attributes':{'class':[_0x19b7('0x3')]},'children':[{'tag':_0x19b7('0xf'),'attributes':{'class':_0x19b7('0x1')},'children':[{'tag':'p','children':[{'text':_0x537e72['to'](_0x19b7('0x2'))}]},{'tag':_0x19b7('0xf'),'attributes':{'class':_0x19b7('0x8')},'children':[this['submitView'],this[_0x19b7('0x14')]]}]}]});}[_0x19b7('0x6')](_0x5053be,_0x4615f3,_0x4bdecf,_0x575ee4){const _0x54376c=new _0x5630c6(_0x5053be);return _0x54376c[_0x19b7('0x9')]=_0x4615f3,_0x54376c[_0x19b7('0x11')]=_0x4bdecf,_0x54376c[_0x19b7('0x0')]({'attributes':{'class':_0x19b7('0x12')+_0x575ee4}}),_0x54376c['on'](_0x19b7('0x10'),()=>this[_0x19b7('0xe')](_0x575ee4)),_0x54376c;}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x2133=['\x27Last\x27\x20EEEE\x20hh:mma','function','string','\x27Yesterday\x27\x20hh:mma','\x27Today\x27\x20hh:mma','dateTimeFormat','invalid-date-time-format'];(function(_0x2d03a2,_0x21335b){const _0x2a726f=function(_0xe8a906){while(--_0xe8a906){_0x2d03a2['push'](_0x2d03a2['shift']());}};_0x2a726f(++_0x21335b);}(_0x2133,0x121));const _0x2a72=function(_0x2d03a2,_0x21335b){_0x2d03a2=_0x2d03a2-0x0;let _0x2a726f=_0x2133[_0x2d03a2];return _0x2a726f;};import _0x4e46cf from'date-fns/format';import _0x346a3f from'date-fns/parseISO';import _0x54e7bc from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x134bca}from'ckeditor5/src/utils';export default function E(_0x5ef9c3={}){if(void 0x0!==_0x5ef9c3[_0x2a72('0x3')]&&_0x2a72('0x6')!=typeof _0x5ef9c3[_0x2a72('0x3')])throw new _0x134bca(_0x2a72('0x4'));return _0x41c01e=>{const _0x54fc10=_0x2a72('0x0')==typeof _0x41c01e?_0x346a3f(_0x41c01e):_0x41c01e,_0x17238f=new Date(),_0x4bf114=_0x54e7bc(_0x17238f,_0x54fc10);return _0x5ef9c3[_0x2a72('0x3')]?_0x5ef9c3[_0x2a72('0x3')](_0x54fc10):_0x4e46cf(_0x54fc10,0x0===_0x4bf114?_0x2a72('0x2'):0x1===_0x4bf114?_0x2a72('0x1'):_0x4bf114<0x7?_0x2a72('0x5'):'MM-dd-yyyy\x20hh:mma');};}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x53c9=['map','values','view','mapViewToDom','domElement','push','name','length','markerNameToElements','from','mapper'];(function(_0x37d200,_0x53c9b0){const _0x11891a=function(_0x5aae8d){while(--_0x5aae8d){_0x37d200['push'](_0x37d200['shift']());}};_0x11891a(++_0x53c9b0);}(_0x53c9,0x14e));const _0x1189=function(_0x37d200,_0x53c9b0){_0x37d200=_0x37d200-0x0;let _0x11891a=_0x53c9[_0x37d200];return _0x11891a;};import{first as _0x7dc6fa}from'ckeditor5/src/utils';export default function k(_0x43cd4a,_0x13b52b){const _0x45964f=_0x43cd4a[_0x1189('0x6')][_0x1189('0x4')](_0x13b52b['name']);if(!_0x45964f)return null;const _0x4bc9b5=_0x7dc6fa(_0x45964f[_0x1189('0x8')]());return _0x43cd4a[_0x1189('0x9')]['domConverter']['mapViewToDom'](_0x4bc9b5)||null;}export function getAllMarkersDomElementsSorted(_0x34cc30,_0x48fe72){if(0x0===_0x48fe72[_0x1189('0x3')])return null;const _0x35b9cf=[],_0x312f78=_0x34cc30[_0x1189('0x9')]['domConverter'];for(const _0x5c60c2 of _0x48fe72){const _0x43c47a=_0x34cc30[_0x1189('0x6')][_0x1189('0x4')](_0x5c60c2[_0x1189('0x2')]);if(!_0x43c47a)continue;const _0x2f5b8d=Array[_0x1189('0x5')](_0x43c47a)['map'](_0x16d2a7=>_0x312f78[_0x1189('0xa')](_0x16d2a7))['filter'](_0x4a2620=>!!_0x4a2620);_0x35b9cf[_0x1189('0x1')](..._0x2f5b8d);}if(0x0===_0x35b9cf[_0x1189('0x3')])return null;const _0x397feb=[];for(const _0x3a1daa of _0x35b9cf){const _0x14f676=_0x3a1daa['getClientRects']()['item'](0x0);_0x14f676&&_0x397feb[_0x1189('0x1')]({'x':_0x14f676['x'],'y':_0x14f676['y'],'domElement':_0x3a1daa});}return 0x0===_0x397feb[_0x1189('0x3')]?null:(_0x397feb['sort']((_0x3d8cdd,_0x182b27)=>_0x3d8cdd['y']-_0x182b27['y']||_0x3d8cdd['x']-_0x182b27['x']),_0x397feb[_0x1189('0x7')](_0x1d237b=>_0x1d237b[_0x1189('0x0')]));}
|
package/src/utils/hashobject.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x3d8c=['isArray','keys','charCodeAt','toString','sign','boolean','sort','number','object'];(function(_0x2c0a39,_0x3d8c55){const _0x4c9df3=function(_0x27c8d9){while(--_0x27c8d9){_0x2c0a39['push'](_0x2c0a39['shift']());}};_0x4c9df3(++_0x3d8c55);}(_0x3d8c,0x11d));const _0x4c9d=function(_0x2c0a39,_0x3d8c55){_0x2c0a39=_0x2c0a39-0x0;let _0x4c9df3=_0x3d8c[_0x2c0a39];return _0x4c9df3;};export default function b(_0x14181d){let _0x1ac13c=0x0,_0x1cd33b=0x0;for(const _0x533019 of g(_0x14181d))_0x1ac13c=(_0x1ac13c<<0x5)-_0x1ac13c+_0x533019,_0x1ac13c&=_0x1ac13c,[_0x1ac13c,_0x1cd33b]=[_0x1cd33b,_0x1ac13c];return O(_0x1ac13c)+O(_0x1cd33b);}function*j(_0x2807ac){_0x2807ac?_0x4c9d('0x8')==typeof _0x2807ac?yield 0x1:Array[_0x4c9d('0x3')](_0x2807ac)?yield*function*(_0x193431){for(const _0x4a6eaa of _0x193431)yield*j(_0x4a6eaa);}(_0x2807ac):_0x4c9d('0x2')==typeof _0x2807ac?yield*g(_0x2807ac):'string'==typeof _0x2807ac?yield*A(_0x2807ac):_0x4c9d('0x1')==typeof _0x2807ac&&(yield _0x2807ac):yield 0x0;}function*g(_0x5ccb85){if(yield M('{'),_0x5ccb85){const _0x3a2a65=Object[_0x4c9d('0x4')](_0x5ccb85)[_0x4c9d('0x0')]();for(const _0x5f50e5 of _0x3a2a65){yield*A(_0x5f50e5),yield M(':');const _0x385ea8=_0x5ccb85[_0x5f50e5];yield*j(_0x385ea8);}}yield M('}');}function*A(_0x473a06){yield M('\x22');for(const _0x415ba4 of _0x473a06)yield M(_0x415ba4);yield M('\x22');}function M(_0xbb4d79){return _0xbb4d79[_0x4c9d('0x5')](0x0);}function O(_0x476734){return(_0x476734*=Math[_0x4c9d('0x7')](_0x476734))[_0x4c9d('0x6')](0x24);}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x5236=['find','removePlugins','every','constructor','WProofreader','set','WordCount','pluginName','WebSocketGateway','builtinPlugins','RevisionTracker','length','filter','names','config','concat','get','_context','name','Autosave','includes','initialData','DocumentOutline','plugins','string','rootsAttributes','requires','extraPlugins'];(function(_0x5d66a0,_0x523644){const _0x4f9cef=function(_0x17fce1){while(--_0x17fce1){_0x5d66a0['push'](_0x5d66a0['shift']());}};_0x4f9cef(++_0x523644);}(_0x5236,0x1ec));const _0x4f9c=function(_0x5d66a0,_0x523644){_0x5d66a0=_0x5d66a0-0x0;let _0x4f9cef=_0x5236[_0x5d66a0];return _0x4f9cef;};const w=[_0x4f9c('0x5'),'context','toolbar',_0x4f9c('0x9')],W=[_0x4f9c('0x14'),_0x4f9c('0x16'),_0x4f9c('0x3'),_0x4f9c('0x12'),_0x4f9c('0x6'),_0x4f9c('0x10')];function v(_0x374e8f,_0x586f6f,_0x2940b0,_0x47c4d4=[]){const _0x3b2ccb=_0x4f9c('0x8')==typeof _0x374e8f?_0x2940b0[_0x4f9c('0x0')](_0x374e8f)[_0x4f9c('0xf')]:_0x374e8f,_0x5e62c4=_0x3b2ccb['pluginName']||_0x3b2ccb[_0x4f9c('0x2')];if(_0x586f6f['has'](_0x5e62c4))return _0x586f6f[_0x4f9c('0x0')](_0x5e62c4);if(_0x586f6f[_0x4f9c('0x11')](_0x5e62c4,!0x0),_0x5e62c4&&W[_0x4f9c('0x1b')](_0x47c4d4)[_0x4f9c('0x4')](_0x5e62c4))return _0x586f6f[_0x4f9c('0x11')](_0x5e62c4,!0x1),!0x1;if(!_0x3b2ccb[_0x4f9c('0xa')])return _0x586f6f['set'](_0x5e62c4,!0x0),!0x0;const _0x32f6d2=_0x3b2ccb['requires'][_0x4f9c('0xe')](_0x17569d=>v(_0x17569d,_0x586f6f,_0x2940b0,_0x47c4d4));return _0x586f6f[_0x4f9c('0x11')](_0x5e62c4,_0x32f6d2),_0x32f6d2;}export default function D(_0x5984f8,_0x176b48){const _0x1574f2={};for(const _0xb8347f of _0x5984f8[_0x4f9c('0x1a')][_0x4f9c('0x19')]())w['includes'](_0xb8347f)||(_0x1574f2[_0xb8347f]=_0x5984f8[_0x4f9c('0x1a')]['get'](_0xb8347f));const _0x3be816=_0x1574f2[_0x4f9c('0x7')]||[],_0x435942=_0x5984f8['constructor'][_0x4f9c('0x15')]||[],_0x10745d=_0x3be816[_0x4f9c('0x17')]?_0x3be816:_0x435942,_0x2f9299=_0x1574f2[_0x4f9c('0xb')]||[];delete _0x1574f2[_0x4f9c('0xb')];const _0x1e0b96=_0x1574f2[_0x4f9c('0xd')]||[];delete _0x1574f2[_0x4f9c('0xd')];const _0x5cef0b=_0x5984f8[_0x4f9c('0x1')]['config']['get'](_0x4f9c('0x7'))||[],_0x36e2c=_0x10745d[_0x4f9c('0x1b')](_0x2f9299)[_0x4f9c('0x1b')](_0x5cef0b)['map'](_0x5f15b2=>_0x4f9c('0x8')==typeof _0x5f15b2?_0x435942[_0x4f9c('0xc')](_0x53740e=>_0x53740e[_0x4f9c('0x13')]==_0x5f15b2):_0x5f15b2)['filter'](_0x26f542=>!_0x1e0b96[_0x4f9c('0x4')](_0x26f542)),_0x5f4612=Array['from'](new Set(_0x36e2c)),_0x3e632d=new Map();return _0x1574f2[_0x4f9c('0x7')]=_0x5f4612[_0x4f9c('0x18')](_0x39d10d=>v(_0x39d10d,_0x3e632d,_0x5984f8['plugins'],_0x176b48)),_0x1574f2;}
|
package/src/utils/trim-html.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x51ce=['pop','push','replace','slice','startsWith','match','length','split','join','indexOf'];(function(_0x467273,_0x51ce49){const _0x291fe2=function(_0x2ba209){while(--_0x2ba209){_0x467273['push'](_0x467273['shift']());}};_0x291fe2(++_0x51ce49);}(_0x51ce,0x18c));const _0x291f=function(_0x467273,_0x51ce49){_0x467273=_0x467273-0x0;let _0x291fe2=_0x51ce[_0x467273];return _0x291fe2;};export default function z(_0x14f81f,{limit:_0x30e3e0,suffix:_0xa7dcd0='...'}){const _0x1f8bf0=[];let _0x141372=0x0;const _0x18120e=_0x14f81f[_0x291f('0x6')](/</g,'\x0a<')['replace'](/>/g,'>\x0a')[_0x291f('0x6')](/^\n/g,'')['replace'](/\n$/g,'')[_0x291f('0x1')]('\x0a');for(let _0x4f9324=0x0;_0x4f9324<_0x18120e[_0x291f('0x0')];_0x4f9324++){let _0x1f0759=_0x18120e[_0x4f9324];const _0x2f6d21=Z(_0x1f0759);if(_0x1f0759[_0x291f('0x8')]('<')){if(_0x141372>=_0x30e3e0){const _0x5ad578=_0x1f0759[_0x291f('0x9')](/[a-zA-Z]+/);if(!_0x5ad578){_0x18120e[_0x4f9324]='';continue;}const _0x257923=_0x5ad578[0x0];_0x1f0759[_0x291f('0x8')]('</')?(_0x1f8bf0[_0x291f('0x0')]&&(_0x1f0759=''),_0x1f8bf0[_0x291f('0x4')]()):(_0x1f8bf0[_0x291f('0x5')](_0x257923),_0x1f0759='');}}else{if(_0x141372>=_0x30e3e0)_0x1f0759='';else{if(_0x141372+_0x2f6d21[_0x291f('0x0')]>=_0x30e3e0){let _0x4379b7=_0x30e3e0-_0x141372;if('\x20'===_0x2f6d21[_0x4379b7-0x1])_0x4379b7--;else{const _0x34c171=_0x2f6d21['slice'](_0x4379b7)[_0x291f('0x3')]('\x20');-0x1!==_0x34c171?_0x4379b7+=_0x34c171:_0x4379b7=_0x1f0759['length'];}_0x1f0759=_0x2f6d21[_0x291f('0x7')](0x0,_0x4379b7)[_0x291f('0x2')]('')+_0xa7dcd0,_0x141372=_0x30e3e0;}else _0x141372+=_0x2f6d21['length'];}}_0x18120e[_0x4f9324]=_0x1f0759;}return _0x18120e[_0x291f('0x2')]('\x0a')[_0x291f('0x6')](/\n/g,'');}function Z(_0x143b60){const _0x4279cd=[];for(let _0x5a8d83=0x0;_0x5a8d83<_0x143b60[_0x291f('0x0')];_0x5a8d83++){const _0xd24f64=_0x143b60['substring'](_0x5a8d83)[_0x291f('0x9')](/^&[a-z0-9#]+;/);if(_0xd24f64){const _0x4e7df1=_0xd24f64[0x0];_0x4279cd['push'](_0x4e7df1),_0x5a8d83+=_0x4e7df1[_0x291f('0x0')]-0x1;}else _0x4279cd[_0x291f('0x5')](_0x143b60[_0x5a8d83]);}return _0x4279cd;}
|