@ckeditor/ckeditor5-collaboration-core 0.0.0-nightly-20231203.0 → 0.0.0-nightly-20231205.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-20231205.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-20231205.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 _0x31eb=['enableReadOnlyMode','plugins','setPermissions','comment:write','disableReadOnlyMode','includes','pluginName','find','forceDisabled','addCommentThread','editors','config','has','no-permissions','isEnabled','CommentsRepository','context','collaboration.channelId','get','permissions-set-permissions-invalid-channel-id','noPermissions','Permissions','comment:admin','commands','document:write','CommentsOnly'];(function(_0x14bef4,_0x31ebbc){const _0x35ebf9=function(_0x4c50a2){while(--_0x4c50a2){_0x14bef4['push'](_0x14bef4['shift']());}};_0x35ebf9(++_0x31ebbc);}(_0x31eb,0xbb));const _0x35eb=function(_0x14bef4,_0x31ebbc){_0x14bef4=_0x14bef4-0x0;let _0x35ebf9=_0x31eb[_0x14bef4];return _0x35ebf9;};import{ContextPlugin as _0x5867fe,Editor as _0x1c83dd}from'ckeditor5/src/core';import{CKEditorError as _0x557ec8}from'ckeditor5/src/utils';export default class n extends _0x5867fe{static get[_0x35eb('0x1')](){return _0x35eb('0x10');}[_0x35eb('0x17')](_0x9e9f80,_0x45d312){let _0x13d552;if(_0x45d312||(_0x45d312=this[_0x35eb('0xb')][_0x35eb('0x6')][_0x35eb('0xd')](_0x35eb('0xc'))),this[_0x35eb('0xb')][_0x35eb('0x6')]['get'](_0x35eb('0xc'))==_0x45d312?_0x13d552=this[_0x35eb('0xb')]:_0x35eb('0x5')in this['context']&&this['context'][_0x35eb('0x5')]&&(_0x13d552=this[_0x35eb('0xb')][_0x35eb('0x5')][_0x35eb('0x2')](_0x385958=>_0x385958['config']['get'](_0x35eb('0xc'))==_0x45d312)),!_0x13d552)throw new _0x557ec8(_0x35eb('0xe'),null);const _0x2ef2a2=_0x13d552[_0x35eb('0x16')],_0x36566a=_0x2ef2a2[_0x35eb('0x7')](_0x35eb('0xa'))?_0x2ef2a2[_0x35eb('0xd')](_0x35eb('0xa')):void 0x0,_0x592cda=_0x2ef2a2[_0x35eb('0x7')](_0x35eb('0x14'))&&_0x2ef2a2[_0x35eb('0xd')](_0x35eb('0x14')),_0xff1151=_0x9e9f80[_0x35eb('0x0')](_0x35eb('0x13')),_0x2de3a4=_0x9e9f80[_0x35eb('0x0')]('comment:modify_all'),_0x4272d6=_0x9e9f80[_0x35eb('0x0')](_0x35eb('0x11')),_0x73e75a=_0x9e9f80['includes'](_0x35eb('0x18')),_0x987a7c=_0x73e75a||_0x4272d6,_0x222fd5=_0x987a7c||_0x2de3a4,_0x2e4666=_0xff1151||_0x987a7c;(_0x592cda&&(_0x592cda[_0x35eb('0x9')]=!_0xff1151&&_0x222fd5),_0x13d552 instanceof _0x1c83dd)&&(!(_0xff1151||_0x222fd5&&_0x36566a)?_0x13d552[_0x35eb('0x15')](_0x35eb('0x8')):_0x13d552[_0x35eb('0x19')](_0x35eb('0x8')));if(_0x36566a){_0x36566a[_0x35eb('0x17')]({'admin':_0x4272d6,'modifyAll':_0x2de3a4,'write':_0x73e75a,'resolve':_0x2e4666},_0x45d312);const _0x3dd7e5=_0x13d552 instanceof _0x1c83dd&&_0x13d552[_0x35eb('0x12')][_0x35eb('0xd')](_0x35eb('0x4'));_0x3dd7e5&&(_0x987a7c?_0x3dd7e5['clearForceDisabled'](_0x35eb('0xf')):_0x3dd7e5[_0x35eb('0x3')](_0x35eb('0xf')));}}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x4d48=['ck-user__anonymous','ck\x20ck-user__name\x20ck-user__name--hidden','ck-user__img','notificationView','name','ck-user','initials','push','content','ck-user__icon','isAnonymous','div','ck-user__notification','url(\x27'];(function(_0x2657df,_0x4d4893){const _0x29dc83=function(_0x2cef6d){while(--_0x2cef6d){_0x2657df['push'](_0x2657df['shift']());}};_0x29dc83(++_0x4d4893);}(_0x4d48,0x105));const _0x29dc=function(_0x2657df,_0x4d4893){_0x2657df=_0x2657df-0x0;let _0x29dc83=_0x4d48[_0x2657df];return _0x29dc83;};import{View as _0x4a7d25,IconView as _0x306ebf}from'ckeditor5/src/ui';import _0x5d73ae from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class C extends _0x4a7d25{constructor(_0x149eb9,_0x423358,_0x290cff){super(_0x149eb9),this['name']=_0x423358[_0x29dc('0x9')],this[_0x29dc('0x8')]=null;const _0x57edde=['ck',_0x29dc('0x7')];if(_0x423358[_0x29dc('0x1')]&&_0x57edde['push'](_0x29dc('0x5')),_0x423358['avatar']&&_0x57edde[_0x29dc('0xc')]('ck-user__avatar'),_0x290cff){const _0xe10e06=new _0x306ebf();_0xe10e06['extendTemplate']({'attributes':{'class':[_0x29dc('0x0')]}}),_0xe10e06[_0x29dc('0xd')]=_0x5d73ae,this[_0x29dc('0x8')]={'tag':_0x29dc('0x2'),'attributes':{'class':['ck',_0x29dc('0x3')],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x290cff},'children':[_0xe10e06]};}const _0x3438fd=[{'tag':_0x29dc('0x2'),'attributes':{'class':_0x57edde,'style':{'background-image':_0x423358['avatar']?_0x29dc('0x4')+_0x423358['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x423358['avatar']?_0x29dc('0x6'):'ck\x20ck-user__name'},'children':[{'text':_0x423358[_0x29dc('0xb')]}]}];this['notificationView']&&_0x3438fd[_0x29dc('0xc')](this[_0x29dc('0x8')]),this['setTemplate']({'tag':_0x29dc('0x2'),'attributes':{'class':['ck',_0x29dc('0xa')],'data-user-id':_0x423358['id']},'children':_0x3438fd});}}
|
package/src/users.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x398b=['init','includes','licenseKeyTrialLimit:revisions','licenseKeyTrialLimit:time','get','_isAnonymous','Anonymous','defineMe','ck-user__marker--','toUpperCase','users','users-add-duplicated-id','has','color','_id','licenseKeyTrial','getBackgroundColorClass','licenseKey','getUser','destroy','licenseKeyValid','licenseKeyTrialLimit:operations','_getInitial','getOperationAuthor','_licenseKeyCheckInterval','_lastColor','info','_getNextColor','_myId','useAnonymousUser','anonymous-user','_addAnonymousUser','string','config','ck-user__bg-color--','users.anonymousUserId','length','invalid-license-key','_locale','users.colorsCount','licenseKeyInvalid','define','avatar','locale','Users','users-add-invalid-id','initials','name','getSelectionClass','context'];(function(_0x3f45d1,_0x398ba1){const _0x3b95ac=function(_0x211dc9){while(--_0x211dc9){_0x3f45d1['push'](_0x3f45d1['shift']());}};_0x3b95ac(++_0x398ba1);}(_0x398b,0x16e));const _0x3b95=function(_0x3f45d1,_0x398ba1){_0x3f45d1=_0x3f45d1-0x0;let _0x3b95ac=_0x398b[_0x3f45d1];return _0x3b95ac;};import{ContextPlugin as _0x3cc40c}from'ckeditor5/src/core';import{Collection as _0x4640f2,CKEditorError as _0x5e0dc4}from'ckeditor5/src/utils';import _0x3014f6 from'./permissions';import{getTranslation as _0x36777f}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x3cc40c{static get['pluginName'](){return _0x3b95('0x1c');}static get['requires'](){return[_0x3014f6];}constructor(_0x52c00a){super(_0x52c00a),this[_0x3b95('0x21')][_0x3b95('0x11')][_0x3b95('0x19')](_0x3b95('0x13'),_0x3b95('0xe')),this[_0x3b95('0x21')][_0x3b95('0x11')]['define'](_0x3b95('0x17'),0x8),this[_0x3b95('0x2c')]=new _0x4640f2(),this[_0x3b95('0x16')]=_0x52c00a[_0x3b95('0x1b')],this['_licenseKeyCheckInterval']=null,this[_0x3b95('0x9')]=0x0,this['_myId']=null,this['decorate']('getOperationAuthor');}[_0x3b95('0x22')](){const _0x36974d=this[_0x3b95('0x21')];this[_0x3b95('0x1')]=_0x36974d[_0x3b95('0x11')][_0x3b95('0x26')](_0x3b95('0x1'));const _0x41c8c6=[_0x3b95('0x31'),_0x3b95('0x18'),_0x3b95('0x4'),'licenseKeyTrialLimit:operations',_0x3b95('0x25'),'licenseKeyTrialLimit:revisions'];this[_0x3b95('0x8')]=setInterval(()=>{let _0xa80ec0;for(const _0x42a5b3 in _0x36974d){const _0x17f940=_0x36974d[_0x42a5b3];if(_0x41c8c6[_0x3b95('0x23')](_0x17f940)){delete _0x36974d[_0x42a5b3],_0xa80ec0=_0x17f940;break;}}if('licenseKeyInvalid'===_0xa80ec0)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x5e0dc4(_0x3b95('0x15'),null);if('licenseKeyTrial'===_0xa80ec0&&console[_0x3b95('0xa')]('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.'),_0x3b95('0x5')===_0xa80ec0)throw clearInterval(this[_0x3b95('0x8')]),new _0x5e0dc4('trial-license-key-reached-limit-changes',null);if(_0x3b95('0x25')===_0xa80ec0)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x5e0dc4('trial-license-key-reached-limit-time',null);if(_0x3b95('0x24')===_0xa80ec0)throw clearInterval(this[_0x3b95('0x8')]),new _0x5e0dc4('trial-license-key-reached-limit-revisions',null);_0x3b95('0x4')===_0xa80ec0&&clearInterval(this[_0x3b95('0x8')]);},0x3e8),this[_0x3b95('0xf')]();}get['me'](){return null==this['_myId']?null:this[_0x3b95('0x2')](this[_0x3b95('0xc')]);}['addUser']({id:_0x3f0e0c,name:_0xc54161,..._0x309332}){if(!_0x3f0e0c||_0x3b95('0x10')!=typeof _0x3f0e0c)throw new _0x5e0dc4(_0x3b95('0x1d'));if(this[_0x3b95('0x2c')][_0x3b95('0x2e')](_0x3f0e0c))throw new _0x5e0dc4(_0x3b95('0x2d'),null,{'id':_0x3f0e0c});const _0x5168f9={..._0x309332,'id':_0x3f0e0c,'name':a(this[_0x3b95('0x16')],_0xc54161),'color':this[_0x3b95('0xb')]()};_0x5168f9[_0x3b95('0x1f')]=a(this['_locale'],_0x5168f9[_0x3b95('0x1f')]);const _0x2c4a8b=new User(_0x5168f9);return this['users']['add'](_0x2c4a8b),_0x2c4a8b;}[_0x3b95('0x2')](_0x42f3ba){return this[_0x3b95('0x2c')][_0x3b95('0x26')](_0x42f3ba);}[_0x3b95('0xd')](){const _0x4d0c23=this[_0x3b95('0x21')][_0x3b95('0x11')][_0x3b95('0x26')]('users.anonymousUserId');this['_myId']||this['defineMe'](_0x4d0c23);}[_0x3b95('0x29')](_0x3bd4b0){if(this['_myId'])throw new _0x5e0dc4('users-me-already-defined',null);if(!this[_0x3b95('0x2')](_0x3bd4b0))throw new _0x5e0dc4('users-me-missing-user',null);this[_0x3b95('0xc')]=_0x3bd4b0;}[_0x3b95('0x7')](){return this['me'];}['destroy'](){super[_0x3b95('0x3')](),clearInterval(this[_0x3b95('0x8')]);}[_0x3b95('0xb')](){const _0x347aa5=this[_0x3b95('0x21')]['config'][_0x3b95('0x26')](_0x3b95('0x17'));return this[_0x3b95('0x9')]>=_0x347aa5&&(this[_0x3b95('0x9')]=0x0),new u(this[_0x3b95('0x9')]++);}[_0x3b95('0xf')](){const _0x4c5f72=this[_0x3b95('0x21')][_0x3b95('0x11')][_0x3b95('0x26')](_0x3b95('0x13'));this['addUser']({'id':_0x4c5f72,'name':_0x36777f(this[_0x3b95('0x16')],_0x3b95('0x28'))})['_isAnonymous']=!0x0;}}export class User{constructor(_0x5f5457){this['id']=_0x5f5457['id'],this[_0x3b95('0x2f')]=_0x5f5457[_0x3b95('0x2f')],this['name']=_0x5f5457['name'],this[_0x3b95('0x1a')]=_0x5f5457[_0x3b95('0x1a')],this[_0x3b95('0x27')]=!0x1;}get['isAnonymous'](){return this[_0x3b95('0x27')];}get[_0x3b95('0x1e')](){const _0x3e5c56=this[_0x3b95('0x1f')]['split']('\x20');return 0x1===_0x3e5c56[_0x3b95('0x14')]?this[_0x3b95('0x6')](_0x3e5c56[0x0]):this[_0x3b95('0x6')](_0x3e5c56[0x0])+this[_0x3b95('0x6')](_0x3e5c56[_0x3e5c56[_0x3b95('0x14')]-0x1]);}[_0x3b95('0x6')](_0x5d5b5b){return _0x5d5b5b['charAt'](0x0)[_0x3b95('0x2b')]();}}function a(_0xc06f5f,_0x47ca0c=''){return''==(_0x47ca0c=_0x47ca0c['trim']())?_0x36777f(_0xc06f5f,'Anonymous'):_0x47ca0c;}class u{constructor(_0x33533a){this['_id']=_0x33533a;}[_0x3b95('0x0')](){return _0x3b95('0x12')+this[_0x3b95('0x30')];}[_0x3b95('0x20')](){return'ck-user__selection--'+this['_id'];}['getMarkerClass'](){return _0x3b95('0x2a')+this['_id'];}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
export function getTranslation(
|
23
|
+
export function getTranslation(_0x2e1e11,_0xfabe4c){const t=_0x2e1e11['t'];switch(_0xfabe4c){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 _0x2b5a=['once','fire','showConfirm','appendChild','set','element','destroy','remove','cancelConfirm','message','registerChild','confirmView','deregisterChild','focus','isConfirm','locale','_removeConfirm','render','cancel','submit'];(function(_0x889d69,_0x2b5a8f){var _0x2ff840=function(_0x9a40fb){while(--_0x9a40fb){_0x889d69['push'](_0x889d69['shift']());}};_0x2ff840(++_0x2b5a8f);}(_0x2b5a,0x87));var _0x2ff8=function(_0x889d69,_0x2b5a8f){_0x889d69=_0x889d69-0x0;var _0x2ff840=_0x2b5a[_0x889d69];return _0x2ff840;};import _0x5c0e17 from'./confirmview';export default function m(_0x2dc3d5){return class extends _0x2dc3d5{[_0x2ff8('0x7')](_0x5e1b4f,_0xa59390){return this['confirmView']=new _0x5c0e17(this[_0x2ff8('0x0')]),this[_0x2ff8('0x10')][_0x2ff8('0x2')](),this[_0x2ff8('0x10')][_0x2ff8('0xe')]=_0x5e1b4f,this['confirmView'][_0x2ff8('0x5')](_0x2ff8('0x3'),()=>{this[_0x2ff8('0x1')]();}),this['confirmView']['once'](_0x2ff8('0x4'),()=>{this[_0x2ff8('0x1')]();}),_0xa59390[_0x2ff8('0x8')](this[_0x2ff8('0x10')]['element']),this[_0x2ff8('0xf')](this[_0x2ff8('0x10')]),this[_0x2ff8('0xa')]['focus'](),this[_0x2ff8('0x9')](_0x2ff8('0x13'),!0x0),new Promise(_0x4f01ca=>this[_0x2ff8('0x10')]['on']('submit',_0x4f01ca));}[_0x2ff8('0xd')](){this[_0x2ff8('0x13')]&&this[_0x2ff8('0x10')][_0x2ff8('0x6')](_0x2ff8('0x3'));}['_removeConfirm'](){this[_0x2ff8('0xa')]&&this[_0x2ff8('0x10')]&&this['confirmView']['element']&&(this['element'][_0x2ff8('0x12')](),this[_0x2ff8('0x10')]['element'][_0x2ff8('0xc')](),this[_0x2ff8('0x11')](this['confirmView']),this['isConfirm']=!0x1,this[_0x2ff8('0x10')][_0x2ff8('0xb')](),this[_0x2ff8('0x10')]=void 0x0);}};}
|
package/src/utils/confirmview.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x515e=['icon','extendTemplate','submitView','label','cancel','cancelView','check','ck-thread__remove-confirm-inner','fire','setTemplate','submit','execute','div','_createButtonView','ck-thread__remove-confirm-actions'];(function(_0x3329e1,_0x515ebc){const _0x2564e1=function(_0x59287d){while(--_0x59287d){_0x3329e1['push'](_0x3329e1['shift']());}};_0x2564e1(++_0x515ebc);}(_0x515e,0x13b));const _0x2564=function(_0x3329e1,_0x515ebc){_0x3329e1=_0x3329e1-0x0;let _0x2564e1=_0x515e[_0x3329e1];return _0x2564e1;};import{View as _0xc23fd4,ButtonView as _0x4b392f}from'ckeditor5/src/ui';import{icons as _0x4f5744}from'ckeditor5/src/core';import{getTranslation as _0x4810a0}from'./common-translations';export default class h extends _0xc23fd4{constructor(_0x3a5184){super(_0x3a5184);const _0x5f551d=this['bindTemplate'];this[_0x2564('0x2')]=this[_0x2564('0xd')](_0x3a5184,_0x4810a0(_0x3a5184,'Yes'),_0x4f5744[_0x2564('0x6')],_0x2564('0xa')),this['cancelView']=this['_createButtonView'](_0x3a5184,_0x4810a0(_0x3a5184,'No'),_0x4f5744['cancel'],_0x2564('0x4')),this['set']('message',_0x4810a0(_0x3a5184,'Are\x20you\x20sure?')),this[_0x2564('0x9')]({'tag':_0x2564('0xc'),'attributes':{'class':['ck-thread__remove-confirm']},'children':[{'tag':_0x2564('0xc'),'attributes':{'class':_0x2564('0x7')},'children':[{'tag':'p','children':[{'text':_0x5f551d['to']('message')}]},{'tag':_0x2564('0xc'),'attributes':{'class':_0x2564('0xe')},'children':[this[_0x2564('0x2')],this[_0x2564('0x5')]]}]}]});}[_0x2564('0xd')](_0x36d6e7,_0x502387,_0x481b3f,_0x40bd96){const _0x290f60=new _0x4b392f(_0x36d6e7);return _0x290f60[_0x2564('0x3')]=_0x502387,_0x290f60[_0x2564('0x0')]=_0x481b3f,_0x290f60[_0x2564('0x1')]({'attributes':{'class':'ck-thread__remove-confirm-'+_0x40bd96}}),_0x290f60['on'](_0x2564('0xb'),()=>this[_0x2564('0x8')](_0x40bd96)),_0x290f60;}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x28ba=['dateTimeFormat','\x27Today\x27\x20hh:mma','\x27Last\x27\x20EEEE\x20hh:mma','invalid-date-time-format','string'];(function(_0x26838f,_0x28baea){const _0x18fa2b=function(_0x2a8183){while(--_0x2a8183){_0x26838f['push'](_0x26838f['shift']());}};_0x18fa2b(++_0x28baea);}(_0x28ba,0x105));const _0x18fa=function(_0x26838f,_0x28baea){_0x26838f=_0x26838f-0x0;let _0x18fa2b=_0x28ba[_0x26838f];return _0x18fa2b;};import _0x2714b2 from'date-fns/format';import _0x1e4097 from'date-fns/parseISO';import _0x3fd314 from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x1df1a7}from'ckeditor5/src/utils';export default function E(_0x170c79={}){if(void 0x0!==_0x170c79[_0x18fa('0x4')]&&'function'!=typeof _0x170c79[_0x18fa('0x4')])throw new _0x1df1a7(_0x18fa('0x2'));return _0x1e8ac2=>{const _0x336bab=_0x18fa('0x3')==typeof _0x1e8ac2?_0x1e4097(_0x1e8ac2):_0x1e8ac2,_0x3d8d01=new Date(),_0x367682=_0x3fd314(_0x3d8d01,_0x336bab);return _0x170c79[_0x18fa('0x4')]?_0x170c79[_0x18fa('0x4')](_0x336bab):_0x2714b2(_0x336bab,0x0===_0x367682?_0x18fa('0x0'):0x1===_0x367682?'\x27Yesterday\x27\x20hh:mma':_0x367682<0x7?_0x18fa('0x1'):'MM-dd-yyyy\x20hh:mma');};}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x5f16=['values','mapViewToDom','markerNameToElements','domConverter','mapper','length','view','from','map','sort','getClientRects','push','domElement'];(function(_0x2eedfc,_0x5f16f9){const _0x2bd48c=function(_0xf6a478){while(--_0xf6a478){_0x2eedfc['push'](_0x2eedfc['shift']());}};_0x2bd48c(++_0x5f16f9);}(_0x5f16,0x129));const _0x2bd4=function(_0x2eedfc,_0x5f16f9){_0x2eedfc=_0x2eedfc-0x0;let _0x2bd48c=_0x5f16[_0x2eedfc];return _0x2bd48c;};import{first as _0x162e06}from'ckeditor5/src/utils';export default function k(_0x2fb260,_0x5b6145){const _0x109c1a=_0x2fb260[_0x2bd4('0x6')][_0x2bd4('0x4')](_0x5b6145['name']);if(!_0x109c1a)return null;const _0x305749=_0x162e06(_0x109c1a[_0x2bd4('0x2')]());return _0x2fb260[_0x2bd4('0x8')][_0x2bd4('0x5')][_0x2bd4('0x3')](_0x305749)||null;}export function getAllMarkersDomElementsSorted(_0x152e5f,_0x3deacc){if(0x0===_0x3deacc['length'])return null;const _0x4d317c=[],_0x245bfa=_0x152e5f['view'][_0x2bd4('0x5')];for(const _0x2cad7f of _0x3deacc){const _0x56d19b=_0x152e5f[_0x2bd4('0x6')][_0x2bd4('0x4')](_0x2cad7f['name']);if(!_0x56d19b)continue;const _0x435952=Array[_0x2bd4('0x9')](_0x56d19b)[_0x2bd4('0xa')](_0x29c895=>_0x245bfa[_0x2bd4('0x3')](_0x29c895))['filter'](_0x3af4fa=>!!_0x3af4fa);_0x4d317c[_0x2bd4('0x0')](..._0x435952);}if(0x0===_0x4d317c[_0x2bd4('0x7')])return null;const _0x14a524=[];for(const _0xa0c6a8 of _0x4d317c){const _0x2c98d8=_0xa0c6a8[_0x2bd4('0xc')]()['item'](0x0);_0x2c98d8&&_0x14a524[_0x2bd4('0x0')]({'x':_0x2c98d8['x'],'y':_0x2c98d8['y'],'domElement':_0xa0c6a8});}return 0x0===_0x14a524['length']?null:(_0x14a524[_0x2bd4('0xb')]((_0x38d32b,_0x49f144)=>_0x38d32b['y']-_0x49f144['y']||_0x38d32b['x']-_0x49f144['x']),_0x14a524[_0x2bd4('0xa')](_0x415327=>_0x415327[_0x2bd4('0x1')]));}
|
package/src/utils/hashobject.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x1433=['number','sign','keys','isArray','object','charCodeAt','string','toString'];(function(_0x244ecb,_0x143340){const _0x366c6c=function(_0x40975d){while(--_0x40975d){_0x244ecb['push'](_0x244ecb['shift']());}};_0x366c6c(++_0x143340);}(_0x1433,0xfc));const _0x366c=function(_0x244ecb,_0x143340){_0x244ecb=_0x244ecb-0x0;let _0x366c6c=_0x1433[_0x244ecb];return _0x366c6c;};export default function b(_0x14c67a){let _0x2ec8cb=0x0,_0x56df33=0x0;for(const _0x18828a of g(_0x14c67a))_0x2ec8cb=(_0x2ec8cb<<0x5)-_0x2ec8cb+_0x18828a,_0x2ec8cb&=_0x2ec8cb,[_0x2ec8cb,_0x56df33]=[_0x56df33,_0x2ec8cb];return O(_0x2ec8cb)+O(_0x56df33);}function*j(_0x1f7341){_0x1f7341?'boolean'==typeof _0x1f7341?yield 0x1:Array[_0x366c('0x7')](_0x1f7341)?yield*function*(_0x4cfbb7){for(const _0x46835b of _0x4cfbb7)yield*j(_0x46835b);}(_0x1f7341):_0x366c('0x0')==typeof _0x1f7341?yield*g(_0x1f7341):_0x366c('0x2')==typeof _0x1f7341?yield*A(_0x1f7341):_0x366c('0x4')==typeof _0x1f7341&&(yield _0x1f7341):yield 0x0;}function*g(_0x36aa17){if(yield M('{'),_0x36aa17){const _0x504f28=Object[_0x366c('0x6')](_0x36aa17)['sort']();for(const _0x24c441 of _0x504f28){yield*A(_0x24c441),yield M(':');const _0x3fe283=_0x36aa17[_0x24c441];yield*j(_0x3fe283);}}yield M('}');}function*A(_0x4114d6){yield M('\x22');for(const _0x1bb95d of _0x4114d6)yield M(_0x1bb95d);yield M('\x22');}function M(_0x328a38){return _0x328a38[_0x366c('0x1')](0x0);}function O(_0x580f22){return(_0x580f22*=Math[_0x366c('0x5')](_0x580f22))[_0x366c('0x3')](0x24);}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x3bbe=['WProofreader','_context','context','rootsAttributes','WordCount','DocumentOutline','get','string','requires','length','concat','Autosave','extraPlugins','plugins','constructor','set','from','removePlugins','builtinPlugins','toolbar','pluginName','name','config','includes','every','has','filter','names','initialData'];(function(_0x5b62ec,_0x3bbedb){const _0x180ebc=function(_0x557e5c){while(--_0x557e5c){_0x5b62ec['push'](_0x5b62ec['shift']());}};_0x180ebc(++_0x3bbedb);}(_0x3bbe,0x1e4));const _0x180e=function(_0x5b62ec,_0x3bbedb){_0x5b62ec=_0x5b62ec-0x0;let _0x180ebc=_0x3bbe[_0x5b62ec];return _0x180ebc;};const w=[_0x180e('0x8'),_0x180e('0xb'),_0x180e('0x1c'),_0x180e('0xc')],W=['WebSocketGateway','RevisionTracker',_0x180e('0x14'),_0x180e('0xd'),_0x180e('0xe'),_0x180e('0x9')];function v(_0x2890c6,_0x44e54b,_0x1dc8df,_0x35d6bd=[]){const _0xdfd7bd=_0x180e('0x10')==typeof _0x2890c6?_0x1dc8df[_0x180e('0xf')](_0x2890c6)['constructor']:_0x2890c6,_0xc3a0f=_0xdfd7bd[_0x180e('0x0')]||_0xdfd7bd[_0x180e('0x1')];if(_0x44e54b[_0x180e('0x5')](_0xc3a0f))return _0x44e54b[_0x180e('0xf')](_0xc3a0f);if(_0x44e54b[_0x180e('0x18')](_0xc3a0f,!0x0),_0xc3a0f&&W['concat'](_0x35d6bd)[_0x180e('0x3')](_0xc3a0f))return _0x44e54b[_0x180e('0x18')](_0xc3a0f,!0x1),!0x1;if(!_0xdfd7bd['requires'])return _0x44e54b[_0x180e('0x18')](_0xc3a0f,!0x0),!0x0;const _0x5dcf77=_0xdfd7bd[_0x180e('0x11')][_0x180e('0x4')](_0xe7b267=>v(_0xe7b267,_0x44e54b,_0x1dc8df,_0x35d6bd));return _0x44e54b[_0x180e('0x18')](_0xc3a0f,_0x5dcf77),_0x5dcf77;}export default function D(_0x7b67e4,_0x220c28){const _0x5e34b0={};for(const _0x37bfdb of _0x7b67e4[_0x180e('0x2')][_0x180e('0x7')]())w[_0x180e('0x3')](_0x37bfdb)||(_0x5e34b0[_0x37bfdb]=_0x7b67e4['config'][_0x180e('0xf')](_0x37bfdb));const _0x39c20c=_0x5e34b0[_0x180e('0x16')]||[],_0x1b9e36=_0x7b67e4[_0x180e('0x17')][_0x180e('0x1b')]||[],_0x3db6da=_0x39c20c[_0x180e('0x12')]?_0x39c20c:_0x1b9e36,_0x5af9b5=_0x5e34b0['extraPlugins']||[];delete _0x5e34b0[_0x180e('0x15')];const _0x41ea7e=_0x5e34b0[_0x180e('0x1a')]||[];delete _0x5e34b0[_0x180e('0x1a')];const _0x3ef84a=_0x7b67e4[_0x180e('0xa')]['config'][_0x180e('0xf')](_0x180e('0x16'))||[],_0x42f94b=_0x3db6da[_0x180e('0x13')](_0x5af9b5)[_0x180e('0x13')](_0x3ef84a)['map'](_0x3dd9e9=>_0x180e('0x10')==typeof _0x3dd9e9?_0x1b9e36['find'](_0x4e7a45=>_0x4e7a45[_0x180e('0x0')]==_0x3dd9e9):_0x3dd9e9)[_0x180e('0x6')](_0x145da2=>!_0x41ea7e[_0x180e('0x3')](_0x145da2)&&!_0x41ea7e['includes'](_0x145da2[_0x180e('0x0')])),_0x302d34=Array[_0x180e('0x19')](new Set(_0x42f94b)),_0xf40f4b=new Map();return _0x5e34b0[_0x180e('0x16')]=_0x302d34['filter'](_0x320402=>v(_0x320402,_0xf40f4b,_0x7b67e4[_0x180e('0x16')],_0x220c28)),_0x5e34b0;}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x1c03=['start','getRange','focus','selection','containsPosition','change:range','includes','document','isEqual','length','push','markers'];(function(_0x2ea1cc,_0x1c0313){const _0x16406c=function(_0x63cf5){while(--_0x63cf5){_0x2ea1cc['push'](_0x2ea1cc['shift']());}};_0x16406c(++_0x1c0313);}(_0x1c03,0x128));const _0x1640=function(_0x2ea1cc,_0x1c0313){_0x2ea1cc=_0x2ea1cc-0x0;let _0x16406c=_0x1c03[_0x2ea1cc];return _0x16406c;};export default function q(_0x443062,_0x686505){const _0x1f2336=[];_0x443062[_0x1640('0xb')][_0x1640('0x7')]['on'](_0x1640('0x9'),()=>{const _0x6d58e1=function(_0x35a922,_0x184f9a){const _0x1f2d1a=[];for(const _0x1accec of _0x35a922[_0x1640('0x3')]){const _0x584da3=_0x1accec[_0x1640('0x5')]();(_0x584da3[_0x1640('0x8')](_0x184f9a)||_0x584da3[_0x1640('0x4')][_0x1640('0x0')](_0x184f9a)||_0x584da3['end'][_0x1640('0x0')](_0x184f9a))&&_0x1f2d1a[_0x1640('0x2')](_0x1accec);}return _0x1f2d1a;}(_0x443062,_0x443062[_0x1640('0xb')][_0x1640('0x7')][_0x1640('0x6')]),_0x5b18a3=[],_0x2b0881=[],_0x4ca40e=[];for(const _0x10cdd of _0x1f2336)_0x6d58e1[_0x1640('0xa')](_0x10cdd)||_0x5b18a3[_0x1640('0x2')](_0x10cdd);for(const _0x106a97 of _0x6d58e1)_0x1f2336[_0x1640('0xa')](_0x106a97)||_0x2b0881[_0x1640('0x2')](_0x106a97),_0x4ca40e['push'](_0x106a97);(_0x5b18a3[_0x1640('0x1')]||_0x2b0881[_0x1640('0x1')])&&_0x686505({'left':_0x5b18a3,'entered':_0x2b0881}),_0x1f2336[_0x1640('0x1')]=0x0,_0x1f2336['push'](..._0x4ca40e);});}
|
package/src/utils/trim-html.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x3239=['...','substring','join','pop','split','replace','startsWith','slice','push','length'];(function(_0x54ba5a,_0x3239cc){const _0x39dd32=function(_0x251761){while(--_0x251761){_0x54ba5a['push'](_0x54ba5a['shift']());}};_0x39dd32(++_0x3239cc);}(_0x3239,0x1c8));const _0x39dd=function(_0x54ba5a,_0x3239cc){_0x54ba5a=_0x54ba5a-0x0;let _0x39dd32=_0x3239[_0x54ba5a];return _0x39dd32;};export default function z(_0x19b590,{limit:_0x47c42a,suffix:_0x563082=_0x39dd('0x4')}){const _0x3fb29b=[];let _0x3c96ab=0x0;const _0x490980=_0x19b590['replace'](/</g,'\x0a<')[_0x39dd('0x9')](/>/g,'>\x0a')[_0x39dd('0x9')](/^\n/g,'')[_0x39dd('0x9')](/\n$/g,'')[_0x39dd('0x8')]('\x0a');for(let _0x260429=0x0;_0x260429<_0x490980['length'];_0x260429++){let _0x473c21=_0x490980[_0x260429];const _0x324947=Z(_0x473c21);if(_0x473c21[_0x39dd('0x0')]('<')){if(_0x3c96ab>=_0x47c42a){const _0x471207=_0x473c21['match'](/[a-zA-Z]+/);if(!_0x471207){_0x490980[_0x260429]='';continue;}const _0x579c59=_0x471207[0x0];_0x473c21[_0x39dd('0x0')]('</')?(_0x3fb29b[_0x39dd('0x3')]&&(_0x473c21=''),_0x3fb29b[_0x39dd('0x7')]()):(_0x3fb29b[_0x39dd('0x2')](_0x579c59),_0x473c21='');}}else{if(_0x3c96ab>=_0x47c42a)_0x473c21='';else{if(_0x3c96ab+_0x324947[_0x39dd('0x3')]>=_0x47c42a){let _0xad8c9f=_0x47c42a-_0x3c96ab;if('\x20'===_0x324947[_0xad8c9f-0x1])_0xad8c9f--;else{const _0x11b774=_0x324947[_0x39dd('0x1')](_0xad8c9f)['indexOf']('\x20');-0x1!==_0x11b774?_0xad8c9f+=_0x11b774:_0xad8c9f=_0x473c21[_0x39dd('0x3')];}_0x473c21=_0x324947[_0x39dd('0x1')](0x0,_0xad8c9f)['join']('')+_0x563082,_0x3c96ab=_0x47c42a;}else _0x3c96ab+=_0x324947[_0x39dd('0x3')];}}_0x490980[_0x260429]=_0x473c21;}return _0x490980[_0x39dd('0x6')]('\x0a')[_0x39dd('0x9')](/\n/g,'');}function Z(_0x49ca3d){const _0x380228=[];for(let _0xcda5a8=0x0;_0xcda5a8<_0x49ca3d[_0x39dd('0x3')];_0xcda5a8++){const _0x546a91=_0x49ca3d[_0x39dd('0x5')](_0xcda5a8)['match'](/^&[a-z0-9#]+;/);if(_0x546a91){const _0x1fdb83=_0x546a91[0x0];_0x380228[_0x39dd('0x2')](_0x1fdb83),_0xcda5a8+=_0x1fdb83[_0x39dd('0x3')]-0x1;}else _0x380228[_0x39dd('0x2')](_0x49ca3d[_0xcda5a8]);}return _0x380228;}
|