@ckeditor/ckeditor5-collaboration-core 35.0.1 → 35.2.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/lang/translations/es-co.po +33 -0
- package/lang/translations/fa.po +3 -3
- package/lang/translations/tt.po +33 -0
- 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 "اطمینان دارید؟"
|
@@ -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: Tatar (https://www.transifex.com/ckeditor/teams/11143/tt/)\n"
|
16
|
+
"Language: tt\n"
|
17
|
+
"Plural-Forms: nplurals=1; plural=0;\n"
|
18
|
+
|
19
|
+
msgctxt "A label for the anonymous user icon"
|
20
|
+
msgid "Anonymous"
|
21
|
+
msgstr "Аноним"
|
22
|
+
|
23
|
+
msgctxt "The label for confirming an action."
|
24
|
+
msgid "Yes"
|
25
|
+
msgstr "Әйе"
|
26
|
+
|
27
|
+
msgctxt "The label for rejecting an action."
|
28
|
+
msgid "No"
|
29
|
+
msgstr "Юк"
|
30
|
+
|
31
|
+
msgctxt "The label for confirming a dangerous action."
|
32
|
+
msgid "Are you sure?"
|
33
|
+
msgstr ""
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ckeditor/ckeditor5-collaboration-core",
|
3
|
-
"version": "35.0
|
3
|
+
"version": "35.2.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/)",
|
@@ -28,7 +28,7 @@
|
|
28
28
|
],
|
29
29
|
"main": "src/index.js",
|
30
30
|
"dependencies": {
|
31
|
-
"ckeditor5": "^35.0
|
31
|
+
"ckeditor5": "^35.2.0",
|
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 _0x3423=['find','isEnabled','get','config','document:write','Permissions','setPermissions','CommentsRepository','disableReadOnlyMode','no-permissions','commands','collaboration.channelId','has','pluginName','comment:write','permissions-set-permissions-invalid-channel-id','editors','CommentsOnly','context','plugins','clearForceDisabled','includes','comment:admin'];(function(_0x123d00,_0x34236c){const _0x2898e5=function(_0x50ecc8){while(--_0x50ecc8){_0x123d00['push'](_0x123d00['shift']());}};_0x2898e5(++_0x34236c);}(_0x3423,0xb0));const _0x2898=function(_0x123d00,_0x34236c){_0x123d00=_0x123d00-0x0;let _0x2898e5=_0x3423[_0x123d00];return _0x2898e5;};import{ContextPlugin as _0x440a5c,Editor as _0x5e6624}from'ckeditor5/src/core';import{CKEditorError as _0x581015}from'ckeditor5/src/utils';export default class i extends _0x440a5c{static get[_0x2898('0x15')](){return _0x2898('0xd');}[_0x2898('0xe')](_0x3a1069,_0x17522b){let _0x4991a2;if(_0x17522b||(_0x17522b=this[_0x2898('0x3')]['config'][_0x2898('0xa')](_0x2898('0x13'))),this[_0x2898('0x3')][_0x2898('0xb')]['get']('collaboration.channelId')==_0x17522b?_0x4991a2=this[_0x2898('0x3')]:this[_0x2898('0x3')][_0x2898('0x1')]&&(_0x4991a2=this[_0x2898('0x3')][_0x2898('0x1')][_0x2898('0x8')](_0x22ced8=>_0x22ced8['config']['get']('collaboration.channelId')==_0x17522b)),!_0x4991a2)throw new _0x581015(_0x2898('0x0'),null);const _0x4d3ffe=_0x4991a2[_0x2898('0x4')],_0x53bc0b=_0x4991a2 instanceof _0x5e6624,_0x37cbcd=_0x4d3ffe[_0x2898('0x14')](_0x2898('0xf'))&&_0x4d3ffe[_0x2898('0xa')]('CommentsRepository'),_0x4ab164=_0x4d3ffe[_0x2898('0x14')]('CommentsOnly')&&_0x4d3ffe[_0x2898('0xa')](_0x2898('0x2')),_0x59e89f=_0x3a1069[_0x2898('0x6')](_0x2898('0xc')),_0x5a4841=_0x3a1069[_0x2898('0x6')](_0x2898('0x7')),_0x233459=_0x3a1069['includes'](_0x2898('0x16'))||_0x5a4841;(_0x4ab164&&(_0x4ab164[_0x2898('0x9')]=!_0x59e89f&&_0x233459),_0x53bc0b)&&(!(_0x59e89f||_0x233459&&_0x37cbcd)?_0x4991a2['enableReadOnlyMode'](_0x2898('0x11')):_0x4991a2[_0x2898('0x10')](_0x2898('0x11')));if(_0x37cbcd){_0x37cbcd['switchReadOnly'](!_0x233459,_0x17522b),_0x37cbcd['setAdminPermissions'](_0x5a4841,_0x17522b);const _0x589276=_0x53bc0b&&_0x4991a2[_0x2898('0x12')][_0x2898('0xa')]('addCommentThread');_0x589276&&(_0x233459?_0x589276[_0x2898('0x5')]('noPermissions'):_0x589276['forceDisabled']('noPermissions'));}}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x3479=['ck-user__img','div','ck\x20ck-user__name','isAnonymous','ck\x20ck-user__name\x20ck-user__name--hidden','name','ck-user__anonymous','url(\x27','ck-user','push'];(function(_0x2fd55a,_0x3479a6){const _0x394dde=function(_0x305e8b){while(--_0x305e8b){_0x2fd55a['push'](_0x2fd55a['shift']());}};_0x394dde(++_0x3479a6);}(_0x3479,0x12d));const _0x394d=function(_0x2fd55a,_0x3479a6){_0x2fd55a=_0x2fd55a-0x0;let _0x394dde=_0x3479[_0x2fd55a];return _0x394dde;};import{View as _0x59266c}from'ckeditor5/src/ui';import'../../../theme/users.css';export default class _ extends _0x59266c{constructor(_0x2d1817,_0x5a5ee0){super(_0x2d1817),this['name']=_0x5a5ee0[_0x394d('0x4')];const _0x41bd7d=['ck',_0x394d('0x9')];_0x5a5ee0[_0x394d('0x2')]&&_0x41bd7d['push'](_0x394d('0x5')),_0x5a5ee0['avatar']&&_0x41bd7d[_0x394d('0x8')]('ck-user__avatar'),this['setTemplate']({'tag':_0x394d('0x0'),'attributes':{'class':['ck',_0x394d('0x7')],'data-user-id':_0x5a5ee0['id']},'children':[{'tag':_0x394d('0x0'),'attributes':{'class':_0x41bd7d,'style':{'background-image':_0x5a5ee0['avatar']?_0x394d('0x6')+_0x5a5ee0['avatar']+'\x27)':''}}},{'tag':_0x394d('0x0'),'attributes':{'class':_0x5a5ee0['avatar']?_0x394d('0x3'):_0x394d('0x1')},'children':[{'text':_0x5a5ee0['initials']}]}]});}}
|
package/src/users.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x5a7c=['Users','pluginName','initials','ck-user__selection--','licenseKeyInvalid','color','string','includes','trial-license-key-reached-limit-changes','destroy','get','users-me-already-defined','getUser','_getInitial','getMarkerClass','config','_licenseKeyCheckInterval','has','trim','decorate','users','_locale','licenseKeyTrial','charAt','init','add','define','_addAnonymousUser','_lastColor','users-me-missing-user','isAnonymous','licenseKey','requires','name','assign','defineMe','users.colorsCount','_id','trial-license-key-reached-limit-time','toUpperCase','locale','Anonymous','length','_getNextColor','licenseKeyTrialLimit:revisions','ck-user__marker--','context','users-add-invalid-id','licenseKeyValid','getOperationAuthor','users.anonymousUserId','split','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.','trial-license-key-reached-limit-revisions','avatar','getSelectionClass','licenseKeyTrialLimit:operations','anonymous-user','_isAnonymous','_myId'];(function(_0x56c693,_0x5a7c9b){const _0x355b5f=function(_0x58cfbd){while(--_0x58cfbd){_0x56c693['push'](_0x56c693['shift']());}};_0x355b5f(++_0x5a7c9b);}(_0x5a7c,0x1d0));const _0x355b=function(_0x56c693,_0x5a7c9b){_0x56c693=_0x56c693-0x0;let _0x355b5f=_0x5a7c[_0x56c693];return _0x355b5f;};import{ContextPlugin as _0x3569ef}from'ckeditor5/src/core';import{Collection as _0x503d5f,CKEditorError as _0x124e93}from'ckeditor5/src/utils';import _0x2fb3cb from'./permissions';import{getTranslation as _0x282357}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x3569ef{static get[_0x355b('0x11')](){return _0x355b('0x10');}static get[_0x355b('0x30')](){return[_0x2fb3cb];}constructor(_0x21893c){super(_0x21893c),_0x21893c[_0x355b('0x1f')]['define'](_0x355b('0x6'),_0x355b('0xd')),_0x21893c[_0x355b('0x1f')][_0x355b('0x2a')](_0x355b('0x34'),0x8),this[_0x355b('0x24')]=new _0x503d5f(),this[_0x355b('0x25')]=_0x21893c[_0x355b('0x38')],this[_0x355b('0x20')]=null,this[_0x355b('0x2c')]=0x0,this[_0x355b('0xf')]=null,this[_0x355b('0x23')](_0x355b('0x5'));}[_0x355b('0x28')](){const _0x42bab1=this['context'];this[_0x355b('0x2f')]=_0x42bab1[_0x355b('0x1f')]['get'](_0x355b('0x2f'));const _0x1b54e1=['licenseKeyTrial',_0x355b('0x14'),_0x355b('0x4'),'licenseKeyTrialLimit:operations','licenseKeyTrialLimit:time',_0x355b('0x0')];this[_0x355b('0x20')]=setInterval(()=>{let _0x1cdf54;for(const _0x119ad0 in _0x42bab1){const _0x9805b=_0x42bab1[_0x119ad0];if(_0x1b54e1[_0x355b('0x17')](_0x9805b)){delete _0x42bab1[_0x119ad0],_0x1cdf54=_0x9805b;break;}}if('licenseKeyInvalid'===_0x1cdf54)throw clearInterval(this[_0x355b('0x20')]),new _0x124e93('invalid-license-key',null);if(_0x355b('0x26')===_0x1cdf54&&console['info'](_0x355b('0x8')),_0x355b('0xc')===_0x1cdf54)throw clearInterval(this[_0x355b('0x20')]),new _0x124e93(_0x355b('0x18'),null);if('licenseKeyTrialLimit:time'===_0x1cdf54)throw clearInterval(this[_0x355b('0x20')]),new _0x124e93(_0x355b('0x36'),null);if(_0x355b('0x0')===_0x1cdf54)throw clearInterval(this[_0x355b('0x20')]),new _0x124e93(_0x355b('0x9'),null);_0x355b('0x4')===_0x1cdf54&&clearInterval(this[_0x355b('0x20')]);},0x3e8),this['_addAnonymousUser']();}get['me'](){return null==this[_0x355b('0xf')]?null:this['getUser'](this[_0x355b('0xf')]);}['addUser'](_0x2a8475){if(!(_0x2a8475=Object[_0x355b('0x32')]({},_0x2a8475,{'color':this[_0x355b('0x3b')]()}))['id']||_0x355b('0x16')!=typeof _0x2a8475['id'])throw new _0x124e93(_0x355b('0x3'));if(this['users'][_0x355b('0x21')](_0x2a8475['id']))throw new _0x124e93('users-add-duplicated-id',null,{'id':_0x2a8475['id']});_0x2a8475['name']=function(_0x21d121,_0x1cd2a6=''){return''==(_0x1cd2a6=_0x1cd2a6[_0x355b('0x22')]())?_0x282357(_0x21d121,_0x355b('0x39')):_0x1cd2a6;}(this[_0x355b('0x25')],_0x2a8475['name']);const _0x2d322a=new u(_0x2a8475);return this[_0x355b('0x24')][_0x355b('0x29')](_0x2d322a),_0x2d322a;}[_0x355b('0x1c')](_0x228c99){return this[_0x355b('0x24')]['get'](_0x228c99);}['useAnonymousUser'](){const _0x309493=this[_0x355b('0x2')]['config'][_0x355b('0x1a')](_0x355b('0x6'));this[_0x355b('0xf')]||this['defineMe'](_0x309493);}[_0x355b('0x33')](_0x3087e5){if(this[_0x355b('0xf')])throw new _0x124e93(_0x355b('0x1b'),null);if(!this[_0x355b('0x1c')](_0x3087e5))throw new _0x124e93(_0x355b('0x2d'),null);this[_0x355b('0xf')]=_0x3087e5;}[_0x355b('0x5')](){return this['me'];}[_0x355b('0x19')](){super[_0x355b('0x19')](),clearInterval(this[_0x355b('0x20')]);}[_0x355b('0x3b')](){const _0x12be0a=this[_0x355b('0x2')][_0x355b('0x1f')][_0x355b('0x1a')](_0x355b('0x34'));return this[_0x355b('0x2c')]>=_0x12be0a&&(this['_lastColor']=0x0),new a(this['_lastColor']++);}[_0x355b('0x2b')](){const _0x51548f=this[_0x355b('0x2')][_0x355b('0x1f')]['get'](_0x355b('0x6'));this['addUser']({'id':_0x51548f,'name':_0x282357(this[_0x355b('0x25')],_0x355b('0x39'))})['_isAnonymous']=!0x0;}}class u{constructor(_0x26d04f){this['id']=_0x26d04f['id'],this[_0x355b('0x15')]=_0x26d04f[_0x355b('0x15')],this[_0x355b('0x31')]=_0x26d04f[_0x355b('0x31')],this[_0x355b('0xa')]=_0x26d04f['avatar'],this[_0x355b('0xe')]=!0x1;}get[_0x355b('0x2e')](){return this[_0x355b('0xe')];}get[_0x355b('0x12')](){const _0xca58de=this['name'][_0x355b('0x7')]('\x20');return 0x1===_0xca58de[_0x355b('0x3a')]?this[_0x355b('0x1d')](_0xca58de[0x0]):this[_0x355b('0x1d')](_0xca58de[0x0])+this[_0x355b('0x1d')](_0xca58de[_0xca58de['length']-0x1]);}[_0x355b('0x1d')](_0x420434){return _0x420434[_0x355b('0x27')](0x0)[_0x355b('0x37')]();}}class a{constructor(_0x2f6410){this[_0x355b('0x35')]=_0x2f6410;}['getBackgroundColorClass'](){return'ck-user__bg-color--'+this[_0x355b('0x35')];}[_0x355b('0xb')](){return _0x355b('0x13')+this[_0x355b('0x35')];}[_0x355b('0x1e')](){return _0x355b('0x1')+this['_id'];}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
export function getTranslation(
|
23
|
+
export function getTranslation(_0xcb934f,_0x16b4ab){const t=_0xcb934f['t'];switch(_0x16b4ab){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 _0x9d1f=['element','destroy','submit','once','render','remove','locale','appendChild','_removeConfirm','confirmView','fire','isConfirm','cancel','set','message'];(function(_0x2b9cdf,_0x9d1fb2){var _0x3733a6=function(_0x532774){while(--_0x532774){_0x2b9cdf['push'](_0x2b9cdf['shift']());}};_0x3733a6(++_0x9d1fb2);}(_0x9d1f,0x11b));var _0x3733=function(_0x2b9cdf,_0x9d1fb2){_0x2b9cdf=_0x2b9cdf-0x0;var _0x3733a6=_0x9d1f[_0x2b9cdf];return _0x3733a6;};import _0x5e037b from'./confirmview';export default{'showConfirm'(_0x524195,_0x20170a){return this['confirmView']=new _0x5e037b(this[_0x3733('0x8')]),this[_0x3733('0xb')][_0x3733('0x6')](),this[_0x3733('0xb')][_0x3733('0x1')]=_0x524195,this['confirmView'][_0x3733('0x5')]('cancel',()=>{this[_0x3733('0xa')]();}),this[_0x3733('0xb')][_0x3733('0x5')](_0x3733('0x4'),()=>{this[_0x3733('0xa')]();}),_0x20170a[_0x3733('0x9')](this[_0x3733('0xb')][_0x3733('0x2')]),this['registerChild'](this[_0x3733('0xb')]),this[_0x3733('0x0')]('isConfirm',!0x0),new Promise(_0x412ce4=>this[_0x3733('0xb')]['on'](_0x3733('0x4'),_0x412ce4));},'cancelConfirm'(){this[_0x3733('0xd')]&&this[_0x3733('0xb')][_0x3733('0xc')](_0x3733('0xe'));},'_removeConfirm'(){this['confirmView']['element'][_0x3733('0x7')](),this['deregisterChild'](this[_0x3733('0xb')]),this['isConfirm']=!0x1,this[_0x3733('0xb')][_0x3733('0x3')](),delete this['confirmView'];}};
|
package/src/utils/confirmview.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x340d=['cancelView','icon','ck-thread__remove-confirm-inner','ck-thread__remove-confirm-','submit','_createButtonView','Are\x20you\x20sure?','label','fire','cancel','Yes','bindTemplate','ck-thread__remove-confirm','submitView','execute','setTemplate','message'];(function(_0x324e70,_0x340d12){const _0x399e4d=function(_0x501378){while(--_0x501378){_0x324e70['push'](_0x324e70['shift']());}};_0x399e4d(++_0x340d12);}(_0x340d,0x137));const _0x399e=function(_0x324e70,_0x340d12){_0x324e70=_0x324e70-0x0;let _0x399e4d=_0x340d[_0x324e70];return _0x399e4d;};import{View as _0x55f62f,ButtonView as _0xd4788f}from'ckeditor5/src/ui';import{icons as _0x40ed5b}from'ckeditor5/src/core';import{getTranslation as _0x29551b}from'./common-translations';export default class h extends _0x55f62f{constructor(_0x3a9f35){super(_0x3a9f35);const _0x1fdcd5=this[_0x399e('0x6')];this[_0x399e('0x8')]=this[_0x399e('0x0')](_0x3a9f35,_0x29551b(_0x3a9f35,_0x399e('0x5')),_0x40ed5b['check'],_0x399e('0x10')),this[_0x399e('0xc')]=this[_0x399e('0x0')](_0x3a9f35,_0x29551b(_0x3a9f35,'No'),_0x40ed5b[_0x399e('0x4')],'cancel'),this['set'](_0x399e('0xb'),_0x29551b(_0x3a9f35,_0x399e('0x1'))),this[_0x399e('0xa')]({'tag':'div','attributes':{'class':[_0x399e('0x7')]},'children':[{'tag':'div','attributes':{'class':_0x399e('0xe')},'children':[{'tag':'p','children':[{'text':_0x1fdcd5['to']('message')}]},{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-actions'},'children':[this[_0x399e('0x8')],this[_0x399e('0xc')]]}]}]});}[_0x399e('0x0')](_0x358455,_0x36432c,_0xcaa74c,_0x5b9fa4){const _0x1c49f3=new _0xd4788f(_0x358455);return _0x1c49f3[_0x399e('0x2')]=_0x36432c,_0x1c49f3[_0x399e('0xd')]=_0xcaa74c,_0x1c49f3['extendTemplate']({'attributes':{'class':_0x399e('0xf')+_0x5b9fa4}}),_0x1c49f3['on'](_0x399e('0x9'),()=>this[_0x399e('0x3')](_0x5b9fa4)),_0x1c49f3;}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x1bfa=['\x27Today\x27\x20hh:mma','MM-dd-yyyy\x20hh:mma','function','invalid-date-time-format','\x27Last\x27\x20EEEE\x20hh:mma','string','dateTimeFormat'];(function(_0x5875a7,_0x1bfa9f){const _0x113bfc=function(_0x546856){while(--_0x546856){_0x5875a7['push'](_0x5875a7['shift']());}};_0x113bfc(++_0x1bfa9f);}(_0x1bfa,0x1d7));const _0x113b=function(_0x5875a7,_0x1bfa9f){_0x5875a7=_0x5875a7-0x0;let _0x113bfc=_0x1bfa[_0x5875a7];return _0x113bfc;};import _0x520bf4 from'date-fns/format';import _0x466dda from'date-fns/parseISO';import _0x53e7ed from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x1e3b6c}from'ckeditor5/src/utils';export default function E(_0x1eafc3={}){if(void 0x0!==_0x1eafc3['dateTimeFormat']&&_0x113b('0x0')!=typeof _0x1eafc3['dateTimeFormat'])throw new _0x1e3b6c(_0x113b('0x1'));return _0x3a9357=>{const _0x24108b=_0x113b('0x3')==typeof _0x3a9357?_0x466dda(_0x3a9357):_0x3a9357,_0x50bf1d=new Date(),_0x59ab5a=_0x53e7ed(_0x50bf1d,_0x24108b);return _0x1eafc3['dateTimeFormat']?_0x1eafc3[_0x113b('0x4')](_0x24108b):_0x520bf4(_0x24108b,0x0===_0x59ab5a?_0x113b('0x5'):0x1===_0x59ab5a?'\x27Yesterday\x27\x20hh:mma':_0x59ab5a<0x7?_0x113b('0x2'):_0x113b('0x6'));};}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0xab8e=['markerNameToElements','values','view','name','mapViewToDom','domConverter'];(function(_0x5a60b8,_0xab8ee){const _0xed5f2f=function(_0x278df4){while(--_0x278df4){_0x5a60b8['push'](_0x5a60b8['shift']());}};_0xed5f2f(++_0xab8ee);}(_0xab8e,0x1e0));const _0xed5f=function(_0x5a60b8,_0xab8ee){_0x5a60b8=_0x5a60b8-0x0;let _0xed5f2f=_0xab8e[_0x5a60b8];return _0xed5f2f;};import{first as _0x19f2e2}from'ckeditor5/src/utils';export default function x(_0x2f3e95,_0x1a53a1){const _0x3eedcb=_0x2f3e95['mapper'][_0xed5f('0x0')](_0x1a53a1[_0xed5f('0x3')]),_0x1a9686=_0x19f2e2(_0x3eedcb[_0xed5f('0x1')]());return _0x2f3e95[_0xed5f('0x2')][_0xed5f('0x5')][_0xed5f('0x4')](_0x1a9686);}
|
package/src/utils/trim-html.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x20d3=['slice','push','startsWith','split','replace','indexOf','match','pop','substring','join','length'];(function(_0x20cd84,_0x20d31a){const _0x19c727=function(_0x849e5){while(--_0x849e5){_0x20cd84['push'](_0x20cd84['shift']());}};_0x19c727(++_0x20d31a);}(_0x20d3,0xed));const _0x19c7=function(_0x20cd84,_0x20d31a){_0x20cd84=_0x20cd84-0x0;let _0x19c727=_0x20d3[_0x20cd84];return _0x19c727;};export default function g(_0x553571,{limit:_0x1a53ae,suffix:_0x48739d='...'}){const _0x35d756=[];let _0xb3d1c3=0x0;const _0x3db2d0=_0x553571['replace'](/</g,'\x0a<')[_0x19c7('0x9')](/>/g,'>\x0a')[_0x19c7('0x9')](/^\n/g,'')[_0x19c7('0x9')](/\n$/g,'')[_0x19c7('0x8')]('\x0a');for(let _0x5d0c3d=0x0;_0x5d0c3d<_0x3db2d0[_0x19c7('0x4')];_0x5d0c3d++){let _0x4f6cc3=_0x3db2d0[_0x5d0c3d];const _0x1a481a=z(_0x4f6cc3);if(_0x4f6cc3[_0x19c7('0x7')]('<')){if(_0xb3d1c3>=_0x1a53ae){const _0x59f5ac=_0x4f6cc3[_0x19c7('0x0')](/[a-zA-Z]+/)[0x0];_0x4f6cc3[_0x19c7('0x7')]('</')?(_0x35d756[_0x19c7('0x4')]&&(_0x4f6cc3=''),_0x35d756[_0x19c7('0x1')]()):(_0x35d756[_0x19c7('0x6')](_0x59f5ac),_0x4f6cc3='');}}else{if(_0xb3d1c3>=_0x1a53ae)_0x4f6cc3='';else{if(_0xb3d1c3+_0x1a481a['length']>=_0x1a53ae){let _0x1daad5=_0x1a53ae-_0xb3d1c3;if('\x20'===_0x1a481a[_0x1daad5-0x1])_0x1daad5--;else{const _0x299cbc=_0x1a481a[_0x19c7('0x5')](_0x1daad5)[_0x19c7('0xa')]('\x20');-0x1!==_0x299cbc?_0x1daad5+=_0x299cbc:_0x1daad5=_0x4f6cc3['length'];}_0x4f6cc3=_0x1a481a[_0x19c7('0x5')](0x0,_0x1daad5)[_0x19c7('0x3')]('')+_0x48739d,_0xb3d1c3=_0x1a53ae;}else _0xb3d1c3+=_0x1a481a[_0x19c7('0x4')];}}_0x3db2d0[_0x5d0c3d]=_0x4f6cc3;}return _0x3db2d0[_0x19c7('0x3')]('\x0a')[_0x19c7('0x9')](/\n/g,'');}function z(_0x454615){const _0xff6092=[];for(let _0x4b7eae=0x0;_0x4b7eae<_0x454615[_0x19c7('0x4')];_0x4b7eae++){const _0xd52bd8=_0x454615[_0x19c7('0x2')](_0x4b7eae)['match'](/^&[a-z0-9#]+;/);if(_0xd52bd8){const _0x2793a7=_0xd52bd8[0x0];_0xff6092[_0x19c7('0x6')](_0x2793a7),_0x4b7eae+=_0x2793a7[_0x19c7('0x4')]-0x1;}else _0xff6092['push'](_0x454615[_0x4b7eae]);}return _0xff6092;}
|