@ckeditor/ckeditor5-collaboration-core 0.0.0-nightly-20231126.0 → 0.0.0-nightly-20231128.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-20231128.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-20231128.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 _0x3907=['CommentsRepository','has','CommentsOnly','collaboration.channelId','comment:write','comment:admin','no-permissions','setPermissions','comment:modify_all','permissions-set-permissions-invalid-channel-id','editors','commands','config','forceDisabled','plugins','noPermissions','find','pluginName','get','addCommentThread','clearForceDisabled','disableReadOnlyMode','includes','context','document:write'];(function(_0xc838ca,_0x3907d3){const _0x550726=function(_0x55e07c){while(--_0x55e07c){_0xc838ca['push'](_0xc838ca['shift']());}};_0x550726(++_0x3907d3);}(_0x3907,0x98));const _0x5507=function(_0xc838ca,_0x3907d3){_0xc838ca=_0xc838ca-0x0;let _0x550726=_0x3907[_0xc838ca];return _0x550726;};import{ContextPlugin as _0x144c76,Editor as _0x45fff7}from'ckeditor5/src/core';import{CKEditorError as _0x38abca}from'ckeditor5/src/utils';export default class n extends _0x144c76{static get[_0x5507('0xf')](){return'Permissions';}['setPermissions'](_0x428e4d,_0x5e0c35){let _0x28be3f;if(_0x5e0c35||(_0x5e0c35=this[_0x5507('0x15')]['config'][_0x5507('0x10')]('collaboration.channelId')),this[_0x5507('0x15')][_0x5507('0xa')][_0x5507('0x10')](_0x5507('0x1'))==_0x5e0c35?_0x28be3f=this[_0x5507('0x15')]:_0x5507('0x8')in this[_0x5507('0x15')]&&this[_0x5507('0x15')]['editors']&&(_0x28be3f=this['context'][_0x5507('0x8')][_0x5507('0xe')](_0x381de8=>_0x381de8['config']['get'](_0x5507('0x1'))==_0x5e0c35)),!_0x28be3f)throw new _0x38abca(_0x5507('0x7'),null);const _0x5e0d55=_0x28be3f[_0x5507('0xc')],_0x4ae410=_0x5e0d55[_0x5507('0x18')](_0x5507('0x17'))?_0x5e0d55['get'](_0x5507('0x17')):void 0x0,_0x185eee=_0x5e0d55[_0x5507('0x18')](_0x5507('0x0'))&&_0x5e0d55[_0x5507('0x10')](_0x5507('0x0')),_0x375cf3=_0x428e4d['includes'](_0x5507('0x16')),_0x42c38c=_0x428e4d['includes'](_0x5507('0x6')),_0x5efb85=_0x428e4d[_0x5507('0x14')](_0x5507('0x3')),_0x34b337=_0x428e4d[_0x5507('0x14')](_0x5507('0x2')),_0x572867=_0x34b337||_0x5efb85,_0x4a93cb=_0x572867||_0x42c38c,_0x1ef958=_0x375cf3||_0x572867;(_0x185eee&&(_0x185eee['isEnabled']=!_0x375cf3&&_0x4a93cb),_0x28be3f instanceof _0x45fff7)&&(!(_0x375cf3||_0x4a93cb&&_0x4ae410)?_0x28be3f['enableReadOnlyMode']('no-permissions'):_0x28be3f[_0x5507('0x13')](_0x5507('0x4')));if(_0x4ae410){_0x4ae410[_0x5507('0x5')]({'admin':_0x5efb85,'modifyAll':_0x42c38c,'write':_0x34b337,'resolve':_0x1ef958},_0x5e0c35);const _0x557d4c=_0x28be3f instanceof _0x45fff7&&_0x28be3f[_0x5507('0x9')][_0x5507('0x10')](_0x5507('0x11'));_0x557d4c&&(_0x572867?_0x557d4c[_0x5507('0x12')](_0x5507('0xd')):_0x557d4c[_0x5507('0xb')]('noPermissions'));}}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x2170=['setTemplate','div','ck-user__img','name','notificationView','content','ck\x20ck-user__name','ck\x20ck-user__name\x20ck-user__name--hidden','push','extendTemplate','ck-user','ck-user__icon','avatar','ck-user__avatar'];(function(_0x2cf9b9,_0x21703d){const _0xf43df2=function(_0x51fd84){while(--_0x51fd84){_0x2cf9b9['push'](_0x2cf9b9['shift']());}};_0xf43df2(++_0x21703d);}(_0x2170,0x121));const _0xf43d=function(_0x2cf9b9,_0x21703d){_0x2cf9b9=_0x2cf9b9-0x0;let _0xf43df2=_0x2170[_0x2cf9b9];return _0xf43df2;};import{View as _0x2253ed,IconView as _0x46c14c}from'ckeditor5/src/ui';import _0x713053 from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class C extends _0x2253ed{constructor(_0x20663d,_0x518fb3,_0x574390){super(_0x20663d),this['name']=_0x518fb3[_0xf43d('0x8')],this[_0xf43d('0x9')]=null;const _0x41b46e=['ck',_0xf43d('0x7')];if(_0x518fb3['isAnonymous']&&_0x41b46e[_0xf43d('0xd')]('ck-user__anonymous'),_0x518fb3['avatar']&&_0x41b46e[_0xf43d('0xd')](_0xf43d('0x4')),_0x574390){const _0x43f0d0=new _0x46c14c();_0x43f0d0[_0xf43d('0x0')]({'attributes':{'class':[_0xf43d('0x2')]}}),_0x43f0d0[_0xf43d('0xa')]=_0x713053,this[_0xf43d('0x9')]={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x574390},'children':[_0x43f0d0]};}const _0x26774f=[{'tag':'div','attributes':{'class':_0x41b46e,'style':{'background-image':_0x518fb3['avatar']?'url(\x27'+_0x518fb3[_0xf43d('0x3')]+'\x27)':''}}},{'tag':_0xf43d('0x6'),'attributes':{'class':_0x518fb3[_0xf43d('0x3')]?_0xf43d('0xc'):_0xf43d('0xb')},'children':[{'text':_0x518fb3['initials']}]}];this[_0xf43d('0x9')]&&_0x26774f[_0xf43d('0xd')](this['notificationView']),this[_0xf43d('0x5')]({'tag':'div','attributes':{'class':['ck',_0xf43d('0x1')],'data-user-id':_0x518fb3['id']},'children':_0x26774f});}}
|
package/src/users.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x567b=['getSelectionClass','trial-license-key-reached-limit-changes','users-add-invalid-id','invalid-license-key','string','Anonymous','trim','length','users','anonymous-user','name','getUser','avatar','defineMe','_getInitial','licenseKeyTrialLimit:operations','trial-license-key-reached-limit-revisions','users-me-missing-user','licenseKeyTrialLimit:revisions','_licenseKeyCheckInterval','init','trial-license-key-reached-limit-time','color','isAnonymous','users-add-duplicated-id','useAnonymousUser','requires','define','users-me-already-defined','get','Users','licenseKeyTrialLimit:time','info','_addAnonymousUser','initials','ck-user__selection--','add','licenseKeyInvalid','destroy','_lastColor','_myId','ck-user__marker--','has','addUser','charAt','licenseKeyValid','locale','getOperationAuthor','_getNextColor','pluginName','includes','_locale','_id','decorate','_isAnonymous','config','context','users.anonymousUserId','licenseKeyTrial'];(function(_0x5b6498,_0x567bc9){const _0x20a947=function(_0x8fec5c){while(--_0x8fec5c){_0x5b6498['push'](_0x5b6498['shift']());}};_0x20a947(++_0x567bc9);}(_0x567b,0x1e4));const _0x20a9=function(_0x5b6498,_0x567bc9){_0x5b6498=_0x5b6498-0x0;let _0x20a947=_0x567b[_0x5b6498];return _0x20a947;};import{ContextPlugin as _0x46fa96}from'ckeditor5/src/core';import{Collection as _0x55b37b,CKEditorError as _0xae9987}from'ckeditor5/src/utils';import _0x103377 from'./permissions';import{getTranslation as _0x45a574}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x46fa96{static get[_0x20a9('0x25')](){return _0x20a9('0x12');}static get[_0x20a9('0xe')](){return[_0x103377];}constructor(_0x410254){super(_0x410254),this[_0x20a9('0x2c')][_0x20a9('0x2b')]['define']('users.anonymousUserId',_0x20a9('0x38')),this[_0x20a9('0x2c')][_0x20a9('0x2b')][_0x20a9('0xf')]('users.colorsCount',0x8),this['users']=new _0x55b37b(),this['_locale']=_0x410254[_0x20a9('0x22')],this['_licenseKeyCheckInterval']=null,this[_0x20a9('0x1b')]=0x0,this[_0x20a9('0x1c')]=null,this[_0x20a9('0x29')](_0x20a9('0x23'));}[_0x20a9('0x8')](){const _0x2bace5=this[_0x20a9('0x2c')];this['licenseKey']=_0x2bace5[_0x20a9('0x2b')][_0x20a9('0x11')]('licenseKey');const _0x56d851=[_0x20a9('0x2e'),'licenseKeyInvalid',_0x20a9('0x21'),_0x20a9('0x3'),_0x20a9('0x13'),_0x20a9('0x6')];this[_0x20a9('0x7')]=setInterval(()=>{let _0x4e0c44;for(const _0x16e77e in _0x2bace5){const _0x50d540=_0x2bace5[_0x16e77e];if(_0x56d851[_0x20a9('0x26')](_0x50d540)){delete _0x2bace5[_0x16e77e],_0x4e0c44=_0x50d540;break;}}if(_0x20a9('0x19')===_0x4e0c44)throw clearInterval(this[_0x20a9('0x7')]),new _0xae9987(_0x20a9('0x32'),null);if(_0x20a9('0x2e')===_0x4e0c44&&console[_0x20a9('0x14')]('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.'),_0x20a9('0x3')===_0x4e0c44)throw clearInterval(this[_0x20a9('0x7')]),new _0xae9987(_0x20a9('0x30'),null);if(_0x20a9('0x13')===_0x4e0c44)throw clearInterval(this[_0x20a9('0x7')]),new _0xae9987(_0x20a9('0x9'),null);if(_0x20a9('0x6')===_0x4e0c44)throw clearInterval(this[_0x20a9('0x7')]),new _0xae9987(_0x20a9('0x4'),null);_0x20a9('0x21')===_0x4e0c44&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8),this[_0x20a9('0x15')]();}get['me'](){return null==this[_0x20a9('0x1c')]?null:this[_0x20a9('0x3a')](this[_0x20a9('0x1c')]);}[_0x20a9('0x1f')]({id:_0x1e8745,name:_0x5e67f4,..._0x167aa9}){if(!_0x1e8745||_0x20a9('0x33')!=typeof _0x1e8745)throw new _0xae9987(_0x20a9('0x31'));if(this[_0x20a9('0x37')][_0x20a9('0x1e')](_0x1e8745))throw new _0xae9987(_0x20a9('0xc'),null,{'id':_0x1e8745});const _0x6c3d53={..._0x167aa9,'id':_0x1e8745,'name':a(this[_0x20a9('0x27')],_0x5e67f4),'color':this[_0x20a9('0x24')]()};_0x6c3d53[_0x20a9('0x39')]=a(this['_locale'],_0x6c3d53[_0x20a9('0x39')]);const _0x545b0c=new User(_0x6c3d53);return this[_0x20a9('0x37')][_0x20a9('0x18')](_0x545b0c),_0x545b0c;}[_0x20a9('0x3a')](_0x3a505f){return this[_0x20a9('0x37')][_0x20a9('0x11')](_0x3a505f);}[_0x20a9('0xd')](){const _0x1bb8d3=this['context']['config']['get'](_0x20a9('0x2d'));this['_myId']||this[_0x20a9('0x1')](_0x1bb8d3);}[_0x20a9('0x1')](_0x575977){if(this[_0x20a9('0x1c')])throw new _0xae9987(_0x20a9('0x10'),null);if(!this[_0x20a9('0x3a')](_0x575977))throw new _0xae9987(_0x20a9('0x5'),null);this[_0x20a9('0x1c')]=_0x575977;}[_0x20a9('0x23')](){return this['me'];}[_0x20a9('0x1a')](){super[_0x20a9('0x1a')](),clearInterval(this[_0x20a9('0x7')]);}['_getNextColor'](){const _0x41e629=this[_0x20a9('0x2c')]['config'][_0x20a9('0x11')]('users.colorsCount');return this[_0x20a9('0x1b')]>=_0x41e629&&(this['_lastColor']=0x0),new u(this['_lastColor']++);}['_addAnonymousUser'](){const _0x4db698=this[_0x20a9('0x2c')][_0x20a9('0x2b')]['get'](_0x20a9('0x2d'));this[_0x20a9('0x1f')]({'id':_0x4db698,'name':_0x45a574(this[_0x20a9('0x27')],_0x20a9('0x34'))})[_0x20a9('0x2a')]=!0x0;}}export class User{constructor(_0x170186){this['id']=_0x170186['id'],this['color']=_0x170186[_0x20a9('0xa')],this[_0x20a9('0x39')]=_0x170186[_0x20a9('0x39')],this[_0x20a9('0x0')]=_0x170186[_0x20a9('0x0')],this[_0x20a9('0x2a')]=!0x1;}get[_0x20a9('0xb')](){return this[_0x20a9('0x2a')];}get[_0x20a9('0x16')](){const _0xeb25f2=this[_0x20a9('0x39')]['split']('\x20');return 0x1===_0xeb25f2['length']?this[_0x20a9('0x2')](_0xeb25f2[0x0]):this[_0x20a9('0x2')](_0xeb25f2[0x0])+this[_0x20a9('0x2')](_0xeb25f2[_0xeb25f2[_0x20a9('0x36')]-0x1]);}['_getInitial'](_0x2ece08){return _0x2ece08[_0x20a9('0x20')](0x0)['toUpperCase']();}}function a(_0x47e7c9,_0x39614e=''){return''==(_0x39614e=_0x39614e[_0x20a9('0x35')]())?_0x45a574(_0x47e7c9,'Anonymous'):_0x39614e;}class u{constructor(_0x3fd363){this[_0x20a9('0x28')]=_0x3fd363;}['getBackgroundColorClass'](){return'ck-user__bg-color--'+this[_0x20a9('0x28')];}[_0x20a9('0x2f')](){return _0x20a9('0x17')+this['_id'];}['getMarkerClass'](){return _0x20a9('0x1d')+this[_0x20a9('0x28')];}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
export function getTranslation(
|
23
|
+
export function getTranslation(_0x231dbd,_0x240a02){const t=_0x231dbd['t'];switch(_0x240a02){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 _0xa3ae=['registerChild','showConfirm','focus','cancel','element','_removeConfirm','locale','destroy','deregisterChild','isConfirm','message','appendChild','confirmView','fire','cancelConfirm','once','render','remove','submit'];(function(_0x1af65f,_0xa3ae4d){var _0x1dc6fc=function(_0x5cb114){while(--_0x5cb114){_0x1af65f['push'](_0x1af65f['shift']());}};_0x1dc6fc(++_0xa3ae4d);}(_0xa3ae,0xd5));var _0x1dc6=function(_0x1af65f,_0xa3ae4d){_0x1af65f=_0x1af65f-0x0;var _0x1dc6fc=_0xa3ae[_0x1af65f];return _0x1dc6fc;};import _0x4a18a9 from'./confirmview';export default function m(_0x24fc65){return class extends _0x24fc65{[_0x1dc6('0x10')](_0x34da39,_0x3074df){return this[_0x1dc6('0x8')]=new _0x4a18a9(this[_0x1dc6('0x2')]),this[_0x1dc6('0x8')][_0x1dc6('0xc')](),this[_0x1dc6('0x8')][_0x1dc6('0x6')]=_0x34da39,this[_0x1dc6('0x8')][_0x1dc6('0xb')](_0x1dc6('0x12'),()=>{this[_0x1dc6('0x1')]();}),this[_0x1dc6('0x8')][_0x1dc6('0xb')](_0x1dc6('0xe'),()=>{this[_0x1dc6('0x1')]();}),_0x3074df[_0x1dc6('0x7')](this[_0x1dc6('0x8')][_0x1dc6('0x0')]),this[_0x1dc6('0xf')](this[_0x1dc6('0x8')]),this[_0x1dc6('0x0')][_0x1dc6('0x11')](),this['set'](_0x1dc6('0x5'),!0x0),new Promise(_0x71f6f5=>this[_0x1dc6('0x8')]['on']('submit',_0x71f6f5));}[_0x1dc6('0xa')](){this[_0x1dc6('0x5')]&&this['confirmView'][_0x1dc6('0x9')](_0x1dc6('0x12'));}[_0x1dc6('0x1')](){this['element']&&this[_0x1dc6('0x8')]&&this[_0x1dc6('0x8')][_0x1dc6('0x0')]&&(this['element'][_0x1dc6('0x11')](),this[_0x1dc6('0x8')][_0x1dc6('0x0')][_0x1dc6('0xd')](),this[_0x1dc6('0x4')](this[_0x1dc6('0x8')]),this[_0x1dc6('0x5')]=!0x1,this[_0x1dc6('0x8')][_0x1dc6('0x3')](),this[_0x1dc6('0x8')]=void 0x0);}};}
|
package/src/utils/confirmview.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x4d6f=['ck-thread__remove-confirm-actions','cancelView','Are\x20you\x20sure?','Yes','setTemplate','set','submitView','cancel','bindTemplate','check','execute','_createButtonView','submit','ck-thread__remove-confirm-inner','icon','div','message','extendTemplate'];(function(_0x843e99,_0x4d6f0b){const _0x29c002=function(_0x32db45){while(--_0x32db45){_0x843e99['push'](_0x843e99['shift']());}};_0x29c002(++_0x4d6f0b);}(_0x4d6f,0x86));const _0x29c0=function(_0x843e99,_0x4d6f0b){_0x843e99=_0x843e99-0x0;let _0x29c002=_0x4d6f[_0x843e99];return _0x29c002;};import{View as _0x3a9405,ButtonView as _0x465128}from'ckeditor5/src/ui';import{icons as _0x1e63f9}from'ckeditor5/src/core';import{getTranslation as _0x50ce19}from'./common-translations';export default class h extends _0x3a9405{constructor(_0x5baf95){super(_0x5baf95);const _0x3eee72=this[_0x29c0('0x0')];this[_0x29c0('0x10')]=this[_0x29c0('0x3')](_0x5baf95,_0x50ce19(_0x5baf95,_0x29c0('0xd')),_0x1e63f9[_0x29c0('0x1')],_0x29c0('0x4')),this[_0x29c0('0xb')]=this[_0x29c0('0x3')](_0x5baf95,_0x50ce19(_0x5baf95,'No'),_0x1e63f9[_0x29c0('0x11')],_0x29c0('0x11')),this[_0x29c0('0xf')](_0x29c0('0x8'),_0x50ce19(_0x5baf95,_0x29c0('0xc'))),this[_0x29c0('0xe')]({'tag':_0x29c0('0x7'),'attributes':{'class':['ck-thread__remove-confirm']},'children':[{'tag':_0x29c0('0x7'),'attributes':{'class':_0x29c0('0x5')},'children':[{'tag':'p','children':[{'text':_0x3eee72['to'](_0x29c0('0x8'))}]},{'tag':_0x29c0('0x7'),'attributes':{'class':_0x29c0('0xa')},'children':[this['submitView'],this[_0x29c0('0xb')]]}]}]});}[_0x29c0('0x3')](_0x4a519d,_0x23e3b4,_0x2e4031,_0x395c7b){const _0x4bb784=new _0x465128(_0x4a519d);return _0x4bb784['label']=_0x23e3b4,_0x4bb784[_0x29c0('0x6')]=_0x2e4031,_0x4bb784[_0x29c0('0x9')]({'attributes':{'class':'ck-thread__remove-confirm-'+_0x395c7b}}),_0x4bb784['on'](_0x29c0('0x2'),()=>this['fire'](_0x395c7b)),_0x4bb784;}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x4ae3=['string','function','\x27Last\x27\x20EEEE\x20hh:mma','MM-dd-yyyy\x20hh:mma','invalid-date-time-format','dateTimeFormat','\x27Yesterday\x27\x20hh:mma','\x27Today\x27\x20hh:mma'];(function(_0x3a90d8,_0x4ae395){const _0x4b9394=function(_0x3b9b46){while(--_0x3b9b46){_0x3a90d8['push'](_0x3a90d8['shift']());}};_0x4b9394(++_0x4ae395);}(_0x4ae3,0x15a));const _0x4b93=function(_0x3a90d8,_0x4ae395){_0x3a90d8=_0x3a90d8-0x0;let _0x4b9394=_0x4ae3[_0x3a90d8];return _0x4b9394;};import _0x44fb7d from'date-fns/format';import _0x4ad770 from'date-fns/parseISO';import _0xe53da3 from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x126a5e}from'ckeditor5/src/utils';export default function E(_0x2c607={}){if(void 0x0!==_0x2c607['dateTimeFormat']&&_0x4b93('0x7')!=typeof _0x2c607[_0x4b93('0x3')])throw new _0x126a5e(_0x4b93('0x2'));return _0x3be31f=>{const _0x47b3bc=_0x4b93('0x6')==typeof _0x3be31f?_0x4ad770(_0x3be31f):_0x3be31f,_0x32e0bf=new Date(),_0x125128=_0xe53da3(_0x32e0bf,_0x47b3bc);return _0x2c607[_0x4b93('0x3')]?_0x2c607[_0x4b93('0x3')](_0x47b3bc):_0x44fb7d(_0x47b3bc,0x0===_0x125128?_0x4b93('0x5'):0x1===_0x125128?_0x4b93('0x4'):_0x125128<0x7?_0x4b93('0x0'):_0x4b93('0x1'));};}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x17cc=['markerNameToElements','name','mapper','length','domConverter','domElement','map','values','mapViewToDom','filter','item','view'];(function(_0x1a4ed9,_0x17cc70){const _0x43009d=function(_0x177f71){while(--_0x177f71){_0x1a4ed9['push'](_0x1a4ed9['shift']());}};_0x43009d(++_0x17cc70);}(_0x17cc,0xd2));const _0x4300=function(_0x1a4ed9,_0x17cc70){_0x1a4ed9=_0x1a4ed9-0x0;let _0x43009d=_0x17cc[_0x1a4ed9];return _0x43009d;};import{first as _0x36d3f1}from'ckeditor5/src/utils';export default function k(_0x37c01f,_0x30993f){const _0x47750c=_0x37c01f[_0x4300('0x8')]['markerNameToElements'](_0x30993f[_0x4300('0x7')]);if(!_0x47750c)return null;const _0x5d25a8=_0x36d3f1(_0x47750c[_0x4300('0x1')]());return _0x37c01f[_0x4300('0x5')][_0x4300('0xa')][_0x4300('0x2')](_0x5d25a8)||null;}export function getAllMarkersDomElementsSorted(_0x758ed4,_0x426f84){if(0x0===_0x426f84[_0x4300('0x9')])return null;const _0xa319ad=[],_0x144b94=_0x758ed4[_0x4300('0x5')][_0x4300('0xa')];for(const _0x22ea9c of _0x426f84){const _0x1dd92a=_0x758ed4[_0x4300('0x8')][_0x4300('0x6')](_0x22ea9c['name']);if(!_0x1dd92a)continue;const _0x1c23be=Array['from'](_0x1dd92a)[_0x4300('0x0')](_0x5b4a43=>_0x144b94[_0x4300('0x2')](_0x5b4a43))[_0x4300('0x3')](_0x50c6f4=>!!_0x50c6f4);_0xa319ad['push'](..._0x1c23be);}if(0x0===_0xa319ad[_0x4300('0x9')])return null;const _0x4caa99=[];for(const _0x2a8ddb of _0xa319ad){const _0x166b68=_0x2a8ddb['getClientRects']()[_0x4300('0x4')](0x0);_0x166b68&&_0x4caa99['push']({'x':_0x166b68['x'],'y':_0x166b68['y'],'domElement':_0x2a8ddb});}return 0x0===_0x4caa99[_0x4300('0x9')]?null:(_0x4caa99['sort']((_0x518928,_0x3790e1)=>_0x518928['y']-_0x3790e1['y']||_0x518928['x']-_0x3790e1['x']),_0x4caa99[_0x4300('0x0')](_0x70b881=>_0x70b881[_0x4300('0xb')]));}
|
package/src/utils/hashobject.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x5200=['string','charCodeAt','boolean','sort','sign','keys','isArray','object'];(function(_0x8dca59,_0x5200ee){const _0x4838c4=function(_0x463648){while(--_0x463648){_0x8dca59['push'](_0x8dca59['shift']());}};_0x4838c4(++_0x5200ee);}(_0x5200,0x89));const _0x4838=function(_0x8dca59,_0x5200ee){_0x8dca59=_0x8dca59-0x0;let _0x4838c4=_0x5200[_0x8dca59];return _0x4838c4;};export default function b(_0x24e16f){let _0x9a5684=0x0,_0x155bf1=0x0;for(const _0x235753 of g(_0x24e16f))_0x9a5684=(_0x9a5684<<0x5)-_0x9a5684+_0x235753,_0x9a5684&=_0x9a5684,[_0x9a5684,_0x155bf1]=[_0x155bf1,_0x9a5684];return O(_0x9a5684)+O(_0x155bf1);}function*j(_0x23079e){_0x23079e?_0x4838('0x1')==typeof _0x23079e?yield 0x1:Array[_0x4838('0x5')](_0x23079e)?yield*function*(_0xce26fa){for(const _0x2f4085 of _0xce26fa)yield*j(_0x2f4085);}(_0x23079e):_0x4838('0x6')==typeof _0x23079e?yield*g(_0x23079e):_0x4838('0x7')==typeof _0x23079e?yield*A(_0x23079e):'number'==typeof _0x23079e&&(yield _0x23079e):yield 0x0;}function*g(_0x3b8554){if(yield M('{'),_0x3b8554){const _0x54fb14=Object[_0x4838('0x4')](_0x3b8554)[_0x4838('0x2')]();for(const _0x4e3b5d of _0x54fb14){yield*A(_0x4e3b5d),yield M(':');const _0x1734b0=_0x3b8554[_0x4e3b5d];yield*j(_0x1734b0);}}yield M('}');}function*A(_0x19748c){yield M('\x22');for(const _0x58bc8f of _0x19748c)yield M(_0x58bc8f);yield M('\x22');}function M(_0x19f197){return _0x19f197[_0x4838('0x0')](0x0);}function O(_0x3eefb1){return(_0x3eefb1*=Math[_0x4838('0x3')](_0x3eefb1))['toString'](0x24);}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x3a75=['find','context','get','RevisionTracker','WordCount','WProofreader','removePlugins','config','has','set','extraPlugins','toolbar','every','length','plugins','names','initialData','DocumentOutline','WebSocketGateway','rootsAttributes','Autosave','filter','_context','builtinPlugins','pluginName','name','constructor','concat','map','requires','includes','string'];(function(_0x211df8,_0x3a75b9){const _0x387fb1=function(_0x39354b){while(--_0x39354b){_0x211df8['push'](_0x211df8['shift']());}};_0x387fb1(++_0x3a75b9);}(_0x3a75,0xef));const _0x387f=function(_0x211df8,_0x3a75b9){_0x211df8=_0x211df8-0x0;let _0x387fb1=_0x3a75[_0x211df8];return _0x387fb1;};const w=[_0x387f('0x1'),_0x387f('0x12'),_0x387f('0x1c'),_0x387f('0x4')],W=[_0x387f('0x3'),_0x387f('0x14'),_0x387f('0x5'),_0x387f('0x15'),_0x387f('0x2'),_0x387f('0x16')];function v(_0x4e0587,_0x5bf875,_0x197ffc,_0x426431=[]){const _0x33c66e='string'==typeof _0x4e0587?_0x197ffc[_0x387f('0x13')](_0x4e0587)['constructor']:_0x4e0587,_0x48bee4=_0x33c66e[_0x387f('0x9')]||_0x33c66e[_0x387f('0xa')];if(_0x5bf875[_0x387f('0x19')](_0x48bee4))return _0x5bf875['get'](_0x48bee4);if(_0x5bf875[_0x387f('0x1a')](_0x48bee4,!0x0),_0x48bee4&&W[_0x387f('0xc')](_0x426431)[_0x387f('0xf')](_0x48bee4))return _0x5bf875[_0x387f('0x1a')](_0x48bee4,!0x1),!0x1;if(!_0x33c66e[_0x387f('0xe')])return _0x5bf875[_0x387f('0x1a')](_0x48bee4,!0x0),!0x0;const _0x4ba1c9=_0x33c66e[_0x387f('0xe')][_0x387f('0x1d')](_0xb43634=>v(_0xb43634,_0x5bf875,_0x197ffc,_0x426431));return _0x5bf875[_0x387f('0x1a')](_0x48bee4,_0x4ba1c9),_0x4ba1c9;}export default function D(_0x423ce7,_0x5f1abb){const _0x348b04={};for(const _0x2a635e of _0x423ce7[_0x387f('0x18')][_0x387f('0x0')]())w[_0x387f('0xf')](_0x2a635e)||(_0x348b04[_0x2a635e]=_0x423ce7['config'][_0x387f('0x13')](_0x2a635e));const _0x641c7c=_0x348b04[_0x387f('0x1f')]||[],_0x227938=_0x423ce7[_0x387f('0xb')][_0x387f('0x8')]||[],_0x4a3875=_0x641c7c[_0x387f('0x1e')]?_0x641c7c:_0x227938,_0x291674=_0x348b04['extraPlugins']||[];delete _0x348b04[_0x387f('0x1b')];const _0x1873f7=_0x348b04[_0x387f('0x17')]||[];delete _0x348b04[_0x387f('0x17')];const _0xfb4996=_0x423ce7[_0x387f('0x7')][_0x387f('0x18')][_0x387f('0x13')]('plugins')||[],_0x48cf24=_0x4a3875['concat'](_0x291674)[_0x387f('0xc')](_0xfb4996)[_0x387f('0xd')](_0x403d3a=>_0x387f('0x10')==typeof _0x403d3a?_0x227938[_0x387f('0x11')](_0x1f61a6=>_0x1f61a6[_0x387f('0x9')]==_0x403d3a):_0x403d3a)[_0x387f('0x6')](_0x438959=>!_0x1873f7['includes'](_0x438959)&&!_0x1873f7['includes'](_0x438959['pluginName'])),_0x3e2b4d=Array['from'](new Set(_0x48cf24)),_0x1479a1=new Map();return _0x348b04['plugins']=_0x3e2b4d[_0x387f('0x6')](_0x24269e=>v(_0x24269e,_0x1479a1,_0x423ce7['plugins'],_0x5f1abb)),_0x348b04;}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x26fb=['length','document','change:range','start','isEqual','markers','focus','selection','push','containsPosition'];(function(_0x4ef66b,_0x26fba9){const _0x31fc75=function(_0x4af86e){while(--_0x4af86e){_0x4ef66b['push'](_0x4ef66b['shift']());}};_0x31fc75(++_0x26fba9);}(_0x26fb,0x1b0));const _0x31fc=function(_0x4ef66b,_0x26fba9){_0x4ef66b=_0x4ef66b-0x0;let _0x31fc75=_0x26fb[_0x4ef66b];return _0x31fc75;};export default function q(_0x46933c,_0x588b65){const _0x226b93=[];_0x46933c[_0x31fc('0x9')][_0x31fc('0x5')]['on'](_0x31fc('0x0'),()=>{const _0x20586c=function(_0x7454e0,_0x1584bd){const _0x25c464=[];for(const _0x568658 of _0x7454e0[_0x31fc('0x3')]){const _0x4bc9c8=_0x568658['getRange']();(_0x4bc9c8[_0x31fc('0x7')](_0x1584bd)||_0x4bc9c8[_0x31fc('0x1')]['isEqual'](_0x1584bd)||_0x4bc9c8['end'][_0x31fc('0x2')](_0x1584bd))&&_0x25c464['push'](_0x568658);}return _0x25c464;}(_0x46933c,_0x46933c[_0x31fc('0x9')][_0x31fc('0x5')][_0x31fc('0x4')]),_0x42b6cb=[],_0x20408a=[],_0x41425a=[];for(const _0x131a70 of _0x226b93)_0x20586c['includes'](_0x131a70)||_0x42b6cb[_0x31fc('0x6')](_0x131a70);for(const _0x48a002 of _0x20586c)_0x226b93['includes'](_0x48a002)||_0x20408a[_0x31fc('0x6')](_0x48a002),_0x41425a[_0x31fc('0x6')](_0x48a002);(_0x42b6cb[_0x31fc('0x8')]||_0x20408a['length'])&&_0x588b65({'left':_0x42b6cb,'entered':_0x20408a}),_0x226b93['length']=0x0,_0x226b93[_0x31fc('0x6')](..._0x41425a);});}
|
package/src/utils/trim-html.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x1d32=['substring','...','length','startsWith','match','pop','replace','slice','join','push'];(function(_0x7a5d21,_0x1d32ae){const _0x2f9349=function(_0x4160cd){while(--_0x4160cd){_0x7a5d21['push'](_0x7a5d21['shift']());}};_0x2f9349(++_0x1d32ae);}(_0x1d32,0x84));const _0x2f93=function(_0x7a5d21,_0x1d32ae){_0x7a5d21=_0x7a5d21-0x0;let _0x2f9349=_0x1d32[_0x7a5d21];return _0x2f9349;};export default function z(_0x2a5fba,{limit:_0x35a648,suffix:_0x29205a=_0x2f93('0x9')}){const _0x24d729=[];let _0x10787a=0x0;const _0xb843a3=_0x2a5fba[_0x2f93('0x4')](/</g,'\x0a<')[_0x2f93('0x4')](/>/g,'>\x0a')[_0x2f93('0x4')](/^\n/g,'')[_0x2f93('0x4')](/\n$/g,'')['split']('\x0a');for(let _0x46246b=0x0;_0x46246b<_0xb843a3[_0x2f93('0x0')];_0x46246b++){let _0x583cc4=_0xb843a3[_0x46246b];const _0x1ffe1b=Z(_0x583cc4);if(_0x583cc4[_0x2f93('0x1')]('<')){if(_0x10787a>=_0x35a648){const _0x23ccc8=_0x583cc4[_0x2f93('0x2')](/[a-zA-Z]+/);if(!_0x23ccc8){_0xb843a3[_0x46246b]='';continue;}const _0x6c0f6d=_0x23ccc8[0x0];_0x583cc4['startsWith']('</')?(_0x24d729[_0x2f93('0x0')]&&(_0x583cc4=''),_0x24d729[_0x2f93('0x3')]()):(_0x24d729[_0x2f93('0x7')](_0x6c0f6d),_0x583cc4='');}}else{if(_0x10787a>=_0x35a648)_0x583cc4='';else{if(_0x10787a+_0x1ffe1b['length']>=_0x35a648){let _0x2703a4=_0x35a648-_0x10787a;if('\x20'===_0x1ffe1b[_0x2703a4-0x1])_0x2703a4--;else{const _0x176298=_0x1ffe1b['slice'](_0x2703a4)['indexOf']('\x20');-0x1!==_0x176298?_0x2703a4+=_0x176298:_0x2703a4=_0x583cc4[_0x2f93('0x0')];}_0x583cc4=_0x1ffe1b[_0x2f93('0x5')](0x0,_0x2703a4)[_0x2f93('0x6')]('')+_0x29205a,_0x10787a=_0x35a648;}else _0x10787a+=_0x1ffe1b[_0x2f93('0x0')];}}_0xb843a3[_0x46246b]=_0x583cc4;}return _0xb843a3[_0x2f93('0x6')]('\x0a')[_0x2f93('0x4')](/\n/g,'');}function Z(_0x3d26e8){const _0x52619c=[];for(let _0x8aa8db=0x0;_0x8aa8db<_0x3d26e8['length'];_0x8aa8db++){const _0x50523a=_0x3d26e8[_0x2f93('0x8')](_0x8aa8db)[_0x2f93('0x2')](/^&[a-z0-9#]+;/);if(_0x50523a){const _0x36ee65=_0x50523a[0x0];_0x52619c[_0x2f93('0x7')](_0x36ee65),_0x8aa8db+=_0x36ee65[_0x2f93('0x0')]-0x1;}else _0x52619c[_0x2f93('0x7')](_0x3d26e8[_0x8aa8db]);}return _0x52619c;}
|