@ckeditor/ckeditor5-collaboration-core 38.1.1 → 38.2.0-alpha.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/package.json +3 -2
- package/src/augmentation.d.ts +34 -34
- package/src/collaborationhistory.d.ts +17 -17
- package/src/collaborationoperation.d.ts +24 -24
- package/src/config.d.ts +98 -98
- package/src/index.d.ts +14 -13
- package/src/index.js +1 -1
- package/src/permissions.d.ts +41 -41
- package/src/permissions.js +1 -1
- package/src/suggestionstyles.d.ts +8 -8
- package/src/users/view/userview.d.ts +12 -12
- package/src/users/view/userview.js +1 -1
- package/src/users.d.ts +146 -146
- package/src/users.js +1 -1
- package/src/utils/common-translations.d.ts +5 -5
- package/src/utils/common-translations.js +1 -1
- package/src/utils/confirmmixin.d.ts +16 -16
- package/src/utils/confirmmixin.js +1 -1
- package/src/utils/confirmview.d.ts +9 -9
- package/src/utils/confirmview.js +1 -1
- package/src/utils/getdatetimeformatter.d.ts +29 -29
- package/src/utils/getdatetimeformatter.js +1 -1
- package/src/utils/getmarkerdomelement.d.ts +21 -21
- package/src/utils/getmarkerdomelement.js +1 -1
- package/src/utils/hashobject.d.ts +4 -4
- package/src/utils/hashobject.js +1 -1
- package/src/utils/sanitizeEditorConfig.d.ts +11 -0
- package/src/utils/sanitizeEditorConfig.js +23 -0
- package/src/utils/trim-html.d.ts +12 -12
- package/src/utils/trim-html.js +1 -1
package/src/utils/hashobject.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x41e2=['string','isArray','object','charCodeAt','boolean','number','keys','toString','sign'];(function(_0x372b4e,_0x41e27f){const _0x15d955=function(_0x50e1de){while(--_0x50e1de){_0x372b4e['push'](_0x372b4e['shift']());}};_0x15d955(++_0x41e27f);}(_0x41e2,0x14b));const _0x15d9=function(_0x372b4e,_0x41e27f){_0x372b4e=_0x372b4e-0x0;let _0x15d955=_0x41e2[_0x372b4e];return _0x15d955;};export default function b(_0x182ecd){let _0x5861ed=0x0,_0x56d021=0x0;for(const _0x5f373a of A(_0x182ecd))_0x5861ed=(_0x5861ed<<0x5)-_0x5861ed+_0x5f373a,_0x5861ed&=_0x5861ed,[_0x5861ed,_0x56d021]=[_0x56d021,_0x5861ed];return q(_0x5861ed)+q(_0x56d021);}function*g(_0xccf5e3){_0xccf5e3?_0x15d9('0x6')==typeof _0xccf5e3?yield 0x1:Array[_0x15d9('0x3')](_0xccf5e3)?yield*function*(_0x2f28a4){for(const _0x3f51cc of _0x2f28a4)yield*g(_0x3f51cc);}(_0xccf5e3):_0x15d9('0x4')==typeof _0xccf5e3?yield*A(_0xccf5e3):_0x15d9('0x2')==typeof _0xccf5e3?yield*M(_0xccf5e3):_0x15d9('0x7')==typeof _0xccf5e3&&(yield _0xccf5e3):yield 0x0;}function*A(_0x28b83d){if(yield O('{'),_0x28b83d){const _0x261d1c=Object[_0x15d9('0x8')](_0x28b83d)['sort']();for(const _0x45ed36 of _0x261d1c){yield*M(_0x45ed36),yield O(':');const _0xdc37b8=_0x28b83d[_0x45ed36];yield*g(_0xdc37b8);}}yield O('}');}function*M(_0x4a65a8){yield O('\x22');for(const _0x543583 of _0x4a65a8)yield O(_0x543583);yield O('\x22');}function O(_0x123856){return _0x123856[_0x15d9('0x5')](0x0);}function q(_0x5caf79){return(_0x5caf79*=Math[_0x15d9('0x1')](_0x5caf79))[_0x15d9('0x0')](0x24);}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/**
|
2
|
+
* @module collaboration-core/utils/common-translations
|
3
|
+
*/
|
4
|
+
import type { Editor, EditorConfig } from 'ckeditor5/src/core';
|
5
|
+
/**
|
6
|
+
* A function that prepares config for internal editors removing all unnecessary plugins like RTC.
|
7
|
+
*
|
8
|
+
* @param editor The instance of the source editor.
|
9
|
+
* @param extraBlackListedPlugins Additional list of plugins that should not be added to the config.
|
10
|
+
*/
|
11
|
+
export default function sanitizeEditorConfig(editor: Editor, extraBlackListedPlugins?: Array<string>): EditorConfig;
|
@@ -0,0 +1,23 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
+
*
|
4
|
+
*
|
5
|
+
*
|
6
|
+
*
|
7
|
+
* +---------------------------------------------------------------------------------+
|
8
|
+
* | |
|
9
|
+
* | Hello stranger! |
|
10
|
+
* | |
|
11
|
+
* | |
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
15
|
+
* | |
|
16
|
+
* | |
|
17
|
+
* +---------------------------------------------------------------------------------+
|
18
|
+
*
|
19
|
+
*
|
20
|
+
*
|
21
|
+
*
|
22
|
+
*/
|
23
|
+
const _0x2572=['constructor','get','WProofreader','string','map','has','config','plugins','toolbar','find','from','removePlugins','DocumentOutline','initialData','RevisionTracker','requires','length','builtinPlugins','names','every','rootsAttributes','pluginName','set','Autosave','extraPlugins','function','includes','name','concat','filter'];(function(_0x3f2f5c,_0x25729e){const _0x52b565=function(_0x304a1a){while(--_0x304a1a){_0x3f2f5c['push'](_0x3f2f5c['shift']());}};_0x52b565(++_0x25729e);}(_0x2572,0x16d));const _0x52b5=function(_0x3f2f5c,_0x25729e){_0x3f2f5c=_0x3f2f5c-0x0;let _0x52b565=_0x2572[_0x3f2f5c];return _0x52b565;};const w=[_0x52b5('0x8'),'context',_0x52b5('0x3'),_0x52b5('0xf')],W=['WebSocketGateway',_0x52b5('0x9'),_0x52b5('0x12'),'WordCount',_0x52b5('0x7'),_0x52b5('0x1b')];function v(_0x37c6ff,_0x117eb1,_0x48d1b8=[]){const _0x1a6b1d=_0x52b5('0x14')==typeof _0x37c6ff?_0x37c6ff[_0x52b5('0x10')]||_0x37c6ff[_0x52b5('0x16')]:_0x37c6ff;if(_0x117eb1[_0x52b5('0x0')](_0x1a6b1d))return _0x117eb1[_0x52b5('0x1a')](_0x1a6b1d);if(_0x117eb1[_0x52b5('0x11')](_0x1a6b1d,!0x0),_0x1a6b1d&&W['concat'](_0x48d1b8)[_0x52b5('0x15')](_0x1a6b1d))return _0x117eb1[_0x52b5('0x11')](_0x1a6b1d,!0x1),!0x1;if(!_0x37c6ff[_0x52b5('0xa')])return _0x117eb1['set'](_0x1a6b1d,!0x0),!0x0;const _0x2df4b0=_0x37c6ff['requires'][_0x52b5('0xe')](_0x4590d3=>v(_0x4590d3,_0x117eb1,_0x48d1b8));return _0x117eb1['set'](_0x1a6b1d,_0x2df4b0),_0x2df4b0;}export default function D(_0x277af9,_0x304ea2){const _0x1806a2={};for(const _0xff614a of _0x277af9['config'][_0x52b5('0xd')]())w[_0x52b5('0x15')](_0xff614a)||(_0x1806a2[_0xff614a]=_0x277af9[_0x52b5('0x1')][_0x52b5('0x1a')](_0xff614a));const _0x5a00d3=_0x1806a2['plugins']||[],_0x25218e=_0x277af9[_0x52b5('0x19')][_0x52b5('0xc')]||[],_0xa68f37=_0x5a00d3[_0x52b5('0xb')]?_0x5a00d3:_0x25218e,_0x5a83eb=_0x1806a2[_0x52b5('0x13')]||[];delete _0x1806a2['extraPlugins'];const _0x219f61=_0x1806a2['removePlugins']||[];delete _0x1806a2[_0x52b5('0x6')];const _0x490404=_0x277af9['_context'][_0x52b5('0x1')][_0x52b5('0x1a')]('plugins')||[],_0x46d7a3=_0xa68f37[_0x52b5('0x17')](_0x5a83eb)[_0x52b5('0x17')](_0x490404)[_0x52b5('0x1d')](_0x1efa45=>_0x52b5('0x1c')==typeof _0x1efa45?_0x25218e[_0x52b5('0x4')](_0x72e52=>_0x72e52['pluginName']==_0x1efa45):_0x1efa45)[_0x52b5('0x18')](_0x983526=>!_0x219f61[_0x52b5('0x15')](_0x983526)),_0x325276=Array[_0x52b5('0x5')](new Set(_0x46d7a3)),_0x4cdc55=new Map();return _0x1806a2[_0x52b5('0x2')]=_0x325276['filter'](_0x1c3178=>v(_0x1c3178,_0x4cdc55,_0x304ea2)),_0x1806a2;}
|
package/src/utils/trim-html.d.ts
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
/**
|
2
|
-
* Trims text inside a html tags and takes care of all closing tags.
|
3
|
-
*
|
4
|
-
* @param html
|
5
|
-
* @param options
|
6
|
-
* @param limit Limit of the characters.
|
7
|
-
* @param suffix
|
8
|
-
*/
|
9
|
-
export default function trimHtml(html: string, { limit, suffix }: {
|
10
|
-
limit: number;
|
11
|
-
suffix?: string;
|
12
|
-
}): string;
|
1
|
+
/**
|
2
|
+
* Trims text inside a html tags and takes care of all closing tags.
|
3
|
+
*
|
4
|
+
* @param html
|
5
|
+
* @param options
|
6
|
+
* @param limit Limit of the characters.
|
7
|
+
* @param suffix
|
8
|
+
*/
|
9
|
+
export default function trimHtml(html: string, { limit, suffix }: {
|
10
|
+
limit: number;
|
11
|
+
suffix?: string;
|
12
|
+
}): string;
|
package/src/utils/trim-html.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x4ce9=['length','split','join','slice','startsWith','replace','...','substring','pop','push','indexOf'];(function(_0x3931a8,_0x4ce984){const _0x2d9a4b=function(_0x4b2561){while(--_0x4b2561){_0x3931a8['push'](_0x3931a8['shift']());}};_0x2d9a4b(++_0x4ce984);}(_0x4ce9,0x154));const _0x2d9a=function(_0x3931a8,_0x4ce984){_0x3931a8=_0x3931a8-0x0;let _0x2d9a4b=_0x4ce9[_0x3931a8];return _0x2d9a4b;};export default function z(_0x1b46fa,{limit:_0x144387,suffix:_0x343c8b=_0x2d9a('0x7')}){const _0x4c69af=[];let _0x376ace=0x0;const _0x5da952=_0x1b46fa[_0x2d9a('0x6')](/</g,'\x0a<')[_0x2d9a('0x6')](/>/g,'>\x0a')[_0x2d9a('0x6')](/^\n/g,'')[_0x2d9a('0x6')](/\n$/g,'')[_0x2d9a('0x2')]('\x0a');for(let _0x95cc20=0x0;_0x95cc20<_0x5da952[_0x2d9a('0x1')];_0x95cc20++){let _0xbc399=_0x5da952[_0x95cc20];const _0x4aa13a=Z(_0xbc399);if(_0xbc399[_0x2d9a('0x5')]('<')){if(_0x376ace>=_0x144387){const _0x50f81f=_0xbc399['match'](/[a-zA-Z]+/);if(!_0x50f81f){_0x5da952[_0x95cc20]='';continue;}const _0x1abaa0=_0x50f81f[0x0];_0xbc399['startsWith']('</')?(_0x4c69af[_0x2d9a('0x1')]&&(_0xbc399=''),_0x4c69af[_0x2d9a('0x9')]()):(_0x4c69af[_0x2d9a('0xa')](_0x1abaa0),_0xbc399='');}}else{if(_0x376ace>=_0x144387)_0xbc399='';else{if(_0x376ace+_0x4aa13a[_0x2d9a('0x1')]>=_0x144387){let _0x29450f=_0x144387-_0x376ace;if('\x20'===_0x4aa13a[_0x29450f-0x1])_0x29450f--;else{const _0x254b2a=_0x4aa13a[_0x2d9a('0x4')](_0x29450f)[_0x2d9a('0x0')]('\x20');-0x1!==_0x254b2a?_0x29450f+=_0x254b2a:_0x29450f=_0xbc399['length'];}_0xbc399=_0x4aa13a[_0x2d9a('0x4')](0x0,_0x29450f)[_0x2d9a('0x3')]('')+_0x343c8b,_0x376ace=_0x144387;}else _0x376ace+=_0x4aa13a['length'];}}_0x5da952[_0x95cc20]=_0xbc399;}return _0x5da952[_0x2d9a('0x3')]('\x0a')[_0x2d9a('0x6')](/\n/g,'');}function Z(_0x500bae){const _0x925ed=[];for(let _0x469c62=0x0;_0x469c62<_0x500bae['length'];_0x469c62++){const _0x2d24e3=_0x500bae[_0x2d9a('0x8')](_0x469c62)['match'](/^&[a-z0-9#]+;/);if(_0x2d24e3){const _0x1795a2=_0x2d24e3[0x0];_0x925ed[_0x2d9a('0xa')](_0x1795a2),_0x469c62+=_0x1795a2[_0x2d9a('0x1')]-0x1;}else _0x925ed[_0x2d9a('0xa')](_0x500bae[_0x469c62]);}return _0x925ed;}
|