@ckeditor/ckeditor5-collaboration-core 0.0.0-nightly-20230818.1 → 0.0.0-nightly-20230820.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/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-20230820.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-20230820.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 _0x3990=['includes','context','CommentsRepository','pluginName','get','isEnabled','comment:admin','find','addCommentThread','clearForceDisabled','Permissions','plugins','document:write','has','setPermissions','permissions-set-permissions-invalid-channel-id','config','comment:modify_all','forceDisabled','collaboration.channelId','noPermissions','comment:write','no-permissions','enableReadOnlyMode','editors'];(function(_0x4b558d,_0x39905c){const _0x1aaead=function(_0x59842d){while(--_0x59842d){_0x4b558d['push'](_0x4b558d['shift']());}};_0x1aaead(++_0x39905c);}(_0x3990,0x1a0));const _0x1aae=function(_0x4b558d,_0x39905c){_0x4b558d=_0x4b558d-0x0;let _0x1aaead=_0x3990[_0x4b558d];return _0x1aaead;};import{ContextPlugin as _0x579535,Editor as _0x109e18}from'ckeditor5/src/core';import{CKEditorError as _0x10665a}from'ckeditor5/src/utils';export default class n extends _0x579535{static get[_0x1aae('0xc')](){return _0x1aae('0x13');}[_0x1aae('0x17')](_0x444cb3,_0x494238){let _0x2eaf44;if(_0x494238||(_0x494238=this[_0x1aae('0xa')][_0x1aae('0x0')][_0x1aae('0xd')]('collaboration.channelId')),this[_0x1aae('0xa')][_0x1aae('0x0')][_0x1aae('0xd')](_0x1aae('0x3'))==_0x494238?_0x2eaf44=this[_0x1aae('0xa')]:_0x1aae('0x8')in this['context']&&this[_0x1aae('0xa')][_0x1aae('0x8')]&&(_0x2eaf44=this[_0x1aae('0xa')]['editors'][_0x1aae('0x10')](_0x5f28a3=>_0x5f28a3[_0x1aae('0x0')][_0x1aae('0xd')](_0x1aae('0x3'))==_0x494238)),!_0x2eaf44)throw new _0x10665a(_0x1aae('0x18'),null);const _0x47bfee=_0x2eaf44[_0x1aae('0x14')],_0x3f2106=_0x47bfee[_0x1aae('0x16')](_0x1aae('0xb'))?_0x47bfee['get']('CommentsRepository'):void 0x0,_0x395c39=_0x47bfee['has']('CommentsOnly')&&_0x47bfee['get']('CommentsOnly'),_0x159d23=_0x444cb3[_0x1aae('0x9')](_0x1aae('0x15')),_0x4e02bf=_0x444cb3[_0x1aae('0x9')](_0x1aae('0x1')),_0xe96447=_0x444cb3['includes'](_0x1aae('0xf')),_0x290db5=_0x444cb3[_0x1aae('0x9')](_0x1aae('0x5')),_0x144c2a=_0x290db5||_0xe96447,_0x17d259=_0x144c2a||_0x4e02bf,_0x5d276a=_0x159d23||_0x144c2a;(_0x395c39&&(_0x395c39[_0x1aae('0xe')]=!_0x159d23&&_0x17d259),_0x2eaf44 instanceof _0x109e18)&&(!(_0x159d23||_0x17d259&&_0x3f2106)?_0x2eaf44[_0x1aae('0x7')](_0x1aae('0x6')):_0x2eaf44['disableReadOnlyMode'](_0x1aae('0x6')));if(_0x3f2106){_0x3f2106['setPermissions']({'admin':_0xe96447,'modifyAll':_0x4e02bf,'write':_0x290db5,'resolve':_0x5d276a},_0x494238);const _0x4eb278=_0x2eaf44 instanceof _0x109e18&&_0x2eaf44['commands']['get'](_0x1aae('0x11'));_0x4eb278&&(_0x144c2a?_0x4eb278[_0x1aae('0x12')](_0x1aae('0x4')):_0x4eb278[_0x1aae('0x2')](_0x1aae('0x4')));}}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x3c0e=['initials','url(\x27','ck\x20ck-user__name\x20ck-user__name--hidden','ck-user__avatar','ck-user','div','notificationView','push','ck\x20ck-user__name','name','extendTemplate','ck-user__icon','ck-user__img','content','avatar','ck-user__anonymous'];(function(_0x102b0b,_0x3c0ea3){const _0x31aa4e=function(_0x483c61){while(--_0x483c61){_0x102b0b['push'](_0x102b0b['shift']());}};_0x31aa4e(++_0x3c0ea3);}(_0x3c0e,0xa7));const _0x31aa=function(_0x102b0b,_0x3c0ea3){_0x102b0b=_0x102b0b-0x0;let _0x31aa4e=_0x3c0e[_0x102b0b];return _0x31aa4e;};import{View as _0x5d2ef9,IconView as _0x2a9b3a}from'ckeditor5/src/ui';import _0x5a412f from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class B extends _0x5d2ef9{constructor(_0x19b4cd,_0x1f6abf,_0x137fd8){super(_0x19b4cd),this[_0x31aa('0x2')]=_0x1f6abf[_0x31aa('0x2')],this['notificationView']=null;const _0x3ea7a1=['ck',_0x31aa('0x5')];if(_0x1f6abf['isAnonymous']&&_0x3ea7a1['push'](_0x31aa('0x8')),_0x1f6abf[_0x31aa('0x7')]&&_0x3ea7a1['push'](_0x31aa('0xc')),_0x137fd8){const _0x5841d3=new _0x2a9b3a();_0x5841d3[_0x31aa('0x3')]({'attributes':{'class':[_0x31aa('0x4')]}}),_0x5841d3[_0x31aa('0x6')]=_0x5a412f,this['notificationView']={'tag':_0x31aa('0xe'),'attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x137fd8},'children':[_0x5841d3]};}const _0x55f796=[{'tag':_0x31aa('0xe'),'attributes':{'class':_0x3ea7a1,'style':{'background-image':_0x1f6abf[_0x31aa('0x7')]?_0x31aa('0xa')+_0x1f6abf[_0x31aa('0x7')]+'\x27)':''}}},{'tag':_0x31aa('0xe'),'attributes':{'class':_0x1f6abf['avatar']?_0x31aa('0xb'):_0x31aa('0x1')},'children':[{'text':_0x1f6abf[_0x31aa('0x9')]}]}];this[_0x31aa('0xf')]&&_0x55f796[_0x31aa('0x0')](this[_0x31aa('0xf')]),this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x31aa('0xd')],'data-user-id':_0x1f6abf['id']},'children':_0x55f796});}}
|
package/src/users.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x24aa=['_lastColor','_isAnonymous','getOperationAuthor','ck-user__bg-color--','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.','users-add-duplicated-id','string','addUser','_id','_getInitial','useAnonymousUser','getUser','pluginName','licenseKeyTrial','getSelectionClass','init','users.anonymousUserId','_addAnonymousUser','getMarkerClass','charAt','licenseKeyTrialLimit:revisions','Users','add','licenseKeyTrialLimit:operations','licenseKey','color','get','length','_myId','decorate','_locale','users-me-already-defined','trial-license-key-reached-limit-revisions','users','split','Anonymous','_getNextColor','trial-license-key-reached-limit-time','avatar','licenseKeyTrialLimit:time','licenseKeyValid','users.colorsCount','define','defineMe','licenseKeyInvalid','invalid-license-key','ck-user__marker--','trim','info','includes','name','has','isAnonymous','_licenseKeyCheckInterval','context','config','destroy','trial-license-key-reached-limit-changes'];(function(_0x1ad1d1,_0x24aacc){const _0x5b5b28=function(_0x334326){while(--_0x334326){_0x1ad1d1['push'](_0x1ad1d1['shift']());}};_0x5b5b28(++_0x24aacc);}(_0x24aa,0xd4));const _0x5b5b=function(_0x1ad1d1,_0x24aacc){_0x1ad1d1=_0x1ad1d1-0x0;let _0x5b5b28=_0x24aa[_0x1ad1d1];return _0x5b5b28;};import{ContextPlugin as _0x121931}from'ckeditor5/src/core';import{Collection as _0x308aa6,CKEditorError as _0x5b4625}from'ckeditor5/src/utils';import _0x1853b0 from'./permissions';import{getTranslation as _0x436392}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x121931{static get[_0x5b5b('0x20')](){return _0x5b5b('0x29');}static get['requires'](){return[_0x1853b0];}constructor(_0x3bf6e1){super(_0x3bf6e1),this[_0x5b5b('0x10')][_0x5b5b('0x11')]['define'](_0x5b5b('0x24'),'anonymous-user'),this[_0x5b5b('0x10')]['config'][_0x5b5b('0x4')](_0x5b5b('0x3'),0x8),this['users']=new _0x308aa6(),this[_0x5b5b('0x32')]=_0x3bf6e1['locale'],this['_licenseKeyCheckInterval']=null,this[_0x5b5b('0x14')]=0x0,this[_0x5b5b('0x30')]=null,this[_0x5b5b('0x31')](_0x5b5b('0x16'));}[_0x5b5b('0x23')](){const _0x46b781=this[_0x5b5b('0x10')];this[_0x5b5b('0x2c')]=_0x46b781[_0x5b5b('0x11')][_0x5b5b('0x2e')]('licenseKey');const _0x512b02=['licenseKeyTrial',_0x5b5b('0x6'),_0x5b5b('0x2'),_0x5b5b('0x2b'),_0x5b5b('0x1'),'licenseKeyTrialLimit:revisions'];this[_0x5b5b('0xf')]=setInterval(()=>{let _0x2e6c88;for(const _0x1275e2 in _0x46b781){const _0x2ab255=_0x46b781[_0x1275e2];if(_0x512b02[_0x5b5b('0xb')](_0x2ab255)){delete _0x46b781[_0x1275e2],_0x2e6c88=_0x2ab255;break;}}if(_0x5b5b('0x6')===_0x2e6c88)throw clearInterval(this[_0x5b5b('0xf')]),new _0x5b4625(_0x5b5b('0x7'),null);if(_0x5b5b('0x21')===_0x2e6c88&&console[_0x5b5b('0xa')](_0x5b5b('0x18')),_0x5b5b('0x2b')===_0x2e6c88)throw clearInterval(this[_0x5b5b('0xf')]),new _0x5b4625(_0x5b5b('0x13'),null);if(_0x5b5b('0x1')===_0x2e6c88)throw clearInterval(this[_0x5b5b('0xf')]),new _0x5b4625(_0x5b5b('0x39'),null);if(_0x5b5b('0x28')===_0x2e6c88)throw clearInterval(this[_0x5b5b('0xf')]),new _0x5b4625(_0x5b5b('0x34'),null);_0x5b5b('0x2')===_0x2e6c88&&clearInterval(this[_0x5b5b('0xf')]);},0x3e8),this['_addAnonymousUser']();}get['me'](){return null==this[_0x5b5b('0x30')]?null:this['getUser'](this['_myId']);}[_0x5b5b('0x1b')]({id:_0x1bb5c5,name:_0x1bed0b,..._0x27a343}){if(!_0x1bb5c5||_0x5b5b('0x1a')!=typeof _0x1bb5c5)throw new _0x5b4625('users-add-invalid-id');if(this[_0x5b5b('0x35')][_0x5b5b('0xd')](_0x1bb5c5))throw new _0x5b4625(_0x5b5b('0x19'),null,{'id':_0x1bb5c5});const _0x46b53d={..._0x27a343,'id':_0x1bb5c5,'name':a(this[_0x5b5b('0x32')],_0x1bed0b),'color':this[_0x5b5b('0x38')]()};_0x46b53d[_0x5b5b('0xc')]=a(this['_locale'],_0x46b53d[_0x5b5b('0xc')]);const _0x259520=new User(_0x46b53d);return this['users'][_0x5b5b('0x2a')](_0x259520),_0x259520;}[_0x5b5b('0x1f')](_0x51d1b7){return this[_0x5b5b('0x35')][_0x5b5b('0x2e')](_0x51d1b7);}[_0x5b5b('0x1e')](){const _0x4df652=this[_0x5b5b('0x10')]['config'][_0x5b5b('0x2e')](_0x5b5b('0x24'));this['_myId']||this['defineMe'](_0x4df652);}[_0x5b5b('0x5')](_0x4fe1ba){if(this[_0x5b5b('0x30')])throw new _0x5b4625(_0x5b5b('0x33'),null);if(!this[_0x5b5b('0x1f')](_0x4fe1ba))throw new _0x5b4625('users-me-missing-user',null);this['_myId']=_0x4fe1ba;}['getOperationAuthor'](){return this['me'];}[_0x5b5b('0x12')](){super[_0x5b5b('0x12')](),clearInterval(this[_0x5b5b('0xf')]);}[_0x5b5b('0x38')](){const _0x3ef154=this['context'][_0x5b5b('0x11')]['get'](_0x5b5b('0x3'));return this[_0x5b5b('0x14')]>=_0x3ef154&&(this[_0x5b5b('0x14')]=0x0),new u(this[_0x5b5b('0x14')]++);}[_0x5b5b('0x25')](){const _0x241dbe=this[_0x5b5b('0x10')][_0x5b5b('0x11')][_0x5b5b('0x2e')](_0x5b5b('0x24'));this['addUser']({'id':_0x241dbe,'name':_0x436392(this[_0x5b5b('0x32')],_0x5b5b('0x37'))})['_isAnonymous']=!0x0;}}export class User{constructor(_0x437e1b){this['id']=_0x437e1b['id'],this[_0x5b5b('0x2d')]=_0x437e1b[_0x5b5b('0x2d')],this[_0x5b5b('0xc')]=_0x437e1b[_0x5b5b('0xc')],this[_0x5b5b('0x0')]=_0x437e1b[_0x5b5b('0x0')],this[_0x5b5b('0x15')]=!0x1;}get[_0x5b5b('0xe')](){return this['_isAnonymous'];}get['initials'](){const _0x361e1d=this[_0x5b5b('0xc')][_0x5b5b('0x36')]('\x20');return 0x1===_0x361e1d[_0x5b5b('0x2f')]?this[_0x5b5b('0x1d')](_0x361e1d[0x0]):this['_getInitial'](_0x361e1d[0x0])+this[_0x5b5b('0x1d')](_0x361e1d[_0x361e1d[_0x5b5b('0x2f')]-0x1]);}[_0x5b5b('0x1d')](_0x5bd307){return _0x5bd307[_0x5b5b('0x27')](0x0)['toUpperCase']();}}function a(_0xa8669e,_0x3a3b6e=''){return''==(_0x3a3b6e=_0x3a3b6e[_0x5b5b('0x9')]())?_0x436392(_0xa8669e,'Anonymous'):_0x3a3b6e;}class u{constructor(_0xd92ef){this[_0x5b5b('0x1c')]=_0xd92ef;}['getBackgroundColorClass'](){return _0x5b5b('0x17')+this[_0x5b5b('0x1c')];}[_0x5b5b('0x22')](){return'ck-user__selection--'+this[_0x5b5b('0x1c')];}[_0x5b5b('0x26')](){return _0x5b5b('0x8')+this[_0x5b5b('0x1c')];}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
export function getTranslation(
|
23
|
+
export function getTranslation(_0x120df4,_0x6a06ec){const t=_0x120df4['t'];switch(_0x6a06ec){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 _0x1f7d=['element','_removeConfirm','showConfirm','cancel','message','confirmView','fire','registerChild','deregisterChild','focus','once','appendChild','locale','destroy','render','submit','isConfirm','set','remove'];(function(_0x536f64,_0x1f7d2a){var _0x30e0bd=function(_0x140c7f){while(--_0x140c7f){_0x536f64['push'](_0x536f64['shift']());}};_0x30e0bd(++_0x1f7d2a);}(_0x1f7d,0x1c2));var _0x30e0=function(_0x536f64,_0x1f7d2a){_0x536f64=_0x536f64-0x0;var _0x30e0bd=_0x1f7d[_0x536f64];return _0x30e0bd;};import _0x91f44c from'./confirmview';export default function m(_0x1b0ae7){return class extends _0x1b0ae7{[_0x30e0('0x8')](_0x170335,_0xc391eb){return this[_0x30e0('0xb')]=new _0x91f44c(this[_0x30e0('0x12')]),this['confirmView'][_0x30e0('0x1')](),this[_0x30e0('0xb')][_0x30e0('0xa')]=_0x170335,this[_0x30e0('0xb')][_0x30e0('0x10')](_0x30e0('0x9'),()=>{this[_0x30e0('0x7')]();}),this[_0x30e0('0xb')][_0x30e0('0x10')](_0x30e0('0x2'),()=>{this[_0x30e0('0x7')]();}),_0xc391eb[_0x30e0('0x11')](this[_0x30e0('0xb')]['element']),this[_0x30e0('0xd')](this[_0x30e0('0xb')]),this[_0x30e0('0x6')][_0x30e0('0xf')](),this[_0x30e0('0x4')](_0x30e0('0x3'),!0x0),new Promise(_0x29a7c0=>this['confirmView']['on'](_0x30e0('0x2'),_0x29a7c0));}['cancelConfirm'](){this[_0x30e0('0x3')]&&this[_0x30e0('0xb')][_0x30e0('0xc')](_0x30e0('0x9'));}['_removeConfirm'](){this[_0x30e0('0x6')]&&this[_0x30e0('0xb')]&&this[_0x30e0('0xb')]['element']&&(this[_0x30e0('0x6')]['focus'](),this[_0x30e0('0xb')]['element'][_0x30e0('0x5')](),this[_0x30e0('0xe')](this[_0x30e0('0xb')]),this['isConfirm']=!0x1,this[_0x30e0('0xb')][_0x30e0('0x0')](),this['confirmView']=void 0x0);}};}
|
package/src/utils/confirmview.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x2454=['cancel','submitView','label','fire','execute','Yes','bindTemplate','ck-thread__remove-confirm-inner','ck-thread__remove-confirm','submit','ck-thread__remove-confirm-actions','cancelView','check','icon','_createButtonView','Are\x20you\x20sure?','div','ck-thread__remove-confirm-'];(function(_0x2bb6de,_0x245450){const _0x378b80=function(_0x541cd1){while(--_0x541cd1){_0x2bb6de['push'](_0x2bb6de['shift']());}};_0x378b80(++_0x245450);}(_0x2454,0x11b));const _0x378b=function(_0x2bb6de,_0x245450){_0x2bb6de=_0x2bb6de-0x0;let _0x378b80=_0x2454[_0x2bb6de];return _0x378b80;};import{View as _0x34d30b,ButtonView as _0x3a1471}from'ckeditor5/src/ui';import{icons as _0x1b64fb}from'ckeditor5/src/core';import{getTranslation as _0x58e413}from'./common-translations';export default class h extends _0x34d30b{constructor(_0x47b535){super(_0x47b535);const _0x401225=this[_0x378b('0xb')];this[_0x378b('0x6')]=this[_0x378b('0x1')](_0x47b535,_0x58e413(_0x47b535,_0x378b('0xa')),_0x1b64fb[_0x378b('0x11')],_0x378b('0xe')),this[_0x378b('0x10')]=this[_0x378b('0x1')](_0x47b535,_0x58e413(_0x47b535,'No'),_0x1b64fb['cancel'],_0x378b('0x5')),this['set']('message',_0x58e413(_0x47b535,_0x378b('0x2'))),this['setTemplate']({'tag':_0x378b('0x3'),'attributes':{'class':[_0x378b('0xd')]},'children':[{'tag':'div','attributes':{'class':_0x378b('0xc')},'children':[{'tag':'p','children':[{'text':_0x401225['to']('message')}]},{'tag':_0x378b('0x3'),'attributes':{'class':_0x378b('0xf')},'children':[this[_0x378b('0x6')],this[_0x378b('0x10')]]}]}]});}[_0x378b('0x1')](_0x23aacf,_0x5b318f,_0x2e3616,_0xcb75e9){const _0x256c2d=new _0x3a1471(_0x23aacf);return _0x256c2d[_0x378b('0x7')]=_0x5b318f,_0x256c2d[_0x378b('0x0')]=_0x2e3616,_0x256c2d['extendTemplate']({'attributes':{'class':_0x378b('0x4')+_0xcb75e9}}),_0x256c2d['on'](_0x378b('0x9'),()=>this[_0x378b('0x8')](_0xcb75e9)),_0x256c2d;}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0xc41f=['\x27Today\x27\x20hh:mma','dateTimeFormat','invalid-date-time-format','MM-dd-yyyy\x20hh:mma','\x27Yesterday\x27\x20hh:mma'];(function(_0x53a39b,_0xc41f02){const _0x2887e3=function(_0x4840fe){while(--_0x4840fe){_0x53a39b['push'](_0x53a39b['shift']());}};_0x2887e3(++_0xc41f02);}(_0xc41f,0x1c3));const _0x2887=function(_0x53a39b,_0xc41f02){_0x53a39b=_0x53a39b-0x0;let _0x2887e3=_0xc41f[_0x53a39b];return _0x2887e3;};import _0x581e41 from'date-fns/format';import _0xd9e08d from'date-fns/parseISO';import _0x261b13 from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x1eb729}from'ckeditor5/src/utils';export default function E(_0x17938e={}){if(void 0x0!==_0x17938e['dateTimeFormat']&&'function'!=typeof _0x17938e[_0x2887('0x0')])throw new _0x1eb729(_0x2887('0x1'));return _0x2cff23=>{const _0x37e43f='string'==typeof _0x2cff23?_0xd9e08d(_0x2cff23):_0x2cff23,_0x5c2e82=new Date(),_0x444ee5=_0x261b13(_0x5c2e82,_0x37e43f);return _0x17938e['dateTimeFormat']?_0x17938e['dateTimeFormat'](_0x37e43f):_0x581e41(_0x37e43f,0x0===_0x444ee5?_0x2887('0x4'):0x1===_0x444ee5?_0x2887('0x3'):_0x444ee5<0x7?'\x27Last\x27\x20EEEE\x20hh:mma':_0x2887('0x2'));};}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x3646=['getClientRects','push','domConverter','name','from','item','length','mapper','domElement','mapViewToDom','filter','markerNameToElements','map','sort'];(function(_0x46ee2f,_0x3646a5){const _0x56c71e=function(_0x20a8e0){while(--_0x20a8e0){_0x46ee2f['push'](_0x46ee2f['shift']());}};_0x56c71e(++_0x3646a5);}(_0x3646,0x18e));const _0x56c7=function(_0x46ee2f,_0x3646a5){_0x46ee2f=_0x46ee2f-0x0;let _0x56c71e=_0x3646[_0x46ee2f];return _0x56c71e;};import{first as _0x51983b}from'ckeditor5/src/utils';export default function k(_0x5f0b8f,_0x4e8833){const _0x2f33f3=_0x5f0b8f[_0x56c7('0x1')]['markerNameToElements'](_0x4e8833[_0x56c7('0xb')]);if(!_0x2f33f3)return null;const _0x2b10d7=_0x51983b(_0x2f33f3['values']());return _0x5f0b8f['view'][_0x56c7('0xa')][_0x56c7('0x3')](_0x2b10d7)||null;}export function getAllMarkersDomElementsSorted(_0xc4e9b9,_0xda7752){if(0x0===_0xda7752[_0x56c7('0x0')])return null;const _0x11152a=[],_0x7a5178=_0xc4e9b9['view']['domConverter'];for(const _0x7060db of _0xda7752){const _0x5212fa=_0xc4e9b9[_0x56c7('0x1')][_0x56c7('0x5')](_0x7060db[_0x56c7('0xb')]);if(!_0x5212fa)continue;const _0x194b91=Array[_0x56c7('0xc')](_0x5212fa)[_0x56c7('0x6')](_0xc9fe15=>_0x7a5178['mapViewToDom'](_0xc9fe15))[_0x56c7('0x4')](_0x15afe3=>!!_0x15afe3);_0x11152a[_0x56c7('0x9')](..._0x194b91);}if(0x0===_0x11152a[_0x56c7('0x0')])return null;const _0x28a726=[];for(const _0xde78f of _0x11152a){const _0x5ea567=_0xde78f[_0x56c7('0x8')]()[_0x56c7('0xd')](0x0);_0x5ea567&&_0x28a726[_0x56c7('0x9')]({'x':_0x5ea567['x'],'y':_0x5ea567['y'],'domElement':_0xde78f});}return 0x0===_0x28a726['length']?null:(_0x28a726[_0x56c7('0x7')]((_0x642e80,_0x3f6467)=>_0x642e80['y']-_0x3f6467['y']||_0x642e80['x']-_0x3f6467['x']),_0x28a726[_0x56c7('0x6')](_0x1f8e82=>_0x1f8e82[_0x56c7('0x2')]));}
|
package/src/utils/hashobject.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x1649=['toString','keys','boolean','sort','string','sign','isArray'];(function(_0x18139f,_0x16493d){const _0x305708=function(_0x2dcc6a){while(--_0x2dcc6a){_0x18139f['push'](_0x18139f['shift']());}};_0x305708(++_0x16493d);}(_0x1649,0xc9));const _0x3057=function(_0x18139f,_0x16493d){_0x18139f=_0x18139f-0x0;let _0x305708=_0x1649[_0x18139f];return _0x305708;};export default function b(_0x1dbabf){let _0x326541=0x0,_0x58cbef=0x0;for(const _0x34d25c of g(_0x1dbabf))_0x326541=(_0x326541<<0x5)-_0x326541+_0x34d25c,_0x326541&=_0x326541,[_0x326541,_0x58cbef]=[_0x58cbef,_0x326541];return O(_0x326541)+O(_0x58cbef);}function*j(_0x4bbb78){_0x4bbb78?_0x3057('0x4')==typeof _0x4bbb78?yield 0x1:Array[_0x3057('0x1')](_0x4bbb78)?yield*function*(_0x1e35d5){for(const _0x114864 of _0x1e35d5)yield*j(_0x114864);}(_0x4bbb78):'object'==typeof _0x4bbb78?yield*g(_0x4bbb78):_0x3057('0x6')==typeof _0x4bbb78?yield*A(_0x4bbb78):'number'==typeof _0x4bbb78&&(yield _0x4bbb78):yield 0x0;}function*g(_0x5819c9){if(yield M('{'),_0x5819c9){const _0x1f228f=Object[_0x3057('0x3')](_0x5819c9)[_0x3057('0x5')]();for(const _0x5d1cf5 of _0x1f228f){yield*A(_0x5d1cf5),yield M(':');const _0x37567e=_0x5819c9[_0x5d1cf5];yield*j(_0x37567e);}}yield M('}');}function*A(_0x45610e){yield M('\x22');for(const _0x2d85bb of _0x45610e)yield M(_0x2d85bb);yield M('\x22');}function M(_0x2fe062){return _0x2fe062['charCodeAt'](0x0);}function O(_0x13779b){return(_0x13779b*=Math[_0x3057('0x0')](_0x13779b))[_0x3057('0x2')](0x24);}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x4019=['from','string','includes','DocumentOutline','length','plugins','initialData','RevisionTracker','names','constructor','config','concat','every','removePlugins','find','builtinPlugins','rootsAttributes','_context','filter','requires','name','toolbar','has','get','set','WordCount','map'];(function(_0x380ddb,_0x40193f){const _0x4df6a9=function(_0xf9c3eb){while(--_0xf9c3eb){_0x380ddb['push'](_0x380ddb['shift']());}};_0x4df6a9(++_0x40193f);}(_0x4019,0x14f));const _0x4df6=function(_0x380ddb,_0x40193f){_0x380ddb=_0x380ddb-0x0;let _0x4df6a9=_0x4019[_0x380ddb];return _0x4df6a9;};const w=[_0x4df6('0x16'),'context',_0x4df6('0xa'),_0x4df6('0x5')],W=['WebSocketGateway',_0x4df6('0x17'),'Autosave',_0x4df6('0xe'),_0x4df6('0x13'),'WProofreader'];function v(_0x270fbe,_0x42ccf4,_0xba65ec,_0x33e22e=[]){const _0x329ecb=_0x4df6('0x11')==typeof _0x270fbe?_0xba65ec[_0x4df6('0xc')](_0x270fbe)['constructor']:_0x270fbe,_0x51cc9a=_0x329ecb['pluginName']||_0x329ecb[_0x4df6('0x9')];if(_0x42ccf4[_0x4df6('0xb')](_0x51cc9a))return _0x42ccf4[_0x4df6('0xc')](_0x51cc9a);if(_0x42ccf4[_0x4df6('0xd')](_0x51cc9a,!0x0),_0x51cc9a&&W[_0x4df6('0x0')](_0x33e22e)['includes'](_0x51cc9a))return _0x42ccf4[_0x4df6('0xd')](_0x51cc9a,!0x1),!0x1;if(!_0x329ecb[_0x4df6('0x8')])return _0x42ccf4[_0x4df6('0xd')](_0x51cc9a,!0x0),!0x0;const _0x6732f5=_0x329ecb['requires'][_0x4df6('0x1')](_0x2220ea=>v(_0x2220ea,_0x42ccf4,_0xba65ec,_0x33e22e));return _0x42ccf4[_0x4df6('0xd')](_0x51cc9a,_0x6732f5),_0x6732f5;}export default function D(_0x19487f,_0x57b6b9){const _0x2e2eb8={};for(const _0x4eda39 of _0x19487f[_0x4df6('0x1a')][_0x4df6('0x18')]())w[_0x4df6('0x12')](_0x4eda39)||(_0x2e2eb8[_0x4eda39]=_0x19487f['config'][_0x4df6('0xc')](_0x4eda39));const _0x1046b4=_0x2e2eb8[_0x4df6('0x15')]||[],_0x1e52f3=_0x19487f[_0x4df6('0x19')][_0x4df6('0x4')]||[],_0x40f7ac=_0x1046b4[_0x4df6('0x14')]?_0x1046b4:_0x1e52f3,_0x1c8f87=_0x2e2eb8['extraPlugins']||[];delete _0x2e2eb8['extraPlugins'];const _0x5160c3=_0x2e2eb8[_0x4df6('0x2')]||[];delete _0x2e2eb8[_0x4df6('0x2')];const _0x11f484=_0x19487f[_0x4df6('0x6')][_0x4df6('0x1a')][_0x4df6('0xc')]('plugins')||[],_0x3f9221=_0x40f7ac[_0x4df6('0x0')](_0x1c8f87)[_0x4df6('0x0')](_0x11f484)[_0x4df6('0xf')](_0x460056=>_0x4df6('0x11')==typeof _0x460056?_0x1e52f3[_0x4df6('0x3')](_0x5bb35e=>_0x5bb35e['pluginName']==_0x460056):_0x460056)[_0x4df6('0x7')](_0x4f8984=>!_0x5160c3[_0x4df6('0x12')](_0x4f8984)),_0x43e560=Array[_0x4df6('0x10')](new Set(_0x3f9221)),_0x24e92c=new Map();return _0x2e2eb8['plugins']=_0x43e560['filter'](_0x19b1e5=>v(_0x19b1e5,_0x24e92c,_0x19487f[_0x4df6('0x15')],_0x57b6b9)),_0x2e2eb8;}
|
package/src/utils/trim-html.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0xb883=['replace','...','join','push','length','slice','match','split','startsWith','substring'];(function(_0x447a97,_0xb883b6){const _0x125809=function(_0x63857d){while(--_0x63857d){_0x447a97['push'](_0x447a97['shift']());}};_0x125809(++_0xb883b6);}(_0xb883,0x183));const _0x1258=function(_0x447a97,_0xb883b6){_0x447a97=_0x447a97-0x0;let _0x125809=_0xb883[_0x447a97];return _0x125809;};export default function z(_0xe544b7,{limit:_0x633643,suffix:_0x75fadf=_0x1258('0x4')}){const _0x22bd5d=[];let _0x26c9b5=0x0;const _0x21b03e=_0xe544b7[_0x1258('0x3')](/</g,'\x0a<')[_0x1258('0x3')](/>/g,'>\x0a')[_0x1258('0x3')](/^\n/g,'')[_0x1258('0x3')](/\n$/g,'')[_0x1258('0x0')]('\x0a');for(let _0x217ae0=0x0;_0x217ae0<_0x21b03e[_0x1258('0x7')];_0x217ae0++){let _0x4aae84=_0x21b03e[_0x217ae0];const _0x5b8d2c=Z(_0x4aae84);if(_0x4aae84[_0x1258('0x1')]('<')){if(_0x26c9b5>=_0x633643){const _0x3d03f0=_0x4aae84[_0x1258('0x9')](/[a-zA-Z]+/);if(!_0x3d03f0){_0x21b03e[_0x217ae0]='';continue;}const _0x4caef0=_0x3d03f0[0x0];_0x4aae84[_0x1258('0x1')]('</')?(_0x22bd5d[_0x1258('0x7')]&&(_0x4aae84=''),_0x22bd5d['pop']()):(_0x22bd5d[_0x1258('0x6')](_0x4caef0),_0x4aae84='');}}else{if(_0x26c9b5>=_0x633643)_0x4aae84='';else{if(_0x26c9b5+_0x5b8d2c[_0x1258('0x7')]>=_0x633643){let _0x1ce5f2=_0x633643-_0x26c9b5;if('\x20'===_0x5b8d2c[_0x1ce5f2-0x1])_0x1ce5f2--;else{const _0x5d0e5a=_0x5b8d2c[_0x1258('0x8')](_0x1ce5f2)['indexOf']('\x20');-0x1!==_0x5d0e5a?_0x1ce5f2+=_0x5d0e5a:_0x1ce5f2=_0x4aae84[_0x1258('0x7')];}_0x4aae84=_0x5b8d2c[_0x1258('0x8')](0x0,_0x1ce5f2)[_0x1258('0x5')]('')+_0x75fadf,_0x26c9b5=_0x633643;}else _0x26c9b5+=_0x5b8d2c[_0x1258('0x7')];}}_0x21b03e[_0x217ae0]=_0x4aae84;}return _0x21b03e[_0x1258('0x5')]('\x0a')[_0x1258('0x3')](/\n/g,'');}function Z(_0x4a479f){const _0x15a7b6=[];for(let _0x1f970b=0x0;_0x1f970b<_0x4a479f[_0x1258('0x7')];_0x1f970b++){const _0x1d7fec=_0x4a479f[_0x1258('0x2')](_0x1f970b)[_0x1258('0x9')](/^&[a-z0-9#]+;/);if(_0x1d7fec){const _0x577622=_0x1d7fec[0x0];_0x15a7b6['push'](_0x577622),_0x1f970b+=_0x577622['length']-0x1;}else _0x15a7b6[_0x1258('0x6')](_0x4a479f[_0x1f970b]);}return _0x15a7b6;}
|