@ckeditor/ckeditor5-track-changes 39.0.1 → 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/CHANGELOG.md +2 -2
- package/LICENSE.md +6 -6
- package/README.md +14 -14
- package/build/track-changes.js +1 -1
- package/lang/translations/ar.po +1 -0
- package/lang/translations/az.po +1 -0
- package/lang/translations/bg.po +1 -0
- package/lang/translations/bn.po +1 -0
- package/lang/translations/ca.po +1 -0
- package/lang/translations/cs.po +1 -0
- package/lang/translations/da.po +1 -0
- package/lang/translations/de.po +1 -0
- package/lang/translations/el.po +1 -0
- package/lang/translations/en-au.po +1 -0
- package/lang/translations/en.po +1 -0
- package/lang/translations/es.po +1 -0
- package/lang/translations/et.po +1 -0
- package/lang/translations/fi.po +1 -0
- package/lang/translations/fr.po +1 -0
- package/lang/translations/gl.po +1 -0
- package/lang/translations/he.po +1 -0
- package/lang/translations/hi.po +1 -0
- package/lang/translations/hr.po +1 -0
- package/lang/translations/hu.po +1 -0
- package/lang/translations/id.po +1 -0
- package/lang/translations/it.po +1 -0
- package/lang/translations/ja.po +1 -0
- package/lang/translations/ko.po +1 -0
- package/lang/translations/lt.po +1 -0
- package/lang/translations/lv.po +1 -0
- package/lang/translations/ms.po +1 -0
- package/lang/translations/nl.po +1 -0
- package/lang/translations/no.po +1 -0
- package/lang/translations/pl.po +1 -0
- package/lang/translations/pt-br.po +1 -0
- package/lang/translations/pt.po +1 -0
- package/lang/translations/ro.po +1 -0
- package/lang/translations/ru.po +1 -0
- package/lang/translations/sk.po +1 -0
- package/lang/translations/sq.po +1 -0
- package/lang/translations/sr-latn.po +1 -0
- package/lang/translations/sr.po +1 -0
- package/lang/translations/sv.po +1 -0
- package/lang/translations/th.po +1 -0
- package/lang/translations/tk.po +1 -0
- package/lang/translations/tr.po +1 -0
- package/lang/translations/tt.po +1 -0
- package/lang/translations/uk.po +1 -0
- package/lang/translations/ur.po +1 -0
- package/lang/translations/vi.po +1 -0
- package/lang/translations/zh-cn.po +1 -0
- package/lang/translations/zh.po +1 -0
- package/package.json +3 -7
- 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 -439
- 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
|
@@ -1,23 +1,23 @@
|
|
|
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/imagereplace
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import type Suggestion from '../suggestion';
|
|
10
|
-
import type { Description } from '../suggestiondescriptionfactory';
|
|
11
|
-
/**
|
|
12
|
-
* Provides track changes plugin integration for image replace feature.
|
|
13
|
-
*/
|
|
14
|
-
export default class TrackChangesImageReplace extends Plugin {
|
|
15
|
-
/**
|
|
16
|
-
* @inheritDoc
|
|
17
|
-
*/
|
|
18
|
-
afterInit(): void;
|
|
19
|
-
handleReplaceImageCommand(executeCommand: Function, options: {
|
|
20
|
-
source: string;
|
|
21
|
-
}): void;
|
|
22
|
-
handleSuggestionDescription(suggestion: Suggestion): Description | undefined;
|
|
23
|
-
}
|
|
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/imagereplace
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import type Suggestion from '../suggestion';
|
|
10
|
+
import type { Description } from '../suggestiondescriptionfactory';
|
|
11
|
+
/**
|
|
12
|
+
* Provides track changes plugin integration for image replace feature.
|
|
13
|
+
*/
|
|
14
|
+
export default class TrackChangesImageReplace extends Plugin {
|
|
15
|
+
/**
|
|
16
|
+
* @inheritDoc
|
|
17
|
+
*/
|
|
18
|
+
afterInit(): void;
|
|
19
|
+
handleReplaceImageCommand(executeCommand: Function, options: {
|
|
20
|
+
source: string;
|
|
21
|
+
}): void;
|
|
22
|
+
handleSuggestionDescription(suggestion: Suggestion): Description | undefined;
|
|
23
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf3c3=['has','selection','registerCustomCallback','get','author','source','data','enableCommand','handleSuggestionDescription','handleReplaceImageCommand','src','ImageEditing','_suggestionFactory','getSuggestionCallback','locale','afterInit','getContainedElement','getSuggestions','commandParams','commandName','markBlockFormat','accept','plugins','TrackChangesEditing','discard','Users','editor','replaceImageSource','format','*Format:*\x20replace\x20image\x20URL','formatBlock','change','getSelectedElement'];(function(_0x5447ff,_0xf3c35c){const _0x270773=function(_0x5e7a48){while(--_0x5e7a48){_0x5447ff['push'](_0x5447ff['shift']());}};_0x270773(++_0xf3c35c);}(_0xf3c3,0x1c6));const _0x2707=function(_0x5447ff,_0xf3c35c){_0x5447ff=_0x5447ff-0x0;let _0x270773=_0xf3c3[_0x5447ff];return _0x270773;};import{Plugin as _0x4bfaf2}from'ckeditor5/src/core';import{getTranslation as _0x4abe83}from'../utils/common-translations';export default class Z extends _0x4bfaf2{[_0x2707('0x17')](){if(!this[_0x2707('0x1')][_0x2707('0x1e')][_0x2707('0x8')](_0x2707('0x13')))return;const _0x2b4b29=this['editor']['plugins'][_0x2707('0xb')](_0x2707('0x1f'));_0x2b4b29[_0x2707('0xf')](_0x2707('0x2'),(_0x3d784c,_0x3f04cc)=>this[_0x2707('0x11')](_0x3d784c,_0x3f04cc)),_0x2b4b29[_0x2707('0x14')][_0x2707('0xa')](_0x2707('0x5'),'replaceImageSource',_0x2707('0x1d'),_0x2b4b29['_suggestionFactory'][_0x2707('0x15')](_0x2707('0x5'),null,'discard')),_0x2b4b29['_suggestionFactory'][_0x2707('0xa')](_0x2707('0x5'),_0x2707('0x2'),_0x2707('0x20'),_0x2b4b29['_suggestionFactory']['getSuggestionCallback'](_0x2707('0x5'),null,_0x2707('0x1d'))),_0x2b4b29['_descriptionFactory']['registerDescriptionCallback'](_0x4bca43=>this[_0x2707('0x10')](_0x4bca43));}['handleReplaceImageCommand'](_0x12ae28,_0x28850f){const _0x5184ac=this['editor'][_0x2707('0x1e')][_0x2707('0xb')](_0x2707('0x1f')),_0x218744=this[_0x2707('0x1')]['model']['document'][_0x2707('0x9')][_0x2707('0x7')]();this[_0x2707('0x1')]['model'][_0x2707('0x6')](()=>{let _0x3a7219=_0x218744['getAttribute'](_0x2707('0x12'));const _0x427c01=this[_0x2707('0x1')][_0x2707('0x1e')][_0x2707('0xb')](_0x2707('0x0'))['me'];for(const _0x27c9f6 of _0x5184ac[_0x2707('0x19')]({'skipNotAttached':!0x0})){const _0x57b50b=_0x27c9f6[_0x2707('0x18')]();if(_0x2707('0x2')===_0x27c9f6['subType']&&_0x57b50b===_0x218744){_0x27c9f6[_0x2707('0xc')]!==_0x427c01&&_0x27c9f6[_0x2707('0x20')](),_0x3a7219=_0x27c9f6[_0x2707('0xe')][_0x2707('0x1a')][0x0][_0x2707('0xd')];break;}}_0x12ae28(_0x28850f),_0x5184ac[_0x2707('0x1c')](_0x218744,{'commandName':_0x2707('0x2'),'commandParams':[{'source':_0x3a7219}]},[],_0x2707('0x2'));});}[_0x2707('0x10')](_0x1915b4){const {data:_0x24ccb6}=_0x1915b4;if(_0x24ccb6&&'replaceImageSource'===_0x24ccb6[_0x2707('0x1b')]){const _0x379186=_0x2707('0x4');return{'type':_0x2707('0x3'),'content':_0x4abe83(this['editor'][_0x2707('0x16')],_0x379186)};}}}
|
|
@@ -1,18 +1,18 @@
|
|
|
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/importword
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for the import from Word feature.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesImportWord extends Plugin {
|
|
13
|
-
constructor(editor: Editor);
|
|
14
|
-
/**
|
|
15
|
-
* @inheritDoc
|
|
16
|
-
*/
|
|
17
|
-
afterInit(): void;
|
|
18
|
-
}
|
|
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/importword
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for the import from Word feature.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesImportWord extends Plugin {
|
|
13
|
+
constructor(editor: Editor);
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
afterInit(): void;
|
|
18
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x54db=['enableCommand','Users','TrackChangesEditing','listenTo','_trackChangesExecuted','trackChanges','_setSuggestionData','_trackChangesValueDuringImport','dataInsert','editor','plugins','forEach','lowest','high','importWord','execute','commands','bind','get','track_changes','collaboration_features','value','afterInit','_handleImportedData'];(function(_0x24fa38,_0x54db3e){const _0x5d15d5=function(_0x5de8af){while(--_0x5de8af){_0x24fa38['push'](_0x24fa38['shift']());}};_0x5d15d5(++_0x54db3e);}(_0x54db,0xff));const _0x5d15=function(_0x24fa38,_0x54db3e){_0x24fa38=_0x24fa38-0x0;let _0x5d15d5=_0x54db[_0x24fa38];return _0x5d15d5;};import{Plugin as _0x23c195}from'ckeditor5/src/core';export default class tt extends _0x23c195{constructor(_0x56c92b){super(_0x56c92b),this[_0x5d15('0x10')]=!0x1,this[_0x5d15('0xd')]=!0x1;}[_0x5d15('0x7')](){const _0x1715d3=this['editor'],_0xf241f6=_0x1715d3[_0x5d15('0x1')][_0x5d15('0x3')](_0x5d15('0x17')),_0x49e5ac=_0x1715d3[_0x5d15('0x1')][_0x5d15('0x3')](_0x5d15('0xe'));_0xf241f6&&(_0xf241f6['on'](_0x5d15('0x0'),(_0x203677,[,_0x560ef5])=>{this[_0x5d15('0x10')]=_0x49e5ac[_0x5d15('0x6')],_0x560ef5[_0x5d15('0x5')][_0x5d15('0x4')]=!this[_0x5d15('0x10')];},{'priority':_0x5d15('0x16')}),this[_0x5d15('0xc')](_0xf241f6,_0x5d15('0x11'),this[_0x5d15('0x8')][_0x5d15('0x2')](this)),this['listenTo'](_0xf241f6,_0x5d15('0x11'),()=>{this[_0x5d15('0xd')]&&(_0x49e5ac['execute'](),this[_0x5d15('0xd')]=!0x1);},{'priority':_0x5d15('0x15')}),_0x1715d3[_0x5d15('0x13')][_0x5d15('0x3')](_0x5d15('0xb'))[_0x5d15('0x9')](_0x5d15('0x17')));}[_0x5d15('0x8')](_0x12f349,_0x4fdb0b){const {suggestions:_0x1dc88c}=_0x4fdb0b,_0x572d21=this[_0x5d15('0x12')]['commands']['get'](_0x5d15('0xe')),_0x524ce3=_0x572d21['value'];this[_0x5d15('0x10')]!==_0x524ce3&&(_0x572d21[_0x5d15('0x0')](),this['_trackChangesExecuted']=!0x0),_0x1dc88c&&_0x1dc88c[_0x5d15('0x14')](({id:_0x216b01,type:_0x4c9289,author:_0x5e05d5,created_at:_0x5590aa})=>{const _0x1dc3d6={'id':_0x216b01,'type':_0x4c9289,'authorId':this[_0x5d15('0x12')]['plugins']['get'](_0x5d15('0xa'))['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5e05d5,'createdAt':_0x5590aa?new Date(_0x5590aa):new Date(),'source':_0x5d15('0x17')}}};this[_0x5d15('0x12')]['plugins'][_0x5d15('0x3')]('TrackChangesEditing')[_0x5d15('0xf')](_0x1dc3d6);});}}
|
|
@@ -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/indent
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for {@link module:indent/indent~Indent indent/outdent feature}.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesIndent 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/indent
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for {@link module:indent/indent~Indent indent/outdent feature}.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesIndent extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1932=['outdentBlock','document','locale','getSelectedBlocks','commandName','registerDescriptionCallback','editor','from','filter','plugins','afterInit','enableCommand','TrackChangesEditing','model','getItems','selection','indent','_descriptionFactory','format','IndentEditing','indentBlock','*Indent:*\x20%0','outdent','checkAttribute','has','*Outdent:*\x20%0','schema'];(function(_0x1b9c4f,_0x193242){const _0x4dab6f=function(_0x2d4950){while(--_0x2d4950){_0x1b9c4f['push'](_0x1b9c4f['shift']());}};_0x4dab6f(++_0x193242);}(_0x1932,0xd8));const _0x4dab=function(_0x1b9c4f,_0x193242){_0x1b9c4f=_0x1b9c4f-0x0;let _0x4dab6f=_0x1932[_0x1b9c4f];return _0x4dab6f;};import{Plugin as _0x2da79a}from'ckeditor5/src/core';import{getTranslation as _0x2f1e88}from'../utils/common-translations';export default class it extends _0x2da79a{[_0x4dab('0xa')](){const _0x1eb6dc=this[_0x4dab('0x6')],_0x12ee84=_0x1eb6dc[_0x4dab('0x9')]['get'](_0x4dab('0xc'));_0x1eb6dc[_0x4dab('0x9')][_0x4dab('0x18')](_0x4dab('0x13'))&&(_0x12ee84[_0x4dab('0xb')](_0x4dab('0x10')),_0x12ee84[_0x4dab('0xb')](_0x4dab('0x16')));const _0x16c392=_0x1eb6dc[_0x4dab('0x2')];if(_0x1eb6dc[_0x4dab('0x9')]['has']('IndentBlock')){for(const _0xcee4ec of[_0x4dab('0x14'),'outdentBlock'])_0x12ee84['enableCommand'](_0xcee4ec,()=>{const _0x2ab763=Array[_0x4dab('0x7')](this['editor'][_0x4dab('0xd')][_0x4dab('0x1')][_0x4dab('0xf')][_0x4dab('0x3')]())[_0x4dab('0x8')](_0x1a8d95=>this[_0x4dab('0x6')][_0x4dab('0xd')][_0x4dab('0x1a')][_0x4dab('0x17')](_0x1a8d95,'blockIndent'));_0x1eb6dc[_0x4dab('0xd')]['change'](()=>{for(const _0x28f15b of _0x2ab763)_0x12ee84['markBlockFormat'](_0x28f15b,{'commandName':_0xcee4ec,'commandParams':[{'value':''}],'formatGroupId':_0x4dab('0x14')});});});_0x12ee84['_descriptionFactory'][_0x4dab('0x5')](_0x277eec=>{const {data:_0x533f22}=_0x277eec;if(!_0x533f22)return;if(_0x4dab('0x14')!=_0x533f22[_0x4dab('0x4')]&&_0x4dab('0x0')!=_0x533f22[_0x4dab('0x4')])return;const _0x36ce4b=_0x277eec[_0x4dab('0xe')]()[0x0],_0x324cd9=_0x12ee84[_0x4dab('0x11')]['getItemLabel'](_0x36ce4b);return'indentBlock'==_0x533f22[_0x4dab('0x4')]?{'type':'format','content':_0x2f1e88(_0x16c392,_0x4dab('0x15'),_0x324cd9)}:_0x4dab('0x0')==_0x533f22[_0x4dab('0x4')]?{'type':_0x4dab('0x12'),'content':_0x2f1e88(_0x16c392,_0x4dab('0x19'),_0x324cd9)}:void 0x0;});}}}
|
|
@@ -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/inputcommand/inputcommand
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import { Input } from 'ckeditor5/src/typing';
|
|
10
|
-
/**
|
|
11
|
-
* Provides track changes plugin integration for {@link module:typing/inputcommand~InputCommand input command}.
|
|
12
|
-
*/
|
|
13
|
-
export default class TrackChangesInputCommand extends Plugin {
|
|
14
|
-
static get requires(): readonly [typeof Input];
|
|
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/inputcommand/inputcommand
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import { Input } from 'ckeditor5/src/typing';
|
|
10
|
+
/**
|
|
11
|
+
* Provides track changes plugin integration for {@link module:typing/inputcommand~InputCommand input command}.
|
|
12
|
+
*/
|
|
13
|
+
export default class TrackChangesInputCommand extends Plugin {
|
|
14
|
+
static get requires(): readonly [typeof Input];
|
|
15
|
+
init(): void;
|
|
16
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xa69b=['enableCommand','TrackChangesEditing','requires','input','init'];(function(_0x1adced,_0xa69b5c){var _0x46dff1=function(_0x229e90){while(--_0x229e90){_0x1adced['push'](_0x1adced['shift']());}};_0x46dff1(++_0xa69b5c);}(_0xa69b,0xd4));var _0x46df=function(_0x1adced,_0xa69b5c){_0x1adced=_0x1adced-0x0;var _0x46dff1=_0xa69b[_0x1adced];return _0x46dff1;};import{Plugin as _0x27c291}from'ckeditor5/src/core';import{Input as _0x1addf4}from'ckeditor5/src/typing';export default class et extends _0x27c291{static get[_0x46df('0x0')](){return[_0x1addf4];}[_0x46df('0x2')](){this['editor']['plugins']['get'](_0x46df('0x4'))[_0x46df('0x3')](_0x46df('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/link
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for link feature.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesLink 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/link
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for link feature.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesLink extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a1e=['isCollapsed','registerDescriptionCallback','selection','has','format','enableCommand','_descriptionFactory','document','change','link','*Remove\x20link*','getFirstRange','hasAttribute','unlink','linkHref','get','markInlineFormat','getFirstPosition','commandParams','model','TrackChangesEditing','LinkEditing','plugins','editor','commandName'];(function(_0x5e8429,_0x1a1e11){const _0x6a53ba=function(_0x47fdd8){while(--_0x47fdd8){_0x5e8429['push'](_0x5e8429['shift']());}};_0x6a53ba(++_0x1a1e11);}(_0x1a1e,0x1f1));const _0x6a53=function(_0x5e8429,_0x1a1e11){_0x5e8429=_0x5e8429-0x0;let _0x6a53ba=_0x1a1e[_0x5e8429];return _0x6a53ba;};import{Plugin as _0x5e5fe5}from'ckeditor5/src/core';import{findAttributeRange as _0x48920b}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x31378d}from'./utils';import{getTranslation as _0x4bcaff}from'../utils/common-translations';export default class nt extends _0x5e5fe5{['afterInit'](){const _0x47d753=this[_0x6a53('0x1')];if(!_0x47d753['plugins'][_0x6a53('0x6')](_0x6a53('0x18')))return;const _0x2f25b7=_0x47d753[_0x6a53('0x0')][_0x6a53('0x12')](_0x6a53('0x17'));_0x2f25b7[_0x6a53('0x8')](_0x6a53('0xc'),(_0x1cfee6,_0x214116)=>{const _0x1f1fbf=_0x47d753[_0x6a53('0x16')][_0x6a53('0xa')][_0x6a53('0x5')];let _0x156b27=[];if(_0x1f1fbf[_0x6a53('0x3')]){if(!_0x1f1fbf[_0x6a53('0xf')](_0x6a53('0x11')))return void _0x1cfee6(_0x214116);{const _0x425d65=_0x48920b(_0x1f1fbf[_0x6a53('0x14')](),_0x6a53('0x11'),_0x1f1fbf['getAttribute'](_0x6a53('0x11')),_0x47d753[_0x6a53('0x16')]);_0x156b27=[_0x425d65];}}else _0x156b27=Array['from'](_0x1f1fbf['getRanges']());_0x47d753[_0x6a53('0x16')][_0x6a53('0xb')](()=>{for(const _0x19782a of _0x156b27)_0x2f25b7[_0x6a53('0x13')](_0x19782a,{'commandName':'link','commandParams':[_0x214116]});});}),_0x2f25b7[_0x6a53('0x8')](_0x6a53('0x10'),()=>{const _0x241b46=this['editor'][_0x6a53('0x16')],_0x501559=_0x241b46[_0x6a53('0xa')]['selection'];_0x241b46['change'](()=>{let _0x428de8=[];if(_0x501559['isCollapsed'])_0x428de8=[_0x48920b(_0x501559[_0x6a53('0x14')](),_0x6a53('0x11'),_0x501559['getAttribute']('linkHref'),_0x47d753[_0x6a53('0x16')])];else _0x428de8=_0x31378d(_0x6a53('0x11'),_0x501559[_0x6a53('0xe')](),_0x47d753[_0x6a53('0x16')]);for(const _0x15664e of _0x428de8)_0x2f25b7['markInlineFormat'](_0x15664e,{'commandName':_0x6a53('0x10'),'commandParams':[]});});}),_0x2f25b7[_0x6a53('0x9')][_0x6a53('0x4')](_0x24bbe0=>{const {data:_0x4acef2}=_0x24bbe0,_0x4bbb1e=_0x47d753['locale'];if(_0x4acef2){if(_0x6a53('0xc')==_0x4acef2[_0x6a53('0x2')]){const _0x41850c=_0x4acef2[_0x6a53('0x15')][0x0];return{'type':'format','content':_0x4bcaff(_0x4bbb1e,'*Set\x20link:*\x20%0','\x22'+_0x41850c+'\x22')};}return _0x6a53('0x10')==_0x4acef2[_0x6a53('0x2')]?{'type':_0x6a53('0x7'),'content':_0x4bcaff(_0x4bbb1e,_0x6a53('0xd'))}:void 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/list
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for list feature.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesList 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/list
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for list feature.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesList extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
package/src/integrations/list.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x510b=['element','document','selection','format','ELEMENT_NUMBERED_LIST','has','commandName','todo','*Check\x20item*','registerDescriptionCallback','parent','nextSibling','*Uncheck\x20item*','slice','blockName','plugins','createRange','checkTodoList','registerElementLabel','commands','createPositionAt','get','todoList','length','listType','numbered','value','isObject','editor','execute','getSelectedBlocks','getAttribute','afterInit','List','schema','bulletedList','push','end','replace','_selectedElements','locale','paragraph','listItem','todoListChecked','*Change\x20to:*\x20%0','ELEMENT_LIST_ITEM','commandParams','_descriptionFactory','markBlockFormat','model','add','listIndent','ListEditing','before','enableCommand','previousSibling','from','outdentList','TodoListEditing','filter','change','name','indentList'];(function(_0x402542,_0x510b57){const _0x387953=function(_0x3f30c7){while(--_0x3f30c7){_0x402542['push'](_0x402542['shift']());}};_0x387953(++_0x510b57);}(_0x510b,0x171));const _0x3879=function(_0x402542,_0x510b57){_0x402542=_0x402542-0x0;let _0x387953=_0x510b[_0x402542];return _0x387953;};import{Plugin as _0x20c961}from'ckeditor5/src/core';import{getTranslation as _0x22cc15}from'../utils/common-translations';export default class st extends _0x20c961{[_0x3879('0x29')](){const _0x15afbe=this[_0x3879('0x25')],_0xfbecd4=_0x15afbe[_0x3879('0x31')];if(!_0x15afbe[_0x3879('0x18')][_0x3879('0xe')](_0x3879('0x3d')))return;const _0x55ebf9=_0x15afbe[_0x3879('0x18')][_0x3879('0x1e')]('TrackChangesEditing'),_0x18dd9c=_0x15afbe[_0x3879('0x18')]['has'](_0x3879('0x4'));function _0x3401db(_0x535d47){return()=>{const _0x18cd9f=_0x15afbe[_0x3879('0x3a')][_0x3879('0xa')][_0x3879('0xb')],_0x31f756=_0x15afbe[_0x3879('0x1c')][_0x3879('0x1e')](_0x535d47);if(_0x31f756[_0x3879('0x23')])return void _0x15afbe[_0x3879('0x26')](_0x3879('0x32'),{});const _0x4ff80d=_0x535d47[_0x3879('0x16')](0x0,-0x4),_0x2a2edf=function(_0x271ee6,_0x231b1e,_0x34eed3){let _0x598494=Array[_0x3879('0x2')](_0x271ee6)[_0x3879('0x5')](_0x3550b7=>function(_0x10b013,_0x108833){return _0x108833['checkChild'](_0x10b013[_0x3879('0x13')],_0x3879('0x33'))&&!_0x108833[_0x3879('0x24')](_0x10b013);}(_0x3550b7,_0x34eed3));_0x598494=_0x598494[_0x3879('0x5')](_0x29f602=>!_0x29f602['is']('element',_0x3879('0x33'))||_0x29f602[_0x3879('0x28')](_0x3879('0x21'))!=_0x231b1e);const _0x7f6074=new Set();for(const _0x3fdd57 of _0x598494)_0x3fdd57['is'](_0x3879('0x9'),_0x3879('0x33'))?_0x7f6074[_0x3879('0x3b')](ne(_0x3fdd57)):_0x7f6074[_0x3879('0x3b')](_0x3fdd57);return Array['from'](_0x7f6074);}(_0x18cd9f[_0x3879('0x27')](),_0x4ff80d,_0x15afbe[_0x3879('0x3a')][_0x3879('0x2b')]);_0x15afbe[_0x3879('0x3a')][_0x3879('0x6')](()=>{for(const _0x4cd9f8 of _0x2a2edf)_0x55ebf9['markBlockFormat'](_0x4cd9f8,{'commandName':_0x535d47,'commandParams':[{'forceValue':!_0x31f756[_0x3879('0x23')]}],'formatGroupId':_0x3879('0x17')},oe(_0x4cd9f8));});};}function _0x240ea3(_0x4ae6a2){return()=>{const _0x287367=function(_0x3693e7){let _0x111b2a=Array[_0x3879('0x2')](_0x3693e7);const _0x4a73c9=_0x111b2a['findIndex'](_0x525704=>_0x3879('0x33')!=_0x525704[_0x3879('0x7')]);return _0x4a73c9>-0x1&&(_0x111b2a=_0x111b2a['slice'](0x0,_0x4a73c9)),_0x111b2a;}(_0x15afbe['model'][_0x3879('0xa')]['selection'][_0x3879('0x27')]()),_0x27d400=_0x15afbe[_0x3879('0x3a')][_0x3879('0x19')](_0x15afbe[_0x3879('0x3a')][_0x3879('0x1d')](_0x287367[0x0],_0x3879('0x3e')),_0x15afbe[_0x3879('0x3a')][_0x3879('0x1d')](_0x287367[_0x287367[_0x3879('0x20')]-0x1],_0x3879('0x2e')));_0x15afbe[_0x3879('0x3a')][_0x3879('0x6')](()=>{_0x55ebf9[_0x3879('0x39')](_0x27d400,{'commandName':_0x4ae6a2,'commandParams':[],'formatGroupId':_0x3879('0x3c')},function(_0x4b4ffb){const _0xef6996=new Set();for(const _0x16b3bf of _0x4b4ffb){let _0x2c971e=_0x16b3bf['nextSibling'];for(;_0x2c971e&&_0x2c971e['getAttribute'](_0x3879('0x3c'))>_0x16b3bf['getAttribute']('listIndent');)_0xef6996[_0x3879('0x3b')](_0x2c971e),_0x2c971e=_0x2c971e['nextSibling'];}return Array[_0x3879('0x2')](_0xef6996);}(_0x287367));});};}_0x55ebf9[_0x3879('0x0')]('numberedList',_0x3401db('numberedList')),_0x55ebf9['enableCommand'](_0x3879('0x2c'),_0x3401db(_0x3879('0x2c'))),_0x18dd9c&&_0x55ebf9[_0x3879('0x0')](_0x3879('0x1f'),_0x3401db(_0x3879('0x1f'))),_0x55ebf9['enableCommand']('indentList',_0x240ea3(_0x3879('0x8'))),_0x55ebf9[_0x3879('0x0')](_0x3879('0x3'),_0x240ea3('outdentList')),_0x18dd9c&&_0x55ebf9[_0x3879('0x0')](_0x3879('0x1a'),()=>{const _0x26064d=_0x15afbe[_0x3879('0x1c')]['get'](_0x3879('0x1a')),_0xbe3c6d=Array['from'](_0x26064d[_0x3879('0x30')]);_0xbe3c6d[_0x3879('0x5')](_0xfd204a=>_0xfd204a[_0x3879('0x28')](_0x3879('0x34'))!=_0x26064d[_0x3879('0x23')]),_0x15afbe[_0x3879('0x3a')]['change'](()=>{for(const _0x19b6f6 of _0xbe3c6d)_0x55ebf9[_0x3879('0x39')](_0x19b6f6,{'commandName':_0x3879('0x1a'),'commandParams':[{'forceValue':!_0x26064d[_0x3879('0x23')]}]});});}),_0x55ebf9[_0x3879('0x38')][_0x3879('0x1b')](_0x3879('0x33'),_0x3b2199=>_0x22cc15(_0xfbecd4,_0x3879('0x36'),_0x3b2199)),_0x55ebf9[_0x3879('0x38')][_0x3879('0x12')](_0x3d8fcb=>{const {data:_0x3bd952}=_0x3d8fcb;if(_0x3bd952){if('numberedList'==_0x3bd952[_0x3879('0xf')]||'bulletedList'==_0x3bd952[_0x3879('0xf')]||_0x3879('0x1f')==_0x3bd952['commandName'])switch(_0x3bd952[_0x3879('0xf')][_0x3879('0x2f')](_0x3879('0x2a'),'')){case'bulleted':return _0x145960(_0x22cc15(_0xfbecd4,'ELEMENT_BULLETED_LIST'));case _0x3879('0x22'):return _0x145960(_0x22cc15(_0xfbecd4,_0x3879('0xd')));case _0x3879('0x10'):return _0x145960(_0x22cc15(_0xfbecd4,'ELEMENT_TODO_LIST'));}if(_0x3879('0x8')==_0x3bd952[_0x3879('0xf')])return{'type':_0x3879('0xc'),'content':_0x22cc15(_0xfbecd4,'*Indent:*\x20%0',_0x22cc15(_0xfbecd4,_0x3879('0x36')))};if(_0x3879('0x3')==_0x3bd952[_0x3879('0xf')])return{'type':'format','content':_0x22cc15(_0xfbecd4,'*Outdent:*\x20%0',_0x22cc15(_0xfbecd4,'ELEMENT_LIST_ITEM'))};if(_0x3879('0x1a')==_0x3bd952[_0x3879('0xf')])return _0x3bd952[_0x3879('0x37')][0x0]['forceValue']?{'type':_0x3879('0xc'),'content':_0x22cc15(_0xfbecd4,_0x3879('0x11'))}:{'type':_0x3879('0xc'),'content':_0x22cc15(_0xfbecd4,_0x3879('0x15'))};}function _0x145960(_0x47efed){return{'type':_0x3879('0xc'),'content':_0x22cc15(_0xfbecd4,_0x3879('0x35'),_0x47efed)};}});}}function ne(_0x37c1ff){const _0x1016fb=_0x37c1ff[_0x3879('0x28')]('listIndent');if(0x0==_0x1016fb)return _0x37c1ff;let _0x20f8b6=_0x37c1ff;for(;_0x37c1ff[_0x3879('0x1')]&&_0x37c1ff[_0x3879('0x1')]['is'](_0x3879('0x9'),_0x3879('0x33'));){const _0x3b9e32=_0x37c1ff[_0x3879('0x1')][_0x3879('0x28')](_0x3879('0x3c'));if(_0x3b9e32==_0x1016fb)_0x20f8b6=_0x37c1ff[_0x3879('0x1')];else{if(_0x3b9e32<_0x1016fb)break;}_0x37c1ff=_0x37c1ff[_0x3879('0x1')];}return _0x20f8b6;}function oe(_0x45ad78){const _0x2f24a7=[];if(_0x45ad78['is']('element',_0x3879('0x33'))&&_0x45ad78[_0x3879('0x28')]('listIndent')>0x0){let _0x3a089b=_0x45ad78['nextSibling'];for(;_0x3a089b&&'listItem'==_0x3a089b[_0x3879('0x7')]&&_0x3a089b[_0x3879('0x28')](_0x3879('0x3c'))==_0x45ad78['getAttribute'](_0x3879('0x3c'));)_0x2f24a7[_0x3879('0x2d')](_0x3a089b),_0x3a089b=_0x3a089b[_0x3879('0x14')];}return _0x2f24a7;}
|
|
@@ -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/listproperties
|
|
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 list properties feature.
|
|
13
|
-
*/
|
|
14
|
-
export default class TrackChangesListProperties 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/listproperties
|
|
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 list properties feature.
|
|
13
|
+
*/
|
|
14
|
+
export default class TrackChangesListProperties 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 _0x5cd0=['getSelectedBlocks','config','plugins','from','listType','ListPropertiesEditing','enableCommand','TrackChangesEditing','listStyle','styles','ELEMENT_','length','model','markMultiRangeBlockFormat','*Format:*\x20set\x20order\x20to\x20regular','get','flat','handleListStyleCommand','listReversed','map','selection','filter','createRange','has','getAttribute','commandParams','handleListStartCommand','element','getSiblingNodes','parent','*Format:*\x20set\x20order\x20to\x20reversed','getFirstPosition','document','_LIST_','_getSuggestionBlocks','unshift','toUpperCase','handleListReversedCommand','forward','before','push','getLastPosition','startIndex','commandName','listItem','createPositionAt','numbered','locale','ListUtils','_getTranslationKeyForListStyle','listStart','editor','change','backward','afterInit','bind','getListTypeFromListStyleType','type','reversed'];(function(_0x1ea38f,_0x5cd05e){const _0x36564a=function(_0x32d5a4){while(--_0x32d5a4){_0x1ea38f['push'](_0x1ea38f['shift']());}};_0x36564a(++_0x5cd05e);}(_0x5cd0,0xe4));const _0x3656=function(_0x1ea38f,_0x5cd05e){_0x1ea38f=_0x1ea38f-0x0;let _0x36564a=_0x5cd0[_0x1ea38f];return _0x36564a;};import{Plugin as _0x5d4829}from'ckeditor5/src/core';import{getTranslation as _0x4d1a58}from'../utils/common-translations';export default class ot extends _0x5d4829{[_0x3656('0x3')](){if(!this['editor'][_0x3656('0xa')][_0x3656('0x1f')](_0x3656('0xd')))return;const _0x527c9a=this[_0x3656('0x0')][_0x3656('0x9')]['get']('list.properties'),_0x5a7168=this['editor'][_0x3656('0xa')][_0x3656('0x17')](_0x3656('0xf'));_0x527c9a[_0x3656('0x11')]&&_0x5a7168['enableCommand'](_0x3656('0x10'),this[_0x3656('0x19')][_0x3656('0x4')](this)),_0x527c9a[_0x3656('0x7')]&&_0x5a7168[_0x3656('0xe')](_0x3656('0x1a'),this[_0x3656('0x2d')][_0x3656('0x4')](this)),_0x527c9a[_0x3656('0x32')]&&_0x5a7168[_0x3656('0xe')](_0x3656('0x3a'),this[_0x3656('0x22')][_0x3656('0x4')](this)),_0x5a7168['_descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions'][_0x3656('0x4')](this));}[_0x3656('0x19')](_0x58bb72,_0x425503={}){const _0x31a559=this[_0x3656('0x0')][_0x3656('0xa')][_0x3656('0x17')](_0x3656('0xf')),_0x2e214c=this['_getSuggestionBlocksForListStyle']();this[_0x3656('0x0')][_0x3656('0x14')]['change'](()=>{_0x31a559[_0x3656('0x15')](_0x2e214c,{'commandName':_0x3656('0x10'),'commandParams':[{'type':_0x425503[_0x3656('0x6')]}],'formatGroupId':_0x3656('0x10')});});}[_0x3656('0x2d')](_0x2f1cce,_0x120fdf={}){const _0x26dab8=this[_0x3656('0x0')][_0x3656('0xa')][_0x3656('0x17')](_0x3656('0xf')),_0x5b7ef0=this[_0x3656('0x2a')](_0x50dfc6=>_0x50dfc6['is'](_0x3656('0x23'),_0x3656('0x34'))&&'numbered'===_0x50dfc6[_0x3656('0x20')](_0x3656('0xc')));if(_0x5b7ef0[_0x3656('0x13')]<0x1)return;const _0x3b645e=_0x5b7ef0[_0x3656('0x1b')](_0x54f251=>this[_0x3656('0x0')]['model'][_0x3656('0x1e')](this['editor'][_0x3656('0x14')][_0x3656('0x35')](_0x54f251,_0x3656('0x2f')),this[_0x3656('0x0')][_0x3656('0x14')][_0x3656('0x35')](_0x54f251,0x0)));this[_0x3656('0x0')]['model'][_0x3656('0x1')](()=>{_0x26dab8[_0x3656('0x15')](_0x3b645e,{'commandName':'listReversed','commandParams':[{'reversed':_0x120fdf[_0x3656('0x7')]}],'formatGroupId':_0x3656('0x1a')});});}[_0x3656('0x22')](_0x530f53,_0x40de11={}){const _0x35341=this['editor'][_0x3656('0xa')][_0x3656('0x17')](_0x3656('0xf')),_0x47b1a9=this[_0x3656('0x2a')](_0x3ce521=>_0x3ce521['is'](_0x3656('0x23'),_0x3656('0x34'))&&_0x3656('0x36')===_0x3ce521[_0x3656('0x20')](_0x3656('0xc')));if(_0x47b1a9['length']<0x1)return;const _0x4cb2e7=_0x47b1a9[_0x3656('0x1b')](_0x1888ae=>this[_0x3656('0x0')]['model'][_0x3656('0x1e')](this['editor'][_0x3656('0x14')][_0x3656('0x35')](_0x1888ae,'before'),this[_0x3656('0x0')][_0x3656('0x14')][_0x3656('0x35')](_0x1888ae,0x0)));this['editor'][_0x3656('0x14')][_0x3656('0x1')](()=>{_0x35341[_0x3656('0x15')](_0x4cb2e7,{'commandName':_0x3656('0x3a'),'commandParams':[{'startIndex':_0x40de11[_0x3656('0x32')]}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xf3b030){const _0x2959cb=this['editor'][_0x3656('0x37')],{data:_0x5f2119}=_0xf3b030;if(!_0x5f2119)return;let _0x2129d3,_0x4f4f79;switch(_0x5f2119[_0x3656('0x33')]){case _0x3656('0x10'):_0x2129d3='*Change\x20to:*\x20%0',_0x4f4f79={'type':'format','content':_0x4d1a58(_0x2959cb,_0x2129d3,_0x4d1a58(_0x2959cb,this[_0x3656('0x39')](_0x5f2119[_0x3656('0x21')][0x0][_0x3656('0x6')])))};break;case'listReversed':_0x2129d3=_0x5f2119[_0x3656('0x21')][0x0]['reversed']?_0x3656('0x26'):_0x3656('0x16'),_0x4f4f79={'type':'format','content':_0x4d1a58(_0x2959cb,_0x2129d3)};break;case _0x3656('0x3a'):_0x2129d3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4f4f79={'type':'format','content':_0x4d1a58(_0x2959cb,_0x2129d3,_0x5f2119['commandParams'][0x0][_0x3656('0x32')])};}return _0x4f4f79;}['_getSuggestionBlocksForListStyle'](){var _0x11b692,_0x88e746,_0x27ed34,_0x1f7436;const _0xc2ef8b=this[_0x3656('0x0')][_0x3656('0xa')][_0x3656('0x17')]('ListUtils');let _0x530d57=Array['from'](this[_0x3656('0x0')]['model']['document'][_0x3656('0x1c')][_0x3656('0x8')]());return(null===(_0x11b692=_0x530d57[0x0])||void 0x0===_0x11b692?void 0x0:_0x11b692['is'](_0x3656('0x23'),'listItem'))&&_0x530d57[_0x3656('0x2b')](..._0xc2ef8b[_0x3656('0x24')](this[_0x3656('0x0')][_0x3656('0x14')]['document'][_0x3656('0x1c')][_0x3656('0x27')](),_0x3656('0x2'))),(null===(_0x88e746=_0x530d57[_0x530d57[_0x3656('0x13')]-0x1])||void 0x0===_0x88e746?void 0x0:_0x88e746['is']('element',_0x3656('0x34')))&&_0x530d57[_0x3656('0x30')](..._0xc2ef8b[_0x3656('0x24')](this[_0x3656('0x0')][_0x3656('0x14')][_0x3656('0x28')]['selection'][_0x3656('0x31')](),'forward')),_0x530d57=[...new Set(_0x530d57)],(null===(_0x1f7436=null===(_0x27ed34=this[_0x3656('0x0')][_0x3656('0x14')][_0x3656('0x28')]['selection']['getFirstPosition']())||void 0x0===_0x27ed34?void 0x0:_0x27ed34[_0x3656('0x25')])||void 0x0===_0x1f7436?void 0x0:_0x1f7436['is']('element',_0x3656('0x34')))&&(_0x530d57=_0x530d57[_0x3656('0x1d')](_0x59eecd=>_0x59eecd['is'](_0x3656('0x23'),_0x3656('0x34')))),_0x530d57;}[_0x3656('0x2a')](_0x5b4e8f){const _0x5284e6=this[_0x3656('0x0')][_0x3656('0xa')][_0x3656('0x17')]('ListUtils');let _0x13be57=Array[_0x3656('0xb')](this[_0x3656('0x0')][_0x3656('0x14')][_0x3656('0x28')][_0x3656('0x1c')]['getSelectedBlocks']())[_0x3656('0x1d')](_0x5b4e8f)[_0x3656('0x1b')](_0xcfae92=>{const _0x2c7185=this[_0x3656('0x0')]['model'][_0x3656('0x35')](_0xcfae92,0x0);return[..._0x5284e6['getSiblingNodes'](_0x2c7185,'backward'),..._0x5284e6['getSiblingNodes'](_0x2c7185,_0x3656('0x2e'))];})[_0x3656('0x18')]();return _0x13be57=[...new Set(_0x13be57)],_0x13be57;}[_0x3656('0x39')](_0xd31602){return _0x3656('0x12')+this[_0x3656('0x0')][_0x3656('0xa')][_0x3656('0x17')](_0x3656('0x38'))[_0x3656('0x5')](_0xd31602)[_0x3656('0x2c')]()+_0x3656('0x29')+_0xd31602[_0x3656('0x2c')]()['replace'](/-/g,'_');}}
|