@ckeditor/ckeditor5-collaboration-core 0.0.0-nightly-20231226.0 → 0.0.0-nightly-20231228.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-20231228.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-20231228.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 _0x4e4e=['commands','get','plugins','config','setPermissions','noPermissions','comment:write','comment:admin','CommentsRepository','permissions-set-permissions-invalid-channel-id','no-permissions','editors','collaboration.channelId','comment:modify_all','has','find','addCommentThread','enableReadOnlyMode','pluginName','isEnabled','context','Permissions','includes','CommentsOnly'];(function(_0x17df1e,_0x4e4e90){const _0x9c08ac=function(_0x5f0b11){while(--_0x5f0b11){_0x17df1e['push'](_0x17df1e['shift']());}};_0x9c08ac(++_0x4e4e90);}(_0x4e4e,0xc8));const _0x9c08=function(_0x17df1e,_0x4e4e90){_0x17df1e=_0x17df1e-0x0;let _0x9c08ac=_0x4e4e[_0x17df1e];return _0x9c08ac;};import{ContextPlugin as _0x2e1039,Editor as _0x5c66f4}from'ckeditor5/src/core.js';import{CKEditorError as _0x254867}from'ckeditor5/src/utils.js';export default class n extends _0x2e1039{static get[_0x9c08('0xa')](){return _0x9c08('0xd');}[_0x9c08('0x14')](_0x6a03b9,_0x24b73b){let _0x1a32d6;if(_0x24b73b||(_0x24b73b=this['context'][_0x9c08('0x13')][_0x9c08('0x11')](_0x9c08('0x4'))),this['context'][_0x9c08('0x13')]['get'](_0x9c08('0x4'))==_0x24b73b?_0x1a32d6=this[_0x9c08('0xc')]:_0x9c08('0x3')in this[_0x9c08('0xc')]&&this[_0x9c08('0xc')]['editors']&&(_0x1a32d6=this[_0x9c08('0xc')][_0x9c08('0x3')][_0x9c08('0x7')](_0x556ada=>_0x556ada[_0x9c08('0x13')][_0x9c08('0x11')]('collaboration.channelId')==_0x24b73b)),!_0x1a32d6)throw new _0x254867(_0x9c08('0x1'),null);const _0x8306f9=_0x1a32d6[_0x9c08('0x12')],_0x5b1d95=_0x8306f9[_0x9c08('0x6')](_0x9c08('0x0'))?_0x8306f9[_0x9c08('0x11')](_0x9c08('0x0')):void 0x0,_0x1b8b2e=_0x8306f9[_0x9c08('0x6')]('CommentsOnly')&&_0x8306f9[_0x9c08('0x11')](_0x9c08('0xf')),_0x5768c0=_0x6a03b9[_0x9c08('0xe')]('document:write'),_0x2440e9=_0x6a03b9[_0x9c08('0xe')](_0x9c08('0x5')),_0x306f2d=_0x6a03b9[_0x9c08('0xe')](_0x9c08('0x17')),_0x293ddd=_0x6a03b9[_0x9c08('0xe')](_0x9c08('0x16')),_0x324c10=_0x293ddd||_0x306f2d,_0x103f97=_0x324c10||_0x2440e9,_0x25019d=_0x5768c0||_0x324c10;(_0x1b8b2e&&(_0x1b8b2e[_0x9c08('0xb')]=!_0x5768c0&&_0x103f97),_0x1a32d6 instanceof _0x5c66f4)&&(!(_0x5768c0||_0x103f97&&_0x5b1d95)?_0x1a32d6[_0x9c08('0x9')](_0x9c08('0x2')):_0x1a32d6['disableReadOnlyMode']('no-permissions'));if(_0x5b1d95){_0x5b1d95[_0x9c08('0x14')]({'admin':_0x306f2d,'modifyAll':_0x2440e9,'write':_0x293ddd,'resolve':_0x25019d},_0x24b73b);const _0x2e3672=_0x1a32d6 instanceof _0x5c66f4&&_0x1a32d6[_0x9c08('0x10')][_0x9c08('0x11')](_0x9c08('0x8'));_0x2e3672&&(_0x324c10?_0x2e3672['clearForceDisabled']('noPermissions'):_0x2e3672['forceDisabled'](_0x9c08('0x15')));}}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x1e2d=['initials','ck-user__icon','notificationView','name','setTemplate','ck-user__avatar','ck\x20ck-user__name','avatar','extendTemplate','ck-user__notification','ck-user__img','isAnonymous','ck-user','ck\x20ck-user__name\x20ck-user__name--hidden','push','div','content'];(function(_0x1e3516,_0x1e2d62){const _0x90aaa9=function(_0x3deb20){while(--_0x3deb20){_0x1e3516['push'](_0x1e3516['shift']());}};_0x90aaa9(++_0x1e2d62);}(_0x1e2d,0xe2));const _0x90aa=function(_0x1e3516,_0x1e2d62){_0x1e3516=_0x1e3516-0x0;let _0x90aaa9=_0x1e2d[_0x1e3516];return _0x90aaa9;};import{View as _0x574b81,IconView as _0x301cbf}from'ckeditor5/src/ui.js';import _0x3f55d2 from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class E extends _0x574b81{constructor(_0x94fa83,_0xed6f01,_0x4f5f64){super(_0x94fa83),this[_0x90aa('0xf')]=_0xed6f01[_0x90aa('0xf')],this['notificationView']=null;const _0x7395ba=['ck',_0x90aa('0x5')];if(_0xed6f01[_0x90aa('0x6')]&&_0x7395ba[_0x90aa('0x9')]('ck-user__anonymous'),_0xed6f01[_0x90aa('0x2')]&&_0x7395ba[_0x90aa('0x9')](_0x90aa('0x0')),_0x4f5f64){const _0x1af7e3=new _0x301cbf();_0x1af7e3[_0x90aa('0x3')]({'attributes':{'class':[_0x90aa('0xd')]}}),_0x1af7e3[_0x90aa('0xb')]=_0x3f55d2,this[_0x90aa('0xe')]={'tag':'div','attributes':{'class':['ck',_0x90aa('0x4')],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x4f5f64},'children':[_0x1af7e3]};}const _0x16f9eb=[{'tag':_0x90aa('0xa'),'attributes':{'class':_0x7395ba,'style':{'background-image':_0xed6f01[_0x90aa('0x2')]?'url(\x27'+_0xed6f01[_0x90aa('0x2')]+'\x27)':''}}},{'tag':'div','attributes':{'class':_0xed6f01['avatar']?_0x90aa('0x8'):_0x90aa('0x1')},'children':[{'text':_0xed6f01[_0x90aa('0xc')]}]}];this[_0x90aa('0xe')]&&_0x16f9eb[_0x90aa('0x9')](this[_0x90aa('0xe')]),this[_0x90aa('0x10')]({'tag':_0x90aa('0xa'),'attributes':{'class':['ck',_0x90aa('0x7')],'data-user-id':_0xed6f01['id']},'children':_0x16f9eb});}}
|
package/src/users.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x4f3e=['Users','users-add-duplicated-id','licenseKeyTrialLimit:time','avatar','requires','charAt','length','trial-license-key-reached-limit-revisions','_lastColor','decorate','split','_getNextColor','users.colorsCount','anonymous-user','licenseKeyTrialLimit:operations','add','users.anonymousUserId','trial-license-key-reached-limit-changes','licenseKeyTrialLimit:revisions','Anonymous','name','pluginName','ck-user__marker--','_locale','trial-license-key-reached-limit-time','trim','licenseKeyTrial','ck-user__selection--','color','ck-user__bg-color--','getMarkerClass','defineMe','addUser','useAnonymousUser','get','_id','destroy','_addAnonymousUser','getUser','_getInitial','define','locale','users-add-invalid-id','licenseKeyValid','context','getBackgroundColorClass','initials','init','_myId','getOperationAuthor','users','licenseKey','_isAnonymous','users-me-already-defined','includes','config','_licenseKeyCheckInterval'];(function(_0x2405b9,_0x4f3e86){const _0x487dcc=function(_0x32bc5d){while(--_0x32bc5d){_0x2405b9['push'](_0x2405b9['shift']());}};_0x487dcc(++_0x4f3e86);}(_0x4f3e,0xfb));const _0x487d=function(_0x2405b9,_0x4f3e86){_0x2405b9=_0x2405b9-0x0;let _0x487dcc=_0x4f3e[_0x2405b9];return _0x487dcc;};import{ContextPlugin as _0xfda3ee}from'ckeditor5/src/core.js';import{Collection as _0x316d27,CKEditorError as _0x381d4d}from'ckeditor5/src/utils.js';import _0x3a0832 from'./permissions.js';import{getTranslation as _0x69caf7}from'./utils/common-translations.js';import'../theme/usercolors.css';export default class l extends _0xfda3ee{static get[_0x487d('0x37')](){return _0x487d('0x22');}static get[_0x487d('0x26')](){return[_0x3a0832];}constructor(_0x4811ec){super(_0x4811ec),this[_0x487d('0x15')][_0x487d('0x20')]['define'](_0x487d('0x32'),_0x487d('0x2f')),this['context'][_0x487d('0x20')][_0x487d('0x11')](_0x487d('0x2e'),0x8),this['users']=new _0x316d27(),this[_0x487d('0x0')]=_0x4811ec[_0x487d('0x12')],this[_0x487d('0x21')]=null,this[_0x487d('0x2a')]=0x0,this[_0x487d('0x19')]=null,this[_0x487d('0x2b')](_0x487d('0x1a'));}[_0x487d('0x18')](){const _0x18a79b=this[_0x487d('0x15')];this[_0x487d('0x1c')]=_0x18a79b['config'][_0x487d('0xb')](_0x487d('0x1c'));const _0x53c16a=[_0x487d('0x3'),'licenseKeyInvalid',_0x487d('0x14'),'licenseKeyTrialLimit:operations',_0x487d('0x24'),_0x487d('0x34')];this[_0x487d('0x21')]=setInterval(()=>{let _0x179023;for(const _0x3e4471 in _0x18a79b){const _0x56d9c4=_0x18a79b[_0x3e4471];if(_0x53c16a[_0x487d('0x1f')](_0x56d9c4)){delete _0x18a79b[_0x3e4471],_0x179023=_0x56d9c4;break;}}if('licenseKeyInvalid'===_0x179023)throw clearInterval(this[_0x487d('0x21')]),new _0x381d4d('invalid-license-key',null);if(_0x487d('0x3')===_0x179023&&console['info']('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.'),_0x487d('0x30')===_0x179023)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x381d4d(_0x487d('0x33'),null);if(_0x487d('0x24')===_0x179023)throw clearInterval(this[_0x487d('0x21')]),new _0x381d4d(_0x487d('0x1'),null);if('licenseKeyTrialLimit:revisions'===_0x179023)throw clearInterval(this[_0x487d('0x21')]),new _0x381d4d(_0x487d('0x29'),null);_0x487d('0x14')===_0x179023&&clearInterval(this[_0x487d('0x21')]);},0x3e8),this[_0x487d('0xe')]();}get['me'](){return null==this[_0x487d('0x19')]?null:this[_0x487d('0xf')](this[_0x487d('0x19')]);}['addUser']({id:_0x9091b3,name:_0x5da77f,..._0x166462}){if(!_0x9091b3||'string'!=typeof _0x9091b3)throw new _0x381d4d(_0x487d('0x13'));if(this[_0x487d('0x1b')]['has'](_0x9091b3))throw new _0x381d4d(_0x487d('0x23'),null,{'id':_0x9091b3});const _0x3cb047={..._0x166462,'id':_0x9091b3,'name':a(this[_0x487d('0x0')],_0x5da77f),'color':this[_0x487d('0x2d')]()};_0x3cb047['name']=a(this[_0x487d('0x0')],_0x3cb047[_0x487d('0x36')]);const _0x3cc11a=new User(_0x3cb047);return this[_0x487d('0x1b')][_0x487d('0x31')](_0x3cc11a),_0x3cc11a;}[_0x487d('0xf')](_0x3fecf9){return this[_0x487d('0x1b')][_0x487d('0xb')](_0x3fecf9);}[_0x487d('0xa')](){const _0x5cb16c=this[_0x487d('0x15')][_0x487d('0x20')]['get']('users.anonymousUserId');this['_myId']||this[_0x487d('0x8')](_0x5cb16c);}[_0x487d('0x8')](_0x18c733){if(this[_0x487d('0x19')])throw new _0x381d4d(_0x487d('0x1e'),null);if(!this[_0x487d('0xf')](_0x18c733))throw new _0x381d4d('users-me-missing-user',null);this[_0x487d('0x19')]=_0x18c733;}[_0x487d('0x1a')](){return this['me'];}['destroy'](){super[_0x487d('0xd')](),clearInterval(this['_licenseKeyCheckInterval']);}[_0x487d('0x2d')](){const _0x25b310=this[_0x487d('0x15')][_0x487d('0x20')][_0x487d('0xb')](_0x487d('0x2e'));return this['_lastColor']>=_0x25b310&&(this[_0x487d('0x2a')]=0x0),new u(this[_0x487d('0x2a')]++);}[_0x487d('0xe')](){const _0x44c5b1=this[_0x487d('0x15')][_0x487d('0x20')][_0x487d('0xb')](_0x487d('0x32'));this[_0x487d('0x9')]({'id':_0x44c5b1,'name':_0x69caf7(this[_0x487d('0x0')],_0x487d('0x35'))})[_0x487d('0x1d')]=!0x0;}}export class User{constructor(_0xe8cd27){this['id']=_0xe8cd27['id'],this[_0x487d('0x5')]=_0xe8cd27[_0x487d('0x5')],this[_0x487d('0x36')]=_0xe8cd27[_0x487d('0x36')],this['avatar']=_0xe8cd27[_0x487d('0x25')],this['_isAnonymous']=!0x1;}get['isAnonymous'](){return this[_0x487d('0x1d')];}get[_0x487d('0x17')](){const _0x1ee5f3=this[_0x487d('0x36')][_0x487d('0x2c')]('\x20');return 0x1===_0x1ee5f3[_0x487d('0x28')]?this[_0x487d('0x10')](_0x1ee5f3[0x0]):this[_0x487d('0x10')](_0x1ee5f3[0x0])+this['_getInitial'](_0x1ee5f3[_0x1ee5f3[_0x487d('0x28')]-0x1]);}['_getInitial'](_0x4645c2){return _0x4645c2[_0x487d('0x27')](0x0)['toUpperCase']();}}function a(_0x2a6904,_0x4867d4=''){return''==(_0x4867d4=_0x4867d4[_0x487d('0x2')]())?_0x69caf7(_0x2a6904,_0x487d('0x35')):_0x4867d4;}class u{constructor(_0x2b122f){this['_id']=_0x2b122f;}[_0x487d('0x16')](){return _0x487d('0x6')+this[_0x487d('0xc')];}['getSelectionClass'](){return _0x487d('0x4')+this[_0x487d('0xc')];}[_0x487d('0x7')](){return _0x487d('0x38')+this[_0x487d('0xc')];}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
export function getTranslation(
|
23
|
+
export function getTranslation(_0x128948,_0x12e19a){const t=_0x128948['t'];switch(_0x12e19a){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 _0x1541=['cancel','isConfirm','registerChild','message','once','_removeConfirm','cancelConfirm','confirmView','showConfirm','locale','render','set','submit','remove','deregisterChild','element','focus'];(function(_0x185c64,_0x1541b7){var _0x537a62=function(_0x311e75){while(--_0x311e75){_0x185c64['push'](_0x185c64['shift']());}};_0x537a62(++_0x1541b7);}(_0x1541,0xca));var _0x537a=function(_0x185c64,_0x1541b7){_0x185c64=_0x185c64-0x0;var _0x537a62=_0x1541[_0x185c64];return _0x537a62;};import _0x428c9e from'./confirmview.js';export default function m(_0xff375d){return class extends _0xff375d{[_0x537a('0xa')](_0x62d6a9,_0xe1c1b4){return this['confirmView']=new _0x428c9e(this[_0x537a('0xb')]),this[_0x537a('0x9')][_0x537a('0xc')](),this[_0x537a('0x9')][_0x537a('0x5')]=_0x62d6a9,this[_0x537a('0x9')][_0x537a('0x6')](_0x537a('0x2'),()=>{this[_0x537a('0x7')]();}),this[_0x537a('0x9')][_0x537a('0x6')](_0x537a('0xe'),()=>{this[_0x537a('0x7')]();}),_0xe1c1b4['appendChild'](this[_0x537a('0x9')][_0x537a('0x0')]),this[_0x537a('0x4')](this[_0x537a('0x9')]),this['element'][_0x537a('0x1')](),this[_0x537a('0xd')](_0x537a('0x3'),!0x0),new Promise(_0xbf78ae=>this['confirmView']['on'](_0x537a('0xe'),_0xbf78ae));}[_0x537a('0x8')](){this[_0x537a('0x3')]&&this[_0x537a('0x9')]['fire'](_0x537a('0x2'));}[_0x537a('0x7')](){this['element']&&this[_0x537a('0x9')]&&this[_0x537a('0x9')]['element']&&(this[_0x537a('0x0')]['focus'](),this[_0x537a('0x9')][_0x537a('0x0')][_0x537a('0xf')](),this[_0x537a('0x10')](this[_0x537a('0x9')]),this[_0x537a('0x3')]=!0x1,this[_0x537a('0x9')]['destroy'](),this[_0x537a('0x9')]=void 0x0);}};}
|
package/src/utils/confirmview.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x3125=['label','Yes','_createButtonView','setTemplate','bindTemplate','submit','execute','div','ck-thread__remove-confirm-actions','set','icon','cancel','submitView','cancelView','extendTemplate','ck-thread__remove-confirm-inner','ck-thread__remove-confirm-','fire','message'];(function(_0x32daca,_0x3125b0){const _0x41b276=function(_0x2db831){while(--_0x2db831){_0x32daca['push'](_0x32daca['shift']());}};_0x41b276(++_0x3125b0);}(_0x3125,0x139));const _0x41b2=function(_0x32daca,_0x3125b0){_0x32daca=_0x32daca-0x0;let _0x41b276=_0x3125[_0x32daca];return _0x41b276;};import{View as _0x14d99d,ButtonView as _0xa94c73}from'ckeditor5/src/ui.js';import{icons as _0x4c0b42}from'ckeditor5/src/core.js';import{getTranslation as _0x49af0b}from'./common-translations.js';export default class h extends _0x14d99d{constructor(_0x19f9d3){super(_0x19f9d3);const _0x6e2e5e=this[_0x41b2('0xe')];this[_0x41b2('0x3')]=this[_0x41b2('0xc')](_0x19f9d3,_0x49af0b(_0x19f9d3,_0x41b2('0xb')),_0x4c0b42['check'],_0x41b2('0xf')),this['cancelView']=this[_0x41b2('0xc')](_0x19f9d3,_0x49af0b(_0x19f9d3,'No'),_0x4c0b42[_0x41b2('0x2')],_0x41b2('0x2')),this[_0x41b2('0x0')]('message',_0x49af0b(_0x19f9d3,'Are\x20you\x20sure?')),this[_0x41b2('0xd')]({'tag':_0x41b2('0x11'),'attributes':{'class':['ck-thread__remove-confirm']},'children':[{'tag':_0x41b2('0x11'),'attributes':{'class':_0x41b2('0x6')},'children':[{'tag':'p','children':[{'text':_0x6e2e5e['to'](_0x41b2('0x9'))}]},{'tag':_0x41b2('0x11'),'attributes':{'class':_0x41b2('0x12')},'children':[this['submitView'],this[_0x41b2('0x4')]]}]}]});}['_createButtonView'](_0x199bca,_0x5351d4,_0x1bc4ad,_0x314847){const _0x204ba0=new _0xa94c73(_0x199bca);return _0x204ba0[_0x41b2('0xa')]=_0x5351d4,_0x204ba0[_0x41b2('0x1')]=_0x1bc4ad,_0x204ba0[_0x41b2('0x5')]({'attributes':{'class':_0x41b2('0x7')+_0x314847}}),_0x204ba0['on'](_0x41b2('0x10'),()=>this[_0x41b2('0x8')](_0x314847)),_0x204ba0;}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x4e8a=['function','\x27Last\x27\x20EEEE\x20hh:mma','\x27Today\x27\x20hh:mma','dateTimeFormat','string','MM-dd-yyyy\x20hh:mma','invalid-date-time-format'];(function(_0xe9f066,_0x4e8a90){const _0x3f5f9e=function(_0x39275a){while(--_0x39275a){_0xe9f066['push'](_0xe9f066['shift']());}};_0x3f5f9e(++_0x4e8a90);}(_0x4e8a,0xa1));const _0x3f5f=function(_0xe9f066,_0x4e8a90){_0xe9f066=_0xe9f066-0x0;let _0x3f5f9e=_0x4e8a[_0xe9f066];return _0x3f5f9e;};import _0x2b807a from'date-fns/format/index.js';import _0x2cd9a8 from'date-fns/parseISO/index.js';import _0x2bb16e from'date-fns/differenceInCalendarDays/index.js';import{CKEditorError as _0x135dcb}from'ckeditor5/src/utils.js';export default function j(_0x1403ef={}){if(void 0x0!==_0x1403ef[_0x3f5f('0x3')]&&_0x3f5f('0x0')!=typeof _0x1403ef[_0x3f5f('0x3')])throw new _0x135dcb(_0x3f5f('0x6'));return _0x2ed750=>{const _0xc1ddcc=_0x3f5f('0x4')==typeof _0x2ed750?_0x2cd9a8(_0x2ed750):_0x2ed750,_0x4e3650=new Date(),_0x50d5f8=_0x2bb16e(_0x4e3650,_0xc1ddcc);return _0x1403ef[_0x3f5f('0x3')]?_0x1403ef[_0x3f5f('0x3')](_0xc1ddcc):_0x2b807a(_0xc1ddcc,0x0===_0x50d5f8?_0x3f5f('0x2'):0x1===_0x50d5f8?'\x27Yesterday\x27\x20hh:mma':_0x50d5f8<0x7?_0x3f5f('0x1'):_0x3f5f('0x5'));};}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x1ba0=['view','map','markerNameToElements','length','values','push','getClientRects','domConverter','domElement','name','mapper','sort','mapViewToDom'];(function(_0x25dfd0,_0x1ba0ca){const _0x580081=function(_0x3e0127){while(--_0x3e0127){_0x25dfd0['push'](_0x25dfd0['shift']());}};_0x580081(++_0x1ba0ca);}(_0x1ba0,0x103));const _0x5800=function(_0x25dfd0,_0x1ba0ca){_0x25dfd0=_0x25dfd0-0x0;let _0x580081=_0x1ba0[_0x25dfd0];return _0x580081;};import{first as _0x2bae82}from'ckeditor5/src/utils.js';export default function k(_0x2b14f8,_0x1a704f){const _0x5e7bdb=_0x2b14f8[_0x5800('0xb')][_0x5800('0x3')](_0x1a704f['name']);if(!_0x5e7bdb)return null;const _0x2be229=_0x2bae82(_0x5e7bdb[_0x5800('0x5')]());return _0x2b14f8[_0x5800('0x1')]['domConverter']['mapViewToDom'](_0x2be229)||null;}export function getAllMarkersDomElementsSorted(_0x14faf3,_0x130d9c){if(0x0===_0x130d9c[_0x5800('0x4')])return null;const _0x1b7292=[],_0x3d0bbe=_0x14faf3[_0x5800('0x1')][_0x5800('0x8')];for(const _0x4026cf of _0x130d9c){const _0x11f7b3=_0x14faf3[_0x5800('0xb')][_0x5800('0x3')](_0x4026cf[_0x5800('0xa')]);if(!_0x11f7b3)continue;const _0x216bb4=Array['from'](_0x11f7b3)['map'](_0x310407=>_0x3d0bbe[_0x5800('0x0')](_0x310407))['filter'](_0x3da20d=>!!_0x3da20d);_0x1b7292[_0x5800('0x6')](..._0x216bb4);}if(0x0===_0x1b7292['length'])return null;const _0x14595e=[];for(const _0x246b29 of _0x1b7292){const _0x17ef85=_0x246b29[_0x5800('0x7')]()['item'](0x0);_0x17ef85&&_0x14595e['push']({'x':_0x17ef85['x'],'y':_0x17ef85['y'],'domElement':_0x246b29});}return 0x0===_0x14595e[_0x5800('0x4')]?null:(_0x14595e[_0x5800('0xc')]((_0x1a691d,_0x3898ae)=>_0x1a691d['y']-_0x3898ae['y']||_0x1a691d['x']-_0x3898ae['x']),_0x14595e[_0x5800('0x2')](_0x5f4a77=>_0x5f4a77[_0x5800('0x9')]));}
|
package/src/utils/hashobject.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x1989=['sign','isArray','number','string','object','toString','sort','keys','boolean'];(function(_0x457e29,_0x1989f7){const _0x1d0d56=function(_0x58ae19){while(--_0x58ae19){_0x457e29['push'](_0x457e29['shift']());}};_0x1d0d56(++_0x1989f7);}(_0x1989,0x188));const _0x1d0d=function(_0x457e29,_0x1989f7){_0x457e29=_0x457e29-0x0;let _0x1d0d56=_0x1989[_0x457e29];return _0x1d0d56;};export default function b(_0x224281){let _0x92e17f=0x0,_0x287414=0x0;for(const _0x4e2c8f of A(_0x224281))_0x92e17f=(_0x92e17f<<0x5)-_0x92e17f+_0x4e2c8f,_0x92e17f&=_0x92e17f,[_0x92e17f,_0x287414]=[_0x287414,_0x92e17f];return q(_0x92e17f)+q(_0x287414);}function*g(_0x34b02e){_0x34b02e?_0x1d0d('0x3')==typeof _0x34b02e?yield 0x1:Array[_0x1d0d('0x5')](_0x34b02e)?yield*function*(_0x16b7b2){for(const _0x5cc0e5 of _0x16b7b2)yield*g(_0x5cc0e5);}(_0x34b02e):_0x1d0d('0x8')==typeof _0x34b02e?yield*A(_0x34b02e):_0x1d0d('0x7')==typeof _0x34b02e?yield*M(_0x34b02e):_0x1d0d('0x6')==typeof _0x34b02e&&(yield _0x34b02e):yield 0x0;}function*A(_0x2b18cb){if(yield O('{'),_0x2b18cb){const _0x3b2898=Object[_0x1d0d('0x2')](_0x2b18cb)[_0x1d0d('0x1')]();for(const _0x282ae3 of _0x3b2898){yield*M(_0x282ae3),yield O(':');const _0x1ff8aa=_0x2b18cb[_0x282ae3];yield*g(_0x1ff8aa);}}yield O('}');}function*M(_0x8f87fb){yield O('\x22');for(const _0x30f024 of _0x8f87fb)yield O(_0x30f024);yield O('\x22');}function O(_0x2b141a){return _0x2b141a['charCodeAt'](0x0);}function q(_0x51e47b){return(_0x51e47b*=Math[_0x1d0d('0x4')](_0x51e47b))[_0x1d0d('0x0')](0x24);}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x342e=['concat','constructor','WProofreader','set','WebSocketGateway','extraPlugins','toolbar','length','has','DocumentOutline','filter','requires','rootsAttributes','_context','pluginName','config','removePlugins','context','from','plugins','RevisionTracker','names','includes','string','every','get','builtinPlugins'];(function(_0x1bfc5a,_0x342e3a){const _0x24aba2=function(_0x31257d){while(--_0x31257d){_0x1bfc5a['push'](_0x1bfc5a['shift']());}};_0x24aba2(++_0x342e3a);}(_0x342e,0xd9));const _0x24ab=function(_0x1bfc5a,_0x342e3a){_0x1bfc5a=_0x1bfc5a-0x0;let _0x24aba2=_0x342e[_0x1bfc5a];return _0x24aba2;};const w=['initialData',_0x24ab('0x10'),_0x24ab('0x5'),_0x24ab('0xb')],W=[_0x24ab('0x3'),_0x24ab('0x13'),'Autosave','WordCount',_0x24ab('0x8'),_0x24ab('0x1')];function v(_0x3749f6,_0x5b14b1,_0x5d39d7,_0x7f5536=[]){const _0x122929=_0x24ab('0x16')==typeof _0x3749f6?_0x5d39d7['get'](_0x3749f6)['constructor']:_0x3749f6,_0x2943cc=_0x122929[_0x24ab('0xd')]||_0x122929['name'];if(_0x5b14b1[_0x24ab('0x7')](_0x2943cc))return _0x5b14b1['get'](_0x2943cc);if(_0x5b14b1['set'](_0x2943cc,!0x0),_0x2943cc&&W[_0x24ab('0x1a')](_0x7f5536)[_0x24ab('0x15')](_0x2943cc))return _0x5b14b1['set'](_0x2943cc,!0x1),!0x1;if(!_0x122929[_0x24ab('0xa')])return _0x5b14b1['set'](_0x2943cc,!0x0),!0x0;const _0x1bff53=_0x122929[_0x24ab('0xa')][_0x24ab('0x17')](_0x1e9529=>v(_0x1e9529,_0x5b14b1,_0x5d39d7,_0x7f5536));return _0x5b14b1[_0x24ab('0x2')](_0x2943cc,_0x1bff53),_0x1bff53;}export default function D(_0x389395,_0x186fe3){const _0x48b367={};for(const _0x5553b7 of _0x389395['config'][_0x24ab('0x14')]())w[_0x24ab('0x15')](_0x5553b7)||(_0x48b367[_0x5553b7]=_0x389395[_0x24ab('0xe')][_0x24ab('0x18')](_0x5553b7));const _0x1c1e85=_0x48b367['plugins']||[],_0x2d5da1=_0x389395[_0x24ab('0x0')][_0x24ab('0x19')]||[],_0x44267a=_0x1c1e85[_0x24ab('0x6')]?_0x1c1e85:_0x2d5da1,_0x3c9321=_0x48b367[_0x24ab('0x4')]||[];delete _0x48b367[_0x24ab('0x4')];const _0x4f7d0f=_0x48b367[_0x24ab('0xf')]||[];delete _0x48b367[_0x24ab('0xf')];const _0x1daab5=_0x389395[_0x24ab('0xc')][_0x24ab('0xe')][_0x24ab('0x18')]('plugins')||[],_0x4120ba=_0x44267a[_0x24ab('0x1a')](_0x3c9321)['concat'](_0x1daab5)['map'](_0x1ac3b2=>_0x24ab('0x16')==typeof _0x1ac3b2?_0x2d5da1['find'](_0x566953=>_0x566953[_0x24ab('0xd')]==_0x1ac3b2):_0x1ac3b2)[_0x24ab('0x9')](_0x1378c3=>!_0x4f7d0f[_0x24ab('0x15')](_0x1378c3)&&!_0x4f7d0f[_0x24ab('0x15')](_0x1378c3[_0x24ab('0xd')])),_0x19957e=Array[_0x24ab('0x11')](new Set(_0x4120ba)),_0x47fce8=new Map();return _0x48b367[_0x24ab('0x12')]=_0x19957e[_0x24ab('0x9')](_0x3f5bdc=>v(_0x3f5bdc,_0x47fce8,_0x389395[_0x24ab('0x12')],_0x186fe3)),_0x48b367;}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x1e92=['focus','markers','document','includes','push','selection','length','end','start','isEqual'];(function(_0x3e78a2,_0x1e924a){const _0x3dff1a=function(_0x3dbdac){while(--_0x3dbdac){_0x3e78a2['push'](_0x3e78a2['shift']());}};_0x3dff1a(++_0x1e924a);}(_0x1e92,0x16a));const _0x3dff=function(_0x3e78a2,_0x1e924a){_0x3e78a2=_0x3e78a2-0x0;let _0x3dff1a=_0x1e92[_0x3e78a2];return _0x3dff1a;};export default function z(_0x29ff45,_0x170f8d){const _0x34d00b=[];_0x29ff45[_0x3dff('0x0')][_0x3dff('0x3')]['on']('change:range',()=>{const _0x292c0c=function(_0x2a1aa4,_0x40d475){const _0x3f870d=[];for(const _0x19227d of _0x2a1aa4[_0x3dff('0x9')]){const _0x1961ea=_0x19227d['getRange']();(_0x1961ea['containsPosition'](_0x40d475)||_0x1961ea[_0x3dff('0x6')]['isEqual'](_0x40d475)||_0x1961ea[_0x3dff('0x5')][_0x3dff('0x7')](_0x40d475))&&_0x3f870d['push'](_0x19227d);}return _0x3f870d;}(_0x29ff45,_0x29ff45[_0x3dff('0x0')][_0x3dff('0x3')][_0x3dff('0x8')]),_0xb85152=[],_0x140669=[],_0xfc8a84=[];for(const _0x54108a of _0x34d00b)_0x292c0c[_0x3dff('0x1')](_0x54108a)||_0xb85152['push'](_0x54108a);for(const _0x1b3a53 of _0x292c0c)_0x34d00b['includes'](_0x1b3a53)||_0x140669[_0x3dff('0x2')](_0x1b3a53),_0xfc8a84[_0x3dff('0x2')](_0x1b3a53);(_0xb85152[_0x3dff('0x4')]||_0x140669[_0x3dff('0x4')])&&_0x170f8d({'left':_0xb85152,'entered':_0x140669}),_0x34d00b[_0x3dff('0x4')]=0x0,_0x34d00b[_0x3dff('0x2')](..._0xfc8a84);});}
|
package/src/utils/trim-html.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x4442=['...','startsWith','match','length','split','replace','push','join','slice','indexOf','substring'];(function(_0x267cb8,_0x444238){const _0x262120=function(_0x5d1118){while(--_0x5d1118){_0x267cb8['push'](_0x267cb8['shift']());}};_0x262120(++_0x444238);}(_0x4442,0x105));const _0x2621=function(_0x267cb8,_0x444238){_0x267cb8=_0x267cb8-0x0;let _0x262120=_0x4442[_0x267cb8];return _0x262120;};export default function Z(_0x2bebfe,{limit:_0x1df436,suffix:_0x86f349=_0x2621('0x3')}){const _0x4e010d=[];let _0x8d9d=0x0;const _0x5b6103=_0x2bebfe[_0x2621('0x8')](/</g,'\x0a<')[_0x2621('0x8')](/>/g,'>\x0a')['replace'](/^\n/g,'')[_0x2621('0x8')](/\n$/g,'')[_0x2621('0x7')]('\x0a');for(let _0x4b009e=0x0;_0x4b009e<_0x5b6103[_0x2621('0x6')];_0x4b009e++){let _0x498b91=_0x5b6103[_0x4b009e];const _0x367ec0=$(_0x498b91);if(_0x498b91[_0x2621('0x4')]('<')){if(_0x8d9d>=_0x1df436){const _0xd74454=_0x498b91[_0x2621('0x5')](/[a-zA-Z]+/);if(!_0xd74454){_0x5b6103[_0x4b009e]='';continue;}const _0x25532a=_0xd74454[0x0];_0x498b91[_0x2621('0x4')]('</')?(_0x4e010d[_0x2621('0x6')]&&(_0x498b91=''),_0x4e010d['pop']()):(_0x4e010d[_0x2621('0x9')](_0x25532a),_0x498b91='');}}else{if(_0x8d9d>=_0x1df436)_0x498b91='';else{if(_0x8d9d+_0x367ec0['length']>=_0x1df436){let _0x2b56d2=_0x1df436-_0x8d9d;if('\x20'===_0x367ec0[_0x2b56d2-0x1])_0x2b56d2--;else{const _0x5555b2=_0x367ec0[_0x2621('0x0')](_0x2b56d2)[_0x2621('0x1')]('\x20');-0x1!==_0x5555b2?_0x2b56d2+=_0x5555b2:_0x2b56d2=_0x498b91['length'];}_0x498b91=_0x367ec0['slice'](0x0,_0x2b56d2)[_0x2621('0xa')]('')+_0x86f349,_0x8d9d=_0x1df436;}else _0x8d9d+=_0x367ec0[_0x2621('0x6')];}}_0x5b6103[_0x4b009e]=_0x498b91;}return _0x5b6103[_0x2621('0xa')]('\x0a')[_0x2621('0x8')](/\n/g,'');}function $(_0x192970){const _0x2ecd07=[];for(let _0x494e70=0x0;_0x494e70<_0x192970[_0x2621('0x6')];_0x494e70++){const _0x1f3330=_0x192970[_0x2621('0x2')](_0x494e70)['match'](/^&[a-z0-9#]+;/);if(_0x1f3330){const _0x111e3f=_0x1f3330[0x0];_0x2ecd07[_0x2621('0x9')](_0x111e3f),_0x494e70+=_0x111e3f[_0x2621('0x6')]-0x1;}else _0x2ecd07[_0x2621('0x9')](_0x192970[_0x494e70]);}return _0x2ecd07;}
|