@ckeditor/ckeditor5-collaboration-core 35.1.0 → 35.2.1
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/lang/translations/es-co.po +33 -0
- package/lang/translations/fa.po +3 -3
- package/lang/translations/tt.po +1 -1
- 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/trim-html.js +1 -1
@@ -0,0 +1,33 @@
|
|
1
|
+
# Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
2
|
+
#
|
3
|
+
# !!! IMPORTANT !!!
|
4
|
+
#
|
5
|
+
# Before you edit this file, please keep in mind that contributing to the project
|
6
|
+
# translations is possible ONLY via the Transifex online service.
|
7
|
+
#
|
8
|
+
# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
|
9
|
+
#
|
10
|
+
# To learn more, check out the official contributor's guide:
|
11
|
+
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
12
|
+
#
|
13
|
+
msgid ""
|
14
|
+
msgstr ""
|
15
|
+
"Language-Team: Spanish (Colombia) (https://www.transifex.com/ckeditor/teams/11143/es_CO/)\n"
|
16
|
+
"Language: es_CO\n"
|
17
|
+
"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
|
18
|
+
|
19
|
+
msgctxt "A label for the anonymous user icon"
|
20
|
+
msgid "Anonymous"
|
21
|
+
msgstr "Anónimo"
|
22
|
+
|
23
|
+
msgctxt "The label for confirming an action."
|
24
|
+
msgid "Yes"
|
25
|
+
msgstr "Sí"
|
26
|
+
|
27
|
+
msgctxt "The label for rejecting an action."
|
28
|
+
msgid "No"
|
29
|
+
msgstr "No"
|
30
|
+
|
31
|
+
msgctxt "The label for confirming a dangerous action."
|
32
|
+
msgid "Are you sure?"
|
33
|
+
msgstr "¿Está seguro?"
|
package/lang/translations/fa.po
CHANGED
@@ -22,12 +22,12 @@ msgstr "ناشناس"
|
|
22
22
|
|
23
23
|
msgctxt "The label for confirming an action."
|
24
24
|
msgid "Yes"
|
25
|
-
msgstr ""
|
25
|
+
msgstr "بله"
|
26
26
|
|
27
27
|
msgctxt "The label for rejecting an action."
|
28
28
|
msgid "No"
|
29
|
-
msgstr ""
|
29
|
+
msgstr "خیر"
|
30
30
|
|
31
31
|
msgctxt "The label for confirming a dangerous action."
|
32
32
|
msgid "Are you sure?"
|
33
|
-
msgstr ""
|
33
|
+
msgstr "اطمینان دارید؟"
|
package/lang/translations/tt.po
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ckeditor/ckeditor5-collaboration-core",
|
3
|
-
"version": "35.1
|
3
|
+
"version": "35.2.1",
|
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/)",
|
@@ -28,7 +28,7 @@
|
|
28
28
|
],
|
29
29
|
"main": "src/index.js",
|
30
30
|
"dependencies": {
|
31
|
-
"ckeditor5": "^35.1
|
31
|
+
"ckeditor5": "^35.2.1",
|
32
32
|
"date-fns": "^2.17.0"
|
33
33
|
}
|
34
34
|
}
|
package/src/permissions.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x44b0=['addCommentThread','collaboration.channelId','permissions-set-permissions-invalid-channel-id','editors','CommentsOnly','has','context','pluginName','config','comment:admin','plugins','document:write','switchReadOnly','clearForceDisabled','find','get','enableReadOnlyMode','commands','disableReadOnlyMode','no-permissions','CommentsRepository','noPermissions','comment:write'];(function(_0x242b61,_0x44b089){const _0x4a4fa0=function(_0x5462f9){while(--_0x5462f9){_0x242b61['push'](_0x242b61['shift']());}};_0x4a4fa0(++_0x44b089);}(_0x44b0,0xfc));const _0x4a4f=function(_0x242b61,_0x44b089){_0x242b61=_0x242b61-0x0;let _0x4a4fa0=_0x44b0[_0x242b61];return _0x4a4fa0;};import{ContextPlugin as _0x200af7,Editor as _0x139e14}from'ckeditor5/src/core';import{CKEditorError as _0x165745}from'ckeditor5/src/utils';export default class i extends _0x200af7{static get[_0x4a4f('0x8')](){return'Permissions';}['setPermissions'](_0x361ab6,_0x2c7925){let _0x10e45b;if(_0x2c7925||(_0x2c7925=this['context'][_0x4a4f('0x9')][_0x4a4f('0x10')](_0x4a4f('0x2'))),this[_0x4a4f('0x7')]['config'][_0x4a4f('0x10')](_0x4a4f('0x2'))==_0x2c7925?_0x10e45b=this[_0x4a4f('0x7')]:this[_0x4a4f('0x7')]['editors']&&(_0x10e45b=this[_0x4a4f('0x7')][_0x4a4f('0x4')][_0x4a4f('0xf')](_0x2bd294=>_0x2bd294[_0x4a4f('0x9')]['get']('collaboration.channelId')==_0x2c7925)),!_0x10e45b)throw new _0x165745(_0x4a4f('0x3'),null);const _0x5d4838=_0x10e45b[_0x4a4f('0xb')],_0x5d5b5f=_0x10e45b instanceof _0x139e14,_0x4bf1b4=_0x5d4838['has']('CommentsRepository')&&_0x5d4838[_0x4a4f('0x10')](_0x4a4f('0x15')),_0x4643c0=_0x5d4838[_0x4a4f('0x6')](_0x4a4f('0x5'))&&_0x5d4838['get'](_0x4a4f('0x5')),_0x56a149=_0x361ab6['includes'](_0x4a4f('0xc')),_0x141a28=_0x361ab6['includes'](_0x4a4f('0xa')),_0x7db07d=_0x361ab6['includes'](_0x4a4f('0x0'))||_0x141a28;(_0x4643c0&&(_0x4643c0['isEnabled']=!_0x56a149&&_0x7db07d),_0x5d5b5f)&&(!(_0x56a149||_0x7db07d&&_0x4bf1b4)?_0x10e45b[_0x4a4f('0x11')](_0x4a4f('0x14')):_0x10e45b[_0x4a4f('0x13')](_0x4a4f('0x14')));if(_0x4bf1b4){_0x4bf1b4[_0x4a4f('0xd')](!_0x7db07d,_0x2c7925),_0x4bf1b4['setAdminPermissions'](_0x141a28,_0x2c7925);const _0x21a1b7=_0x5d5b5f&&_0x10e45b[_0x4a4f('0x12')][_0x4a4f('0x10')](_0x4a4f('0x1'));_0x21a1b7&&(_0x7db07d?_0x21a1b7[_0x4a4f('0xe')](_0x4a4f('0x16')):_0x21a1b7['forceDisabled'](_0x4a4f('0x16')));}}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x1851=['ck-user__img','name','ck-user','div','push','ck\x20ck-user__name\x20ck-user__name--hidden','setTemplate','initials','ck-user__anonymous','avatar','isAnonymous'];(function(_0x599305,_0x18510e){const _0x1b4d41=function(_0x5e4b66){while(--_0x5e4b66){_0x599305['push'](_0x599305['shift']());}};_0x1b4d41(++_0x18510e);}(_0x1851,0x1dc));const _0x1b4d=function(_0x599305,_0x18510e){_0x599305=_0x599305-0x0;let _0x1b4d41=_0x1851[_0x599305];return _0x1b4d41;};import{View as _0x2434d4}from'ckeditor5/src/ui';import'../../../theme/users.css';export default class _ extends _0x2434d4{constructor(_0x5ab44a,_0x3d7b72){super(_0x5ab44a),this[_0x1b4d('0x9')]=_0x3d7b72['name'];const _0x3fd6c3=['ck',_0x1b4d('0x8')];_0x3d7b72[_0x1b4d('0x7')]&&_0x3fd6c3[_0x1b4d('0x1')](_0x1b4d('0x5')),_0x3d7b72[_0x1b4d('0x6')]&&_0x3fd6c3[_0x1b4d('0x1')]('ck-user__avatar'),this[_0x1b4d('0x3')]({'tag':_0x1b4d('0x0'),'attributes':{'class':['ck',_0x1b4d('0xa')],'data-user-id':_0x3d7b72['id']},'children':[{'tag':_0x1b4d('0x0'),'attributes':{'class':_0x3fd6c3,'style':{'background-image':_0x3d7b72[_0x1b4d('0x6')]?'url(\x27'+_0x3d7b72[_0x1b4d('0x6')]+'\x27)':''}}},{'tag':_0x1b4d('0x0'),'attributes':{'class':_0x3d7b72[_0x1b4d('0x6')]?_0x1b4d('0x2'):'ck\x20ck-user__name'},'children':[{'text':_0x3d7b72[_0x1b4d('0x4')]}]}]});}}
|
package/src/users.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x7336=['initials','ck-user__selection--','licenseKeyTrialLimit:operations','defineMe','ck-user__bg-color--','length','licenseKeyTrial','trial-license-key-reached-limit-revisions','_isAnonymous','users','_id','_locale','decorate','licenseKeyValid','define','config','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.','licenseKeyTrialLimit:time','licenseKeyInvalid','init','anonymous-user','toUpperCase','_getInitial','_getNextColor','users-me-already-defined','users-me-missing-user','name','color','_lastColor','getMarkerClass','_myId','users.anonymousUserId','addUser','destroy','_addAnonymousUser','getSelectionClass','Anonymous','assign','trim','charAt','getOperationAuthor','requires','context','avatar','licenseKeyTrialLimit:revisions','getBackgroundColorClass','isAnonymous','licenseKey','useAnonymousUser','users.colorsCount','get','locale','_licenseKeyCheckInterval','has','getUser','users-add-invalid-id','trial-license-key-reached-limit-time'];(function(_0x56dc43,_0x7336c5){const _0x400a4a=function(_0x5ee307){while(--_0x5ee307){_0x56dc43['push'](_0x56dc43['shift']());}};_0x400a4a(++_0x7336c5);}(_0x7336,0x1d1));const _0x400a=function(_0x56dc43,_0x7336c5){_0x56dc43=_0x56dc43-0x0;let _0x400a4a=_0x7336[_0x56dc43];return _0x400a4a;};import{ContextPlugin as _0x42c108}from'ckeditor5/src/core';import{Collection as _0x533d15,CKEditorError as _0x270292}from'ckeditor5/src/utils';import _0x3af45d from'./permissions';import{getTranslation as _0x2e3cb2}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x42c108{static get['pluginName'](){return'Users';}static get[_0x400a('0x20')](){return[_0x3af45d];}constructor(_0x20792b){super(_0x20792b),_0x20792b[_0x400a('0x6')][_0x400a('0x5')](_0x400a('0x16'),_0x400a('0xb')),_0x20792b['config'][_0x400a('0x5')]('users.colorsCount',0x8),this[_0x400a('0x0')]=new _0x533d15(),this[_0x400a('0x2')]=_0x20792b[_0x400a('0x2a')],this[_0x400a('0x2b')]=null,this['_lastColor']=0x0,this[_0x400a('0x15')]=null,this[_0x400a('0x3')](_0x400a('0x1f'));}[_0x400a('0xa')](){const _0x263add=this[_0x400a('0x21')];this[_0x400a('0x26')]=_0x263add[_0x400a('0x6')][_0x400a('0x29')](_0x400a('0x26'));const _0x239002=['licenseKeyTrial',_0x400a('0x9'),_0x400a('0x4'),_0x400a('0x32'),'licenseKeyTrialLimit:time',_0x400a('0x23')];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2a8568;for(const _0x56385f in _0x263add){const _0x27ceef=_0x263add[_0x56385f];if(_0x239002['includes'](_0x27ceef)){delete _0x263add[_0x56385f],_0x2a8568=_0x27ceef;break;}}if(_0x400a('0x9')===_0x2a8568)throw clearInterval(this[_0x400a('0x2b')]),new _0x270292('invalid-license-key',null);if(_0x400a('0x36')===_0x2a8568&&console['info'](_0x400a('0x7')),_0x400a('0x32')===_0x2a8568)throw clearInterval(this[_0x400a('0x2b')]),new _0x270292('trial-license-key-reached-limit-changes',null);if(_0x400a('0x8')===_0x2a8568)throw clearInterval(this[_0x400a('0x2b')]),new _0x270292(_0x400a('0x2f'),null);if(_0x400a('0x23')===_0x2a8568)throw clearInterval(this[_0x400a('0x2b')]),new _0x270292(_0x400a('0x37'),null);_0x400a('0x4')===_0x2a8568&&clearInterval(this[_0x400a('0x2b')]);},0x3e8),this[_0x400a('0x19')]();}get['me'](){return null==this['_myId']?null:this[_0x400a('0x2d')](this[_0x400a('0x15')]);}[_0x400a('0x17')](_0x5c324e){if(!(_0x5c324e=Object[_0x400a('0x1c')]({},_0x5c324e,{'color':this[_0x400a('0xe')]()}))['id']||'string'!=typeof _0x5c324e['id'])throw new _0x270292(_0x400a('0x2e'));if(this[_0x400a('0x0')][_0x400a('0x2c')](_0x5c324e['id']))throw new _0x270292('users-add-duplicated-id',null,{'id':_0x5c324e['id']});_0x5c324e['name']=function(_0x4218af,_0x1dc64e=''){return''==(_0x1dc64e=_0x1dc64e[_0x400a('0x1d')]())?_0x2e3cb2(_0x4218af,'Anonymous'):_0x1dc64e;}(this[_0x400a('0x2')],_0x5c324e[_0x400a('0x11')]);const _0x32477d=new u(_0x5c324e);return this['users']['add'](_0x32477d),_0x32477d;}['getUser'](_0x188b3b){return this[_0x400a('0x0')][_0x400a('0x29')](_0x188b3b);}[_0x400a('0x27')](){const _0x1c9723=this[_0x400a('0x21')][_0x400a('0x6')][_0x400a('0x29')](_0x400a('0x16'));this[_0x400a('0x15')]||this[_0x400a('0x33')](_0x1c9723);}[_0x400a('0x33')](_0x228a2c){if(this[_0x400a('0x15')])throw new _0x270292(_0x400a('0xf'),null);if(!this[_0x400a('0x2d')](_0x228a2c))throw new _0x270292(_0x400a('0x10'),null);this[_0x400a('0x15')]=_0x228a2c;}[_0x400a('0x1f')](){return this['me'];}['destroy'](){super[_0x400a('0x18')](),clearInterval(this['_licenseKeyCheckInterval']);}[_0x400a('0xe')](){const _0x1670e9=this[_0x400a('0x21')]['config'][_0x400a('0x29')](_0x400a('0x28'));return this[_0x400a('0x13')]>=_0x1670e9&&(this['_lastColor']=0x0),new a(this[_0x400a('0x13')]++);}[_0x400a('0x19')](){const _0x38f631=this[_0x400a('0x21')][_0x400a('0x6')][_0x400a('0x29')](_0x400a('0x16'));this['addUser']({'id':_0x38f631,'name':_0x2e3cb2(this[_0x400a('0x2')],_0x400a('0x1b'))})['_isAnonymous']=!0x0;}}class u{constructor(_0x4bc0e8){this['id']=_0x4bc0e8['id'],this[_0x400a('0x12')]=_0x4bc0e8[_0x400a('0x12')],this['name']=_0x4bc0e8['name'],this['avatar']=_0x4bc0e8[_0x400a('0x22')],this[_0x400a('0x38')]=!0x1;}get[_0x400a('0x25')](){return this[_0x400a('0x38')];}get[_0x400a('0x30')](){const _0x50193e=this['name']['split']('\x20');return 0x1===_0x50193e['length']?this['_getInitial'](_0x50193e[0x0]):this[_0x400a('0xd')](_0x50193e[0x0])+this['_getInitial'](_0x50193e[_0x50193e[_0x400a('0x35')]-0x1]);}[_0x400a('0xd')](_0x1f588d){return _0x1f588d[_0x400a('0x1e')](0x0)[_0x400a('0xc')]();}}class a{constructor(_0x2fab92){this[_0x400a('0x1')]=_0x2fab92;}[_0x400a('0x24')](){return _0x400a('0x34')+this['_id'];}[_0x400a('0x1a')](){return _0x400a('0x31')+this[_0x400a('0x1')];}[_0x400a('0x14')](){return'ck-user__marker--'+this['_id'];}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
export function getTranslation(
|
23
|
+
export function getTranslation(_0x4d14f4,_0x2e1483){const t=_0x4d14f4['t'];switch(_0x2e1483){case'Anonymous':return t('Anonymous');case'Yes':return t('Yes');case'No':return t('No');case'Are\x20you\x20sure?':return t('Are\x20you\x20sure?');}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
var
|
23
|
+
var _0x571d=['once','confirmView','message','appendChild','remove','deregisterChild','registerChild','_removeConfirm','destroy','isConfirm','element','set','cancel','locale'];(function(_0x23105d,_0x571de7){var _0x22c95d=function(_0x6d68b4){while(--_0x6d68b4){_0x23105d['push'](_0x23105d['shift']());}};_0x22c95d(++_0x571de7);}(_0x571d,0xf7));var _0x22c9=function(_0x23105d,_0x571de7){_0x23105d=_0x23105d-0x0;var _0x22c95d=_0x571d[_0x23105d];return _0x22c95d;};import _0x827ef5 from'./confirmview';export default{'showConfirm'(_0x5ca858,_0x16b7ac){return this['confirmView']=new _0x827ef5(this[_0x22c9('0x4')]),this[_0x22c9('0x6')]['render'](),this['confirmView'][_0x22c9('0x7')]=_0x5ca858,this[_0x22c9('0x6')][_0x22c9('0x5')]('cancel',()=>{this[_0x22c9('0xc')]();}),this['confirmView'][_0x22c9('0x5')]('submit',()=>{this['_removeConfirm']();}),_0x16b7ac[_0x22c9('0x8')](this[_0x22c9('0x6')]['element']),this[_0x22c9('0xb')](this[_0x22c9('0x6')]),this[_0x22c9('0x2')](_0x22c9('0x0'),!0x0),new Promise(_0x1b5a9f=>this[_0x22c9('0x6')]['on']('submit',_0x1b5a9f));},'cancelConfirm'(){this[_0x22c9('0x0')]&&this[_0x22c9('0x6')]['fire'](_0x22c9('0x3'));},'_removeConfirm'(){this['confirmView'][_0x22c9('0x1')][_0x22c9('0x9')](),this[_0x22c9('0xa')](this[_0x22c9('0x6')]),this[_0x22c9('0x0')]=!0x1,this[_0x22c9('0x6')][_0x22c9('0xd')](),delete this[_0x22c9('0x6')];}};
|
package/src/utils/confirmview.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x25fb=['set','cancelView','setTemplate','ck-thread__remove-confirm-inner','submit','ck-thread__remove-confirm-','icon','ck-thread__remove-confirm','submitView','div','label','check','extendTemplate','_createButtonView','cancel','message','Are\x20you\x20sure?'];(function(_0x262145,_0x25fba9){const _0x5eb067=function(_0x374608){while(--_0x374608){_0x262145['push'](_0x262145['shift']());}};_0x5eb067(++_0x25fba9);}(_0x25fb,0x104));const _0x5eb0=function(_0x262145,_0x25fba9){_0x262145=_0x262145-0x0;let _0x5eb067=_0x25fb[_0x262145];return _0x5eb067;};import{View as _0x5ca91b,ButtonView as _0x29e1bd}from'ckeditor5/src/ui';import{icons as _0x9c6e95}from'ckeditor5/src/core';import{getTranslation as _0x19c0dc}from'./common-translations';export default class h extends _0x5ca91b{constructor(_0x239a7e){super(_0x239a7e);const _0xedcc59=this['bindTemplate'];this[_0x5eb0('0x3')]=this[_0x5eb0('0x8')](_0x239a7e,_0x19c0dc(_0x239a7e,'Yes'),_0x9c6e95[_0x5eb0('0x6')],_0x5eb0('0x10')),this[_0x5eb0('0xd')]=this[_0x5eb0('0x8')](_0x239a7e,_0x19c0dc(_0x239a7e,'No'),_0x9c6e95[_0x5eb0('0x9')],_0x5eb0('0x9')),this[_0x5eb0('0xc')]('message',_0x19c0dc(_0x239a7e,_0x5eb0('0xb'))),this[_0x5eb0('0xe')]({'tag':'div','attributes':{'class':[_0x5eb0('0x2')]},'children':[{'tag':_0x5eb0('0x4'),'attributes':{'class':_0x5eb0('0xf')},'children':[{'tag':'p','children':[{'text':_0xedcc59['to'](_0x5eb0('0xa'))}]},{'tag':_0x5eb0('0x4'),'attributes':{'class':'ck-thread__remove-confirm-actions'},'children':[this[_0x5eb0('0x3')],this[_0x5eb0('0xd')]]}]}]});}[_0x5eb0('0x8')](_0x7a2b91,_0x5a3e39,_0xa8005c,_0x5e1415){const _0x558d59=new _0x29e1bd(_0x7a2b91);return _0x558d59[_0x5eb0('0x5')]=_0x5a3e39,_0x558d59[_0x5eb0('0x1')]=_0xa8005c,_0x558d59[_0x5eb0('0x7')]({'attributes':{'class':_0x5eb0('0x0')+_0x5e1415}}),_0x558d59['on']('execute',()=>this['fire'](_0x5e1415)),_0x558d59;}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x4755=['MM-dd-yyyy\x20hh:mma','invalid-date-time-format','dateTimeFormat','\x27Yesterday\x27\x20hh:mma','\x27Today\x27\x20hh:mma','function','\x27Last\x27\x20EEEE\x20hh:mma'];(function(_0x3eda5a,_0x475591){const _0x421829=function(_0x29f6c3){while(--_0x29f6c3){_0x3eda5a['push'](_0x3eda5a['shift']());}};_0x421829(++_0x475591);}(_0x4755,0x16c));const _0x4218=function(_0x3eda5a,_0x475591){_0x3eda5a=_0x3eda5a-0x0;let _0x421829=_0x4755[_0x3eda5a];return _0x421829;};import _0x129ed1 from'date-fns/format';import _0x32a05f from'date-fns/parseISO';import _0x2572e7 from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x302aec}from'ckeditor5/src/utils';export default function E(_0xcea747={}){if(void 0x0!==_0xcea747[_0x4218('0x2')]&&_0x4218('0x5')!=typeof _0xcea747[_0x4218('0x2')])throw new _0x302aec(_0x4218('0x1'));return _0x1bd7e9=>{const _0x4f237e='string'==typeof _0x1bd7e9?_0x32a05f(_0x1bd7e9):_0x1bd7e9,_0x407726=new Date(),_0x241a7a=_0x2572e7(_0x407726,_0x4f237e);return _0xcea747[_0x4218('0x2')]?_0xcea747['dateTimeFormat'](_0x4f237e):_0x129ed1(_0x4f237e,0x0===_0x241a7a?_0x4218('0x4'):0x1===_0x241a7a?_0x4218('0x3'):_0x241a7a<0x7?_0x4218('0x6'):_0x4218('0x0'));};}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x5b4f=['view','mapper','mapViewToDom','domConverter','values','markerNameToElements','name'];(function(_0x42f376,_0x5b4f9b){const _0x14e892=function(_0x327aa9){while(--_0x327aa9){_0x42f376['push'](_0x42f376['shift']());}};_0x14e892(++_0x5b4f9b);}(_0x5b4f,0x17d));const _0x14e8=function(_0x42f376,_0x5b4f9b){_0x42f376=_0x42f376-0x0;let _0x14e892=_0x5b4f[_0x42f376];return _0x14e892;};import{first as _0x54f7c1}from'ckeditor5/src/utils';export default function x(_0x81c84b,_0x317c48){const _0x3be0d3=_0x81c84b[_0x14e8('0x5')][_0x14e8('0x2')](_0x317c48[_0x14e8('0x3')]),_0x221e73=_0x54f7c1(_0x3be0d3[_0x14e8('0x1')]());return _0x81c84b[_0x14e8('0x4')][_0x14e8('0x0')][_0x14e8('0x6')](_0x221e73);}
|
package/src/utils/trim-html.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x90f9=['match','length','split','slice','replace','push','startsWith','join'];(function(_0x12f75b,_0x90f964){const _0x1d8301=function(_0x43ce2f){while(--_0x43ce2f){_0x12f75b['push'](_0x12f75b['shift']());}};_0x1d8301(++_0x90f964);}(_0x90f9,0xb3));const _0x1d83=function(_0x12f75b,_0x90f964){_0x12f75b=_0x12f75b-0x0;let _0x1d8301=_0x90f9[_0x12f75b];return _0x1d8301;};export default function g(_0x108049,{limit:_0x469bbb,suffix:_0x2f907a='...'}){const _0x1c8d37=[];let _0x12bb8e=0x0;const _0x1eec15=_0x108049[_0x1d83('0x1')](/</g,'\x0a<')[_0x1d83('0x1')](/>/g,'>\x0a')[_0x1d83('0x1')](/^\n/g,'')[_0x1d83('0x1')](/\n$/g,'')[_0x1d83('0x7')]('\x0a');for(let _0x4e3f4e=0x0;_0x4e3f4e<_0x1eec15[_0x1d83('0x6')];_0x4e3f4e++){let _0x554a0a=_0x1eec15[_0x4e3f4e];const _0x3f2cb6=z(_0x554a0a);if(_0x554a0a[_0x1d83('0x3')]('<')){if(_0x12bb8e>=_0x469bbb){const _0x31ee03=_0x554a0a[_0x1d83('0x5')](/[a-zA-Z]+/)[0x0];_0x554a0a['startsWith']('</')?(_0x1c8d37[_0x1d83('0x6')]&&(_0x554a0a=''),_0x1c8d37['pop']()):(_0x1c8d37['push'](_0x31ee03),_0x554a0a='');}}else{if(_0x12bb8e>=_0x469bbb)_0x554a0a='';else{if(_0x12bb8e+_0x3f2cb6['length']>=_0x469bbb){let _0x38d174=_0x469bbb-_0x12bb8e;if('\x20'===_0x3f2cb6[_0x38d174-0x1])_0x38d174--;else{const _0x6c13eb=_0x3f2cb6[_0x1d83('0x0')](_0x38d174)['indexOf']('\x20');-0x1!==_0x6c13eb?_0x38d174+=_0x6c13eb:_0x38d174=_0x554a0a[_0x1d83('0x6')];}_0x554a0a=_0x3f2cb6[_0x1d83('0x0')](0x0,_0x38d174)[_0x1d83('0x4')]('')+_0x2f907a,_0x12bb8e=_0x469bbb;}else _0x12bb8e+=_0x3f2cb6[_0x1d83('0x6')];}}_0x1eec15[_0x4e3f4e]=_0x554a0a;}return _0x1eec15[_0x1d83('0x4')]('\x0a')[_0x1d83('0x1')](/\n/g,'');}function z(_0xf86bab){const _0x15e75e=[];for(let _0x1cc1a2=0x0;_0x1cc1a2<_0xf86bab['length'];_0x1cc1a2++){const _0x1ddcd8=_0xf86bab['substring'](_0x1cc1a2)['match'](/^&[a-z0-9#]+;/);if(_0x1ddcd8){const _0x5cdd26=_0x1ddcd8[0x0];_0x15e75e[_0x1d83('0x2')](_0x5cdd26),_0x1cc1a2+=_0x5cdd26['length']-0x1;}else _0x15e75e['push'](_0xf86bab[_0x1cc1a2]);}return _0x15e75e;}
|