@ckeditor/ckeditor5-collaboration-core 0.0.0-nightly-20231128.0 → 0.0.0-nightly-20231129.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-20231129.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-20231129.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 _0x352d=['editors','find','setPermissions','has','noPermissions','CommentsRepository','pluginName','comment:modify_all','forceDisabled','comment:admin','includes','config','collaboration.channelId','no-permissions','context','plugins','addCommentThread','enableReadOnlyMode','get'];(function(_0x5c765b,_0x352d1d){const _0x5e58c9=function(_0x4beb72){while(--_0x4beb72){_0x5c765b['push'](_0x5c765b['shift']());}};_0x5e58c9(++_0x352d1d);}(_0x352d,0x1e8));const _0x5e58=function(_0x5c765b,_0x352d1d){_0x5c765b=_0x5c765b-0x0;let _0x5e58c9=_0x352d[_0x5c765b];return _0x5e58c9;};import{ContextPlugin as _0x1c9a07,Editor as _0x554d5b}from'ckeditor5/src/core';import{CKEditorError as _0x157158}from'ckeditor5/src/utils';export default class n extends _0x1c9a07{static get[_0x5e58('0xc')](){return'Permissions';}[_0x5e58('0x8')](_0x37b0a2,_0x321066){let _0x565605;if(_0x321066||(_0x321066=this[_0x5e58('0x1')][_0x5e58('0x11')]['get'](_0x5e58('0x12'))),this[_0x5e58('0x1')]['config']['get']('collaboration.channelId')==_0x321066?_0x565605=this[_0x5e58('0x1')]:_0x5e58('0x6')in this[_0x5e58('0x1')]&&this[_0x5e58('0x1')][_0x5e58('0x6')]&&(_0x565605=this[_0x5e58('0x1')]['editors'][_0x5e58('0x7')](_0x497914=>_0x497914[_0x5e58('0x11')][_0x5e58('0x5')](_0x5e58('0x12'))==_0x321066)),!_0x565605)throw new _0x157158('permissions-set-permissions-invalid-channel-id',null);const _0x5a0e96=_0x565605[_0x5e58('0x2')],_0x3158d5=_0x5a0e96[_0x5e58('0x9')](_0x5e58('0xb'))?_0x5a0e96[_0x5e58('0x5')](_0x5e58('0xb')):void 0x0,_0x7c7e50=_0x5a0e96['has']('CommentsOnly')&&_0x5a0e96[_0x5e58('0x5')]('CommentsOnly'),_0x2b9a8f=_0x37b0a2['includes']('document:write'),_0x552031=_0x37b0a2[_0x5e58('0x10')](_0x5e58('0xd')),_0x3ff8d2=_0x37b0a2[_0x5e58('0x10')](_0x5e58('0xf')),_0x1f7ec7=_0x37b0a2[_0x5e58('0x10')]('comment:write'),_0x389b80=_0x1f7ec7||_0x3ff8d2,_0x45d9c7=_0x389b80||_0x552031,_0x81297b=_0x2b9a8f||_0x389b80;(_0x7c7e50&&(_0x7c7e50['isEnabled']=!_0x2b9a8f&&_0x45d9c7),_0x565605 instanceof _0x554d5b)&&(!(_0x2b9a8f||_0x45d9c7&&_0x3158d5)?_0x565605[_0x5e58('0x4')](_0x5e58('0x0')):_0x565605['disableReadOnlyMode'](_0x5e58('0x0')));if(_0x3158d5){_0x3158d5['setPermissions']({'admin':_0x3ff8d2,'modifyAll':_0x552031,'write':_0x1f7ec7,'resolve':_0x81297b},_0x321066);const _0x98a137=_0x565605 instanceof _0x554d5b&&_0x565605['commands'][_0x5e58('0x5')](_0x5e58('0x3'));_0x98a137&&(_0x389b80?_0x98a137['clearForceDisabled'](_0x5e58('0xa')):_0x98a137[_0x5e58('0xe')](_0x5e58('0xa')));}}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x2ee7=['div','ck-user__icon','name','ck-user','ck-user__notification','ck\x20ck-user__name\x20ck-user__name--hidden','extendTemplate','ck-user__img','setTemplate','notificationView','avatar','ck-user__anonymous','url(\x27','push','initials','content','isAnonymous'];(function(_0xfdae19,_0x2ee726){const _0x39047e=function(_0x46b43c){while(--_0x46b43c){_0xfdae19['push'](_0xfdae19['shift']());}};_0x39047e(++_0x2ee726);}(_0x2ee7,0xa6));const _0x3904=function(_0xfdae19,_0x2ee726){_0xfdae19=_0xfdae19-0x0;let _0x39047e=_0x2ee7[_0xfdae19];return _0x39047e;};import{View as _0x25eb44,IconView as _0x5eb354}from'ckeditor5/src/ui';import _0xbcf2ab from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class C extends _0x25eb44{constructor(_0x41f4ed,_0x2b11c1,_0x26e8b3){super(_0x41f4ed),this[_0x3904('0x6')]=_0x2b11c1['name'],this[_0x3904('0xd')]=null;const _0x23c84d=['ck',_0x3904('0xb')];if(_0x2b11c1[_0x3904('0x3')]&&_0x23c84d[_0x3904('0x0')](_0x3904('0xf')),_0x2b11c1['avatar']&&_0x23c84d[_0x3904('0x0')]('ck-user__avatar'),_0x26e8b3){const _0x252387=new _0x5eb354();_0x252387[_0x3904('0xa')]({'attributes':{'class':[_0x3904('0x5')]}}),_0x252387[_0x3904('0x2')]=_0xbcf2ab,this[_0x3904('0xd')]={'tag':_0x3904('0x4'),'attributes':{'class':['ck',_0x3904('0x8')],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x26e8b3},'children':[_0x252387]};}const _0x4a877e=[{'tag':_0x3904('0x4'),'attributes':{'class':_0x23c84d,'style':{'background-image':_0x2b11c1[_0x3904('0xe')]?_0x3904('0x10')+_0x2b11c1[_0x3904('0xe')]+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x2b11c1[_0x3904('0xe')]?_0x3904('0x9'):'ck\x20ck-user__name'},'children':[{'text':_0x2b11c1[_0x3904('0x1')]}]}];this[_0x3904('0xd')]&&_0x4a877e[_0x3904('0x0')](this[_0x3904('0xd')]),this[_0x3904('0xc')]({'tag':_0x3904('0x4'),'attributes':{'class':['ck',_0x3904('0x7')],'data-user-id':_0x2b11c1['id']},'children':_0x4a877e});}}
|
package/src/users.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x3c98=['ck-user__selection--','getSelectionClass','split','length','Anonymous','getUser','Users','users-me-missing-user','defineMe','_getInitial','color','licenseKeyInvalid','addUser','name','avatar','getOperationAuthor','trial-license-key-reached-limit-time','users-me-already-defined','trial-license-key-reached-limit-revisions','isAnonymous','users.anonymousUserId','_myId','licenseKeyValid','_isAnonymous','decorate','ck-user__marker--','licenseKeyTrial','licenseKey','users.colorsCount','string','config','charAt','users','getMarkerClass','useAnonymousUser','licenseKeyTrialLimit:time','_licenseKeyCheckInterval','_lastColor','init','invalid-license-key','define','initials','_id','licenseKeyTrialLimit:operations','locale','ck-user__bg-color--','context','trim','_getNextColor','destroy','get','info','requires','has','_locale','_addAnonymousUser','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:revisions','users-add-duplicated-id'];(function(_0x297f92,_0x3c981d){const _0x4b9783=function(_0x5ce4e4){while(--_0x5ce4e4){_0x297f92['push'](_0x297f92['shift']());}};_0x4b9783(++_0x3c981d);}(_0x3c98,0x112));const _0x4b97=function(_0x297f92,_0x3c981d){_0x297f92=_0x297f92-0x0;let _0x4b9783=_0x3c98[_0x297f92];return _0x4b9783;};import{ContextPlugin as _0x1040c4}from'ckeditor5/src/core';import{Collection as _0x17ffbe,CKEditorError as _0x3f277f}from'ckeditor5/src/utils';import _0x325f52 from'./permissions';import{getTranslation as _0x56d67d}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x1040c4{static get['pluginName'](){return _0x4b97('0x1b');}static get[_0x4b97('0xe')](){return[_0x325f52];}constructor(_0x47462a){super(_0x47462a),this['context']['config'][_0x4b97('0x2')](_0x4b97('0x29'),'anonymous-user'),this[_0x4b97('0x8')][_0x4b97('0x33')][_0x4b97('0x2')]('users.colorsCount',0x8),this[_0x4b97('0x35')]=new _0x17ffbe(),this['_locale']=_0x47462a[_0x4b97('0x6')],this['_licenseKeyCheckInterval']=null,this[_0x4b97('0x3a')]=0x0,this['_myId']=null,this[_0x4b97('0x2d')](_0x4b97('0x24'));}[_0x4b97('0x0')](){const _0x4f3e64=this['context'];this['licenseKey']=_0x4f3e64[_0x4b97('0x33')]['get'](_0x4b97('0x30'));const _0x19613a=[_0x4b97('0x2f'),'licenseKeyInvalid','licenseKeyValid','licenseKeyTrialLimit:operations',_0x4b97('0x38'),_0x4b97('0x13')];this[_0x4b97('0x39')]=setInterval(()=>{let _0x54e437;for(const _0x1a5d94 in _0x4f3e64){const _0x37e282=_0x4f3e64[_0x1a5d94];if(_0x19613a['includes'](_0x37e282)){delete _0x4f3e64[_0x1a5d94],_0x54e437=_0x37e282;break;}}if(_0x4b97('0x20')===_0x54e437)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x3f277f(_0x4b97('0x1'),null);if(_0x4b97('0x2f')===_0x54e437&&console[_0x4b97('0xd')](_0x4b97('0x12')),_0x4b97('0x5')===_0x54e437)throw clearInterval(this[_0x4b97('0x39')]),new _0x3f277f('trial-license-key-reached-limit-changes',null);if(_0x4b97('0x38')===_0x54e437)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x3f277f(_0x4b97('0x25'),null);if(_0x4b97('0x13')===_0x54e437)throw clearInterval(this[_0x4b97('0x39')]),new _0x3f277f(_0x4b97('0x27'),null);_0x4b97('0x2b')===_0x54e437&&clearInterval(this[_0x4b97('0x39')]);},0x3e8),this[_0x4b97('0x11')]();}get['me'](){return null==this['_myId']?null:this[_0x4b97('0x1a')](this[_0x4b97('0x2a')]);}[_0x4b97('0x21')]({id:_0x525a44,name:_0x28a220,..._0x2a54d4}){if(!_0x525a44||_0x4b97('0x32')!=typeof _0x525a44)throw new _0x3f277f('users-add-invalid-id');if(this[_0x4b97('0x35')][_0x4b97('0xf')](_0x525a44))throw new _0x3f277f(_0x4b97('0x14'),null,{'id':_0x525a44});const _0x398de0={..._0x2a54d4,'id':_0x525a44,'name':a(this[_0x4b97('0x10')],_0x28a220),'color':this[_0x4b97('0xa')]()};_0x398de0['name']=a(this['_locale'],_0x398de0['name']);const _0x38d1de=new User(_0x398de0);return this[_0x4b97('0x35')]['add'](_0x38d1de),_0x38d1de;}[_0x4b97('0x1a')](_0x1ede43){return this[_0x4b97('0x35')][_0x4b97('0xc')](_0x1ede43);}[_0x4b97('0x37')](){const _0x557f43=this[_0x4b97('0x8')][_0x4b97('0x33')][_0x4b97('0xc')](_0x4b97('0x29'));this['_myId']||this[_0x4b97('0x1d')](_0x557f43);}[_0x4b97('0x1d')](_0x4a1d17){if(this[_0x4b97('0x2a')])throw new _0x3f277f(_0x4b97('0x26'),null);if(!this['getUser'](_0x4a1d17))throw new _0x3f277f(_0x4b97('0x1c'),null);this[_0x4b97('0x2a')]=_0x4a1d17;}[_0x4b97('0x24')](){return this['me'];}[_0x4b97('0xb')](){super['destroy'](),clearInterval(this[_0x4b97('0x39')]);}['_getNextColor'](){const _0x21fc93=this[_0x4b97('0x8')][_0x4b97('0x33')]['get'](_0x4b97('0x31'));return this[_0x4b97('0x3a')]>=_0x21fc93&&(this[_0x4b97('0x3a')]=0x0),new u(this[_0x4b97('0x3a')]++);}[_0x4b97('0x11')](){const _0x577cef=this[_0x4b97('0x8')][_0x4b97('0x33')][_0x4b97('0xc')]('users.anonymousUserId');this[_0x4b97('0x21')]({'id':_0x577cef,'name':_0x56d67d(this['_locale'],'Anonymous')})[_0x4b97('0x2c')]=!0x0;}}export class User{constructor(_0x42e029){this['id']=_0x42e029['id'],this[_0x4b97('0x1f')]=_0x42e029['color'],this['name']=_0x42e029[_0x4b97('0x22')],this['avatar']=_0x42e029[_0x4b97('0x23')],this[_0x4b97('0x2c')]=!0x1;}get[_0x4b97('0x28')](){return this[_0x4b97('0x2c')];}get[_0x4b97('0x3')](){const _0xed4a2f=this[_0x4b97('0x22')][_0x4b97('0x17')]('\x20');return 0x1===_0xed4a2f[_0x4b97('0x18')]?this[_0x4b97('0x1e')](_0xed4a2f[0x0]):this[_0x4b97('0x1e')](_0xed4a2f[0x0])+this[_0x4b97('0x1e')](_0xed4a2f[_0xed4a2f[_0x4b97('0x18')]-0x1]);}[_0x4b97('0x1e')](_0x381f63){return _0x381f63[_0x4b97('0x34')](0x0)['toUpperCase']();}}function a(_0x9122be,_0x4dbd7c=''){return''==(_0x4dbd7c=_0x4dbd7c[_0x4b97('0x9')]())?_0x56d67d(_0x9122be,_0x4b97('0x19')):_0x4dbd7c;}class u{constructor(_0x1f675a){this[_0x4b97('0x4')]=_0x1f675a;}['getBackgroundColorClass'](){return _0x4b97('0x7')+this[_0x4b97('0x4')];}[_0x4b97('0x16')](){return _0x4b97('0x15')+this[_0x4b97('0x4')];}[_0x4b97('0x36')](){return _0x4b97('0x2e')+this['_id'];}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
export function getTranslation(
|
23
|
+
export function getTranslation(_0x4db33e,_0x5b0e58){const t=_0x4db33e['t'];switch(_0x5b0e58){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 _0x5640=['once','message','remove','_removeConfirm','cancel','locale','element','cancelConfirm','focus','render','set','fire','deregisterChild','showConfirm','submit','destroy','confirmView','isConfirm'];(function(_0x145cd0,_0x56404a){var _0x5672d1=function(_0x227697){while(--_0x227697){_0x145cd0['push'](_0x145cd0['shift']());}};_0x5672d1(++_0x56404a);}(_0x5640,0xb9));var _0x5672=function(_0x145cd0,_0x56404a){_0x145cd0=_0x145cd0-0x0;var _0x5672d1=_0x5640[_0x145cd0];return _0x5672d1;};import _0xdf09e0 from'./confirmview';export default function m(_0xc43b1d){return class extends _0xc43b1d{[_0x5672('0x8')](_0x2b4fcf,_0x56927e){return this[_0x5672('0xb')]=new _0xdf09e0(this[_0x5672('0x0')]),this[_0x5672('0xb')][_0x5672('0x4')](),this[_0x5672('0xb')][_0x5672('0xe')]=_0x2b4fcf,this[_0x5672('0xb')][_0x5672('0xd')]('cancel',()=>{this[_0x5672('0x10')]();}),this[_0x5672('0xb')]['once'](_0x5672('0x9'),()=>{this[_0x5672('0x10')]();}),_0x56927e['appendChild'](this[_0x5672('0xb')][_0x5672('0x1')]),this['registerChild'](this[_0x5672('0xb')]),this[_0x5672('0x1')][_0x5672('0x3')](),this[_0x5672('0x5')]('isConfirm',!0x0),new Promise(_0x36322e=>this[_0x5672('0xb')]['on'](_0x5672('0x9'),_0x36322e));}[_0x5672('0x2')](){this['isConfirm']&&this['confirmView'][_0x5672('0x6')](_0x5672('0x11'));}['_removeConfirm'](){this[_0x5672('0x1')]&&this['confirmView']&&this[_0x5672('0xb')][_0x5672('0x1')]&&(this[_0x5672('0x1')][_0x5672('0x3')](),this['confirmView']['element'][_0x5672('0xf')](),this[_0x5672('0x7')](this['confirmView']),this[_0x5672('0xc')]=!0x1,this[_0x5672('0xb')][_0x5672('0xa')](),this[_0x5672('0xb')]=void 0x0);}};}
|
package/src/utils/confirmview.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x54b4=['Yes','ck-thread__remove-confirm-actions','cancelView','fire','ck-thread__remove-confirm-','check','div','message','submit','submitView','set','Are\x20you\x20sure?','execute','label','cancel','ck-thread__remove-confirm-inner','setTemplate','_createButtonView','ck-thread__remove-confirm'];(function(_0x41f149,_0x54b409){const _0xb3f76=function(_0x6fb4c5){while(--_0x6fb4c5){_0x41f149['push'](_0x41f149['shift']());}};_0xb3f76(++_0x54b409);}(_0x54b4,0x179));const _0xb3f7=function(_0x41f149,_0x54b409){_0x41f149=_0x41f149-0x0;let _0xb3f76=_0x54b4[_0x41f149];return _0xb3f76;};import{View as _0x40f136,ButtonView as _0x3fe0c4}from'ckeditor5/src/ui';import{icons as _0x27cca8}from'ckeditor5/src/core';import{getTranslation as _0xab5510}from'./common-translations';export default class h extends _0x40f136{constructor(_0x53222a){super(_0x53222a);const _0x1c0295=this['bindTemplate'];this['submitView']=this['_createButtonView'](_0x53222a,_0xab5510(_0x53222a,_0xb3f7('0x3')),_0x27cca8[_0xb3f7('0x8')],_0xb3f7('0xb')),this[_0xb3f7('0x5')]=this[_0xb3f7('0x1')](_0x53222a,_0xab5510(_0x53222a,'No'),_0x27cca8[_0xb3f7('0x11')],_0xb3f7('0x11')),this[_0xb3f7('0xd')]('message',_0xab5510(_0x53222a,_0xb3f7('0xe'))),this[_0xb3f7('0x0')]({'tag':_0xb3f7('0x9'),'attributes':{'class':[_0xb3f7('0x2')]},'children':[{'tag':_0xb3f7('0x9'),'attributes':{'class':_0xb3f7('0x12')},'children':[{'tag':'p','children':[{'text':_0x1c0295['to'](_0xb3f7('0xa'))}]},{'tag':_0xb3f7('0x9'),'attributes':{'class':_0xb3f7('0x4')},'children':[this[_0xb3f7('0xc')],this[_0xb3f7('0x5')]]}]}]});}[_0xb3f7('0x1')](_0x40350e,_0x3de2c8,_0x4bc221,_0x45cad1){const _0x2848b3=new _0x3fe0c4(_0x40350e);return _0x2848b3[_0xb3f7('0x10')]=_0x3de2c8,_0x2848b3['icon']=_0x4bc221,_0x2848b3['extendTemplate']({'attributes':{'class':_0xb3f7('0x7')+_0x45cad1}}),_0x2848b3['on'](_0xb3f7('0xf'),()=>this[_0xb3f7('0x6')](_0x45cad1)),_0x2848b3;}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x3a92=['MM-dd-yyyy\x20hh:mma','dateTimeFormat','string','invalid-date-time-format','\x27Today\x27\x20hh:mma','\x27Last\x27\x20EEEE\x20hh:mma','\x27Yesterday\x27\x20hh:mma'];(function(_0x43a159,_0x3a9256){const _0x1082b1=function(_0x42b303){while(--_0x42b303){_0x43a159['push'](_0x43a159['shift']());}};_0x1082b1(++_0x3a9256);}(_0x3a92,0x180));const _0x1082=function(_0x43a159,_0x3a9256){_0x43a159=_0x43a159-0x0;let _0x1082b1=_0x3a92[_0x43a159];return _0x1082b1;};import _0x21b8e5 from'date-fns/format';import _0x77750d from'date-fns/parseISO';import _0x4fd86d from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x446f63}from'ckeditor5/src/utils';export default function E(_0x32db15={}){if(void 0x0!==_0x32db15[_0x1082('0x2')]&&'function'!=typeof _0x32db15[_0x1082('0x2')])throw new _0x446f63(_0x1082('0x4'));return _0x84803b=>{const _0x4a7131=_0x1082('0x3')==typeof _0x84803b?_0x77750d(_0x84803b):_0x84803b,_0x2dbca7=new Date(),_0x702f15=_0x4fd86d(_0x2dbca7,_0x4a7131);return _0x32db15[_0x1082('0x2')]?_0x32db15['dateTimeFormat'](_0x4a7131):_0x21b8e5(_0x4a7131,0x0===_0x702f15?_0x1082('0x5'):0x1===_0x702f15?_0x1082('0x0'):_0x702f15<0x7?_0x1082('0x6'):_0x1082('0x1'));};}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x4c0e=['view','mapper','length','values','getClientRects','map','push','sort','mapViewToDom','domElement','domConverter','name','markerNameToElements','filter'];(function(_0x3083e8,_0x4c0e0c){const _0xf3d5e5=function(_0xe63f6a){while(--_0xe63f6a){_0x3083e8['push'](_0x3083e8['shift']());}};_0xf3d5e5(++_0x4c0e0c);}(_0x4c0e,0x12f));const _0xf3d5=function(_0x3083e8,_0x4c0e0c){_0x3083e8=_0x3083e8-0x0;let _0xf3d5e5=_0x4c0e[_0x3083e8];return _0xf3d5e5;};import{first as _0x5c982a}from'ckeditor5/src/utils';export default function k(_0x36f0d5,_0x4ccc69){const _0x6485bb=_0x36f0d5[_0xf3d5('0x6')][_0xf3d5('0x3')](_0x4ccc69[_0xf3d5('0x2')]);if(!_0x6485bb)return null;const _0x2e570d=_0x5c982a(_0x6485bb[_0xf3d5('0x8')]());return _0x36f0d5[_0xf3d5('0x5')][_0xf3d5('0x1')][_0xf3d5('0xd')](_0x2e570d)||null;}export function getAllMarkersDomElementsSorted(_0x4fc394,_0xb5197){if(0x0===_0xb5197[_0xf3d5('0x7')])return null;const _0x5577f4=[],_0x5c4943=_0x4fc394[_0xf3d5('0x5')][_0xf3d5('0x1')];for(const _0x3dc999 of _0xb5197){const _0x841312=_0x4fc394[_0xf3d5('0x6')][_0xf3d5('0x3')](_0x3dc999[_0xf3d5('0x2')]);if(!_0x841312)continue;const _0x228aa6=Array['from'](_0x841312)[_0xf3d5('0xa')](_0x37c4f1=>_0x5c4943['mapViewToDom'](_0x37c4f1))[_0xf3d5('0x4')](_0xb72b63=>!!_0xb72b63);_0x5577f4[_0xf3d5('0xb')](..._0x228aa6);}if(0x0===_0x5577f4[_0xf3d5('0x7')])return null;const _0x4dd263=[];for(const _0x5bb435 of _0x5577f4){const _0x2ccb3a=_0x5bb435[_0xf3d5('0x9')]()['item'](0x0);_0x2ccb3a&&_0x4dd263[_0xf3d5('0xb')]({'x':_0x2ccb3a['x'],'y':_0x2ccb3a['y'],'domElement':_0x5bb435});}return 0x0===_0x4dd263['length']?null:(_0x4dd263[_0xf3d5('0xc')]((_0x30681f,_0x30185f)=>_0x30681f['y']-_0x30185f['y']||_0x30681f['x']-_0x30185f['x']),_0x4dd263['map'](_0xf9059c=>_0xf9059c[_0xf3d5('0x0')]));}
|
package/src/utils/hashobject.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x471a=['sort','object','charCodeAt','isArray','keys','number','string'];(function(_0x26184e,_0x471a40){const _0x2b448d=function(_0xa34afa){while(--_0xa34afa){_0x26184e['push'](_0x26184e['shift']());}};_0x2b448d(++_0x471a40);}(_0x471a,0x104));const _0x2b44=function(_0x26184e,_0x471a40){_0x26184e=_0x26184e-0x0;let _0x2b448d=_0x471a[_0x26184e];return _0x2b448d;};export default function b(_0x34e29b){let _0x130795=0x0,_0x5a9498=0x0;for(const _0x3f5d4a of g(_0x34e29b))_0x130795=(_0x130795<<0x5)-_0x130795+_0x3f5d4a,_0x130795&=_0x130795,[_0x130795,_0x5a9498]=[_0x5a9498,_0x130795];return O(_0x130795)+O(_0x5a9498);}function*j(_0x2e448a){_0x2e448a?'boolean'==typeof _0x2e448a?yield 0x1:Array[_0x2b44('0x2')](_0x2e448a)?yield*function*(_0x4e4491){for(const _0x5c2bbc of _0x4e4491)yield*j(_0x5c2bbc);}(_0x2e448a):_0x2b44('0x0')==typeof _0x2e448a?yield*g(_0x2e448a):_0x2b44('0x5')==typeof _0x2e448a?yield*A(_0x2e448a):_0x2b44('0x4')==typeof _0x2e448a&&(yield _0x2e448a):yield 0x0;}function*g(_0x59f7c6){if(yield M('{'),_0x59f7c6){const _0x3d60a6=Object[_0x2b44('0x3')](_0x59f7c6)[_0x2b44('0x6')]();for(const _0x201ecc of _0x3d60a6){yield*A(_0x201ecc),yield M(':');const _0x4772f3=_0x59f7c6[_0x201ecc];yield*j(_0x4772f3);}}yield M('}');}function*A(_0x4598c1){yield M('\x22');for(const _0x2f4ed8 of _0x4598c1)yield M(_0x2f4ed8);yield M('\x22');}function M(_0x480f7f){return _0x480f7f[_0x2b44('0x1')](0x0);}function O(_0x58813e){return(_0x58813e*=Math['sign'](_0x58813e))['toString'](0x24);}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x4747=['builtinPlugins','map','get','extraPlugins','WProofreader','pluginName','includes','toolbar','set','context','constructor','has','requires','DocumentOutline','removePlugins','Autosave','concat','plugins','length','string','from','find','_context','config','every','name'];(function(_0x14f786,_0x474781){const _0x282a9c=function(_0x1b9453){while(--_0x1b9453){_0x14f786['push'](_0x14f786['shift']());}};_0x282a9c(++_0x474781);}(_0x4747,0xbc));const _0x282a=function(_0x14f786,_0x474781){_0x14f786=_0x14f786-0x0;let _0x282a9c=_0x4747[_0x14f786];return _0x282a9c;};const w=['initialData',_0x282a('0x3'),_0x282a('0x1'),'rootsAttributes'],W=['WebSocketGateway','RevisionTracker',_0x282a('0x9'),'WordCount',_0x282a('0x7'),_0x282a('0x18')];function v(_0x35be8e,_0x2be077,_0x315da2,_0x3af824=[]){const _0x15bbf0=_0x282a('0xd')==typeof _0x35be8e?_0x315da2[_0x282a('0x16')](_0x35be8e)[_0x282a('0x4')]:_0x35be8e,_0x396629=_0x15bbf0['pluginName']||_0x15bbf0[_0x282a('0x13')];if(_0x2be077[_0x282a('0x5')](_0x396629))return _0x2be077[_0x282a('0x16')](_0x396629);if(_0x2be077[_0x282a('0x2')](_0x396629,!0x0),_0x396629&&W[_0x282a('0xa')](_0x3af824)[_0x282a('0x0')](_0x396629))return _0x2be077[_0x282a('0x2')](_0x396629,!0x1),!0x1;if(!_0x15bbf0[_0x282a('0x6')])return _0x2be077[_0x282a('0x2')](_0x396629,!0x0),!0x0;const _0x3ba292=_0x15bbf0[_0x282a('0x6')][_0x282a('0x12')](_0x4947e1=>v(_0x4947e1,_0x2be077,_0x315da2,_0x3af824));return _0x2be077[_0x282a('0x2')](_0x396629,_0x3ba292),_0x3ba292;}export default function D(_0x11ec0d,_0x33ff92){const _0x18b272={};for(const _0x1f8b7f of _0x11ec0d[_0x282a('0x11')]['names']())w[_0x282a('0x0')](_0x1f8b7f)||(_0x18b272[_0x1f8b7f]=_0x11ec0d[_0x282a('0x11')][_0x282a('0x16')](_0x1f8b7f));const _0x5881a1=_0x18b272[_0x282a('0xb')]||[],_0x82fe5c=_0x11ec0d['constructor'][_0x282a('0x14')]||[],_0x6651d6=_0x5881a1[_0x282a('0xc')]?_0x5881a1:_0x82fe5c,_0x38df59=_0x18b272['extraPlugins']||[];delete _0x18b272[_0x282a('0x17')];const _0x347313=_0x18b272['removePlugins']||[];delete _0x18b272[_0x282a('0x8')];const _0x50c007=_0x11ec0d[_0x282a('0x10')][_0x282a('0x11')][_0x282a('0x16')](_0x282a('0xb'))||[],_0x4a18c2=_0x6651d6['concat'](_0x38df59)[_0x282a('0xa')](_0x50c007)[_0x282a('0x15')](_0x550b50=>_0x282a('0xd')==typeof _0x550b50?_0x82fe5c[_0x282a('0xf')](_0x4c116e=>_0x4c116e[_0x282a('0x19')]==_0x550b50):_0x550b50)['filter'](_0x3a3968=>!_0x347313[_0x282a('0x0')](_0x3a3968)&&!_0x347313[_0x282a('0x0')](_0x3a3968[_0x282a('0x19')])),_0x109dce=Array[_0x282a('0xe')](new Set(_0x4a18c2)),_0x356f31=new Map();return _0x18b272[_0x282a('0xb')]=_0x109dce['filter'](_0x14eb06=>v(_0x14eb06,_0x356f31,_0x11ec0d['plugins'],_0x33ff92)),_0x18b272;}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x5bc9=['change:range','document','containsPosition','length','getRange','markers','focus','push','includes','isEqual','end'];(function(_0x2b3159,_0x5bc97c){const _0x2f3a07=function(_0x12acb){while(--_0x12acb){_0x2b3159['push'](_0x2b3159['shift']());}};_0x2f3a07(++_0x5bc97c);}(_0x5bc9,0x119));const _0x2f3a=function(_0x2b3159,_0x5bc97c){_0x2b3159=_0x2b3159-0x0;let _0x2f3a07=_0x5bc9[_0x2b3159];return _0x2f3a07;};export default function q(_0x4dc58d,_0xd6cba6){const _0x2cec9e=[];_0x4dc58d[_0x2f3a('0x6')]['selection']['on'](_0x2f3a('0x5'),()=>{const _0xfefaaa=function(_0x3122bc,_0xec983d){const _0x154df1=[];for(const _0x4fb12b of _0x3122bc[_0x2f3a('0xa')]){const _0x16bd52=_0x4fb12b[_0x2f3a('0x9')]();(_0x16bd52[_0x2f3a('0x7')](_0xec983d)||_0x16bd52['start'][_0x2f3a('0x3')](_0xec983d)||_0x16bd52[_0x2f3a('0x4')]['isEqual'](_0xec983d))&&_0x154df1[_0x2f3a('0x1')](_0x4fb12b);}return _0x154df1;}(_0x4dc58d,_0x4dc58d[_0x2f3a('0x6')]['selection'][_0x2f3a('0x0')]),_0xc696b1=[],_0x525eaa=[],_0x5434d7=[];for(const _0xd2eb96 of _0x2cec9e)_0xfefaaa[_0x2f3a('0x2')](_0xd2eb96)||_0xc696b1[_0x2f3a('0x1')](_0xd2eb96);for(const _0x31d3d6 of _0xfefaaa)_0x2cec9e[_0x2f3a('0x2')](_0x31d3d6)||_0x525eaa['push'](_0x31d3d6),_0x5434d7[_0x2f3a('0x1')](_0x31d3d6);(_0xc696b1[_0x2f3a('0x8')]||_0x525eaa[_0x2f3a('0x8')])&&_0xd6cba6({'left':_0xc696b1,'entered':_0x525eaa}),_0x2cec9e['length']=0x0,_0x2cec9e['push'](..._0x5434d7);});}
|
package/src/utils/trim-html.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x2871=['startsWith','indexOf','length','push','match','replace','join','...','slice','split','substring'];(function(_0x2cef31,_0x287194){const _0x24f665=function(_0x20c651){while(--_0x20c651){_0x2cef31['push'](_0x2cef31['shift']());}};_0x24f665(++_0x287194);}(_0x2871,0x120));const _0x24f6=function(_0x2cef31,_0x287194){_0x2cef31=_0x2cef31-0x0;let _0x24f665=_0x2871[_0x2cef31];return _0x24f665;};export default function z(_0x564af1,{limit:_0x37fc39,suffix:_0x25c293=_0x24f6('0x5')}){const _0xb6f78=[];let _0x143441=0x0;const _0x5af57e=_0x564af1['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')[_0x24f6('0x3')](/^\n/g,'')[_0x24f6('0x3')](/\n$/g,'')[_0x24f6('0x7')]('\x0a');for(let _0x9614ee=0x0;_0x9614ee<_0x5af57e[_0x24f6('0x0')];_0x9614ee++){let _0x1c7731=_0x5af57e[_0x9614ee];const _0x4431e0=Z(_0x1c7731);if(_0x1c7731[_0x24f6('0x9')]('<')){if(_0x143441>=_0x37fc39){const _0x5992f8=_0x1c7731['match'](/[a-zA-Z]+/);if(!_0x5992f8){_0x5af57e[_0x9614ee]='';continue;}const _0x2f7f5c=_0x5992f8[0x0];_0x1c7731['startsWith']('</')?(_0xb6f78[_0x24f6('0x0')]&&(_0x1c7731=''),_0xb6f78['pop']()):(_0xb6f78[_0x24f6('0x1')](_0x2f7f5c),_0x1c7731='');}}else{if(_0x143441>=_0x37fc39)_0x1c7731='';else{if(_0x143441+_0x4431e0[_0x24f6('0x0')]>=_0x37fc39){let _0x4692ce=_0x37fc39-_0x143441;if('\x20'===_0x4431e0[_0x4692ce-0x1])_0x4692ce--;else{const _0x305633=_0x4431e0['slice'](_0x4692ce)[_0x24f6('0xa')]('\x20');-0x1!==_0x305633?_0x4692ce+=_0x305633:_0x4692ce=_0x1c7731[_0x24f6('0x0')];}_0x1c7731=_0x4431e0[_0x24f6('0x6')](0x0,_0x4692ce)['join']('')+_0x25c293,_0x143441=_0x37fc39;}else _0x143441+=_0x4431e0[_0x24f6('0x0')];}}_0x5af57e[_0x9614ee]=_0x1c7731;}return _0x5af57e[_0x24f6('0x4')]('\x0a')[_0x24f6('0x3')](/\n/g,'');}function Z(_0x44dd08){const _0x183b7c=[];for(let _0x151732=0x0;_0x151732<_0x44dd08[_0x24f6('0x0')];_0x151732++){const _0x1b1fb5=_0x44dd08[_0x24f6('0x8')](_0x151732)[_0x24f6('0x2')](/^&[a-z0-9#]+;/);if(_0x1b1fb5){const _0x36c352=_0x1b1fb5[0x0];_0x183b7c[_0x24f6('0x1')](_0x36c352),_0x151732+=_0x36c352[_0x24f6('0x0')]-0x1;}else _0x183b7c[_0x24f6('0x1')](_0x44dd08[_0x151732]);}return _0x183b7c;}
|