@ckeditor/ckeditor5-collaboration-core 40.0.0 → 40.1.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/LICENSE.md +5 -5
- package/package.json +2 -2
- package/src/augmentation.d.ts +38 -38
- package/src/collaborationhistory.d.ts +21 -21
- package/src/collaborationoperation.d.ts +28 -28
- package/src/config.d.ts +102 -102
- package/src/index.d.ts +19 -18
- package/src/index.js +1 -1
- package/src/permissions.d.ts +46 -45
- package/src/permissions.js +1 -1
- package/src/suggestionstyles.d.ts +12 -12
- package/src/users/view/userview.d.ts +16 -16
- package/src/users/view/userview.js +1 -1
- package/src/users.d.ts +161 -161
- package/src/users.js +1 -1
- package/src/utils/common-translations.d.ts +9 -9
- package/src/utils/common-translations.js +1 -1
- package/src/utils/confirmmixin.d.ts +20 -20
- package/src/utils/confirmmixin.js +1 -1
- package/src/utils/confirmview.d.ts +13 -13
- 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 +22 -22
- package/src/utils/getmarkerdomelement.js +1 -1
- package/src/utils/hashobject.d.ts +8 -8
- package/src/utils/hashobject.js +1 -1
- package/src/utils/sanitizeEditorConfig.d.ts +15 -15
- package/src/utils/sanitizeEditorConfig.js +1 -1
- package/src/utils/surroundingmarkersdetector.d.ts +16 -0
- package/src/utils/surroundingmarkersdetector.js +23 -0
- package/src/utils/trim-html.d.ts +16 -16
- package/src/utils/trim-html.js +1 -1
- package/theme/suggestionmarker.css +2 -2
@@ -1,29 +1,29 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
import type { LocaleConfig } from '../config';
|
6
|
-
/**
|
7
|
-
* Returns a function that formats the date to the set format.
|
8
|
-
*
|
9
|
-
* The default formatting can be changed by setting a custom formatting function to `config.locale.dateTimeFormat`.
|
10
|
-
*
|
11
|
-
* ```ts
|
12
|
-
* import format from 'date-fns/format';
|
13
|
-
*
|
14
|
-
* ClassicEditor
|
15
|
-
* .create( document.querySelector( '#editor' ), {
|
16
|
-
* toolbar: {
|
17
|
-
* items: [ 'bold', 'italic', '|', 'comment' ]
|
18
|
-
* },
|
19
|
-
* sidebar: {
|
20
|
-
* container: document.querySelector( '#sidebar' )
|
21
|
-
* },
|
22
|
-
* locale: {
|
23
|
-
* dateTimeFormat: date => format( date, 'dd/MM/yyyy' )
|
24
|
-
* }
|
25
|
-
* } )
|
26
|
-
* .catch( error => console.error( error ) );
|
27
|
-
* ```
|
28
|
-
*/
|
29
|
-
export default function getDateTimeFormatter(localeConfig?: LocaleConfig): (date: Date | string) => string;
|
1
|
+
/**
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
+
*/
|
5
|
+
import type { LocaleConfig } from '../config';
|
6
|
+
/**
|
7
|
+
* Returns a function that formats the date to the set format.
|
8
|
+
*
|
9
|
+
* The default formatting can be changed by setting a custom formatting function to `config.locale.dateTimeFormat`.
|
10
|
+
*
|
11
|
+
* ```ts
|
12
|
+
* import format from 'date-fns/format';
|
13
|
+
*
|
14
|
+
* ClassicEditor
|
15
|
+
* .create( document.querySelector( '#editor' ), {
|
16
|
+
* toolbar: {
|
17
|
+
* items: [ 'bold', 'italic', '|', 'comment' ]
|
18
|
+
* },
|
19
|
+
* sidebar: {
|
20
|
+
* container: document.querySelector( '#sidebar' )
|
21
|
+
* },
|
22
|
+
* locale: {
|
23
|
+
* dateTimeFormat: date => format( date, 'dd/MM/yyyy' )
|
24
|
+
* }
|
25
|
+
* } )
|
26
|
+
* .catch( error => console.error( error ) );
|
27
|
+
* ```
|
28
|
+
*/
|
29
|
+
export default function getDateTimeFormatter(localeConfig?: LocaleConfig): (date: Date | string) => string;
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x43ad=['\x27Last\x27\x20EEEE\x20hh:mma','function','\x27Yesterday\x27\x20hh:mma','dateTimeFormat','\x27Today\x27\x20hh:mma','MM-dd-yyyy\x20hh:mma','invalid-date-time-format'];(function(_0x5f093f,_0x43ad90){const _0x497cbb=function(_0x2b1d93){while(--_0x2b1d93){_0x5f093f['push'](_0x5f093f['shift']());}};_0x497cbb(++_0x43ad90);}(_0x43ad,0x7c));const _0x497c=function(_0x5f093f,_0x43ad90){_0x5f093f=_0x5f093f-0x0;let _0x497cbb=_0x43ad[_0x5f093f];return _0x497cbb;};import _0x581785 from'date-fns/format';import _0x3682fd from'date-fns/parseISO';import _0x2cff41 from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x290564}from'ckeditor5/src/utils';export default function E(_0x3539cf={}){if(void 0x0!==_0x3539cf[_0x497c('0x5')]&&_0x497c('0x3')!=typeof _0x3539cf[_0x497c('0x5')])throw new _0x290564(_0x497c('0x1'));return _0x41b7eb=>{const _0x5e499e='string'==typeof _0x41b7eb?_0x3682fd(_0x41b7eb):_0x41b7eb,_0x48f0e3=new Date(),_0x2ba3f0=_0x2cff41(_0x48f0e3,_0x5e499e);return _0x3539cf[_0x497c('0x5')]?_0x3539cf[_0x497c('0x5')](_0x5e499e):_0x581785(_0x5e499e,0x0===_0x2ba3f0?_0x497c('0x6'):0x1===_0x2ba3f0?_0x497c('0x4'):_0x2ba3f0<0x7?_0x497c('0x2'):_0x497c('0x0'));};}
|
@@ -1,22 +1,22 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
import type { EditingController, Marker } from 'ckeditor5/src/engine';
|
6
|
-
/**
|
7
|
-
* Returns a first DOM element mapped with the marker.
|
8
|
-
*
|
9
|
-
* @param editing Editing controller instance.
|
10
|
-
* @param marker Marker instance.
|
11
|
-
*/
|
12
|
-
export default function getMarkerDomElement(editing: EditingController, marker: Marker): HTMLElement | null;
|
13
|
-
/**
|
14
|
-
* Returns all DOM elements mapped with all given markers. DOM elements are sorted by their client rects in top-most, left-most order.
|
15
|
-
* Returns `null` if `markers` is empty or there are no DOM elements bound with the markers.
|
16
|
-
*
|
17
|
-
* Note, that markers should not intersect.
|
18
|
-
*
|
19
|
-
* @param editing Editing controller instance.
|
20
|
-
* @param markers Markers instances.
|
21
|
-
*/
|
22
|
-
export declare function getAllMarkersDomElementsSorted(editing: EditingController, markers: Array<Marker>): Array<HTMLElement> | null;
|
1
|
+
/**
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
+
*/
|
5
|
+
import type { EditingController, Marker } from 'ckeditor5/src/engine';
|
6
|
+
/**
|
7
|
+
* Returns a first DOM element mapped with the marker.
|
8
|
+
*
|
9
|
+
* @param editing Editing controller instance.
|
10
|
+
* @param marker Marker instance.
|
11
|
+
*/
|
12
|
+
export default function getMarkerDomElement(editing: EditingController, marker: Marker): HTMLElement | null;
|
13
|
+
/**
|
14
|
+
* Returns all DOM elements mapped with all given markers. DOM elements are sorted by their client rects in top-most, left-most order.
|
15
|
+
* Returns `null` if `markers` is empty or there are no DOM elements bound with the markers.
|
16
|
+
*
|
17
|
+
* Note, that markers should not intersect.
|
18
|
+
*
|
19
|
+
* @param editing Editing controller instance.
|
20
|
+
* @param markers Markers instances.
|
21
|
+
*/
|
22
|
+
export declare function getAllMarkersDomElementsSorted(editing: EditingController, markers: Array<Marker>): Array<HTMLElement> | null;
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x4538=['domConverter','filter','length','mapper','sort','name','view','from','markerNameToElements','mapViewToDom','values','item','map'];(function(_0x5f28a8,_0x4538ae){const _0x417710=function(_0x1ea4f0){while(--_0x1ea4f0){_0x5f28a8['push'](_0x5f28a8['shift']());}};_0x417710(++_0x4538ae);}(_0x4538,0x1f4));const _0x4177=function(_0x5f28a8,_0x4538ae){_0x5f28a8=_0x5f28a8-0x0;let _0x417710=_0x4538[_0x5f28a8];return _0x417710;};import{first as _0x54ef67}from'ckeditor5/src/utils';export default function k(_0xe498fc,_0x3e8203){const _0x1b7ec8=_0xe498fc[_0x4177('0xa')][_0x4177('0x2')](_0x3e8203[_0x4177('0xc')]);if(!_0x1b7ec8)return null;const _0x1d8a59=_0x54ef67(_0x1b7ec8[_0x4177('0x4')]());return _0xe498fc[_0x4177('0x0')]['domConverter'][_0x4177('0x3')](_0x1d8a59)||null;}export function getAllMarkersDomElementsSorted(_0x5e3578,_0x5a27ef){if(0x0===_0x5a27ef[_0x4177('0x9')])return null;const _0x476755=[],_0x3fa5e0=_0x5e3578[_0x4177('0x0')][_0x4177('0x7')];for(const _0x491ae2 of _0x5a27ef){const _0x2d061c=_0x5e3578[_0x4177('0xa')]['markerNameToElements'](_0x491ae2[_0x4177('0xc')]);if(!_0x2d061c)continue;const _0x32a16e=Array[_0x4177('0x1')](_0x2d061c)[_0x4177('0x6')](_0x48c533=>_0x3fa5e0[_0x4177('0x3')](_0x48c533))[_0x4177('0x8')](_0x437103=>!!_0x437103);_0x476755['push'](..._0x32a16e);}if(0x0===_0x476755['length'])return null;const _0x3e12ef=[];for(const _0x2f1448 of _0x476755){const _0x4dc2fb=_0x2f1448['getClientRects']()[_0x4177('0x5')](0x0);_0x4dc2fb&&_0x3e12ef['push']({'x':_0x4dc2fb['x'],'y':_0x4dc2fb['y'],'domElement':_0x2f1448});}return 0x0===_0x3e12ef[_0x4177('0x9')]?null:(_0x3e12ef[_0x4177('0xb')]((_0xb1c381,_0x57c3e7)=>_0xb1c381['y']-_0x57c3e7['y']||_0xb1c381['x']-_0x57c3e7['x']),_0x3e12ef['map'](_0x49e0b9=>_0x49e0b9['domElement']));}
|
@@ -1,8 +1,8 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
/**
|
6
|
-
* @module track-changes/utils/hashobject
|
7
|
-
*/
|
8
|
-
export default function hashObject(obj: Record<string, unknown>): string;
|
1
|
+
/**
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
+
*/
|
5
|
+
/**
|
6
|
+
* @module track-changes/utils/hashobject
|
7
|
+
*/
|
8
|
+
export default function hashObject(obj: Record<string, unknown>): string;
|
package/src/utils/hashobject.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x36da=['boolean','object','keys','toString','charCodeAt','sign','string'];(function(_0x4cc31a,_0x36da94){const _0x274a1e=function(_0x51c6af){while(--_0x51c6af){_0x4cc31a['push'](_0x4cc31a['shift']());}};_0x274a1e(++_0x36da94);}(_0x36da,0x1a6));const _0x274a=function(_0x4cc31a,_0x36da94){_0x4cc31a=_0x4cc31a-0x0;let _0x274a1e=_0x36da[_0x4cc31a];return _0x274a1e;};export default function b(_0x3afe89){let _0xd2854=0x0,_0x2c62c3=0x0;for(const _0x71f7d1 of g(_0x3afe89))_0xd2854=(_0xd2854<<0x5)-_0xd2854+_0x71f7d1,_0xd2854&=_0xd2854,[_0xd2854,_0x2c62c3]=[_0x2c62c3,_0xd2854];return O(_0xd2854)+O(_0x2c62c3);}function*j(_0x424408){_0x424408?_0x274a('0x5')==typeof _0x424408?yield 0x1:Array['isArray'](_0x424408)?yield*function*(_0x599cce){for(const _0x518808 of _0x599cce)yield*j(_0x518808);}(_0x424408):_0x274a('0x6')==typeof _0x424408?yield*g(_0x424408):_0x274a('0x4')==typeof _0x424408?yield*A(_0x424408):'number'==typeof _0x424408&&(yield _0x424408):yield 0x0;}function*g(_0x5d2876){if(yield M('{'),_0x5d2876){const _0x911a5c=Object[_0x274a('0x0')](_0x5d2876)['sort']();for(const _0x43b8e4 of _0x911a5c){yield*A(_0x43b8e4),yield M(':');const _0x46827f=_0x5d2876[_0x43b8e4];yield*j(_0x46827f);}}yield M('}');}function*A(_0x523af3){yield M('\x22');for(const _0x12f90c of _0x523af3)yield M(_0x12f90c);yield M('\x22');}function M(_0x4bf549){return _0x4bf549[_0x274a('0x2')](0x0);}function O(_0x3cd833){return(_0x3cd833*=Math[_0x274a('0x3')](_0x3cd833))[_0x274a('0x1')](0x24);}
|
@@ -1,15 +1,15 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
/**
|
6
|
-
* @module collaboration-core/utils/common-translations
|
7
|
-
*/
|
8
|
-
import type { Editor, EditorConfig } from 'ckeditor5/src/core';
|
9
|
-
/**
|
10
|
-
* A function that prepares config for internal editors removing all unnecessary plugins like RTC.
|
11
|
-
*
|
12
|
-
* @param editor The instance of the source editor.
|
13
|
-
* @param extraBlackListedPlugins Additional list of plugins that should not be added to the config.
|
14
|
-
*/
|
15
|
-
export default function sanitizeEditorConfig(editor: Editor, extraBlackListedPlugins?: Array<string>): EditorConfig;
|
1
|
+
/**
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
+
*/
|
5
|
+
/**
|
6
|
+
* @module collaboration-core/utils/common-translations
|
7
|
+
*/
|
8
|
+
import type { Editor, EditorConfig } from 'ckeditor5/src/core';
|
9
|
+
/**
|
10
|
+
* A function that prepares config for internal editors removing all unnecessary plugins like RTC.
|
11
|
+
*
|
12
|
+
* @param editor The instance of the source editor.
|
13
|
+
* @param extraBlackListedPlugins Additional list of plugins that should not be added to the config.
|
14
|
+
*/
|
15
|
+
export default function sanitizeEditorConfig(editor: Editor, extraBlackListedPlugins?: Array<string>): EditorConfig;
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x3b0e=['filter','DocumentOutline','get','requires','set','has','WebSocketGateway','extraPlugins','length','constructor','rootsAttributes','toolbar','names','context','WProofreader','string','find','every','plugins','concat','includes','WordCount','removePlugins','config','pluginName','initialData'];(function(_0x59c1b1,_0x3b0e57){const _0x334383=function(_0x5337a7){while(--_0x5337a7){_0x59c1b1['push'](_0x59c1b1['shift']());}};_0x334383(++_0x3b0e57);}(_0x3b0e,0x1dd));const _0x3343=function(_0x59c1b1,_0x3b0e57){_0x59c1b1=_0x59c1b1-0x0;let _0x334383=_0x3b0e[_0x59c1b1];return _0x334383;};const w=[_0x3343('0x10'),_0x3343('0x4'),_0x3343('0x2'),_0x3343('0x1')],W=[_0x3343('0x17'),'RevisionTracker','Autosave',_0x3343('0xc'),_0x3343('0x12'),_0x3343('0x5')];function v(_0x590e32,_0x529940,_0x3c8a2f,_0x30e9f0=[]){const _0x541453=_0x3343('0x6')==typeof _0x590e32?_0x3c8a2f[_0x3343('0x13')](_0x590e32)[_0x3343('0x0')]:_0x590e32,_0x17e606=_0x541453[_0x3343('0xf')]||_0x541453['name'];if(_0x529940[_0x3343('0x16')](_0x17e606))return _0x529940[_0x3343('0x13')](_0x17e606);if(_0x529940[_0x3343('0x15')](_0x17e606,!0x0),_0x17e606&&W[_0x3343('0xa')](_0x30e9f0)[_0x3343('0xb')](_0x17e606))return _0x529940[_0x3343('0x15')](_0x17e606,!0x1),!0x1;if(!_0x541453[_0x3343('0x14')])return _0x529940[_0x3343('0x15')](_0x17e606,!0x0),!0x0;const _0x18fcf5=_0x541453['requires'][_0x3343('0x8')](_0xffed6f=>v(_0xffed6f,_0x529940,_0x3c8a2f,_0x30e9f0));return _0x529940['set'](_0x17e606,_0x18fcf5),_0x18fcf5;}export default function D(_0x4e6732,_0x1aed28){const _0x2d78a9={};for(const _0x475f51 of _0x4e6732['config'][_0x3343('0x3')]())w[_0x3343('0xb')](_0x475f51)||(_0x2d78a9[_0x475f51]=_0x4e6732[_0x3343('0xe')]['get'](_0x475f51));const _0x4ed7a4=_0x2d78a9[_0x3343('0x9')]||[],_0x397934=_0x4e6732[_0x3343('0x0')]['builtinPlugins']||[],_0x27d33b=_0x4ed7a4[_0x3343('0x19')]?_0x4ed7a4:_0x397934,_0x5ec248=_0x2d78a9[_0x3343('0x18')]||[];delete _0x2d78a9[_0x3343('0x18')];const _0x4f397f=_0x2d78a9[_0x3343('0xd')]||[];delete _0x2d78a9[_0x3343('0xd')];const _0x5e6484=_0x4e6732['_context'][_0x3343('0xe')][_0x3343('0x13')](_0x3343('0x9'))||[],_0x133b6f=_0x27d33b['concat'](_0x5ec248)[_0x3343('0xa')](_0x5e6484)['map'](_0x4cc82e=>'string'==typeof _0x4cc82e?_0x397934[_0x3343('0x7')](_0x45d43b=>_0x45d43b['pluginName']==_0x4cc82e):_0x4cc82e)['filter'](_0x80b2fb=>!_0x4f397f[_0x3343('0xb')](_0x80b2fb)&&!_0x4f397f['includes'](_0x80b2fb[_0x3343('0xf')])),_0x76dc31=Array['from'](new Set(_0x133b6f)),_0x2c4252=new Map();return _0x2d78a9['plugins']=_0x76dc31[_0x3343('0x11')](_0x186792=>v(_0x186792,_0x2c4252,_0x4e6732[_0x3343('0x9')],_0x1aed28)),_0x2d78a9;}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
/**
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
+
*/
|
5
|
+
/**
|
6
|
+
* @module collaboration-core/utils/surroundingmarkersdetector
|
7
|
+
*/
|
8
|
+
import type { Marker, Model } from 'ckeditor5/src/engine';
|
9
|
+
/**
|
10
|
+
* A utility that responds to range changes in the document selection and detects which markers' ranges
|
11
|
+
* touch or contain (surround) the document selection's focus.
|
12
|
+
*/
|
13
|
+
export default function surroundingMarkersDetector(model: Model, onMarkersChange: (changedMarkers: {
|
14
|
+
left: Array<Marker>;
|
15
|
+
entered: Array<Marker>;
|
16
|
+
}) => void): void;
|
@@ -0,0 +1,23 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) 2003-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 _0x30a4=['containsPosition','push','end','getRange','isEqual','change:range','includes','markers','length','focus','document','selection'];(function(_0x25e302,_0x30a47a){const _0x564172=function(_0x23ba1b){while(--_0x23ba1b){_0x25e302['push'](_0x25e302['shift']());}};_0x564172(++_0x30a47a);}(_0x30a4,0x103));const _0x5641=function(_0x25e302,_0x30a47a){_0x25e302=_0x25e302-0x0;let _0x564172=_0x30a4[_0x25e302];return _0x564172;};export default function q(_0x327a59,_0x4a80d4){const _0x42e373=[];_0x327a59[_0x5641('0x3')][_0x5641('0x4')]['on'](_0x5641('0xa'),()=>{const _0x24b494=function(_0x1a22f5,_0x538cac){const _0x12b591=[];for(const _0x43a346 of _0x1a22f5[_0x5641('0x0')]){const _0x24886c=_0x43a346[_0x5641('0x8')]();(_0x24886c[_0x5641('0x5')](_0x538cac)||_0x24886c['start'][_0x5641('0x9')](_0x538cac)||_0x24886c[_0x5641('0x7')]['isEqual'](_0x538cac))&&_0x12b591[_0x5641('0x6')](_0x43a346);}return _0x12b591;}(_0x327a59,_0x327a59[_0x5641('0x3')][_0x5641('0x4')][_0x5641('0x2')]),_0x336c07=[],_0x254e8e=[],_0x53da59=[];for(const _0x4f705c of _0x42e373)_0x24b494[_0x5641('0xb')](_0x4f705c)||_0x336c07[_0x5641('0x6')](_0x4f705c);for(const _0x2b96c3 of _0x24b494)_0x42e373['includes'](_0x2b96c3)||_0x254e8e[_0x5641('0x6')](_0x2b96c3),_0x53da59['push'](_0x2b96c3);(_0x336c07[_0x5641('0x1')]||_0x254e8e[_0x5641('0x1')])&&_0x4a80d4({'left':_0x336c07,'entered':_0x254e8e}),_0x42e373[_0x5641('0x1')]=0x0,_0x42e373[_0x5641('0x6')](..._0x53da59);});}
|
package/src/utils/trim-html.d.ts
CHANGED
@@ -1,16 +1,16 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
/**
|
6
|
-
* Trims text inside a html tags and takes care of all closing tags.
|
7
|
-
*
|
8
|
-
* @param html
|
9
|
-
* @param options
|
10
|
-
* @param limit Limit of the characters.
|
11
|
-
* @param suffix
|
12
|
-
*/
|
13
|
-
export default function trimHtml(html: string, { limit, suffix }: {
|
14
|
-
limit: number;
|
15
|
-
suffix?: string;
|
16
|
-
}): string;
|
1
|
+
/**
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
+
*/
|
5
|
+
/**
|
6
|
+
* Trims text inside a html tags and takes care of all closing tags.
|
7
|
+
*
|
8
|
+
* @param html
|
9
|
+
* @param options
|
10
|
+
* @param limit Limit of the characters.
|
11
|
+
* @param suffix
|
12
|
+
*/
|
13
|
+
export default function trimHtml(html: string, { limit, suffix }: {
|
14
|
+
limit: number;
|
15
|
+
suffix?: string;
|
16
|
+
}): string;
|
package/src/utils/trim-html.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x4743=['indexOf','slice','push','join','...','split','replace','substring','match','startsWith','length','pop'];(function(_0x447c2f,_0x4743ba){const _0x27c7a0=function(_0x3ca80f){while(--_0x3ca80f){_0x447c2f['push'](_0x447c2f['shift']());}};_0x27c7a0(++_0x4743ba);}(_0x4743,0x183));const _0x27c7=function(_0x447c2f,_0x4743ba){_0x447c2f=_0x447c2f-0x0;let _0x27c7a0=_0x4743[_0x447c2f];return _0x27c7a0;};export default function z(_0x2c05c3,{limit:_0x336952,suffix:_0xd4d38e=_0x27c7('0x1')}){const _0x3bb196=[];let _0x22bab8=0x0;const _0x42e8bb=_0x2c05c3[_0x27c7('0x3')](/</g,'\x0a<')[_0x27c7('0x3')](/>/g,'>\x0a')[_0x27c7('0x3')](/^\n/g,'')['replace'](/\n$/g,'')[_0x27c7('0x2')]('\x0a');for(let _0x200b1c=0x0;_0x200b1c<_0x42e8bb[_0x27c7('0x7')];_0x200b1c++){let _0x584e16=_0x42e8bb[_0x200b1c];const _0x5b3ab1=Z(_0x584e16);if(_0x584e16[_0x27c7('0x6')]('<')){if(_0x22bab8>=_0x336952){const _0x52bd32=_0x584e16[_0x27c7('0x5')](/[a-zA-Z]+/);if(!_0x52bd32){_0x42e8bb[_0x200b1c]='';continue;}const _0x1ed9f6=_0x52bd32[0x0];_0x584e16[_0x27c7('0x6')]('</')?(_0x3bb196[_0x27c7('0x7')]&&(_0x584e16=''),_0x3bb196[_0x27c7('0x8')]()):(_0x3bb196[_0x27c7('0xb')](_0x1ed9f6),_0x584e16='');}}else{if(_0x22bab8>=_0x336952)_0x584e16='';else{if(_0x22bab8+_0x5b3ab1['length']>=_0x336952){let _0x24afb1=_0x336952-_0x22bab8;if('\x20'===_0x5b3ab1[_0x24afb1-0x1])_0x24afb1--;else{const _0x150b43=_0x5b3ab1[_0x27c7('0xa')](_0x24afb1)[_0x27c7('0x9')]('\x20');-0x1!==_0x150b43?_0x24afb1+=_0x150b43:_0x24afb1=_0x584e16[_0x27c7('0x7')];}_0x584e16=_0x5b3ab1[_0x27c7('0xa')](0x0,_0x24afb1)[_0x27c7('0x0')]('')+_0xd4d38e,_0x22bab8=_0x336952;}else _0x22bab8+=_0x5b3ab1[_0x27c7('0x7')];}}_0x42e8bb[_0x200b1c]=_0x584e16;}return _0x42e8bb[_0x27c7('0x0')]('\x0a')[_0x27c7('0x3')](/\n/g,'');}function Z(_0xde7f7){const _0x1d71e7=[];for(let _0x2f8365=0x0;_0x2f8365<_0xde7f7[_0x27c7('0x7')];_0x2f8365++){const _0x5289eb=_0xde7f7[_0x27c7('0x4')](_0x2f8365)[_0x27c7('0x5')](/^&[a-z0-9#]+;/);if(_0x5289eb){const _0x5a9ff9=_0x5289eb[0x0];_0x1d71e7[_0x27c7('0xb')](_0x5a9ff9),_0x2f8365+=_0x5a9ff9[_0x27c7('0x7')]-0x1;}else _0x1d71e7['push'](_0xde7f7[_0x2f8365]);}return _0x1d71e7;}
|
@@ -19,8 +19,8 @@
|
|
19
19
|
--ck-color-suggestion-marker-deletion-background-active: hsla(345, 71%, 50%, .5);
|
20
20
|
--ck-color-suggestion-marker-deletion-stroke: hsla(345, 71%, 20%, .5);
|
21
21
|
|
22
|
-
--ck-color-suggestion-marker-format-border: hsla(191,
|
23
|
-
--ck-color-suggestion-marker-format-border-active: hsla(191,
|
22
|
+
--ck-color-suggestion-marker-format-border: hsla(191, 60%, 75%, 1);
|
23
|
+
--ck-color-suggestion-marker-format-border-active: hsla(191, 60%, 60%, 1);
|
24
24
|
|
25
25
|
--ck-color-suggestion-widget-insertion-background: hsla(128, 71%, 65%, .05);
|
26
26
|
--ck-color-suggestion-widget-insertion-background-active: hsla(128, 71%, 50%, .07);
|