@ckeditor/ckeditor5-collaboration-core 0.0.0-nightly-20240117.0 → 0.0.0-nightly-20240119.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-20240119.0",
|
4
4
|
"description": "Base utilities used by CKEditor 5 collaboration features to support multiple users working together in a rich text editor.",
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
@@ -32,7 +32,7 @@
|
|
32
32
|
"type": "module",
|
33
33
|
"main": "src/index.js",
|
34
34
|
"dependencies": {
|
35
|
-
"ckeditor5": "0.0.0-nightly-
|
35
|
+
"ckeditor5": "0.0.0-nightly-20240119.0",
|
36
36
|
"date-fns": "2.30.0"
|
37
37
|
},
|
38
38
|
"files": [
|
package/src/permissions.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x4769=['context','disableReadOnlyMode','addCommentThread','plugins','collaboration.channelId','comment:admin','has','noPermissions','permissions-set-permissions-invalid-channel-id','editors','CommentsOnly','forceDisabled','CommentsRepository','clearForceDisabled','comment:write','config','no-permissions','find','get','isEnabled','commands','setPermissions','document:write','includes'];(function(_0x6cdf71,_0x4769d6){const _0x589d12=function(_0x497d4f){while(--_0x497d4f){_0x6cdf71['push'](_0x6cdf71['shift']());}};_0x589d12(++_0x4769d6);}(_0x4769,0x80));const _0x589d=function(_0x6cdf71,_0x4769d6){_0x6cdf71=_0x6cdf71-0x0;let _0x589d12=_0x4769[_0x6cdf71];return _0x589d12;};import{ContextPlugin as _0x2fec49,Editor as _0x5ac147}from'ckeditor5/src/core.js';import{CKEditorError as _0x456da7}from'ckeditor5/src/utils.js';export default class n extends _0x2fec49{static get['pluginName'](){return'Permissions';}[_0x589d('0xd')](_0x33a284,_0x51193c){let _0x3a5c0e;if(_0x51193c||(_0x51193c=this[_0x589d('0x10')]['config'][_0x589d('0xa')]('collaboration.channelId')),this['context'][_0x589d('0x7')]['get'](_0x589d('0x14'))==_0x51193c?_0x3a5c0e=this[_0x589d('0x10')]:_0x589d('0x1')in this[_0x589d('0x10')]&&this[_0x589d('0x10')][_0x589d('0x1')]&&(_0x3a5c0e=this['context'][_0x589d('0x1')][_0x589d('0x9')](_0x294766=>_0x294766[_0x589d('0x7')][_0x589d('0xa')]('collaboration.channelId')==_0x51193c)),!_0x3a5c0e)throw new _0x456da7(_0x589d('0x0'),null);const _0x650b8=_0x3a5c0e[_0x589d('0x13')],_0xcc12f9=_0x650b8[_0x589d('0x16')](_0x589d('0x4'))?_0x650b8[_0x589d('0xa')](_0x589d('0x4')):void 0x0,_0x398e60=_0x650b8[_0x589d('0x16')](_0x589d('0x2'))&&_0x650b8['get'](_0x589d('0x2')),_0x570bed=_0x33a284[_0x589d('0xf')](_0x589d('0xe')),_0x3cb45c=_0x33a284[_0x589d('0xf')]('comment:modify_all'),_0x2d37c9=_0x33a284[_0x589d('0xf')](_0x589d('0x15')),_0x350c00=_0x33a284[_0x589d('0xf')](_0x589d('0x6')),_0x3f51c3=_0x350c00||_0x2d37c9,_0x568a06=_0x3f51c3||_0x3cb45c,_0x4d8dee=_0x570bed||_0x3f51c3;(_0x398e60&&(_0x398e60[_0x589d('0xb')]=!_0x570bed&&_0x568a06),_0x3a5c0e instanceof _0x5ac147)&&(!(_0x570bed||_0x568a06&&_0xcc12f9)?_0x3a5c0e['enableReadOnlyMode'](_0x589d('0x8')):_0x3a5c0e[_0x589d('0x11')](_0x589d('0x8')));if(_0xcc12f9){_0xcc12f9['setPermissions']({'admin':_0x2d37c9,'modifyAll':_0x3cb45c,'write':_0x350c00,'resolve':_0x4d8dee},_0x51193c);const _0x2e79d3=_0x3a5c0e instanceof _0x5ac147&&_0x3a5c0e[_0x589d('0xc')][_0x589d('0xa')](_0x589d('0x12'));_0x2e79d3&&(_0x3f51c3?_0x2e79d3[_0x589d('0x5')](_0x589d('0x17')):_0x2e79d3[_0x589d('0x3')](_0x589d('0x17')));}}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x1693=['ck-user__icon','name','ck\x20ck-user__name\x20ck-user__name--hidden','ck-user__notification','div','url(\x27','push','extendTemplate','ck-user__anonymous','ck-user__avatar','notificationView','initials','avatar','ck-user','isAnonymous','content','ck\x20ck-user__name'];(function(_0x3ccac8,_0x1693e1){const _0x301f8d=function(_0x4666ee){while(--_0x4666ee){_0x3ccac8['push'](_0x3ccac8['shift']());}};_0x301f8d(++_0x1693e1);}(_0x1693,0x163));const _0x301f=function(_0x3ccac8,_0x1693e1){_0x3ccac8=_0x3ccac8-0x0;let _0x301f8d=_0x1693[_0x3ccac8];return _0x301f8d;};import{View as _0x35462c,IconView as _0x53cf9f}from'ckeditor5/src/ui.js';import _0x22b249 from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class E extends _0x35462c{constructor(_0xe59bea,_0xe84562,_0x22e647){super(_0xe59bea),this[_0x301f('0x3')]=_0xe84562['name'],this[_0x301f('0xc')]=null;const _0x2d3f09=['ck','ck-user__img'];if(_0xe84562[_0x301f('0x10')]&&_0x2d3f09[_0x301f('0x8')](_0x301f('0xa')),_0xe84562[_0x301f('0xe')]&&_0x2d3f09[_0x301f('0x8')](_0x301f('0xb')),_0x22e647){const _0xf8e071=new _0x53cf9f();_0xf8e071[_0x301f('0x9')]({'attributes':{'class':[_0x301f('0x2')]}}),_0xf8e071[_0x301f('0x0')]=_0x22b249,this['notificationView']={'tag':_0x301f('0x6'),'attributes':{'class':['ck',_0x301f('0x5')],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x22e647},'children':[_0xf8e071]};}const _0x321998=[{'tag':_0x301f('0x6'),'attributes':{'class':_0x2d3f09,'style':{'background-image':_0xe84562['avatar']?_0x301f('0x7')+_0xe84562[_0x301f('0xe')]+'\x27)':''}}},{'tag':_0x301f('0x6'),'attributes':{'class':_0xe84562[_0x301f('0xe')]?_0x301f('0x4'):_0x301f('0x1')},'children':[{'text':_0xe84562[_0x301f('0xd')]}]}];this[_0x301f('0xc')]&&_0x321998[_0x301f('0x8')](this[_0x301f('0xc')]),this['setTemplate']({'tag':_0x301f('0x6'),'attributes':{'class':['ck',_0x301f('0xf')],'data-user-id':_0xe84562['id']},'children':_0x321998});}}
|
package/src/users.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x414b=['destroy','licenseKeyTrialLimit:time','users-add-duplicated-id','getSelectionClass','trial-license-key-reached-limit-revisions','licenseKeyTrialLimit:revisions','trial-license-key-reached-limit-time','users-me-already-defined','color','_id','_lastColor','pluginName','initials','ck-user__selection--','info','_myId','_isAnonymous','toUpperCase','anonymous-user','get','_locale','users','useAnonymousUser','licenseKeyTrialLimit:operations','addUser','charAt','Anonymous','getOperationAuthor','avatar','trim','users.colorsCount','decorate','licenseKeyValid','context','includes','users-add-invalid-id','_licenseKeyCheckInterval','_getInitial','trial-license-key-reached-limit-changes','string','users.anonymousUserId','config','getUser','_getNextColor','name','getMarkerClass','requires','defineMe','licenseKeyTrial','has','locale','define','init','users-me-missing-user','licenseKeyInvalid','licenseKey','length'];(function(_0x54210a,_0x414b61){const _0x5512f4=function(_0x5c1923){while(--_0x5c1923){_0x54210a['push'](_0x54210a['shift']());}};_0x5512f4(++_0x414b61);}(_0x414b,0x1c5));const _0x5512=function(_0x54210a,_0x414b61){_0x54210a=_0x54210a-0x0;let _0x5512f4=_0x414b[_0x54210a];return _0x5512f4;};import{ContextPlugin as _0x25e41b}from'ckeditor5/src/core.js';import{Collection as _0x1adcff,CKEditorError as _0x2b4aae}from'ckeditor5/src/utils.js';import _0x5d8b04 from'./permissions.js';import{getTranslation as _0x4d38ba}from'./utils/common-translations.js';import'../theme/usercolors.css';export default class l extends _0x25e41b{static get[_0x5512('0xe')](){return'Users';}static get[_0x5512('0x31')](){return[_0x5d8b04];}constructor(_0x80abed){super(_0x80abed),this['context']['config']['define'](_0x5512('0x2b'),_0x5512('0x15')),this['context'][_0x5512('0x2c')][_0x5512('0x36')](_0x5512('0x21'),0x8),this[_0x5512('0x18')]=new _0x1adcff(),this[_0x5512('0x17')]=_0x80abed[_0x5512('0x35')],this['_licenseKeyCheckInterval']=null,this['_lastColor']=0x0,this[_0x5512('0x12')]=null,this[_0x5512('0x22')](_0x5512('0x1e'));}[_0x5512('0x37')](){const _0x59e2f8=this[_0x5512('0x24')];this[_0x5512('0x1')]=_0x59e2f8[_0x5512('0x2c')][_0x5512('0x16')](_0x5512('0x1'));const _0x37bf9a=[_0x5512('0x33'),_0x5512('0x0'),_0x5512('0x23'),_0x5512('0x1a'),'licenseKeyTrialLimit:time',_0x5512('0x8')];this[_0x5512('0x27')]=setInterval(()=>{let _0x45ce1b;for(const _0x394c8e in _0x59e2f8){const _0x53cfc1=_0x59e2f8[_0x394c8e];if(_0x37bf9a[_0x5512('0x25')](_0x53cfc1)){delete _0x59e2f8[_0x394c8e],_0x45ce1b=_0x53cfc1;break;}}if('licenseKeyInvalid'===_0x45ce1b)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x2b4aae('invalid-license-key',null);if(_0x5512('0x33')===_0x45ce1b&&console[_0x5512('0x11')]('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.'),_0x5512('0x1a')===_0x45ce1b)throw clearInterval(this[_0x5512('0x27')]),new _0x2b4aae(_0x5512('0x29'),null);if(_0x5512('0x4')===_0x45ce1b)throw clearInterval(this[_0x5512('0x27')]),new _0x2b4aae(_0x5512('0x9'),null);if(_0x5512('0x8')===_0x45ce1b)throw clearInterval(this[_0x5512('0x27')]),new _0x2b4aae(_0x5512('0x7'),null);_0x5512('0x23')===_0x45ce1b&&clearInterval(this[_0x5512('0x27')]);},0x3e8),this['_addAnonymousUser']();}get['me'](){return null==this[_0x5512('0x12')]?null:this[_0x5512('0x2d')](this[_0x5512('0x12')]);}[_0x5512('0x1b')]({id:_0x11372c,name:_0x3ed432,..._0x51ac34}){if(!_0x11372c||_0x5512('0x2a')!=typeof _0x11372c)throw new _0x2b4aae(_0x5512('0x26'));if(this[_0x5512('0x18')][_0x5512('0x34')](_0x11372c))throw new _0x2b4aae(_0x5512('0x5'),null,{'id':_0x11372c});const _0x3654ac={..._0x51ac34,'id':_0x11372c,'name':a(this[_0x5512('0x17')],_0x3ed432),'color':this[_0x5512('0x2e')]()};_0x3654ac[_0x5512('0x2f')]=a(this[_0x5512('0x17')],_0x3654ac[_0x5512('0x2f')]);const _0x206466=new User(_0x3654ac);return this[_0x5512('0x18')]['add'](_0x206466),_0x206466;}[_0x5512('0x2d')](_0x596dca){return this[_0x5512('0x18')][_0x5512('0x16')](_0x596dca);}[_0x5512('0x19')](){const _0x330a97=this[_0x5512('0x24')][_0x5512('0x2c')][_0x5512('0x16')](_0x5512('0x2b'));this[_0x5512('0x12')]||this[_0x5512('0x32')](_0x330a97);}[_0x5512('0x32')](_0x3824c7){if(this['_myId'])throw new _0x2b4aae(_0x5512('0xa'),null);if(!this['getUser'](_0x3824c7))throw new _0x2b4aae(_0x5512('0x38'),null);this[_0x5512('0x12')]=_0x3824c7;}[_0x5512('0x1e')](){return this['me'];}['destroy'](){super[_0x5512('0x3')](),clearInterval(this[_0x5512('0x27')]);}['_getNextColor'](){const _0x55fddc=this[_0x5512('0x24')][_0x5512('0x2c')][_0x5512('0x16')]('users.colorsCount');return this[_0x5512('0xd')]>=_0x55fddc&&(this[_0x5512('0xd')]=0x0),new u(this[_0x5512('0xd')]++);}['_addAnonymousUser'](){const _0x422f1b=this[_0x5512('0x24')][_0x5512('0x2c')][_0x5512('0x16')]('users.anonymousUserId');this['addUser']({'id':_0x422f1b,'name':_0x4d38ba(this[_0x5512('0x17')],_0x5512('0x1d'))})[_0x5512('0x13')]=!0x0;}}export class User{constructor(_0x242312){this['id']=_0x242312['id'],this['color']=_0x242312[_0x5512('0xb')],this[_0x5512('0x2f')]=_0x242312[_0x5512('0x2f')],this[_0x5512('0x1f')]=_0x242312[_0x5512('0x1f')],this[_0x5512('0x13')]=!0x1;}get['isAnonymous'](){return this[_0x5512('0x13')];}get[_0x5512('0xf')](){const _0x79aad3=this[_0x5512('0x2f')]['split']('\x20');return 0x1===_0x79aad3[_0x5512('0x2')]?this[_0x5512('0x28')](_0x79aad3[0x0]):this[_0x5512('0x28')](_0x79aad3[0x0])+this[_0x5512('0x28')](_0x79aad3[_0x79aad3[_0x5512('0x2')]-0x1]);}['_getInitial'](_0x1bb035){return _0x1bb035[_0x5512('0x1c')](0x0)[_0x5512('0x14')]();}}function a(_0x574783,_0x182374=''){return''==(_0x182374=_0x182374[_0x5512('0x20')]())?_0x4d38ba(_0x574783,'Anonymous'):_0x182374;}class u{constructor(_0x5c2271){this[_0x5512('0xc')]=_0x5c2271;}['getBackgroundColorClass'](){return'ck-user__bg-color--'+this[_0x5512('0xc')];}[_0x5512('0x6')](){return _0x5512('0x10')+this['_id'];}[_0x5512('0x30')](){return'ck-user__marker--'+this['_id'];}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
export function getTranslation(
|
23
|
+
export function getTranslation(_0x442384,_0x27e2cf){const t=_0x442384['t'];switch(_0x27e2cf){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 _0x1c43=['deregisterChild','isConfirm','element','remove','message','confirmView','registerChild','showConfirm','focus','destroy','appendChild','once','render','cancelConfirm','_removeConfirm','cancel','locale','fire','submit'];(function(_0x306fca,_0x1c431){var _0x2fed9e=function(_0x5e00e5){while(--_0x5e00e5){_0x306fca['push'](_0x306fca['shift']());}};_0x2fed9e(++_0x1c431);}(_0x1c43,0x12f));var _0x2fed=function(_0x306fca,_0x1c431){_0x306fca=_0x306fca-0x0;var _0x2fed9e=_0x1c43[_0x306fca];return _0x2fed9e;};import _0xa53365 from'./confirmview.js';export default function m(_0x1ac839){return class extends _0x1ac839{[_0x2fed('0x8')](_0x4cc600,_0x32cbe7){return this[_0x2fed('0x6')]=new _0xa53365(this[_0x2fed('0x11')]),this[_0x2fed('0x6')][_0x2fed('0xd')](),this[_0x2fed('0x6')][_0x2fed('0x5')]=_0x4cc600,this[_0x2fed('0x6')]['once'](_0x2fed('0x10'),()=>{this['_removeConfirm']();}),this[_0x2fed('0x6')][_0x2fed('0xc')]('submit',()=>{this[_0x2fed('0xf')]();}),_0x32cbe7[_0x2fed('0xb')](this['confirmView'][_0x2fed('0x3')]),this[_0x2fed('0x7')](this[_0x2fed('0x6')]),this['element'][_0x2fed('0x9')](),this['set'](_0x2fed('0x2'),!0x0),new Promise(_0x30a09d=>this[_0x2fed('0x6')]['on'](_0x2fed('0x0'),_0x30a09d));}[_0x2fed('0xe')](){this[_0x2fed('0x2')]&&this[_0x2fed('0x6')][_0x2fed('0x12')](_0x2fed('0x10'));}[_0x2fed('0xf')](){this[_0x2fed('0x3')]&&this[_0x2fed('0x6')]&&this['confirmView']['element']&&(this[_0x2fed('0x3')][_0x2fed('0x9')](),this[_0x2fed('0x6')][_0x2fed('0x3')][_0x2fed('0x4')](),this[_0x2fed('0x1')](this[_0x2fed('0x6')]),this[_0x2fed('0x2')]=!0x1,this[_0x2fed('0x6')][_0x2fed('0xa')](),this[_0x2fed('0x6')]=void 0x0);}};}
|
package/src/utils/confirmview.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x4f17=['ck-thread__remove-confirm-','label','fire','extendTemplate','set','submit','Yes','submitView','div','ck-thread__remove-confirm-actions','setTemplate','Are\x20you\x20sure?','message','icon','check','cancel','bindTemplate','ck-thread__remove-confirm','_createButtonView','execute','cancelView'];(function(_0x30f164,_0x4f1772){const _0x58258c=function(_0x566fb6){while(--_0x566fb6){_0x30f164['push'](_0x30f164['shift']());}};_0x58258c(++_0x4f1772);}(_0x4f17,0x131));const _0x5825=function(_0x30f164,_0x4f1772){_0x30f164=_0x30f164-0x0;let _0x58258c=_0x4f17[_0x30f164];return _0x58258c;};import{View as _0x2eb790,ButtonView as _0x1d5277}from'ckeditor5/src/ui.js';import{icons as _0x1339db}from'ckeditor5/src/core.js';import{getTranslation as _0x1a9fa2}from'./common-translations.js';export default class h extends _0x2eb790{constructor(_0x19f08d){super(_0x19f08d);const _0x36fd3e=this[_0x5825('0x5')];this[_0x5825('0x11')]=this[_0x5825('0x7')](_0x19f08d,_0x1a9fa2(_0x19f08d,_0x5825('0x10')),_0x1339db[_0x5825('0x3')],_0x5825('0xf')),this[_0x5825('0x9')]=this[_0x5825('0x7')](_0x19f08d,_0x1a9fa2(_0x19f08d,'No'),_0x1339db[_0x5825('0x4')],_0x5825('0x4')),this[_0x5825('0xe')](_0x5825('0x1'),_0x1a9fa2(_0x19f08d,_0x5825('0x0'))),this[_0x5825('0x14')]({'tag':_0x5825('0x12'),'attributes':{'class':[_0x5825('0x6')]},'children':[{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-inner'},'children':[{'tag':'p','children':[{'text':_0x36fd3e['to']('message')}]},{'tag':'div','attributes':{'class':_0x5825('0x13')},'children':[this[_0x5825('0x11')],this[_0x5825('0x9')]]}]}]});}['_createButtonView'](_0x1c1113,_0x57dd86,_0x3456f2,_0x2a9d7c){const _0x321deb=new _0x1d5277(_0x1c1113);return _0x321deb[_0x5825('0xb')]=_0x57dd86,_0x321deb[_0x5825('0x2')]=_0x3456f2,_0x321deb[_0x5825('0xd')]({'attributes':{'class':_0x5825('0xa')+_0x2a9d7c}}),_0x321deb['on'](_0x5825('0x8'),()=>this[_0x5825('0xc')](_0x2a9d7c)),_0x321deb;}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x2f89=['MM-dd-yyyy\x20hh:mma','invalid-date-time-format','dateTimeFormat','function','\x27Yesterday\x27\x20hh:mma','\x27Today\x27\x20hh:mma','\x27Last\x27\x20EEEE\x20hh:mma'];(function(_0x4080e6,_0x2f890e){const _0xe410a6=function(_0x1bfcbe){while(--_0x1bfcbe){_0x4080e6['push'](_0x4080e6['shift']());}};_0xe410a6(++_0x2f890e);}(_0x2f89,0x173));const _0xe410=function(_0x4080e6,_0x2f890e){_0x4080e6=_0x4080e6-0x0;let _0xe410a6=_0x2f89[_0x4080e6];return _0xe410a6;};import _0x4ad3fd from'date-fns/format/index.js';import _0x3aa8ac from'date-fns/parseISO/index.js';import _0x45b1d9 from'date-fns/differenceInCalendarDays/index.js';import{CKEditorError as _0x22819d}from'ckeditor5/src/utils.js';export default function j(_0x5b4439={}){if(void 0x0!==_0x5b4439['dateTimeFormat']&&_0xe410('0x3')!=typeof _0x5b4439[_0xe410('0x2')])throw new _0x22819d(_0xe410('0x1'));return _0x5d0a58=>{const _0x318f7f='string'==typeof _0x5d0a58?_0x3aa8ac(_0x5d0a58):_0x5d0a58,_0x2fdbd8=new Date(),_0x464601=_0x45b1d9(_0x2fdbd8,_0x318f7f);return _0x5b4439[_0xe410('0x2')]?_0x5b4439[_0xe410('0x2')](_0x318f7f):_0x4ad3fd(_0x318f7f,0x0===_0x464601?_0xe410('0x5'):0x1===_0x464601?_0xe410('0x4'):_0x464601<0x7?_0xe410('0x6'):_0xe410('0x0'));};}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x2c68=['filter','values','getClientRects','markerNameToElements','mapViewToDom','domElement','name','domConverter','sort','length','mapper','push','view','map','item'];(function(_0x1309b2,_0x2c68fb){const _0x5ec90e=function(_0x5bda81){while(--_0x5bda81){_0x1309b2['push'](_0x1309b2['shift']());}};_0x5ec90e(++_0x2c68fb);}(_0x2c68,0xb4));const _0x5ec9=function(_0x1309b2,_0x2c68fb){_0x1309b2=_0x1309b2-0x0;let _0x5ec90e=_0x2c68[_0x1309b2];return _0x5ec90e;};import{first as _0x3acaf7}from'ckeditor5/src/utils.js';export default function k(_0x46b50a,_0x38fbd9){const _0x1fbad5=_0x46b50a['mapper'][_0x5ec9('0x3')](_0x38fbd9[_0x5ec9('0x6')]);if(!_0x1fbad5)return null;const _0x29c489=_0x3acaf7(_0x1fbad5[_0x5ec9('0x1')]());return _0x46b50a['view'][_0x5ec9('0x7')][_0x5ec9('0x4')](_0x29c489)||null;}export function getAllMarkersDomElementsSorted(_0x53a567,_0x7a17f3){if(0x0===_0x7a17f3[_0x5ec9('0x9')])return null;const _0x2da916=[],_0x293c2d=_0x53a567[_0x5ec9('0xc')][_0x5ec9('0x7')];for(const _0x219b81 of _0x7a17f3){const _0x1af877=_0x53a567[_0x5ec9('0xa')][_0x5ec9('0x3')](_0x219b81['name']);if(!_0x1af877)continue;const _0x225d30=Array['from'](_0x1af877)['map'](_0x1afed9=>_0x293c2d[_0x5ec9('0x4')](_0x1afed9))[_0x5ec9('0x0')](_0x3beff8=>!!_0x3beff8);_0x2da916[_0x5ec9('0xb')](..._0x225d30);}if(0x0===_0x2da916[_0x5ec9('0x9')])return null;const _0x5449e5=[];for(const _0x5a2401 of _0x2da916){const _0x4e9984=_0x5a2401[_0x5ec9('0x2')]()[_0x5ec9('0xe')](0x0);_0x4e9984&&_0x5449e5[_0x5ec9('0xb')]({'x':_0x4e9984['x'],'y':_0x4e9984['y'],'domElement':_0x5a2401});}return 0x0===_0x5449e5['length']?null:(_0x5449e5[_0x5ec9('0x8')]((_0x88d590,_0x15529b)=>_0x88d590['y']-_0x15529b['y']||_0x88d590['x']-_0x15529b['x']),_0x5449e5[_0x5ec9('0xd')](_0x58932e=>_0x58932e[_0x5ec9('0x5')]));}
|
package/src/utils/hashobject.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x2b10=['number','object','toString','isArray','keys','sign'];(function(_0x2b0d,_0x2b10e4){const _0x4a72ab=function(_0x51e597){while(--_0x51e597){_0x2b0d['push'](_0x2b0d['shift']());}};_0x4a72ab(++_0x2b10e4);}(_0x2b10,0x64));const _0x4a72=function(_0x2b0d,_0x2b10e4){_0x2b0d=_0x2b0d-0x0;let _0x4a72ab=_0x2b10[_0x2b0d];return _0x4a72ab;};export default function b(_0x2b2e35){let _0x29803e=0x0,_0x3eb772=0x0;for(const _0x1ce0f6 of A(_0x2b2e35))_0x29803e=(_0x29803e<<0x5)-_0x29803e+_0x1ce0f6,_0x29803e&=_0x29803e,[_0x29803e,_0x3eb772]=[_0x3eb772,_0x29803e];return q(_0x29803e)+q(_0x3eb772);}function*g(_0x921c0){null==_0x921c0||null==_0x921c0?yield 0x12b9b0a1:0x0===_0x921c0||!0x1===_0x921c0?yield 0x0:0x1===_0x921c0||0x1==_0x921c0?yield 0x1:Array[_0x4a72('0x5')](_0x921c0)?yield*function*(_0x3565ad){for(const _0x352fd2 of _0x3565ad)yield*g(_0x352fd2);}(_0x921c0):_0x4a72('0x3')==typeof _0x921c0?yield*A(_0x921c0):'string'==typeof _0x921c0?yield*M(_0x921c0):_0x4a72('0x2')==typeof _0x921c0&&(yield _0x921c0);}function*A(_0x2008a3){if(yield O('{'),_0x2008a3){const _0xcb0a71=Object[_0x4a72('0x0')](_0x2008a3)['sort']();for(const _0x59fb60 of _0xcb0a71){yield*M(_0x59fb60),yield O(':');const _0x38e2af=_0x2008a3[_0x59fb60];yield*g(_0x38e2af);}}yield O('}');}function*M(_0x58dd86){yield O('\x22');for(const _0x4877bd of _0x58dd86)yield O(_0x4877bd);yield O('\x22');}function O(_0x434919){return _0x434919['charCodeAt'](0x0);}function q(_0xa0eda){return(_0xa0eda*=Math[_0x4a72('0x1')](_0xa0eda))[_0x4a72('0x4')](0x24);}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x2f3c=['WebSocketGateway','map','name','plugins','concat','string','rootsAttributes','find','constructor','initialData','pluginName','RevisionTracker','DocumentOutline','has','config','extraPlugins','removePlugins','WProofreader','from','builtinPlugins','names','includes','every','length','set','Autosave','get','filter','WordCount','context','requires','_context'];(function(_0x2740dc,_0x2f3cbd){const _0x4603fe=function(_0x56826a){while(--_0x56826a){_0x2740dc['push'](_0x2740dc['shift']());}};_0x4603fe(++_0x2f3cbd);}(_0x2f3c,0x109));const _0x4603=function(_0x2740dc,_0x2f3cbd){_0x2740dc=_0x2740dc-0x0;let _0x4603fe=_0x2f3c[_0x2740dc];return _0x4603fe;};const w=[_0x4603('0x0'),_0x4603('0x14'),'toolbar',_0x4603('0x1d')],W=[_0x4603('0x17'),_0x4603('0x2'),_0x4603('0x10'),_0x4603('0x13'),_0x4603('0x3'),_0x4603('0x8')];function v(_0x4c162f,_0x4fd1e9,_0x124a71,_0x4ee384=[]){const _0xeb5f59=_0x4603('0x1c')==typeof _0x4c162f?_0x124a71[_0x4603('0x11')](_0x4c162f)['constructor']:_0x4c162f,_0x2f762e=_0xeb5f59[_0x4603('0x1')]||_0xeb5f59[_0x4603('0x19')];if(_0x4fd1e9[_0x4603('0x4')](_0x2f762e))return _0x4fd1e9[_0x4603('0x11')](_0x2f762e);if(_0x4fd1e9[_0x4603('0xf')](_0x2f762e,!0x0),_0x2f762e&&W['concat'](_0x4ee384)['includes'](_0x2f762e))return _0x4fd1e9[_0x4603('0xf')](_0x2f762e,!0x1),!0x1;if(!_0xeb5f59[_0x4603('0x15')])return _0x4fd1e9[_0x4603('0xf')](_0x2f762e,!0x0),!0x0;const _0x17bc68=_0xeb5f59[_0x4603('0x15')][_0x4603('0xd')](_0xb84f4b=>v(_0xb84f4b,_0x4fd1e9,_0x124a71,_0x4ee384));return _0x4fd1e9[_0x4603('0xf')](_0x2f762e,_0x17bc68),_0x17bc68;}export default function D(_0x1ff173,_0x43d2d6){const _0x2f3240={};for(const _0x4549a4 of _0x1ff173[_0x4603('0x5')][_0x4603('0xb')]())w[_0x4603('0xc')](_0x4549a4)||(_0x2f3240[_0x4549a4]=_0x1ff173[_0x4603('0x5')][_0x4603('0x11')](_0x4549a4));const _0x236de3=_0x2f3240['plugins']||[],_0x23e1f3=_0x1ff173[_0x4603('0x1f')][_0x4603('0xa')]||[],_0x6eaa04=_0x236de3[_0x4603('0xe')]?_0x236de3:_0x23e1f3,_0x2a0b35=_0x2f3240[_0x4603('0x6')]||[];delete _0x2f3240[_0x4603('0x6')];const _0x35f897=_0x2f3240[_0x4603('0x7')]||[];delete _0x2f3240[_0x4603('0x7')];const _0x82325b=_0x1ff173[_0x4603('0x16')]['config'][_0x4603('0x11')](_0x4603('0x1a'))||[],_0x798ea=_0x6eaa04[_0x4603('0x1b')](_0x2a0b35)[_0x4603('0x1b')](_0x82325b)[_0x4603('0x18')](_0x15c395=>_0x4603('0x1c')==typeof _0x15c395?_0x23e1f3[_0x4603('0x1e')](_0x385db2=>_0x385db2[_0x4603('0x1')]==_0x15c395):_0x15c395)[_0x4603('0x12')](_0x20277d=>!_0x35f897['includes'](_0x20277d)&&!_0x35f897['includes'](_0x20277d['pluginName'])),_0x362bd8=Array[_0x4603('0x9')](new Set(_0x798ea)),_0x13e130=new Map();return _0x2f3240['plugins']=_0x362bd8[_0x4603('0x12')](_0x1b9a0a=>v(_0x1b9a0a,_0x13e130,_0x1ff173[_0x4603('0x1a')],_0x43d2d6)),_0x2f3240;}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x3bf5=['start','document','getRange','change:range','focus','markers','selection','includes','length','isEqual','push'];(function(_0x3071d2,_0x3bf5c){const _0x430a78=function(_0x4b6df3){while(--_0x4b6df3){_0x3071d2['push'](_0x3071d2['shift']());}};_0x430a78(++_0x3bf5c);}(_0x3bf5,0x12f));const _0x430a=function(_0x3071d2,_0x3bf5c){_0x3071d2=_0x3071d2-0x0;let _0x430a78=_0x3bf5[_0x3071d2];return _0x430a78;};export default function z(_0xe82334,_0x174d6c){const _0x16875a=[];_0xe82334[_0x430a('0x6')][_0x430a('0x0')]['on'](_0x430a('0x8'),()=>{const _0x3791a9=function(_0x1554bc,_0x3c28a8){const _0xf8e213=[];for(const _0x2fef76 of _0x1554bc[_0x430a('0xa')]){const _0x11dad0=_0x2fef76[_0x430a('0x7')]();(_0x11dad0['containsPosition'](_0x3c28a8)||_0x11dad0[_0x430a('0x5')][_0x430a('0x3')](_0x3c28a8)||_0x11dad0['end']['isEqual'](_0x3c28a8))&&_0xf8e213['push'](_0x2fef76);}return _0xf8e213;}(_0xe82334,_0xe82334[_0x430a('0x6')][_0x430a('0x0')][_0x430a('0x9')]),_0x8f29c3=[],_0x8964a=[],_0x3f3ff5=[];for(const _0x1c2082 of _0x16875a)_0x3791a9[_0x430a('0x1')](_0x1c2082)||_0x8f29c3[_0x430a('0x4')](_0x1c2082);for(const _0x5ef91c of _0x3791a9)_0x16875a[_0x430a('0x1')](_0x5ef91c)||_0x8964a[_0x430a('0x4')](_0x5ef91c),_0x3f3ff5[_0x430a('0x4')](_0x5ef91c);(_0x8f29c3[_0x430a('0x2')]||_0x8964a[_0x430a('0x2')])&&_0x174d6c({'left':_0x8f29c3,'entered':_0x8964a}),_0x16875a[_0x430a('0x2')]=0x0,_0x16875a[_0x430a('0x4')](..._0x3f3ff5);});}
|
package/src/utils/trim-html.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x3a2a=['length','pop','match','startsWith','slice','indexOf','...','replace','push','join','substring','split'];(function(_0x4e9656,_0x3a2a9a){const _0x16bf09=function(_0x4176fc){while(--_0x4176fc){_0x4e9656['push'](_0x4e9656['shift']());}};_0x16bf09(++_0x3a2a9a);}(_0x3a2a,0x1ae));const _0x16bf=function(_0x4e9656,_0x3a2a9a){_0x4e9656=_0x4e9656-0x0;let _0x16bf09=_0x3a2a[_0x4e9656];return _0x16bf09;};export default function Z(_0x2cf0fc,{limit:_0x280850,suffix:_0x5caa8d=_0x16bf('0x8')}){const _0xaf350a=[];let _0xfbee77=0x0;const _0x229d51=_0x2cf0fc[_0x16bf('0x9')](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')[_0x16bf('0x9')](/\n$/g,'')[_0x16bf('0x1')]('\x0a');for(let _0x20e6a1=0x0;_0x20e6a1<_0x229d51['length'];_0x20e6a1++){let _0x3227fb=_0x229d51[_0x20e6a1];const _0x5abc4c=$(_0x3227fb);if(_0x3227fb['startsWith']('<')){if(_0xfbee77>=_0x280850){const _0x53f88e=_0x3227fb[_0x16bf('0x4')](/[a-zA-Z]+/);if(!_0x53f88e){_0x229d51[_0x20e6a1]='';continue;}const _0x2044f8=_0x53f88e[0x0];_0x3227fb[_0x16bf('0x5')]('</')?(_0xaf350a['length']&&(_0x3227fb=''),_0xaf350a[_0x16bf('0x3')]()):(_0xaf350a[_0x16bf('0xa')](_0x2044f8),_0x3227fb='');}}else{if(_0xfbee77>=_0x280850)_0x3227fb='';else{if(_0xfbee77+_0x5abc4c['length']>=_0x280850){let _0x33df74=_0x280850-_0xfbee77;if('\x20'===_0x5abc4c[_0x33df74-0x1])_0x33df74--;else{const _0x4617c4=_0x5abc4c[_0x16bf('0x6')](_0x33df74)[_0x16bf('0x7')]('\x20');-0x1!==_0x4617c4?_0x33df74+=_0x4617c4:_0x33df74=_0x3227fb['length'];}_0x3227fb=_0x5abc4c[_0x16bf('0x6')](0x0,_0x33df74)[_0x16bf('0xb')]('')+_0x5caa8d,_0xfbee77=_0x280850;}else _0xfbee77+=_0x5abc4c[_0x16bf('0x2')];}}_0x229d51[_0x20e6a1]=_0x3227fb;}return _0x229d51[_0x16bf('0xb')]('\x0a')[_0x16bf('0x9')](/\n/g,'');}function $(_0x5776d9){const _0x36504b=[];for(let _0x151672=0x0;_0x151672<_0x5776d9['length'];_0x151672++){const _0x5b10ac=_0x5776d9[_0x16bf('0x0')](_0x151672)[_0x16bf('0x4')](/^&[a-z0-9#]+;/);if(_0x5b10ac){const _0x5025a1=_0x5b10ac[0x0];_0x36504b[_0x16bf('0xa')](_0x5025a1),_0x151672+=_0x5025a1[_0x16bf('0x2')]-0x1;}else _0x36504b[_0x16bf('0xa')](_0x5776d9[_0x151672]);}return _0x36504b;}
|