@ckeditor/ckeditor5-track-changes 36.0.0 → 37.0.0-rc.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.
Files changed (127) hide show
  1. package/build/track-changes.js +1 -1
  2. package/ckeditor5-metadata.json +10 -0
  3. package/package.json +21 -6
  4. package/src/augmentation.d.ts +36 -0
  5. package/src/augmentation.js +23 -0
  6. package/src/commands/acceptsuggestioncommand.d.ts +20 -0
  7. package/src/commands/acceptsuggestioncommand.js +1 -1
  8. package/src/commands/discardsuggestioncommand.d.ts +20 -0
  9. package/src/commands/discardsuggestioncommand.js +1 -1
  10. package/src/commands/executeonallsuggestionscommand.d.ts +20 -0
  11. package/src/commands/executeonallsuggestionscommand.js +1 -1
  12. package/src/commands/executeonselectedsuggestionscommand.d.ts +20 -0
  13. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  14. package/src/commands/trackchangescommand.d.ts +22 -0
  15. package/src/commands/trackchangescommand.js +1 -1
  16. package/src/index.d.ts +12 -0
  17. package/src/index.js +1 -1
  18. package/src/integrations/alignment.d.ts +13 -0
  19. package/src/integrations/alignment.js +1 -1
  20. package/src/integrations/basicstyles.d.ts +13 -0
  21. package/src/integrations/basicstyles.js +1 -1
  22. package/src/integrations/blockquote.d.ts +13 -0
  23. package/src/integrations/blockquote.js +1 -1
  24. package/src/integrations/ckbox.d.ts +13 -0
  25. package/src/integrations/ckbox.js +1 -1
  26. package/src/integrations/codeblock.d.ts +13 -0
  27. package/src/integrations/codeblock.js +1 -1
  28. package/src/integrations/comments.d.ts +10 -0
  29. package/src/integrations/comments.js +1 -1
  30. package/src/integrations/deletecommand.d.ts +12 -0
  31. package/src/integrations/deletecommand.js +1 -1
  32. package/src/integrations/documentlist.d.ts +13 -0
  33. package/src/integrations/documentlist.js +1 -1
  34. package/src/integrations/documentlistproperties.d.ts +25 -0
  35. package/src/integrations/documentlistproperties.js +1 -1
  36. package/src/integrations/entercommand.d.ts +11 -0
  37. package/src/integrations/entercommand.js +1 -1
  38. package/src/integrations/findandreplace.d.ts +17 -0
  39. package/src/integrations/findandreplace.js +1 -1
  40. package/src/integrations/font.d.ts +13 -0
  41. package/src/integrations/font.js +1 -1
  42. package/src/integrations/heading.d.ts +13 -0
  43. package/src/integrations/heading.js +1 -1
  44. package/src/integrations/highlight.d.ts +13 -0
  45. package/src/integrations/highlight.js +1 -1
  46. package/src/integrations/horizontalline.d.ts +13 -0
  47. package/src/integrations/horizontalline.js +1 -1
  48. package/src/integrations/htmlembed.d.ts +13 -0
  49. package/src/integrations/htmlembed.js +1 -1
  50. package/src/integrations/image.d.ts +13 -0
  51. package/src/integrations/image.js +1 -1
  52. package/src/integrations/imagereplace.d.ts +19 -0
  53. package/src/integrations/imagereplace.js +1 -1
  54. package/src/integrations/importword.d.ts +14 -0
  55. package/src/integrations/importword.js +1 -1
  56. package/src/integrations/indent.d.ts +13 -0
  57. package/src/integrations/indent.js +1 -1
  58. package/src/integrations/inputcommand.d.ts +11 -0
  59. package/src/integrations/inputcommand.js +1 -1
  60. package/src/integrations/link.d.ts +13 -0
  61. package/src/integrations/link.js +1 -1
  62. package/src/integrations/list.d.ts +13 -0
  63. package/src/integrations/list.js +1 -1
  64. package/src/integrations/listproperties.d.ts +25 -0
  65. package/src/integrations/listproperties.js +1 -1
  66. package/src/integrations/mediaembed.d.ts +13 -0
  67. package/src/integrations/mediaembed.js +1 -1
  68. package/src/integrations/mention.d.ts +13 -0
  69. package/src/integrations/mention.js +1 -1
  70. package/src/integrations/pagebreak.d.ts +13 -0
  71. package/src/integrations/pagebreak.js +1 -1
  72. package/src/integrations/paragraph.d.ts +13 -0
  73. package/src/integrations/paragraph.js +1 -1
  74. package/src/integrations/removeformat.d.ts +13 -0
  75. package/src/integrations/removeformat.js +1 -1
  76. package/src/integrations/restrictededitingmode.d.ts +13 -0
  77. package/src/integrations/restrictededitingmode.js +1 -1
  78. package/src/integrations/shiftentercommand.d.ts +11 -0
  79. package/src/integrations/shiftentercommand.js +1 -1
  80. package/src/integrations/standardeditingmode.d.ts +13 -0
  81. package/src/integrations/standardeditingmode.js +1 -1
  82. package/src/integrations/style.d.ts +14 -0
  83. package/src/integrations/style.js +1 -1
  84. package/src/integrations/table.d.ts +38 -0
  85. package/src/integrations/table.js +1 -1
  86. package/src/integrations/tablecaption.d.ts +17 -0
  87. package/src/integrations/tablecaption.js +1 -1
  88. package/src/integrations/tableclipboard.d.ts +17 -0
  89. package/src/integrations/tableclipboard.js +1 -1
  90. package/src/integrations/tablecolumnresize.d.ts +22 -0
  91. package/src/integrations/tablecolumnresize.js +1 -1
  92. package/src/integrations/tableheadings.d.ts +17 -0
  93. package/src/integrations/tableheadings.js +1 -1
  94. package/src/integrations/tablemergesplit.d.ts +17 -0
  95. package/src/integrations/tablemergesplit.js +1 -1
  96. package/src/integrations/tableproperties.d.ts +23 -0
  97. package/src/integrations/tableproperties.js +1 -1
  98. package/src/integrations/title.d.ts +13 -0
  99. package/src/integrations/title.js +1 -1
  100. package/src/integrations/undo.d.ts +13 -0
  101. package/src/integrations/undo.js +1 -1
  102. package/src/integrations/utils.d.ts +17 -0
  103. package/src/integrations/utils.js +1 -1
  104. package/src/suggestion.d.ts +266 -0
  105. package/src/suggestion.js +1 -1
  106. package/src/suggestiondescriptionfactory.d.ts +151 -0
  107. package/src/suggestiondescriptionfactory.js +1 -1
  108. package/src/trackchanges.d.ts +222 -0
  109. package/src/trackchanges.js +1 -1
  110. package/src/trackchangesconfig.d.ts +53 -0
  111. package/src/trackchangesconfig.js +23 -0
  112. package/src/trackchangesdata.d.ts +38 -0
  113. package/src/trackchangesdata.js +1 -1
  114. package/src/trackchangesediting.d.ts +391 -0
  115. package/src/trackchangesediting.js +1 -1
  116. package/src/trackchangesui.d.ts +34 -0
  117. package/src/trackchangesui.js +1 -1
  118. package/src/ui/suggestioncontroller.d.ts +36 -0
  119. package/src/ui/suggestioncontroller.js +1 -1
  120. package/src/ui/view/basesuggestionthreadview.d.ts +166 -0
  121. package/src/ui/view/basesuggestionthreadview.js +1 -1
  122. package/src/ui/view/suggestionthreadview.d.ts +184 -0
  123. package/src/ui/view/suggestionthreadview.js +1 -1
  124. package/src/utils/common-translations.d.ts +5 -0
  125. package/src/utils/common-translations.js +1 -1
  126. package/src/utils/utils.d.ts +26 -0
  127. package/src/utils/utils.js +1 -1
@@ -16,6 +16,16 @@
16
16
  "requires": [
17
17
  "Comments"
18
18
  ]
19
+ },
20
+ {
21
+ "name": "Track changes data",
22
+ "className": "TrackChangesData",
23
+ "description": "This plugin returns the editor data with accepted or discarded suggestions without modifying the editor content.",
24
+ "docs": "features/collaboration/track-changes/track-changes-data.html",
25
+ "path": "src/trackchangesdata.js",
26
+ "requires": [
27
+ "TrackChanges"
28
+ ]
19
29
  }
20
30
  ]
21
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-track-changes",
3
- "version": "36.0.0",
3
+ "version": "37.0.0-rc.0",
4
4
  "description": "CKEditor 5 track changes plugin.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -26,10 +26,25 @@
26
26
  "framework"
27
27
  ],
28
28
  "main": "src/index.js",
29
+ "files": [
30
+ "build",
31
+ "lang",
32
+ "src/**/*.js",
33
+ "src/**/*.d.ts",
34
+ "theme",
35
+ "ckeditor5-metadata.json",
36
+ "CHANGELOG.md"
37
+ ],
38
+ "scripts": {
39
+ "dll:build": "webpack",
40
+ "build": "tsc -p ./tsconfig.json",
41
+ "postversion": "npm run build"
42
+ },
29
43
  "dependencies": {
30
- "ckeditor5": "^36.0.0",
31
- "ckeditor5-collaboration": "^36.0.0",
32
- "lodash-es": "^4.17.11",
33
- "@ckeditor/ckeditor5-style": "^36.0.0"
34
- }
44
+ "ckeditor5": "^37.0.0-rc.0",
45
+ "ckeditor5-collaboration": "^36.0.1",
46
+ "lodash-es": "^4.17.11"
47
+ },
48
+ "types": "src/index.d.ts",
49
+ "obfuscated": true
35
50
  }
@@ -0,0 +1,36 @@
1
+ import type { TrackChangesConfig, TrackChangesEditing, AcceptSuggestionCommand, DiscardSuggestionCommand, ExecuteOnAllSuggestionsCommand, ExecuteOnSelectedSuggestionsCommand, TrackChangesCommand } from './index';
2
+ import type { Editor } from 'ckeditor5/src/core';
3
+ declare module '@ckeditor/ckeditor5-core' {
4
+ interface EditorConfig {
5
+ /**
6
+ * The configuration of the {@link module:track-changes/trackchanges~TrackChanges} feature.
7
+ *
8
+ * Read more in {@link module:track-changes/trackchangesconfig~TrackChangesConfig}.
9
+ */
10
+ trackChanges?: TrackChangesConfig;
11
+ /**
12
+ * The configuration of the track changes data feature.
13
+ */
14
+ trackChangesData?: {
15
+ /**
16
+ * Callback that creates an editor instances.
17
+ *
18
+ * Used in non-standard integrations. See track changes data
19
+ * {@glink features/collaboration/track-changes/track-changes-data#configuring-track-changes-data-plugin configuration guide}.
20
+ */
21
+ editorCreator?: (config: EditorConfig, createElement: Function) => Promise<Editor>;
22
+ };
23
+ }
24
+ interface PluginsMap {
25
+ [TrackChangesEditing.pluginName]: TrackChangesEditing;
26
+ }
27
+ interface CommandsMap {
28
+ acceptSuggestion: AcceptSuggestionCommand;
29
+ discardSuggestion: DiscardSuggestionCommand;
30
+ acceptAllSuggestions: ExecuteOnAllSuggestionsCommand<AcceptSuggestionCommand>;
31
+ discardAllSuggestions: ExecuteOnAllSuggestionsCommand<DiscardSuggestionCommand>;
32
+ acceptSelectedSuggestions: ExecuteOnSelectedSuggestionsCommand<AcceptSuggestionCommand>;
33
+ discardSelectedSuggestions: ExecuteOnSelectedSuggestionsCommand<DiscardSuggestionCommand>;
34
+ trackChanges: TrackChangesCommand;
35
+ }
36
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ export{};
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @module track-changes/commands/acceptsuggestioncommand
3
+ * @publicApi
4
+ */
5
+ import { Command, type Editor } from 'ckeditor5/src/core';
6
+ import type Suggestion from '../suggestion';
7
+ /**
8
+ * A command that accepts the suggestion chain.
9
+ */
10
+ export default class AcceptSuggestionCommand extends Command {
11
+ constructor(editor: Editor, suggestions: Map<string, Suggestion>);
12
+ /**
13
+ * @inheritDoc
14
+ */
15
+ refresh(): void;
16
+ /**
17
+ * @inheritDoc
18
+ */
19
+ execute(suggestionId: string): void;
20
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x11a5=['_suggestions','acceptSuggestion','refresh','track-changes-accept-suggestion-not-found','execute','get','TrackChangesEditing','isEnabled'];(function(_0x2eb363,_0x11a53c){const _0x48025a=function(_0x2674d9){while(--_0x2674d9){_0x2eb363['push'](_0x2eb363['shift']());}};_0x48025a(++_0x11a53c);}(_0x11a5,0x128));const _0x4802=function(_0x2eb363,_0x11a53c){_0x2eb363=_0x2eb363-0x0;let _0x48025a=_0x11a5[_0x2eb363];return _0x48025a;};import{Command as _0x4d2a72}from'ckeditor5/src/core';import{CKEditorError as _0x180ea3}from'ckeditor5/src/utils';export default class R extends _0x4d2a72{constructor(_0x28507e,_0x2669fd){super(_0x28507e),this[_0x4802('0x0')]=_0x2669fd,this[_0x4802('0x2')]();}[_0x4802('0x2')](){this[_0x4802('0x7')]=!0x0;}[_0x4802('0x4')](_0x53f887){const _0x352627=this[_0x4802('0x0')][_0x4802('0x5')](_0x53f887);if(!_0x352627)throw new _0x180ea3(_0x4802('0x3'),this);this['editor']['plugins']['get'](_0x4802('0x6'))[_0x4802('0x1')](_0x352627);}}
23
+ const _0x22fa=['refresh','get','_suggestions','acceptSuggestion','plugins','execute','track-changes-accept-suggestion-not-found'];(function(_0x57c665,_0x22fa0f){const _0x515917=function(_0x1b6929){while(--_0x1b6929){_0x57c665['push'](_0x57c665['shift']());}};_0x515917(++_0x22fa0f);}(_0x22fa,0x1d5));const _0x5159=function(_0x57c665,_0x22fa0f){_0x57c665=_0x57c665-0x0;let _0x515917=_0x22fa[_0x57c665];return _0x515917;};import{Command as _0x405d40}from'ckeditor5/src/core';import{CKEditorError as _0x58e503}from'ckeditor5/src/utils';export default class M extends _0x405d40{constructor(_0xa7bb2f,_0x584468){super(_0xa7bb2f),this['_suggestions']=_0x584468,this[_0x5159('0x0')]();}[_0x5159('0x0')](){this['isEnabled']=!0x0;}[_0x5159('0x5')](_0x3f94c1){const _0x566b97=this[_0x5159('0x2')]['get'](_0x3f94c1);if(!_0x566b97)throw new _0x58e503(_0x5159('0x6'),this);this['editor'][_0x5159('0x4')][_0x5159('0x1')]('TrackChangesEditing')[_0x5159('0x3')](_0x566b97);}}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @module track-changes/commands/discardsuggestioncommand
3
+ * @publicApi
4
+ */
5
+ import { Command, type Editor } from 'ckeditor5/src/core';
6
+ import type Suggestion from '../suggestion';
7
+ /**
8
+ * A command that discards the suggestion chain.
9
+ */
10
+ export default class DiscardSuggestionCommand extends Command {
11
+ constructor(editor: Editor, suggestions: Map<string, Suggestion>);
12
+ /**
13
+ * @inheritDoc
14
+ */
15
+ refresh(): void;
16
+ /**
17
+ * @inheritDoc
18
+ */
19
+ execute(suggestionId: string): void;
20
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x204e=['execute','get','isEnabled','TrackChangesEditing','refresh','discardSuggestion','_suggestions'];(function(_0x62de29,_0x204ee3){const _0x1fa1b7=function(_0x2db483){while(--_0x2db483){_0x62de29['push'](_0x62de29['shift']());}};_0x1fa1b7(++_0x204ee3);}(_0x204e,0x7d));const _0x1fa1=function(_0x62de29,_0x204ee3){_0x62de29=_0x62de29-0x0;let _0x1fa1b7=_0x204e[_0x62de29];return _0x1fa1b7;};import{Command as _0xe894a4}from'ckeditor5/src/core';import{CKEditorError as _0x555366}from'ckeditor5/src/utils';export default class x extends _0xe894a4{constructor(_0x3e7844,_0x563bc4){super(_0x3e7844),this[_0x1fa1('0x0')]=_0x563bc4,this[_0x1fa1('0x5')]();}[_0x1fa1('0x5')](){this[_0x1fa1('0x3')]=!0x0;}[_0x1fa1('0x1')](_0xa1797e){const _0x2e2c7f=this[_0x1fa1('0x0')][_0x1fa1('0x2')](_0xa1797e);if(!_0x2e2c7f)throw new _0x555366('track-changes-discard-suggestion-not-found',this);this['editor']['plugins']['get'](_0x1fa1('0x4'))[_0x1fa1('0x6')](_0x2e2c7f);}}
23
+ const _0x1461=['plugins','execute','_suggestions','get','editor','isEnabled','discardSuggestion','refresh','TrackChangesEditing'];(function(_0x4c35f5,_0x1461ef){const _0x25217c=function(_0x15f2f0){while(--_0x15f2f0){_0x4c35f5['push'](_0x4c35f5['shift']());}};_0x25217c(++_0x1461ef);}(_0x1461,0x1a4));const _0x2521=function(_0x4c35f5,_0x1461ef){_0x4c35f5=_0x4c35f5-0x0;let _0x25217c=_0x1461[_0x4c35f5];return _0x25217c;};import{Command as _0x614818}from'ckeditor5/src/core';import{CKEditorError as _0x4971c2}from'ckeditor5/src/utils';export default class $ extends _0x614818{constructor(_0x2c4826,_0x4282d0){super(_0x2c4826),this[_0x2521('0x5')]=_0x4282d0,this[_0x2521('0x1')]();}[_0x2521('0x1')](){this[_0x2521('0x8')]=!0x0;}[_0x2521('0x4')](_0x4d826c){const _0x3d39e0=this[_0x2521('0x5')][_0x2521('0x6')](_0x4d826c);if(!_0x3d39e0)throw new _0x4971c2('track-changes-discard-suggestion-not-found',this);this[_0x2521('0x7')][_0x2521('0x3')]['get'](_0x2521('0x2'))[_0x2521('0x0')](_0x3d39e0);}}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @module track-changes/commands/executeonallsuggestionscommand
3
+ * @publicApi
4
+ */
5
+ import { Command, type Editor } from 'ckeditor5/src/core';
6
+ import type Suggestion from '../suggestion';
7
+ /**
8
+ * A command that executes passed command (accept or discard suggestion command) at once for all suggestions in the document.
9
+ */
10
+ export default class ExecuteOnAllSuggestionsCommand<T extends Command> extends Command {
11
+ constructor(editor: Editor, command: T, suggestions: Map<string, Suggestion>);
12
+ /**
13
+ * @inheritDoc
14
+ */
15
+ refresh(): void;
16
+ /**
17
+ * @inheritDoc
18
+ */
19
+ execute(): void;
20
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x6f1b=['_suggestions','from','editor','_command','refresh','values','some','isInContent','isEnabled'];(function(_0x34861c,_0x6f1bc2){const _0x2efd9f=function(_0x1c9840){while(--_0x1c9840){_0x34861c['push'](_0x34861c['shift']());}};_0x2efd9f(++_0x6f1bc2);}(_0x6f1b,0x140));const _0x2efd=function(_0x34861c,_0x6f1bc2){_0x34861c=_0x34861c-0x0;let _0x2efd9f=_0x6f1b[_0x34861c];return _0x2efd9f;};import{Command as _0x2d983f}from'ckeditor5/src/core';import{sortSuggestions as _0x222fbe,executeCommandForSuggestions as _0x35438b}from'../utils/utils';export default class U extends _0x2d983f{constructor(_0x3a0951,_0x540f66,_0x9c9b19){super(_0x3a0951),this['_command']=_0x540f66,this[_0x2efd('0x4')]=_0x9c9b19,this[_0x2efd('0x8')]();}[_0x2efd('0x8')](){const _0x1626f8=Array[_0x2efd('0x5')](this[_0x2efd('0x4')][_0x2efd('0x0')]())[_0x2efd('0x1')](_0x54bc03=>_0x54bc03[_0x2efd('0x2')]);this['isEnabled']=this['_command'][_0x2efd('0x3')]&&_0x1626f8;}['execute'](){const _0x86ede4=_0x222fbe(Array[_0x2efd('0x5')](this[_0x2efd('0x4')][_0x2efd('0x0')]()));_0x35438b(this[_0x2efd('0x6')]['model'],this[_0x2efd('0x7')],_0x86ede4);}}
23
+ const _0x37b3=['_command','model','refresh','values','isInContent','editor','isEnabled','_suggestions','from'];(function(_0x3eda6f,_0x37b33a){const _0x32de71=function(_0x3b65a3){while(--_0x3b65a3){_0x3eda6f['push'](_0x3eda6f['shift']());}};_0x32de71(++_0x37b33a);}(_0x37b3,0x16c));const _0x32de=function(_0x3eda6f,_0x37b33a){_0x3eda6f=_0x3eda6f-0x0;let _0x32de71=_0x37b3[_0x3eda6f];return _0x32de71;};import{Command as _0x44d1f4}from'ckeditor5/src/core';import{sortSuggestions as _0x4a894c,executeCommandForSuggestions as _0x2a237f}from'../utils/utils';export default class N extends _0x44d1f4{constructor(_0x2d2061,_0x49a260,_0x1b0fba){super(_0x2d2061),this[_0x32de('0x5')]=_0x49a260,this[_0x32de('0x3')]=_0x1b0fba,this[_0x32de('0x7')]();}[_0x32de('0x7')](){const _0x26d8b7=Array[_0x32de('0x4')](this[_0x32de('0x3')]['values']())['some'](_0x565f40=>_0x565f40[_0x32de('0x0')]);this[_0x32de('0x2')]=this[_0x32de('0x5')][_0x32de('0x2')]&&_0x26d8b7;}['execute'](){const _0x23f7c3=_0x4a894c(Array[_0x32de('0x4')](this[_0x32de('0x3')][_0x32de('0x8')]()));_0x2a237f(this[_0x32de('0x1')][_0x32de('0x6')],this[_0x32de('0x5')],_0x23f7c3);}}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @module track-changes/commands/executeonselectedsuggestionscommand
3
+ * @publicApi
4
+ */
5
+ import { Command, type Editor } from 'ckeditor5/src/core';
6
+ import type Suggestion from '../suggestion';
7
+ /**
8
+ * A command that executes passed command (accept or discard suggestion command) at once for all suggestions selected in the document.
9
+ */
10
+ export default class ExecuteOnSelectedSuggestionsCommand<T extends Command> extends Command {
11
+ constructor(editor: Editor, command: T, suggestions: Map<string, Suggestion>);
12
+ /**
13
+ * @inheritDoc
14
+ */
15
+ refresh(): void;
16
+ /**
17
+ * @inheritDoc
18
+ */
19
+ execute(): void;
20
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x533b=['selection','size','isEnabled','model','refresh','_command','editor','execute','from','_selectedSuggestions','_suggestions','values','document'];(function(_0x313498,_0x533bfe){const _0x40946f=function(_0x768fa0){while(--_0x768fa0){_0x313498['push'](_0x313498['shift']());}};_0x40946f(++_0x533bfe);}(_0x533b,0x132));const _0x4094=function(_0x313498,_0x533bfe){_0x313498=_0x313498-0x0;let _0x40946f=_0x533b[_0x313498];return _0x40946f;};import{Command as _0x2cb900}from'ckeditor5/src/core';import{sortSuggestions as _0x1bcd38,getSelectedSuggestions as _0x2f55c0,executeCommandForSuggestions as _0x15cdee}from'../utils/utils';export default class j extends _0x2cb900{constructor(_0x1ab89e,_0x4c3d5d,_0x2f58ac){super(_0x1ab89e),this[_0x4094('0xb')]=_0x4c3d5d,this[_0x4094('0x3')]=_0x2f58ac,this[_0x4094('0x2')]=new Set(),this[_0x4094('0xa')]();}[_0x4094('0xa')](){const _0xb3689f=this[_0x4094('0xc')][_0x4094('0x9')][_0x4094('0x5')][_0x4094('0x6')],_0x1c57d7=Array[_0x4094('0x1')](this[_0x4094('0x3')][_0x4094('0x4')]());this[_0x4094('0x2')]=_0x2f55c0(_0xb3689f,_0x1c57d7),this[_0x4094('0x8')]=this[_0x4094('0xb')]['isEnabled']&&!!this[_0x4094('0x2')][_0x4094('0x7')];}[_0x4094('0x0')](){const _0x4505ce=_0x1bcd38(Array['from'](this[_0x4094('0x2')]));_0x15cdee(this['editor'][_0x4094('0x9')],this[_0x4094('0xb')],_0x4505ce);}}
23
+ const _0x1071=['_suggestions','values','document','model','editor','from','_command','execute','isEnabled','refresh','_selectedSuggestions'];(function(_0x335c70,_0x1071a0){const _0x4500fe=function(_0xb01708){while(--_0xb01708){_0x335c70['push'](_0x335c70['shift']());}};_0x4500fe(++_0x1071a0);}(_0x1071,0x13b));const _0x4500=function(_0x335c70,_0x1071a0){_0x335c70=_0x335c70-0x0;let _0x4500fe=_0x1071[_0x335c70];return _0x4500fe;};import{Command as _0x2a17aa}from'ckeditor5/src/core';import{sortSuggestions as _0x1df66a,getSelectedSuggestions as _0x289deb,executeCommandForSuggestions as _0x41cbdc}from'../utils/utils';export default class R extends _0x2a17aa{constructor(_0x5ae8c0,_0x67a737,_0x1cc87d){super(_0x5ae8c0),this[_0x4500('0xa')]=_0x67a737,this[_0x4500('0x4')]=_0x1cc87d,this['_selectedSuggestions']=new Set(),this[_0x4500('0x2')]();}[_0x4500('0x2')](){const _0x5d8dd4=this[_0x4500('0x8')][_0x4500('0x7')][_0x4500('0x6')]['selection'],_0x23564d=Array[_0x4500('0x9')](this[_0x4500('0x4')][_0x4500('0x5')]());this[_0x4500('0x3')]=_0x289deb(_0x5d8dd4,_0x23564d),this['isEnabled']=this['_command'][_0x4500('0x1')]&&!!this[_0x4500('0x3')]['size'];}[_0x4500('0x0')](){const _0x2c84f6=_0x1df66a(Array['from'](this[_0x4500('0x3')]));_0x41cbdc(this['editor'][_0x4500('0x7')],this[_0x4500('0xa')],_0x2c84f6);}}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * @module track-changes/commands/trackchangescommand
3
+ * @publicApi
4
+ */
5
+ import { Command, type Editor } from 'ckeditor5/src/core';
6
+ /**
7
+ * Turns the track changes mode on and off.
8
+ *
9
+ * When the track changes mode is on, this command disables all the unsupported commands.
10
+ */
11
+ export default class TrackChangesCommand extends Command {
12
+ value: boolean;
13
+ constructor(editor: Editor, enabledCommands: Set<Command>);
14
+ /**
15
+ * @inheritDoc
16
+ */
17
+ refresh(): void;
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ execute(): void;
22
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x45f6=['_disableUnsupportedCommands','_enableCommands','editor','TrackChangesCommand','execute','value','refresh','_enabledCommands','affectsData','commands','isEnabled','forceDisabled','clearForceDisabled'];(function(_0x344299,_0x45f659){const _0x5b87ca=function(_0x46d64a){while(--_0x46d64a){_0x344299['push'](_0x344299['shift']());}};_0x5b87ca(++_0x45f659);}(_0x45f6,0x13f));const _0x5b87=function(_0x344299,_0x45f659){_0x344299=_0x344299-0x0;let _0x5b87ca=_0x45f6[_0x344299];return _0x5b87ca;};import{Command as _0x4a1ceb}from'ckeditor5/src/core';export default class N extends _0x4a1ceb{constructor(_0x76e053,_0x16b708){super(_0x76e053),this[_0x5b87('0x0')]=_0x16b708,this[_0x5b87('0xb')]=!0x1,this[_0x5b87('0xc')]();}[_0x5b87('0xc')](){this[_0x5b87('0x3')]=!0x0;}[_0x5b87('0xa')](){this[_0x5b87('0xb')]=!this['value'],this[_0x5b87('0xb')]?this[_0x5b87('0x6')]():this[_0x5b87('0x7')]();}[_0x5b87('0x6')](){for(const _0x270a21 of this['editor'][_0x5b87('0x2')]['commands']())_0x270a21['affectsData']&&!this[_0x5b87('0x0')]['has'](_0x270a21)&&_0x270a21[_0x5b87('0x4')](_0x5b87('0x9'));}['_enableCommands'](){for(const _0x23bafb of this[_0x5b87('0x8')][_0x5b87('0x2')][_0x5b87('0x2')]())_0x23bafb[_0x5b87('0x1')]&&!this[_0x5b87('0x0')]['has'](_0x23bafb)&&_0x23bafb[_0x5b87('0x5')](_0x5b87('0x9'));}}
23
+ const _0x13a3=['affectsData','forceDisabled','editor','value','has','clearForceDisabled','isEnabled','execute','_enableCommands','commands','TrackChangesCommand','refresh','_disableUnsupportedCommands','_enabledCommands'];(function(_0x442a3a,_0x13a35e){const _0x5531ca=function(_0xfaa4b1){while(--_0xfaa4b1){_0x442a3a['push'](_0x442a3a['shift']());}};_0x5531ca(++_0x13a35e);}(_0x13a3,0x182));const _0x5531=function(_0x442a3a,_0x13a35e){_0x442a3a=_0x442a3a-0x0;let _0x5531ca=_0x13a3[_0x442a3a];return _0x5531ca;};import{Command as _0x33615b}from'ckeditor5/src/core';export default class _ extends _0x33615b{constructor(_0x2351c0,_0x2ff32d){super(_0x2351c0),this[_0x5531('0x5')]=_0x2ff32d,this[_0x5531('0x9')]=!0x1,this[_0x5531('0x3')]();}[_0x5531('0x3')](){this[_0x5531('0xc')]=!0x0;}[_0x5531('0xd')](){this[_0x5531('0x9')]=!this[_0x5531('0x9')],this['value']?this[_0x5531('0x4')]():this[_0x5531('0x0')]();}['_disableUnsupportedCommands'](){for(const _0x72b84b of this[_0x5531('0x8')][_0x5531('0x1')]['commands']())_0x72b84b[_0x5531('0x6')]&&!this[_0x5531('0x5')][_0x5531('0xa')](_0x72b84b)&&_0x72b84b[_0x5531('0x7')](_0x5531('0x2'));}[_0x5531('0x0')](){for(const _0x1b6512 of this[_0x5531('0x8')][_0x5531('0x1')][_0x5531('0x1')]())_0x1b6512[_0x5531('0x6')]&&!this['_enabledCommands'][_0x5531('0xa')](_0x1b6512)&&_0x1b6512[_0x5531('0xb')](_0x5531('0x2'));}}
package/src/index.d.ts ADDED
@@ -0,0 +1,12 @@
1
+ export { default as TrackChanges, type SuggestionData } from './trackchanges';
2
+ export { default as TrackChangesData } from './trackchangesdata';
3
+ export { default as TrackChangesEditing } from './trackchangesediting';
4
+ export { SuggestionJSON } from './suggestion';
5
+ export { default as BaseSuggestionThreadView } from './ui/view/basesuggestionthreadview';
6
+ export type { TrackChangesConfig } from './trackchangesconfig';
7
+ export type { default as AcceptSuggestionCommand } from './commands/acceptsuggestioncommand';
8
+ export type { default as DiscardSuggestionCommand } from './commands/discardsuggestioncommand';
9
+ export type { default as ExecuteOnAllSuggestionsCommand } from './commands/executeonallsuggestionscommand';
10
+ export type { default as ExecuteOnSelectedSuggestionsCommand } from './commands/executeonselectedsuggestionscommand';
11
+ export type { default as TrackChangesCommand } from './commands/trackchangescommand';
12
+ import './augmentation';
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 BaseSuggestionThreadView}from'./ui/view/basesuggestionthreadview';
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';
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @module track-changes/integrations/alignment
3
+ */
4
+ import { Plugin } from 'ckeditor5/src/core';
5
+ /**
6
+ * Provides track changes plugin integration for alignment feature.
7
+ */
8
+ export default class TrackChangesAlignment extends Plugin {
9
+ /**
10
+ * @inheritDoc
11
+ */
12
+ afterInit(): void;
13
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x515c=['has','format','getAttribute','alignment','FORMAT_ALIGN_TO_RIGHT','enableCommand','TrackChangesEditing','get','plugins','right','selection','justify','FORMAT_ALIGN_TO_LEFT','editor','center','_descriptionFactory','markBlockFormat','model','getSelectedBlocks','change','value','commandName','registerDescriptionCallback','filter','left','from','afterInit','document','locale','checkAttribute','commandParams'];(function(_0x304cdc,_0x515c7b){const _0x350a9b=function(_0x548238){while(--_0x548238){_0x304cdc['push'](_0x304cdc['shift']());}};_0x350a9b(++_0x515c7b);}(_0x515c,0x70));const _0x350a=function(_0x304cdc,_0x515c7b){_0x304cdc=_0x304cdc-0x0;let _0x350a9b=_0x515c[_0x304cdc];return _0x350a9b;};import{Plugin as _0x3b31bb}from'ckeditor5/src/core';import{getTranslation as _0x5f46db}from'../utils/common-translations';export default class E extends _0x3b31bb{[_0x350a('0x7')](){const _0x59ac81=this[_0x350a('0x19')],_0x25c55f=_0x59ac81[_0x350a('0x9')];if(!_0x59ac81[_0x350a('0x14')][_0x350a('0xc')]('AlignmentEditing'))return;const _0x595aaa=_0x59ac81[_0x350a('0x14')][_0x350a('0x13')](_0x350a('0x12'));_0x595aaa[_0x350a('0x11')](_0x350a('0xf'),(_0x1ca167,_0x3b7e51={})=>{let _0x162da9=_0x3b7e51[_0x350a('0x1')];_0x3b7e51['value']||(_0x162da9='ltr'===_0x59ac81[_0x350a('0x9')]['contentLanguageDirection']?_0x350a('0x5'):_0x350a('0x15'));const _0x16192f=Array[_0x350a('0x6')](this[_0x350a('0x19')][_0x350a('0x1d')][_0x350a('0x8')][_0x350a('0x16')][_0x350a('0x1e')]())[_0x350a('0x4')](_0x5459d2=>function(_0x3e8452,_0x2ee2fd,_0x79337f){const _0x4ae928=_0x3e8452[_0x350a('0xe')]('alignment')||null;return _0x2ee2fd[_0x350a('0xa')](_0x3e8452,_0x350a('0xf'))&&_0x79337f!=_0x4ae928;}(_0x5459d2,this['editor']['model']['schema'],_0x162da9));_0x59ac81[_0x350a('0x1d')][_0x350a('0x0')](()=>{for(const _0x16a8cc of _0x16192f)_0x595aaa[_0x350a('0x1c')](_0x16a8cc,{'commandName':'alignment','commandParams':[{'value':_0x162da9}]});});}),_0x595aaa[_0x350a('0x1b')][_0x350a('0x3')](_0x5c61f3=>{const {data:_0x4a87b6}=_0x5c61f3;if(_0x4a87b6&&_0x350a('0xf')==_0x4a87b6[_0x350a('0x2')]){const _0x46b811=_0x4a87b6[_0x350a('0xb')][0x0][_0x350a('0x1')];return{'type':_0x350a('0xd'),'content':_0x5f46db(_0x25c55f,'*Format:*\x20%0',function(_0x543a60){switch(_0x543a60){case _0x350a('0x5'):return _0x5f46db(_0x25c55f,_0x350a('0x18'));case'right':return _0x5f46db(_0x25c55f,_0x350a('0x10'));case _0x350a('0x1a'):return _0x5f46db(_0x25c55f,'FORMAT_ALIGN_TO_CENTER');case _0x350a('0x17'):return _0x5f46db(_0x25c55f,'FORMAT_JUSTIFY_TEXT');}}(_0x46b811))};}});}}
23
+ const _0x342e=['TrackChangesEditing','FORMAT_ALIGN_TO_CENTER','editor','center','commandParams','has','locale','afterInit','change','FORMAT_ALIGN_TO_RIGHT','left','getAttribute','enableCommand','justify','plugins','right','alignment','ltr','contentLanguageDirection','get','format','markBlockFormat','commandName','document','filter','*Format:*\x20%0','AlignmentEditing','model','_descriptionFactory','registerDescriptionCallback','selection','value','FORMAT_ALIGN_TO_LEFT'];(function(_0x3a0d4f,_0x342e19){const _0x167108=function(_0x2d98c8){while(--_0x2d98c8){_0x3a0d4f['push'](_0x3a0d4f['shift']());}};_0x167108(++_0x342e19);}(_0x342e,0x158));const _0x1671=function(_0x3a0d4f,_0x342e19){_0x3a0d4f=_0x3a0d4f-0x0;let _0x167108=_0x342e[_0x3a0d4f];return _0x167108;};import{Plugin as _0x39ecd8}from'ckeditor5/src/core';import{getTranslation as _0x23ca82}from'../utils/common-translations';export default class x extends _0x39ecd8{[_0x1671('0x1a')](){const _0x4e8270=this['editor'],_0x3a1756=_0x4e8270[_0x1671('0x19')];if(!_0x4e8270['plugins'][_0x1671('0x18')](_0x1671('0xc')))return;const _0x9a4daf=_0x4e8270[_0x1671('0x0')][_0x1671('0x5')](_0x1671('0x13'));_0x9a4daf[_0x1671('0x1f')](_0x1671('0x2'),(_0x5827ae,_0x22e7d4={})=>{let _0x374e6a=_0x22e7d4[_0x1671('0x11')];_0x22e7d4[_0x1671('0x11')]||(_0x374e6a=_0x1671('0x3')===_0x4e8270[_0x1671('0x19')][_0x1671('0x4')]?_0x1671('0x1d'):_0x1671('0x1'));const _0x4bc116=Array['from'](this['editor'][_0x1671('0xd')][_0x1671('0x9')][_0x1671('0x10')]['getSelectedBlocks']())[_0x1671('0xa')](_0x2765a2=>function(_0x3cd9b0,_0xb7ad1f,_0x5775ad){const _0x290a9b=_0x3cd9b0[_0x1671('0x1e')](_0x1671('0x2'))||null;return _0xb7ad1f['checkAttribute'](_0x3cd9b0,_0x1671('0x2'))&&_0x5775ad!=_0x290a9b;}(_0x2765a2,this[_0x1671('0x15')][_0x1671('0xd')]['schema'],_0x374e6a));_0x4e8270['model'][_0x1671('0x1b')](()=>{for(const _0x358f88 of _0x4bc116)_0x9a4daf[_0x1671('0x7')](_0x358f88,{'commandName':_0x1671('0x2'),'commandParams':[{'value':_0x374e6a}]});});}),_0x9a4daf[_0x1671('0xe')][_0x1671('0xf')](_0x1243da=>{const {data:_0x57a80c}=_0x1243da;if(_0x57a80c&&'alignment'==_0x57a80c[_0x1671('0x8')]){const _0x83a4f9=_0x57a80c[_0x1671('0x17')][0x0]['value'];return{'type':_0x1671('0x6'),'content':_0x23ca82(_0x3a1756,_0x1671('0xb'),function(_0x318445){switch(_0x318445){case _0x1671('0x1d'):return _0x23ca82(_0x3a1756,_0x1671('0x12'));case'right':return _0x23ca82(_0x3a1756,_0x1671('0x1c'));case _0x1671('0x16'):return _0x23ca82(_0x3a1756,_0x1671('0x14'));case _0x1671('0x20'):return _0x23ca82(_0x3a1756,'FORMAT_JUSTIFY_TEXT');}}(_0x83a4f9))};}});}}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @module track-changes/integrations/basicstyles
3
+ */
4
+ import { Plugin } from 'ckeditor5/src/core';
5
+ /**
6
+ * Provides track changes plugin integration for basic styles features.
7
+ */
8
+ export default class TrackChangesBasicStyles extends Plugin {
9
+ /**
10
+ * @inheritDoc
11
+ */
12
+ afterInit(): void;
13
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x390e=['editor','TrackChangesEditing','slice','FORMAT_UNDERLINE','FORMAT_CODE','format','plugins','_descriptionFactory','FORMAT_SUPERSCRIPT','subscript','model','enableCommand','FORMAT_SUBSCRIPT','commands','CodeEditing','afterInit','strikethrough','FORMAT_STRIKETHROUGH','BoldEditing','superscript','*Remove\x20format:*\x20%0','locale','code','getRanges','forceValue','registerDescriptionCallback','SuperscriptEditing','value','commandParams','from','*Format:*\x20%0','underline','FORMAT_ITALIC','toLowerCase','document','StrikethroughEditing','bold','SubscriptEditing','FORMAT_BOLD','has'];(function(_0x567b97,_0x390ed3){const _0x1d1c67=function(_0x506d7e){while(--_0x506d7e){_0x567b97['push'](_0x567b97['shift']());}};_0x1d1c67(++_0x390ed3);}(_0x390e,0x1cf));const _0x1d1c=function(_0x567b97,_0x390ed3){_0x567b97=_0x567b97-0x0;let _0x1d1c67=_0x390e[_0x567b97];return _0x1d1c67;};import{Plugin as _0x349512}from'ckeditor5/src/core';import{getTranslation as _0x2f0101}from'../utils/common-translations';import{getRangesWithAttribute as _0x5559c7}from'./utils';const Kt=[_0x1d1c('0x23'),'ItalicEditing','UnderlineEditing',_0x1d1c('0x1f'),_0x1d1c('0xc'),_0x1d1c('0xe'),_0x1d1c('0x3')];export default class O extends _0x349512{[_0x1d1c('0x20')](){const _0x39e32e=this[_0x1d1c('0x11')],_0x34a1dd=_0x39e32e[_0x1d1c('0x1b')],_0x5538e1=_0x39e32e[_0x1d1c('0x17')]['get'](_0x1d1c('0x12')),_0x21a784=_0x39e32e[_0x1d1c('0x26')];for(const _0x8a89c6 of Kt){if(!_0x39e32e['plugins'][_0x1d1c('0x10')](_0x8a89c6))continue;const _0x4a60b0=_0x8a89c6[_0x1d1c('0x13')](0x0,-0x7)[_0x1d1c('0xa')](),_0xd9aabe=_0x39e32e[_0x1d1c('0x1e')]['get'](_0x4a60b0);_0x5538e1[_0x1d1c('0x1c')](_0x4a60b0,(_0x53e38c,_0x44bd12={})=>{const _0x2ad0bb=_0x34a1dd[_0x1d1c('0xb')]['selection'];if(_0x2ad0bb['isCollapsed'])return void _0x53e38c(_0x44bd12);const _0x3e210b=void 0x0!==_0x44bd12[_0x1d1c('0x1')]?_0x44bd12['forceValue']:!_0xd9aabe[_0x1d1c('0x4')];_0x34a1dd['change'](()=>{const _0xa56b35=Array[_0x1d1c('0x6')](_0x2ad0bb[_0x1d1c('0x0')]());for(const _0x4e12ad of _0xa56b35){const _0x4ef9c9=_0x3e210b?[_0x4e12ad]:_0x5559c7(_0x4a60b0,_0x4e12ad,_0x34a1dd);for(const _0x450b3a of _0x4ef9c9)_0x5538e1['markInlineFormat'](_0x450b3a,{'commandName':_0x4a60b0,'commandParams':[{'forceValue':_0x3e210b}]});}});});}function _0x4669cd(_0x25d6cf,_0x1683bc){_0x5538e1[_0x1d1c('0x18')][_0x1d1c('0x2')](_0x2954b7=>{const {data:_0x4fdb29}=_0x2954b7;if(_0x4fdb29&&_0x4fdb29['commandName']===_0x25d6cf)return _0x4fdb29[_0x1d1c('0x5')][0x0][_0x1d1c('0x1')]?{'type':_0x1d1c('0x16'),'content':_0x2f0101(_0x21a784,_0x1d1c('0x7'),_0x1683bc)}:{'type':'format','content':_0x2f0101(_0x21a784,_0x1d1c('0x25'),_0x1683bc)};});}_0x4669cd(_0x1d1c('0xd'),_0x2f0101(_0x21a784,_0x1d1c('0xf'))),_0x4669cd('italic',_0x2f0101(_0x21a784,_0x1d1c('0x9'))),_0x4669cd(_0x1d1c('0x8'),_0x2f0101(_0x21a784,_0x1d1c('0x14'))),_0x4669cd(_0x1d1c('0x27'),_0x2f0101(_0x21a784,_0x1d1c('0x15'))),_0x4669cd(_0x1d1c('0x21'),_0x2f0101(_0x21a784,_0x1d1c('0x22'))),_0x4669cd(_0x1d1c('0x1a'),_0x2f0101(_0x21a784,_0x1d1c('0x1d'))),_0x4669cd(_0x1d1c('0x24'),_0x2f0101(_0x21a784,_0x1d1c('0x19')));}}
23
+ const _0x5af4=['slice','FORMAT_CODE','FORMAT_SUPERSCRIPT','plugins','toLowerCase','document','registerDescriptionCallback','subscript','has','locale','StrikethroughEditing','commandParams','underline','*Remove\x20format:*\x20%0','FORMAT_BOLD','strikethrough','editor','afterInit','forceValue','format','code','commandName','bold','BoldEditing','commands','FORMAT_UNDERLINE','superscript','change','TrackChangesEditing','get','from','getRanges','italic','markInlineFormat','enableCommand','FORMAT_SUBSCRIPT','value','FORMAT_ITALIC'];(function(_0x19e00e,_0x5af4cd){const _0x16f47f=function(_0x5d0fd0){while(--_0x5d0fd0){_0x19e00e['push'](_0x19e00e['shift']());}};_0x16f47f(++_0x5af4cd);}(_0x5af4,0xd0));const _0x16f4=function(_0x19e00e,_0x5af4cd){_0x19e00e=_0x19e00e-0x0;let _0x16f47f=_0x5af4[_0x19e00e];return _0x16f47f;};import{Plugin as _0xf26af5}from'ckeditor5/src/core';import{getTranslation as _0x27c442}from'../utils/common-translations';import{getRangesWithAttribute as _0x317481}from'./utils';const Ht=[_0x16f4('0x5'),'ItalicEditing','UnderlineEditing','CodeEditing',_0x16f4('0x1e'),'SubscriptEditing','SuperscriptEditing'];export default class U extends _0xf26af5{[_0x16f4('0x25')](){const _0x5ccc7e=this[_0x16f4('0x24')],_0x2a9bba=_0x5ccc7e['model'],_0x8cf930=_0x5ccc7e[_0x16f4('0x17')]['get'](_0x16f4('0xa')),_0x4c1841=_0x5ccc7e[_0x16f4('0x1d')];for(const _0xfbfbca of Ht){if(!_0x5ccc7e[_0x16f4('0x17')][_0x16f4('0x1c')](_0xfbfbca))continue;const _0x2b5c3d=_0xfbfbca[_0x16f4('0x14')](0x0,-0x7)[_0x16f4('0x18')](),_0xe67ab2=_0x5ccc7e[_0x16f4('0x6')][_0x16f4('0xb')](_0x2b5c3d);_0x8cf930[_0x16f4('0x10')](_0x2b5c3d,(_0x46f108,_0x155007={})=>{const _0x573d1d=_0x2a9bba[_0x16f4('0x19')]['selection'];if(_0x573d1d['isCollapsed'])return void _0x46f108(_0x155007);const _0x4fa9b9=void 0x0!==_0x155007['forceValue']?_0x155007['forceValue']:!_0xe67ab2[_0x16f4('0x12')];_0x2a9bba[_0x16f4('0x9')](()=>{const _0xc7c24e=Array[_0x16f4('0xc')](_0x573d1d[_0x16f4('0xd')]());for(const _0x37daa2 of _0xc7c24e){const _0x24268a=_0x4fa9b9?[_0x37daa2]:_0x317481(_0x2b5c3d,_0x37daa2,_0x2a9bba);for(const _0x3305c6 of _0x24268a)_0x8cf930[_0x16f4('0xf')](_0x3305c6,{'commandName':_0x2b5c3d,'commandParams':[{'forceValue':_0x4fa9b9}]});}});});}function _0x7d297d(_0x379dd4,_0x5c0799){_0x8cf930['_descriptionFactory'][_0x16f4('0x1a')](_0x2d7a9d=>{const {data:_0x16b273}=_0x2d7a9d;if(_0x16b273&&_0x16b273[_0x16f4('0x3')]===_0x379dd4)return _0x16b273[_0x16f4('0x1f')][0x0][_0x16f4('0x0')]?{'type':_0x16f4('0x1'),'content':_0x27c442(_0x4c1841,'*Format:*\x20%0',_0x5c0799)}:{'type':'format','content':_0x27c442(_0x4c1841,_0x16f4('0x21'),_0x5c0799)};});}_0x7d297d(_0x16f4('0x4'),_0x27c442(_0x4c1841,_0x16f4('0x22'))),_0x7d297d(_0x16f4('0xe'),_0x27c442(_0x4c1841,_0x16f4('0x13'))),_0x7d297d(_0x16f4('0x20'),_0x27c442(_0x4c1841,_0x16f4('0x7'))),_0x7d297d(_0x16f4('0x2'),_0x27c442(_0x4c1841,_0x16f4('0x15'))),_0x7d297d(_0x16f4('0x23'),_0x27c442(_0x4c1841,'FORMAT_STRIKETHROUGH')),_0x7d297d(_0x16f4('0x1b'),_0x27c442(_0x4c1841,_0x16f4('0x11'))),_0x7d297d(_0x16f4('0x8'),_0x27c442(_0x4c1841,_0x16f4('0x16')));}}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @module track-changes/integrations/blockquote
3
+ */
4
+ import { Plugin } from 'ckeditor5/src/core';
5
+ /**
6
+ * Provides track changes plugin integration for block quote feature.
7
+ */
8
+ export default class TrackChangesBlockQuote extends Plugin {
9
+ /**
10
+ * @inheritDoc
11
+ */
12
+ afterInit(): void;
13
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x41ab=['ELEMENT_BLOCK_QUOTE','selection','markBlockFormat','has','checkChild','afterInit','plugins','schema','*Format:*\x20%0','commandParams','commandName','commands','_descriptionFactory','BlockQuoteEditing','filter','format','from','model','locale','parent','$root','*Remove\x20format:*\x20%0','get','forceValue','TrackChangesEditing','getSelectedBlocks','name','registerDescriptionCallback','blockQuote','editor'];(function(_0x14cfb7,_0x41abd8){const _0x512c6e=function(_0x2b6dc6){while(--_0x2b6dc6){_0x14cfb7['push'](_0x14cfb7['shift']());}};_0x512c6e(++_0x41abd8);}(_0x41ab,0xbb));const _0x512c=function(_0x14cfb7,_0x41abd8){_0x14cfb7=_0x14cfb7-0x0;let _0x512c6e=_0x41ab[_0x14cfb7];return _0x512c6e;};import{Plugin as _0x240b01}from'ckeditor5/src/core';import{getTranslation as _0x3afaa8}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x1f3006}from'../utils/utils';export default class F extends _0x240b01{[_0x512c('0x1c')](){const _0x15cfb8=this['editor'],_0x92e9de=_0x15cfb8[_0x512c('0xb')];if(!_0x15cfb8[_0x512c('0x1d')][_0x512c('0x1a')](_0x512c('0x6')))return;const _0x47fad3=_0x15cfb8[_0x512c('0x1d')][_0x512c('0xf')](_0x512c('0x11')),_0xeb8993=this[_0x512c('0x16')][_0x512c('0x4')]['get'](_0x512c('0x15'));_0x47fad3['enableCommand'](_0x512c('0x15'),(_0x1aef18,_0x4b8c1a={})=>{const _0x6da7e0=this['editor']['model']['document'][_0x512c('0x18')],_0x470c95=_0x4b8c1a&&void 0x0!==_0x4b8c1a['forceValue']?_0x4b8c1a[_0x512c('0x10')]:!_0xeb8993['value'];let _0x4ba13c=[];if(_0x470c95){const _0x5e04b3=Array[_0x512c('0x9')](_0x6da7e0[_0x512c('0x12')]())[_0x512c('0x7')](_0x2af78e=>Jt(_0x2af78e)||function(_0x4c48c9,_0x239e8b){const _0x180f7b=_0x239e8b[_0x512c('0x1b')](_0x4c48c9['parent'],'blockQuote'),_0x5028c8=_0x239e8b['checkChild']([_0x512c('0xd'),'blockQuote'],_0x4c48c9);return _0x180f7b&&_0x5028c8;}(_0x2af78e,this[_0x512c('0x16')]['model'][_0x512c('0x0')]));_0x4ba13c=_0x1f3006(_0x5e04b3,_0x15cfb8[_0x512c('0xa')]);}else{const _0x345bbc=Array[_0x512c('0x9')](_0x6da7e0[_0x512c('0x12')]())['filter'](_0x480d6f=>Jt(_0x480d6f));_0x4ba13c=_0x1f3006(_0x345bbc,_0x15cfb8[_0x512c('0xa')]);}_0x15cfb8['model']['change'](()=>{for(const _0x1b81d5 of _0x4ba13c)_0x47fad3[_0x512c('0x19')](_0x1b81d5,{'commandName':_0x512c('0x15'),'commandParams':[{'forceValue':_0x470c95}]});});}),_0x47fad3[_0x512c('0x5')][_0x512c('0x14')](_0xe5c4e8=>{const {data:_0x4be866}=_0xe5c4e8;if(_0x4be866&&_0x512c('0x15')==_0x4be866[_0x512c('0x3')]){const _0x1baf50=_0x3afaa8(_0x92e9de,_0x512c('0x17'));return _0x4be866[_0x512c('0x2')][0x0]['forceValue']?{'type':_0x512c('0x8'),'content':_0x3afaa8(_0x92e9de,_0x512c('0x1'),_0x1baf50)}:{'type':'format','content':_0x3afaa8(_0x92e9de,_0x512c('0xe'),_0x1baf50)};}});}}function Jt(_0x4290a2){return _0x512c('0x15')==_0x4290a2[_0x512c('0xc')][_0x512c('0x13')];}
23
+ const _0x45d2=['commandName','has','editor','checkChild','commandParams','selection','forceValue','locale','getSelectedBlocks','from','_descriptionFactory','enableCommand','markBlockFormat','ELEMENT_BLOCK_QUOTE','$root','commands','format','TrackChangesEditing','value','change','afterInit','filter','get','plugins','blockQuote','name','parent','*Remove\x20format:*\x20%0','model','BlockQuoteEditing'];(function(_0x1c396d,_0x45d240){const _0x1cf8a4=function(_0x23a358){while(--_0x23a358){_0x1c396d['push'](_0x1c396d['shift']());}};_0x1cf8a4(++_0x45d240);}(_0x45d2,0xda));const _0x1cf8=function(_0x1c396d,_0x45d240){_0x1c396d=_0x1c396d-0x0;let _0x1cf8a4=_0x45d2[_0x1c396d];return _0x1cf8a4;};import{Plugin as _0x5e1a89}from'ckeditor5/src/core';import{getTranslation as _0x449dbd}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x397f46}from'../utils/utils';export default class j extends _0x5e1a89{[_0x1cf8('0xc')](){const _0x4e1233=this[_0x1cf8('0x18')],_0x5cc8b0=_0x4e1233[_0x1cf8('0x1d')];if(!_0x4e1233[_0x1cf8('0xf')][_0x1cf8('0x17')](_0x1cf8('0x15')))return;const _0x4977d1=_0x4e1233[_0x1cf8('0xf')]['get'](_0x1cf8('0x9')),_0x22f77f=this[_0x1cf8('0x18')][_0x1cf8('0x7')][_0x1cf8('0xe')]('blockQuote');_0x4977d1[_0x1cf8('0x3')]('blockQuote',(_0x250ac2,_0x23c0b2={})=>{const _0x502073=this[_0x1cf8('0x18')][_0x1cf8('0x14')]['document'][_0x1cf8('0x1b')],_0x416fdc=_0x23c0b2&&void 0x0!==_0x23c0b2[_0x1cf8('0x1c')]?_0x23c0b2[_0x1cf8('0x1c')]:!_0x22f77f[_0x1cf8('0xa')];let _0x19deee=[];if(_0x416fdc){const _0x3b5445=Array['from'](_0x502073[_0x1cf8('0x0')]())[_0x1cf8('0xd')](_0x102f1c=>Kt(_0x102f1c)||function(_0x29de6d,_0x5378af){const _0x21fb21=_0x5378af[_0x1cf8('0x19')](_0x29de6d[_0x1cf8('0x12')],_0x1cf8('0x10')),_0xbc23c=_0x5378af[_0x1cf8('0x19')]([_0x1cf8('0x6'),_0x1cf8('0x10')],_0x29de6d);return _0x21fb21&&_0xbc23c;}(_0x102f1c,this[_0x1cf8('0x18')][_0x1cf8('0x14')]['schema']));_0x19deee=_0x397f46(_0x3b5445,_0x4e1233[_0x1cf8('0x14')]);}else{const _0x137fca=Array[_0x1cf8('0x1')](_0x502073[_0x1cf8('0x0')]())[_0x1cf8('0xd')](_0x4566bc=>Kt(_0x4566bc));_0x19deee=_0x397f46(_0x137fca,_0x4e1233['model']);}_0x4e1233[_0x1cf8('0x14')][_0x1cf8('0xb')](()=>{for(const _0xfe8f of _0x19deee)_0x4977d1[_0x1cf8('0x4')](_0xfe8f,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x416fdc}]});});}),_0x4977d1[_0x1cf8('0x2')]['registerDescriptionCallback'](_0x5748d0=>{const {data:_0x11ac89}=_0x5748d0;if(_0x11ac89&&_0x1cf8('0x10')==_0x11ac89[_0x1cf8('0x16')]){const _0x5c198a=_0x449dbd(_0x5cc8b0,_0x1cf8('0x5'));return _0x11ac89[_0x1cf8('0x1a')][0x0]['forceValue']?{'type':_0x1cf8('0x8'),'content':_0x449dbd(_0x5cc8b0,'*Format:*\x20%0',_0x5c198a)}:{'type':_0x1cf8('0x8'),'content':_0x449dbd(_0x5cc8b0,_0x1cf8('0x13'),_0x5c198a)};}});}}function Kt(_0x81be5d){return'blockQuote'==_0x81be5d['parent'][_0x1cf8('0x11')];}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @module track-changes/integrations/ckbox
3
+ */
4
+ import { Plugin } from 'ckeditor5/src/core';
5
+ /**
6
+ * Provides track changes plugin integration for the CKBox feature.
7
+ */
8
+ export default class TrackChangesCKBox extends Plugin {
9
+ /**
10
+ * @inheritDoc
11
+ */
12
+ afterInit(): void;
13
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x500b=['afterInit','commands','TrackChangesEditing','editor','get','plugins','enableCommand','ckbox'];(function(_0x71896b,_0x500bf2){const _0x4296fd=function(_0x51b39a){while(--_0x51b39a){_0x71896b['push'](_0x71896b['shift']());}};_0x4296fd(++_0x500bf2);}(_0x500b,0x81));const _0x4296=function(_0x71896b,_0x500bf2){_0x71896b=_0x71896b-0x0;let _0x4296fd=_0x500b[_0x71896b];return _0x4296fd;};import{Plugin as _0x1f80fa}from'ckeditor5/src/core';export default class P extends _0x1f80fa{[_0x4296('0x7')](){const _0xcf72c9=this[_0x4296('0x2')];_0xcf72c9[_0x4296('0x0')][_0x4296('0x3')](_0x4296('0x6'))&&_0xcf72c9[_0x4296('0x4')][_0x4296('0x3')](_0x4296('0x1'))[_0x4296('0x5')](_0x4296('0x6'));}}
23
+ const _0x1ccd=['commands','editor','TrackChangesEditing','ckbox','afterInit','enableCommand','get','plugins'];(function(_0x561742,_0x1ccd9c){const _0x230879=function(_0x3eb63a){while(--_0x3eb63a){_0x561742['push'](_0x561742['shift']());}};_0x230879(++_0x1ccd9c);}(_0x1ccd,0x1cd));const _0x2308=function(_0x561742,_0x1ccd9c){_0x561742=_0x561742-0x0;let _0x230879=_0x1ccd[_0x561742];return _0x230879;};import{Plugin as _0x5b2539}from'ckeditor5/src/core';export default class E extends _0x5b2539{[_0x2308('0x7')](){const _0x57d28c=this[_0x2308('0x4')];_0x57d28c[_0x2308('0x3')][_0x2308('0x1')](_0x2308('0x6'))&&_0x57d28c[_0x2308('0x2')][_0x2308('0x1')](_0x2308('0x5'))[_0x2308('0x0')](_0x2308('0x6'));}}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @module track-changes/integrations/codeblock
3
+ */
4
+ import { Plugin } from 'ckeditor5/src/core';
5
+ /**
6
+ * Provides track changes plugin integration for code block feature.
7
+ */
8
+ export default class TrackChangesCodeBlock extends Plugin {
9
+ /**
10
+ * @inheritDoc
11
+ */
12
+ afterInit(): void;
13
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3f44=['registerElementLabel','ELEMENT_CODE_BLOCK','commandName','from','locale','_descriptionFactory','config','name','commandParams','isLimit','value','formatBlock','CodeBlock','outdentCodeBlock','parent','get','format','TrackChangesEditing','markBlockFormat','model','commands','registerDescriptionCallback','rootElement','indentCodeBlock','codeBlock','checkChild','language','document','plugins','label','has','enableCommand','filter','*Remove\x20format:*\x20%0','languages','find','getSelectedBlocks','afterInit','forceValue','schema'];(function(_0x4b9ac8,_0x3f440c){const _0x22dc80=function(_0xbcbb68){while(--_0xbcbb68){_0x4b9ac8['push'](_0x4b9ac8['shift']());}};_0x22dc80(++_0x3f440c);}(_0x3f44,0x1a1));const _0x22dc=function(_0x4b9ac8,_0x3f440c){_0x4b9ac8=_0x4b9ac8-0x0;let _0x22dc80=_0x3f44[_0x4b9ac8];return _0x22dc80;};import{Plugin as _0x2f35d3}from'ckeditor5/src/core';import{getTranslation as _0x35e857}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x5cd25b}from'../utils/utils';export default class G extends _0x2f35d3{[_0x22dc('0x14')](){const _0x1e6cdc=this['editor'];if(!_0x1e6cdc[_0x22dc('0xb')][_0x22dc('0xd')](_0x22dc('0x23')))return;const _0x14046b=_0x1e6cdc[_0x22dc('0xb')][_0x22dc('0x26')](_0x22dc('0x0')),_0x571e0a=_0x1e6cdc[_0x22dc('0x1b')],_0x28ffd5=_0x1e6cdc[_0x22dc('0x1d')][_0x22dc('0x26')]('codeBlock')[_0x22dc('0x11')],_0x1b11fe=_0x1e6cdc[_0x22dc('0x3')][_0x22dc('0x26')]('codeBlock');_0x14046b[_0x22dc('0xe')](_0x22dc('0x6')),_0x14046b[_0x22dc('0xe')](_0x22dc('0x24')),_0x14046b[_0x22dc('0xe')]('codeBlock',(_0x537a1b,_0x1b4e0c={})=>{const _0x479e98=_0x1e6cdc[_0x22dc('0x2')],_0x315aba=_0x1e6cdc['model'][_0x22dc('0xa')]['selection'],_0x2e0e6b=_0x1b4e0c&&void 0x0!==_0x1b4e0c[_0x22dc('0x15')]?_0x1b4e0c[_0x22dc('0x15')]:!_0x1b11fe[_0x22dc('0x21')];let _0xeefbad;_0x1b4e0c[_0x22dc('0x9')]||(_0x1b4e0c[_0x22dc('0x9')]=_0x28ffd5[0x0][_0x22dc('0x9')]),_0xeefbad=_0x2e0e6b?Array[_0x22dc('0x1a')](_0x315aba[_0x22dc('0x13')]())[_0x22dc('0xf')](_0x3abcd3=>oo(_0x3abcd3)||function(_0x51fb23,_0x40ab13){if(_0x51fb23['is'](_0x22dc('0x5'))||_0x40ab13[_0x22dc('0x20')](_0x51fb23))return!0x1;return _0x40ab13[_0x22dc('0x8')](_0x51fb23[_0x22dc('0x25')],_0x22dc('0x7'));}(_0x3abcd3,_0x479e98[_0x22dc('0x16')])):Array['from'](_0x315aba[_0x22dc('0x13')]())[_0x22dc('0xf')](_0xcc264a=>oo(_0xcc264a));const _0x4dce47=_0x5cd25b(_0xeefbad,_0x479e98);_0x479e98['change'](()=>{for(const _0x4277ea of _0x4dce47)_0x14046b[_0x22dc('0x1')](_0x4277ea,{'commandName':_0x22dc('0x7'),'commandParams':[{..._0x1b4e0c,'forceValue':_0x2e0e6b}],'formatGroupId':'blockName'});});}),(_0x14046b[_0x22dc('0x1c')][_0x22dc('0x17')](_0x22dc('0x7'),_0x5adb76=>_0x35e857(_0x571e0a,'ELEMENT_CODE_BLOCK',_0x5adb76)),_0x14046b[_0x22dc('0x1c')][_0x22dc('0x4')](_0x216d00=>{const {type:_0x12375c,data:_0x1f62ae}=_0x216d00;if(_0x22dc('0x22')==_0x12375c&&_0x1f62ae&&_0x22dc('0x7')==_0x1f62ae[_0x22dc('0x19')]){const _0x3d4149=_0x1f62ae[_0x22dc('0x1f')][0x0]['language'],_0x5ce35e=_0x28ffd5[_0x22dc('0x12')](_0x21a7f7=>_0x21a7f7[_0x22dc('0x9')]===_0x3d4149)[_0x22dc('0xc')],_0x532df0=_0x571e0a['_t'](_0x5ce35e);return _0x1f62ae[_0x22dc('0x1f')][0x0][_0x22dc('0x15')]?{'type':_0x22dc('0x27'),'content':_0x35e857(_0x571e0a,'*Format:*\x20%0',_0x35e857(_0x571e0a,_0x22dc('0x18'),0x1)+'\x20('+_0x532df0+')')}:{'type':_0x22dc('0x27'),'content':_0x35e857(_0x571e0a,_0x22dc('0x10'),_0x35e857(_0x571e0a,_0x22dc('0x18'),0x1))};}}));}}function oo(_0x54fa0a){return _0x22dc('0x7')==_0x54fa0a[_0x22dc('0x1e')];}
23
+ const _0x385b=['label','_descriptionFactory','editor','CodeBlock','config','TrackChangesEditing','selection','locale','registerElementLabel','*Remove\x20format:*\x20%0','parent','registerDescriptionCallback','schema','enableCommand','format','forceValue','blockName','isLimit','model','codeBlock','getSelectedBlocks','indentCodeBlock','get','language','change','outdentCodeBlock','plugins','ELEMENT_CODE_BLOCK','document','filter','from','languages','afterInit','name','commandParams','find','commandName','has'];(function(_0x27ba01,_0x385b6e){const _0x599e12=function(_0x6135a0){while(--_0x6135a0){_0x27ba01['push'](_0x27ba01['shift']());}};_0x599e12(++_0x385b6e);}(_0x385b,0x10b));const _0x599e=function(_0x27ba01,_0x385b6e){_0x27ba01=_0x27ba01-0x0;let _0x599e12=_0x385b[_0x27ba01];return _0x599e12;};import{Plugin as _0x25b7b5}from'ckeditor5/src/core';import{getTranslation as _0x49c88a}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x10293b}from'../utils/utils';export default class O extends _0x25b7b5{[_0x599e('0x1f')](){const _0x2b9195=this[_0x599e('0x1')];if(!_0x2b9195[_0x599e('0x19')][_0x599e('0x24')](_0x599e('0x2')))return;const _0x5dbb98=_0x2b9195['plugins'][_0x599e('0x15')](_0x599e('0x4')),_0x30ef11=_0x2b9195[_0x599e('0x6')],_0x185578=_0x2b9195[_0x599e('0x3')]['get']('codeBlock')[_0x599e('0x1e')],_0x433fda=_0x2b9195['commands']['get']('codeBlock');_0x5dbb98[_0x599e('0xc')](_0x599e('0x14')),_0x5dbb98[_0x599e('0xc')](_0x599e('0x18')),_0x5dbb98['enableCommand'](_0x599e('0x12'),(_0x96fc37,_0x4d7acf={})=>{const _0x26dda5=_0x2b9195[_0x599e('0x11')],_0x34a273=_0x2b9195[_0x599e('0x11')][_0x599e('0x1b')][_0x599e('0x5')],_0x36da16=_0x4d7acf&&void 0x0!==_0x4d7acf[_0x599e('0xe')]?_0x4d7acf['forceValue']:!_0x433fda['value'];let _0x41b202;_0x4d7acf[_0x599e('0x16')]||(_0x4d7acf['language']=_0x185578[0x0][_0x599e('0x16')]),_0x41b202=_0x36da16?Array[_0x599e('0x1d')](_0x34a273[_0x599e('0x13')]())['filter'](_0x190b19=>to(_0x190b19)||function(_0x3046f3,_0x513a66){if(_0x3046f3['is']('rootElement')||_0x513a66[_0x599e('0x10')](_0x3046f3))return!0x1;return _0x513a66['checkChild'](_0x3046f3[_0x599e('0x9')],_0x599e('0x12'));}(_0x190b19,_0x26dda5[_0x599e('0xb')])):Array[_0x599e('0x1d')](_0x34a273['getSelectedBlocks']())[_0x599e('0x1c')](_0x5827c4=>to(_0x5827c4));const _0x14b76f=_0x10293b(_0x41b202,_0x26dda5);_0x26dda5[_0x599e('0x17')](()=>{for(const _0x31c5cc of _0x14b76f)_0x5dbb98['markBlockFormat'](_0x31c5cc,{'commandName':_0x599e('0x12'),'commandParams':[{..._0x4d7acf,'forceValue':_0x36da16}],'formatGroupId':_0x599e('0xf')});});}),(_0x5dbb98[_0x599e('0x0')][_0x599e('0x7')](_0x599e('0x12'),_0x71af95=>_0x49c88a(_0x30ef11,_0x599e('0x1a'),_0x71af95)),_0x5dbb98[_0x599e('0x0')][_0x599e('0xa')](_0x1b4732=>{const _0x49cca4=_0x30ef11['t'],{type:_0x3d5d20,data:_0x4d3b96}=_0x1b4732;if('formatBlock'==_0x3d5d20&&_0x4d3b96&&'codeBlock'==_0x4d3b96[_0x599e('0x23')]){const _0x204476=_0x4d3b96[_0x599e('0x21')][0x0][_0x599e('0x16')],_0x2d591d=_0x49cca4(_0x185578[_0x599e('0x22')](_0x4f99cc=>_0x4f99cc[_0x599e('0x16')]===_0x204476)[_0x599e('0x25')]);return _0x4d3b96[_0x599e('0x21')][0x0][_0x599e('0xe')]?{'type':_0x599e('0xd'),'content':_0x49c88a(_0x30ef11,'*Format:*\x20%0',_0x49c88a(_0x30ef11,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2d591d+')')}:{'type':'format','content':_0x49c88a(_0x30ef11,_0x599e('0x8'),_0x49c88a(_0x30ef11,'ELEMENT_CODE_BLOCK',0x1))};}}));}}function to(_0x39427e){return'codeBlock'==_0x39427e[_0x599e('0x20')];}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @module track-changes/integrations/comments
3
+ */
4
+ import { Plugin } from 'ckeditor5/src/core';
5
+ /**
6
+ * Provides track changes plugin integration for {@link module:comments/comments~Comments comments feature}.
7
+ */
8
+ export default class TrackChangesComments extends Plugin {
9
+ afterInit(): void;
10
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4b03=['enableCommand','afterInit','has','plugins','editor'];(function(_0x2f0f4b,_0x4b0388){const _0x22c699=function(_0x467480){while(--_0x467480){_0x2f0f4b['push'](_0x2f0f4b['shift']());}};_0x22c699(++_0x4b0388);}(_0x4b03,0x129));const _0x22c6=function(_0x2f0f4b,_0x4b0388){_0x2f0f4b=_0x2f0f4b-0x0;let _0x22c699=_0x4b03[_0x2f0f4b];return _0x22c699;};import{Plugin as _0x222d24}from'ckeditor5/src/core';export default class L extends _0x222d24{[_0x22c6('0x4')](){const _0x4e570a=this[_0x22c6('0x2')];if(!_0x4e570a['plugins'][_0x22c6('0x0')]('CommentsEditing'))return;_0x4e570a[_0x22c6('0x1')]['get']('TrackChangesEditing')[_0x22c6('0x3')]('addCommentThread');}}
23
+ const _0x1d2d=['afterInit','CommentsEditing','has','addCommentThread','plugins','enableCommand','editor'];(function(_0x133789,_0x1d2d64){const _0x3f8014=function(_0x1f30d3){while(--_0x1f30d3){_0x133789['push'](_0x133789['shift']());}};_0x3f8014(++_0x1d2d64);}(_0x1d2d,0xb4));const _0x3f80=function(_0x133789,_0x1d2d64){_0x133789=_0x133789-0x0;let _0x3f8014=_0x1d2d[_0x133789];return _0x3f8014;};import{Plugin as _0x2cc8f4}from'ckeditor5/src/core';export default class F extends _0x2cc8f4{[_0x3f80('0x2')](){const _0x1c3713=this[_0x3f80('0x1')];if(!_0x1c3713['plugins'][_0x3f80('0x4')](_0x3f80('0x3')))return;_0x1c3713[_0x3f80('0x6')]['get']('TrackChangesEditing')[_0x3f80('0x0')](_0x3f80('0x5'));}}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @module track-changes/integrations/deletecommand
3
+ */
4
+ import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
5
+ /**
6
+ * Provides track changes plugin integration for {@link module:typing/inputcommand~DeleteCommand delete command}. Also
7
+ * provides integration {@link module:engine/model/model~Model#deleteContent} as many features use it internally.
8
+ */
9
+ export default class TrackChangesDeleteCommand extends Plugin {
10
+ static get requires(): PluginDependencies;
11
+ init(): void;
12
+ }