@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.
@@ -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 _0x57cb=['MM-dd-yyyy\x20hh:mma','\x27Yesterday\x27\x20hh:mma','function','string','dateTimeFormat','\x27Today\x27\x20hh:mma','\x27Last\x27\x20EEEE\x20hh:mma'];(function(_0x2c0902,_0x57cbb9){const _0x552e1e=function(_0xcbc1b8){while(--_0xcbc1b8){_0x2c0902['push'](_0x2c0902['shift']());}};_0x552e1e(++_0x57cbb9);}(_0x57cb,0x11d));const _0x552e=function(_0x2c0902,_0x57cbb9){_0x2c0902=_0x2c0902-0x0;let _0x552e1e=_0x57cb[_0x2c0902];return _0x552e1e;};import _0x348c8a from'date-fns/format';import _0xd90a19 from'date-fns/parseISO';import _0x2efe87 from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x33a62e}from'ckeditor5/src/utils';export default function E(_0x4ead48={}){if(void 0x0!==_0x4ead48[_0x552e('0x6')]&&_0x552e('0x4')!=typeof _0x4ead48[_0x552e('0x6')])throw new _0x33a62e('invalid-date-time-format');return _0x5832e0=>{const _0x5001e9=_0x552e('0x5')==typeof _0x5832e0?_0xd90a19(_0x5832e0):_0x5832e0,_0x14bd81=new Date(),_0x2c049e=_0x2efe87(_0x14bd81,_0x5001e9);return _0x4ead48[_0x552e('0x6')]?_0x4ead48[_0x552e('0x6')](_0x5001e9):_0x348c8a(_0x5001e9,0x0===_0x2c049e?_0x552e('0x0'):0x1===_0x2c049e?_0x552e('0x3'):_0x2c049e<0x7?_0x552e('0x1'):_0x552e('0x2'));};}
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 _0x2d0c=['view','values','name','push','markerNameToElements','domElement','mapViewToDom','length','mapper','map'];(function(_0x561b4d,_0x2d0c5e){const _0x443363=function(_0x20b47a){while(--_0x20b47a){_0x561b4d['push'](_0x561b4d['shift']());}};_0x443363(++_0x2d0c5e);}(_0x2d0c,0x1ce));const _0x4433=function(_0x561b4d,_0x2d0c5e){_0x561b4d=_0x561b4d-0x0;let _0x443363=_0x2d0c[_0x561b4d];return _0x443363;};import{first as _0x273264}from'ckeditor5/src/utils';export default function k(_0x57e8fb,_0x1a3bc7){const _0x5a1069=_0x57e8fb[_0x4433('0x6')][_0x4433('0x2')](_0x1a3bc7['name']);if(!_0x5a1069)return null;const _0x3d6e57=_0x273264(_0x5a1069[_0x4433('0x9')]());return _0x57e8fb[_0x4433('0x8')]['domConverter'][_0x4433('0x4')](_0x3d6e57)||null;}export function getAllMarkersDomElementsSorted(_0x361b63,_0x288e20){if(0x0===_0x288e20['length'])return null;const _0x4fbcf1=[],_0x2a89c1=_0x361b63[_0x4433('0x8')]['domConverter'];for(const _0x6c07dd of _0x288e20){const _0x5d280b=_0x361b63[_0x4433('0x6')]['markerNameToElements'](_0x6c07dd[_0x4433('0x0')]);if(!_0x5d280b)continue;const _0x1ffa78=Array['from'](_0x5d280b)[_0x4433('0x7')](_0x3a7a6e=>_0x2a89c1['mapViewToDom'](_0x3a7a6e))['filter'](_0xab2d83=>!!_0xab2d83);_0x4fbcf1['push'](..._0x1ffa78);}if(0x0===_0x4fbcf1[_0x4433('0x5')])return null;const _0x37f1ee=[];for(const _0x3dc6c7 of _0x4fbcf1){const _0x131f73=_0x3dc6c7['getClientRects']()['item'](0x0);_0x131f73&&_0x37f1ee[_0x4433('0x1')]({'x':_0x131f73['x'],'y':_0x131f73['y'],'domElement':_0x3dc6c7});}return 0x0===_0x37f1ee[_0x4433('0x5')]?null:(_0x37f1ee['sort']((_0x496a58,_0x4d7619)=>_0x496a58['y']-_0x4d7619['y']||_0x496a58['x']-_0x4d7619['x']),_0x37f1ee[_0x4433('0x7')](_0x18d26c=>_0x18d26c[_0x4433('0x3')]));}
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;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x89a8=['sign','toString','object','string','number','charCodeAt','sort','keys','boolean'];(function(_0x330128,_0x89a8b0){const _0x5e6d23=function(_0x3c848a){while(--_0x3c848a){_0x330128['push'](_0x330128['shift']());}};_0x5e6d23(++_0x89a8b0);}(_0x89a8,0x13a));const _0x5e6d=function(_0x330128,_0x89a8b0){_0x330128=_0x330128-0x0;let _0x5e6d23=_0x89a8[_0x330128];return _0x5e6d23;};export default function b(_0x2a4601){let _0x23ded6=0x0,_0x91676f=0x0;for(const _0x5883ea of g(_0x2a4601))_0x23ded6=(_0x23ded6<<0x5)-_0x23ded6+_0x5883ea,_0x23ded6&=_0x23ded6,[_0x23ded6,_0x91676f]=[_0x91676f,_0x23ded6];return O(_0x23ded6)+O(_0x91676f);}function*j(_0x1c765c){_0x1c765c?_0x5e6d('0x0')==typeof _0x1c765c?yield 0x1:Array['isArray'](_0x1c765c)?yield*function*(_0x3a3aa4){for(const _0x455145 of _0x3a3aa4)yield*j(_0x455145);}(_0x1c765c):_0x5e6d('0x3')==typeof _0x1c765c?yield*g(_0x1c765c):_0x5e6d('0x4')==typeof _0x1c765c?yield*A(_0x1c765c):_0x5e6d('0x5')==typeof _0x1c765c&&(yield _0x1c765c):yield 0x0;}function*g(_0x11662a){if(yield M('{'),_0x11662a){const _0x52d43e=Object[_0x5e6d('0x8')](_0x11662a)[_0x5e6d('0x7')]();for(const _0x2034af of _0x52d43e){yield*A(_0x2034af),yield M(':');const _0x501b59=_0x11662a[_0x2034af];yield*j(_0x501b59);}}yield M('}');}function*A(_0x1d1e35){yield M('\x22');for(const _0x5da9a6 of _0x1d1e35)yield M(_0x5da9a6);yield M('\x22');}function M(_0x196420){return _0x196420[_0x5e6d('0x6')](0x0);}function O(_0x141024){return(_0x141024*=Math[_0x5e6d('0x1')](_0x141024))[_0x5e6d('0x2')](0x24);}
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 _0x53da=['requires','set','length','concat','DocumentOutline','rootsAttributes','string','includes','plugins','extraPlugins','map','RevisionTracker','config','filter','_context','find','initialData','toolbar','has','removePlugins','name','names','pluginName','builtinPlugins','constructor','get'];(function(_0x327841,_0x53da8f){const _0xcf91a1=function(_0x5aba51){while(--_0x5aba51){_0x327841['push'](_0x327841['shift']());}};_0xcf91a1(++_0x53da8f);}(_0x53da,0x138));const _0xcf91=function(_0x327841,_0x53da8f){_0x327841=_0x327841-0x0;let _0xcf91a1=_0x53da[_0x327841];return _0xcf91a1;};const w=[_0xcf91('0x10'),'context',_0xcf91('0x11'),_0xcf91('0x5')],W=['WebSocketGateway',_0xcf91('0xb'),'Autosave','WordCount',_0xcf91('0x4'),'WProofreader'];function v(_0x572ae6,_0x307586,_0x128d08,_0x3d2aa3=[]){const _0x31b0c8=_0xcf91('0x6')==typeof _0x572ae6?_0x128d08[_0xcf91('0x19')](_0x572ae6)['constructor']:_0x572ae6,_0x10a1c6=_0x31b0c8[_0xcf91('0x16')]||_0x31b0c8[_0xcf91('0x14')];if(_0x307586[_0xcf91('0x12')](_0x10a1c6))return _0x307586[_0xcf91('0x19')](_0x10a1c6);if(_0x307586[_0xcf91('0x1')](_0x10a1c6,!0x0),_0x10a1c6&&W[_0xcf91('0x3')](_0x3d2aa3)[_0xcf91('0x7')](_0x10a1c6))return _0x307586[_0xcf91('0x1')](_0x10a1c6,!0x1),!0x1;if(!_0x31b0c8[_0xcf91('0x0')])return _0x307586[_0xcf91('0x1')](_0x10a1c6,!0x0),!0x0;const _0x15f424=_0x31b0c8[_0xcf91('0x0')]['every'](_0x2b9b58=>v(_0x2b9b58,_0x307586,_0x128d08,_0x3d2aa3));return _0x307586[_0xcf91('0x1')](_0x10a1c6,_0x15f424),_0x15f424;}export default function D(_0x88f503,_0x5653d4){const _0x5d5251={};for(const _0x572886 of _0x88f503[_0xcf91('0xc')][_0xcf91('0x15')]())w[_0xcf91('0x7')](_0x572886)||(_0x5d5251[_0x572886]=_0x88f503[_0xcf91('0xc')]['get'](_0x572886));const _0x1d0f7e=_0x5d5251['plugins']||[],_0x2a809d=_0x88f503[_0xcf91('0x18')][_0xcf91('0x17')]||[],_0x66607e=_0x1d0f7e[_0xcf91('0x2')]?_0x1d0f7e:_0x2a809d,_0x54f84f=_0x5d5251[_0xcf91('0x9')]||[];delete _0x5d5251[_0xcf91('0x9')];const _0x27f208=_0x5d5251[_0xcf91('0x13')]||[];delete _0x5d5251['removePlugins'];const _0x3774b9=_0x88f503[_0xcf91('0xe')][_0xcf91('0xc')][_0xcf91('0x19')](_0xcf91('0x8'))||[],_0x3a1ff8=_0x66607e[_0xcf91('0x3')](_0x54f84f)['concat'](_0x3774b9)[_0xcf91('0xa')](_0x15fbe4=>_0xcf91('0x6')==typeof _0x15fbe4?_0x2a809d[_0xcf91('0xf')](_0x28f19b=>_0x28f19b['pluginName']==_0x15fbe4):_0x15fbe4)[_0xcf91('0xd')](_0x47b926=>!_0x27f208['includes'](_0x47b926)),_0x266887=Array['from'](new Set(_0x3a1ff8)),_0x22c76e=new Map();return _0x5d5251[_0xcf91('0x8')]=_0x266887['filter'](_0x5356e0=>v(_0x5356e0,_0x22c76e,_0x88f503[_0xcf91('0x8')],_0x5653d4)),_0x5d5251;}
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);});}
@@ -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;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x11fc=['replace','split','indexOf','startsWith','length','slice','push','match','...','substring','join','pop'];(function(_0x209efe,_0x11fc52){const _0xd5da3=function(_0x58b1da){while(--_0x58b1da){_0x209efe['push'](_0x209efe['shift']());}};_0xd5da3(++_0x11fc52);}(_0x11fc,0xed));const _0xd5da=function(_0x209efe,_0x11fc52){_0x209efe=_0x209efe-0x0;let _0xd5da3=_0x11fc[_0x209efe];return _0xd5da3;};export default function z(_0x1cf12c,{limit:_0x2a138c,suffix:_0x10f8b8=_0xd5da('0xb')}){const _0x5b092f=[];let _0x169d00=0x0;const _0x4aa9b6=_0x1cf12c['replace'](/</g,'\x0a<')[_0xd5da('0x3')](/>/g,'>\x0a')[_0xd5da('0x3')](/^\n/g,'')[_0xd5da('0x3')](/\n$/g,'')[_0xd5da('0x4')]('\x0a');for(let _0x4c9e64=0x0;_0x4c9e64<_0x4aa9b6[_0xd5da('0x7')];_0x4c9e64++){let _0x1c5019=_0x4aa9b6[_0x4c9e64];const _0x4ea49a=Z(_0x1c5019);if(_0x1c5019['startsWith']('<')){if(_0x169d00>=_0x2a138c){const _0x3b0440=_0x1c5019[_0xd5da('0xa')](/[a-zA-Z]+/);if(!_0x3b0440){_0x4aa9b6[_0x4c9e64]='';continue;}const _0x202126=_0x3b0440[0x0];_0x1c5019[_0xd5da('0x6')]('</')?(_0x5b092f['length']&&(_0x1c5019=''),_0x5b092f[_0xd5da('0x2')]()):(_0x5b092f[_0xd5da('0x9')](_0x202126),_0x1c5019='');}}else{if(_0x169d00>=_0x2a138c)_0x1c5019='';else{if(_0x169d00+_0x4ea49a['length']>=_0x2a138c){let _0x1c5514=_0x2a138c-_0x169d00;if('\x20'===_0x4ea49a[_0x1c5514-0x1])_0x1c5514--;else{const _0xb0f3be=_0x4ea49a['slice'](_0x1c5514)[_0xd5da('0x5')]('\x20');-0x1!==_0xb0f3be?_0x1c5514+=_0xb0f3be:_0x1c5514=_0x1c5019[_0xd5da('0x7')];}_0x1c5019=_0x4ea49a[_0xd5da('0x8')](0x0,_0x1c5514)[_0xd5da('0x1')]('')+_0x10f8b8,_0x169d00=_0x2a138c;}else _0x169d00+=_0x4ea49a['length'];}}_0x4aa9b6[_0x4c9e64]=_0x1c5019;}return _0x4aa9b6[_0xd5da('0x1')]('\x0a')['replace'](/\n/g,'');}function Z(_0x32aee5){const _0x488b4a=[];for(let _0x340840=0x0;_0x340840<_0x32aee5[_0xd5da('0x7')];_0x340840++){const _0x1946b2=_0x32aee5[_0xd5da('0x0')](_0x340840)['match'](/^&[a-z0-9#]+;/);if(_0x1946b2){const _0x331605=_0x1946b2[0x0];_0x488b4a[_0xd5da('0x9')](_0x331605),_0x340840+=_0x331605[_0xd5da('0x7')]-0x1;}else _0x488b4a[_0xd5da('0x9')](_0x32aee5[_0x340840]);}return _0x488b4a;}
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, 90%, 40%, .4);
23
- --ck-color-suggestion-marker-format-border-active: hsla(191, 90%, 40%, .65);
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);