@ckeditor/ckeditor5-track-changes 40.0.0 → 40.2.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/CHANGELOG.md +15 -15
- package/LICENSE.md +3 -3
- package/README.md +1 -1
- package/build/track-changes.js +2 -2
- package/build/translations/ar.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/contexts.json +20 -1
- package/lang/translations/ar.po +78 -2
- package/lang/translations/az.po +77 -1
- package/lang/translations/bg.po +78 -2
- package/lang/translations/bn.po +78 -2
- package/lang/translations/ca.po +78 -2
- package/lang/translations/cs.po +78 -2
- package/lang/translations/da.po +78 -2
- package/lang/translations/de.po +78 -2
- package/lang/translations/el.po +78 -2
- package/lang/translations/en-au.po +78 -2
- package/lang/translations/en.po +78 -2
- package/lang/translations/es.po +78 -2
- package/lang/translations/et.po +78 -2
- package/lang/translations/fi.po +78 -2
- package/lang/translations/fr.po +78 -2
- package/lang/translations/gl.po +90 -14
- package/lang/translations/he.po +78 -2
- package/lang/translations/hi.po +78 -2
- package/lang/translations/hr.po +78 -2
- package/lang/translations/hu.po +78 -2
- package/lang/translations/id.po +78 -2
- package/lang/translations/it.po +78 -2
- package/lang/translations/ja.po +78 -2
- package/lang/translations/ko.po +78 -2
- package/lang/translations/lt.po +78 -2
- package/lang/translations/lv.po +78 -2
- package/lang/translations/ms.po +78 -2
- package/lang/translations/nl.po +78 -2
- package/lang/translations/no.po +78 -2
- package/lang/translations/pl.po +78 -2
- package/lang/translations/pt-br.po +96 -20
- package/lang/translations/pt.po +78 -2
- package/lang/translations/ro.po +78 -2
- package/lang/translations/ru.po +78 -2
- package/lang/translations/sk.po +78 -2
- package/lang/translations/sq.po +77 -1
- package/lang/translations/sr-latn.po +78 -2
- package/lang/translations/sr.po +78 -2
- package/lang/translations/sv.po +78 -2
- package/lang/translations/th.po +78 -2
- package/lang/translations/tk.po +77 -1
- package/lang/translations/tr.po +78 -2
- package/lang/translations/tt.po +77 -1
- package/lang/translations/uk.po +78 -2
- package/lang/translations/ur.po +77 -1
- package/lang/translations/vi.po +78 -2
- package/lang/translations/zh-cn.po +78 -2
- package/lang/translations/zh.po +78 -2
- 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 -17
- package/src/integrations/aiassistant.js +1 -1
- 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 +17 -23
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.d.ts +17 -0
- package/src/integrations/imagestyle.js +23 -0
- 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 +17 -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 +291 -276
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.d.ts +183 -163
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +180 -244
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +78 -75
- package/src/trackchangesdata.d.ts +41 -41
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +524 -468
- 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
|
@@ -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 _0x1271=['format','find','indentCodeBlock','languages','change','type','model','from','CodeBlock','enableCommand','commandName','schema','*Remove\x20format:*\x20%0','checkChild','config','commands','registerElementLabel','commandParams','filter','value','editor','toLowerCase','plugins','markBlockFormat','_descriptionFactory','get','codeBlock','parent','has','formatBlock','registerDescriptionCallback','TrackChangesEditing','outdentCodeBlock','name','blockName','language','forceValue','getSelectedBlocks','ELEMENT_CODE_BLOCK','label'];(function(_0x40c72e,_0x127103){const _0x210bd7=function(_0x17392a){while(--_0x17392a){_0x40c72e['push'](_0x40c72e['shift']());}};_0x210bd7(++_0x127103);}(_0x1271,0x174));const _0x210b=function(_0x40c72e,_0x127103){_0x40c72e=_0x40c72e-0x0;let _0x210bd7=_0x1271[_0x40c72e];return _0x210bd7;};import{Plugin as _0x4df74b}from'ckeditor5/src/core';import{getTranslation as _0x9f49f9}from'../utils/common-translations';import{getRangesOfBlockGroups as _0xb05913}from'../utils/utils';export default class F extends _0x4df74b{['afterInit'](){const _0x2107b7=this[_0x210b('0x8')];if(!_0x2107b7[_0x210b('0xa')][_0x210b('0x10')](_0x210b('0x24')))return;const _0x3cd024=_0x2107b7[_0x210b('0xa')][_0x210b('0xd')](_0x210b('0x13')),_0x45d85d=_0x2107b7['locale'],_0x252612=_0x2107b7[_0x210b('0x2')][_0x210b('0xd')](_0x210b('0xe'))[_0x210b('0x1f')],_0x2c6f15=_0x2107b7[_0x210b('0x3')][_0x210b('0xd')](_0x210b('0xe'));_0x3cd024[_0x210b('0x25')](_0x210b('0x1e')),_0x3cd024[_0x210b('0x25')](_0x210b('0x14')),_0x3cd024[_0x210b('0x25')](_0x210b('0xe'),(_0x4753a1,_0x5cc6fc={})=>{const _0xed4853=_0x2107b7[_0x210b('0x22')],_0x4502e1=_0x2107b7['model']['document']['selection'],_0x4f85ec=_0x5cc6fc&&void 0x0!==_0x5cc6fc[_0x210b('0x18')]?_0x5cc6fc[_0x210b('0x18')]:!_0x2c6f15[_0x210b('0x7')];let _0x46c773;_0x5cc6fc[_0x210b('0x17')]||(_0x5cc6fc[_0x210b('0x17')]=_0x252612[0x0][_0x210b('0x17')]),_0x46c773=_0x4f85ec?Array[_0x210b('0x23')](_0x4502e1[_0x210b('0x19')]())[_0x210b('0x6')](_0x3033e2=>eo(_0x3033e2)||function(_0xed03b0,_0x1bc124){if(_0xed03b0['is']('rootElement')||_0x1bc124['isLimit'](_0xed03b0))return!0x1;return _0x1bc124[_0x210b('0x1')](_0xed03b0[_0x210b('0xf')],_0x210b('0xe'));}(_0x3033e2,_0xed4853[_0x210b('0x27')])):Array[_0x210b('0x23')](_0x4502e1[_0x210b('0x19')]())[_0x210b('0x6')](_0x595978=>eo(_0x595978));const _0x2fdf1a=_0xb05913(_0x46c773,_0xed4853);_0xed4853[_0x210b('0x20')](()=>{for(const _0x58c2ff of _0x2fdf1a)_0x3cd024[_0x210b('0xb')](_0x58c2ff,{'commandName':_0x210b('0xe'),'commandParams':[{..._0x5cc6fc,'forceValue':_0x4f85ec}],'formatGroupId':_0x210b('0x16')});});}),(_0x3cd024[_0x210b('0xc')][_0x210b('0x4')](_0x210b('0xe'),_0x110c25=>_0x9f49f9(_0x45d85d,_0x210b('0x1a'),_0x110c25)),_0x3cd024['_descriptionFactory'][_0x210b('0x12')](_0x58a281=>{if(_0x210b('0x11')!=_0x58a281[_0x210b('0x21')])return;const _0x59e1f2=_0x45d85d['t'],{data:_0x4dac83}=_0x58a281;if(!_0x4dac83||_0x210b('0xe')!=_0x4dac83[_0x210b('0x26')])return;const _0x22b5e7=_0x4dac83['commandParams'][0x0][_0x210b('0x17')],_0x3298d3=_0x59e1f2(_0x252612[_0x210b('0x1d')](_0x48aef1=>_0x48aef1['language']===_0x22b5e7)[_0x210b('0x1b')])[_0x210b('0x9')]();return _0x4dac83[_0x210b('0x5')][0x0][_0x210b('0x18')]?{'type':'format','content':_0x9f49f9(_0x45d85d,'*Set\x20format:*\x20%0',_0x9f49f9(_0x45d85d,_0x210b('0x1a'),0x1)+'\x20('+_0x3298d3+')')}:{'type':_0x210b('0x1c'),'content':_0x9f49f9(_0x45d85d,_0x210b('0x0'),_0x9f49f9(_0x45d85d,_0x210b('0x1a'),0x1))};}));}}function eo(_0x1657c4){return _0x210b('0xe')==_0x1657c4[_0x210b('0x15')];}
|
|
@@ -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 _0x1709=['afterInit','has','get','addCommentThread','CommentsEditing','enableCommand','editor'];(function(_0x158640,_0x1709d9){const _0x39033c=function(_0x4cb991){while(--_0x4cb991){_0x158640['push'](_0x158640['shift']());}};_0x39033c(++_0x1709d9);}(_0x1709,0xbe));const _0x3903=function(_0x158640,_0x1709d9){_0x158640=_0x158640-0x0;let _0x39033c=_0x1709[_0x158640];return _0x39033c;};import{Plugin as _0x368a67}from'ckeditor5/src/core';export default class L extends _0x368a67{[_0x3903('0x6')](){const _0x26089b=this[_0x3903('0x5')];if(!_0x26089b['plugins'][_0x3903('0x0')](_0x3903('0x3')))return;_0x26089b['plugins'][_0x3903('0x1')]('TrackChangesEditing')[_0x3903('0x4')](_0x3903('0x2'));}}
|
|
@@ -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 _0x5798=['requires','editor','init','markerName','remove','addMarker:suggestion:deletion','deleteForward','buffer','showSuggestionHighlights','modifySelection','unlock','start','document','downcastDispatcher','removeMarker:suggestion:deletion','merge','forward','createSelection','editing','unbindElementFromMarkerName','data','unit','model','createRange','setSelection','rootName','fromRange','isCollapsed','delete','high','getFirstRange','root','TrackChangesEditing','$graveyard','end','detach','mapper','writer','enableCommand','markerNameToElements'];(function(_0x9aadc7,_0x5798fe){const _0x28e68b=function(_0x446cd1){while(--_0x446cd1){_0x9aadc7['push'](_0x9aadc7['shift']());}};_0x28e68b(++_0x5798fe);}(_0x5798,0x8c));const _0x28e6=function(_0x9aadc7,_0x5798fe){_0x9aadc7=_0x9aadc7-0x0;let _0x28e68b=_0x5798[_0x9aadc7];return _0x28e68b;};import{Plugin as _0x2f4ae5}from'ckeditor5/src/core';import{LiveRange as _0x449e5b}from'ckeditor5/src/engine';import{Delete as _0x4daf58}from'ckeditor5/src/typing';import{downcastSplitMergeMarker as _0x4137b6}from'./utils';export default class H extends _0x2f4ae5{static get[_0x28e6('0x14')](){return[_0x4daf58];}[_0x28e6('0x16')](){const _0x2360d8=this[_0x28e6('0x15')],_0x1c6b76=_0x2360d8['plugins']['get'](_0x28e6('0xc'));_0x1c6b76[_0x28e6('0x12')](_0x28e6('0x8'));const _0x12425a=_0x2360d8['commands']['get'](_0x28e6('0x1a'));_0x1c6b76[_0x28e6('0x12')](_0x28e6('0x1a'),(_0x10ef48,_0x118bd2={})=>{const _0x1f64ab=_0x2360d8[_0x28e6('0x2')][_0x28e6('0x25')](_0x2360d8['model'][_0x28e6('0x20')]['selection']);_0x1f64ab[_0x28e6('0x7')]&&_0x2360d8['model'][_0x28e6('0x1d')](_0x1f64ab,{'direction':_0x28e6('0x24'),'unit':_0x118bd2[_0x28e6('0x1')]});const _0x4c055b=_0x1f64ab[_0x28e6('0xa')](),_0x58b83c=_0x449e5b[_0x28e6('0x6')](_0x4c055b);let _0x15bb37;_0x10ef48(_0x118bd2),_0x15bb37=_0x28e6('0xd')==_0x58b83c[_0x28e6('0xb')][_0x28e6('0x5')]?_0x2360d8[_0x28e6('0x2')][_0x28e6('0x3')](_0x4c055b[_0x28e6('0x1f')]):_0x2360d8[_0x28e6('0x2')][_0x28e6('0x3')](_0x58b83c[_0x28e6('0x1f')],_0x58b83c[_0x28e6('0xe')]),_0x58b83c[_0x28e6('0xf')](),_0x2360d8[_0x28e6('0x2')]['enqueueChange'](_0x12425a[_0x28e6('0x1b')]['batch'],_0x26f6eb=>{_0x12425a[_0x28e6('0x1b')]['lock'](),_0x26f6eb[_0x28e6('0x4')](_0x26f6eb[_0x28e6('0x3')](_0x15bb37[_0x28e6('0xe')])),_0x12425a['buffer'][_0x28e6('0x1e')]();});}),_0x2360d8[_0x28e6('0x26')][_0x28e6('0x21')]['on'](_0x28e6('0x19'),_0x4137b6(_0x2360d8,_0x28e6('0x23')),{'priority':_0x28e6('0x9')}),_0x2360d8[_0x28e6('0x0')][_0x28e6('0x21')]['on'](_0x28e6('0x19'),(_0x18b079,_0x2c2dad,_0x4f4389)=>{_0x4f4389['options'][_0x28e6('0x1c')]&&_0x4137b6(_0x2360d8,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x18b079,_0x2c2dad,_0x4f4389);},{'priority':_0x28e6('0x9')}),_0x2360d8[_0x28e6('0x26')]['downcastDispatcher']['on'](_0x28e6('0x22'),(_0x2caba1,_0x45b37b,_0x585dbe)=>{const _0x3a57d6=_0x585dbe[_0x28e6('0x10')][_0x28e6('0x13')](_0x45b37b[_0x28e6('0x17')]);if(_0x3a57d6)for(const _0x2eb3af of _0x3a57d6)_0x2eb3af['is']('uiElement')&&(_0x585dbe['mapper'][_0x28e6('0x27')](_0x2eb3af,_0x45b37b[_0x28e6('0x17')]),_0x585dbe[_0x28e6('0x11')][_0x28e6('0x18')](_0x2eb3af));},{'priority':_0x28e6('0x9')});}}
|
|
@@ -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 _0x5d42=['mergeListItemBackward','isObject','*Indent:*\x20%0','commandName','from','previousSibling','change','fromRange','*Format:*\x20insert\x20into\x20%0','locale','listType','list.multiBlock','start','ELEMENT_NUMBERED_LIST','documentList','markBlockFormat','formatBlock','model','ELEMENT_BULLETED_LIST','config','commandParams','enableCommand','plugins','selection','listItemId','afterInit','format','mergeListItemForward','findIndex','end','nextSibling','numberedList','*Format:*\x20remove\x20from\x20%0','push','_suggestionFactory','getRanges','containsItem','*Merge:*\x20%0','before','registerCustomCallback','createRange','getSelectedBlocks','document','listIndent','createPositionAt','_descriptionFactory','getFirstRange','DocumentListUtils','toUpperCase','getAttribute','after','value','splitListItemBefore','execute','bulletedList','commands','refresh','DocumentListEditing','deletion','*Outdent:*\x20%0','ELEMENT_','markMultiRangeBlockFormat','parent','type','registerDescriptionCallback','nodeAfter','schema','slice','expandListBlocksToCompleteList','outdentList','length','*Change\x20to:*\x20%0','registerElementLabel','splitListItemAfter','next','hasAttribute','has','formatInline','forceValue','ELEMENT_LIST_ITEM','get'];(function(_0x59945f,_0x5d4291){const _0x28cff4=function(_0x26969c){while(--_0x26969c){_0x59945f['push'](_0x59945f['shift']());}};_0x28cff4(++_0x5d4291);}(_0x5d42,0x7b));const _0x28cf=function(_0x59945f,_0x5d4291){_0x59945f=_0x59945f-0x0;let _0x28cff4=_0x5d42[_0x59945f];return _0x28cff4;};import{Plugin as _0x348f4f}from'ckeditor5/src/core';import{getTranslation as _0x2c8e75}from'../utils/common-translations';import{LiveRange as _0xbe1098}from'ckeditor5/src/engine';export default class q extends _0x348f4f{[_0x28cf('0x40')](){const _0x523e4b=this['editor'];if(!_0x523e4b[_0x28cf('0x3d')][_0x28cf('0x22')](_0x28cf('0xf')))return;const _0x44e8ca=_0x523e4b[_0x28cf('0x30')],_0x22bb95=_0x523e4b[_0x28cf('0x3d')][_0x28cf('0x26')]('TrackChangesEditing'),_0x19847f=_0x523e4b['plugins'][_0x28cf('0x26')](_0x28cf('0x5'));function _0x56bb11(_0x2480f2){return()=>{const _0x839ffb=_0x523e4b[_0x28cf('0xd')][_0x28cf('0x26')](_0x2480f2);if(_0x839ffb[_0x28cf('0x9')]&&!_0x523e4b['config'][_0x28cf('0x26')](_0x28cf('0x32')))return void _0x523e4b[_0x28cf('0xb')]('paragraph',{});let _0x276e79=Array[_0x28cf('0x2b')](_0x523e4b[_0x28cf('0x38')][_0x28cf('0x0')][_0x28cf('0x3e')]['getSelectedBlocks']());if(_0x227def(_0x2480f2)){_0x276e79=_0x19847f[_0x28cf('0x1a')](_0x276e79);const _0x5c05ea=[];for(const _0x702a79 of _0x276e79)_0x19847f['isFirstBlockOfListItem'](_0x702a79)&&_0x5c05ea[_0x28cf('0x48')](_0x702a79);_0x276e79=_0x5c05ea;}_0x523e4b[_0x28cf('0x38')]['change'](()=>{_0x22bb95[_0x28cf('0x13')](_0x276e79,{'commandName':_0x2480f2,'commandParams':[{'forceValue':!_0x839ffb[_0x28cf('0x9')]}],'formatGroupId':_0x28cf('0x31')},[],_0x28cf('0x35'));});};}function _0x8b4c3c(_0xd092f1){return()=>{const _0x2becba=function(_0x1b6eea){let _0x500a27=Array[_0x28cf('0x2b')](_0x1b6eea);const _0x3dc546=_0x500a27[_0x28cf('0x43')](_0x149367=>!_0x149367[_0x28cf('0x21')]('listItemId'));return _0x3dc546>-0x1&&(_0x500a27=_0x500a27[_0x28cf('0x19')](0x0,_0x3dc546)),_0x500a27;}(_0x523e4b[_0x28cf('0x38')][_0x28cf('0x0')][_0x28cf('0x3e')][_0x28cf('0x50')]()),_0x1f1544=_0x2becba[_0x2becba[_0x28cf('0x1c')]-0x1],_0x5da74f=_0x523e4b[_0x28cf('0x38')][_0x28cf('0x18')][_0x28cf('0x28')](_0x1f1544)?_0x28cf('0x8'):'end',_0x17525a=_0x523e4b['model']['createRange'](_0x523e4b['model'][_0x28cf('0x2')](_0x2becba[0x0],_0x28cf('0x4d')),_0x523e4b[_0x28cf('0x38')][_0x28cf('0x2')](_0x1f1544,_0x5da74f));_0x523e4b[_0x28cf('0x38')][_0x28cf('0x2d')](()=>{_0x22bb95['markBlockFormat'](_0x17525a,{'commandName':_0xd092f1,'commandParams':[],'formatGroupId':'listType'},function(_0x58d80b){const _0x211a9e=new Set();for(const _0x3a95d3 of _0x58d80b){let _0x3e7964=_0x3a95d3[_0x28cf('0x45')];for(;_0x3e7964&&_0x3e7964['getAttribute']('listIndent')>_0x3a95d3[_0x28cf('0x7')]('listIndent');)_0x211a9e['add'](_0x3e7964),_0x3e7964=_0x3e7964['nextSibling'];}return Array[_0x28cf('0x2b')](_0x211a9e);}(_0x2becba));});};}function _0x215e2d(_0x45d63c){return()=>{const _0x3d8269=_0x523e4b[_0x28cf('0x38')]['document'][_0x28cf('0x3e')]['getSelectedBlocks']()[_0x28cf('0x20')]()['value'],_0x528509=_0x523e4b['model']['createPositionAt'](_0x3d8269,_0x28cf('0x4d')),_0x3c2a61=_0x523e4b[_0x28cf('0x38')]['createPositionAt'](_0x3d8269,0x0),_0x3dab79=_0x523e4b['model'][_0x28cf('0x4f')](_0x528509,_0x3c2a61);_0x523e4b[_0x28cf('0x38')][_0x28cf('0x2d')](()=>{_0x22bb95[_0x28cf('0x36')](_0x3dab79,{'commandName':_0x45d63c,'commandParams':[],'formatGroupId':_0x28cf('0x31')});});};}function _0x227def(_0x4ecd80){const _0x5b3f4d=_0x523e4b[_0x28cf('0xd')][_0x28cf('0x26')]('bulletedList')[_0x28cf('0x9')],_0xf17f52=_0x523e4b[_0x28cf('0xd')][_0x28cf('0x26')](_0x28cf('0x46'))[_0x28cf('0x9')];return _0x28cf('0x46')===_0x4ecd80?_0x5b3f4d:_0xf17f52;}_0x22bb95[_0x28cf('0x3c')]('numberedList',_0x56bb11('numberedList')),_0x22bb95[_0x28cf('0x3c')](_0x28cf('0xc'),_0x56bb11(_0x28cf('0xc'))),_0x22bb95[_0x28cf('0x3c')]('indentList',_0x8b4c3c('indentList')),_0x22bb95[_0x28cf('0x3c')](_0x28cf('0x1b'),_0x8b4c3c(_0x28cf('0x1b'))),_0x22bb95[_0x28cf('0x3c')](_0x28cf('0x1f'),_0x215e2d('splitListItemAfter')),_0x22bb95[_0x28cf('0x3c')](_0x28cf('0xa'),_0x215e2d(_0x28cf('0xa'))),_0x22bb95[_0x28cf('0x3')][_0x28cf('0x1e')](function(_0x135e1a){const _0x257a70=!_0x523e4b['model'][_0x28cf('0x18')][_0x28cf('0x28')](_0x135e1a),_0x2a6f3a=_0x135e1a[_0x28cf('0x2c')],_0x2ffd7f=_0x135e1a['nextSibling'],_0x3edfff=_0x135e1a[_0x28cf('0x7')](_0x28cf('0x3f')),_0x4d06f2=!_0x2a6f3a||_0x2a6f3a[_0x28cf('0x7')]('listItemId')!==_0x3edfff,_0x447f7f=!_0x2ffd7f||_0x2ffd7f[_0x28cf('0x7')]('listItemId')!==_0x3edfff;return _0x257a70&&Boolean(_0x3edfff)&&_0x4d06f2&&_0x447f7f;},_0x491e57=>_0x2c8e75(_0x44e8ca,_0x28cf('0x25'),_0x491e57)),_0x22bb95[_0x28cf('0x3')][_0x28cf('0x16')](function(_0x3b416a){if(_0x28cf('0x37')!=_0x3b416a[_0x28cf('0x15')]&&_0x28cf('0x23')!=_0x3b416a['type'])return;const {data:_0x33e545}=_0x3b416a;if(!_0x33e545)return;let _0x58c77c,_0x5e6551,_0x3b496b,_0x51d51c;switch(_0x33e545[_0x28cf('0x2a')]){case'bulletedList':_0x3b496b=_0x33e545[_0x28cf('0x3b')][0x0][_0x28cf('0x24')],_0x51d51c=_0x227def(_0x33e545[_0x28cf('0x2a')]),_0x58c77c=_0x3b496b?'*Format:*\x20insert\x20into\x20%0':_0x28cf('0x47'),!_0x51d51c&&_0x523e4b[_0x28cf('0x3a')][_0x28cf('0x26')](_0x28cf('0x32'))||(_0x58c77c=_0x28cf('0x1d')),_0x5e6551={'type':_0x28cf('0x41'),'content':_0x2c8e75(_0x44e8ca,_0x58c77c,_0x2c8e75(_0x44e8ca,_0x28cf('0x39')))};break;case _0x28cf('0x46'):_0x3b496b=_0x33e545[_0x28cf('0x3b')][0x0]['forceValue'],_0x51d51c=_0x227def(_0x33e545['commandName']),_0x58c77c=_0x3b496b?_0x28cf('0x2f'):_0x28cf('0x47'),!_0x51d51c&&_0x523e4b[_0x28cf('0x3a')]['get'](_0x28cf('0x32'))||(_0x58c77c=_0x28cf('0x1d')),_0x5e6551={'type':'format','content':_0x2c8e75(_0x44e8ca,_0x58c77c,_0x2c8e75(_0x44e8ca,_0x28cf('0x34')))};break;case'indentList':_0x58c77c=_0x28cf('0x29'),_0x5e6551={'type':_0x28cf('0x41'),'content':_0x2c8e75(_0x44e8ca,_0x58c77c,_0x2c8e75(_0x44e8ca,_0x28cf('0x25')))};break;case _0x28cf('0x1b'):_0x58c77c=function(_0x2bf650){const _0x2fcf85=_0x2bf650[_0x28cf('0x4')]();let _0xeff64b=_0x2fcf85[_0x28cf('0x33')]['nodeAfter'];for(;_0xeff64b&&_0x2fcf85[_0x28cf('0x4b')](_0xeff64b);){if(_0xeff64b['getAttribute'](_0x28cf('0x1'))>0x0)return!0x1;_0xeff64b=_0xeff64b[_0x28cf('0x45')];}return!0x0;}(_0x3b416a)?_0x2c8e75(_0x44e8ca,'*Format:*\x20remove\x20from\x20%0',_0x2c8e75(_0x44e8ca,function(_0x3c6247){const _0x543e0f=_0x3c6247['getFirstRange']()[_0x28cf('0x33')][_0x28cf('0x17')];return _0x28cf('0x12')+_0x543e0f[_0x28cf('0x7')](_0x28cf('0x31'))[_0x28cf('0x6')]()+'_LIST';}(_0x3b416a))):_0x2c8e75(_0x44e8ca,_0x28cf('0x11'),_0x2c8e75(_0x44e8ca,_0x28cf('0x25'))),_0x5e6551={'type':_0x28cf('0x41'),'content':_0x58c77c};break;case _0x28cf('0x27'):case _0x28cf('0x42'):!0x1===_0x33e545['multipleBlocks']&&(_0x58c77c=_0x28cf('0x4c'),_0x5e6551={'type':_0x28cf('0x10'),'content':_0x2c8e75(_0x44e8ca,_0x58c77c,_0x2c8e75(_0x44e8ca,_0x28cf('0x25')))});}return _0x5e6551;}),_0x22bb95[_0x28cf('0x49')][_0x28cf('0x4e')](_0x28cf('0x37'),_0x28cf('0x35'),'accept',function(_0x1e9f6c,_0x451d66){const _0x2079c5=[];for(let _0x5c6d3e of _0x1e9f6c)_0x5c6d3e['start'][_0x28cf('0x17')]===_0x5c6d3e[_0x28cf('0x44')][_0x28cf('0x14')]&&(_0x5c6d3e=_0x523e4b[_0x28cf('0x38')][_0x28cf('0x4f')](_0x523e4b['model'][_0x28cf('0x2')](_0x5c6d3e[_0x28cf('0x33')][_0x28cf('0x17')],0x0))),_0x2079c5[_0x28cf('0x48')](_0x5c6d3e);_0x523e4b[_0x28cf('0x38')][_0x28cf('0x2d')](_0x5a30bb=>{const _0x2342fc=_0x523e4b[_0x28cf('0x38')][_0x28cf('0x0')][_0x28cf('0x3e')],_0x34a955=Array[_0x28cf('0x2b')](_0x2342fc[_0x28cf('0x4a')]())['map'](_0x20e627=>_0xbe1098[_0x28cf('0x2e')](_0x20e627));_0x5a30bb['setSelection'](_0x2079c5),_0x523e4b[_0x28cf('0xd')][_0x28cf('0x26')](_0x451d66['commandName'])[_0x28cf('0xe')](),_0x451d66[_0x28cf('0x3b')][_0x28cf('0x48')]({'forceDefaultExecution':!0x0}),_0x523e4b[_0x28cf('0xb')](_0x451d66['commandName'],..._0x451d66[_0x28cf('0x3b')]),_0x5a30bb['setSelection'](_0x34a955);for(const _0x1e9da1 of _0x34a955)_0x1e9da1['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 _0x3165=['filter','listStyle','listStart','_LIST_','ELEMENT_','from','getSelectedBlocks','afterInit','_getTranslationKeyForListStyle','listReversed','push','registerDescriptionCallback','get','*Format:*\x20set\x20start\x20index\x20to\x20%0','format','reversed','editor','startIndex','bind','*Format:*\x20set\x20order\x20to\x20reversed','DocumentListPropertiesUtils','handleListStyleCommand','numbered','*Change\x20to:*\x20%0','enableCommand','getListTypeFromListStyleType','markMultiRangeBlockFormat','isFirstBlockOfListItem','handleDescriptions','DocumentListPropertiesEditing','*Format:*\x20set\x20order\x20to\x20regular','toUpperCase','change','document','_getSuggestionBlocksForListStyle','_getSuggestionBlocks','handleListStartCommand','commandName','formatBlock','model','type','handleListReversedCommand','DocumentListUtils','selection','TrackChangesEditing','listType','replace','commandParams','plugins','isListItemBlock','expandListBlocksToCompleteList'];(function(_0x7a2516,_0x316545){const _0x2a2731=function(_0xb6caed){while(--_0xb6caed){_0x7a2516['push'](_0x7a2516['shift']());}};_0x2a2731(++_0x316545);}(_0x3165,0x84));const _0x2a27=function(_0x7a2516,_0x316545){_0x7a2516=_0x7a2516-0x0;let _0x2a2731=_0x3165[_0x7a2516];return _0x2a2731;};import{Plugin as _0x1f5756}from'ckeditor5/src/core';import{getTranslation as _0x3803af}from'../utils/common-translations';export default class z extends _0x1f5756{[_0x2a27('0x1c')](){if(!this[_0x2a27('0x25')]['plugins']['has'](_0x2a27('0x32')))return;const _0x56fd47=this['editor']['config'][_0x2a27('0x21')]('list.properties'),_0x2b7e02=this[_0x2a27('0x25')][_0x2a27('0x12')]['get'](_0x2a27('0xe'));_0x56fd47['styles']&&_0x2b7e02[_0x2a27('0x2d')](_0x2a27('0x16'),this[_0x2a27('0x2a')][_0x2a27('0x27')](this)),_0x56fd47[_0x2a27('0x24')]&&_0x2b7e02[_0x2a27('0x2d')](_0x2a27('0x1e'),this[_0x2a27('0xb')][_0x2a27('0x27')](this)),_0x56fd47[_0x2a27('0x26')]&&_0x2b7e02[_0x2a27('0x2d')](_0x2a27('0x17'),this[_0x2a27('0x6')][_0x2a27('0x27')](this)),_0x2b7e02['_descriptionFactory'][_0x2a27('0x20')](this[_0x2a27('0x31')]['bind'](this));}[_0x2a27('0x2a')](_0x26af27,_0x7ef55b={}){const _0x5de4c0=this[_0x2a27('0x25')][_0x2a27('0x12')][_0x2a27('0x21')](_0x2a27('0xe')),_0x1fc5d1=this[_0x2a27('0x4')]();this[_0x2a27('0x25')]['model'][_0x2a27('0x2')](()=>{_0x5de4c0[_0x2a27('0x2f')](_0x1fc5d1,{'commandName':_0x2a27('0x16'),'commandParams':[{'type':_0x7ef55b[_0x2a27('0xa')]}],'formatGroupId':_0x2a27('0x16')});});}[_0x2a27('0xb')](_0x54d3dd,_0xed9d3e={}){const _0x57f715=this[_0x2a27('0x25')]['plugins'][_0x2a27('0x21')](_0x2a27('0xe')),_0x10ab56=this[_0x2a27('0x25')][_0x2a27('0x12')][_0x2a27('0x21')]('DocumentListUtils'),_0x3bcbfc=this['_getSuggestionBlocks'](_0x3726eb=>_0x10ab56[_0x2a27('0x13')](_0x3726eb)&&'numbered'===_0x3726eb['getAttribute'](_0x2a27('0xf')));null!==_0x3bcbfc&&this['editor'][_0x2a27('0x9')][_0x2a27('0x2')](()=>{_0x57f715['markMultiRangeBlockFormat'](_0x3bcbfc,{'commandName':_0x2a27('0x1e'),'commandParams':[{'reversed':_0xed9d3e['reversed']}],'formatGroupId':_0x2a27('0x1e')});});}['handleListStartCommand'](_0x50eaa9,_0x5e5747={}){const _0x270160=this[_0x2a27('0x25')]['plugins'][_0x2a27('0x21')](_0x2a27('0xe')),_0x4c1963=this[_0x2a27('0x25')][_0x2a27('0x12')][_0x2a27('0x21')]('DocumentListUtils'),_0x1238c9=this[_0x2a27('0x5')](_0x15b96e=>_0x4c1963[_0x2a27('0x13')](_0x15b96e)&&_0x2a27('0x2b')===_0x15b96e['getAttribute'](_0x2a27('0xf')));null!==_0x1238c9&&this['editor'][_0x2a27('0x9')]['change'](()=>{_0x270160[_0x2a27('0x2f')](_0x1238c9,{'commandName':_0x2a27('0x17'),'commandParams':[{'startIndex':_0x5e5747[_0x2a27('0x26')]}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5624ad){if(_0x2a27('0x8')!=_0x5624ad[_0x2a27('0xa')]&&'formatInline'!=_0x5624ad[_0x2a27('0xa')])return;const _0x112805=this[_0x2a27('0x25')]['locale'],{data:_0x2009a0}=_0x5624ad;if(!_0x2009a0)return;let _0x4aef09,_0x3d38f5;switch(_0x2009a0[_0x2a27('0x7')]){case _0x2a27('0x16'):_0x4aef09=_0x2a27('0x2c'),_0x3d38f5={'type':'format','content':_0x3803af(_0x112805,_0x4aef09,_0x3803af(_0x112805,this[_0x2a27('0x1d')](_0x2009a0[_0x2a27('0x11')][0x0][_0x2a27('0xa')])))};break;case _0x2a27('0x1e'):_0x4aef09=_0x2009a0[_0x2a27('0x11')][0x0][_0x2a27('0x24')]?_0x2a27('0x28'):_0x2a27('0x0'),_0x3d38f5={'type':_0x2a27('0x23'),'content':_0x3803af(_0x112805,_0x4aef09)};break;case'listStart':_0x4aef09=_0x2a27('0x22'),_0x3d38f5={'type':_0x2a27('0x23'),'content':_0x3803af(_0x112805,_0x4aef09,_0x2009a0['commandParams'][0x0][_0x2a27('0x26')])};}return _0x3d38f5;}[_0x2a27('0x4')](){const _0x191d93=this[_0x2a27('0x25')][_0x2a27('0x12')][_0x2a27('0x21')](_0x2a27('0xc'));let _0x3d9ccb=Array[_0x2a27('0x1a')](this[_0x2a27('0x25')][_0x2a27('0x9')]['document'][_0x2a27('0xd')][_0x2a27('0x1b')]());return _0x3d9ccb['push'](..._0x191d93[_0x2a27('0x14')](_0x3d9ccb)),_0x3d9ccb=[...new Set(_0x3d9ccb)],_0x3d9ccb;}['_getSuggestionBlocks'](_0x43aebf){const _0x5c4aac=this[_0x2a27('0x25')][_0x2a27('0x12')][_0x2a27('0x21')]('DocumentListUtils');let _0x539152=Array[_0x2a27('0x1a')](this[_0x2a27('0x25')][_0x2a27('0x9')][_0x2a27('0x3')][_0x2a27('0xd')]['getSelectedBlocks']())[_0x2a27('0x15')](_0x43aebf);if(!_0x539152['length'])return null;_0x539152=_0x5c4aac[_0x2a27('0x14')](_0x539152);const _0x5eeb5d=[];for(const _0x36177e of _0x539152)_0x5c4aac[_0x2a27('0x30')](_0x36177e)&&_0x5eeb5d[_0x2a27('0x1f')](_0x36177e);return _0x5eeb5d;}[_0x2a27('0x1d')](_0x287691){return _0x2a27('0x19')+this[_0x2a27('0x25')][_0x2a27('0x12')][_0x2a27('0x21')](_0x2a27('0x29'))[_0x2a27('0x2e')](_0x287691)[_0x2a27('0x1')]()+_0x2a27('0x18')+_0x287691[_0x2a27('0x1')]()[_0x2a27('0x10')](/-/g,'_');}}
|
|
@@ -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
|
-
* @module track-changes/integrations/entercommand
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import { Enter } from 'ckeditor5/src/enter';
|
|
10
|
-
/**
|
|
11
|
-
* Provides track changes plugin integration for {@link module:enter/entercommand~EnterCommand enter command}.
|
|
12
|
-
*/
|
|
13
|
-
export default class TrackChangesEnterCommand extends Plugin {
|
|
14
|
-
static get requires(): readonly [typeof Enter];
|
|
15
|
-
init(): void;
|
|
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 track-changes/integrations/entercommand
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import { Enter } from 'ckeditor5/src/enter';
|
|
10
|
+
/**
|
|
11
|
+
* Provides track changes plugin integration for {@link module:enter/entercommand~EnterCommand enter command}.
|
|
12
|
+
*/
|
|
13
|
+
export default class TrackChangesEnterCommand extends Plugin {
|
|
14
|
+
static get requires(): readonly [typeof Enter];
|
|
15
|
+
init(): void;
|
|
16
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x50a8=['model','high','getFirstRange','remove','hasClass','markerNameToElements','change','fromRange','fire','data','plugins','commands','editing','parent','showSuggestionHighlights','init','options','end','bind','markInsertion','createRange','afterExecute','unbindElementFromMarkerName','ck-suggestion-marker-split','downcastDispatcher','mapper','enableCommand','addMarker:suggestion:insertion','getFirstPosition','get','document','markerName','split','TrackChangesEditing'];(function(_0x140acd,_0x50a8f4){const _0x56269e=function(_0x51b5f1){while(--_0x51b5f1){_0x140acd['push'](_0x140acd['shift']());}};_0x56269e(++_0x50a8f4);}(_0x50a8,0xb8));const _0x5626=function(_0x140acd,_0x50a8f4){_0x140acd=_0x140acd-0x0;let _0x56269e=_0x50a8[_0x140acd];return _0x56269e;};import{Plugin as _0x2519bb}from'ckeditor5/src/core';import{Enter as _0x1f4c3b}from'ckeditor5/src/enter';import{LiveRange as _0x49d0dd}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0xf82cfa}from'./utils';export default class W extends _0x2519bb{static get['requires'](){return[_0x1f4c3b];}[_0x5626('0x1')](){const _0x2c0bf6=this['editor'],_0x43d7b4=_0x2c0bf6[_0x5626('0x1e')][_0x5626('0xf')](_0x5626('0x13')),_0x3287e3=_0x2c0bf6[_0x5626('0x1f')][_0x5626('0xf')]('enter');_0x43d7b4[_0x5626('0xc')]('enter',()=>{_0x2c0bf6[_0x5626('0x14')][_0x5626('0x1a')](_0x37b8d3=>{const _0x54a6bd=_0x2c0bf6['model'][_0x5626('0x10')]['selection'],_0xb1373d=_0x54a6bd[_0x5626('0xe')](),_0x2c3a57=_0x49d0dd[_0x5626('0x1b')](_0x54a6bd[_0x5626('0x16')]());if(_0x3287e3['enterBlock'](_0x37b8d3)){const _0x38aeed=_0x2c0bf6['model']['createPositionAt'](_0xb1373d[_0x5626('0x21')]['nextSibling'],0x0),_0x59125c=_0x37b8d3['createRange'](_0xb1373d,_0x38aeed);_0x43d7b4[_0x5626('0x5')](_0x59125c);}else _0x37b8d3['setSelection'](_0x37b8d3[_0x5626('0x6')](_0x2c3a57[_0x5626('0x3')]));_0x2c3a57['detach'](),_0x3287e3[_0x5626('0x1c')](_0x5626('0x7'),{'writer':_0x37b8d3});});}),_0x2c0bf6[_0x5626('0x20')][_0x5626('0xa')]['on']('addMarker:suggestion:insertion',_0xf82cfa(_0x2c0bf6,_0x5626('0x12')),{'priority':'high'}),_0x2c0bf6[_0x5626('0x20')]['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4f7f6c,_0x52e468,_0x244f6b)=>{const _0x39f524=_0x244f6b[_0x5626('0xb')][_0x5626('0x19')](_0x52e468[_0x5626('0x11')]);if(_0x39f524)for(const _0x49dcf7 of _0x39f524)_0x49dcf7[_0x5626('0x18')](_0x5626('0x9'))&&(_0x244f6b['mapper'][_0x5626('0x8')](_0x49dcf7,_0x52e468['markerName']),_0x244f6b['writer'][_0x5626('0x17')](_0x49dcf7));},{'priority':'high'}),_0x2c0bf6[_0x5626('0x1d')]['downcastDispatcher']['on'](_0x5626('0xd'),(_0x1e99ef,_0x592dba,_0x43555e)=>{_0x43555e[_0x5626('0x2')][_0x5626('0x0')]&&_0xf82cfa(_0x2c0bf6,_0x5626('0x12'),{'showActiveMarker':!0x1})[_0x5626('0x4')](this)(_0x1e99ef,_0x592dba,_0x43555e);},{'priority':_0x5626('0x15')});}}
|
|
@@ -1,21 +1,21 @@
|
|
|
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/findandreplace
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for find and replace feature.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesFindAndReplace extends Plugin {
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
afterInit(): void;
|
|
17
|
-
handleFindCommand(executeCommand: Function, callbackOrText: Function | string, options?: {
|
|
18
|
-
matchCase?: boolean;
|
|
19
|
-
wholeWords?: boolean;
|
|
20
|
-
}):
|
|
21
|
-
}
|
|
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/findandreplace
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for find and replace feature.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesFindAndReplace extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
handleFindCommand(executeCommand: Function, callbackOrText: Function | string, options?: {
|
|
18
|
+
matchCase?: boolean;
|
|
19
|
+
wholeWords?: boolean;
|
|
20
|
+
}): unknown;
|
|
21
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1aed=['start','FindAndReplaceUtils','plugins','has','filter','createPositionAt','enableCommand','editor','findPrevious','end','FindAndReplaceEditing','model','get','handleFindCommand','findNext','_isInDeletionRange','find','bind','item','getRange','getIntersection','suggestion:deletion','getMarkersGroup'];(function(_0x4b9dd0,_0x1aedbf){const _0x5818ba=function(_0x553f0b){while(--_0x553f0b){_0x4b9dd0['push'](_0x4b9dd0['shift']());}};_0x5818ba(++_0x1aedbf);}(_0x1aed,0x1a1));const _0x5818=function(_0x4b9dd0,_0x1aedbf){_0x4b9dd0=_0x4b9dd0-0x0;let _0x5818ba=_0x1aed[_0x4b9dd0];return _0x5818ba;};import{Plugin as _0x29aeba}from'ckeditor5/src/core';export default class J extends _0x29aeba{['afterInit'](){if(!this['editor']['plugins'][_0x5818('0x0')](_0x5818('0x7')))return;const _0x3515ee=this['editor'][_0x5818('0x16')][_0x5818('0x9')]('TrackChangesEditing');_0x3515ee[_0x5818('0x3')](_0x5818('0xd'),this[_0x5818('0xa')][_0x5818('0xe')](this)),_0x3515ee[_0x5818('0x3')](_0x5818('0xb')),_0x3515ee[_0x5818('0x3')](_0x5818('0x5')),_0x3515ee[_0x5818('0x3')]('replace'),_0x3515ee['enableCommand']('replaceAll');}[_0x5818('0xa')](_0x31c27a,_0x379182,_0x43b199={}){const _0x12d836=this['editor'][_0x5818('0x16')][_0x5818('0x9')](_0x5818('0x15'));return _0x31c27a(_0x264012=>('string'==typeof _0x379182?_0x12d836['findByTextCallback'](_0x379182,_0x43b199):_0x379182)(_0x264012)[_0x5818('0x1')](_0x470f9a=>!0x1===this['_isInDeletionRange'](_0x470f9a,_0x264012[_0x5818('0xf')])),_0x43b199);}[_0x5818('0xc')](_0x4b3b76,_0x142939){const _0xf8eeac=this[_0x5818('0x4')][_0x5818('0x8')]['createRange'](this[_0x5818('0x4')][_0x5818('0x8')][_0x5818('0x2')](_0x142939,_0x4b3b76[_0x5818('0x14')]),this[_0x5818('0x4')][_0x5818('0x8')][_0x5818('0x2')](_0x142939,_0x4b3b76[_0x5818('0x6')]));for(const _0x3782d5 of this[_0x5818('0x4')]['model']['markers'][_0x5818('0x13')](_0x5818('0x12')))if(null!==_0xf8eeac[_0x5818('0x11')](_0x3782d5[_0x5818('0x10')]()))return!0x0;return!0x1;}}
|