@ckeditor/ckeditor5-collaboration-core 0.0.0-nightly-20240202.0 → 0.0.0-nightly-20240204.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-20240204.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-20240204.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 _0x5f29=['pluginName','document:write','collaboration.channelId','forceDisabled','isEnabled','plugins','comment:admin','CommentsRepository','context','noPermissions','CommentsOnly','clearForceDisabled','no-permissions','comment:modify_all','find','commands','setPermissions','config','addCommentThread','Permissions','get','editors','has','includes'];(function(_0xfce307,_0x5f296d){const _0x1f5fb5=function(_0x34dc04){while(--_0x34dc04){_0xfce307['push'](_0xfce307['shift']());}};_0x1f5fb5(++_0x5f296d);}(_0x5f29,0xa6));const _0x1f5f=function(_0xfce307,_0x5f296d){_0xfce307=_0xfce307-0x0;let _0x1f5fb5=_0x5f29[_0xfce307];return _0x1f5fb5;};import{ContextPlugin as _0x1159ca,Editor as _0x1851d0}from'ckeditor5/src/core.js';import{CKEditorError as _0x3fe168}from'ckeditor5/src/utils.js';export default class n extends _0x1159ca{static get[_0x1f5f('0x2')](){return _0x1f5f('0x15');}[_0x1f5f('0x12')](_0xca3165,_0x46bb53){let _0x47d219;if(_0x46bb53||(_0x46bb53=this[_0x1f5f('0xa')][_0x1f5f('0x13')][_0x1f5f('0x16')](_0x1f5f('0x4'))),this[_0x1f5f('0xa')][_0x1f5f('0x13')]['get']('collaboration.channelId')==_0x46bb53?_0x47d219=this[_0x1f5f('0xa')]:_0x1f5f('0x17')in this[_0x1f5f('0xa')]&&this[_0x1f5f('0xa')][_0x1f5f('0x17')]&&(_0x47d219=this[_0x1f5f('0xa')]['editors'][_0x1f5f('0x10')](_0x291b08=>_0x291b08[_0x1f5f('0x13')][_0x1f5f('0x16')](_0x1f5f('0x4'))==_0x46bb53)),!_0x47d219)throw new _0x3fe168('permissions-set-permissions-invalid-channel-id',null);const _0x5d5013=_0x47d219[_0x1f5f('0x7')],_0x45135d=_0x5d5013[_0x1f5f('0x0')](_0x1f5f('0x9'))?_0x5d5013[_0x1f5f('0x16')](_0x1f5f('0x9')):void 0x0,_0x480d50=_0x5d5013[_0x1f5f('0x0')](_0x1f5f('0xc'))&&_0x5d5013[_0x1f5f('0x16')](_0x1f5f('0xc')),_0x5d1182=_0xca3165['includes'](_0x1f5f('0x3')),_0xde000c=_0xca3165[_0x1f5f('0x1')](_0x1f5f('0xf')),_0x14ffee=_0xca3165[_0x1f5f('0x1')](_0x1f5f('0x8')),_0x3051c1=_0xca3165[_0x1f5f('0x1')]('comment:write'),_0x4bd84e=_0x3051c1||_0x14ffee,_0x1e3ae2=_0x4bd84e||_0xde000c,_0x2d2044=_0x5d1182||_0x4bd84e;(_0x480d50&&(_0x480d50[_0x1f5f('0x6')]=!_0x5d1182&&_0x1e3ae2),_0x47d219 instanceof _0x1851d0)&&(!(_0x5d1182||_0x1e3ae2&&_0x45135d)?_0x47d219['enableReadOnlyMode'](_0x1f5f('0xe')):_0x47d219['disableReadOnlyMode'](_0x1f5f('0xe')));if(_0x45135d){_0x45135d[_0x1f5f('0x12')]({'admin':_0x14ffee,'modifyAll':_0xde000c,'write':_0x3051c1,'resolve':_0x2d2044},_0x46bb53);const _0x1ad161=_0x47d219 instanceof _0x1851d0&&_0x47d219[_0x1f5f('0x11')][_0x1f5f('0x16')](_0x1f5f('0x14'));_0x1ad161&&(_0x4bd84e?_0x1ad161[_0x1f5f('0xd')](_0x1f5f('0xb')):_0x1ad161[_0x1f5f('0x5')]('noPermissions'));}}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x69d9=['ck-user__anonymous','content','url(\x27','name','ck-user__notification','ck-user__img','ck\x20ck-user__name','setTemplate','initials','isMe','ck-user','push','ck-user_me','notificationView','div','ck\x20ck-user__name\x20ck-user__name--hidden','isAnonymous','avatar'];(function(_0xc59e81,_0x69d95f){const _0x2a9413=function(_0x1be803){while(--_0x1be803){_0xc59e81['push'](_0xc59e81['shift']());}};_0x2a9413(++_0x69d95f);}(_0x69d9,0x97));const _0x2a94=function(_0xc59e81,_0x69d95f){_0xc59e81=_0xc59e81-0x0;let _0x2a9413=_0x69d9[_0xc59e81];return _0x2a9413;};import{View as _0x134e60,IconView as _0x4e0187}from'ckeditor5/src/ui.js';import _0x45ee04 from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class E extends _0x134e60{constructor(_0x5d0bd7,_0x2bb7d0,_0x1a8005){super(_0x5d0bd7),this[_0x2a94('0xe')]=_0x2bb7d0[_0x2a94('0xe')],this[_0x2a94('0x6')]=null;const _0x4792a0=['ck',_0x2a94('0x3')],_0x125bbd=['ck',_0x2a94('0x10')];if(_0x2bb7d0[_0x2a94('0x9')]&&_0x125bbd['push'](_0x2a94('0xb')),!_0x2bb7d0['isAnonymous']&&_0x2bb7d0[_0x2a94('0x2')]&&_0x4792a0[_0x2a94('0x4')](_0x2a94('0x5')),_0x2bb7d0[_0x2a94('0xa')]&&_0x125bbd[_0x2a94('0x4')]('ck-user__avatar'),_0x1a8005){const _0xc976c9=new _0x4e0187();_0xc976c9['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0xc976c9[_0x2a94('0xc')]=_0x45ee04,this[_0x2a94('0x6')]={'tag':_0x2a94('0x7'),'attributes':{'class':['ck',_0x2a94('0xf')],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x1a8005},'children':[_0xc976c9]};}const _0x15a89a=[{'tag':'div','attributes':{'class':_0x125bbd,'style':{'background-image':_0x2bb7d0[_0x2a94('0xa')]?_0x2a94('0xd')+_0x2bb7d0['avatar']+'\x27)':''}}},{'tag':_0x2a94('0x7'),'attributes':{'class':_0x2bb7d0[_0x2a94('0xa')]?_0x2a94('0x8'):_0x2a94('0x11')},'children':[{'text':_0x2bb7d0[_0x2a94('0x1')]}]}];this[_0x2a94('0x6')]&&_0x15a89a[_0x2a94('0x4')](this[_0x2a94('0x6')]),this[_0x2a94('0x0')]({'tag':'div','attributes':{'class':_0x4792a0,'data-user-id':_0x2bb7d0['id']},'children':_0x15a89a});}}
|
package/src/users.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x17b0=['_locale','trial-license-key-reached-limit-changes','users-me-already-defined','getMarkerClass','_isAnonymous','users','licenseKeyTrialLimit:revisions','users-add-duplicated-id','getOperationAuthor','Anonymous','defineMe','getUser','charAt','config','context','isMe','_id','users-me-missing-user','get','_addAnonymousUser','licenseKeyTrialLimit:operations','users-add-invalid-id','split','invalid-license-key','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.','avatar','getSelectionClass','ck-user__bg-color--','licenseKeyTrial','licenseKeyTrialLimit:time','_isMe','info','licenseKeyInvalid','_getNextColor','length','requires','pluginName','_licenseKeyCheckInterval','getBackgroundColorClass','_getInitial','color','users.colorsCount','ck-user__selection--','init','_myId','define','users.anonymousUserId','_lastColor','ck-user__marker--','has','licenseKey','trial-license-key-reached-limit-time','trial-license-key-reached-limit-revisions','decorate','toUpperCase','destroy','string','isAnonymous','addUser','trim','name'];(function(_0x593c09,_0x17b0e0){const _0x804b8=function(_0x3044eb){while(--_0x3044eb){_0x593c09['push'](_0x593c09['shift']());}};_0x804b8(++_0x17b0e0);}(_0x17b0,0x1db));const _0x804b=function(_0x593c09,_0x17b0e0){_0x593c09=_0x593c09-0x0;let _0x804b8=_0x17b0[_0x593c09];return _0x804b8;};import{ContextPlugin as _0x8b0dd4}from'ckeditor5/src/core.js';import{Collection as _0xc50e70,CKEditorError as _0x10e519}from'ckeditor5/src/utils.js';import _0x2ae27c from'./permissions.js';import{getTranslation as _0x3d5879}from'./utils/common-translations.js';import'../theme/usercolors.css';export default class l extends _0x8b0dd4{static get[_0x804b('0x31')](){return'Users';}static get[_0x804b('0x30')](){return[_0x2ae27c];}constructor(_0x152d8e){super(_0x152d8e),this[_0x804b('0x1b')][_0x804b('0x1a')][_0x804b('0x3a')](_0x804b('0x3b'),'anonymous-user'),this['context']['config'][_0x804b('0x3a')](_0x804b('0x36'),0x8),this[_0x804b('0x12')]=new _0xc50e70(),this[_0x804b('0xd')]=_0x152d8e['locale'],this['_licenseKeyCheckInterval']=null,this[_0x804b('0x3c')]=0x0,this[_0x804b('0x39')]=null,this[_0x804b('0x5')](_0x804b('0x15'));}[_0x804b('0x38')](){const _0x2ae2cc=this[_0x804b('0x1b')];this[_0x804b('0x2')]=_0x2ae2cc['config'][_0x804b('0x1f')](_0x804b('0x2'));const _0x11e686=[_0x804b('0x29'),'licenseKeyInvalid','licenseKeyValid','licenseKeyTrialLimit:operations',_0x804b('0x2a'),_0x804b('0x13')];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3e2b8f;for(const _0x33137e in _0x2ae2cc){const _0x2c56b1=_0x2ae2cc[_0x33137e];if(_0x11e686['includes'](_0x2c56b1)){delete _0x2ae2cc[_0x33137e],_0x3e2b8f=_0x2c56b1;break;}}if(_0x804b('0x2d')===_0x3e2b8f)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x10e519(_0x804b('0x24'),null);if(_0x804b('0x29')===_0x3e2b8f&&console[_0x804b('0x2c')](_0x804b('0x25')),_0x804b('0x21')===_0x3e2b8f)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x10e519(_0x804b('0xe'),null);if(_0x804b('0x2a')===_0x3e2b8f)throw clearInterval(this[_0x804b('0x32')]),new _0x10e519(_0x804b('0x3'),null);if(_0x804b('0x13')===_0x3e2b8f)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x10e519(_0x804b('0x4'),null);'licenseKeyValid'===_0x3e2b8f&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8),this[_0x804b('0x20')]();}get['me'](){return null==this[_0x804b('0x39')]?null:this[_0x804b('0x18')](this[_0x804b('0x39')]);}[_0x804b('0xa')]({id:_0x838729,name:_0x235918,..._0x217e29}){if(!_0x838729||_0x804b('0x8')!=typeof _0x838729)throw new _0x10e519(_0x804b('0x22'));if(this[_0x804b('0x12')][_0x804b('0x1')](_0x838729))throw new _0x10e519(_0x804b('0x14'),null,{'id':_0x838729});const _0x46a9c4={..._0x217e29,'id':_0x838729,'name':a(this[_0x804b('0xd')],_0x235918),'color':this[_0x804b('0x2e')]()};_0x46a9c4['name']=a(this[_0x804b('0xd')],_0x46a9c4[_0x804b('0xc')]);const _0x492d32=new User(_0x46a9c4);return this['users']['add'](_0x492d32),_0x492d32;}[_0x804b('0x18')](_0x41343c){return this['users'][_0x804b('0x1f')](_0x41343c);}['useAnonymousUser'](){const _0x1926ba=this[_0x804b('0x1b')][_0x804b('0x1a')][_0x804b('0x1f')]('users.anonymousUserId');this['_myId']||this['defineMe'](_0x1926ba);}[_0x804b('0x17')](_0x375f41){if(this[_0x804b('0x39')])throw new _0x10e519(_0x804b('0xf'),null);const _0x55566b=this['getUser'](_0x375f41);if(!_0x55566b)throw new _0x10e519(_0x804b('0x1e'),null);this[_0x804b('0x39')]=_0x375f41,_0x55566b['_isMe']=!0x0;}[_0x804b('0x15')](){return this['me'];}['destroy'](){super[_0x804b('0x7')](),clearInterval(this[_0x804b('0x32')]);}[_0x804b('0x2e')](){const _0x215827=this[_0x804b('0x1b')][_0x804b('0x1a')]['get'](_0x804b('0x36'));return this['_lastColor']>=_0x215827&&(this[_0x804b('0x3c')]=0x0),new u(this['_lastColor']++);}[_0x804b('0x20')](){const _0x2b1d5f=this[_0x804b('0x1b')]['config']['get'](_0x804b('0x3b'));this[_0x804b('0xa')]({'id':_0x2b1d5f,'name':_0x3d5879(this['_locale'],_0x804b('0x16'))})[_0x804b('0x11')]=!0x0;}}export class User{constructor(_0x524614){this['id']=_0x524614['id'],this[_0x804b('0x35')]=_0x524614['color'],this['name']=_0x524614[_0x804b('0xc')],this[_0x804b('0x26')]=_0x524614[_0x804b('0x26')],this[_0x804b('0x11')]=!0x1,this[_0x804b('0x2b')]=!0x1;}get[_0x804b('0x9')](){return this[_0x804b('0x11')];}get[_0x804b('0x1c')](){return this[_0x804b('0x2b')];}get['initials'](){const _0x182c3e=this[_0x804b('0xc')][_0x804b('0x23')]('\x20');return 0x1===_0x182c3e[_0x804b('0x2f')]?this[_0x804b('0x34')](_0x182c3e[0x0]):this[_0x804b('0x34')](_0x182c3e[0x0])+this[_0x804b('0x34')](_0x182c3e[_0x182c3e[_0x804b('0x2f')]-0x1]);}[_0x804b('0x34')](_0x57f3a8){return _0x57f3a8[_0x804b('0x19')](0x0)[_0x804b('0x6')]();}}function a(_0x4af23f,_0x24f7ab=''){return''==(_0x24f7ab=_0x24f7ab[_0x804b('0xb')]())?_0x3d5879(_0x4af23f,_0x804b('0x16')):_0x24f7ab;}class u{constructor(_0x2558c0){this['_id']=_0x2558c0;}[_0x804b('0x33')](){return _0x804b('0x28')+this[_0x804b('0x1d')];}[_0x804b('0x27')](){return _0x804b('0x37')+this[_0x804b('0x1d')];}[_0x804b('0x10')](){return _0x804b('0x0')+this[_0x804b('0x1d')];}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
export function getTranslation(
|
23
|
+
export function getTranslation(_0x3c893b,_0x5568f4){const t=_0x3c893b['t'];switch(_0x5568f4){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 _0x56dc=['fire','submit','registerChild','cancelConfirm','cancel','focus','message','element','confirmView','remove','isConfirm','deregisterChild','locale','_removeConfirm','destroy','appendChild'];(function(_0xde4b2d,_0x56dcea){var _0x529fee=function(_0x51026b){while(--_0x51026b){_0xde4b2d['push'](_0xde4b2d['shift']());}};_0x529fee(++_0x56dcea);}(_0x56dc,0x9e));var _0x529f=function(_0xde4b2d,_0x56dcea){_0xde4b2d=_0xde4b2d-0x0;var _0x529fee=_0x56dc[_0xde4b2d];return _0x529fee;};import _0x518a55 from'./confirmview.js';export default function m(_0x3cb457){return class extends _0x3cb457{['showConfirm'](_0x3a7dd3,_0x583098){return this[_0x529f('0xa')]=new _0x518a55(this[_0x529f('0xe')]),this['confirmView']['render'](),this['confirmView'][_0x529f('0x8')]=_0x3a7dd3,this['confirmView']['once'](_0x529f('0x6'),()=>{this[_0x529f('0xf')]();}),this[_0x529f('0xa')]['once'](_0x529f('0x3'),()=>{this['_removeConfirm']();}),_0x583098[_0x529f('0x1')](this[_0x529f('0xa')][_0x529f('0x9')]),this[_0x529f('0x4')](this['confirmView']),this[_0x529f('0x9')]['focus'](),this['set']('isConfirm',!0x0),new Promise(_0x1c216a=>this['confirmView']['on']('submit',_0x1c216a));}[_0x529f('0x5')](){this[_0x529f('0xc')]&&this['confirmView'][_0x529f('0x2')](_0x529f('0x6'));}[_0x529f('0xf')](){this[_0x529f('0x9')]&&this[_0x529f('0xa')]&&this[_0x529f('0xa')][_0x529f('0x9')]&&(this[_0x529f('0x9')][_0x529f('0x7')](),this[_0x529f('0xa')][_0x529f('0x9')][_0x529f('0xb')](),this[_0x529f('0xd')](this[_0x529f('0xa')]),this['isConfirm']=!0x1,this[_0x529f('0xa')][_0x529f('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 _0x11df=['bindTemplate','ck-thread__remove-confirm-inner','Are\x20you\x20sure?','message','fire','check','_createButtonView','cancel','ck-thread__remove-confirm-','cancelView','Yes','label','setTemplate','submitView','execute','set','div','icon'];(function(_0x115648,_0x11df9e){const _0x58f0a9=function(_0x1e73c8){while(--_0x1e73c8){_0x115648['push'](_0x115648['shift']());}};_0x58f0a9(++_0x11df9e);}(_0x11df,0xac));const _0x58f0=function(_0x115648,_0x11df9e){_0x115648=_0x115648-0x0;let _0x58f0a9=_0x11df[_0x115648];return _0x58f0a9;};import{View as _0x5601cc,ButtonView as _0x1eea62}from'ckeditor5/src/ui.js';import{icons as _0x2aeccb}from'ckeditor5/src/core.js';import{getTranslation as _0x51781e}from'./common-translations.js';export default class h extends _0x5601cc{constructor(_0x2408f0){super(_0x2408f0);const _0x14b977=this[_0x58f0('0x8')];this[_0x58f0('0x3')]=this[_0x58f0('0xe')](_0x2408f0,_0x51781e(_0x2408f0,_0x58f0('0x0')),_0x2aeccb[_0x58f0('0xd')],'submit'),this['cancelView']=this[_0x58f0('0xe')](_0x2408f0,_0x51781e(_0x2408f0,'No'),_0x2aeccb[_0x58f0('0xf')],_0x58f0('0xf')),this[_0x58f0('0x5')](_0x58f0('0xb'),_0x51781e(_0x2408f0,_0x58f0('0xa'))),this[_0x58f0('0x2')]({'tag':_0x58f0('0x6'),'attributes':{'class':['ck-thread__remove-confirm']},'children':[{'tag':'div','attributes':{'class':_0x58f0('0x9')},'children':[{'tag':'p','children':[{'text':_0x14b977['to'](_0x58f0('0xb'))}]},{'tag':_0x58f0('0x6'),'attributes':{'class':'ck-thread__remove-confirm-actions'},'children':[this[_0x58f0('0x3')],this[_0x58f0('0x11')]]}]}]});}['_createButtonView'](_0x19b83b,_0xe0dca4,_0x4e6f5c,_0xd1c747){const _0x5803d5=new _0x1eea62(_0x19b83b);return _0x5803d5[_0x58f0('0x1')]=_0xe0dca4,_0x5803d5[_0x58f0('0x7')]=_0x4e6f5c,_0x5803d5['extendTemplate']({'attributes':{'class':_0x58f0('0x10')+_0xd1c747}}),_0x5803d5['on'](_0x58f0('0x4'),()=>this[_0x58f0('0xc')](_0xd1c747)),_0x5803d5;}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x37fd=['string','\x27Today\x27\x20hh:mma','\x27Last\x27\x20EEEE\x20hh:mma','function','dateTimeFormat'];(function(_0x191e7a,_0x37fd0b){const _0x34d89c=function(_0x543335){while(--_0x543335){_0x191e7a['push'](_0x191e7a['shift']());}};_0x34d89c(++_0x37fd0b);}(_0x37fd,0xcd));const _0x34d8=function(_0x191e7a,_0x37fd0b){_0x191e7a=_0x191e7a-0x0;let _0x34d89c=_0x37fd[_0x191e7a];return _0x34d89c;};import _0x1b1cf5 from'date-fns/format/index.js';import _0x362912 from'date-fns/parseISO/index.js';import _0x5a0a4c from'date-fns/differenceInCalendarDays/index.js';import{CKEditorError as _0x3ba61a}from'ckeditor5/src/utils.js';export default function j(_0x9897={}){if(void 0x0!==_0x9897[_0x34d8('0x4')]&&_0x34d8('0x3')!=typeof _0x9897[_0x34d8('0x4')])throw new _0x3ba61a('invalid-date-time-format');return _0x3376b0=>{const _0x3cbef6=_0x34d8('0x0')==typeof _0x3376b0?_0x362912(_0x3376b0):_0x3376b0,_0xb7b018=new Date(),_0xb1a139=_0x5a0a4c(_0xb7b018,_0x3cbef6);return _0x9897[_0x34d8('0x4')]?_0x9897['dateTimeFormat'](_0x3cbef6):_0x1b1cf5(_0x3cbef6,0x0===_0xb1a139?_0x34d8('0x1'):0x1===_0xb1a139?'\x27Yesterday\x27\x20hh:mma':_0xb1a139<0x7?_0x34d8('0x2'):'MM-dd-yyyy\x20hh:mma');};}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x1f25=['mapper','map','name','length','getClientRects','mapViewToDom','push','markerNameToElements','sort','filter','domElement','view','domConverter','item'];(function(_0xad92db,_0x1f258a){const _0x2c4ce4=function(_0x2c1769){while(--_0x2c1769){_0xad92db['push'](_0xad92db['shift']());}};_0x2c4ce4(++_0x1f258a);}(_0x1f25,0x91));const _0x2c4c=function(_0xad92db,_0x1f258a){_0xad92db=_0xad92db-0x0;let _0x2c4ce4=_0x1f25[_0xad92db];return _0x2c4ce4;};import{first as _0x23e561}from'ckeditor5/src/utils.js';export default function k(_0x55fdb1,_0x2da14d){const _0x314a6a=_0x55fdb1['mapper'][_0x2c4c('0x2')](_0x2da14d[_0x2c4c('0xb')]);if(!_0x314a6a)return null;const _0x374281=_0x23e561(_0x314a6a['values']());return _0x55fdb1[_0x2c4c('0x6')][_0x2c4c('0x7')]['mapViewToDom'](_0x374281)||null;}export function getAllMarkersDomElementsSorted(_0x5e9cf2,_0x2f80b3){if(0x0===_0x2f80b3[_0x2c4c('0xc')])return null;const _0x4f7ea7=[],_0x3d19fd=_0x5e9cf2[_0x2c4c('0x6')][_0x2c4c('0x7')];for(const _0x5bb1d3 of _0x2f80b3){const _0x13aac5=_0x5e9cf2[_0x2c4c('0x9')][_0x2c4c('0x2')](_0x5bb1d3['name']);if(!_0x13aac5)continue;const _0xc1e239=Array['from'](_0x13aac5)[_0x2c4c('0xa')](_0x379fad=>_0x3d19fd[_0x2c4c('0x0')](_0x379fad))[_0x2c4c('0x4')](_0x40eb76=>!!_0x40eb76);_0x4f7ea7[_0x2c4c('0x1')](..._0xc1e239);}if(0x0===_0x4f7ea7[_0x2c4c('0xc')])return null;const _0x28a0d8=[];for(const _0x4a4287 of _0x4f7ea7){const _0x58af48=_0x4a4287[_0x2c4c('0xd')]()[_0x2c4c('0x8')](0x0);_0x58af48&&_0x28a0d8[_0x2c4c('0x1')]({'x':_0x58af48['x'],'y':_0x58af48['y'],'domElement':_0x4a4287});}return 0x0===_0x28a0d8[_0x2c4c('0xc')]?null:(_0x28a0d8[_0x2c4c('0x3')]((_0x4fac0d,_0x1a49ee)=>_0x4fac0d['y']-_0x1a49ee['y']||_0x4fac0d['x']-_0x1a49ee['x']),_0x28a0d8[_0x2c4c('0xa')](_0x400c4d=>_0x400c4d[_0x2c4c('0x5')]));}
|
package/src/utils/hashobject.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x1e4e=['keys','string','sign','isArray','object','toString','charCodeAt'];(function(_0x1c0f18,_0x1e4e5d){const _0xcbd42b=function(_0xa1e753){while(--_0xa1e753){_0x1c0f18['push'](_0x1c0f18['shift']());}};_0xcbd42b(++_0x1e4e5d);}(_0x1e4e,0xd9));const _0xcbd4=function(_0x1c0f18,_0x1e4e5d){_0x1c0f18=_0x1c0f18-0x0;let _0xcbd42b=_0x1e4e[_0x1c0f18];return _0xcbd42b;};export default function b(_0x3fd064){let _0x5ca306=0x0,_0xf1ecfb=0x0;for(const _0x303ed7 of A(_0x3fd064))_0x5ca306=(_0x5ca306<<0x5)-_0x5ca306+_0x303ed7,_0x5ca306&=_0x5ca306,[_0x5ca306,_0xf1ecfb]=[_0xf1ecfb,_0x5ca306];return q(_0x5ca306)+q(_0xf1ecfb);}function*g(_0x16f96e){null==_0x16f96e||null==_0x16f96e?yield 0x12b9b0a1:0x0===_0x16f96e||!0x1===_0x16f96e?yield 0x0:0x1===_0x16f96e||0x1==_0x16f96e?yield 0x1:Array[_0xcbd4('0x3')](_0x16f96e)?yield*function*(_0x35e2bc){for(const _0xe22f83 of _0x35e2bc)yield*g(_0xe22f83);}(_0x16f96e):_0xcbd4('0x4')==typeof _0x16f96e?yield*A(_0x16f96e):_0xcbd4('0x1')==typeof _0x16f96e?yield*M(_0x16f96e):'number'==typeof _0x16f96e&&(yield _0x16f96e);}function*A(_0x46d6ba){if(yield O('{'),_0x46d6ba){const _0x234b6c=Object[_0xcbd4('0x0')](_0x46d6ba)['sort']();for(const _0x2b1378 of _0x234b6c){yield*M(_0x2b1378),yield O(':');const _0x672e0d=_0x46d6ba[_0x2b1378];yield*g(_0x672e0d);}}yield O('}');}function*M(_0x39679f){yield O('\x22');for(const _0x385ff1 of _0x39679f)yield O(_0x385ff1);yield O('\x22');}function O(_0x4d994d){return _0x4d994d[_0xcbd4('0x6')](0x0);}function q(_0x4cc899){return(_0x4cc899*=Math[_0xcbd4('0x2')](_0x4cc899))[_0xcbd4('0x5')](0x24);}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x116b=['set','constructor','WordCount','config','pluginName','concat','every','extraPlugins','initialData','WebSocketGateway','names','find','includes','builtinPlugins','length','rootsAttributes','DocumentOutline','from','string','Autosave','get','map','removePlugins','_context','filter','requires','plugins'];(function(_0x125693,_0x116b85){const _0x2ddd67=function(_0x13ff18){while(--_0x13ff18){_0x125693['push'](_0x125693['shift']());}};_0x2ddd67(++_0x116b85);}(_0x116b,0xb1));const _0x2ddd=function(_0x125693,_0x116b85){_0x125693=_0x125693-0x0;let _0x2ddd67=_0x116b[_0x125693];return _0x2ddd67;};const w=[_0x2ddd('0x14'),'context','toolbar',_0x2ddd('0x0')],W=[_0x2ddd('0x15'),'RevisionTracker',_0x2ddd('0x4'),_0x2ddd('0xe'),_0x2ddd('0x1'),'WProofreader'];function v(_0x1e0f41,_0x5ee094,_0x4c4151,_0x5ee7c3=[]){const _0x547da6=_0x2ddd('0x3')==typeof _0x1e0f41?_0x4c4151[_0x2ddd('0x5')](_0x1e0f41)[_0x2ddd('0xd')]:_0x1e0f41,_0x112ad2=_0x547da6['pluginName']||_0x547da6['name'];if(_0x5ee094['has'](_0x112ad2))return _0x5ee094[_0x2ddd('0x5')](_0x112ad2);if(_0x5ee094[_0x2ddd('0xc')](_0x112ad2,!0x0),_0x112ad2&&W['concat'](_0x5ee7c3)[_0x2ddd('0x18')](_0x112ad2))return _0x5ee094[_0x2ddd('0xc')](_0x112ad2,!0x1),!0x1;if(!_0x547da6[_0x2ddd('0xa')])return _0x5ee094[_0x2ddd('0xc')](_0x112ad2,!0x0),!0x0;const _0x1e2e6e=_0x547da6[_0x2ddd('0xa')][_0x2ddd('0x12')](_0x5557ae=>v(_0x5557ae,_0x5ee094,_0x4c4151,_0x5ee7c3));return _0x5ee094['set'](_0x112ad2,_0x1e2e6e),_0x1e2e6e;}export default function D(_0x3b5fb3,_0x1e365b){const _0x416caf={};for(const _0x1ae237 of _0x3b5fb3['config'][_0x2ddd('0x16')]())w['includes'](_0x1ae237)||(_0x416caf[_0x1ae237]=_0x3b5fb3['config']['get'](_0x1ae237));const _0x58c311=_0x416caf['plugins']||[],_0x17018e=_0x3b5fb3[_0x2ddd('0xd')][_0x2ddd('0x19')]||[],_0x18bf2a=_0x58c311[_0x2ddd('0x1a')]?_0x58c311:_0x17018e,_0xab3c83=_0x416caf[_0x2ddd('0x13')]||[];delete _0x416caf[_0x2ddd('0x13')];const _0x17cb24=_0x416caf['removePlugins']||[];delete _0x416caf[_0x2ddd('0x7')];const _0x431a57=_0x3b5fb3[_0x2ddd('0x8')][_0x2ddd('0xf')][_0x2ddd('0x5')](_0x2ddd('0xb'))||[],_0x1e7c64=_0x18bf2a[_0x2ddd('0x11')](_0xab3c83)[_0x2ddd('0x11')](_0x431a57)[_0x2ddd('0x6')](_0x446597=>_0x2ddd('0x3')==typeof _0x446597?_0x17018e[_0x2ddd('0x17')](_0x55490c=>_0x55490c[_0x2ddd('0x10')]==_0x446597):_0x446597)[_0x2ddd('0x9')](_0x5963a6=>!_0x17cb24['includes'](_0x5963a6)&&!_0x17cb24[_0x2ddd('0x18')](_0x5963a6[_0x2ddd('0x10')])),_0x367b91=Array[_0x2ddd('0x2')](new Set(_0x1e7c64)),_0x9ea772=new Map();return _0x416caf['plugins']=_0x367b91['filter'](_0x4d3865=>v(_0x4d3865,_0x9ea772,_0x3b5fb3[_0x2ddd('0xb')],_0x1e365b)),_0x416caf;}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x37ca=['start','change:range','end','length','document','includes','focus','isEqual','selection','push','containsPosition'];(function(_0x4722c6,_0x37ca61){const _0xb9eae=function(_0x1b54f8){while(--_0x1b54f8){_0x4722c6['push'](_0x4722c6['shift']());}};_0xb9eae(++_0x37ca61);}(_0x37ca,0x18f));const _0xb9ea=function(_0x4722c6,_0x37ca61){_0x4722c6=_0x4722c6-0x0;let _0xb9eae=_0x37ca[_0x4722c6];return _0xb9eae;};export default function z(_0x5b2a67,_0x1a64b2){const _0x4d8a1e=[];_0x5b2a67[_0xb9ea('0x1')][_0xb9ea('0x5')]['on'](_0xb9ea('0x9'),()=>{const _0x47ca9a=function(_0x2951ac,_0x3a03c2){const _0x46176d=[];for(const _0x28445b of _0x2951ac['markers']){const _0x30e962=_0x28445b['getRange']();(_0x30e962[_0xb9ea('0x7')](_0x3a03c2)||_0x30e962[_0xb9ea('0x8')][_0xb9ea('0x4')](_0x3a03c2)||_0x30e962[_0xb9ea('0xa')][_0xb9ea('0x4')](_0x3a03c2))&&_0x46176d['push'](_0x28445b);}return _0x46176d;}(_0x5b2a67,_0x5b2a67[_0xb9ea('0x1')][_0xb9ea('0x5')][_0xb9ea('0x3')]),_0x2c1c61=[],_0x51fae0=[],_0xe5a2b5=[];for(const _0xadc77f of _0x4d8a1e)_0x47ca9a['includes'](_0xadc77f)||_0x2c1c61[_0xb9ea('0x6')](_0xadc77f);for(const _0x39a5b4 of _0x47ca9a)_0x4d8a1e[_0xb9ea('0x2')](_0x39a5b4)||_0x51fae0[_0xb9ea('0x6')](_0x39a5b4),_0xe5a2b5[_0xb9ea('0x6')](_0x39a5b4);(_0x2c1c61[_0xb9ea('0x0')]||_0x51fae0[_0xb9ea('0x0')])&&_0x1a64b2({'left':_0x2c1c61,'entered':_0x51fae0}),_0x4d8a1e[_0xb9ea('0x0')]=0x0,_0x4d8a1e[_0xb9ea('0x6')](..._0xe5a2b5);});}
|
package/src/utils/trim-html.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x464b=['pop','match','substring','push','length','startsWith','slice','split','replace','...','join'];(function(_0x588adf,_0x464ba6){const _0x528cef=function(_0xe89a){while(--_0xe89a){_0x588adf['push'](_0x588adf['shift']());}};_0x528cef(++_0x464ba6);}(_0x464b,0x1d8));const _0x528c=function(_0x588adf,_0x464ba6){_0x588adf=_0x588adf-0x0;let _0x528cef=_0x464b[_0x588adf];return _0x528cef;};export default function Z(_0x883bb9,{limit:_0x2191d1,suffix:_0x117361=_0x528c('0xa')}){const _0x54e479=[];let _0x7e7576=0x0;const _0x1db484=_0x883bb9['replace'](/</g,'\x0a<')[_0x528c('0x9')](/>/g,'>\x0a')[_0x528c('0x9')](/^\n/g,'')[_0x528c('0x9')](/\n$/g,'')[_0x528c('0x8')]('\x0a');for(let _0xca00ca=0x0;_0xca00ca<_0x1db484[_0x528c('0x5')];_0xca00ca++){let _0x5d28eb=_0x1db484[_0xca00ca];const _0xc0db33=$(_0x5d28eb);if(_0x5d28eb[_0x528c('0x6')]('<')){if(_0x7e7576>=_0x2191d1){const _0x4bfafd=_0x5d28eb[_0x528c('0x2')](/[a-zA-Z]+/);if(!_0x4bfafd){_0x1db484[_0xca00ca]='';continue;}const _0x36e9cd=_0x4bfafd[0x0];_0x5d28eb[_0x528c('0x6')]('</')?(_0x54e479['length']&&(_0x5d28eb=''),_0x54e479[_0x528c('0x1')]()):(_0x54e479['push'](_0x36e9cd),_0x5d28eb='');}}else{if(_0x7e7576>=_0x2191d1)_0x5d28eb='';else{if(_0x7e7576+_0xc0db33[_0x528c('0x5')]>=_0x2191d1){let _0x5d65f2=_0x2191d1-_0x7e7576;if('\x20'===_0xc0db33[_0x5d65f2-0x1])_0x5d65f2--;else{const _0x1a1d34=_0xc0db33[_0x528c('0x7')](_0x5d65f2)['indexOf']('\x20');-0x1!==_0x1a1d34?_0x5d65f2+=_0x1a1d34:_0x5d65f2=_0x5d28eb[_0x528c('0x5')];}_0x5d28eb=_0xc0db33[_0x528c('0x7')](0x0,_0x5d65f2)[_0x528c('0x0')]('')+_0x117361,_0x7e7576=_0x2191d1;}else _0x7e7576+=_0xc0db33[_0x528c('0x5')];}}_0x1db484[_0xca00ca]=_0x5d28eb;}return _0x1db484[_0x528c('0x0')]('\x0a')[_0x528c('0x9')](/\n/g,'');}function $(_0x1ad26c){const _0x509c6f=[];for(let _0x4c57e0=0x0;_0x4c57e0<_0x1ad26c[_0x528c('0x5')];_0x4c57e0++){const _0x36b2f5=_0x1ad26c[_0x528c('0x3')](_0x4c57e0)[_0x528c('0x2')](/^&[a-z0-9#]+;/);if(_0x36b2f5){const _0x1e86c6=_0x36b2f5[0x0];_0x509c6f[_0x528c('0x4')](_0x1e86c6),_0x4c57e0+=_0x1e86c6[_0x528c('0x5')]-0x1;}else _0x509c6f[_0x528c('0x4')](_0x1ad26c[_0x4c57e0]);}return _0x509c6f;}
|