@ckeditor/ckeditor5-collaboration-core 0.0.0-nightly-20240123.0 → 0.0.0-nightly-20240125.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-20240125.0",
|
4
4
|
"description": "Base utilities used by CKEditor 5 collaboration features to support multiple users working together in a rich text editor.",
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
@@ -32,7 +32,7 @@
|
|
32
32
|
"type": "module",
|
33
33
|
"main": "src/index.js",
|
34
34
|
"dependencies": {
|
35
|
-
"ckeditor5": "0.0.0-nightly-
|
35
|
+
"ckeditor5": "0.0.0-nightly-20240125.0",
|
36
36
|
"date-fns": "2.30.0"
|
37
37
|
},
|
38
38
|
"files": [
|
package/src/permissions.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x5e73=['comment:write','includes','config','addCommentThread','no-permissions','editors','pluginName','document:write','enableReadOnlyMode','setPermissions','clearForceDisabled','permissions-set-permissions-invalid-channel-id','collaboration.channelId','get','find','plugins','has','disableReadOnlyMode','context','commands','Permissions','isEnabled','noPermissions','CommentsRepository','CommentsOnly'];(function(_0xe8c983,_0x5e7345){const _0x39b576=function(_0x5c5439){while(--_0x5c5439){_0xe8c983['push'](_0xe8c983['shift']());}};_0x39b576(++_0x5e7345);}(_0x5e73,0xa1));const _0x39b5=function(_0xe8c983,_0x5e7345){_0xe8c983=_0xe8c983-0x0;let _0x39b576=_0x5e73[_0xe8c983];return _0x39b576;};import{ContextPlugin as _0x41dd02,Editor as _0x138796}from'ckeditor5/src/core.js';import{CKEditorError as _0x3a6654}from'ckeditor5/src/utils.js';export default class n extends _0x41dd02{static get[_0x39b5('0x14')](){return _0x39b5('0x9');}['setPermissions'](_0x2fcee7,_0x2b02ff){let _0x3c3fc7;if(_0x2b02ff||(_0x2b02ff=this[_0x39b5('0x7')][_0x39b5('0x10')][_0x39b5('0x2')](_0x39b5('0x1'))),this['context'][_0x39b5('0x10')]['get'](_0x39b5('0x1'))==_0x2b02ff?_0x3c3fc7=this[_0x39b5('0x7')]:'editors'in this[_0x39b5('0x7')]&&this[_0x39b5('0x7')][_0x39b5('0x13')]&&(_0x3c3fc7=this[_0x39b5('0x7')][_0x39b5('0x13')][_0x39b5('0x3')](_0x5815d2=>_0x5815d2['config'][_0x39b5('0x2')](_0x39b5('0x1'))==_0x2b02ff)),!_0x3c3fc7)throw new _0x3a6654(_0x39b5('0x0'),null);const _0x203027=_0x3c3fc7[_0x39b5('0x4')],_0x2e7066=_0x203027[_0x39b5('0x5')]('CommentsRepository')?_0x203027[_0x39b5('0x2')](_0x39b5('0xc')):void 0x0,_0x1d6ad8=_0x203027['has'](_0x39b5('0xd'))&&_0x203027['get'](_0x39b5('0xd')),_0x174d07=_0x2fcee7[_0x39b5('0xf')](_0x39b5('0x15')),_0x1761d5=_0x2fcee7['includes']('comment:modify_all'),_0x57b468=_0x2fcee7[_0x39b5('0xf')]('comment:admin'),_0x154a17=_0x2fcee7[_0x39b5('0xf')](_0x39b5('0xe')),_0x9901ad=_0x154a17||_0x57b468,_0x2684fb=_0x9901ad||_0x1761d5,_0x5603a7=_0x174d07||_0x9901ad;(_0x1d6ad8&&(_0x1d6ad8[_0x39b5('0xa')]=!_0x174d07&&_0x2684fb),_0x3c3fc7 instanceof _0x138796)&&(!(_0x174d07||_0x2684fb&&_0x2e7066)?_0x3c3fc7[_0x39b5('0x16')](_0x39b5('0x12')):_0x3c3fc7[_0x39b5('0x6')]('no-permissions'));if(_0x2e7066){_0x2e7066[_0x39b5('0x17')]({'admin':_0x57b468,'modifyAll':_0x1761d5,'write':_0x154a17,'resolve':_0x5603a7},_0x2b02ff);const _0x39386a=_0x3c3fc7 instanceof _0x138796&&_0x3c3fc7[_0x39b5('0x8')][_0x39b5('0x2')](_0x39b5('0x11'));_0x39386a&&(_0x9901ad?_0x39386a[_0x39b5('0x18')](_0x39b5('0xb')):_0x39386a['forceDisabled'](_0x39b5('0xb')));}}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x54c7=['div','url(\x27','content','ck-user__anonymous','ck-user__img','ck-user__icon','avatar','ck-user','extendTemplate','name','push','isAnonymous','notificationView','initials','ck-user__avatar'];(function(_0x4670ba,_0x54c707){const _0x11e793=function(_0x164650){while(--_0x164650){_0x4670ba['push'](_0x4670ba['shift']());}};_0x11e793(++_0x54c707);}(_0x54c7,0x18c));const _0x11e7=function(_0x4670ba,_0x54c707){_0x4670ba=_0x4670ba-0x0;let _0x11e793=_0x54c7[_0x4670ba];return _0x11e793;};import{View as _0x3cfd0a,IconView as _0xe9f2b7}from'ckeditor5/src/ui.js';import _0x4e1be9 from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class E extends _0x3cfd0a{constructor(_0x58bf5f,_0x1935ae,_0x357d52){super(_0x58bf5f),this[_0x11e7('0x3')]=_0x1935ae[_0x11e7('0x3')],this[_0x11e7('0x6')]=null;const _0x43bb52=['ck',_0x11e7('0xd')];if(_0x1935ae[_0x11e7('0x5')]&&_0x43bb52[_0x11e7('0x4')](_0x11e7('0xc')),_0x1935ae[_0x11e7('0x0')]&&_0x43bb52[_0x11e7('0x4')](_0x11e7('0x8')),_0x357d52){const _0x4b7a60=new _0xe9f2b7();_0x4b7a60[_0x11e7('0x2')]({'attributes':{'class':[_0x11e7('0xe')]}}),_0x4b7a60[_0x11e7('0xb')]=_0x4e1be9,this['notificationView']={'tag':_0x11e7('0x9'),'attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x357d52},'children':[_0x4b7a60]};}const _0x49f30a=[{'tag':'div','attributes':{'class':_0x43bb52,'style':{'background-image':_0x1935ae[_0x11e7('0x0')]?_0x11e7('0xa')+_0x1935ae['avatar']+'\x27)':''}}},{'tag':_0x11e7('0x9'),'attributes':{'class':_0x1935ae[_0x11e7('0x0')]?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name'},'children':[{'text':_0x1935ae[_0x11e7('0x7')]}]}];this[_0x11e7('0x6')]&&_0x49f30a[_0x11e7('0x4')](this[_0x11e7('0x6')]),this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x11e7('0x1')],'data-user-id':_0x1935ae['id']},'children':_0x49f30a});}}
|
package/src/users.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x4b28=['has','isAnonymous','licenseKeyValid','define','getBackgroundColorClass','length','charAt','invalid-license-key','context','users-me-already-defined','initials','_id','_locale','add','getMarkerClass','trim','getOperationAuthor','locale','addUser','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.','getSelectionClass','_lastColor','_addAnonymousUser','info','users','avatar','Anonymous','trial-license-key-reached-limit-time','pluginName','ck-user__bg-color--','_getNextColor','requires','split','config','licenseKeyTrialLimit:operations','ck-user__selection--','users.colorsCount','licenseKeyTrial','users-add-invalid-id','licenseKeyTrialLimit:revisions','_licenseKeyCheckInterval','users-add-duplicated-id','get','destroy','users-me-missing-user','decorate','string','_isAnonymous','anonymous-user','toUpperCase','_getInitial','color','licenseKeyInvalid','licenseKey','licenseKeyTrialLimit:time','defineMe','getUser','Users','_myId','name'];(function(_0x3427af,_0x4b28e2){const _0x275cb8=function(_0x2e571b){while(--_0x2e571b){_0x3427af['push'](_0x3427af['shift']());}};_0x275cb8(++_0x4b28e2);}(_0x4b28,0x13f));const _0x275c=function(_0x3427af,_0x4b28e2){_0x3427af=_0x3427af-0x0;let _0x275cb8=_0x4b28[_0x3427af];return _0x275cb8;};import{ContextPlugin as _0x11af31}from'ckeditor5/src/core.js';import{Collection as _0x496134,CKEditorError as _0x18071b}from'ckeditor5/src/utils.js';import _0x4dafcc from'./permissions.js';import{getTranslation as _0x160e0e}from'./utils/common-translations.js';import'../theme/usercolors.css';export default class l extends _0x11af31{static get[_0x275c('0x9')](){return _0x275c('0x26');}static get[_0x275c('0xc')](){return[_0x4dafcc];}constructor(_0x2e30dd){super(_0x2e30dd),this[_0x275c('0x31')][_0x275c('0xe')]['define']('users.anonymousUserId',_0x275c('0x1d')),this['context'][_0x275c('0xe')][_0x275c('0x2c')](_0x275c('0x11'),0x8),this[_0x275c('0x5')]=new _0x496134(),this['_locale']=_0x2e30dd[_0x275c('0x3a')],this[_0x275c('0x15')]=null,this[_0x275c('0x2')]=0x0,this['_myId']=null,this[_0x275c('0x1a')](_0x275c('0x39'));}['init'](){const _0x3fb67e=this['context'];this['licenseKey']=_0x3fb67e['config'][_0x275c('0x17')](_0x275c('0x22'));const _0x56a4dd=[_0x275c('0x12'),_0x275c('0x21'),_0x275c('0x2b'),'licenseKeyTrialLimit:operations',_0x275c('0x23'),_0x275c('0x14')];this[_0x275c('0x15')]=setInterval(()=>{let _0x54b921;for(const _0x5e8002 in _0x3fb67e){const _0x37d24e=_0x3fb67e[_0x5e8002];if(_0x56a4dd['includes'](_0x37d24e)){delete _0x3fb67e[_0x5e8002],_0x54b921=_0x37d24e;break;}}if(_0x275c('0x21')===_0x54b921)throw clearInterval(this[_0x275c('0x15')]),new _0x18071b(_0x275c('0x30'),null);if(_0x275c('0x12')===_0x54b921&&console[_0x275c('0x4')](_0x275c('0x0')),_0x275c('0xf')===_0x54b921)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x18071b('trial-license-key-reached-limit-changes',null);if(_0x275c('0x23')===_0x54b921)throw clearInterval(this[_0x275c('0x15')]),new _0x18071b(_0x275c('0x8'),null);if(_0x275c('0x14')===_0x54b921)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x18071b('trial-license-key-reached-limit-revisions',null);_0x275c('0x2b')===_0x54b921&&clearInterval(this[_0x275c('0x15')]);},0x3e8),this[_0x275c('0x3')]();}get['me'](){return null==this[_0x275c('0x27')]?null:this['getUser'](this[_0x275c('0x27')]);}[_0x275c('0x3b')]({id:_0x3f9bee,name:_0x2dcba4,..._0x44e94e}){if(!_0x3f9bee||_0x275c('0x1b')!=typeof _0x3f9bee)throw new _0x18071b(_0x275c('0x13'));if(this[_0x275c('0x5')][_0x275c('0x29')](_0x3f9bee))throw new _0x18071b(_0x275c('0x16'),null,{'id':_0x3f9bee});const _0x485fde={..._0x44e94e,'id':_0x3f9bee,'name':a(this[_0x275c('0x35')],_0x2dcba4),'color':this['_getNextColor']()};_0x485fde[_0x275c('0x28')]=a(this[_0x275c('0x35')],_0x485fde[_0x275c('0x28')]);const _0x443a09=new User(_0x485fde);return this[_0x275c('0x5')][_0x275c('0x36')](_0x443a09),_0x443a09;}[_0x275c('0x25')](_0x2c3dd5){return this['users'][_0x275c('0x17')](_0x2c3dd5);}['useAnonymousUser'](){const _0x2044a5=this[_0x275c('0x31')]['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x2044a5);}[_0x275c('0x24')](_0x295569){if(this['_myId'])throw new _0x18071b(_0x275c('0x32'),null);if(!this[_0x275c('0x25')](_0x295569))throw new _0x18071b(_0x275c('0x19'),null);this[_0x275c('0x27')]=_0x295569;}[_0x275c('0x39')](){return this['me'];}[_0x275c('0x18')](){super[_0x275c('0x18')](),clearInterval(this[_0x275c('0x15')]);}[_0x275c('0xb')](){const _0x525966=this[_0x275c('0x31')]['config'][_0x275c('0x17')](_0x275c('0x11'));return this[_0x275c('0x2')]>=_0x525966&&(this[_0x275c('0x2')]=0x0),new u(this[_0x275c('0x2')]++);}[_0x275c('0x3')](){const _0x1d975b=this[_0x275c('0x31')]['config']['get']('users.anonymousUserId');this[_0x275c('0x3b')]({'id':_0x1d975b,'name':_0x160e0e(this[_0x275c('0x35')],_0x275c('0x7'))})[_0x275c('0x1c')]=!0x0;}}export class User{constructor(_0x1fc0c5){this['id']=_0x1fc0c5['id'],this[_0x275c('0x20')]=_0x1fc0c5[_0x275c('0x20')],this[_0x275c('0x28')]=_0x1fc0c5[_0x275c('0x28')],this[_0x275c('0x6')]=_0x1fc0c5[_0x275c('0x6')],this[_0x275c('0x1c')]=!0x1;}get[_0x275c('0x2a')](){return this[_0x275c('0x1c')];}get[_0x275c('0x33')](){const _0x248b0a=this[_0x275c('0x28')][_0x275c('0xd')]('\x20');return 0x1===_0x248b0a[_0x275c('0x2e')]?this['_getInitial'](_0x248b0a[0x0]):this[_0x275c('0x1f')](_0x248b0a[0x0])+this[_0x275c('0x1f')](_0x248b0a[_0x248b0a[_0x275c('0x2e')]-0x1]);}[_0x275c('0x1f')](_0x2ec04a){return _0x2ec04a[_0x275c('0x2f')](0x0)[_0x275c('0x1e')]();}}function a(_0x258117,_0x513690=''){return''==(_0x513690=_0x513690[_0x275c('0x38')]())?_0x160e0e(_0x258117,_0x275c('0x7')):_0x513690;}class u{constructor(_0x5a1a5e){this['_id']=_0x5a1a5e;}[_0x275c('0x2d')](){return _0x275c('0xa')+this[_0x275c('0x34')];}[_0x275c('0x1')](){return _0x275c('0x10')+this[_0x275c('0x34')];}[_0x275c('0x37')](){return'ck-user__marker--'+this['_id'];}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
export function getTranslation(
|
23
|
+
export function getTranslation(_0x428826,_0x3e2932){const t=_0x428826['t'];switch(_0x3e2932){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 _0x5a43=['_removeConfirm','appendChild','focus','isConfirm','render','destroy','message','once','cancelConfirm','cancel','deregisterChild','submit','fire','showConfirm','element','confirmView','set'];(function(_0x55500,_0x5a4334){var _0x3d8067=function(_0x4db019){while(--_0x4db019){_0x55500['push'](_0x55500['shift']());}};_0x3d8067(++_0x5a4334);}(_0x5a43,0x65));var _0x3d80=function(_0x55500,_0x5a4334){_0x55500=_0x55500-0x0;var _0x3d8067=_0x5a43[_0x55500];return _0x3d8067;};import _0x77ea7d from'./confirmview.js';export default function m(_0x328af3){return class extends _0x328af3{[_0x3d80('0xe')](_0x193129,_0x541012){return this[_0x3d80('0x10')]=new _0x77ea7d(this['locale']),this['confirmView'][_0x3d80('0x5')](),this['confirmView'][_0x3d80('0x7')]=_0x193129,this[_0x3d80('0x10')][_0x3d80('0x8')](_0x3d80('0xa'),()=>{this[_0x3d80('0x1')]();}),this[_0x3d80('0x10')][_0x3d80('0x8')](_0x3d80('0xc'),()=>{this['_removeConfirm']();}),_0x541012[_0x3d80('0x2')](this[_0x3d80('0x10')][_0x3d80('0xf')]),this['registerChild'](this['confirmView']),this[_0x3d80('0xf')][_0x3d80('0x3')](),this[_0x3d80('0x0')](_0x3d80('0x4'),!0x0),new Promise(_0x43aec5=>this['confirmView']['on']('submit',_0x43aec5));}[_0x3d80('0x9')](){this[_0x3d80('0x4')]&&this[_0x3d80('0x10')][_0x3d80('0xd')](_0x3d80('0xa'));}[_0x3d80('0x1')](){this[_0x3d80('0xf')]&&this[_0x3d80('0x10')]&&this['confirmView'][_0x3d80('0xf')]&&(this['element'][_0x3d80('0x3')](),this[_0x3d80('0x10')][_0x3d80('0xf')]['remove'](),this[_0x3d80('0xb')](this['confirmView']),this['isConfirm']=!0x1,this['confirmView'][_0x3d80('0x6')](),this[_0x3d80('0x10')]=void 0x0);}};}
|
package/src/utils/confirmview.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x3181=['cancelView','extendTemplate','div','execute','label','ck-thread__remove-confirm-inner','fire','icon','cancel','bindTemplate','submitView','Yes','_createButtonView','set','submit','ck-thread__remove-confirm','check'];(function(_0x45b415,_0x318197){const _0x39382f=function(_0xf38740){while(--_0xf38740){_0x45b415['push'](_0x45b415['shift']());}};_0x39382f(++_0x318197);}(_0x3181,0x189));const _0x3938=function(_0x45b415,_0x318197){_0x45b415=_0x45b415-0x0;let _0x39382f=_0x3181[_0x45b415];return _0x39382f;};import{View as _0x19625c,ButtonView as _0x42bfe0}from'ckeditor5/src/ui.js';import{icons as _0x5e8993}from'ckeditor5/src/core.js';import{getTranslation as _0x1e3baa}from'./common-translations.js';export default class h extends _0x19625c{constructor(_0x42ff9d){super(_0x42ff9d);const _0x3f082c=this[_0x3938('0x7')];this[_0x3938('0x8')]=this[_0x3938('0xa')](_0x42ff9d,_0x1e3baa(_0x42ff9d,_0x3938('0x9')),_0x5e8993[_0x3938('0xe')],_0x3938('0xc')),this[_0x3938('0xf')]=this['_createButtonView'](_0x42ff9d,_0x1e3baa(_0x42ff9d,'No'),_0x5e8993[_0x3938('0x6')],_0x3938('0x6')),this[_0x3938('0xb')]('message',_0x1e3baa(_0x42ff9d,'Are\x20you\x20sure?')),this['setTemplate']({'tag':_0x3938('0x0'),'attributes':{'class':[_0x3938('0xd')]},'children':[{'tag':'div','attributes':{'class':_0x3938('0x3')},'children':[{'tag':'p','children':[{'text':_0x3f082c['to']('message')}]},{'tag':_0x3938('0x0'),'attributes':{'class':'ck-thread__remove-confirm-actions'},'children':[this[_0x3938('0x8')],this[_0x3938('0xf')]]}]}]});}[_0x3938('0xa')](_0x11da52,_0x3d85c5,_0x1790da,_0x524e16){const _0x44c322=new _0x42bfe0(_0x11da52);return _0x44c322[_0x3938('0x2')]=_0x3d85c5,_0x44c322[_0x3938('0x5')]=_0x1790da,_0x44c322[_0x3938('0x10')]({'attributes':{'class':'ck-thread__remove-confirm-'+_0x524e16}}),_0x44c322['on'](_0x3938('0x1'),()=>this[_0x3938('0x4')](_0x524e16)),_0x44c322;}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x496c=['dateTimeFormat','invalid-date-time-format','\x27Last\x27\x20EEEE\x20hh:mma','MM-dd-yyyy\x20hh:mma','function','string','\x27Today\x27\x20hh:mma'];(function(_0x900e1a,_0x496c58){const _0x8362b5=function(_0x2f302a){while(--_0x2f302a){_0x900e1a['push'](_0x900e1a['shift']());}};_0x8362b5(++_0x496c58);}(_0x496c,0x89));const _0x8362=function(_0x900e1a,_0x496c58){_0x900e1a=_0x900e1a-0x0;let _0x8362b5=_0x496c[_0x900e1a];return _0x8362b5;};import _0xe6002d from'date-fns/format/index.js';import _0x2e5a24 from'date-fns/parseISO/index.js';import _0x43c399 from'date-fns/differenceInCalendarDays/index.js';import{CKEditorError as _0x4c128e}from'ckeditor5/src/utils.js';export default function j(_0x57468a={}){if(void 0x0!==_0x57468a[_0x8362('0x3')]&&_0x8362('0x0')!=typeof _0x57468a[_0x8362('0x3')])throw new _0x4c128e(_0x8362('0x4'));return _0x6ddd3f=>{const _0x3c0b39=_0x8362('0x1')==typeof _0x6ddd3f?_0x2e5a24(_0x6ddd3f):_0x6ddd3f,_0xd11d87=new Date(),_0x20dfcd=_0x43c399(_0xd11d87,_0x3c0b39);return _0x57468a[_0x8362('0x3')]?_0x57468a[_0x8362('0x3')](_0x3c0b39):_0xe6002d(_0x3c0b39,0x0===_0x20dfcd?_0x8362('0x2'):0x1===_0x20dfcd?'\x27Yesterday\x27\x20hh:mma':_0x20dfcd<0x7?_0x8362('0x5'):_0x8362('0x6'));};}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x1018=['values','mapViewToDom','markerNameToElements','push','domConverter','from','map','mapper','name','domElement','length','getClientRects','view'];(function(_0x3d219a,_0x10184f){const _0x35ccd1=function(_0x3b967d){while(--_0x3b967d){_0x3d219a['push'](_0x3d219a['shift']());}};_0x35ccd1(++_0x10184f);}(_0x1018,0x165));const _0x35cc=function(_0x3d219a,_0x10184f){_0x3d219a=_0x3d219a-0x0;let _0x35ccd1=_0x1018[_0x3d219a];return _0x35ccd1;};import{first as _0x4e8c8d}from'ckeditor5/src/utils.js';export default function k(_0x5197c4,_0x4e0629){const _0x230803=_0x5197c4[_0x35cc('0x1')][_0x35cc('0x9')](_0x4e0629[_0x35cc('0x2')]);if(!_0x230803)return null;const _0x2bd3e3=_0x4e8c8d(_0x230803[_0x35cc('0x7')]());return _0x5197c4[_0x35cc('0x6')][_0x35cc('0xb')][_0x35cc('0x8')](_0x2bd3e3)||null;}export function getAllMarkersDomElementsSorted(_0x2baff2,_0x49500a){if(0x0===_0x49500a['length'])return null;const _0x21e7ce=[],_0x272d03=_0x2baff2[_0x35cc('0x6')][_0x35cc('0xb')];for(const _0xbb31b4 of _0x49500a){const _0x200d3d=_0x2baff2['mapper']['markerNameToElements'](_0xbb31b4[_0x35cc('0x2')]);if(!_0x200d3d)continue;const _0x20909b=Array[_0x35cc('0xc')](_0x200d3d)[_0x35cc('0x0')](_0x52c6c5=>_0x272d03[_0x35cc('0x8')](_0x52c6c5))['filter'](_0x1c986d=>!!_0x1c986d);_0x21e7ce['push'](..._0x20909b);}if(0x0===_0x21e7ce[_0x35cc('0x4')])return null;const _0x49b794=[];for(const _0x1d236c of _0x21e7ce){const _0xee3b5a=_0x1d236c[_0x35cc('0x5')]()['item'](0x0);_0xee3b5a&&_0x49b794[_0x35cc('0xa')]({'x':_0xee3b5a['x'],'y':_0xee3b5a['y'],'domElement':_0x1d236c});}return 0x0===_0x49b794[_0x35cc('0x4')]?null:(_0x49b794['sort']((_0x10a49c,_0x231520)=>_0x10a49c['y']-_0x231520['y']||_0x10a49c['x']-_0x231520['x']),_0x49b794['map'](_0xc94ee3=>_0xc94ee3[_0x35cc('0x3')]));}
|
package/src/utils/hashobject.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0xee7d=['string','sort','object','charCodeAt','sign','keys','toString','isArray','number'];(function(_0x4dbb39,_0xee7dfe){const _0xd36696=function(_0x3a0f6c){while(--_0x3a0f6c){_0x4dbb39['push'](_0x4dbb39['shift']());}};_0xd36696(++_0xee7dfe);}(_0xee7d,0x1aa));const _0xd366=function(_0x4dbb39,_0xee7dfe){_0x4dbb39=_0x4dbb39-0x0;let _0xd36696=_0xee7d[_0x4dbb39];return _0xd36696;};export default function b(_0x575f8a){let _0x371d17=0x0,_0x32731=0x0;for(const _0x6859a7 of A(_0x575f8a))_0x371d17=(_0x371d17<<0x5)-_0x371d17+_0x6859a7,_0x371d17&=_0x371d17,[_0x371d17,_0x32731]=[_0x32731,_0x371d17];return q(_0x371d17)+q(_0x32731);}function*g(_0x142119){null==_0x142119||null==_0x142119?yield 0x12b9b0a1:0x0===_0x142119||!0x1===_0x142119?yield 0x0:0x1===_0x142119||0x1==_0x142119?yield 0x1:Array[_0xd366('0x4')](_0x142119)?yield*function*(_0x200143){for(const _0x47728f of _0x200143)yield*g(_0x47728f);}(_0x142119):_0xd366('0x8')==typeof _0x142119?yield*A(_0x142119):_0xd366('0x6')==typeof _0x142119?yield*M(_0x142119):_0xd366('0x5')==typeof _0x142119&&(yield _0x142119);}function*A(_0x5df190){if(yield O('{'),_0x5df190){const _0x385363=Object[_0xd366('0x2')](_0x5df190)[_0xd366('0x7')]();for(const _0x47e5f1 of _0x385363){yield*M(_0x47e5f1),yield O(':');const _0x30010a=_0x5df190[_0x47e5f1];yield*g(_0x30010a);}}yield O('}');}function*M(_0x569658){yield O('\x22');for(const _0x368279 of _0x569658)yield O(_0x368279);yield O('\x22');}function O(_0x47fd22){return _0x47fd22[_0xd366('0x0')](0x0);}function q(_0x5f0b26){return(_0x5f0b26*=Math[_0xd366('0x1')](_0x5f0b26))[_0xd366('0x3')](0x24);}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x153b=['names','_context','config','includes','pluginName','plugins','length','initialData','WebSocketGateway','find','name','extraPlugins','removePlugins','requires','string','every','constructor','WordCount','filter','Autosave','get','from','map','set','has','builtinPlugins','concat','WProofreader'];(function(_0x49010d,_0x153b27){const _0xb367c8=function(_0x246c20){while(--_0x246c20){_0x49010d['push'](_0x49010d['shift']());}};_0xb367c8(++_0x153b27);}(_0x153b,0x196));const _0xb367=function(_0x49010d,_0x153b27){_0x49010d=_0x49010d-0x0;let _0xb367c8=_0x153b[_0x49010d];return _0xb367c8;};const w=[_0xb367('0x15'),'context','toolbar','rootsAttributes'],W=[_0xb367('0x16'),'RevisionTracker',_0xb367('0x5'),_0xb367('0x3'),'DocumentOutline',_0xb367('0xd')];function v(_0x37885e,_0x4cea98,_0x245fd9,_0x5ee42f=[]){const _0x2ba0ad=_0xb367('0x0')==typeof _0x37885e?_0x245fd9[_0xb367('0x6')](_0x37885e)[_0xb367('0x2')]:_0x37885e,_0xb94fb8=_0x2ba0ad[_0xb367('0x12')]||_0x2ba0ad[_0xb367('0x18')];if(_0x4cea98[_0xb367('0xa')](_0xb94fb8))return _0x4cea98[_0xb367('0x6')](_0xb94fb8);if(_0x4cea98[_0xb367('0x9')](_0xb94fb8,!0x0),_0xb94fb8&&W[_0xb367('0xc')](_0x5ee42f)['includes'](_0xb94fb8))return _0x4cea98[_0xb367('0x9')](_0xb94fb8,!0x1),!0x1;if(!_0x2ba0ad[_0xb367('0x1b')])return _0x4cea98[_0xb367('0x9')](_0xb94fb8,!0x0),!0x0;const _0x51f71e=_0x2ba0ad[_0xb367('0x1b')][_0xb367('0x1')](_0x373e32=>v(_0x373e32,_0x4cea98,_0x245fd9,_0x5ee42f));return _0x4cea98[_0xb367('0x9')](_0xb94fb8,_0x51f71e),_0x51f71e;}export default function D(_0x3edd4b,_0x33b0bf){const _0x2be90a={};for(const _0x5e7436 of _0x3edd4b[_0xb367('0x10')][_0xb367('0xe')]())w[_0xb367('0x11')](_0x5e7436)||(_0x2be90a[_0x5e7436]=_0x3edd4b[_0xb367('0x10')][_0xb367('0x6')](_0x5e7436));const _0xaf78f5=_0x2be90a[_0xb367('0x13')]||[],_0x114085=_0x3edd4b[_0xb367('0x2')][_0xb367('0xb')]||[],_0x2a426e=_0xaf78f5[_0xb367('0x14')]?_0xaf78f5:_0x114085,_0x2d0c0a=_0x2be90a[_0xb367('0x19')]||[];delete _0x2be90a[_0xb367('0x19')];const _0x459182=_0x2be90a['removePlugins']||[];delete _0x2be90a[_0xb367('0x1a')];const _0x53f764=_0x3edd4b[_0xb367('0xf')]['config'][_0xb367('0x6')](_0xb367('0x13'))||[],_0x23b08c=_0x2a426e[_0xb367('0xc')](_0x2d0c0a)[_0xb367('0xc')](_0x53f764)[_0xb367('0x8')](_0x3af4eb=>_0xb367('0x0')==typeof _0x3af4eb?_0x114085[_0xb367('0x17')](_0x31afd0=>_0x31afd0[_0xb367('0x12')]==_0x3af4eb):_0x3af4eb)[_0xb367('0x4')](_0x2ba5c8=>!_0x459182[_0xb367('0x11')](_0x2ba5c8)&&!_0x459182[_0xb367('0x11')](_0x2ba5c8['pluginName'])),_0x4b7ef0=Array[_0xb367('0x7')](new Set(_0x23b08c)),_0x3056b6=new Map();return _0x2be90a['plugins']=_0x4b7ef0[_0xb367('0x4')](_0xa0b911=>v(_0xa0b911,_0x3056b6,_0x3edd4b['plugins'],_0x33b0bf)),_0x2be90a;}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x3127=['end','push','containsPosition','selection','isEqual','length','markers','document','includes','focus','getRange','change:range'];(function(_0x2b29d9,_0x3127dc){const _0x17e1ac=function(_0x1f2c3b){while(--_0x1f2c3b){_0x2b29d9['push'](_0x2b29d9['shift']());}};_0x17e1ac(++_0x3127dc);}(_0x3127,0x119));const _0x17e1=function(_0x2b29d9,_0x3127dc){_0x2b29d9=_0x2b29d9-0x0;let _0x17e1ac=_0x3127[_0x2b29d9];return _0x17e1ac;};export default function z(_0x563cbd,_0xd81b0a){const _0x545442=[];_0x563cbd[_0x17e1('0x2')][_0x17e1('0xa')]['on'](_0x17e1('0x6'),()=>{const _0x398a54=function(_0x28f1a3,_0x1b17e0){const _0x58605e=[];for(const _0x4c5e45 of _0x28f1a3[_0x17e1('0x1')]){const _0x623565=_0x4c5e45[_0x17e1('0x5')]();(_0x623565[_0x17e1('0x9')](_0x1b17e0)||_0x623565['start'][_0x17e1('0xb')](_0x1b17e0)||_0x623565[_0x17e1('0x7')]['isEqual'](_0x1b17e0))&&_0x58605e[_0x17e1('0x8')](_0x4c5e45);}return _0x58605e;}(_0x563cbd,_0x563cbd['document'][_0x17e1('0xa')][_0x17e1('0x4')]),_0x37ce0f=[],_0x23007f=[],_0xb8e0fa=[];for(const _0x90abd1 of _0x545442)_0x398a54[_0x17e1('0x3')](_0x90abd1)||_0x37ce0f[_0x17e1('0x8')](_0x90abd1);for(const _0x1c052f of _0x398a54)_0x545442['includes'](_0x1c052f)||_0x23007f[_0x17e1('0x8')](_0x1c052f),_0xb8e0fa['push'](_0x1c052f);(_0x37ce0f[_0x17e1('0x0')]||_0x23007f['length'])&&_0xd81b0a({'left':_0x37ce0f,'entered':_0x23007f}),_0x545442[_0x17e1('0x0')]=0x0,_0x545442[_0x17e1('0x8')](..._0xb8e0fa);});}
|
package/src/utils/trim-html.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x4781=['pop','match','length','...','startsWith','join','push','split','replace','indexOf','slice'];(function(_0x488a8f,_0x478193){const _0x5cfecb=function(_0x20d4f6){while(--_0x20d4f6){_0x488a8f['push'](_0x488a8f['shift']());}};_0x5cfecb(++_0x478193);}(_0x4781,0x77));const _0x5cfe=function(_0x488a8f,_0x478193){_0x488a8f=_0x488a8f-0x0;let _0x5cfecb=_0x4781[_0x488a8f];return _0x5cfecb;};export default function Z(_0x4a0a9c,{limit:_0x5721a9,suffix:_0x5c5bcd=_0x5cfe('0x5')}){const _0x1448c0=[];let _0x3c92b0=0x0;const _0x11081c=_0x4a0a9c[_0x5cfe('0xa')](/</g,'\x0a<')[_0x5cfe('0xa')](/>/g,'>\x0a')[_0x5cfe('0xa')](/^\n/g,'')[_0x5cfe('0xa')](/\n$/g,'')[_0x5cfe('0x9')]('\x0a');for(let _0x3100db=0x0;_0x3100db<_0x11081c[_0x5cfe('0x4')];_0x3100db++){let _0x1a8d17=_0x11081c[_0x3100db];const _0x2e9c9f=$(_0x1a8d17);if(_0x1a8d17[_0x5cfe('0x6')]('<')){if(_0x3c92b0>=_0x5721a9){const _0x1d4448=_0x1a8d17['match'](/[a-zA-Z]+/);if(!_0x1d4448){_0x11081c[_0x3100db]='';continue;}const _0x34ecab=_0x1d4448[0x0];_0x1a8d17[_0x5cfe('0x6')]('</')?(_0x1448c0['length']&&(_0x1a8d17=''),_0x1448c0[_0x5cfe('0x2')]()):(_0x1448c0[_0x5cfe('0x8')](_0x34ecab),_0x1a8d17='');}}else{if(_0x3c92b0>=_0x5721a9)_0x1a8d17='';else{if(_0x3c92b0+_0x2e9c9f['length']>=_0x5721a9){let _0x9fd4ad=_0x5721a9-_0x3c92b0;if('\x20'===_0x2e9c9f[_0x9fd4ad-0x1])_0x9fd4ad--;else{const _0x1cdfd5=_0x2e9c9f[_0x5cfe('0x1')](_0x9fd4ad)[_0x5cfe('0x0')]('\x20');-0x1!==_0x1cdfd5?_0x9fd4ad+=_0x1cdfd5:_0x9fd4ad=_0x1a8d17[_0x5cfe('0x4')];}_0x1a8d17=_0x2e9c9f[_0x5cfe('0x1')](0x0,_0x9fd4ad)[_0x5cfe('0x7')]('')+_0x5c5bcd,_0x3c92b0=_0x5721a9;}else _0x3c92b0+=_0x2e9c9f[_0x5cfe('0x4')];}}_0x11081c[_0x3100db]=_0x1a8d17;}return _0x11081c['join']('\x0a')[_0x5cfe('0xa')](/\n/g,'');}function $(_0xa870d3){const _0x2e3b73=[];for(let _0x488d96=0x0;_0x488d96<_0xa870d3[_0x5cfe('0x4')];_0x488d96++){const _0x4c8fb3=_0xa870d3['substring'](_0x488d96)[_0x5cfe('0x3')](/^&[a-z0-9#]+;/);if(_0x4c8fb3){const _0xaf3ae2=_0x4c8fb3[0x0];_0x2e3b73[_0x5cfe('0x8')](_0xaf3ae2),_0x488d96+=_0xaf3ae2[_0x5cfe('0x4')]-0x1;}else _0x2e3b73[_0x5cfe('0x8')](_0xa870d3[_0x488d96]);}return _0x2e3b73;}
|