@ckeditor/ckeditor5-collaboration-core 0.0.0-nightly-20231205.0 → 0.0.0-nightly-20231207.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-20231207.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-20231207.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 _0x4959=['config','enableReadOnlyMode','isEnabled','disableReadOnlyMode','context','addCommentThread','permissions-set-permissions-invalid-channel-id','noPermissions','get','editors','no-permissions','includes','pluginName','document:write','setPermissions','comment:write','comment:admin','collaboration.channelId','CommentsRepository','clearForceDisabled','find','Permissions','comment:modify_all','forceDisabled','CommentsOnly'];(function(_0x2894bf,_0x4959f6){const _0x4833a8=function(_0xd0b0c6){while(--_0xd0b0c6){_0x2894bf['push'](_0x2894bf['shift']());}};_0x4833a8(++_0x4959f6);}(_0x4959,0x10e));const _0x4833=function(_0x2894bf,_0x4959f6){_0x2894bf=_0x2894bf-0x0;let _0x4833a8=_0x4959[_0x2894bf];return _0x4833a8;};import{ContextPlugin as _0x7148e,Editor as _0x100c95}from'ckeditor5/src/core';import{CKEditorError as _0x1e3434}from'ckeditor5/src/utils';export default class n extends _0x7148e{static get[_0x4833('0x11')](){return _0x4833('0x1');}[_0x4833('0x13')](_0x2738b7,_0x31ec36){let _0x40f339;if(_0x31ec36||(_0x31ec36=this[_0x4833('0x9')][_0x4833('0x5')][_0x4833('0xd')](_0x4833('0x16'))),this[_0x4833('0x9')][_0x4833('0x5')]['get']('collaboration.channelId')==_0x31ec36?_0x40f339=this[_0x4833('0x9')]:'editors'in this[_0x4833('0x9')]&&this['context']['editors']&&(_0x40f339=this[_0x4833('0x9')][_0x4833('0xe')][_0x4833('0x0')](_0xe8fd4c=>_0xe8fd4c[_0x4833('0x5')][_0x4833('0xd')](_0x4833('0x16'))==_0x31ec36)),!_0x40f339)throw new _0x1e3434(_0x4833('0xb'),null);const _0x27472e=_0x40f339['plugins'],_0x553869=_0x27472e['has'](_0x4833('0x17'))?_0x27472e[_0x4833('0xd')](_0x4833('0x17')):void 0x0,_0x24b82f=_0x27472e['has']('CommentsOnly')&&_0x27472e[_0x4833('0xd')](_0x4833('0x4')),_0x27b6ed=_0x2738b7[_0x4833('0x10')](_0x4833('0x12')),_0x497179=_0x2738b7['includes'](_0x4833('0x2')),_0x442367=_0x2738b7['includes'](_0x4833('0x15')),_0x190d50=_0x2738b7[_0x4833('0x10')](_0x4833('0x14')),_0x23fa2f=_0x190d50||_0x442367,_0x4d7a98=_0x23fa2f||_0x497179,_0x522c89=_0x27b6ed||_0x23fa2f;(_0x24b82f&&(_0x24b82f[_0x4833('0x7')]=!_0x27b6ed&&_0x4d7a98),_0x40f339 instanceof _0x100c95)&&(!(_0x27b6ed||_0x4d7a98&&_0x553869)?_0x40f339[_0x4833('0x6')](_0x4833('0xf')):_0x40f339[_0x4833('0x8')](_0x4833('0xf')));if(_0x553869){_0x553869['setPermissions']({'admin':_0x442367,'modifyAll':_0x497179,'write':_0x190d50,'resolve':_0x522c89},_0x31ec36);const _0x17476a=_0x40f339 instanceof _0x100c95&&_0x40f339['commands'][_0x4833('0xd')](_0x4833('0xa'));_0x17476a&&(_0x23fa2f?_0x17476a[_0x4833('0x18')](_0x4833('0xc')):_0x17476a[_0x4833('0x3')](_0x4833('0xc')));}}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x279b=['setTemplate','url(\x27','ck-user__notification','ck-user__img','div','content','ck-user','name','notificationView','initials','avatar','ck-user__icon','ck-user__avatar','push','ck\x20ck-user__name','isAnonymous','ck-user__anonymous','ck\x20ck-user__name\x20ck-user__name--hidden','extendTemplate'];(function(_0x61af44,_0x279bbd){const _0xa37e95=function(_0x5d9d90){while(--_0x5d9d90){_0x61af44['push'](_0x61af44['shift']());}};_0xa37e95(++_0x279bbd);}(_0x279b,0x7d));const _0xa37e=function(_0x61af44,_0x279bbd){_0x61af44=_0x61af44-0x0;let _0xa37e95=_0x279b[_0x61af44];return _0xa37e95;};import{View as _0x4f8bad,IconView as _0x1fc1e2}from'ckeditor5/src/ui';import _0x44d745 from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class C extends _0x4f8bad{constructor(_0x18a98f,_0x561840,_0x36eb38){super(_0x18a98f),this[_0xa37e('0xf')]=_0x561840[_0xa37e('0xf')],this[_0xa37e('0x10')]=null;const _0x2741ab=['ck',_0xa37e('0xb')];if(_0x561840[_0xa37e('0x4')]&&_0x2741ab[_0xa37e('0x2')](_0xa37e('0x5')),_0x561840[_0xa37e('0x12')]&&_0x2741ab[_0xa37e('0x2')](_0xa37e('0x1')),_0x36eb38){const _0x517e8e=new _0x1fc1e2();_0x517e8e[_0xa37e('0x7')]({'attributes':{'class':[_0xa37e('0x0')]}}),_0x517e8e[_0xa37e('0xd')]=_0x44d745,this[_0xa37e('0x10')]={'tag':_0xa37e('0xc'),'attributes':{'class':['ck',_0xa37e('0xa')],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x36eb38},'children':[_0x517e8e]};}const _0x2e25a5=[{'tag':'div','attributes':{'class':_0x2741ab,'style':{'background-image':_0x561840[_0xa37e('0x12')]?_0xa37e('0x9')+_0x561840['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x561840[_0xa37e('0x12')]?_0xa37e('0x6'):_0xa37e('0x3')},'children':[{'text':_0x561840[_0xa37e('0x11')]}]}];this[_0xa37e('0x10')]&&_0x2e25a5['push'](this[_0xa37e('0x10')]),this[_0xa37e('0x8')]({'tag':_0xa37e('0xc'),'attributes':{'class':['ck',_0xa37e('0xe')],'data-user-id':_0x561840['id']},'children':_0x2e25a5});}}
|
package/src/users.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x238a=['add','length','getBackgroundColorClass','licenseKeyInvalid','getUser','config','split','context','color','useAnonymousUser','users-add-invalid-id','_getInitial','_locale','getOperationAuthor','licenseKeyTrialLimit:time','defineMe','trial-license-key-reached-limit-time','users','initials','users.colorsCount','destroy','get','invalid-license-key','licenseKeyValid','users-me-already-defined','_id','ck-user__marker--','getMarkerClass','getSelectionClass','licenseKeyTrial','_lastColor','_myId','string','licenseKeyTrialLimit:operations','licenseKeyTrialLimit:revisions','Users','ck-user__bg-color--','isAnonymous','charAt','init','locale','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.','includes','trim','name','_getNextColor','toUpperCase','users-me-missing-user','Anonymous','users.anonymousUserId','avatar','info','licenseKey','define','users-add-duplicated-id','decorate','_licenseKeyCheckInterval','_addAnonymousUser'];(function(_0x269427,_0x238a7f){const _0x5403ef=function(_0x15caf1){while(--_0x15caf1){_0x269427['push'](_0x269427['shift']());}};_0x5403ef(++_0x238a7f);}(_0x238a,0x106));const _0x5403=function(_0x269427,_0x238a7f){_0x269427=_0x269427-0x0;let _0x5403ef=_0x238a[_0x269427];return _0x5403ef;};import{ContextPlugin as _0x8daa94}from'ckeditor5/src/core';import{Collection as _0x50cc2e,CKEditorError as _0x50c5e6}from'ckeditor5/src/utils';import _0x5973f1 from'./permissions';import{getTranslation as _0x3d9fbc}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x8daa94{static get['pluginName'](){return _0x5403('0x5');}static get['requires'](){return[_0x5973f1];}constructor(_0x18ae8a){super(_0x18ae8a),this[_0x5403('0x23')][_0x5403('0x21')]['define'](_0x5403('0x13'),'anonymous-user'),this[_0x5403('0x23')]['config'][_0x5403('0x17')]('users.colorsCount',0x8),this[_0x5403('0x2d')]=new _0x50cc2e(),this[_0x5403('0x28')]=_0x18ae8a[_0x5403('0xa')],this[_0x5403('0x1a')]=null,this[_0x5403('0x0')]=0x0,this[_0x5403('0x1')]=null,this[_0x5403('0x19')](_0x5403('0x29'));}[_0x5403('0x9')](){const _0x534b6f=this[_0x5403('0x23')];this[_0x5403('0x16')]=_0x534b6f[_0x5403('0x21')][_0x5403('0x31')]('licenseKey');const _0xf8d4dc=[_0x5403('0x39'),_0x5403('0x1f'),_0x5403('0x33'),_0x5403('0x3'),'licenseKeyTrialLimit:time','licenseKeyTrialLimit:revisions'];this[_0x5403('0x1a')]=setInterval(()=>{let _0x191f4c;for(const _0xab5670 in _0x534b6f){const _0x575892=_0x534b6f[_0xab5670];if(_0xf8d4dc[_0x5403('0xc')](_0x575892)){delete _0x534b6f[_0xab5670],_0x191f4c=_0x575892;break;}}if(_0x5403('0x1f')===_0x191f4c)throw clearInterval(this[_0x5403('0x1a')]),new _0x50c5e6(_0x5403('0x32'),null);if('licenseKeyTrial'===_0x191f4c&&console[_0x5403('0x15')](_0x5403('0xb')),_0x5403('0x3')===_0x191f4c)throw clearInterval(this[_0x5403('0x1a')]),new _0x50c5e6('trial-license-key-reached-limit-changes',null);if(_0x5403('0x2a')===_0x191f4c)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x50c5e6(_0x5403('0x2c'),null);if(_0x5403('0x4')===_0x191f4c)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x50c5e6('trial-license-key-reached-limit-revisions',null);'licenseKeyValid'===_0x191f4c&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8),this[_0x5403('0x1b')]();}get['me'](){return null==this[_0x5403('0x1')]?null:this[_0x5403('0x20')](this[_0x5403('0x1')]);}['addUser']({id:_0x23197d,name:_0x12b04d,..._0x1a2777}){if(!_0x23197d||_0x5403('0x2')!=typeof _0x23197d)throw new _0x50c5e6(_0x5403('0x26'));if(this[_0x5403('0x2d')]['has'](_0x23197d))throw new _0x50c5e6(_0x5403('0x18'),null,{'id':_0x23197d});const _0x1d7107={..._0x1a2777,'id':_0x23197d,'name':a(this[_0x5403('0x28')],_0x12b04d),'color':this['_getNextColor']()};_0x1d7107[_0x5403('0xe')]=a(this['_locale'],_0x1d7107['name']);const _0xc5d7aa=new User(_0x1d7107);return this[_0x5403('0x2d')][_0x5403('0x1c')](_0xc5d7aa),_0xc5d7aa;}[_0x5403('0x20')](_0x7bde9f){return this[_0x5403('0x2d')][_0x5403('0x31')](_0x7bde9f);}[_0x5403('0x25')](){const _0x5c3ce8=this[_0x5403('0x23')][_0x5403('0x21')]['get']('users.anonymousUserId');this[_0x5403('0x1')]||this[_0x5403('0x2b')](_0x5c3ce8);}[_0x5403('0x2b')](_0x5649ce){if(this[_0x5403('0x1')])throw new _0x50c5e6(_0x5403('0x34'),null);if(!this[_0x5403('0x20')](_0x5649ce))throw new _0x50c5e6(_0x5403('0x11'),null);this[_0x5403('0x1')]=_0x5649ce;}[_0x5403('0x29')](){return this['me'];}[_0x5403('0x30')](){super['destroy'](),clearInterval(this[_0x5403('0x1a')]);}[_0x5403('0xf')](){const _0x50811b=this[_0x5403('0x23')][_0x5403('0x21')][_0x5403('0x31')](_0x5403('0x2f'));return this[_0x5403('0x0')]>=_0x50811b&&(this['_lastColor']=0x0),new u(this['_lastColor']++);}[_0x5403('0x1b')](){const _0x5c913d=this['context']['config']['get'](_0x5403('0x13'));this['addUser']({'id':_0x5c913d,'name':_0x3d9fbc(this[_0x5403('0x28')],'Anonymous')})['_isAnonymous']=!0x0;}}export class User{constructor(_0x56d6c6){this['id']=_0x56d6c6['id'],this[_0x5403('0x24')]=_0x56d6c6[_0x5403('0x24')],this[_0x5403('0xe')]=_0x56d6c6['name'],this[_0x5403('0x14')]=_0x56d6c6[_0x5403('0x14')],this['_isAnonymous']=!0x1;}get[_0x5403('0x7')](){return this['_isAnonymous'];}get[_0x5403('0x2e')](){const _0x4c6d2b=this[_0x5403('0xe')][_0x5403('0x22')]('\x20');return 0x1===_0x4c6d2b[_0x5403('0x1d')]?this['_getInitial'](_0x4c6d2b[0x0]):this[_0x5403('0x27')](_0x4c6d2b[0x0])+this[_0x5403('0x27')](_0x4c6d2b[_0x4c6d2b['length']-0x1]);}['_getInitial'](_0xdde24f){return _0xdde24f[_0x5403('0x8')](0x0)[_0x5403('0x10')]();}}function a(_0x3a32ba,_0x1bde6c=''){return''==(_0x1bde6c=_0x1bde6c[_0x5403('0xd')]())?_0x3d9fbc(_0x3a32ba,_0x5403('0x12')):_0x1bde6c;}class u{constructor(_0x139641){this[_0x5403('0x35')]=_0x139641;}[_0x5403('0x1e')](){return _0x5403('0x6')+this[_0x5403('0x35')];}[_0x5403('0x38')](){return'ck-user__selection--'+this[_0x5403('0x35')];}[_0x5403('0x37')](){return _0x5403('0x36')+this[_0x5403('0x35')];}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
export function getTranslation(
|
23
|
+
export function getTranslation(_0x245425,_0x5c6f74){const t=_0x245425['t'];switch(_0x5c6f74){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 _0x56e2=['set','appendChild','destroy','fire','isConfirm','submit','focus','element','registerChild','render','locale','deregisterChild','cancel','cancelConfirm','confirmView','_removeConfirm','message'];(function(_0x186ed4,_0x56e29d){var _0x15fa86=function(_0xd73339){while(--_0xd73339){_0x186ed4['push'](_0x186ed4['shift']());}};_0x15fa86(++_0x56e29d);}(_0x56e2,0x6a));var _0x15fa=function(_0x186ed4,_0x56e29d){_0x186ed4=_0x186ed4-0x0;var _0x15fa86=_0x56e2[_0x186ed4];return _0x15fa86;};import _0x43faa4 from'./confirmview';export default function m(_0x9c021d){return class extends _0x9c021d{['showConfirm'](_0x414bc3,_0x15a36e){return this['confirmView']=new _0x43faa4(this[_0x15fa('0x6')]),this['confirmView'][_0x15fa('0x5')](),this[_0x15fa('0xa')][_0x15fa('0xc')]=_0x414bc3,this['confirmView']['once'](_0x15fa('0x8'),()=>{this['_removeConfirm']();}),this[_0x15fa('0xa')]['once'](_0x15fa('0x1'),()=>{this['_removeConfirm']();}),_0x15a36e[_0x15fa('0xe')](this[_0x15fa('0xa')]['element']),this[_0x15fa('0x4')](this['confirmView']),this[_0x15fa('0x3')]['focus'](),this[_0x15fa('0xd')](_0x15fa('0x0'),!0x0),new Promise(_0x5c3ed8=>this[_0x15fa('0xa')]['on'](_0x15fa('0x1'),_0x5c3ed8));}[_0x15fa('0x9')](){this[_0x15fa('0x0')]&&this[_0x15fa('0xa')][_0x15fa('0x10')]('cancel');}[_0x15fa('0xb')](){this[_0x15fa('0x3')]&&this[_0x15fa('0xa')]&&this['confirmView'][_0x15fa('0x3')]&&(this[_0x15fa('0x3')][_0x15fa('0x2')](),this[_0x15fa('0xa')][_0x15fa('0x3')]['remove'](),this[_0x15fa('0x7')](this['confirmView']),this[_0x15fa('0x0')]=!0x1,this[_0x15fa('0xa')][_0x15fa('0xf')](),this['confirmView']=void 0x0);}};}
|
package/src/utils/confirmview.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x86b0=['submit','label','message','ck-thread__remove-confirm-actions','set','setTemplate','ck-thread__remove-confirm','cancelView','div','_createButtonView','extendTemplate','icon','fire','submitView','ck-thread__remove-confirm-inner','execute','cancel','bindTemplate'];(function(_0x2da4cc,_0x86b033){const _0x19abc0=function(_0x5d0473){while(--_0x5d0473){_0x2da4cc['push'](_0x2da4cc['shift']());}};_0x19abc0(++_0x86b033);}(_0x86b0,0x123));const _0x19ab=function(_0x2da4cc,_0x86b033){_0x2da4cc=_0x2da4cc-0x0;let _0x19abc0=_0x86b0[_0x2da4cc];return _0x19abc0;};import{View as _0x52a1d7,ButtonView as _0x1f0939}from'ckeditor5/src/ui';import{icons as _0x3554d1}from'ckeditor5/src/core';import{getTranslation as _0x28e566}from'./common-translations';export default class h extends _0x52a1d7{constructor(_0x3605a5){super(_0x3605a5);const _0x44a1d6=this[_0x19ab('0xe')];this[_0x19ab('0xa')]=this[_0x19ab('0x6')](_0x3605a5,_0x28e566(_0x3605a5,'Yes'),_0x3554d1['check'],_0x19ab('0xf')),this[_0x19ab('0x4')]=this[_0x19ab('0x6')](_0x3605a5,_0x28e566(_0x3605a5,'No'),_0x3554d1[_0x19ab('0xd')],_0x19ab('0xd')),this[_0x19ab('0x1')](_0x19ab('0x11'),_0x28e566(_0x3605a5,'Are\x20you\x20sure?')),this[_0x19ab('0x2')]({'tag':'div','attributes':{'class':[_0x19ab('0x3')]},'children':[{'tag':_0x19ab('0x5'),'attributes':{'class':_0x19ab('0xb')},'children':[{'tag':'p','children':[{'text':_0x44a1d6['to'](_0x19ab('0x11'))}]},{'tag':'div','attributes':{'class':_0x19ab('0x0')},'children':[this[_0x19ab('0xa')],this['cancelView']]}]}]});}[_0x19ab('0x6')](_0x2d65d0,_0x1c2a60,_0x9f48fa,_0x5e5626){const _0x227392=new _0x1f0939(_0x2d65d0);return _0x227392[_0x19ab('0x10')]=_0x1c2a60,_0x227392[_0x19ab('0x8')]=_0x9f48fa,_0x227392[_0x19ab('0x7')]({'attributes':{'class':'ck-thread__remove-confirm-'+_0x5e5626}}),_0x227392['on'](_0x19ab('0xc'),()=>this[_0x19ab('0x9')](_0x5e5626)),_0x227392;}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x429b=['\x27Yesterday\x27\x20hh:mma','dateTimeFormat','MM-dd-yyyy\x20hh:mma','function','\x27Today\x27\x20hh:mma','string','\x27Last\x27\x20EEEE\x20hh:mma','invalid-date-time-format'];(function(_0x1fbed0,_0x429b66){const _0x18e82d=function(_0x1ee725){while(--_0x1ee725){_0x1fbed0['push'](_0x1fbed0['shift']());}};_0x18e82d(++_0x429b66);}(_0x429b,0xe9));const _0x18e8=function(_0x1fbed0,_0x429b66){_0x1fbed0=_0x1fbed0-0x0;let _0x18e82d=_0x429b[_0x1fbed0];return _0x18e82d;};import _0x31be7d from'date-fns/format';import _0x42f1ae from'date-fns/parseISO';import _0x2ea90f from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x48dd96}from'ckeditor5/src/utils';export default function E(_0x2d96d0={}){if(void 0x0!==_0x2d96d0['dateTimeFormat']&&_0x18e8('0x2')!=typeof _0x2d96d0[_0x18e8('0x0')])throw new _0x48dd96(_0x18e8('0x6'));return _0x4bb153=>{const _0x38863e=_0x18e8('0x4')==typeof _0x4bb153?_0x42f1ae(_0x4bb153):_0x4bb153,_0x241e3b=new Date(),_0x225bb4=_0x2ea90f(_0x241e3b,_0x38863e);return _0x2d96d0['dateTimeFormat']?_0x2d96d0[_0x18e8('0x0')](_0x38863e):_0x31be7d(_0x38863e,0x0===_0x225bb4?_0x18e8('0x3'):0x1===_0x225bb4?_0x18e8('0x7'):_0x225bb4<0x7?_0x18e8('0x5'):_0x18e8('0x1'));};}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x2bfd=['mapViewToDom','getClientRects','name','mapper','sort','domElement','filter','values','length','markerNameToElements','from','map','domConverter','view','push'];(function(_0x5ad134,_0x2bfd7c){const _0x4316e3=function(_0x166d8f){while(--_0x166d8f){_0x5ad134['push'](_0x5ad134['shift']());}};_0x4316e3(++_0x2bfd7c);}(_0x2bfd,0x1e1));const _0x4316=function(_0x5ad134,_0x2bfd7c){_0x5ad134=_0x5ad134-0x0;let _0x4316e3=_0x2bfd[_0x5ad134];return _0x4316e3;};import{first as _0x36dcb3}from'ckeditor5/src/utils';export default function k(_0x222f6e,_0x58bc62){const _0x2c5dee=_0x222f6e[_0x4316('0x2')]['markerNameToElements'](_0x58bc62['name']);if(!_0x2c5dee)return null;const _0x30ee3e=_0x36dcb3(_0x2c5dee[_0x4316('0x6')]());return _0x222f6e[_0x4316('0xc')][_0x4316('0xb')]['mapViewToDom'](_0x30ee3e)||null;}export function getAllMarkersDomElementsSorted(_0x2b4d4f,_0x36c62e){if(0x0===_0x36c62e['length'])return null;const _0x236231=[],_0x241a98=_0x2b4d4f[_0x4316('0xc')]['domConverter'];for(const _0x4ea552 of _0x36c62e){const _0xe84184=_0x2b4d4f[_0x4316('0x2')][_0x4316('0x8')](_0x4ea552[_0x4316('0x1')]);if(!_0xe84184)continue;const _0xfafd8f=Array[_0x4316('0x9')](_0xe84184)['map'](_0x23001a=>_0x241a98[_0x4316('0xe')](_0x23001a))[_0x4316('0x5')](_0x4a62b0=>!!_0x4a62b0);_0x236231[_0x4316('0xd')](..._0xfafd8f);}if(0x0===_0x236231[_0x4316('0x7')])return null;const _0x273ada=[];for(const _0x1528c7 of _0x236231){const _0xcab777=_0x1528c7[_0x4316('0x0')]()['item'](0x0);_0xcab777&&_0x273ada['push']({'x':_0xcab777['x'],'y':_0xcab777['y'],'domElement':_0x1528c7});}return 0x0===_0x273ada['length']?null:(_0x273ada[_0x4316('0x3')]((_0x49c641,_0x4233b6)=>_0x49c641['y']-_0x4233b6['y']||_0x49c641['x']-_0x4233b6['x']),_0x273ada[_0x4316('0xa')](_0x79a3b5=>_0x79a3b5[_0x4316('0x4')]));}
|
package/src/utils/hashobject.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x231e=['string','charCodeAt','keys','isArray','boolean','sort'];(function(_0x22f421,_0x231e20){const _0x315fdb=function(_0x1de543){while(--_0x1de543){_0x22f421['push'](_0x22f421['shift']());}};_0x315fdb(++_0x231e20);}(_0x231e,0xf6));const _0x315f=function(_0x22f421,_0x231e20){_0x22f421=_0x22f421-0x0;let _0x315fdb=_0x231e[_0x22f421];return _0x315fdb;};export default function b(_0x3526af){let _0x3a9c1c=0x0,_0x1fe422=0x0;for(const _0x1d06a9 of g(_0x3526af))_0x3a9c1c=(_0x3a9c1c<<0x5)-_0x3a9c1c+_0x1d06a9,_0x3a9c1c&=_0x3a9c1c,[_0x3a9c1c,_0x1fe422]=[_0x1fe422,_0x3a9c1c];return O(_0x3a9c1c)+O(_0x1fe422);}function*j(_0x526f54){_0x526f54?_0x315f('0x4')==typeof _0x526f54?yield 0x1:Array[_0x315f('0x3')](_0x526f54)?yield*function*(_0x2ccd64){for(const _0x4ecca4 of _0x2ccd64)yield*j(_0x4ecca4);}(_0x526f54):'object'==typeof _0x526f54?yield*g(_0x526f54):_0x315f('0x0')==typeof _0x526f54?yield*A(_0x526f54):'number'==typeof _0x526f54&&(yield _0x526f54):yield 0x0;}function*g(_0x1f02a1){if(yield M('{'),_0x1f02a1){const _0x3d3eae=Object[_0x315f('0x2')](_0x1f02a1)[_0x315f('0x5')]();for(const _0x4a03a1 of _0x3d3eae){yield*A(_0x4a03a1),yield M(':');const _0x1d3245=_0x1f02a1[_0x4a03a1];yield*j(_0x1d3245);}}yield M('}');}function*A(_0x464a8a){yield M('\x22');for(const _0x2e4154 of _0x464a8a)yield M(_0x2e4154);yield M('\x22');}function M(_0x701cdc){return _0x701cdc[_0x315f('0x1')](0x0);}function O(_0x3bd99a){return(_0x3bd99a*=Math['sign'](_0x3bd99a))['toString'](0x24);}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x4f87=['set','_context','extraPlugins','string','toolbar','from','includes','DocumentOutline','map','context','concat','initialData','constructor','filter','has','WProofreader','pluginName','RevisionTracker','plugins','length','config','WebSocketGateway','requires','removePlugins','get','every'];(function(_0x4c5ae6,_0x4f870f){const _0x5b1eec=function(_0x13b2c7){while(--_0x13b2c7){_0x4c5ae6['push'](_0x4c5ae6['shift']());}};_0x5b1eec(++_0x4f870f);}(_0x4f87,0x1a5));const _0x5b1e=function(_0x4c5ae6,_0x4f870f){_0x4c5ae6=_0x4c5ae6-0x0;let _0x5b1eec=_0x4f87[_0x4c5ae6];return _0x5b1eec;};const w=[_0x5b1e('0x6'),_0x5b1e('0x4'),_0x5b1e('0x19'),'rootsAttributes'],W=[_0x5b1e('0x10'),_0x5b1e('0xc'),'Autosave','WordCount',_0x5b1e('0x2'),_0x5b1e('0xa')];function v(_0x2e8ae2,_0x18b653,_0x4419c4,_0x558a71=[]){const _0x4078d5=_0x5b1e('0x18')==typeof _0x2e8ae2?_0x4419c4['get'](_0x2e8ae2)[_0x5b1e('0x7')]:_0x2e8ae2,_0x7634c=_0x4078d5['pluginName']||_0x4078d5['name'];if(_0x18b653[_0x5b1e('0x9')](_0x7634c))return _0x18b653[_0x5b1e('0x13')](_0x7634c);if(_0x18b653['set'](_0x7634c,!0x0),_0x7634c&&W[_0x5b1e('0x5')](_0x558a71)[_0x5b1e('0x1')](_0x7634c))return _0x18b653[_0x5b1e('0x15')](_0x7634c,!0x1),!0x1;if(!_0x4078d5[_0x5b1e('0x11')])return _0x18b653[_0x5b1e('0x15')](_0x7634c,!0x0),!0x0;const _0xcd464c=_0x4078d5[_0x5b1e('0x11')][_0x5b1e('0x14')](_0x2318f9=>v(_0x2318f9,_0x18b653,_0x4419c4,_0x558a71));return _0x18b653['set'](_0x7634c,_0xcd464c),_0xcd464c;}export default function D(_0x3b72b6,_0x596910){const _0x27dcc6={};for(const _0x2cd9c0 of _0x3b72b6['config']['names']())w[_0x5b1e('0x1')](_0x2cd9c0)||(_0x27dcc6[_0x2cd9c0]=_0x3b72b6[_0x5b1e('0xf')]['get'](_0x2cd9c0));const _0x31a942=_0x27dcc6[_0x5b1e('0xd')]||[],_0x4583b2=_0x3b72b6[_0x5b1e('0x7')]['builtinPlugins']||[],_0x39afbe=_0x31a942[_0x5b1e('0xe')]?_0x31a942:_0x4583b2,_0x2ad2a2=_0x27dcc6['extraPlugins']||[];delete _0x27dcc6[_0x5b1e('0x17')];const _0x24cb21=_0x27dcc6[_0x5b1e('0x12')]||[];delete _0x27dcc6[_0x5b1e('0x12')];const _0x31ece7=_0x3b72b6[_0x5b1e('0x16')]['config'][_0x5b1e('0x13')]('plugins')||[],_0x17e738=_0x39afbe[_0x5b1e('0x5')](_0x2ad2a2)[_0x5b1e('0x5')](_0x31ece7)[_0x5b1e('0x3')](_0x18e372=>'string'==typeof _0x18e372?_0x4583b2['find'](_0x5bb444=>_0x5bb444[_0x5b1e('0xb')]==_0x18e372):_0x18e372)['filter'](_0x4d729a=>!_0x24cb21[_0x5b1e('0x1')](_0x4d729a)&&!_0x24cb21[_0x5b1e('0x1')](_0x4d729a[_0x5b1e('0xb')])),_0x4c6d3a=Array[_0x5b1e('0x0')](new Set(_0x17e738)),_0x514726=new Map();return _0x27dcc6[_0x5b1e('0xd')]=_0x4c6d3a[_0x5b1e('0x8')](_0x2ee726=>v(_0x2ee726,_0x514726,_0x3b72b6[_0x5b1e('0xd')],_0x596910)),_0x27dcc6;}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x2257=['end','containsPosition','selection','length','includes','getRange','start','push','document','focus','change:range','isEqual'];(function(_0x187bf3,_0x225775){const _0x737aff=function(_0x585a7f){while(--_0x585a7f){_0x187bf3['push'](_0x187bf3['shift']());}};_0x737aff(++_0x225775);}(_0x2257,0xca));const _0x737a=function(_0x187bf3,_0x225775){_0x187bf3=_0x187bf3-0x0;let _0x737aff=_0x2257[_0x187bf3];return _0x737aff;};export default function q(_0xdc754c,_0x2b37f5){const _0x5e29d1=[];_0xdc754c[_0x737a('0xa')][_0x737a('0x4')]['on'](_0x737a('0x0'),()=>{const _0x4091a8=function(_0x470e6e,_0x72792d){const _0x10f958=[];for(const _0xc8c782 of _0x470e6e['markers']){const _0x34ac1=_0xc8c782[_0x737a('0x7')]();(_0x34ac1[_0x737a('0x3')](_0x72792d)||_0x34ac1[_0x737a('0x8')][_0x737a('0x1')](_0x72792d)||_0x34ac1[_0x737a('0x2')]['isEqual'](_0x72792d))&&_0x10f958[_0x737a('0x9')](_0xc8c782);}return _0x10f958;}(_0xdc754c,_0xdc754c[_0x737a('0xa')]['selection'][_0x737a('0xb')]),_0x15ca29=[],_0x523d64=[],_0x8ad203=[];for(const _0x13f10c of _0x5e29d1)_0x4091a8[_0x737a('0x6')](_0x13f10c)||_0x15ca29[_0x737a('0x9')](_0x13f10c);for(const _0x373dcf of _0x4091a8)_0x5e29d1[_0x737a('0x6')](_0x373dcf)||_0x523d64[_0x737a('0x9')](_0x373dcf),_0x8ad203['push'](_0x373dcf);(_0x15ca29[_0x737a('0x5')]||_0x523d64['length'])&&_0x2b37f5({'left':_0x15ca29,'entered':_0x523d64}),_0x5e29d1[_0x737a('0x5')]=0x0,_0x5e29d1[_0x737a('0x9')](..._0x8ad203);});}
|
package/src/utils/trim-html.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x13ed=['...','indexOf','substring','startsWith','replace','length','pop','slice','match','push','join'];(function(_0x30cbc6,_0x13ed04){const _0x282cfe=function(_0x447607){while(--_0x447607){_0x30cbc6['push'](_0x30cbc6['shift']());}};_0x282cfe(++_0x13ed04);}(_0x13ed,0x131));const _0x282c=function(_0x30cbc6,_0x13ed04){_0x30cbc6=_0x30cbc6-0x0;let _0x282cfe=_0x13ed[_0x30cbc6];return _0x282cfe;};export default function z(_0x3768da,{limit:_0x2f339c,suffix:_0xa3c3ba=_0x282c('0x3')}){const _0x3cd231=[];let _0x51fa3f=0x0;const _0x3e47c5=_0x3768da[_0x282c('0x7')](/</g,'\x0a<')[_0x282c('0x7')](/>/g,'>\x0a')['replace'](/^\n/g,'')[_0x282c('0x7')](/\n$/g,'')['split']('\x0a');for(let _0x1fb564=0x0;_0x1fb564<_0x3e47c5[_0x282c('0x8')];_0x1fb564++){let _0xf28264=_0x3e47c5[_0x1fb564];const _0x2ab4be=Z(_0xf28264);if(_0xf28264['startsWith']('<')){if(_0x51fa3f>=_0x2f339c){const _0x22f9af=_0xf28264[_0x282c('0x0')](/[a-zA-Z]+/);if(!_0x22f9af){_0x3e47c5[_0x1fb564]='';continue;}const _0x5929cf=_0x22f9af[0x0];_0xf28264[_0x282c('0x6')]('</')?(_0x3cd231[_0x282c('0x8')]&&(_0xf28264=''),_0x3cd231[_0x282c('0x9')]()):(_0x3cd231['push'](_0x5929cf),_0xf28264='');}}else{if(_0x51fa3f>=_0x2f339c)_0xf28264='';else{if(_0x51fa3f+_0x2ab4be[_0x282c('0x8')]>=_0x2f339c){let _0xc5c513=_0x2f339c-_0x51fa3f;if('\x20'===_0x2ab4be[_0xc5c513-0x1])_0xc5c513--;else{const _0x1fdec2=_0x2ab4be['slice'](_0xc5c513)[_0x282c('0x4')]('\x20');-0x1!==_0x1fdec2?_0xc5c513+=_0x1fdec2:_0xc5c513=_0xf28264[_0x282c('0x8')];}_0xf28264=_0x2ab4be[_0x282c('0xa')](0x0,_0xc5c513)[_0x282c('0x2')]('')+_0xa3c3ba,_0x51fa3f=_0x2f339c;}else _0x51fa3f+=_0x2ab4be[_0x282c('0x8')];}}_0x3e47c5[_0x1fb564]=_0xf28264;}return _0x3e47c5[_0x282c('0x2')]('\x0a')['replace'](/\n/g,'');}function Z(_0x47ea28){const _0x1b2751=[];for(let _0x2edf42=0x0;_0x2edf42<_0x47ea28['length'];_0x2edf42++){const _0xaafa58=_0x47ea28[_0x282c('0x5')](_0x2edf42)[_0x282c('0x0')](/^&[a-z0-9#]+;/);if(_0xaafa58){const _0x346a47=_0xaafa58[0x0];_0x1b2751[_0x282c('0x1')](_0x346a47),_0x2edf42+=_0x346a47[_0x282c('0x8')]-0x1;}else _0x1b2751['push'](_0x47ea28[_0x2edf42]);}return _0x1b2751;}
|