@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.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1782=['sort','toString','sign','object','keys','boolean','isArray','string'];(function(_0x47fee,_0x1782d2){const _0x49f343=function(_0x2928c3){while(--_0x2928c3){_0x47fee['push'](_0x47fee['shift']());}};_0x49f343(++_0x1782d2);}(_0x1782,0x65));const _0x49f3=function(_0x47fee,_0x1782d2){_0x47fee=_0x47fee-0x0;let _0x49f343=_0x1782[_0x47fee];return _0x49f343;};export default function b(_0x4f99ee){let _0x45573a=0x0,_0x43a2e2=0x0;for(const _0x5cbfa0 of g(_0x4f99ee))_0x45573a=(_0x45573a<<0x5)-_0x45573a+_0x5cbfa0,_0x45573a&=_0x45573a,[_0x45573a,_0x43a2e2]=[_0x43a2e2,_0x45573a];return O(_0x45573a)+O(_0x43a2e2);}function*j(_0x36675a){_0x36675a?_0x49f3('0x0')==typeof _0x36675a?yield 0x1:Array[_0x49f3('0x1')](_0x36675a)?yield*function*(_0x4d85fd){for(const _0x37a3df of _0x4d85fd)yield*j(_0x37a3df);}(_0x36675a):_0x49f3('0x6')==typeof _0x36675a?yield*g(_0x36675a):_0x49f3('0x2')==typeof _0x36675a?yield*A(_0x36675a):'number'==typeof _0x36675a&&(yield _0x36675a):yield 0x0;}function*g(_0x12ac6a){if(yield M('{'),_0x12ac6a){const _0x397cee=Object[_0x49f3('0x7')](_0x12ac6a)[_0x49f3('0x3')]();for(const _0x2699b0 of _0x397cee){yield*A(_0x2699b0),yield M(':');const _0x2a4894=_0x12ac6a[_0x2699b0];yield*j(_0x2a4894);}}yield M('}');}function*A(_0x3ff80b){yield M('\x22');for(const _0x3e4cbd of _0x3ff80b)yield M(_0x3e4cbd);yield M('\x22');}function M(_0x3526ff){return _0x3526ff['charCodeAt'](0x0);}function O(_0x1eb7a7){return(_0x1eb7a7*=Math[_0x49f3('0x5')](_0x1eb7a7))[_0x49f3('0x4')](0x24);}
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;}
@@ -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;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2f2d=['substring','join','...','split','startsWith','length','match','pop','indexOf','replace','slice','push'];(function(_0x28a50d,_0x2f2d21){const _0x23983d=function(_0x541eca){while(--_0x541eca){_0x28a50d['push'](_0x28a50d['shift']());}};_0x23983d(++_0x2f2d21);}(_0x2f2d,0x10e));const _0x2398=function(_0x28a50d,_0x2f2d21){_0x28a50d=_0x28a50d-0x0;let _0x23983d=_0x2f2d[_0x28a50d];return _0x23983d;};export default function z(_0x19affa,{limit:_0x312c30,suffix:_0x24da62=_0x2398('0x8')}){const _0x59cdc0=[];let _0x2a939a=0x0;const _0x3ce932=_0x19affa[_0x2398('0x3')](/</g,'\x0a<')['replace'](/>/g,'>\x0a')[_0x2398('0x3')](/^\n/g,'')[_0x2398('0x3')](/\n$/g,'')[_0x2398('0x9')]('\x0a');for(let _0x7ceb7d=0x0;_0x7ceb7d<_0x3ce932[_0x2398('0xb')];_0x7ceb7d++){let _0x45c7a5=_0x3ce932[_0x7ceb7d];const _0x1189dc=Z(_0x45c7a5);if(_0x45c7a5[_0x2398('0xa')]('<')){if(_0x2a939a>=_0x312c30){const _0x34cb33=_0x45c7a5[_0x2398('0x0')](/[a-zA-Z]+/);if(!_0x34cb33){_0x3ce932[_0x7ceb7d]='';continue;}const _0x375f8e=_0x34cb33[0x0];_0x45c7a5[_0x2398('0xa')]('</')?(_0x59cdc0[_0x2398('0xb')]&&(_0x45c7a5=''),_0x59cdc0[_0x2398('0x1')]()):(_0x59cdc0[_0x2398('0x5')](_0x375f8e),_0x45c7a5='');}}else{if(_0x2a939a>=_0x312c30)_0x45c7a5='';else{if(_0x2a939a+_0x1189dc['length']>=_0x312c30){let _0x40c5d1=_0x312c30-_0x2a939a;if('\x20'===_0x1189dc[_0x40c5d1-0x1])_0x40c5d1--;else{const _0x4b7daf=_0x1189dc['slice'](_0x40c5d1)[_0x2398('0x2')]('\x20');-0x1!==_0x4b7daf?_0x40c5d1+=_0x4b7daf:_0x40c5d1=_0x45c7a5[_0x2398('0xb')];}_0x45c7a5=_0x1189dc[_0x2398('0x4')](0x0,_0x40c5d1)[_0x2398('0x7')]('')+_0x24da62,_0x2a939a=_0x312c30;}else _0x2a939a+=_0x1189dc[_0x2398('0xb')];}}_0x3ce932[_0x7ceb7d]=_0x45c7a5;}return _0x3ce932[_0x2398('0x7')]('\x0a')[_0x2398('0x3')](/\n/g,'');}function Z(_0x42f1fe){const _0x213219=[];for(let _0x3d2ed6=0x0;_0x3d2ed6<_0x42f1fe[_0x2398('0xb')];_0x3d2ed6++){const _0x49f46d=_0x42f1fe[_0x2398('0x6')](_0x3d2ed6)[_0x2398('0x0')](/^&[a-z0-9#]+;/);if(_0x49f46d){const _0x5bddf7=_0x49f46d[0x0];_0x213219['push'](_0x5bddf7),_0x3d2ed6+=_0x5bddf7['length']-0x1;}else _0x213219[_0x2398('0x5')](_0x42f1fe[_0x3d2ed6]);}return _0x213219;}
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;}