@ckeditor/ckeditor5-collaboration-core 0.0.0-nightly-20231130.0 → 0.0.0-nightly-20231202.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-20231202.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-20231202.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 _0x2e25=['includes','has','Permissions','setPermissions','editors','context','no-permissions','addCommentThread','get','pluginName','find','clearForceDisabled','comment:modify_all','enableReadOnlyMode','CommentsRepository','forceDisabled','disableReadOnlyMode','collaboration.channelId','config','CommentsOnly','comment:admin'];(function(_0x5afb9e,_0x2e2571){const _0x122401=function(_0x22b74b){while(--_0x22b74b){_0x5afb9e['push'](_0x5afb9e['shift']());}};_0x122401(++_0x2e2571);}(_0x2e25,0x1e2));const _0x1224=function(_0x5afb9e,_0x2e2571){_0x5afb9e=_0x5afb9e-0x0;let _0x122401=_0x2e25[_0x5afb9e];return _0x122401;};import{ContextPlugin as _0x4e8822,Editor as _0x492c70}from'ckeditor5/src/core';import{CKEditorError as _0x31a0f3}from'ckeditor5/src/utils';export default class n extends _0x4e8822{static get[_0x1224('0xa')](){return _0x1224('0x3');}[_0x1224('0x4')](_0x2b08f0,_0x862490){let _0xc7a442;if(_0x862490||(_0x862490=this[_0x1224('0x6')]['config'][_0x1224('0x9')](_0x1224('0x12'))),this[_0x1224('0x6')]['config']['get'](_0x1224('0x12'))==_0x862490?_0xc7a442=this[_0x1224('0x6')]:'editors'in this[_0x1224('0x6')]&&this[_0x1224('0x6')][_0x1224('0x5')]&&(_0xc7a442=this[_0x1224('0x6')][_0x1224('0x5')][_0x1224('0xb')](_0x4cbb41=>_0x4cbb41[_0x1224('0x13')][_0x1224('0x9')](_0x1224('0x12'))==_0x862490)),!_0xc7a442)throw new _0x31a0f3('permissions-set-permissions-invalid-channel-id',null);const _0x575128=_0xc7a442['plugins'],_0x2682d=_0x575128[_0x1224('0x2')](_0x1224('0xf'))?_0x575128[_0x1224('0x9')](_0x1224('0xf')):void 0x0,_0x62fb09=_0x575128[_0x1224('0x2')](_0x1224('0x14'))&&_0x575128[_0x1224('0x9')]('CommentsOnly'),_0x36aad3=_0x2b08f0[_0x1224('0x1')]('document:write'),_0x20a3a7=_0x2b08f0['includes'](_0x1224('0xd')),_0x4a6dcd=_0x2b08f0['includes'](_0x1224('0x0')),_0x4b6351=_0x2b08f0['includes']('comment:write'),_0x5bd3de=_0x4b6351||_0x4a6dcd,_0x3b5b17=_0x5bd3de||_0x20a3a7,_0x13c990=_0x36aad3||_0x5bd3de;(_0x62fb09&&(_0x62fb09['isEnabled']=!_0x36aad3&&_0x3b5b17),_0xc7a442 instanceof _0x492c70)&&(!(_0x36aad3||_0x3b5b17&&_0x2682d)?_0xc7a442[_0x1224('0xe')](_0x1224('0x7')):_0xc7a442[_0x1224('0x11')]('no-permissions'));if(_0x2682d){_0x2682d['setPermissions']({'admin':_0x4a6dcd,'modifyAll':_0x20a3a7,'write':_0x4b6351,'resolve':_0x13c990},_0x862490);const _0x31c057=_0xc7a442 instanceof _0x492c70&&_0xc7a442['commands'][_0x1224('0x9')](_0x1224('0x8'));_0x31c057&&(_0x5bd3de?_0x31c057[_0x1224('0xc')]('noPermissions'):_0x31c057[_0x1224('0x10')]('noPermissions'));}}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x436b=['name','ck-user','ck-user__notification','ck\x20ck-user__name\x20ck-user__name--hidden','ck-user__anonymous','setTemplate','div','ck\x20ck-user__name','ck-user__img','isAnonymous','push','notificationView','avatar','url(\x27','initials'];(function(_0x3b3576,_0x436bd2){const _0x1c5b09=function(_0xe688d3){while(--_0xe688d3){_0x3b3576['push'](_0x3b3576['shift']());}};_0x1c5b09(++_0x436bd2);}(_0x436b,0x15c));const _0x1c5b=function(_0x3b3576,_0x436bd2){_0x3b3576=_0x3b3576-0x0;let _0x1c5b09=_0x436b[_0x3b3576];return _0x1c5b09;};import{View as _0x1b42a6,IconView as _0x1bc3a2}from'ckeditor5/src/ui';import _0x2a5022 from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class C extends _0x1b42a6{constructor(_0x16cd76,_0x7a9ecc,_0x3ff3e5){super(_0x16cd76),this[_0x1c5b('0xc')]=_0x7a9ecc[_0x1c5b('0xc')],this['notificationView']=null;const _0x180693=['ck',_0x1c5b('0x5')];if(_0x7a9ecc[_0x1c5b('0x6')]&&_0x180693[_0x1c5b('0x7')](_0x1c5b('0x1')),_0x7a9ecc['avatar']&&_0x180693['push']('ck-user__avatar'),_0x3ff3e5){const _0x149134=new _0x1bc3a2();_0x149134['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x149134['content']=_0x2a5022,this['notificationView']={'tag':_0x1c5b('0x3'),'attributes':{'class':['ck',_0x1c5b('0xe')],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x3ff3e5},'children':[_0x149134]};}const _0x3985b2=[{'tag':'div','attributes':{'class':_0x180693,'style':{'background-image':_0x7a9ecc[_0x1c5b('0x9')]?_0x1c5b('0xa')+_0x7a9ecc[_0x1c5b('0x9')]+'\x27)':''}}},{'tag':_0x1c5b('0x3'),'attributes':{'class':_0x7a9ecc[_0x1c5b('0x9')]?_0x1c5b('0x0'):_0x1c5b('0x4')},'children':[{'text':_0x7a9ecc[_0x1c5b('0xb')]}]}];this[_0x1c5b('0x8')]&&_0x3985b2[_0x1c5b('0x7')](this[_0x1c5b('0x8')]),this[_0x1c5b('0x2')]({'tag':_0x1c5b('0x3'),'attributes':{'class':['ck',_0x1c5b('0xd')],'data-user-id':_0x7a9ecc['id']},'children':_0x3985b2});}}
|
package/src/users.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x14af=['destroy','_getNextColor','ck-user__bg-color--','licenseKeyTrial','users.anonymousUserId','info','trial-license-key-reached-limit-revisions','has','trim','define','anonymous-user','trial-license-key-reached-limit-changes','_id','get','locale','ck-user__marker--','context','initials','getUser','Anonymous','config','isAnonymous','color','users.colorsCount','_licenseKeyCheckInterval','_myId','addUser','defineMe','decorate','licenseKeyInvalid','_isAnonymous','useAnonymousUser','getOperationAuthor','toUpperCase','add','length','invalid-license-key','licenseKeyTrialLimit:time','ck-user__selection--','getSelectionClass','Users','avatar','name','licenseKeyTrialLimit:revisions','_locale','users-add-invalid-id','init','users','_addAnonymousUser','_getInitial','pluginName','_lastColor','licenseKeyValid'];(function(_0x995cd6,_0x14afd3){const _0x3e0966=function(_0x414dda){while(--_0x414dda){_0x995cd6['push'](_0x995cd6['shift']());}};_0x3e0966(++_0x14afd3);}(_0x14af,0x8c));const _0x3e09=function(_0x995cd6,_0x14afd3){_0x995cd6=_0x995cd6-0x0;let _0x3e0966=_0x14af[_0x995cd6];return _0x3e0966;};import{ContextPlugin as _0x5eb857}from'ckeditor5/src/core';import{Collection as _0x3040ba,CKEditorError as _0x6516db}from'ckeditor5/src/utils';import _0x30e071 from'./permissions';import{getTranslation as _0x3e8277}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x5eb857{static get[_0x3e09('0x10')](){return _0x3e09('0x6');}static get['requires'](){return[_0x30e071];}constructor(_0x43685a){super(_0x43685a),this[_0x3e09('0x23')][_0x3e09('0x27')][_0x3e09('0x1c')]('users.anonymousUserId',_0x3e09('0x1d')),this[_0x3e09('0x23')][_0x3e09('0x27')]['define'](_0x3e09('0x2a'),0x8),this[_0x3e09('0xd')]=new _0x3040ba(),this[_0x3e09('0xa')]=_0x43685a[_0x3e09('0x21')],this['_licenseKeyCheckInterval']=null,this[_0x3e09('0x11')]=0x0,this[_0x3e09('0x2c')]=null,this[_0x3e09('0x2f')](_0x3e09('0x33'));}[_0x3e09('0xc')](){const _0xc6f445=this[_0x3e09('0x23')];this['licenseKey']=_0xc6f445[_0x3e09('0x27')]['get']('licenseKey');const _0x44fb94=[_0x3e09('0x16'),_0x3e09('0x30'),_0x3e09('0x12'),'licenseKeyTrialLimit:operations',_0x3e09('0x3'),_0x3e09('0x9')];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2dda4d;for(const _0x40ca3c in _0xc6f445){const _0x6cf8ad=_0xc6f445[_0x40ca3c];if(_0x44fb94['includes'](_0x6cf8ad)){delete _0xc6f445[_0x40ca3c],_0x2dda4d=_0x6cf8ad;break;}}if(_0x3e09('0x30')===_0x2dda4d)throw clearInterval(this[_0x3e09('0x2b')]),new _0x6516db(_0x3e09('0x2'),null);if(_0x3e09('0x16')===_0x2dda4d&&console[_0x3e09('0x18')]('You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20collaboration\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.'),'licenseKeyTrialLimit:operations'===_0x2dda4d)throw clearInterval(this[_0x3e09('0x2b')]),new _0x6516db(_0x3e09('0x1e'),null);if('licenseKeyTrialLimit:time'===_0x2dda4d)throw clearInterval(this[_0x3e09('0x2b')]),new _0x6516db('trial-license-key-reached-limit-time',null);if(_0x3e09('0x9')===_0x2dda4d)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x6516db(_0x3e09('0x19'),null);_0x3e09('0x12')===_0x2dda4d&&clearInterval(this[_0x3e09('0x2b')]);},0x3e8),this[_0x3e09('0xe')]();}get['me'](){return null==this[_0x3e09('0x2c')]?null:this['getUser'](this[_0x3e09('0x2c')]);}[_0x3e09('0x2d')]({id:_0x5b96ea,name:_0x585fa2,..._0x28e365}){if(!_0x5b96ea||'string'!=typeof _0x5b96ea)throw new _0x6516db(_0x3e09('0xb'));if(this['users'][_0x3e09('0x1a')](_0x5b96ea))throw new _0x6516db('users-add-duplicated-id',null,{'id':_0x5b96ea});const _0x4e0874={..._0x28e365,'id':_0x5b96ea,'name':a(this[_0x3e09('0xa')],_0x585fa2),'color':this['_getNextColor']()};_0x4e0874[_0x3e09('0x8')]=a(this['_locale'],_0x4e0874[_0x3e09('0x8')]);const _0x182636=new User(_0x4e0874);return this[_0x3e09('0xd')][_0x3e09('0x0')](_0x182636),_0x182636;}[_0x3e09('0x25')](_0x605ceb){return this[_0x3e09('0xd')]['get'](_0x605ceb);}[_0x3e09('0x32')](){const _0x29024f=this[_0x3e09('0x23')][_0x3e09('0x27')][_0x3e09('0x20')](_0x3e09('0x17'));this[_0x3e09('0x2c')]||this[_0x3e09('0x2e')](_0x29024f);}[_0x3e09('0x2e')](_0xaa1198){if(this[_0x3e09('0x2c')])throw new _0x6516db('users-me-already-defined',null);if(!this[_0x3e09('0x25')](_0xaa1198))throw new _0x6516db('users-me-missing-user',null);this[_0x3e09('0x2c')]=_0xaa1198;}[_0x3e09('0x33')](){return this['me'];}['destroy'](){super[_0x3e09('0x13')](),clearInterval(this[_0x3e09('0x2b')]);}[_0x3e09('0x14')](){const _0x5ca77e=this[_0x3e09('0x23')][_0x3e09('0x27')][_0x3e09('0x20')](_0x3e09('0x2a'));return this['_lastColor']>=_0x5ca77e&&(this[_0x3e09('0x11')]=0x0),new u(this['_lastColor']++);}[_0x3e09('0xe')](){const _0x43ee6d=this['context']['config'][_0x3e09('0x20')](_0x3e09('0x17'));this[_0x3e09('0x2d')]({'id':_0x43ee6d,'name':_0x3e8277(this[_0x3e09('0xa')],_0x3e09('0x26'))})['_isAnonymous']=!0x0;}}export class User{constructor(_0x5dc994){this['id']=_0x5dc994['id'],this[_0x3e09('0x29')]=_0x5dc994[_0x3e09('0x29')],this['name']=_0x5dc994[_0x3e09('0x8')],this[_0x3e09('0x7')]=_0x5dc994['avatar'],this[_0x3e09('0x31')]=!0x1;}get[_0x3e09('0x28')](){return this[_0x3e09('0x31')];}get[_0x3e09('0x24')](){const _0x38f95e=this['name']['split']('\x20');return 0x1===_0x38f95e[_0x3e09('0x1')]?this[_0x3e09('0xf')](_0x38f95e[0x0]):this[_0x3e09('0xf')](_0x38f95e[0x0])+this[_0x3e09('0xf')](_0x38f95e[_0x38f95e[_0x3e09('0x1')]-0x1]);}[_0x3e09('0xf')](_0x15cffa){return _0x15cffa['charAt'](0x0)[_0x3e09('0x34')]();}}function a(_0x49f7fc,_0x101aab=''){return''==(_0x101aab=_0x101aab[_0x3e09('0x1b')]())?_0x3e8277(_0x49f7fc,_0x3e09('0x26')):_0x101aab;}class u{constructor(_0x315d04){this[_0x3e09('0x1f')]=_0x315d04;}['getBackgroundColorClass'](){return _0x3e09('0x15')+this[_0x3e09('0x1f')];}[_0x3e09('0x5')](){return _0x3e09('0x4')+this[_0x3e09('0x1f')];}['getMarkerClass'](){return _0x3e09('0x22')+this[_0x3e09('0x1f')];}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
export function getTranslation(
|
23
|
+
export function getTranslation(_0x4235ce,_0x351b14){const t=_0x4235ce['t'];switch(_0x351b14){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 _0x43ff=['confirmView','cancel','deregisterChild','_removeConfirm','set','cancelConfirm','message','fire','submit','element','showConfirm','once','registerChild','isConfirm','appendChild','remove','destroy','focus'];(function(_0xcc7024,_0x43ff81){var _0x2ae83f=function(_0x5890f5){while(--_0x5890f5){_0xcc7024['push'](_0xcc7024['shift']());}};_0x2ae83f(++_0x43ff81);}(_0x43ff,0x99));var _0x2ae8=function(_0xcc7024,_0x43ff81){_0xcc7024=_0xcc7024-0x0;var _0x2ae83f=_0x43ff[_0xcc7024];return _0x2ae83f;};import _0x34bccd from'./confirmview';export default function m(_0x512b85){return class extends _0x512b85{[_0x2ae8('0x1')](_0x18b51f,_0x38437b){return this[_0x2ae8('0x9')]=new _0x34bccd(this['locale']),this[_0x2ae8('0x9')]['render'](),this[_0x2ae8('0x9')][_0x2ae8('0xf')]=_0x18b51f,this[_0x2ae8('0x9')][_0x2ae8('0x2')](_0x2ae8('0xa'),()=>{this[_0x2ae8('0xc')]();}),this[_0x2ae8('0x9')]['once'](_0x2ae8('0x11'),()=>{this[_0x2ae8('0xc')]();}),_0x38437b[_0x2ae8('0x5')](this['confirmView'][_0x2ae8('0x0')]),this[_0x2ae8('0x3')](this[_0x2ae8('0x9')]),this[_0x2ae8('0x0')][_0x2ae8('0x8')](),this[_0x2ae8('0xd')](_0x2ae8('0x4'),!0x0),new Promise(_0x2c1e62=>this[_0x2ae8('0x9')]['on'](_0x2ae8('0x11'),_0x2c1e62));}[_0x2ae8('0xe')](){this[_0x2ae8('0x4')]&&this[_0x2ae8('0x9')][_0x2ae8('0x10')](_0x2ae8('0xa'));}[_0x2ae8('0xc')](){this[_0x2ae8('0x0')]&&this[_0x2ae8('0x9')]&&this[_0x2ae8('0x9')][_0x2ae8('0x0')]&&(this[_0x2ae8('0x0')][_0x2ae8('0x8')](),this['confirmView'][_0x2ae8('0x0')][_0x2ae8('0x6')](),this[_0x2ae8('0xb')](this[_0x2ae8('0x9')]),this[_0x2ae8('0x4')]=!0x1,this[_0x2ae8('0x9')][_0x2ae8('0x7')](),this[_0x2ae8('0x9')]=void 0x0);}};}
|
package/src/utils/confirmview.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x252b=['div','cancelView','set','setTemplate','submitView','ck-thread__remove-confirm','icon','message','ck-thread__remove-confirm-inner','Are\x20you\x20sure?','cancel','fire','submit','ck-thread__remove-confirm-actions','check','_createButtonView','execute','bindTemplate'];(function(_0x400d5c,_0x252b47){const _0x3854cf=function(_0x2af2ec){while(--_0x2af2ec){_0x400d5c['push'](_0x400d5c['shift']());}};_0x3854cf(++_0x252b47);}(_0x252b,0x171));const _0x3854=function(_0x400d5c,_0x252b47){_0x400d5c=_0x400d5c-0x0;let _0x3854cf=_0x252b[_0x400d5c];return _0x3854cf;};import{View as _0x26d726,ButtonView as _0x3e0ad6}from'ckeditor5/src/ui';import{icons as _0x165e2d}from'ckeditor5/src/core';import{getTranslation as _0x1afaf7}from'./common-translations';export default class h extends _0x26d726{constructor(_0x1b91a0){super(_0x1b91a0);const _0x44c222=this[_0x3854('0x8')];this['submitView']=this['_createButtonView'](_0x1b91a0,_0x1afaf7(_0x1b91a0,'Yes'),_0x165e2d[_0x3854('0x5')],_0x3854('0x3')),this['cancelView']=this[_0x3854('0x6')](_0x1b91a0,_0x1afaf7(_0x1b91a0,'No'),_0x165e2d[_0x3854('0x1')],_0x3854('0x1')),this[_0x3854('0xb')](_0x3854('0x10'),_0x1afaf7(_0x1b91a0,_0x3854('0x0'))),this[_0x3854('0xc')]({'tag':_0x3854('0x9'),'attributes':{'class':[_0x3854('0xe')]},'children':[{'tag':_0x3854('0x9'),'attributes':{'class':_0x3854('0x11')},'children':[{'tag':'p','children':[{'text':_0x44c222['to']('message')}]},{'tag':_0x3854('0x9'),'attributes':{'class':_0x3854('0x4')},'children':[this[_0x3854('0xd')],this[_0x3854('0xa')]]}]}]});}[_0x3854('0x6')](_0x8a8963,_0x5509c4,_0xfe2ef7,_0x321194){const _0x10130c=new _0x3e0ad6(_0x8a8963);return _0x10130c['label']=_0x5509c4,_0x10130c[_0x3854('0xf')]=_0xfe2ef7,_0x10130c['extendTemplate']({'attributes':{'class':'ck-thread__remove-confirm-'+_0x321194}}),_0x10130c['on'](_0x3854('0x7'),()=>this[_0x3854('0x2')](_0x321194)),_0x10130c;}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x6026=['MM-dd-yyyy\x20hh:mma','\x27Yesterday\x27\x20hh:mma','\x27Last\x27\x20EEEE\x20hh:mma','invalid-date-time-format','dateTimeFormat','\x27Today\x27\x20hh:mma','function','string'];(function(_0x7f7b4e,_0x602668){const _0x5a4055=function(_0x175804){while(--_0x175804){_0x7f7b4e['push'](_0x7f7b4e['shift']());}};_0x5a4055(++_0x602668);}(_0x6026,0x85));const _0x5a40=function(_0x7f7b4e,_0x602668){_0x7f7b4e=_0x7f7b4e-0x0;let _0x5a4055=_0x6026[_0x7f7b4e];return _0x5a4055;};import _0x1befb1 from'date-fns/format';import _0x572f8f from'date-fns/parseISO';import _0x54c035 from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x45d901}from'ckeditor5/src/utils';export default function E(_0x21fe56={}){if(void 0x0!==_0x21fe56[_0x5a40('0x7')]&&_0x5a40('0x1')!=typeof _0x21fe56[_0x5a40('0x7')])throw new _0x45d901(_0x5a40('0x6'));return _0x198b76=>{const _0xa8f2c5=_0x5a40('0x2')==typeof _0x198b76?_0x572f8f(_0x198b76):_0x198b76,_0x1cac5c=new Date(),_0x256f9c=_0x54c035(_0x1cac5c,_0xa8f2c5);return _0x21fe56[_0x5a40('0x7')]?_0x21fe56[_0x5a40('0x7')](_0xa8f2c5):_0x1befb1(_0xa8f2c5,0x0===_0x256f9c?_0x5a40('0x0'):0x1===_0x256f9c?_0x5a40('0x4'):_0x256f9c<0x7?_0x5a40('0x5'):_0x5a40('0x3'));};}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x2177=['view','map','name','push','length','markerNameToElements','mapViewToDom','domConverter','filter','item','sort','from','domElement'];(function(_0x4dfccc,_0x21777e){const _0x2b8755=function(_0x4131d7){while(--_0x4131d7){_0x4dfccc['push'](_0x4dfccc['shift']());}};_0x2b8755(++_0x21777e);}(_0x2177,0x1ab));const _0x2b87=function(_0x4dfccc,_0x21777e){_0x4dfccc=_0x4dfccc-0x0;let _0x2b8755=_0x2177[_0x4dfccc];return _0x2b8755;};import{first as _0x1ced76}from'ckeditor5/src/utils';export default function k(_0x3f3a68,_0x2bb5e1){const _0x1af957=_0x3f3a68['mapper']['markerNameToElements'](_0x2bb5e1[_0x2b87('0x4')]);if(!_0x1af957)return null;const _0x54df07=_0x1ced76(_0x1af957['values']());return _0x3f3a68['view'][_0x2b87('0x9')][_0x2b87('0x8')](_0x54df07)||null;}export function getAllMarkersDomElementsSorted(_0x24ffd5,_0x180bdb){if(0x0===_0x180bdb[_0x2b87('0x6')])return null;const _0x56b43b=[],_0x191494=_0x24ffd5[_0x2b87('0x2')][_0x2b87('0x9')];for(const _0x474b6c of _0x180bdb){const _0x21c54a=_0x24ffd5['mapper'][_0x2b87('0x7')](_0x474b6c[_0x2b87('0x4')]);if(!_0x21c54a)continue;const _0xd2da3f=Array[_0x2b87('0x0')](_0x21c54a)[_0x2b87('0x3')](_0x4a2578=>_0x191494[_0x2b87('0x8')](_0x4a2578))[_0x2b87('0xa')](_0x3a071a=>!!_0x3a071a);_0x56b43b[_0x2b87('0x5')](..._0xd2da3f);}if(0x0===_0x56b43b[_0x2b87('0x6')])return null;const _0x12310d=[];for(const _0x4a6202 of _0x56b43b){const _0x43a10c=_0x4a6202['getClientRects']()[_0x2b87('0xb')](0x0);_0x43a10c&&_0x12310d[_0x2b87('0x5')]({'x':_0x43a10c['x'],'y':_0x43a10c['y'],'domElement':_0x4a6202});}return 0x0===_0x12310d[_0x2b87('0x6')]?null:(_0x12310d[_0x2b87('0xc')]((_0x100e6e,_0x2156bb)=>_0x100e6e['y']-_0x2156bb['y']||_0x100e6e['x']-_0x2156bb['x']),_0x12310d[_0x2b87('0x3')](_0x4fd501=>_0x4fd501[_0x2b87('0x1')]));}
|
package/src/utils/hashobject.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x13b2=['isArray','charCodeAt','string','toString','boolean','sign','number','object','sort','keys'];(function(_0x2572a6,_0x13b2b5){const _0x444368=function(_0x18d387){while(--_0x18d387){_0x2572a6['push'](_0x2572a6['shift']());}};_0x444368(++_0x13b2b5);}(_0x13b2,0x101));const _0x4443=function(_0x2572a6,_0x13b2b5){_0x2572a6=_0x2572a6-0x0;let _0x444368=_0x13b2[_0x2572a6];return _0x444368;};export default function b(_0x4fa7d9){let _0x2806c1=0x0,_0x275fc9=0x0;for(const _0x283bc7 of g(_0x4fa7d9))_0x2806c1=(_0x2806c1<<0x5)-_0x2806c1+_0x283bc7,_0x2806c1&=_0x2806c1,[_0x2806c1,_0x275fc9]=[_0x275fc9,_0x2806c1];return O(_0x2806c1)+O(_0x275fc9);}function*j(_0x2b6381){_0x2b6381?_0x4443('0x7')==typeof _0x2b6381?yield 0x1:Array[_0x4443('0x3')](_0x2b6381)?yield*function*(_0x23b9af){for(const _0xbe4b76 of _0x23b9af)yield*j(_0xbe4b76);}(_0x2b6381):_0x4443('0x0')==typeof _0x2b6381?yield*g(_0x2b6381):_0x4443('0x5')==typeof _0x2b6381?yield*A(_0x2b6381):_0x4443('0x9')==typeof _0x2b6381&&(yield _0x2b6381):yield 0x0;}function*g(_0x28c996){if(yield M('{'),_0x28c996){const _0x4892e3=Object[_0x4443('0x2')](_0x28c996)[_0x4443('0x1')]();for(const _0x248db0 of _0x4892e3){yield*A(_0x248db0),yield M(':');const _0x1cd34f=_0x28c996[_0x248db0];yield*j(_0x1cd34f);}}yield M('}');}function*A(_0x4e6515){yield M('\x22');for(const _0x3afc66 of _0x4e6515)yield M(_0x3afc66);yield M('\x22');}function M(_0x1dd327){return _0x1dd327[_0x4443('0x4')](0x0);}function O(_0x138b3d){return(_0x138b3d*=Math[_0x4443('0x8')](_0x138b3d))[_0x4443('0x6')](0x24);}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x1fd5=['concat','requires','map','extraPlugins','rootsAttributes','filter','initialData','get','Autosave','RevisionTracker','removePlugins','set','string','name','has','DocumentOutline','toolbar','builtinPlugins','length','WordCount','WProofreader','includes','pluginName','constructor','every','config','WebSocketGateway','context','plugins','names','_context','find'];(function(_0x36e8bf,_0x1fd571){const _0x42dd8b=function(_0x4bda90){while(--_0x4bda90){_0x36e8bf['push'](_0x36e8bf['shift']());}};_0x42dd8b(++_0x1fd571);}(_0x1fd5,0x14a));const _0x42dd=function(_0x36e8bf,_0x1fd571){_0x36e8bf=_0x36e8bf-0x0;let _0x42dd8b=_0x1fd5[_0x36e8bf];return _0x42dd8b;};const w=[_0x42dd('0x1c'),_0x42dd('0x11'),_0x42dd('0x6'),_0x42dd('0x1a')],W=[_0x42dd('0x10'),_0x42dd('0x1f'),_0x42dd('0x1e'),_0x42dd('0x9'),_0x42dd('0x5'),_0x42dd('0xa')];function v(_0x12a3c6,_0x434046,_0x5e26ba,_0x49b8cd=[]){const _0x3a8e06=_0x42dd('0x2')==typeof _0x12a3c6?_0x5e26ba[_0x42dd('0x1d')](_0x12a3c6)[_0x42dd('0xd')]:_0x12a3c6,_0x1fdfc=_0x3a8e06[_0x42dd('0xc')]||_0x3a8e06[_0x42dd('0x3')];if(_0x434046[_0x42dd('0x4')](_0x1fdfc))return _0x434046[_0x42dd('0x1d')](_0x1fdfc);if(_0x434046['set'](_0x1fdfc,!0x0),_0x1fdfc&&W[_0x42dd('0x16')](_0x49b8cd)[_0x42dd('0xb')](_0x1fdfc))return _0x434046[_0x42dd('0x1')](_0x1fdfc,!0x1),!0x1;if(!_0x3a8e06[_0x42dd('0x17')])return _0x434046[_0x42dd('0x1')](_0x1fdfc,!0x0),!0x0;const _0x21497c=_0x3a8e06[_0x42dd('0x17')][_0x42dd('0xe')](_0x3ecfd4=>v(_0x3ecfd4,_0x434046,_0x5e26ba,_0x49b8cd));return _0x434046[_0x42dd('0x1')](_0x1fdfc,_0x21497c),_0x21497c;}export default function D(_0x1ab2ce,_0x62b416){const _0x479c01={};for(const _0x26ed57 of _0x1ab2ce[_0x42dd('0xf')][_0x42dd('0x13')]())w[_0x42dd('0xb')](_0x26ed57)||(_0x479c01[_0x26ed57]=_0x1ab2ce['config'][_0x42dd('0x1d')](_0x26ed57));const _0x546c62=_0x479c01[_0x42dd('0x12')]||[],_0x175be7=_0x1ab2ce[_0x42dd('0xd')][_0x42dd('0x7')]||[],_0x4b2ecf=_0x546c62[_0x42dd('0x8')]?_0x546c62:_0x175be7,_0x41bba5=_0x479c01[_0x42dd('0x19')]||[];delete _0x479c01[_0x42dd('0x19')];const _0x5e9258=_0x479c01[_0x42dd('0x0')]||[];delete _0x479c01[_0x42dd('0x0')];const _0x4ca02b=_0x1ab2ce[_0x42dd('0x14')][_0x42dd('0xf')][_0x42dd('0x1d')]('plugins')||[],_0x52f5d3=_0x4b2ecf['concat'](_0x41bba5)[_0x42dd('0x16')](_0x4ca02b)[_0x42dd('0x18')](_0x525b86=>_0x42dd('0x2')==typeof _0x525b86?_0x175be7[_0x42dd('0x15')](_0x570c61=>_0x570c61[_0x42dd('0xc')]==_0x525b86):_0x525b86)['filter'](_0x2d7ab7=>!_0x5e9258['includes'](_0x2d7ab7)&&!_0x5e9258[_0x42dd('0xb')](_0x2d7ab7[_0x42dd('0xc')])),_0x8e99d1=Array['from'](new Set(_0x52f5d3)),_0x1c677b=new Map();return _0x479c01[_0x42dd('0x12')]=_0x8e99d1[_0x42dd('0x1b')](_0x170de5=>v(_0x170de5,_0x1c677b,_0x1ab2ce[_0x42dd('0x12')],_0x62b416)),_0x479c01;}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x53fa=['includes','length','markers','isEqual','selection','containsPosition','start','end','push','change:range','focus'];(function(_0x4cda11,_0x53fa18){const _0x32357c=function(_0x1e503f){while(--_0x1e503f){_0x4cda11['push'](_0x4cda11['shift']());}};_0x32357c(++_0x53fa18);}(_0x53fa,0x1a7));const _0x3235=function(_0x4cda11,_0x53fa18){_0x4cda11=_0x4cda11-0x0;let _0x32357c=_0x53fa[_0x4cda11];return _0x32357c;};export default function q(_0x3d6dbb,_0xcd2522){const _0x40deb1=[];_0x3d6dbb['document'][_0x3235('0xa')]['on'](_0x3235('0x4'),()=>{const _0x45c000=function(_0x3303bc,_0xd7ee1f){const _0x37f7a6=[];for(const _0x27bb93 of _0x3303bc[_0x3235('0x8')]){const _0xf4ea9=_0x27bb93['getRange']();(_0xf4ea9[_0x3235('0x0')](_0xd7ee1f)||_0xf4ea9[_0x3235('0x1')][_0x3235('0x9')](_0xd7ee1f)||_0xf4ea9[_0x3235('0x2')][_0x3235('0x9')](_0xd7ee1f))&&_0x37f7a6[_0x3235('0x3')](_0x27bb93);}return _0x37f7a6;}(_0x3d6dbb,_0x3d6dbb['document']['selection'][_0x3235('0x5')]),_0x379c08=[],_0x28dbb9=[],_0x3e0f05=[];for(const _0x26b7b2 of _0x40deb1)_0x45c000[_0x3235('0x6')](_0x26b7b2)||_0x379c08['push'](_0x26b7b2);for(const _0xddcacf of _0x45c000)_0x40deb1[_0x3235('0x6')](_0xddcacf)||_0x28dbb9[_0x3235('0x3')](_0xddcacf),_0x3e0f05[_0x3235('0x3')](_0xddcacf);(_0x379c08[_0x3235('0x7')]||_0x28dbb9[_0x3235('0x7')])&&_0xcd2522({'left':_0x379c08,'entered':_0x28dbb9}),_0x40deb1[_0x3235('0x7')]=0x0,_0x40deb1['push'](..._0x3e0f05);});}
|
package/src/utils/trim-html.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x1f6d=['substring','startsWith','join','length','pop','indexOf','match','...','push','split','replace'];(function(_0x5f2243,_0x1f6d23){const _0x4000df=function(_0x3db371){while(--_0x3db371){_0x5f2243['push'](_0x5f2243['shift']());}};_0x4000df(++_0x1f6d23);}(_0x1f6d,0x1f4));const _0x4000=function(_0x5f2243,_0x1f6d23){_0x5f2243=_0x5f2243-0x0;let _0x4000df=_0x1f6d[_0x5f2243];return _0x4000df;};export default function z(_0x567bb5,{limit:_0x513501,suffix:_0x30b34d=_0x4000('0x2')}){const _0x20ee26=[];let _0x36ba6e=0x0;const _0x3b161a=_0x567bb5['replace'](/</g,'\x0a<')[_0x4000('0x5')](/>/g,'>\x0a')[_0x4000('0x5')](/^\n/g,'')[_0x4000('0x5')](/\n$/g,'')[_0x4000('0x4')]('\x0a');for(let _0x263019=0x0;_0x263019<_0x3b161a['length'];_0x263019++){let _0x26fc7d=_0x3b161a[_0x263019];const _0x5e57e6=Z(_0x26fc7d);if(_0x26fc7d[_0x4000('0x7')]('<')){if(_0x36ba6e>=_0x513501){const _0x4848c1=_0x26fc7d[_0x4000('0x1')](/[a-zA-Z]+/);if(!_0x4848c1){_0x3b161a[_0x263019]='';continue;}const _0x4f86d3=_0x4848c1[0x0];_0x26fc7d['startsWith']('</')?(_0x20ee26[_0x4000('0x9')]&&(_0x26fc7d=''),_0x20ee26[_0x4000('0xa')]()):(_0x20ee26['push'](_0x4f86d3),_0x26fc7d='');}}else{if(_0x36ba6e>=_0x513501)_0x26fc7d='';else{if(_0x36ba6e+_0x5e57e6[_0x4000('0x9')]>=_0x513501){let _0x263521=_0x513501-_0x36ba6e;if('\x20'===_0x5e57e6[_0x263521-0x1])_0x263521--;else{const _0xef26d5=_0x5e57e6['slice'](_0x263521)[_0x4000('0x0')]('\x20');-0x1!==_0xef26d5?_0x263521+=_0xef26d5:_0x263521=_0x26fc7d[_0x4000('0x9')];}_0x26fc7d=_0x5e57e6['slice'](0x0,_0x263521)[_0x4000('0x8')]('')+_0x30b34d,_0x36ba6e=_0x513501;}else _0x36ba6e+=_0x5e57e6[_0x4000('0x9')];}}_0x3b161a[_0x263019]=_0x26fc7d;}return _0x3b161a[_0x4000('0x8')]('\x0a')[_0x4000('0x5')](/\n/g,'');}function Z(_0x4b1616){const _0x3cd070=[];for(let _0x2f6833=0x0;_0x2f6833<_0x4b1616[_0x4000('0x9')];_0x2f6833++){const _0x31cc92=_0x4b1616[_0x4000('0x6')](_0x2f6833)[_0x4000('0x1')](/^&[a-z0-9#]+;/);if(_0x31cc92){const _0x5cc09f=_0x31cc92[0x0];_0x3cd070[_0x4000('0x3')](_0x5cc09f),_0x2f6833+=_0x5cc09f[_0x4000('0x9')]-0x1;}else _0x3cd070[_0x4000('0x3')](_0x4b1616[_0x2f6833]);}return _0x3cd070;}
|