@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231214.0 → 0.0.0-nightly-20231216.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 +1 -1
- package/build/track-changes.js +1 -1
- package/package.json +4 -3
- package/src/augmentation.d.ts +2 -2
- package/src/commands/acceptsuggestioncommand.d.ts +2 -2
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.d.ts +2 -2
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.d.ts +2 -2
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.d.ts +2 -2
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.d.ts +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.d.ts +12 -12
- package/src/index.js +1 -1
- package/src/integrations/aiassistant.d.ts +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.d.ts +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.d.ts +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.d.ts +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.d.ts +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.d.ts +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.d.ts +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.d.ts +2 -2
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.d.ts +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.d.ts +3 -3
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.d.ts +2 -2
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.d.ts +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.d.ts +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.d.ts +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.d.ts +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.d.ts +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.d.ts +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.d.ts +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.d.ts +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.d.ts +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.d.ts +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.d.ts +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.d.ts +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.d.ts +2 -2
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.d.ts +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.d.ts +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.d.ts +3 -3
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.d.ts +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.d.ts +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.d.ts +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.d.ts +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.d.ts +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.d.ts +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.d.ts +2 -2
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.d.ts +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.d.ts +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.d.ts +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.d.ts +2 -2
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.d.ts +2 -2
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.d.ts +4 -4
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.d.ts +2 -2
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.d.ts +2 -2
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.d.ts +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.d.ts +4 -4
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.d.ts +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.d.ts +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.d.ts +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.d.ts +3 -3
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.d.ts +5 -5
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.d.ts +3 -3
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +5 -5
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +1 -1
- package/src/trackchangesdata.d.ts +2 -2
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +53 -53
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.d.ts +3 -3
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.d.ts +5 -5
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.d.ts +6 -6
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.d.ts +5 -5
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.d.ts +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.d.ts +4 -4
- package/src/utils/utils.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-track-changes",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20231216.0",
|
|
4
4
|
"description": "CKEditor 5 track changes plugin.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"realtime",
|
|
29
29
|
"framework"
|
|
30
30
|
],
|
|
31
|
+
"type": "module",
|
|
31
32
|
"main": "src/index.js",
|
|
32
33
|
"files": [
|
|
33
34
|
"build",
|
|
@@ -39,8 +40,8 @@
|
|
|
39
40
|
"CHANGELOG.md"
|
|
40
41
|
],
|
|
41
42
|
"dependencies": {
|
|
42
|
-
"ckeditor5": "0.0.0-nightly-
|
|
43
|
-
"ckeditor5-collaboration": "0.0.0-nightly-
|
|
43
|
+
"ckeditor5": "0.0.0-nightly-20231216.0",
|
|
44
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20231216.0",
|
|
44
45
|
"lodash-es": "4.17.21"
|
|
45
46
|
},
|
|
46
47
|
"types": "src/index.d.ts",
|
package/src/augmentation.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
|
-
import type { TrackChangesConfig, TrackChangesEditing, AcceptSuggestionCommand, DiscardSuggestionCommand, ExecuteOnAllSuggestionsCommand, ExecuteOnSelectedSuggestionsCommand, TrackChangesCommand } from './index';
|
|
6
|
-
import type { Editor } from 'ckeditor5/src/core';
|
|
5
|
+
import type { TrackChangesConfig, TrackChangesEditing, AcceptSuggestionCommand, DiscardSuggestionCommand, ExecuteOnAllSuggestionsCommand, ExecuteOnSelectedSuggestionsCommand, TrackChangesCommand } from './index.js';
|
|
6
|
+
import type { Editor } from 'ckeditor5/src/core.js';
|
|
7
7
|
declare module '@ckeditor/ckeditor5-core' {
|
|
8
8
|
interface EditorConfig {
|
|
9
9
|
/**
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* @module track-changes/commands/acceptsuggestioncommand
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Command, type Editor } from 'ckeditor5/src/core';
|
|
10
|
-
import type Suggestion from '../suggestion';
|
|
9
|
+
import { Command, type Editor } from 'ckeditor5/src/core.js';
|
|
10
|
+
import type Suggestion from '../suggestion.js';
|
|
11
11
|
/**
|
|
12
12
|
* A command that accepts the suggestion chain.
|
|
13
13
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5f58=['TrackChangesEditing','getRanges','canEditAt','get','editor','refresh','plugins','track-changes-accept-suggestion-not-found','_suggestions','acceptSuggestion','isEnabled'];(function(_0x1ec380,_0x5f5832){const _0x337ab8=function(_0x39c94a){while(--_0x39c94a){_0x1ec380['push'](_0x1ec380['shift']());}};_0x337ab8(++_0x5f5832);}(_0x5f58,0xe5));const _0x337a=function(_0x1ec380,_0x5f5832){_0x1ec380=_0x1ec380-0x0;let _0x337ab8=_0x5f58[_0x1ec380];return _0x337ab8;};import{Command as _0x4a8685}from'ckeditor5/src/core.js';import{CKEditorError as _0x101c4d}from'ckeditor5/src/utils.js';export default class $ extends _0x4a8685{constructor(_0x13f714,_0x23c590){super(_0x13f714),this['_suggestions']=_0x23c590,this[_0x337a('0x7')](),this['_isEnabledBasedOnSelection']=!0x1;}[_0x337a('0x7')](){this[_0x337a('0x1')]=!0x0;}['execute'](_0x3f53bd){const _0x40abdc=this[_0x337a('0xa')]['get'](_0x3f53bd);if(!_0x40abdc)throw new _0x101c4d(_0x337a('0x9'),this);const _0x1edc72=_0x40abdc[_0x337a('0x3')]();this[_0x337a('0x6')]['model'][_0x337a('0x4')](_0x1edc72)&&this[_0x337a('0x6')][_0x337a('0x8')][_0x337a('0x5')](_0x337a('0x2'))[_0x337a('0x0')](_0x40abdc);}}
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* @module track-changes/commands/discardsuggestioncommand
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Command, type Editor } from 'ckeditor5/src/core';
|
|
10
|
-
import type Suggestion from '../suggestion';
|
|
9
|
+
import { Command, type Editor } from 'ckeditor5/src/core.js';
|
|
10
|
+
import type Suggestion from '../suggestion.js';
|
|
11
11
|
/**
|
|
12
12
|
* A command that discards the suggestion chain.
|
|
13
13
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x53dc=['plugins','_isEnabledBasedOnSelection','_suggestions','model','TrackChangesEditing','getRanges','track-changes-discard-suggestion-not-found','isEnabled','get','editor','discardSuggestion','refresh','execute'];(function(_0x2f27d0,_0x53dcb0){const _0x98f9bf=function(_0x386d3a){while(--_0x386d3a){_0x2f27d0['push'](_0x2f27d0['shift']());}};_0x98f9bf(++_0x53dcb0);}(_0x53dc,0x12a));const _0x98f9=function(_0x2f27d0,_0x53dcb0){_0x2f27d0=_0x2f27d0-0x0;let _0x98f9bf=_0x53dc[_0x2f27d0];return _0x98f9bf;};import{Command as _0x22b697}from'ckeditor5/src/core.js';import{CKEditorError as _0x3d2e40}from'ckeditor5/src/utils.js';export default class B extends _0x22b697{constructor(_0x439add,_0x5b8c66){super(_0x439add),this[_0x98f9('0x3')]=_0x5b8c66,this[_0x98f9('0xc')](),this[_0x98f9('0x2')]=!0x1;}[_0x98f9('0xc')](){this[_0x98f9('0x8')]=!0x0;}[_0x98f9('0x0')](_0x40d6cf){const _0x2de1a5=this[_0x98f9('0x3')][_0x98f9('0x9')](_0x40d6cf);if(!_0x2de1a5)throw new _0x3d2e40(_0x98f9('0x7'),this);const _0x133b91=_0x2de1a5[_0x98f9('0x6')]();this[_0x98f9('0xa')][_0x98f9('0x4')]['canEditAt'](_0x133b91)&&this['editor'][_0x98f9('0x1')]['get'](_0x98f9('0x5'))[_0x98f9('0xb')](_0x2de1a5);}}
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* @module track-changes/commands/executeonallsuggestionscommand
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Command, type Editor } from 'ckeditor5/src/core';
|
|
10
|
-
import type Suggestion from '../suggestion';
|
|
9
|
+
import { Command, type Editor } from 'ckeditor5/src/core.js';
|
|
10
|
+
import type Suggestion from '../suggestion.js';
|
|
11
11
|
/**
|
|
12
12
|
* A command that executes passed command (accept or discard suggestion command) at once for all suggestions in the document.
|
|
13
13
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5b0e=['isInContent','values','canEditAt','_isEnabledBasedOnSelection','isEnabled','_command','_suggestions','execute','some','refresh','editor','from','model'];(function(_0x22c945,_0x5b0e8d){const _0x5e6c58=function(_0x25cf16){while(--_0x25cf16){_0x22c945['push'](_0x22c945['shift']());}};_0x5e6c58(++_0x5b0e8d);}(_0x5b0e,0xf6));const _0x5e6c=function(_0x22c945,_0x5b0e8d){_0x22c945=_0x22c945-0x0;let _0x5e6c58=_0x5b0e[_0x22c945];return _0x5e6c58;};import{Command as _0x29aa9c}from'ckeditor5/src/core.js';import{sortSuggestions as _0x7be21d,executeCommandForSuggestions as _0x364eda}from'../utils/utils.js';export default class x extends _0x29aa9c{constructor(_0x2c2f05,_0xbe419c,_0x34904d){super(_0x2c2f05),this['_command']=_0xbe419c,this[_0x5e6c('0x7')]=_0x34904d,this[_0x5e6c('0xa')](),this[_0x5e6c('0x4')]=!0x1;}[_0x5e6c('0xa')](){const _0x13aeb8=Array[_0x5e6c('0xc')](this[_0x5e6c('0x7')][_0x5e6c('0x2')]())[_0x5e6c('0x9')](_0x21c22c=>_0x21c22c[_0x5e6c('0x1')]);this['isEnabled']=this[_0x5e6c('0x6')][_0x5e6c('0x5')]&&_0x13aeb8;}[_0x5e6c('0x8')](){const _0x27d7b7=_0x7be21d(Array[_0x5e6c('0xc')](this['_suggestions'][_0x5e6c('0x2')]()));for(const _0x4703e3 of _0x27d7b7){const _0x308a14=_0x4703e3['getRanges']();if(!this[_0x5e6c('0xb')][_0x5e6c('0x0')][_0x5e6c('0x3')](_0x308a14))return;}_0x364eda(this[_0x5e6c('0xb')][_0x5e6c('0x0')],this[_0x5e6c('0x6')],_0x27d7b7);}}
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* @module track-changes/commands/executeonselectedsuggestionscommand
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Command, type Editor } from 'ckeditor5/src/core';
|
|
10
|
-
import type Suggestion from '../suggestion';
|
|
9
|
+
import { Command, type Editor } from 'ckeditor5/src/core.js';
|
|
10
|
+
import type Suggestion from '../suggestion.js';
|
|
11
11
|
/**
|
|
12
12
|
* A command that executes passed command (accept or discard suggestion command) at once for all suggestions selected in the document.
|
|
13
13
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3684=['isEnabled','getRanges','_selectedSuggestions','model','from','_suggestions','refresh','_isEnabledBasedOnSelection','canEditAt','execute','document','selection','editor','_command','size'];(function(_0x28b0a7,_0x368443){const _0x4fedef=function(_0x484bc4){while(--_0x484bc4){_0x28b0a7['push'](_0x28b0a7['shift']());}};_0x4fedef(++_0x368443);}(_0x3684,0x10f));const _0x4fed=function(_0x28b0a7,_0x368443){_0x28b0a7=_0x28b0a7-0x0;let _0x4fedef=_0x3684[_0x28b0a7];return _0x4fedef;};import{Command as _0x403c84}from'ckeditor5/src/core.js';import{sortSuggestions as _0x1a7df9,getSelectedSuggestions as _0x2a5fb0,executeCommandForSuggestions as _0x31414e}from'../utils/utils.js';export default class E extends _0x403c84{constructor(_0x2d38f8,_0x130b89,_0x246463){super(_0x2d38f8),this[_0x4fed('0xc')]=_0x130b89,this[_0x4fed('0x4')]=_0x246463,this[_0x4fed('0x1')]=new Set(),this[_0x4fed('0x5')](),this[_0x4fed('0x6')]=!0x1;}[_0x4fed('0x5')](){const _0xdf66ab=this[_0x4fed('0xb')][_0x4fed('0x2')][_0x4fed('0x9')][_0x4fed('0xa')],_0x3c1be4=Array[_0x4fed('0x3')](this[_0x4fed('0x4')]['values']());this['_selectedSuggestions']=_0x2a5fb0(_0xdf66ab,_0x3c1be4),this[_0x4fed('0xe')]=this[_0x4fed('0xc')][_0x4fed('0xe')]&&!!this[_0x4fed('0x1')][_0x4fed('0xd')];}[_0x4fed('0x8')](){const _0x37e274=_0x1a7df9(Array[_0x4fed('0x3')](this[_0x4fed('0x1')]));for(const _0x3e1ce8 of _0x37e274){const _0x66f937=_0x3e1ce8[_0x4fed('0x0')]();if(!this[_0x4fed('0xb')][_0x4fed('0x2')][_0x4fed('0x7')](_0x66f937))return;}_0x31414e(this['editor'][_0x4fed('0x2')],this[_0x4fed('0xc')],_0x37e274);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4746=['_disableUnsupportedCommands','commands','_enableCommands','forceDisabled','value','clearForceDisabled','affectsData','execute','editor','refresh','_enabledCommands','has','_isEnabledBasedOnSelection'];(function(_0x21542e,_0x4746b2){const _0x4c28a7=function(_0x490ba3){while(--_0x490ba3){_0x21542e['push'](_0x21542e['shift']());}};_0x4c28a7(++_0x4746b2);}(_0x4746,0xf0));const _0x4c28=function(_0x21542e,_0x4746b2){_0x21542e=_0x21542e-0x0;let _0x4c28a7=_0x4746[_0x21542e];return _0x4c28a7;};import{Command as _0x117334}from'ckeditor5/src/core.js';export default class M extends _0x117334{constructor(_0x1b10ec,_0x5760e3){super(_0x1b10ec),this[_0x4c28('0x4')]=_0x5760e3,this['value']=!0x1,this[_0x4c28('0x3')](),this[_0x4c28('0x6')]=!0x1;}[_0x4c28('0x3')](){this['isEnabled']=!0x0;}[_0x4c28('0x1')](){this[_0x4c28('0xb')]=!this[_0x4c28('0xb')],this['value']?this[_0x4c28('0x7')]():this[_0x4c28('0x9')]();}['_disableUnsupportedCommands'](){for(const _0x22a85c of this[_0x4c28('0x2')][_0x4c28('0x8')][_0x4c28('0x8')]())_0x22a85c[_0x4c28('0x0')]&&!this['_enabledCommands'][_0x4c28('0x5')](_0x22a85c)&&_0x22a85c[_0x4c28('0xa')]('TrackChangesCommand');}['_enableCommands'](){for(const _0x5e9e8e of this[_0x4c28('0x2')][_0x4c28('0x8')]['commands']())_0x5e9e8e['affectsData']&&!this[_0x4c28('0x4')]['has'](_0x5e9e8e)&&_0x5e9e8e[_0x4c28('0xc')]('TrackChangesCommand');}}
|
package/src/index.d.ts
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
|
-
export { default as TrackChanges, type SuggestionData, type TrackChangesAdapter } from './trackchanges';
|
|
6
|
-
export { default as TrackChangesData } from './trackchangesdata';
|
|
7
|
-
export { default as TrackChangesEditing } from './trackchangesediting';
|
|
8
|
-
export type { SuggestionJSON } from './suggestion';
|
|
9
|
-
export { default as BaseSuggestionThreadView } from './ui/view/basesuggestionthreadview';
|
|
10
|
-
export type { TrackChangesConfig } from './trackchangesconfig';
|
|
11
|
-
export type { default as AcceptSuggestionCommand } from './commands/acceptsuggestioncommand';
|
|
12
|
-
export type { default as DiscardSuggestionCommand } from './commands/discardsuggestioncommand';
|
|
13
|
-
export type { default as ExecuteOnAllSuggestionsCommand } from './commands/executeonallsuggestionscommand';
|
|
14
|
-
export type { default as ExecuteOnSelectedSuggestionsCommand } from './commands/executeonselectedsuggestionscommand';
|
|
15
|
-
export type { default as TrackChangesCommand } from './commands/trackchangescommand';
|
|
16
|
-
import './augmentation';
|
|
5
|
+
export { default as TrackChanges, type SuggestionData, type TrackChangesAdapter } from './trackchanges.js';
|
|
6
|
+
export { default as TrackChangesData } from './trackchangesdata.js';
|
|
7
|
+
export { default as TrackChangesEditing } from './trackchangesediting.js';
|
|
8
|
+
export type { SuggestionJSON } from './suggestion.js';
|
|
9
|
+
export { default as BaseSuggestionThreadView } from './ui/view/basesuggestionthreadview.js';
|
|
10
|
+
export type { TrackChangesConfig } from './trackchangesconfig.js';
|
|
11
|
+
export type { default as AcceptSuggestionCommand } from './commands/acceptsuggestioncommand.js';
|
|
12
|
+
export type { default as DiscardSuggestionCommand } from './commands/discardsuggestioncommand.js';
|
|
13
|
+
export type { default as ExecuteOnAllSuggestionsCommand } from './commands/executeonallsuggestionscommand.js';
|
|
14
|
+
export type { default as ExecuteOnSelectedSuggestionsCommand } from './commands/executeonselectedsuggestionscommand.js';
|
|
15
|
+
export type { default as TrackChangesCommand } from './commands/trackchangescommand.js';
|
|
16
|
+
import './augmentation.js';
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export{default as TrackChanges}from'./trackchanges';export{default as TrackChangesData}from'./trackchangesdata';export{default as TrackChangesEditing}from'./trackchangesediting';export{default as BaseSuggestionThreadView}from'./ui/view/basesuggestionthreadview';import'./augmentation';
|
|
23
|
+
export{default as TrackChanges}from'./trackchanges.js';export{default as TrackChangesData}from'./trackchangesdata.js';export{default as TrackChangesEditing}from'./trackchangesediting.js';export{default as BaseSuggestionThreadView}from'./ui/view/basesuggestionthreadview.js';import'./augmentation.js';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e71=['editor','afterInit','showAIAssistant','commands','enableCommand','get','plugins'];(function(_0x212fed,_0x3e71ae){const _0x5ab69e=function(_0x1534a3){while(--_0x1534a3){_0x212fed['push'](_0x212fed['shift']());}};_0x5ab69e(++_0x3e71ae);}(_0x3e71,0xef));const _0x5ab6=function(_0x212fed,_0x3e71ae){_0x212fed=_0x212fed-0x0;let _0x5ab69e=_0x3e71[_0x212fed];return _0x5ab69e;};import{Plugin as _0x10b925}from'ckeditor5/src/core.js';export default class R extends _0x10b925{[_0x5ab6('0x0')](){const _0x403e3e=this[_0x5ab6('0x6')],_0x559c88=_0x403e3e[_0x5ab6('0x5')][_0x5ab6('0x4')]('TrackChangesEditing');_0x403e3e[_0x5ab6('0x2')][_0x5ab6('0x4')](_0x5ab6('0x1'))&&_0x559c88[_0x5ab6('0x3')](_0x5ab6('0x1'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x23b4=['_descriptionFactory','type','FORMAT_ALIGN_TO_RIGHT','commandParams','get','FORMAT_ALIGNMENT','justify','registerAttributeLabel','editor','locale','value','afterInit','TrackChangesEditing','FORMAT_ALIGN_TO_CENTER','right','registerDescriptionCallback','AlignmentEditing','_enableDefaultAttributesIntegration','has','alignment','formatBlock','center','FORMAT_ALIGN_TO_LEFT','_registerLegacyDescription','format','plugins'];(function(_0x3b992d,_0x23b443){const _0x2a710d=function(_0x5f1d1d){while(--_0x5f1d1d){_0x3b992d['push'](_0x3b992d['shift']());}};_0x2a710d(++_0x23b443);}(_0x23b4,0x15e));const _0x2a71=function(_0x3b992d,_0x23b443){_0x3b992d=_0x3b992d-0x0;let _0x2a710d=_0x23b4[_0x3b992d];return _0x2a710d;};import{Plugin as _0x47b6bf}from'ckeditor5/src/core.js';import{getTranslation as _0x1fd566}from'../utils/common-translations.js';export default class U extends _0x47b6bf{[_0x2a71('0x19')](){const _0x21a89c=this['editor'],_0x4c44a3=_0x21a89c[_0x2a71('0x17')];if(!_0x21a89c[_0x2a71('0xd')][_0x2a71('0x6')](_0x2a71('0x4')))return;const _0x454b60=_0x21a89c[_0x2a71('0xd')][_0x2a71('0x12')](_0x2a71('0x0'));_0x454b60[_0x2a71('0x5')](_0x2a71('0x7'),[],[_0x2a71('0x7')]),_0x454b60[_0x2a71('0xe')][_0x2a71('0x15')](_0x2a71('0x7'),_0x1fd566(_0x4c44a3,_0x2a71('0x13'))),this[_0x2a71('0xb')]();}[_0x2a71('0xb')](){const _0x26721a=this[_0x2a71('0x16')],_0x1b55f5=_0x26721a['locale'];_0x26721a[_0x2a71('0xd')][_0x2a71('0x12')](_0x2a71('0x0'))[_0x2a71('0xe')][_0x2a71('0x3')](_0x90cd74=>{if(_0x2a71('0x8')!=_0x90cd74[_0x2a71('0xf')])return;const {data:_0x2df07a}=_0x90cd74;if(_0x2df07a&&_0x2a71('0x7')==_0x2df07a['commandName']){const _0x2d1f5d=_0x2df07a[_0x2a71('0x11')][0x0][_0x2a71('0x18')];return{'type':_0x2a71('0xc'),'content':_0x1fd566(_0x1b55f5,'*Format:*\x20%0',function(_0x57e0c6){switch(_0x57e0c6){case'left':return _0x1fd566(_0x1b55f5,_0x2a71('0xa'));case _0x2a71('0x2'):return _0x1fd566(_0x1b55f5,_0x2a71('0x10'));case _0x2a71('0x9'):return _0x1fd566(_0x1b55f5,_0x2a71('0x1'));case _0x2a71('0x14'):return _0x1fd566(_0x1b55f5,'FORMAT_JUSTIFY_TEXT');}}(_0x2d1f5d))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x7e5a=['format','afterInit','*Format:*\x20%0','toUpperCase','plugins','locale','_descriptionFactory','type','code','_registerLegacyDescription','strikethrough','slice','superscript','commandName','italic','registerDescriptionCallback','commandParams','has','FORMAT_','*Remove\x20format:*\x20%0','CodeEditing','SubscriptEditing','formatInline','get','SuperscriptEditing','FORMAT_SUBSCRIPT','registerAttributeLabel','editor','FORMAT_STRIKETHROUGH','_enableDefaultAttributesIntegration','TrackChangesEditing','UnderlineEditing','underline','ItalicEditing','FORMAT_BOLD','FORMAT_ITALIC'];(function(_0x3f4c3a,_0x7e5af5){const _0x498d81=function(_0x4706f5){while(--_0x4706f5){_0x3f4c3a['push'](_0x3f4c3a['shift']());}};_0x498d81(++_0x7e5af5);}(_0x7e5a,0x16e));const _0x498d=function(_0x3f4c3a,_0x7e5af5){_0x3f4c3a=_0x3f4c3a-0x0;let _0x498d81=_0x7e5a[_0x3f4c3a];return _0x498d81;};import{Plugin as _0x23ff20}from'ckeditor5/src/core.js';import{getTranslation as _0x51f30b}from'../utils/common-translations.js';const ti=['BoldEditing',_0x498d('0x1b'),_0x498d('0x19'),_0x498d('0xe'),'StrikethroughEditing',_0x498d('0xf'),_0x498d('0x12')];export default class O extends _0x23ff20{[_0x498d('0x1f')](){const _0x3636ea=this['editor'],_0xe35332=_0x3636ea[_0x498d('0x22')]['get'](_0x498d('0x18')),_0x1d85a1=_0x3636ea['locale'];for(const _0x51bd8b of ti){if(!_0x3636ea['plugins'][_0x498d('0xb')](_0x51bd8b))continue;const _0x447250=_0x51bd8b[_0x498d('0x5')](0x0,-0x7)['toLowerCase'](),_0x16d7dc=_0x498d('0xc')+_0x447250[_0x498d('0x21')]();_0xe35332[_0x498d('0x17')](_0x447250,[_0x447250]),_0xe35332[_0x498d('0x0')][_0x498d('0x14')](_0x447250,_0x51f30b(_0x1d85a1,_0x16d7dc));}this['_registerLegacyDescription']();}[_0x498d('0x3')](){const _0x6ed6e2=this[_0x498d('0x15')],_0x52ffdf=_0x6ed6e2[_0x498d('0x23')],_0x45cf54=_0x6ed6e2[_0x498d('0x22')][_0x498d('0x11')](_0x498d('0x18'));function _0x15d9bc(_0x30a357,_0x457ac4){_0x45cf54[_0x498d('0x0')][_0x498d('0x9')](_0x5c2de6=>{if(_0x498d('0x10')!=_0x5c2de6[_0x498d('0x1')])return;const {data:_0x5803ad}=_0x5c2de6;return _0x5803ad&&_0x5803ad[_0x498d('0x7')]===_0x30a357?_0x5803ad[_0x498d('0xa')][0x0]['forceValue']?{'type':_0x498d('0x1e'),'content':_0x51f30b(_0x52ffdf,_0x498d('0x20'),_0x457ac4)}:{'type':_0x498d('0x1e'),'content':_0x51f30b(_0x52ffdf,_0x498d('0xd'),_0x457ac4)}:void 0x0;});}_0x15d9bc('bold',_0x51f30b(_0x52ffdf,_0x498d('0x1c'))),_0x15d9bc(_0x498d('0x8'),_0x51f30b(_0x52ffdf,_0x498d('0x1d'))),_0x15d9bc(_0x498d('0x1a'),_0x51f30b(_0x52ffdf,'FORMAT_UNDERLINE')),_0x15d9bc(_0x498d('0x2'),_0x51f30b(_0x52ffdf,'FORMAT_CODE')),_0x15d9bc(_0x498d('0x4'),_0x51f30b(_0x52ffdf,_0x498d('0x16'))),_0x15d9bc('subscript',_0x51f30b(_0x52ffdf,_0x498d('0x13'))),_0x15d9bc(_0x498d('0x6'),_0x51f30b(_0x52ffdf,'FORMAT_SUPERSCRIPT'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x189e=['forceValue','plugins','commandName','has','get','markBlockFormat','BlockQuoteEditing','document','blockQuote','ELEMENT_BLOCK_QUOTE','parent','checkChild','*Set\x20format:*\x20%0','afterInit','*Remove\x20format:*\x20%0','filter','commands','TrackChangesEditing','getSelectedBlocks','from','name','selection','$root','commandParams','value','model','editor','enableCommand'];(function(_0x1f0a24,_0x189e00){const _0x38c7fe=function(_0x3ea37b){while(--_0x3ea37b){_0x1f0a24['push'](_0x1f0a24['shift']());}};_0x38c7fe(++_0x189e00);}(_0x189e,0xe6));const _0x38c7=function(_0x1f0a24,_0x189e00){_0x1f0a24=_0x1f0a24-0x0;let _0x38c7fe=_0x189e[_0x1f0a24];return _0x38c7fe;};import{Plugin as _0x8f8a6}from'ckeditor5/src/core.js';import{getTranslation as _0x5afdbf}from'../utils/common-translations.js';import{getRangesOfBlockGroups as _0x28840c}from'../utils/utils.js';export default class V extends _0x8f8a6{[_0x38c7('0x7')](){const _0x541a4d=this[_0x38c7('0x14')],_0x1773dc=_0x541a4d['locale'];if(!_0x541a4d[_0x38c7('0x17')][_0x38c7('0x19')](_0x38c7('0x0')))return;const _0x1d8a1d=_0x541a4d['plugins'][_0x38c7('0x1a')](_0x38c7('0xb')),_0x24b44a=this[_0x38c7('0x14')][_0x38c7('0xa')][_0x38c7('0x1a')]('blockQuote');_0x1d8a1d[_0x38c7('0x15')](_0x38c7('0x2'),(_0x2cdb3c,_0x9298c8={})=>{const _0x221315=this[_0x38c7('0x14')][_0x38c7('0x13')][_0x38c7('0x1')][_0x38c7('0xf')],_0x273b63=_0x9298c8&&void 0x0!==_0x9298c8[_0x38c7('0x16')]?_0x9298c8['forceValue']:!_0x24b44a[_0x38c7('0x12')];let _0x394fa7=[];if(_0x273b63){const _0x296b69=Array[_0x38c7('0xd')](_0x221315['getSelectedBlocks']())[_0x38c7('0x9')](_0xd5f3fa=>oo(_0xd5f3fa)||function(_0x3d0bef,_0xc3af3e){const _0x2c7d13=_0xc3af3e['checkChild'](_0x3d0bef[_0x38c7('0x4')],_0x38c7('0x2')),_0x27cfd2=_0xc3af3e[_0x38c7('0x5')]([_0x38c7('0x10'),_0x38c7('0x2')],_0x3d0bef);return _0x2c7d13&&_0x27cfd2;}(_0xd5f3fa,this[_0x38c7('0x14')][_0x38c7('0x13')]['schema']));_0x394fa7=_0x28840c(_0x296b69,_0x541a4d[_0x38c7('0x13')]);}else{const _0xc704de=Array[_0x38c7('0xd')](_0x221315[_0x38c7('0xc')]())[_0x38c7('0x9')](_0x52d682=>oo(_0x52d682));_0x394fa7=_0x28840c(_0xc704de,_0x541a4d['model']);}_0x541a4d[_0x38c7('0x13')]['change'](()=>{for(const _0x370e22 of _0x394fa7)_0x1d8a1d[_0x38c7('0x1b')](_0x370e22,{'commandName':_0x38c7('0x2'),'commandParams':[{'forceValue':_0x273b63}]});});}),_0x1d8a1d['_descriptionFactory']['registerDescriptionCallback'](_0x4cd560=>{const {data:_0x55db7c}=_0x4cd560;if(_0x55db7c&&'blockQuote'==_0x55db7c[_0x38c7('0x18')]){const _0x2047c0=_0x5afdbf(_0x1773dc,_0x38c7('0x3'));return _0x55db7c[_0x38c7('0x11')][0x0][_0x38c7('0x16')]?{'type':'format','content':_0x5afdbf(_0x1773dc,_0x38c7('0x6'),_0x2047c0)}:{'type':'format','content':_0x5afdbf(_0x1773dc,_0x38c7('0x8'),_0x2047c0)};}});}}function oo(_0x27d482){return _0x38c7('0x2')==_0x27d482['parent'][_0x38c7('0xe')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c88=['get','commands','editor','afterInit','ckbox','plugins'];(function(_0x57dcf8,_0x2c8814){const _0x1414d7=function(_0x1e05ed){while(--_0x1e05ed){_0x57dcf8['push'](_0x57dcf8['shift']());}};_0x1414d7(++_0x2c8814);}(_0x2c88,0x1d5));const _0x1414=function(_0x57dcf8,_0x2c8814){_0x57dcf8=_0x57dcf8-0x0;let _0x1414d7=_0x2c88[_0x57dcf8];return _0x1414d7;};import{Plugin as _0x4465d0}from'ckeditor5/src/core.js';export default class G extends _0x4465d0{[_0x1414('0x2')](){const _0x5d38d3=this[_0x1414('0x1')];_0x5d38d3[_0x1414('0x0')][_0x1414('0x5')](_0x1414('0x3'))&&_0x5d38d3[_0x1414('0x4')][_0x1414('0x5')]('TrackChangesEditing')['enableCommand'](_0x1414('0x3'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4fc8=['find','commandName','indentCodeBlock','formatBlock','commands','has','languages','toLowerCase','codeBlock','outdentCodeBlock','commandParams','language','change','filter','ELEMENT_CODE_BLOCK','checkChild','config','model','locale','label','TrackChangesEditing','plugins','from','selection','getSelectedBlocks','schema','get','registerDescriptionCallback','afterInit','isLimit','enableCommand','format','registerElementLabel','*Set\x20format:*\x20%0','markBlockFormat','forceValue'];(function(_0x21ac14,_0x4fc827){const _0xc53400=function(_0x3a0cd7){while(--_0x3a0cd7){_0x21ac14['push'](_0x21ac14['shift']());}};_0xc53400(++_0x4fc827);}(_0x4fc8,0xf1));const _0xc534=function(_0x21ac14,_0x4fc827){_0x21ac14=_0x21ac14-0x0;let _0xc53400=_0x4fc8[_0x21ac14];return _0xc53400;};import{Plugin as _0x370225}from'ckeditor5/src/core.js';import{getTranslation as _0x2e75ca}from'../utils/common-translations.js';import{getRangesOfBlockGroups as _0x417fad}from'../utils/utils.js';export default class F extends _0x370225{[_0xc534('0x3')](){const _0x549926=this['editor'];if(!_0x549926[_0xc534('0x20')][_0xc534('0x10')]('CodeBlock'))return;const _0x5df903=_0x549926[_0xc534('0x20')]['get'](_0xc534('0x1f')),_0x46c8ed=_0x549926[_0xc534('0x1d')],_0x28b2e2=_0x549926[_0xc534('0x1b')][_0xc534('0x1')](_0xc534('0x13'))[_0xc534('0x11')],_0x543c79=_0x549926[_0xc534('0xf')][_0xc534('0x1')](_0xc534('0x13'));_0x5df903[_0xc534('0x5')](_0xc534('0xd')),_0x5df903[_0xc534('0x5')](_0xc534('0x14')),_0x5df903[_0xc534('0x5')](_0xc534('0x13'),(_0x4e54a1,_0x1389cf={})=>{const _0x26ae70=_0x549926[_0xc534('0x1c')],_0x3da437=_0x549926[_0xc534('0x1c')]['document'][_0xc534('0x22')],_0x48f75c=_0x1389cf&&void 0x0!==_0x1389cf[_0xc534('0xa')]?_0x1389cf[_0xc534('0xa')]:!_0x543c79['value'];let _0x427674;_0x1389cf[_0xc534('0x16')]||(_0x1389cf[_0xc534('0x16')]=_0x28b2e2[0x0][_0xc534('0x16')]),_0x427674=_0x48f75c?Array[_0xc534('0x21')](_0x3da437[_0xc534('0x23')]())[_0xc534('0x18')](_0x24a5cf=>eo(_0x24a5cf)||function(_0x10f282,_0x3c90b8){if(_0x10f282['is']('rootElement')||_0x3c90b8[_0xc534('0x4')](_0x10f282))return!0x1;return _0x3c90b8[_0xc534('0x1a')](_0x10f282['parent'],'codeBlock');}(_0x24a5cf,_0x26ae70[_0xc534('0x0')])):Array[_0xc534('0x21')](_0x3da437[_0xc534('0x23')]())[_0xc534('0x18')](_0x45a694=>eo(_0x45a694));const _0xbf41b8=_0x417fad(_0x427674,_0x26ae70);_0x26ae70[_0xc534('0x17')](()=>{for(const _0x41e420 of _0xbf41b8)_0x5df903[_0xc534('0x9')](_0x41e420,{'commandName':'codeBlock','commandParams':[{..._0x1389cf,'forceValue':_0x48f75c}],'formatGroupId':'blockName'});});}),(_0x5df903['_descriptionFactory'][_0xc534('0x7')]('codeBlock',_0x996bb4=>_0x2e75ca(_0x46c8ed,_0xc534('0x19'),_0x996bb4)),_0x5df903['_descriptionFactory'][_0xc534('0x2')](_0x22804e=>{if(_0xc534('0xe')!=_0x22804e['type'])return;const _0x50f01e=_0x46c8ed['t'],{data:_0x1b8eaf}=_0x22804e;if(!_0x1b8eaf||_0xc534('0x13')!=_0x1b8eaf[_0xc534('0xc')])return;const _0x2fdda5=_0x1b8eaf[_0xc534('0x15')][0x0][_0xc534('0x16')],_0x15f1d7=_0x50f01e(_0x28b2e2[_0xc534('0xb')](_0x400c85=>_0x400c85[_0xc534('0x16')]===_0x2fdda5)[_0xc534('0x1e')])[_0xc534('0x12')]();return _0x1b8eaf[_0xc534('0x15')][0x0][_0xc534('0xa')]?{'type':_0xc534('0x6'),'content':_0x2e75ca(_0x46c8ed,_0xc534('0x8'),_0x2e75ca(_0x46c8ed,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x15f1d7+')')}:{'type':_0xc534('0x6'),'content':_0x2e75ca(_0x46c8ed,'*Remove\x20format:*\x20%0',_0x2e75ca(_0x46c8ed,_0xc534('0x19'),0x1))};}));}}function eo(_0x2bd167){return _0xc534('0x13')==_0x2bd167['name'];}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/comments
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* Provides track changes plugin integration for {@link module:comments/comments~Comments comments feature}.
|
|
11
11
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x450f=['plugins','addCommentThread','get','editor'];(function(_0xf4c5bf,_0x450f73){const _0x28a6be=function(_0x346c70){while(--_0x346c70){_0xf4c5bf['push'](_0xf4c5bf['shift']());}};_0x28a6be(++_0x450f73);}(_0x450f,0xa4));const _0x28a6=function(_0xf4c5bf,_0x450f73){_0xf4c5bf=_0xf4c5bf-0x0;let _0x28a6be=_0x450f[_0xf4c5bf];return _0x28a6be;};import{Plugin as _0xac0f9f}from'ckeditor5/src/core.js';export default class L extends _0xac0f9f{['afterInit'](){const _0x4547c4=this[_0x28a6('0x3')];if(!_0x4547c4[_0x28a6('0x0')]['has']('CommentsEditing'))return;_0x4547c4['plugins'][_0x28a6('0x2')]('TrackChangesEditing')['enableCommand'](_0x28a6('0x1'));}}
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/deletecommand
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import { Delete } from 'ckeditor5/src/typing';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { Delete } from 'ckeditor5/src/typing.js';
|
|
10
10
|
/**
|
|
11
11
|
* Provides track changes plugin integration for {@link module:typing/inputcommand~DeleteCommand delete command}. Also
|
|
12
12
|
* provides integration {@link module:engine/model/model~Model#deleteContent} as many features use it internally.
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2106=['high','uiElement','start','mapper','requires','fromRange','document','downcastDispatcher','isCollapsed','createSelection','root','unlock','bind','markerNameToElements','TrackChangesEditing','get','delete','deleteForward','showSuggestionHighlights','addMarker:suggestion:deletion','unbindElementFromMarkerName','enableCommand','selection','buffer','removeMarker:suggestion:deletion','remove','createRange','init','merge','model','detach','end','setSelection','lock','markerName','commands','data','modifySelection','getFirstRange','editor','enqueueChange','options','editing'];(function(_0x410bc0,_0x2106aa){const _0x364c5d=function(_0x1f9168){while(--_0x1f9168){_0x410bc0['push'](_0x410bc0['shift']());}};_0x364c5d(++_0x2106aa);}(_0x2106,0x175));const _0x364c=function(_0x410bc0,_0x2106aa){_0x410bc0=_0x410bc0-0x0;let _0x364c5d=_0x2106[_0x410bc0];return _0x364c5d;};import{Plugin as _0x51d3f7}from'ckeditor5/src/core.js';import{LiveRange as _0x1892c6}from'ckeditor5/src/engine.js';import{Delete as _0x33e00c}from'ckeditor5/src/typing.js';import{downcastSplitMergeMarker as _0x4a23ee}from'./utils.js';export default class H extends _0x51d3f7{static get[_0x364c('0x12')](){return[_0x33e00c];}[_0x364c('0x29')](){const _0x4768a8=this[_0x364c('0xa')],_0x33de62=_0x4768a8['plugins'][_0x364c('0x1d')](_0x364c('0x1c'));_0x33de62[_0x364c('0x23')](_0x364c('0x1e'));const _0x26bb69=_0x4768a8[_0x364c('0x6')]['get'](_0x364c('0x1f'));_0x33de62[_0x364c('0x23')](_0x364c('0x1f'),(_0x2e24b6,_0x32b712={})=>{const _0x130ed3=_0x4768a8[_0x364c('0x0')][_0x364c('0x17')](_0x4768a8['model'][_0x364c('0x14')][_0x364c('0x24')]);_0x130ed3[_0x364c('0x16')]&&_0x4768a8[_0x364c('0x0')][_0x364c('0x8')](_0x130ed3,{'direction':'forward','unit':_0x32b712['unit']});const _0x3a064e=_0x130ed3[_0x364c('0x9')](),_0x1475d9=_0x1892c6[_0x364c('0x13')](_0x3a064e);let _0x1fb361;_0x2e24b6(_0x32b712),_0x1fb361='$graveyard'==_0x1475d9[_0x364c('0x18')]['rootName']?_0x4768a8[_0x364c('0x0')][_0x364c('0x28')](_0x3a064e[_0x364c('0x10')]):_0x4768a8[_0x364c('0x0')]['createRange'](_0x1475d9[_0x364c('0x10')],_0x1475d9['end']),_0x1475d9[_0x364c('0x1')](),_0x4768a8[_0x364c('0x0')][_0x364c('0xb')](_0x26bb69['buffer']['batch'],_0x4988dd=>{_0x26bb69[_0x364c('0x25')][_0x364c('0x4')](),_0x4988dd[_0x364c('0x3')](_0x4988dd[_0x364c('0x28')](_0x1fb361[_0x364c('0x2')])),_0x26bb69['buffer'][_0x364c('0x19')]();});}),_0x4768a8[_0x364c('0xd')][_0x364c('0x15')]['on'](_0x364c('0x21'),_0x4a23ee(_0x4768a8,_0x364c('0x2a')),{'priority':_0x364c('0xe')}),_0x4768a8[_0x364c('0x7')][_0x364c('0x15')]['on'](_0x364c('0x21'),(_0x38b3e5,_0x13b46,_0x34212c)=>{_0x34212c[_0x364c('0xc')][_0x364c('0x20')]&&_0x4a23ee(_0x4768a8,_0x364c('0x2a'),{'showActiveMarker':!0x1})[_0x364c('0x1a')](this)(_0x38b3e5,_0x13b46,_0x34212c);},{'priority':_0x364c('0xe')}),_0x4768a8[_0x364c('0xd')]['downcastDispatcher']['on'](_0x364c('0x26'),(_0xe6a9d8,_0x467d69,_0x2f8e52)=>{const _0x52dbc3=_0x2f8e52[_0x364c('0x11')][_0x364c('0x1b')](_0x467d69[_0x364c('0x5')]);if(_0x52dbc3)for(const _0x363863 of _0x52dbc3)_0x363863['is'](_0x364c('0xf'))&&(_0x2f8e52[_0x364c('0x11')][_0x364c('0x22')](_0x363863,_0x467d69[_0x364c('0x5')]),_0x2f8e52['writer'][_0x364c('0x27')](_0x363863));},{'priority':_0x364c('0xe')});}}
|