@ckeditor/ckeditor5-track-changes 39.0.2 → 40.0.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 +1 -1
- package/README.md +1 -1
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/augmentation.d.ts +40 -40
- package/src/commands/acceptsuggestioncommand.d.ts +24 -24
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.d.ts +24 -24
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.d.ts +24 -24
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.d.ts +24 -24
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.d.ts +26 -26
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.d.ts +16 -16
- package/src/integrations/aiassistant.d.ts +17 -0
- package/src/integrations/aiassistant.js +23 -0
- package/src/integrations/alignment.d.ts +17 -17
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.d.ts +17 -17
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.d.ts +17 -17
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.d.ts +17 -17
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.d.ts +17 -17
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.d.ts +14 -14
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.d.ts +17 -17
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.d.ts +17 -17
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.d.ts +29 -29
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.d.ts +16 -16
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.d.ts +21 -21
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.d.ts +17 -17
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.d.ts +17 -17
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.d.ts +17 -17
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.d.ts +17 -17
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.d.ts +17 -17
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.d.ts +17 -17
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.d.ts +17 -17
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.d.ts +23 -23
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.d.ts +18 -18
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.d.ts +17 -17
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.d.ts +16 -16
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.d.ts +17 -17
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.d.ts +17 -17
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.d.ts +29 -29
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.d.ts +17 -17
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.d.ts +17 -17
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.d.ts +17 -17
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.d.ts +17 -17
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.d.ts +17 -17
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.d.ts +17 -17
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.d.ts +16 -16
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.d.ts +17 -17
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.d.ts +18 -18
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.d.ts +42 -42
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.d.ts +22 -22
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.d.ts +19 -19
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.d.ts +26 -26
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.d.ts +22 -22
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.d.ts +22 -22
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.d.ts +17 -17
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.d.ts +27 -27
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.d.ts +17 -17
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.d.ts +17 -17
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.d.ts +17 -17
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.d.ts +21 -21
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.d.ts +276 -276
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.d.ts +163 -163
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +244 -244
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +75 -75
- package/src/trackchangesdata.d.ts +41 -41
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +468 -467
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.d.ts +38 -38
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.d.ts +37 -37
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.d.ts +170 -170
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.d.ts +182 -182
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.d.ts +9 -9
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.d.ts +30 -30
- package/src/utils/utils.js +1 -1
- package/theme/icons/track-changes-accept.svg +1 -1
- package/theme/icons/track-changes-discard.svg +1 -1
- package/theme/icons/track-changes.svg +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3293=['getRanges','FORMAT_UNDERLINE','FORMAT_ITALIC','locale','strikethrough','commandName','slice','afterInit','editor','markInlineFormat','toLowerCase','BoldEditing','value','code','FORMAT_SUPERSCRIPT','commands','isCollapsed','forceValue','enableCommand','model','UnderlineEditing','StrikethroughEditing','has','format','document','*Format:*\x20%0','get','superscript','plugins','SuperscriptEditing','_descriptionFactory','FORMAT_STRIKETHROUGH','selection','CodeEditing','FORMAT_BOLD','FORMAT_SUBSCRIPT','SubscriptEditing','subscript','FORMAT_CODE'];(function(_0x3a6c97,_0x329359){const _0x1dbc7c=function(_0x11ee6d){while(--_0x11ee6d){_0x3a6c97['push'](_0x3a6c97['shift']());}};_0x1dbc7c(++_0x329359);}(_0x3293,0x159));const _0x1dbc=function(_0x3a6c97,_0x329359){_0x3a6c97=_0x3a6c97-0x0;let _0x1dbc7c=_0x3293[_0x3a6c97];return _0x1dbc7c;};import{Plugin as _0x30573d}from'ckeditor5/src/core';import{getTranslation as _0x4ec84d}from'../utils/common-translations';import{getRangesWithAttribute as _0x44d0e5}from'./utils';const Zt=[_0x1dbc('0x11'),'ItalicEditing',_0x1dbc('0x1a'),_0x1dbc('0x0'),_0x1dbc('0x1b'),_0x1dbc('0x3'),_0x1dbc('0x23')];export default class U extends _0x30573d{[_0x1dbc('0xd')](){const _0x207a18=this[_0x1dbc('0xe')],_0x3afe2e=_0x207a18[_0x1dbc('0x19')],_0x342417=_0x207a18['plugins'][_0x1dbc('0x20')]('TrackChangesEditing'),_0x5e8a0a=_0x207a18[_0x1dbc('0x9')];for(const _0x718ed6 of Zt){if(!_0x207a18[_0x1dbc('0x22')][_0x1dbc('0x1c')](_0x718ed6))continue;const _0x32b8f1=_0x718ed6[_0x1dbc('0xc')](0x0,-0x7)[_0x1dbc('0x10')](),_0x22cc93=_0x207a18[_0x1dbc('0x15')]['get'](_0x32b8f1);_0x342417[_0x1dbc('0x18')](_0x32b8f1,(_0x10b24c,_0x133ed2={})=>{const _0x9e4a=_0x3afe2e[_0x1dbc('0x1e')][_0x1dbc('0x26')];if(_0x9e4a[_0x1dbc('0x16')])return void _0x10b24c(_0x133ed2);const _0x1bf442=void 0x0!==_0x133ed2[_0x1dbc('0x17')]?_0x133ed2[_0x1dbc('0x17')]:!_0x22cc93[_0x1dbc('0x12')];_0x3afe2e['change'](()=>{const _0x4f5568=Array['from'](_0x9e4a[_0x1dbc('0x6')]());for(const _0x1c145d of _0x4f5568){const _0x482329=_0x1bf442?[_0x1c145d]:_0x44d0e5(_0x32b8f1,_0x1c145d,_0x3afe2e);for(const _0x28e7a3 of _0x482329)_0x342417[_0x1dbc('0xf')](_0x28e7a3,{'commandName':_0x32b8f1,'commandParams':[{'forceValue':_0x1bf442}]});}});});}function _0x5c5af(_0x325105,_0x3f55b5){_0x342417[_0x1dbc('0x24')]['registerDescriptionCallback'](_0x33049e=>{const {data:_0x5511ef}=_0x33049e;if(_0x5511ef&&_0x5511ef[_0x1dbc('0xb')]===_0x325105)return _0x5511ef['commandParams'][0x0][_0x1dbc('0x17')]?{'type':_0x1dbc('0x1d'),'content':_0x4ec84d(_0x5e8a0a,_0x1dbc('0x1f'),_0x3f55b5)}:{'type':_0x1dbc('0x1d'),'content':_0x4ec84d(_0x5e8a0a,'*Remove\x20format:*\x20%0',_0x3f55b5)};});}_0x5c5af('bold',_0x4ec84d(_0x5e8a0a,_0x1dbc('0x1'))),_0x5c5af('italic',_0x4ec84d(_0x5e8a0a,_0x1dbc('0x8'))),_0x5c5af('underline',_0x4ec84d(_0x5e8a0a,_0x1dbc('0x7'))),_0x5c5af(_0x1dbc('0x13'),_0x4ec84d(_0x5e8a0a,_0x1dbc('0x5'))),_0x5c5af(_0x1dbc('0xa'),_0x4ec84d(_0x5e8a0a,_0x1dbc('0x25'))),_0x5c5af(_0x1dbc('0x4'),_0x4ec84d(_0x5e8a0a,_0x1dbc('0x2'))),_0x5c5af(_0x1dbc('0x21'),_0x4ec84d(_0x5e8a0a,_0x1dbc('0x14')));}}
|
|
@@ -1,17 +1,17 @@
|
|
|
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/integrations/blockquote
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for block quote feature.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesBlockQuote extends Plugin {
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
afterInit(): void;
|
|
17
|
-
}
|
|
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/integrations/blockquote
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for block quote feature.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesBlockQuote extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3553=['BlockQuoteEditing','editor','blockQuote','afterInit','schema','locale','getSelectedBlocks','checkChild','*Remove\x20format:*\x20%0','enableCommand','filter','model','parent','commandName','ELEMENT_BLOCK_QUOTE','plugins','selection','*Format:*\x20%0','has','format','get','commandParams','forceValue','value','name','change','commands'];(function(_0xf5ca9a,_0x355366){const _0x488795=function(_0x162cb0){while(--_0x162cb0){_0xf5ca9a['push'](_0xf5ca9a['shift']());}};_0x488795(++_0x355366);}(_0x3553,0xa4));const _0x4887=function(_0xf5ca9a,_0x355366){_0xf5ca9a=_0xf5ca9a-0x0;let _0x488795=_0x3553[_0xf5ca9a];return _0x488795;};import{Plugin as _0xd9cfaf}from'ckeditor5/src/core';import{getTranslation as _0xe3a237}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x4aec1a}from'../utils/utils';export default class O extends _0xd9cfaf{[_0x4887('0x1')](){const _0x5c3bce=this[_0x4887('0x1a')],_0x569fce=_0x5c3bce[_0x4887('0x3')];if(!_0x5c3bce[_0x4887('0xd')][_0x4887('0x10')](_0x4887('0x19')))return;const _0x45bc35=_0x5c3bce[_0x4887('0xd')][_0x4887('0x12')]('TrackChangesEditing'),_0x9f680b=this[_0x4887('0x1a')][_0x4887('0x18')][_0x4887('0x12')](_0x4887('0x0'));_0x45bc35[_0x4887('0x7')]('blockQuote',(_0x5abfab,_0x484627={})=>{const _0x7622a4=this[_0x4887('0x1a')]['model']['document'][_0x4887('0xe')],_0x102a1a=_0x484627&&void 0x0!==_0x484627[_0x4887('0x14')]?_0x484627[_0x4887('0x14')]:!_0x9f680b[_0x4887('0x15')];let _0x5ea788=[];if(_0x102a1a){const _0x193b5c=Array['from'](_0x7622a4[_0x4887('0x4')]())['filter'](_0x3c6c92=>oo(_0x3c6c92)||function(_0xaa048f,_0x51c4f8){const _0x226891=_0x51c4f8[_0x4887('0x5')](_0xaa048f['parent'],_0x4887('0x0')),_0x40e5a3=_0x51c4f8[_0x4887('0x5')](['$root',_0x4887('0x0')],_0xaa048f);return _0x226891&&_0x40e5a3;}(_0x3c6c92,this[_0x4887('0x1a')][_0x4887('0x9')][_0x4887('0x2')]));_0x5ea788=_0x4aec1a(_0x193b5c,_0x5c3bce[_0x4887('0x9')]);}else{const _0xb234f7=Array['from'](_0x7622a4[_0x4887('0x4')]())[_0x4887('0x8')](_0x394359=>oo(_0x394359));_0x5ea788=_0x4aec1a(_0xb234f7,_0x5c3bce['model']);}_0x5c3bce[_0x4887('0x9')][_0x4887('0x17')](()=>{for(const _0xbf3024 of _0x5ea788)_0x45bc35['markBlockFormat'](_0xbf3024,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x102a1a}]});});}),_0x45bc35['_descriptionFactory']['registerDescriptionCallback'](_0x4ad9b0=>{const {data:_0x28a08b}=_0x4ad9b0;if(_0x28a08b&&'blockQuote'==_0x28a08b[_0x4887('0xb')]){const _0x456f07=_0xe3a237(_0x569fce,_0x4887('0xc'));return _0x28a08b[_0x4887('0x13')][0x0]['forceValue']?{'type':_0x4887('0x11'),'content':_0xe3a237(_0x569fce,_0x4887('0xf'),_0x456f07)}:{'type':_0x4887('0x11'),'content':_0xe3a237(_0x569fce,_0x4887('0x6'),_0x456f07)};}});}}function oo(_0x27e746){return _0x4887('0x0')==_0x27e746[_0x4887('0xa')][_0x4887('0x16')];}
|
|
@@ -1,17 +1,17 @@
|
|
|
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/integrations/ckbox
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for the CKBox feature.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesCKBox extends Plugin {
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
afterInit(): void;
|
|
17
|
-
}
|
|
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/integrations/ckbox
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for the CKBox feature.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesCKBox extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1fb4=['TrackChangesEditing','ckbox','get','enableCommand','commands','plugins','editor'];(function(_0x493117,_0x1fb4be){const _0x4e19ce=function(_0x1e04c0){while(--_0x1e04c0){_0x493117['push'](_0x493117['shift']());}};_0x4e19ce(++_0x1fb4be);}(_0x1fb4,0x197));const _0x4e19=function(_0x493117,_0x1fb4be){_0x493117=_0x493117-0x0;let _0x4e19ce=_0x1fb4[_0x493117];return _0x4e19ce;};import{Plugin as _0x50cea5}from'ckeditor5/src/core';export default class E extends _0x50cea5{['afterInit'](){const _0x7b10fd=this[_0x4e19('0x5')];_0x7b10fd[_0x4e19('0x3')][_0x4e19('0x1')](_0x4e19('0x0'))&&_0x7b10fd[_0x4e19('0x4')][_0x4e19('0x1')](_0x4e19('0x6'))[_0x4e19('0x2')](_0x4e19('0x0'));}}
|
|
@@ -1,17 +1,17 @@
|
|
|
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/integrations/codeblock
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for code block feature.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesCodeBlock extends Plugin {
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
afterInit(): void;
|
|
17
|
-
}
|
|
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/integrations/codeblock
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for code block feature.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesCodeBlock extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x201e=['from','schema','languages','find','rootElement','_descriptionFactory','plugins','registerElementLabel','afterInit','*Format:*\x20%0','getSelectedBlocks','blockName','format','language','indentCodeBlock','filter','*Remove\x20format:*\x20%0','label','document','enableCommand','forceValue','has','selection','markBlockFormat','commands','locale','checkChild','get','commandParams','CodeBlock','change','isLimit','name','codeBlock','ELEMENT_CODE_BLOCK'];(function(_0x56a9da,_0x201eb9){const _0x302b86=function(_0x1b9375){while(--_0x1b9375){_0x56a9da['push'](_0x56a9da['shift']());}};_0x302b86(++_0x201eb9);}(_0x201e,0x1d0));const _0x302b=function(_0x56a9da,_0x201eb9){_0x56a9da=_0x56a9da-0x0;let _0x302b86=_0x201e[_0x56a9da];return _0x302b86;};import{Plugin as _0x2d8564}from'ckeditor5/src/core';import{getTranslation as _0x5e570e}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x3ceb7f}from'../utils/utils';export default class F extends _0x2d8564{[_0x302b('0x22')](){const _0x4278ad=this['editor'];if(!_0x4278ad[_0x302b('0x20')][_0x302b('0xc')](_0x302b('0x14')))return;const _0x4097c6=_0x4278ad[_0x302b('0x20')]['get']('TrackChangesEditing'),_0x3d80c3=_0x4278ad[_0x302b('0x10')],_0x73cdc8=_0x4278ad['config'][_0x302b('0x12')](_0x302b('0x18'))[_0x302b('0x1c')],_0x8bd656=_0x4278ad[_0x302b('0xf')][_0x302b('0x12')](_0x302b('0x18'));_0x4097c6[_0x302b('0xa')](_0x302b('0x5')),_0x4097c6[_0x302b('0xa')]('outdentCodeBlock'),_0x4097c6[_0x302b('0xa')](_0x302b('0x18'),(_0x376986,_0x466dca={})=>{const _0x4c46bb=_0x4278ad['model'],_0x429cec=_0x4278ad['model'][_0x302b('0x9')][_0x302b('0xd')],_0x320ff9=_0x466dca&&void 0x0!==_0x466dca[_0x302b('0xb')]?_0x466dca[_0x302b('0xb')]:!_0x8bd656['value'];let _0x9cc5cf;_0x466dca[_0x302b('0x4')]||(_0x466dca[_0x302b('0x4')]=_0x73cdc8[0x0][_0x302b('0x4')]),_0x9cc5cf=_0x320ff9?Array[_0x302b('0x1a')](_0x429cec[_0x302b('0x1')]())[_0x302b('0x6')](_0x283708=>co(_0x283708)||function(_0x44880e,_0x17c57d){if(_0x44880e['is'](_0x302b('0x1e'))||_0x17c57d[_0x302b('0x16')](_0x44880e))return!0x1;return _0x17c57d[_0x302b('0x11')](_0x44880e['parent'],_0x302b('0x18'));}(_0x283708,_0x4c46bb[_0x302b('0x1b')])):Array[_0x302b('0x1a')](_0x429cec[_0x302b('0x1')]())[_0x302b('0x6')](_0x4462b6=>co(_0x4462b6));const _0x2f51d6=_0x3ceb7f(_0x9cc5cf,_0x4c46bb);_0x4c46bb[_0x302b('0x15')](()=>{for(const _0x2bb54d of _0x2f51d6)_0x4097c6[_0x302b('0xe')](_0x2bb54d,{'commandName':_0x302b('0x18'),'commandParams':[{..._0x466dca,'forceValue':_0x320ff9}],'formatGroupId':_0x302b('0x2')});});}),(_0x4097c6[_0x302b('0x1f')][_0x302b('0x21')](_0x302b('0x18'),_0xa8408d=>_0x5e570e(_0x3d80c3,_0x302b('0x19'),_0xa8408d)),_0x4097c6[_0x302b('0x1f')]['registerDescriptionCallback'](_0x48fab5=>{const _0x3ebc3e=_0x3d80c3['t'],{type:_0x313c6f,data:_0x26b7b7}=_0x48fab5;if('formatBlock'==_0x313c6f&&_0x26b7b7&&_0x302b('0x18')==_0x26b7b7['commandName']){const _0xfa2822=_0x26b7b7[_0x302b('0x13')][0x0]['language'],_0x2afa4a=_0x3ebc3e(_0x73cdc8[_0x302b('0x1d')](_0x3fa484=>_0x3fa484['language']===_0xfa2822)[_0x302b('0x8')]);return _0x26b7b7[_0x302b('0x13')][0x0]['forceValue']?{'type':_0x302b('0x3'),'content':_0x5e570e(_0x3d80c3,_0x302b('0x0'),_0x5e570e(_0x3d80c3,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2afa4a+')')}:{'type':'format','content':_0x5e570e(_0x3d80c3,_0x302b('0x7'),_0x5e570e(_0x3d80c3,_0x302b('0x19'),0x1))};}}));}}function co(_0x2cdb35){return _0x302b('0x18')==_0x2cdb35[_0x302b('0x17')];}
|
|
@@ -1,14 +1,14 @@
|
|
|
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/integrations/comments
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for {@link module:comments/comments~Comments comments feature}.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesComments extends Plugin {
|
|
13
|
-
afterInit(): void;
|
|
14
|
-
}
|
|
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/integrations/comments
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for {@link module:comments/comments~Comments comments feature}.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesComments extends Plugin {
|
|
13
|
+
afterInit(): void;
|
|
14
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5afc=['addCommentThread','has','get','enableCommand','afterInit','CommentsEditing','TrackChangesEditing','plugins','editor'];(function(_0x5b9792,_0x5afc29){const _0x587a61=function(_0x43f0c8){while(--_0x43f0c8){_0x5b9792['push'](_0x5b9792['shift']());}};_0x587a61(++_0x5afc29);}(_0x5afc,0x1e5));const _0x587a=function(_0x5b9792,_0x5afc29){_0x5b9792=_0x5b9792-0x0;let _0x587a61=_0x5afc[_0x5b9792];return _0x587a61;};import{Plugin as _0x201fa8}from'ckeditor5/src/core';export default class G extends _0x201fa8{[_0x587a('0x5')](){const _0x433240=this[_0x587a('0x0')];if(!_0x433240[_0x587a('0x8')][_0x587a('0x2')](_0x587a('0x6')))return;_0x433240[_0x587a('0x8')][_0x587a('0x3')](_0x587a('0x7'))[_0x587a('0x4')](_0x587a('0x1'));}}
|
|
@@ -1,17 +1,17 @@
|
|
|
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/integrations/deletecommand
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import { Delete } from 'ckeditor5/src/typing';
|
|
10
|
-
/**
|
|
11
|
-
* Provides track changes plugin integration for {@link module:typing/inputcommand~DeleteCommand delete command}. Also
|
|
12
|
-
* provides integration {@link module:engine/model/model~Model#deleteContent} as many features use it internally.
|
|
13
|
-
*/
|
|
14
|
-
export default class TrackChangesDeleteCommand extends Plugin {
|
|
15
|
-
static get requires(): readonly [typeof Delete];
|
|
16
|
-
init(): void;
|
|
17
|
-
}
|
|
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/integrations/deletecommand
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import { Delete } from 'ckeditor5/src/typing';
|
|
10
|
+
/**
|
|
11
|
+
* Provides track changes plugin integration for {@link module:typing/inputcommand~DeleteCommand delete command}. Also
|
|
12
|
+
* provides integration {@link module:engine/model/model~Model#deleteContent} as many features use it internally.
|
|
13
|
+
*/
|
|
14
|
+
export default class TrackChangesDeleteCommand extends Plugin {
|
|
15
|
+
static get requires(): readonly [typeof Delete];
|
|
16
|
+
init(): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x444c=['createRange','$graveyard','unbindElementFromMarkerName','enableCommand','get','end','merge','high','markerName','start','model','fromRange','unit','remove','delete','downcastDispatcher','init','deleteForward','batch','detach','setSelection','rootName','selection','uiElement','lock','forward','buffer','document','mapper','bind','TrackChangesEditing','removeMarker:suggestion:deletion','options','writer','markerNameToElements','addMarker:suggestion:deletion'];(function(_0x3871ae,_0x444c97){const _0x546cb8=function(_0x365d71){while(--_0x365d71){_0x3871ae['push'](_0x3871ae['shift']());}};_0x546cb8(++_0x444c97);}(_0x444c,0x151));const _0x546c=function(_0x3871ae,_0x444c97){_0x3871ae=_0x3871ae-0x0;let _0x546cb8=_0x444c[_0x3871ae];return _0x546cb8;};import{Plugin as _0x40855e}from'ckeditor5/src/core';import{LiveRange as _0x8bcdc1}from'ckeditor5/src/engine';import{Delete as _0x4a4f5d}from'ckeditor5/src/typing';import{downcastSplitMergeMarker as _0x1bc484}from'./utils';export default class L extends _0x40855e{static get['requires'](){return[_0x4a4f5d];}[_0x546c('0x3')](){const _0x3b725b=this['editor'],_0x357b58=_0x3b725b['plugins'][_0x546c('0x1b')](_0x546c('0x11'));_0x357b58[_0x546c('0x1a')](_0x546c('0x1'));const _0x59ac1e=_0x3b725b['commands']['get'](_0x546c('0x4'));_0x357b58[_0x546c('0x1a')](_0x546c('0x4'),(_0x5734b9,_0x2a6c77={})=>{const _0x1a8e41=_0x3b725b[_0x546c('0x21')]['createSelection'](_0x3b725b[_0x546c('0x21')][_0x546c('0xe')][_0x546c('0x9')]);_0x1a8e41['isCollapsed']&&_0x3b725b[_0x546c('0x21')]['modifySelection'](_0x1a8e41,{'direction':_0x546c('0xc'),'unit':_0x2a6c77[_0x546c('0x23')]});const _0x4fdbe1=_0x1a8e41['getFirstRange'](),_0x5546f9=_0x8bcdc1[_0x546c('0x22')](_0x4fdbe1);let _0x3ceb7c;_0x5734b9(_0x2a6c77),_0x3ceb7c=_0x546c('0x18')==_0x5546f9['root'][_0x546c('0x8')]?_0x3b725b[_0x546c('0x21')][_0x546c('0x17')](_0x4fdbe1[_0x546c('0x20')]):_0x3b725b[_0x546c('0x21')][_0x546c('0x17')](_0x5546f9['start'],_0x5546f9['end']),_0x5546f9[_0x546c('0x6')](),_0x3b725b[_0x546c('0x21')]['enqueueChange'](_0x59ac1e[_0x546c('0xd')][_0x546c('0x5')],_0x28c96b=>{_0x59ac1e[_0x546c('0xd')][_0x546c('0xb')](),_0x28c96b[_0x546c('0x7')](_0x28c96b[_0x546c('0x17')](_0x3ceb7c[_0x546c('0x1c')])),_0x59ac1e['buffer']['unlock']();});}),_0x3b725b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_0x1bc484(_0x3b725b,_0x546c('0x1d')),{'priority':'high'}),_0x3b725b['data'][_0x546c('0x2')]['on'](_0x546c('0x16'),(_0x5deb64,_0x18cc25,_0x872f96)=>{_0x872f96[_0x546c('0x13')]['showSuggestionHighlights']&&_0x1bc484(_0x3b725b,_0x546c('0x1d'),{'showActiveMarker':!0x1})[_0x546c('0x10')](this)(_0x5deb64,_0x18cc25,_0x872f96);},{'priority':'high'}),_0x3b725b['editing'][_0x546c('0x2')]['on'](_0x546c('0x12'),(_0x466d91,_0x2e1cfb,_0x3b5539)=>{const _0x453690=_0x3b5539[_0x546c('0xf')][_0x546c('0x15')](_0x2e1cfb[_0x546c('0x1f')]);if(_0x453690)for(const _0x431e8c of _0x453690)_0x431e8c['is'](_0x546c('0xa'))&&(_0x3b5539['mapper'][_0x546c('0x19')](_0x431e8c,_0x2e1cfb[_0x546c('0x1f')]),_0x3b5539[_0x546c('0x14')][_0x546c('0x0')](_0x431e8c));},{'priority':_0x546c('0x1e')});}}
|
|
@@ -1,17 +1,17 @@
|
|
|
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/integrations/documentlist
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for document list feature.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesDocumentList extends Plugin {
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
afterInit(): void;
|
|
17
|
-
}
|
|
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/integrations/documentlist
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for document list feature.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesDocumentList extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e9d=['_suggestionFactory','numberedList','mergeListItemBackward','toUpperCase','markBlockFormat','setSelection','getAttribute','multipleBlocks','document','containsItem','editor','parent','add','outdentList','config','before','getRanges','ELEMENT_BULLETED_LIST','hasAttribute','*Format:*\x20insert\x20into\x20%0','get','indentList','execute','isObject','has','*Indent:*\x20%0','listType','value','end','forceValue','deletion','previousSibling','getSelectedBlocks','next','from','createPositionAt','commands','createRange','findIndex','fromRange','_LIST','after','splitListItemBefore','*Format:*\x20remove\x20from\x20%0','TrackChangesEditing','format','registerCustomCallback','selection','*Outdent:*\x20%0','commandParams','enableCommand','nodeAfter','list.multiBlock','listItemId','registerElementLabel','_descriptionFactory','model','bulletedList','documentList','*Merge:*\x20%0','commandName','start','getFirstRange','plugins','markMultiRangeBlockFormat','ELEMENT_LIST_ITEM','formatBlock','nextSibling','refresh','push','change','listIndent','afterInit','DocumentListEditing'];(function(_0x131c6b,_0x5e9d3b){const _0x3b63d4=function(_0x1c5697){while(--_0x1c5697){_0x131c6b['push'](_0x131c6b['shift']());}};_0x3b63d4(++_0x5e9d3b);}(_0x5e9d,0xb4));const _0x3b63=function(_0x131c6b,_0x5e9d3b){_0x131c6b=_0x131c6b-0x0;let _0x3b63d4=_0x5e9d[_0x131c6b];return _0x3b63d4;};import{Plugin as _0x557346}from'ckeditor5/src/core';import{getTranslation as _0x5e3f9d}from'../utils/common-translations';import{LiveRange as _0x5b4cad}from'ckeditor5/src/engine';export default class q extends _0x557346{[_0x3b63('0x28')](){const _0x264d59=this[_0x3b63('0x34')];if(!_0x264d59[_0x3b63('0x1f')][_0x3b63('0x42')](_0x3b63('0x29')))return;const _0x4952a7=_0x264d59['locale'],_0x3e4e36=_0x264d59[_0x3b63('0x1f')][_0x3b63('0x3e')](_0x3b63('0xc')),_0x46a5f6=_0x264d59[_0x3b63('0x1f')][_0x3b63('0x3e')]('DocumentListUtils');function _0x20b1c4(_0x178ff8){return()=>{const _0x582bac=_0x264d59[_0x3b63('0x4')][_0x3b63('0x3e')](_0x178ff8);if(_0x582bac[_0x3b63('0x45')]&&!_0x264d59[_0x3b63('0x38')][_0x3b63('0x3e')]('list.multiBlock'))return void _0x264d59['execute']('paragraph',{});let _0x53ec1b=Array['from'](_0x264d59[_0x3b63('0x18')][_0x3b63('0x32')][_0x3b63('0xf')][_0x3b63('0x0')]());if(_0x547829(_0x178ff8)){_0x53ec1b=_0x46a5f6['expandListBlocksToCompleteList'](_0x53ec1b);const _0x114a69=[];for(const _0x529451 of _0x53ec1b)_0x46a5f6['isFirstBlockOfListItem'](_0x529451)&&_0x114a69[_0x3b63('0x25')](_0x529451);_0x53ec1b=_0x114a69;}_0x264d59['model']['change'](()=>{_0x3e4e36[_0x3b63('0x20')](_0x53ec1b,{'commandName':_0x178ff8,'commandParams':[{'forceValue':!_0x582bac['value']}],'formatGroupId':'listType'},[],_0x3b63('0x1a'));});};}function _0xbbdd1(_0x3414d8){return()=>{const _0x4b2588=function(_0xe0ce72){let _0x5e27fa=Array[_0x3b63('0x2')](_0xe0ce72);const _0x219ed4=_0x5e27fa[_0x3b63('0x6')](_0x414f79=>!_0x414f79[_0x3b63('0x3c')](_0x3b63('0x15')));return _0x219ed4>-0x1&&(_0x5e27fa=_0x5e27fa['slice'](0x0,_0x219ed4)),_0x5e27fa;}(_0x264d59['model']['document'][_0x3b63('0xf')][_0x3b63('0x0')]()),_0x2b4815=_0x4b2588[_0x4b2588['length']-0x1],_0x19fcde=_0x264d59[_0x3b63('0x18')]['schema'][_0x3b63('0x41')](_0x2b4815)?_0x3b63('0x9'):_0x3b63('0x46'),_0x3d1573=_0x264d59[_0x3b63('0x18')]['createRange'](_0x264d59[_0x3b63('0x18')]['createPositionAt'](_0x4b2588[0x0],_0x3b63('0x39')),_0x264d59[_0x3b63('0x18')][_0x3b63('0x3')](_0x2b4815,_0x19fcde));_0x264d59[_0x3b63('0x18')]['change'](()=>{_0x3e4e36[_0x3b63('0x2e')](_0x3d1573,{'commandName':_0x3414d8,'commandParams':[],'formatGroupId':_0x3b63('0x44')},function(_0x1dfa99){const _0x118556=new Set();for(const _0xffdc57 of _0x1dfa99){let _0x4c93f7=_0xffdc57[_0x3b63('0x23')];for(;_0x4c93f7&&_0x4c93f7['getAttribute'](_0x3b63('0x27'))>_0xffdc57[_0x3b63('0x30')](_0x3b63('0x27'));)_0x118556[_0x3b63('0x36')](_0x4c93f7),_0x4c93f7=_0x4c93f7[_0x3b63('0x23')];}return Array[_0x3b63('0x2')](_0x118556);}(_0x4b2588));});};}function _0x3ac112(_0x5cb44a){return()=>{const _0x685045=_0x264d59[_0x3b63('0x18')][_0x3b63('0x32')][_0x3b63('0xf')][_0x3b63('0x0')]()[_0x3b63('0x1')]()[_0x3b63('0x45')],_0x2494e7=_0x264d59[_0x3b63('0x18')]['createPositionAt'](_0x685045,_0x3b63('0x39')),_0x18b1df=_0x264d59['model'][_0x3b63('0x3')](_0x685045,0x0),_0x376323=_0x264d59['model']['createRange'](_0x2494e7,_0x18b1df);_0x264d59['model'][_0x3b63('0x26')](()=>{_0x3e4e36[_0x3b63('0x2e')](_0x376323,{'commandName':_0x5cb44a,'commandParams':[],'formatGroupId':_0x3b63('0x44')});});};}function _0x547829(_0x4fa7ac){const _0x2f8a70=_0x264d59[_0x3b63('0x4')][_0x3b63('0x3e')]('bulletedList')['value'],_0x4c6f47=_0x264d59['commands'][_0x3b63('0x3e')](_0x3b63('0x2b'))[_0x3b63('0x45')];return _0x3b63('0x2b')===_0x4fa7ac?_0x2f8a70:_0x4c6f47;}_0x3e4e36[_0x3b63('0x12')](_0x3b63('0x2b'),_0x20b1c4(_0x3b63('0x2b'))),_0x3e4e36['enableCommand'](_0x3b63('0x19'),_0x20b1c4(_0x3b63('0x19'))),_0x3e4e36['enableCommand']('indentList',_0xbbdd1(_0x3b63('0x3f'))),_0x3e4e36[_0x3b63('0x12')](_0x3b63('0x37'),_0xbbdd1('outdentList')),_0x3e4e36['enableCommand']('splitListItemAfter',_0x3ac112('splitListItemAfter')),_0x3e4e36[_0x3b63('0x12')](_0x3b63('0xa'),_0x3ac112(_0x3b63('0xa'))),_0x3e4e36['_descriptionFactory'][_0x3b63('0x16')](function(_0x2d2eaf){const _0x1d892b=!_0x264d59[_0x3b63('0x18')]['schema'][_0x3b63('0x41')](_0x2d2eaf),_0x431917=_0x2d2eaf[_0x3b63('0x49')],_0x447d05=_0x2d2eaf[_0x3b63('0x23')],_0x39931b=_0x2d2eaf[_0x3b63('0x30')]('listItemId'),_0x4502bc=!_0x431917||_0x431917['getAttribute'](_0x3b63('0x15'))!==_0x39931b,_0x536db7=!_0x447d05||_0x447d05[_0x3b63('0x30')]('listItemId')!==_0x39931b;return _0x1d892b&&Boolean(_0x39931b)&&_0x4502bc&&_0x536db7;},_0x28c29c=>_0x5e3f9d(_0x4952a7,_0x3b63('0x21'),_0x28c29c)),_0x3e4e36[_0x3b63('0x17')]['registerDescriptionCallback'](function(_0x505cc5){const {data:_0x3ba178}=_0x505cc5;if(!_0x3ba178)return;let _0x2e1803,_0x453293,_0x5247a7,_0x53c557;switch(_0x3ba178[_0x3b63('0x1c')]){case'bulletedList':_0x5247a7=_0x3ba178['commandParams'][0x0][_0x3b63('0x47')],_0x53c557=_0x547829(_0x3ba178['commandName']),_0x2e1803=_0x5247a7?_0x3b63('0x3d'):_0x3b63('0xb'),!_0x53c557&&_0x264d59[_0x3b63('0x38')]['get'](_0x3b63('0x14'))||(_0x2e1803='*Change\x20to:*\x20%0'),_0x453293={'type':_0x3b63('0xd'),'content':_0x5e3f9d(_0x4952a7,_0x2e1803,_0x5e3f9d(_0x4952a7,_0x3b63('0x3b')))};break;case _0x3b63('0x2b'):_0x5247a7=_0x3ba178[_0x3b63('0x11')][0x0][_0x3b63('0x47')],_0x53c557=_0x547829(_0x3ba178['commandName']),_0x2e1803=_0x5247a7?_0x3b63('0x3d'):_0x3b63('0xb'),!_0x53c557&&_0x264d59[_0x3b63('0x38')][_0x3b63('0x3e')](_0x3b63('0x14'))||(_0x2e1803='*Change\x20to:*\x20%0'),_0x453293={'type':_0x3b63('0xd'),'content':_0x5e3f9d(_0x4952a7,_0x2e1803,_0x5e3f9d(_0x4952a7,'ELEMENT_NUMBERED_LIST'))};break;case _0x3b63('0x3f'):_0x2e1803=_0x3b63('0x43'),_0x453293={'type':_0x3b63('0xd'),'content':_0x5e3f9d(_0x4952a7,_0x2e1803,_0x5e3f9d(_0x4952a7,_0x3b63('0x21')))};break;case _0x3b63('0x37'):_0x2e1803=function(_0x58782f){const _0x49895c=_0x58782f['getFirstRange']();let _0x178b70=_0x49895c[_0x3b63('0x1d')]['nodeAfter'];for(;_0x178b70&&_0x49895c[_0x3b63('0x33')](_0x178b70);){if(_0x178b70[_0x3b63('0x30')]('listIndent')>0x0)return!0x1;_0x178b70=_0x178b70[_0x3b63('0x23')];}return!0x0;}(_0x505cc5)?_0x5e3f9d(_0x4952a7,_0x3b63('0xb'),_0x5e3f9d(_0x4952a7,function(_0x57a2dc){const _0x2823d7=_0x57a2dc[_0x3b63('0x1e')]()[_0x3b63('0x1d')]['nodeAfter'];return'ELEMENT_'+_0x2823d7[_0x3b63('0x30')](_0x3b63('0x44'))[_0x3b63('0x2d')]()+_0x3b63('0x8');}(_0x505cc5))):_0x5e3f9d(_0x4952a7,_0x3b63('0x10'),_0x5e3f9d(_0x4952a7,_0x3b63('0x21'))),_0x453293={'type':_0x3b63('0xd'),'content':_0x2e1803};break;case _0x3b63('0x2c'):case'mergeListItemForward':!0x1===_0x3ba178[_0x3b63('0x31')]&&(_0x2e1803=_0x3b63('0x1b'),_0x453293={'type':_0x3b63('0x48'),'content':_0x5e3f9d(_0x4952a7,_0x2e1803,_0x5e3f9d(_0x4952a7,'ELEMENT_LIST_ITEM'))});}return _0x453293;}),_0x3e4e36[_0x3b63('0x2a')][_0x3b63('0xe')](_0x3b63('0x22'),_0x3b63('0x1a'),'accept',function(_0x36e2d5,_0x1a78dc){const _0x12042e=[];for(let _0x5a657a of _0x36e2d5)_0x5a657a[_0x3b63('0x1d')][_0x3b63('0x13')]===_0x5a657a[_0x3b63('0x46')][_0x3b63('0x35')]&&(_0x5a657a=_0x264d59[_0x3b63('0x18')][_0x3b63('0x5')](_0x264d59[_0x3b63('0x18')][_0x3b63('0x3')](_0x5a657a['start'][_0x3b63('0x13')],0x0))),_0x12042e[_0x3b63('0x25')](_0x5a657a);_0x264d59[_0x3b63('0x18')][_0x3b63('0x26')](_0x4c5cd0=>{const _0x3cc430=_0x264d59[_0x3b63('0x18')][_0x3b63('0x32')][_0x3b63('0xf')],_0x13d677=Array[_0x3b63('0x2')](_0x3cc430[_0x3b63('0x3a')]())['map'](_0x5b4e31=>_0x5b4cad[_0x3b63('0x7')](_0x5b4e31));_0x4c5cd0[_0x3b63('0x2f')](_0x12042e),_0x264d59['commands'][_0x3b63('0x3e')](_0x1a78dc[_0x3b63('0x1c')])[_0x3b63('0x24')](),_0x1a78dc['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x264d59[_0x3b63('0x40')](_0x1a78dc[_0x3b63('0x1c')],..._0x1a78dc['commandParams']),_0x4c5cd0[_0x3b63('0x2f')](_0x13d677);for(const _0x26c2e2 of _0x13d677)_0x26c2e2['detach']();});});}}
|
|
@@ -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
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/documentlistproperties
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import type { Description } from '../suggestiondescriptionfactory';
|
|
10
|
-
import type Suggestion from '../suggestion';
|
|
11
|
-
/**
|
|
12
|
-
* Provides track changes plugin integration for document list properties feature.
|
|
13
|
-
*/
|
|
14
|
-
export default class TrackChangesDocumentListProperties extends Plugin {
|
|
15
|
-
/**
|
|
16
|
-
* @inheritDoc
|
|
17
|
-
*/
|
|
18
|
-
afterInit(): void;
|
|
19
|
-
handleListStyleCommand(executeCommand: Function, options?: {
|
|
20
|
-
type?: string | null;
|
|
21
|
-
}): void;
|
|
22
|
-
handleListReversedCommand(executeCommand: Function, options?: {
|
|
23
|
-
reversed?: boolean;
|
|
24
|
-
}): void;
|
|
25
|
-
handleListStartCommand(executeCommand: Function, options?: {
|
|
26
|
-
startIndex?: number;
|
|
27
|
-
}): void;
|
|
28
|
-
handleDescriptions(suggestion: Suggestion): Description | undefined;
|
|
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
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/documentlistproperties
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import type { Description } from '../suggestiondescriptionfactory';
|
|
10
|
+
import type Suggestion from '../suggestion';
|
|
11
|
+
/**
|
|
12
|
+
* Provides track changes plugin integration for document list properties feature.
|
|
13
|
+
*/
|
|
14
|
+
export default class TrackChangesDocumentListProperties extends Plugin {
|
|
15
|
+
/**
|
|
16
|
+
* @inheritDoc
|
|
17
|
+
*/
|
|
18
|
+
afterInit(): void;
|
|
19
|
+
handleListStyleCommand(executeCommand: Function, options?: {
|
|
20
|
+
type?: string | null;
|
|
21
|
+
}): void;
|
|
22
|
+
handleListReversedCommand(executeCommand: Function, options?: {
|
|
23
|
+
reversed?: boolean;
|
|
24
|
+
}): void;
|
|
25
|
+
handleListStartCommand(executeCommand: Function, options?: {
|
|
26
|
+
startIndex?: number;
|
|
27
|
+
}): void;
|
|
28
|
+
handleDescriptions(suggestion: Suggestion): Description | undefined;
|
|
29
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x42be=['numbered','*Format:*\x20set\x20order\x20to\x20regular','listStart','_getSuggestionBlocksForListStyle','format','TrackChangesEditing','handleListReversedCommand','reversed','bind','config','editor','startIndex','listType','*Format:*\x20set\x20start\x20index\x20to\x20%0','isListItemBlock','listStyle','handleListStyleCommand','selection','type','toUpperCase','getSelectedBlocks','commandName','list.properties','has','*Change\x20to:*\x20%0','from','expandListBlocksToCompleteList','_descriptionFactory','get','handleListStartCommand','document','replace','getAttribute','length','DocumentListPropertiesUtils','handleDescriptions','locale','DocumentListUtils','ELEMENT_','_getSuggestionBlocks','plugins','change','listReversed','commandParams','styles','_LIST_','enableCommand','markMultiRangeBlockFormat','model','_getTranslationKeyForListStyle','push','filter'];(function(_0x185820,_0x42be38){const _0x22da2e=function(_0x585436){while(--_0x585436){_0x185820['push'](_0x185820['shift']());}};_0x22da2e(++_0x42be38);}(_0x42be,0xca));const _0x22da=function(_0x185820,_0x42be38){_0x185820=_0x185820-0x0;let _0x22da2e=_0x42be[_0x185820];return _0x22da2e;};import{Plugin as _0x1da21b}from'ckeditor5/src/core';import{getTranslation as _0x4a805d}from'../utils/common-translations';export default class Ct extends _0x1da21b{['afterInit'](){if(!this[_0x22da('0x10')][_0x22da('0x2e')][_0x22da('0x1d')]('DocumentListPropertiesEditing'))return;const _0x10d373=this[_0x22da('0x10')][_0x22da('0xf')][_0x22da('0x22')](_0x22da('0x1c')),_0xfd93d1=this[_0x22da('0x10')][_0x22da('0x2e')][_0x22da('0x22')](_0x22da('0xb'));_0x10d373[_0x22da('0x32')]&&_0xfd93d1[_0x22da('0x0')](_0x22da('0x15'),this['handleListStyleCommand'][_0x22da('0xe')](this)),_0x10d373[_0x22da('0xd')]&&_0xfd93d1['enableCommand'](_0x22da('0x30'),this[_0x22da('0xc')][_0x22da('0xe')](this)),_0x10d373[_0x22da('0x11')]&&_0xfd93d1[_0x22da('0x0')](_0x22da('0x8'),this['handleListStartCommand'][_0x22da('0xe')](this)),_0xfd93d1[_0x22da('0x21')]['registerDescriptionCallback'](this['handleDescriptions'][_0x22da('0xe')](this));}[_0x22da('0x16')](_0x79c5bc,_0x3d8718={}){const _0x1b9c2b=this[_0x22da('0x10')][_0x22da('0x2e')][_0x22da('0x22')](_0x22da('0xb')),_0x48eb02=this[_0x22da('0x9')]();this[_0x22da('0x10')]['model'][_0x22da('0x2f')](()=>{_0x1b9c2b[_0x22da('0x1')](_0x48eb02,{'commandName':_0x22da('0x15'),'commandParams':[{'type':_0x3d8718[_0x22da('0x18')]}],'formatGroupId':_0x22da('0x15')});});}[_0x22da('0xc')](_0x4a0a60,_0x37b599={}){const _0x11a7f3=this[_0x22da('0x10')][_0x22da('0x2e')][_0x22da('0x22')](_0x22da('0xb')),_0x1ddda4=this['editor'][_0x22da('0x2e')]['get'](_0x22da('0x2b')),_0x4825f0=this['_getSuggestionBlocks'](_0x180a6c=>_0x1ddda4[_0x22da('0x14')](_0x180a6c)&&_0x22da('0x6')===_0x180a6c['getAttribute'](_0x22da('0x12')));null!==_0x4825f0&&this[_0x22da('0x10')][_0x22da('0x2')][_0x22da('0x2f')](()=>{_0x11a7f3[_0x22da('0x1')](_0x4825f0,{'commandName':_0x22da('0x30'),'commandParams':[{'reversed':_0x37b599[_0x22da('0xd')]}],'formatGroupId':_0x22da('0x30')});});}[_0x22da('0x23')](_0x1287e8,_0x4cab60={}){const _0x19f89d=this[_0x22da('0x10')]['plugins'][_0x22da('0x22')](_0x22da('0xb')),_0x12d166=this['editor'][_0x22da('0x2e')][_0x22da('0x22')]('DocumentListUtils'),_0x4fc453=this['_getSuggestionBlocks'](_0x2ebf9d=>_0x12d166[_0x22da('0x14')](_0x2ebf9d)&&_0x22da('0x6')===_0x2ebf9d[_0x22da('0x26')](_0x22da('0x12')));null!==_0x4fc453&&this[_0x22da('0x10')]['model']['change'](()=>{_0x19f89d[_0x22da('0x1')](_0x4fc453,{'commandName':_0x22da('0x8'),'commandParams':[{'startIndex':_0x4cab60[_0x22da('0x11')]}],'formatGroupId':_0x22da('0x8')});});}[_0x22da('0x29')](_0x1d8d8f){const _0x181598=this[_0x22da('0x10')][_0x22da('0x2a')],{data:_0x8ddb8f}=_0x1d8d8f;if(!_0x8ddb8f)return;let _0x3a37e7,_0x42adb3;switch(_0x8ddb8f[_0x22da('0x1b')]){case'listStyle':_0x3a37e7=_0x22da('0x1e'),_0x42adb3={'type':_0x22da('0xa'),'content':_0x4a805d(_0x181598,_0x3a37e7,_0x4a805d(_0x181598,this[_0x22da('0x3')](_0x8ddb8f[_0x22da('0x31')][0x0][_0x22da('0x18')])))};break;case _0x22da('0x30'):_0x3a37e7=_0x8ddb8f[_0x22da('0x31')][0x0][_0x22da('0xd')]?'*Format:*\x20set\x20order\x20to\x20reversed':_0x22da('0x7'),_0x42adb3={'type':_0x22da('0xa'),'content':_0x4a805d(_0x181598,_0x3a37e7)};break;case _0x22da('0x8'):_0x3a37e7=_0x22da('0x13'),_0x42adb3={'type':_0x22da('0xa'),'content':_0x4a805d(_0x181598,_0x3a37e7,_0x8ddb8f['commandParams'][0x0][_0x22da('0x11')])};}return _0x42adb3;}[_0x22da('0x9')](){const _0x15cd07=this['editor']['plugins']['get'](_0x22da('0x2b'));let _0x1c4895=Array[_0x22da('0x1f')](this[_0x22da('0x10')]['model'][_0x22da('0x24')][_0x22da('0x17')][_0x22da('0x1a')]());return _0x1c4895[_0x22da('0x4')](..._0x15cd07[_0x22da('0x20')](_0x1c4895)),_0x1c4895=[...new Set(_0x1c4895)],_0x1c4895;}[_0x22da('0x2d')](_0x2029f1){const _0x40dcad=this[_0x22da('0x10')]['plugins'][_0x22da('0x22')]('DocumentListUtils');let _0x471ae8=Array['from'](this[_0x22da('0x10')][_0x22da('0x2')][_0x22da('0x24')]['selection'][_0x22da('0x1a')]())[_0x22da('0x5')](_0x2029f1);if(!_0x471ae8[_0x22da('0x27')])return null;_0x471ae8=_0x40dcad[_0x22da('0x20')](_0x471ae8);const _0x285cb6=[];for(const _0x2383e8 of _0x471ae8)_0x40dcad['isFirstBlockOfListItem'](_0x2383e8)&&_0x285cb6['push'](_0x2383e8);return _0x285cb6;}['_getTranslationKeyForListStyle'](_0x2b479b){return _0x22da('0x2c')+this[_0x22da('0x10')][_0x22da('0x2e')][_0x22da('0x22')](_0x22da('0x28'))['getListTypeFromListStyleType'](_0x2b479b)[_0x22da('0x19')]()+_0x22da('0x33')+_0x2b479b[_0x22da('0x19')]()[_0x22da('0x25')](/-/g,'_');}}
|