@ckeditor/ckeditor5-collaboration-core 0.0.0-nightly-20231214.0 → 0.0.0-nightly-20231215.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-20231215.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-20231215.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 _0x3e66=['setPermissions','forceDisabled','has','config','includes','clearForceDisabled','enableReadOnlyMode','find','comment:modify_all','comment:write','noPermissions','comment:admin','commands','collaboration.channelId','document:write','no-permissions','pluginName','isEnabled','Permissions','CommentsOnly','context','permissions-set-permissions-invalid-channel-id','editors','CommentsRepository','get'];(function(_0x174541,_0x3e662f){const _0xdffd29=function(_0x9e9652){while(--_0x9e9652){_0x174541['push'](_0x174541['shift']());}};_0xdffd29(++_0x3e662f);}(_0x3e66,0xc5));const _0xdffd=function(_0x174541,_0x3e662f){_0x174541=_0x174541-0x0;let _0xdffd29=_0x3e66[_0x174541];return _0xdffd29;};import{ContextPlugin as _0x16cc37,Editor as _0x24ca49}from'ckeditor5/src/core';import{CKEditorError as _0xcd524e}from'ckeditor5/src/utils';export default class n extends _0x16cc37{static get[_0xdffd('0x13')](){return _0xdffd('0x15');}[_0xdffd('0x3')](_0x1724b6,_0xa85ebd){let _0x38065c;if(_0xa85ebd||(_0xa85ebd=this[_0xdffd('0x17')][_0xdffd('0x6')]['get'](_0xdffd('0x10'))),this[_0xdffd('0x17')][_0xdffd('0x6')]['get'](_0xdffd('0x10'))==_0xa85ebd?_0x38065c=this[_0xdffd('0x17')]:'editors'in this['context']&&this[_0xdffd('0x17')][_0xdffd('0x0')]&&(_0x38065c=this[_0xdffd('0x17')][_0xdffd('0x0')][_0xdffd('0xa')](_0x517ff0=>_0x517ff0['config'][_0xdffd('0x2')]('collaboration.channelId')==_0xa85ebd)),!_0x38065c)throw new _0xcd524e(_0xdffd('0x18'),null);const _0x53e6d0=_0x38065c['plugins'],_0x48c0d1=_0x53e6d0['has'](_0xdffd('0x1'))?_0x53e6d0[_0xdffd('0x2')](_0xdffd('0x1')):void 0x0,_0x4a6720=_0x53e6d0[_0xdffd('0x5')](_0xdffd('0x16'))&&_0x53e6d0[_0xdffd('0x2')](_0xdffd('0x16')),_0x1d1302=_0x1724b6['includes'](_0xdffd('0x11')),_0x48e2d6=_0x1724b6[_0xdffd('0x7')](_0xdffd('0xb')),_0x4d9897=_0x1724b6[_0xdffd('0x7')](_0xdffd('0xe')),_0x5da64a=_0x1724b6[_0xdffd('0x7')](_0xdffd('0xc')),_0x47c9e0=_0x5da64a||_0x4d9897,_0x1547b6=_0x47c9e0||_0x48e2d6,_0x5dfe7a=_0x1d1302||_0x47c9e0;(_0x4a6720&&(_0x4a6720[_0xdffd('0x14')]=!_0x1d1302&&_0x1547b6),_0x38065c instanceof _0x24ca49)&&(!(_0x1d1302||_0x1547b6&&_0x48c0d1)?_0x38065c[_0xdffd('0x9')](_0xdffd('0x12')):_0x38065c['disableReadOnlyMode'](_0xdffd('0x12')));if(_0x48c0d1){_0x48c0d1['setPermissions']({'admin':_0x4d9897,'modifyAll':_0x48e2d6,'write':_0x5da64a,'resolve':_0x5dfe7a},_0xa85ebd);const _0x1b9e3e=_0x38065c instanceof _0x24ca49&&_0x38065c[_0xdffd('0xf')][_0xdffd('0x2')]('addCommentThread');_0x1b9e3e&&(_0x47c9e0?_0x1b9e3e[_0xdffd('0x8')](_0xdffd('0xd')):_0x1b9e3e[_0xdffd('0x4')]('noPermissions'));}}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x145d=['ck-user','ck-user__img','notificationView','name','ck\x20ck-user__name\x20ck-user__name--hidden','push','ck-user__anonymous','isAnonymous','ck-user__notification','content','setTemplate','ck-user__icon','avatar','url(\x27','initials','div','extendTemplate','ck-user__avatar'];(function(_0x5c3e81,_0x145de1){const _0x3c826e=function(_0x3d1187){while(--_0x3d1187){_0x5c3e81['push'](_0x5c3e81['shift']());}};_0x3c826e(++_0x145de1);}(_0x145d,0x1e7));const _0x3c82=function(_0x5c3e81,_0x145de1){_0x5c3e81=_0x5c3e81-0x0;let _0x3c826e=_0x145d[_0x5c3e81];return _0x3c826e;};import{View as _0x26a12b,IconView as _0x26745c}from'ckeditor5/src/ui';import _0x2162f7 from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class C extends _0x26a12b{constructor(_0x10a1dd,_0x325a0a,_0x3403e5){super(_0x10a1dd),this[_0x3c82('0x2')]=_0x325a0a[_0x3c82('0x2')],this[_0x3c82('0x1')]=null;const _0x390282=['ck',_0x3c82('0x0')];if(_0x325a0a[_0x3c82('0x6')]&&_0x390282['push'](_0x3c82('0x5')),_0x325a0a['avatar']&&_0x390282['push'](_0x3c82('0x10')),_0x3403e5){const _0x50245a=new _0x26745c();_0x50245a[_0x3c82('0xf')]({'attributes':{'class':[_0x3c82('0xa')]}}),_0x50245a[_0x3c82('0x8')]=_0x2162f7,this[_0x3c82('0x1')]={'tag':'div','attributes':{'class':['ck',_0x3c82('0x7')],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x3403e5},'children':[_0x50245a]};}const _0x1e60d6=[{'tag':_0x3c82('0xe'),'attributes':{'class':_0x390282,'style':{'background-image':_0x325a0a[_0x3c82('0xb')]?_0x3c82('0xc')+_0x325a0a[_0x3c82('0xb')]+'\x27)':''}}},{'tag':_0x3c82('0xe'),'attributes':{'class':_0x325a0a['avatar']?_0x3c82('0x3'):'ck\x20ck-user__name'},'children':[{'text':_0x325a0a[_0x3c82('0xd')]}]}];this[_0x3c82('0x1')]&&_0x1e60d6[_0x3c82('0x4')](this[_0x3c82('0x1')]),this[_0x3c82('0x9')]({'tag':_0x3c82('0xe'),'attributes':{'class':['ck',_0x3c82('0x11')],'data-user-id':_0x325a0a['id']},'children':_0x1e60d6});}}
|
package/src/users.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x29cc=['isAnonymous','_id','trial-license-key-reached-limit-time','users-me-missing-user','licenseKey','add','ck-user__marker--','get','users.colorsCount','_isAnonymous','requires','users-me-already-defined','anonymous-user','destroy','config','users','avatar','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.','ck-user__bg-color--','users.anonymousUserId','charAt','define','_addAnonymousUser','getOperationAuthor','users-add-invalid-id','locale','licenseKeyInvalid','toUpperCase','pluginName','licenseKeyTrialLimit:operations','name','_getInitial','useAnonymousUser','getUser','color','defineMe','decorate','length','_licenseKeyCheckInterval','_locale','init','ck-user__selection--','_myId','trial-license-key-reached-limit-changes','licenseKeyTrialLimit:time','_lastColor','addUser','Anonymous','_getNextColor','users-add-duplicated-id','context','licenseKeyTrial','licenseKeyTrialLimit:revisions'];(function(_0x3c9f7b,_0x29cca9){const _0x5d97bb=function(_0x19b29c){while(--_0x19b29c){_0x3c9f7b['push'](_0x3c9f7b['shift']());}};_0x5d97bb(++_0x29cca9);}(_0x29cc,0x162));const _0x5d97=function(_0x3c9f7b,_0x29cca9){_0x3c9f7b=_0x3c9f7b-0x0;let _0x5d97bb=_0x29cc[_0x3c9f7b];return _0x5d97bb;};import{ContextPlugin as _0x2be292}from'ckeditor5/src/core';import{Collection as _0x11d4ab,CKEditorError as _0x22d71d}from'ckeditor5/src/utils';import _0x7acd5f from'./permissions';import{getTranslation as _0xa5d6e2}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x2be292{static get[_0x5d97('0x2d')](){return'Users';}static get[_0x5d97('0x1b')](){return[_0x7acd5f];}constructor(_0x51ebe7){super(_0x51ebe7),this[_0x5d97('0xe')][_0x5d97('0x1f')][_0x5d97('0x26')](_0x5d97('0x24'),_0x5d97('0x1d')),this[_0x5d97('0xe')][_0x5d97('0x1f')][_0x5d97('0x26')](_0x5d97('0x19'),0x8),this['users']=new _0x11d4ab(),this[_0x5d97('0x3')]=_0x51ebe7[_0x5d97('0x2a')],this[_0x5d97('0x2')]=null,this[_0x5d97('0x9')]=0x0,this[_0x5d97('0x6')]=null,this[_0x5d97('0x0')](_0x5d97('0x28'));}[_0x5d97('0x4')](){const _0x2e371b=this[_0x5d97('0xe')];this[_0x5d97('0x15')]=_0x2e371b['config'][_0x5d97('0x18')](_0x5d97('0x15'));const _0x58321b=[_0x5d97('0xf'),_0x5d97('0x2b'),'licenseKeyValid','licenseKeyTrialLimit:operations','licenseKeyTrialLimit:time','licenseKeyTrialLimit:revisions'];this[_0x5d97('0x2')]=setInterval(()=>{let _0x1d35b5;for(const _0x162cd5 in _0x2e371b){const _0x2dc622=_0x2e371b[_0x162cd5];if(_0x58321b['includes'](_0x2dc622)){delete _0x2e371b[_0x162cd5],_0x1d35b5=_0x2dc622;break;}}if(_0x5d97('0x2b')===_0x1d35b5)throw clearInterval(this[_0x5d97('0x2')]),new _0x22d71d('invalid-license-key',null);if('licenseKeyTrial'===_0x1d35b5&&console['info'](_0x5d97('0x22')),_0x5d97('0x2e')===_0x1d35b5)throw clearInterval(this[_0x5d97('0x2')]),new _0x22d71d(_0x5d97('0x7'),null);if(_0x5d97('0x8')===_0x1d35b5)throw clearInterval(this[_0x5d97('0x2')]),new _0x22d71d(_0x5d97('0x13'),null);if(_0x5d97('0x10')===_0x1d35b5)throw clearInterval(this[_0x5d97('0x2')]),new _0x22d71d('trial-license-key-reached-limit-revisions',null);'licenseKeyValid'===_0x1d35b5&&clearInterval(this[_0x5d97('0x2')]);},0x3e8),this[_0x5d97('0x27')]();}get['me'](){return null==this[_0x5d97('0x6')]?null:this[_0x5d97('0x32')](this[_0x5d97('0x6')]);}[_0x5d97('0xa')]({id:_0x33713a,name:_0x45eae4,..._0xc3f0d}){if(!_0x33713a||'string'!=typeof _0x33713a)throw new _0x22d71d(_0x5d97('0x29'));if(this['users']['has'](_0x33713a))throw new _0x22d71d(_0x5d97('0xd'),null,{'id':_0x33713a});const _0x14f6b9={..._0xc3f0d,'id':_0x33713a,'name':a(this[_0x5d97('0x3')],_0x45eae4),'color':this[_0x5d97('0xc')]()};_0x14f6b9[_0x5d97('0x2f')]=a(this[_0x5d97('0x3')],_0x14f6b9[_0x5d97('0x2f')]);const _0xe5a5b6=new User(_0x14f6b9);return this[_0x5d97('0x20')][_0x5d97('0x16')](_0xe5a5b6),_0xe5a5b6;}[_0x5d97('0x32')](_0x3950f6){return this[_0x5d97('0x20')]['get'](_0x3950f6);}[_0x5d97('0x31')](){const _0x3e7b63=this[_0x5d97('0xe')][_0x5d97('0x1f')][_0x5d97('0x18')]('users.anonymousUserId');this[_0x5d97('0x6')]||this[_0x5d97('0x34')](_0x3e7b63);}[_0x5d97('0x34')](_0x2e3170){if(this['_myId'])throw new _0x22d71d(_0x5d97('0x1c'),null);if(!this[_0x5d97('0x32')](_0x2e3170))throw new _0x22d71d(_0x5d97('0x14'),null);this[_0x5d97('0x6')]=_0x2e3170;}[_0x5d97('0x28')](){return this['me'];}[_0x5d97('0x1e')](){super[_0x5d97('0x1e')](),clearInterval(this[_0x5d97('0x2')]);}['_getNextColor'](){const _0x47dac1=this[_0x5d97('0xe')][_0x5d97('0x1f')][_0x5d97('0x18')](_0x5d97('0x19'));return this[_0x5d97('0x9')]>=_0x47dac1&&(this[_0x5d97('0x9')]=0x0),new u(this[_0x5d97('0x9')]++);}[_0x5d97('0x27')](){const _0x3e5e91=this[_0x5d97('0xe')][_0x5d97('0x1f')][_0x5d97('0x18')](_0x5d97('0x24'));this['addUser']({'id':_0x3e5e91,'name':_0xa5d6e2(this[_0x5d97('0x3')],_0x5d97('0xb'))})[_0x5d97('0x1a')]=!0x0;}}export class User{constructor(_0x852199){this['id']=_0x852199['id'],this[_0x5d97('0x33')]=_0x852199[_0x5d97('0x33')],this[_0x5d97('0x2f')]=_0x852199[_0x5d97('0x2f')],this[_0x5d97('0x21')]=_0x852199[_0x5d97('0x21')],this[_0x5d97('0x1a')]=!0x1;}get[_0x5d97('0x11')](){return this[_0x5d97('0x1a')];}get['initials'](){const _0x443e34=this[_0x5d97('0x2f')]['split']('\x20');return 0x1===_0x443e34[_0x5d97('0x1')]?this[_0x5d97('0x30')](_0x443e34[0x0]):this['_getInitial'](_0x443e34[0x0])+this[_0x5d97('0x30')](_0x443e34[_0x443e34['length']-0x1]);}['_getInitial'](_0x346c06){return _0x346c06[_0x5d97('0x25')](0x0)[_0x5d97('0x2c')]();}}function a(_0x397e74,_0x113082=''){return''==(_0x113082=_0x113082['trim']())?_0xa5d6e2(_0x397e74,_0x5d97('0xb')):_0x113082;}class u{constructor(_0x181cad){this[_0x5d97('0x12')]=_0x181cad;}['getBackgroundColorClass'](){return _0x5d97('0x23')+this['_id'];}['getSelectionClass'](){return _0x5d97('0x5')+this['_id'];}['getMarkerClass'](){return _0x5d97('0x17')+this[_0x5d97('0x12')];}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
export function getTranslation(
|
23
|
+
export function getTranslation(_0x27b8d4,_0x439ef9){const t=_0x27b8d4['t'];switch(_0x439ef9){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 _0x1d92=['once','cancel','set','message','_removeConfirm','confirmView','locale','cancelConfirm','remove','isConfirm','deregisterChild','focus','appendChild','element','registerChild','render','submit'];(function(_0x4d9d37,_0x1d92ac){var _0x2b554b=function(_0x5207b3){while(--_0x5207b3){_0x4d9d37['push'](_0x4d9d37['shift']());}};_0x2b554b(++_0x1d92ac);}(_0x1d92,0x1aa));var _0x2b55=function(_0x4d9d37,_0x1d92ac){_0x4d9d37=_0x4d9d37-0x0;var _0x2b554b=_0x1d92[_0x4d9d37];return _0x2b554b;};import _0x3afd86 from'./confirmview';export default function m(_0x3843f2){return class extends _0x3843f2{['showConfirm'](_0x1ac79b,_0x37f908){return this[_0x2b55('0x4')]=new _0x3afd86(this[_0x2b55('0x5')]),this[_0x2b55('0x4')][_0x2b55('0xe')](),this['confirmView'][_0x2b55('0x2')]=_0x1ac79b,this[_0x2b55('0x4')][_0x2b55('0x10')]('cancel',()=>{this['_removeConfirm']();}),this[_0x2b55('0x4')]['once'](_0x2b55('0xf'),()=>{this[_0x2b55('0x3')]();}),_0x37f908[_0x2b55('0xb')](this['confirmView']['element']),this[_0x2b55('0xd')](this[_0x2b55('0x4')]),this[_0x2b55('0xc')][_0x2b55('0xa')](),this[_0x2b55('0x1')](_0x2b55('0x8'),!0x0),new Promise(_0x364acc=>this[_0x2b55('0x4')]['on'](_0x2b55('0xf'),_0x364acc));}[_0x2b55('0x6')](){this['isConfirm']&&this[_0x2b55('0x4')]['fire'](_0x2b55('0x0'));}[_0x2b55('0x3')](){this[_0x2b55('0xc')]&&this[_0x2b55('0x4')]&&this[_0x2b55('0x4')][_0x2b55('0xc')]&&(this[_0x2b55('0xc')][_0x2b55('0xa')](),this[_0x2b55('0x4')]['element'][_0x2b55('0x7')](),this[_0x2b55('0x9')](this[_0x2b55('0x4')]),this['isConfirm']=!0x1,this[_0x2b55('0x4')]['destroy'](),this[_0x2b55('0x4')]=void 0x0);}};}
|
package/src/utils/confirmview.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x3f73=['submit','ck-thread__remove-confirm-actions','message','set','cancelView','cancel','_createButtonView','Are\x20you\x20sure?','ck-thread__remove-confirm-','icon','div','fire','execute','ck-thread__remove-confirm','setTemplate','Yes','extendTemplate','submitView'];(function(_0x22d6cf,_0x3f73e6){const _0x116c3d=function(_0x288e7c){while(--_0x288e7c){_0x22d6cf['push'](_0x22d6cf['shift']());}};_0x116c3d(++_0x3f73e6);}(_0x3f73,0xf6));const _0x116c=function(_0x22d6cf,_0x3f73e6){_0x22d6cf=_0x22d6cf-0x0;let _0x116c3d=_0x3f73[_0x22d6cf];return _0x116c3d;};import{View as _0x34ea97,ButtonView as _0x236c7c}from'ckeditor5/src/ui';import{icons as _0x58fc7e}from'ckeditor5/src/core';import{getTranslation as _0x2ac181}from'./common-translations';export default class h extends _0x34ea97{constructor(_0x2c263b){super(_0x2c263b);const _0x49ee44=this['bindTemplate'];this[_0x116c('0x5')]=this[_0x116c('0xc')](_0x2c263b,_0x2ac181(_0x2c263b,_0x116c('0x3')),_0x58fc7e['check'],_0x116c('0x6')),this['cancelView']=this[_0x116c('0xc')](_0x2c263b,_0x2ac181(_0x2c263b,'No'),_0x58fc7e['cancel'],_0x116c('0xb')),this[_0x116c('0x9')]('message',_0x2ac181(_0x2c263b,_0x116c('0xd'))),this[_0x116c('0x2')]({'tag':'div','attributes':{'class':[_0x116c('0x1')]},'children':[{'tag':_0x116c('0x10'),'attributes':{'class':'ck-thread__remove-confirm-inner'},'children':[{'tag':'p','children':[{'text':_0x49ee44['to'](_0x116c('0x8'))}]},{'tag':'div','attributes':{'class':_0x116c('0x7')},'children':[this[_0x116c('0x5')],this[_0x116c('0xa')]]}]}]});}[_0x116c('0xc')](_0x374e97,_0x211ce0,_0x171c87,_0xf9355d){const _0x561ca7=new _0x236c7c(_0x374e97);return _0x561ca7['label']=_0x211ce0,_0x561ca7[_0x116c('0xf')]=_0x171c87,_0x561ca7[_0x116c('0x4')]({'attributes':{'class':_0x116c('0xe')+_0xf9355d}}),_0x561ca7['on'](_0x116c('0x0'),()=>this[_0x116c('0x11')](_0xf9355d)),_0x561ca7;}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x2db7=['invalid-date-time-format','\x27Today\x27\x20hh:mma','MM-dd-yyyy\x20hh:mma','\x27Last\x27\x20EEEE\x20hh:mma','function','dateTimeFormat','\x27Yesterday\x27\x20hh:mma','string'];(function(_0xa6a677,_0x2db790){const _0xcc4013=function(_0x5ca3fe){while(--_0x5ca3fe){_0xa6a677['push'](_0xa6a677['shift']());}};_0xcc4013(++_0x2db790);}(_0x2db7,0x8f));const _0xcc40=function(_0xa6a677,_0x2db790){_0xa6a677=_0xa6a677-0x0;let _0xcc4013=_0x2db7[_0xa6a677];return _0xcc4013;};import _0x1bdf40 from'date-fns/format';import _0x1f3810 from'date-fns/parseISO';import _0x51aad5 from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x24a427}from'ckeditor5/src/utils';export default function E(_0x3b7ca7={}){if(void 0x0!==_0x3b7ca7[_0xcc40('0x6')]&&_0xcc40('0x5')!=typeof _0x3b7ca7[_0xcc40('0x6')])throw new _0x24a427(_0xcc40('0x1'));return _0x23613b=>{const _0x89c2f1=_0xcc40('0x0')==typeof _0x23613b?_0x1f3810(_0x23613b):_0x23613b,_0x2a58b6=new Date(),_0x181a10=_0x51aad5(_0x2a58b6,_0x89c2f1);return _0x3b7ca7[_0xcc40('0x6')]?_0x3b7ca7[_0xcc40('0x6')](_0x89c2f1):_0x1bdf40(_0x89c2f1,0x0===_0x181a10?_0xcc40('0x2'):0x1===_0x181a10?_0xcc40('0x7'):_0x181a10<0x7?_0xcc40('0x4'):_0xcc40('0x3'));};}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x581c=['map','push','domElement','name','markerNameToElements','mapViewToDom','view','sort','item','length','mapper','domConverter','getClientRects','from'];(function(_0x533c48,_0x581c95){const _0x35693d=function(_0x31cae7){while(--_0x31cae7){_0x533c48['push'](_0x533c48['shift']());}};_0x35693d(++_0x581c95);}(_0x581c,0x1c1));const _0x3569=function(_0x533c48,_0x581c95){_0x533c48=_0x533c48-0x0;let _0x35693d=_0x581c[_0x533c48];return _0x35693d;};import{first as _0xe67320}from'ckeditor5/src/utils';export default function k(_0x1e7677,_0x5c1357){const _0x1757fb=_0x1e7677[_0x3569('0x9')]['markerNameToElements'](_0x5c1357[_0x3569('0x2')]);if(!_0x1757fb)return null;const _0x895360=_0xe67320(_0x1757fb['values']());return _0x1e7677[_0x3569('0x5')][_0x3569('0xa')]['mapViewToDom'](_0x895360)||null;}export function getAllMarkersDomElementsSorted(_0x1514b6,_0x21b37d){if(0x0===_0x21b37d['length'])return null;const _0x1a329e=[],_0x189c9b=_0x1514b6['view'][_0x3569('0xa')];for(const _0x55e309 of _0x21b37d){const _0x1432a0=_0x1514b6['mapper'][_0x3569('0x3')](_0x55e309[_0x3569('0x2')]);if(!_0x1432a0)continue;const _0x2d327d=Array[_0x3569('0xc')](_0x1432a0)[_0x3569('0xd')](_0x233b7c=>_0x189c9b[_0x3569('0x4')](_0x233b7c))['filter'](_0x18e097=>!!_0x18e097);_0x1a329e[_0x3569('0x0')](..._0x2d327d);}if(0x0===_0x1a329e[_0x3569('0x8')])return null;const _0x37f144=[];for(const _0x59ac06 of _0x1a329e){const _0x37eabc=_0x59ac06[_0x3569('0xb')]()[_0x3569('0x7')](0x0);_0x37eabc&&_0x37f144['push']({'x':_0x37eabc['x'],'y':_0x37eabc['y'],'domElement':_0x59ac06});}return 0x0===_0x37f144[_0x3569('0x8')]?null:(_0x37f144[_0x3569('0x6')]((_0x2f5777,_0x1667a4)=>_0x2f5777['y']-_0x1667a4['y']||_0x2f5777['x']-_0x1667a4['x']),_0x37f144['map'](_0x208716=>_0x208716[_0x3569('0x1')]));}
|
package/src/utils/hashobject.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x3eb3=['string','object','sign','keys','charCodeAt','sort','boolean','toString'];(function(_0x11b20e,_0x3eb3a8){const _0x154b8f=function(_0x556451){while(--_0x556451){_0x11b20e['push'](_0x11b20e['shift']());}};_0x154b8f(++_0x3eb3a8);}(_0x3eb3,0xae));const _0x154b=function(_0x11b20e,_0x3eb3a8){_0x11b20e=_0x11b20e-0x0;let _0x154b8f=_0x3eb3[_0x11b20e];return _0x154b8f;};export default function b(_0x3531c6){let _0x339692=0x0,_0x3f2c09=0x0;for(const _0x4fac2e of g(_0x3531c6))_0x339692=(_0x339692<<0x5)-_0x339692+_0x4fac2e,_0x339692&=_0x339692,[_0x339692,_0x3f2c09]=[_0x3f2c09,_0x339692];return O(_0x339692)+O(_0x3f2c09);}function*j(_0x3febc8){_0x3febc8?_0x154b('0x0')==typeof _0x3febc8?yield 0x1:Array['isArray'](_0x3febc8)?yield*function*(_0x134e8b){for(const _0x1d91e8 of _0x134e8b)yield*j(_0x1d91e8);}(_0x3febc8):_0x154b('0x3')==typeof _0x3febc8?yield*g(_0x3febc8):_0x154b('0x2')==typeof _0x3febc8?yield*A(_0x3febc8):'number'==typeof _0x3febc8&&(yield _0x3febc8):yield 0x0;}function*g(_0x3866cd){if(yield M('{'),_0x3866cd){const _0x1ea391=Object[_0x154b('0x5')](_0x3866cd)[_0x154b('0x7')]();for(const _0x54f1e1 of _0x1ea391){yield*A(_0x54f1e1),yield M(':');const _0x564ce9=_0x3866cd[_0x54f1e1];yield*j(_0x564ce9);}}yield M('}');}function*A(_0x5dcb15){yield M('\x22');for(const _0x5b90d of _0x5dcb15)yield M(_0x5b90d);yield M('\x22');}function M(_0x114f30){return _0x114f30[_0x154b('0x6')](0x0);}function O(_0x24e85d){return(_0x24e85d*=Math[_0x154b('0x4')](_0x24e85d))[_0x154b('0x1')](0x24);}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x4dd5=['plugins','constructor','has','pluginName','WebSocketGateway','_context','WProofreader','from','DocumentOutline','set','concat','get','removePlugins','toolbar','includes','config','builtinPlugins','requires','context','filter','string','length','extraPlugins','map','every','rootsAttributes'];(function(_0x109c32,_0x4dd579){const _0x39b586=function(_0x53cb4f){while(--_0x53cb4f){_0x109c32['push'](_0x109c32['shift']());}};_0x39b586(++_0x4dd579);}(_0x4dd5,0xa9));const _0x39b5=function(_0x109c32,_0x4dd579){_0x109c32=_0x109c32-0x0;let _0x39b586=_0x4dd5[_0x109c32];return _0x39b586;};const w=['initialData',_0x39b5('0x5'),_0x39b5('0x0'),_0x39b5('0xc')],W=[_0x39b5('0x11'),'RevisionTracker','Autosave','WordCount',_0x39b5('0x15'),_0x39b5('0x13')];function v(_0x2ff996,_0x4e4958,_0x23418d,_0x21e5bb=[]){const _0xe3b668=_0x39b5('0x7')==typeof _0x2ff996?_0x23418d[_0x39b5('0x18')](_0x2ff996)[_0x39b5('0xe')]:_0x2ff996,_0x46c9a6=_0xe3b668['pluginName']||_0xe3b668['name'];if(_0x4e4958[_0x39b5('0xf')](_0x46c9a6))return _0x4e4958[_0x39b5('0x18')](_0x46c9a6);if(_0x4e4958['set'](_0x46c9a6,!0x0),_0x46c9a6&&W[_0x39b5('0x17')](_0x21e5bb)[_0x39b5('0x1')](_0x46c9a6))return _0x4e4958['set'](_0x46c9a6,!0x1),!0x1;if(!_0xe3b668[_0x39b5('0x4')])return _0x4e4958['set'](_0x46c9a6,!0x0),!0x0;const _0x34d032=_0xe3b668[_0x39b5('0x4')][_0x39b5('0xb')](_0x4b2b12=>v(_0x4b2b12,_0x4e4958,_0x23418d,_0x21e5bb));return _0x4e4958[_0x39b5('0x16')](_0x46c9a6,_0x34d032),_0x34d032;}export default function D(_0x544810,_0x14bf01){const _0xbfa697={};for(const _0x5d7af of _0x544810[_0x39b5('0x2')]['names']())w['includes'](_0x5d7af)||(_0xbfa697[_0x5d7af]=_0x544810[_0x39b5('0x2')][_0x39b5('0x18')](_0x5d7af));const _0x3320c3=_0xbfa697[_0x39b5('0xd')]||[],_0xe4ded5=_0x544810['constructor'][_0x39b5('0x3')]||[],_0x561c02=_0x3320c3[_0x39b5('0x8')]?_0x3320c3:_0xe4ded5,_0xe6fe1a=_0xbfa697['extraPlugins']||[];delete _0xbfa697[_0x39b5('0x9')];const _0x3fd2d3=_0xbfa697[_0x39b5('0x19')]||[];delete _0xbfa697[_0x39b5('0x19')];const _0x3be2c9=_0x544810[_0x39b5('0x12')]['config']['get'](_0x39b5('0xd'))||[],_0x4dfaaf=_0x561c02[_0x39b5('0x17')](_0xe6fe1a)['concat'](_0x3be2c9)[_0x39b5('0xa')](_0x4e7cd8=>'string'==typeof _0x4e7cd8?_0xe4ded5['find'](_0x14fa33=>_0x14fa33[_0x39b5('0x10')]==_0x4e7cd8):_0x4e7cd8)[_0x39b5('0x6')](_0x4d6ea8=>!_0x3fd2d3[_0x39b5('0x1')](_0x4d6ea8)&&!_0x3fd2d3['includes'](_0x4d6ea8[_0x39b5('0x10')])),_0x4aa8f9=Array[_0x39b5('0x14')](new Set(_0x4dfaaf)),_0x44f69e=new Map();return _0xbfa697[_0x39b5('0xd')]=_0x4aa8f9[_0x39b5('0x6')](_0x385a81=>v(_0x385a81,_0x44f69e,_0x544810['plugins'],_0x14bf01)),_0xbfa697;}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x36c8=['isEqual','includes','length','getRange','document','end','start','containsPosition','focus','change:range','markers','push','selection'];(function(_0x339180,_0x36c862){const _0x5a7968=function(_0x17d856){while(--_0x17d856){_0x339180['push'](_0x339180['shift']());}};_0x5a7968(++_0x36c862);}(_0x36c8,0x13c));const _0x5a79=function(_0x339180,_0x36c862){_0x339180=_0x339180-0x0;let _0x5a7968=_0x36c8[_0x339180];return _0x5a7968;};export default function q(_0x5008aa,_0x548da0){const _0x543614=[];_0x5008aa['document'][_0x5a79('0x8')]['on'](_0x5a79('0x5'),()=>{const _0xac0b19=function(_0x1df962,_0x760fd7){const _0x351655=[];for(const _0xa0e98b of _0x1df962[_0x5a79('0x6')]){const _0x3c0121=_0xa0e98b[_0x5a79('0xc')]();(_0x3c0121[_0x5a79('0x3')](_0x760fd7)||_0x3c0121[_0x5a79('0x2')][_0x5a79('0x9')](_0x760fd7)||_0x3c0121[_0x5a79('0x1')]['isEqual'](_0x760fd7))&&_0x351655['push'](_0xa0e98b);}return _0x351655;}(_0x5008aa,_0x5008aa[_0x5a79('0x0')]['selection'][_0x5a79('0x4')]),_0x5a6c27=[],_0x53f153=[],_0x48554f=[];for(const _0x733fbb of _0x543614)_0xac0b19[_0x5a79('0xa')](_0x733fbb)||_0x5a6c27['push'](_0x733fbb);for(const _0x2e0bd6 of _0xac0b19)_0x543614[_0x5a79('0xa')](_0x2e0bd6)||_0x53f153['push'](_0x2e0bd6),_0x48554f[_0x5a79('0x7')](_0x2e0bd6);(_0x5a6c27['length']||_0x53f153[_0x5a79('0xb')])&&_0x548da0({'left':_0x5a6c27,'entered':_0x53f153}),_0x543614[_0x5a79('0xb')]=0x0,_0x543614['push'](..._0x48554f);});}
|
package/src/utils/trim-html.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x5525=['join','push','...','match','substring','length','startsWith','indexOf','slice','replace'];(function(_0x13ee48,_0x5525c9){const _0x4d240e=function(_0x424cda){while(--_0x424cda){_0x13ee48['push'](_0x13ee48['shift']());}};_0x4d240e(++_0x5525c9);}(_0x5525,0xb7));const _0x4d24=function(_0x13ee48,_0x5525c9){_0x13ee48=_0x13ee48-0x0;let _0x4d240e=_0x5525[_0x13ee48];return _0x4d240e;};export default function z(_0x12dbad,{limit:_0x236cd9,suffix:_0x183202=_0x4d24('0x9')}){const _0x169c80=[];let _0x11aea7=0x0;const _0x51bdde=_0x12dbad[_0x4d24('0x6')](/</g,'\x0a<')[_0x4d24('0x6')](/>/g,'>\x0a')['replace'](/^\n/g,'')[_0x4d24('0x6')](/\n$/g,'')['split']('\x0a');for(let _0x812317=0x0;_0x812317<_0x51bdde['length'];_0x812317++){let _0x4aebf0=_0x51bdde[_0x812317];const _0x4d09b0=Z(_0x4aebf0);if(_0x4aebf0['startsWith']('<')){if(_0x11aea7>=_0x236cd9){const _0x156dc3=_0x4aebf0['match'](/[a-zA-Z]+/);if(!_0x156dc3){_0x51bdde[_0x812317]='';continue;}const _0x5f5c5b=_0x156dc3[0x0];_0x4aebf0[_0x4d24('0x3')]('</')?(_0x169c80[_0x4d24('0x2')]&&(_0x4aebf0=''),_0x169c80['pop']()):(_0x169c80[_0x4d24('0x8')](_0x5f5c5b),_0x4aebf0='');}}else{if(_0x11aea7>=_0x236cd9)_0x4aebf0='';else{if(_0x11aea7+_0x4d09b0[_0x4d24('0x2')]>=_0x236cd9){let _0x1fee14=_0x236cd9-_0x11aea7;if('\x20'===_0x4d09b0[_0x1fee14-0x1])_0x1fee14--;else{const _0x3b10cc=_0x4d09b0[_0x4d24('0x5')](_0x1fee14)[_0x4d24('0x4')]('\x20');-0x1!==_0x3b10cc?_0x1fee14+=_0x3b10cc:_0x1fee14=_0x4aebf0['length'];}_0x4aebf0=_0x4d09b0[_0x4d24('0x5')](0x0,_0x1fee14)[_0x4d24('0x7')]('')+_0x183202,_0x11aea7=_0x236cd9;}else _0x11aea7+=_0x4d09b0[_0x4d24('0x2')];}}_0x51bdde[_0x812317]=_0x4aebf0;}return _0x51bdde[_0x4d24('0x7')]('\x0a')[_0x4d24('0x6')](/\n/g,'');}function Z(_0x453aa6){const _0xd18a40=[];for(let _0x5b4a71=0x0;_0x5b4a71<_0x453aa6[_0x4d24('0x2')];_0x5b4a71++){const _0x346596=_0x453aa6[_0x4d24('0x1')](_0x5b4a71)[_0x4d24('0x0')](/^&[a-z0-9#]+;/);if(_0x346596){const _0x4d2412=_0x346596[0x0];_0xd18a40[_0x4d24('0x8')](_0x4d2412),_0x5b4a71+=_0x4d2412[_0x4d24('0x2')]-0x1;}else _0xd18a40[_0x4d24('0x8')](_0x453aa6[_0x5b4a71]);}return _0xd18a40;}
|