@ckeditor/ckeditor5-track-changes 36.0.1 → 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 +20 -5
  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.1",
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.1",
44
+ "ckeditor5": "^37.0.0-rc.0",
31
45
  "ckeditor5-collaboration": "^36.0.1",
32
- "lodash-es": "^4.17.11",
33
- "@ckeditor/ckeditor5-style": "^36.0.1"
34
- }
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 _0x4970=['TrackChangesEditing','plugins','refresh','isEnabled','track-changes-accept-suggestion-not-found','_suggestions','get','acceptSuggestion'];(function(_0x301d8f,_0x497092){const _0x2bbedc=function(_0x395118){while(--_0x395118){_0x301d8f['push'](_0x301d8f['shift']());}};_0x2bbedc(++_0x497092);}(_0x4970,0x12e));const _0x2bbe=function(_0x301d8f,_0x497092){_0x301d8f=_0x301d8f-0x0;let _0x2bbedc=_0x4970[_0x301d8f];return _0x2bbedc;};import{Command as _0x519a90}from'ckeditor5/src/core';import{CKEditorError as _0x24c263}from'ckeditor5/src/utils';export default class R extends _0x519a90{constructor(_0x5ca0c7,_0x2500c5){super(_0x5ca0c7),this[_0x2bbe('0x7')]=_0x2500c5,this[_0x2bbe('0x4')]();}[_0x2bbe('0x4')](){this[_0x2bbe('0x5')]=!0x0;}['execute'](_0x5c864d){const _0x58f84d=this[_0x2bbe('0x7')]['get'](_0x5c864d);if(!_0x58f84d)throw new _0x24c263(_0x2bbe('0x6'),this);this['editor'][_0x2bbe('0x3')][_0x2bbe('0x0')](_0x2bbe('0x2'))[_0x2bbe('0x1')](_0x58f84d);}}
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 _0x3896=['plugins','TrackChangesEditing','_suggestions','editor','discardSuggestion','execute','isEnabled'];(function(_0x15d713,_0x38960b){const _0x3fdcd5=function(_0x3db46f){while(--_0x3db46f){_0x15d713['push'](_0x15d713['shift']());}};_0x3fdcd5(++_0x38960b);}(_0x3896,0xbf));const _0x3fdc=function(_0x15d713,_0x38960b){_0x15d713=_0x15d713-0x0;let _0x3fdcd5=_0x3896[_0x15d713];return _0x3fdcd5;};import{Command as _0x4f131f}from'ckeditor5/src/core';import{CKEditorError as _0x547b73}from'ckeditor5/src/utils';export default class x extends _0x4f131f{constructor(_0x6b306c,_0x436bc0){super(_0x6b306c),this[_0x3fdc('0x0')]=_0x436bc0,this['refresh']();}['refresh'](){this[_0x3fdc('0x4')]=!0x0;}[_0x3fdc('0x3')](_0x3ba1f6){const _0x5bcffd=this[_0x3fdc('0x0')]['get'](_0x3ba1f6);if(!_0x5bcffd)throw new _0x547b73('track-changes-discard-suggestion-not-found',this);this[_0x3fdc('0x1')][_0x3fdc('0x5')]['get'](_0x3fdc('0x6'))[_0x3fdc('0x2')](_0x5bcffd);}}
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 _0x49a0=['isEnabled','some','from','refresh','editor','_command','_suggestions','values'];(function(_0x3d4019,_0x49a01d){const _0xcaacbf=function(_0x5de4f0){while(--_0x5de4f0){_0x3d4019['push'](_0x3d4019['shift']());}};_0xcaacbf(++_0x49a01d);}(_0x49a0,0x165));const _0xcaac=function(_0x3d4019,_0x49a01d){_0x3d4019=_0x3d4019-0x0;let _0xcaacbf=_0x49a0[_0x3d4019];return _0xcaacbf;};import{Command as _0x5bec75}from'ckeditor5/src/core';import{sortSuggestions as _0x35ac49,executeCommandForSuggestions as _0x2b2724}from'../utils/utils';export default class U extends _0x5bec75{constructor(_0x5c099a,_0x518a36,_0x378acc){super(_0x5c099a),this[_0xcaac('0x0')]=_0x518a36,this[_0xcaac('0x1')]=_0x378acc,this[_0xcaac('0x6')]();}[_0xcaac('0x6')](){const _0x5897dd=Array[_0xcaac('0x5')](this[_0xcaac('0x1')]['values']())[_0xcaac('0x4')](_0x1589c0=>_0x1589c0['isInContent']);this[_0xcaac('0x3')]=this[_0xcaac('0x0')][_0xcaac('0x3')]&&_0x5897dd;}['execute'](){const _0x107e4f=_0x35ac49(Array[_0xcaac('0x5')](this[_0xcaac('0x1')][_0xcaac('0x2')]()));_0x2b2724(this[_0xcaac('0x7')]['model'],this[_0xcaac('0x0')],_0x107e4f);}}
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 _0x1e54=['document','_suggestions','selection','_command','isEnabled','refresh','_selectedSuggestions','editor','values','model','from','execute'];(function(_0x1589ed,_0x1e54bc){const _0x57b53a=function(_0x248856){while(--_0x248856){_0x1589ed['push'](_0x1589ed['shift']());}};_0x57b53a(++_0x1e54bc);}(_0x1e54,0xbe));const _0x57b5=function(_0x1589ed,_0x1e54bc){_0x1589ed=_0x1589ed-0x0;let _0x57b53a=_0x1e54[_0x1589ed];return _0x57b53a;};import{Command as _0x2c6b3f}from'ckeditor5/src/core';import{sortSuggestions as _0x50493c,getSelectedSuggestions as _0x163a98,executeCommandForSuggestions as _0x91975e}from'../utils/utils';export default class j extends _0x2c6b3f{constructor(_0x2e893f,_0x464b8e,_0x2a5f09){super(_0x2e893f),this[_0x57b5('0x5')]=_0x464b8e,this[_0x57b5('0x3')]=_0x2a5f09,this[_0x57b5('0x8')]=new Set(),this['refresh']();}[_0x57b5('0x7')](){const _0x35986a=this['editor']['model'][_0x57b5('0x2')][_0x57b5('0x4')],_0x9c3817=Array[_0x57b5('0x0')](this[_0x57b5('0x3')][_0x57b5('0xa')]());this[_0x57b5('0x8')]=_0x163a98(_0x35986a,_0x9c3817),this[_0x57b5('0x6')]=this[_0x57b5('0x5')][_0x57b5('0x6')]&&!!this['_selectedSuggestions']['size'];}[_0x57b5('0x1')](){const _0x187c00=_0x50493c(Array[_0x57b5('0x0')](this[_0x57b5('0x8')]));_0x91975e(this[_0x57b5('0x9')][_0x57b5('0xb')],this['_command'],_0x187c00);}}
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 _0x211b=['_disableUnsupportedCommands','editor','TrackChangesCommand','execute','_enabledCommands','affectsData','has','clearForceDisabled','_enableCommands','value','commands','refresh','isEnabled'];(function(_0x2cf87b,_0x211bff){const _0x214fbf=function(_0x52eba4){while(--_0x52eba4){_0x2cf87b['push'](_0x2cf87b['shift']());}};_0x214fbf(++_0x211bff);}(_0x211b,0x121));const _0x214f=function(_0x2cf87b,_0x211bff){_0x2cf87b=_0x2cf87b-0x0;let _0x214fbf=_0x211b[_0x2cf87b];return _0x214fbf;};import{Command as _0x4d0658}from'ckeditor5/src/core';export default class N extends _0x4d0658{constructor(_0x568464,_0x548063){super(_0x568464),this[_0x214f('0x1')]=_0x548063,this[_0x214f('0x6')]=!0x1,this[_0x214f('0x8')]();}[_0x214f('0x8')](){this[_0x214f('0x9')]=!0x0;}[_0x214f('0x0')](){this[_0x214f('0x6')]=!this[_0x214f('0x6')],this['value']?this[_0x214f('0xa')]():this['_enableCommands']();}[_0x214f('0xa')](){for(const _0x12b3b0 of this[_0x214f('0xb')]['commands'][_0x214f('0x7')]())_0x12b3b0[_0x214f('0x2')]&&!this[_0x214f('0x1')][_0x214f('0x3')](_0x12b3b0)&&_0x12b3b0['forceDisabled'](_0x214f('0xc'));}[_0x214f('0x5')](){for(const _0x22f201 of this[_0x214f('0xb')]['commands'][_0x214f('0x7')]())_0x22f201[_0x214f('0x2')]&&!this[_0x214f('0x1')]['has'](_0x22f201)&&_0x22f201[_0x214f('0x4')]('TrackChangesCommand');}}
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 _0x3a54=['_descriptionFactory','schema','alignment','getSelectedBlocks','*Format:*\x20%0','AlignmentEditing','center','plugins','filter','FORMAT_JUSTIFY_TEXT','afterInit','contentLanguageDirection','model','value','FORMAT_ALIGN_TO_CENTER','FORMAT_ALIGN_TO_LEFT','change','getAttribute','markBlockFormat','selection','document','enableCommand','commandParams','format','checkAttribute','justify','left','has','locale'];(function(_0x2d4251,_0x3a54c0){const _0x1dd586=function(_0x27d009){while(--_0x27d009){_0x2d4251['push'](_0x2d4251['shift']());}};_0x1dd586(++_0x3a54c0);}(_0x3a54,0x122));const _0x1dd5=function(_0x2d4251,_0x3a54c0){_0x2d4251=_0x2d4251-0x0;let _0x1dd586=_0x3a54[_0x2d4251];return _0x1dd586;};import{Plugin as _0x45e33f}from'ckeditor5/src/core';import{getTranslation as _0x5aa246}from'../utils/common-translations';export default class E extends _0x45e33f{[_0x1dd5('0xa')](){const _0x20de61=this['editor'],_0x5758cf=_0x20de61[_0x1dd5('0x1c')];if(!_0x20de61[_0x1dd5('0x7')][_0x1dd5('0x1b')](_0x1dd5('0x5')))return;const _0xf35ff0=_0x20de61[_0x1dd5('0x7')]['get']('TrackChangesEditing');_0xf35ff0[_0x1dd5('0x15')]('alignment',(_0x1ae56a,_0x4d1844={})=>{let _0x274477=_0x4d1844[_0x1dd5('0xd')];_0x4d1844[_0x1dd5('0xd')]||(_0x274477='ltr'===_0x20de61[_0x1dd5('0x1c')][_0x1dd5('0xb')]?_0x1dd5('0x1a'):'right');const _0x3af692=Array['from'](this['editor']['model'][_0x1dd5('0x14')][_0x1dd5('0x13')][_0x1dd5('0x3')]())[_0x1dd5('0x8')](_0x3b73a1=>function(_0x8df57d,_0x3c03f6,_0x2991f2){const _0x6f1115=_0x8df57d[_0x1dd5('0x11')](_0x1dd5('0x2'))||null;return _0x3c03f6[_0x1dd5('0x18')](_0x8df57d,'alignment')&&_0x2991f2!=_0x6f1115;}(_0x3b73a1,this['editor'][_0x1dd5('0xc')][_0x1dd5('0x1')],_0x274477));_0x20de61['model'][_0x1dd5('0x10')](()=>{for(const _0xec75e of _0x3af692)_0xf35ff0[_0x1dd5('0x12')](_0xec75e,{'commandName':'alignment','commandParams':[{'value':_0x274477}]});});}),_0xf35ff0[_0x1dd5('0x0')]['registerDescriptionCallback'](_0x55070d=>{const {data:_0x30866d}=_0x55070d;if(_0x30866d&&_0x1dd5('0x2')==_0x30866d['commandName']){const _0x3ffbcd=_0x30866d[_0x1dd5('0x16')][0x0][_0x1dd5('0xd')];return{'type':_0x1dd5('0x17'),'content':_0x5aa246(_0x5758cf,_0x1dd5('0x4'),function(_0x1a8317){switch(_0x1a8317){case _0x1dd5('0x1a'):return _0x5aa246(_0x5758cf,_0x1dd5('0xf'));case'right':return _0x5aa246(_0x5758cf,'FORMAT_ALIGN_TO_RIGHT');case _0x1dd5('0x6'):return _0x5aa246(_0x5758cf,_0x1dd5('0xe'));case _0x1dd5('0x19'):return _0x5aa246(_0x5758cf,_0x1dd5('0x9'));}}(_0x3ffbcd))};}});}}
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 _0x2917=['FORMAT_CODE','isCollapsed','FORMAT_BOLD','FORMAT_SUPERSCRIPT','code','enableCommand','get','StrikethroughEditing','registerDescriptionCallback','UnderlineEditing','*Format:*\x20%0','forceValue','underline','format','toLowerCase','commandName','_descriptionFactory','model','commandParams','getRanges','value','ItalicEditing','selection','italic','FORMAT_UNDERLINE','TrackChangesEditing','has','FORMAT_ITALIC','plugins','subscript','markInlineFormat','from','*Remove\x20format:*\x20%0'];(function(_0x2bed9e,_0x291761){const _0x368f9c=function(_0x18b676){while(--_0x18b676){_0x2bed9e['push'](_0x2bed9e['shift']());}};_0x368f9c(++_0x291761);}(_0x2917,0x11c));const _0x368f=function(_0x2bed9e,_0x291761){_0x2bed9e=_0x2bed9e-0x0;let _0x368f9c=_0x2917[_0x2bed9e];return _0x368f9c;};import{Plugin as _0x102e63}from'ckeditor5/src/core';import{getTranslation as _0x518a05}from'../utils/common-translations';import{getRangesWithAttribute as _0x43c64e}from'./utils';const Kt=['BoldEditing',_0x368f('0x1'),_0x368f('0x16'),'CodeEditing',_0x368f('0x14'),'SubscriptEditing','SuperscriptEditing'];export default class O extends _0x102e63{['afterInit'](){const _0x5a1032=this['editor'],_0x4f9a8e=_0x5a1032[_0x368f('0x1e')],_0x5a511a=_0x5a1032[_0x368f('0x8')][_0x368f('0x13')](_0x368f('0x5')),_0x3ad0f4=_0x5a1032['locale'];for(const _0x5ade5d of Kt){if(!_0x5a1032[_0x368f('0x8')][_0x368f('0x6')](_0x5ade5d))continue;const _0x2fa4cb=_0x5ade5d['slice'](0x0,-0x7)[_0x368f('0x1b')](),_0x489633=_0x5a1032['commands']['get'](_0x2fa4cb);_0x5a511a[_0x368f('0x12')](_0x2fa4cb,(_0x164ddd,_0xbb09c6={})=>{const _0x7c918d=_0x4f9a8e['document'][_0x368f('0x2')];if(_0x7c918d[_0x368f('0xe')])return void _0x164ddd(_0xbb09c6);const _0x5c208d=void 0x0!==_0xbb09c6[_0x368f('0x18')]?_0xbb09c6[_0x368f('0x18')]:!_0x489633[_0x368f('0x0')];_0x4f9a8e['change'](()=>{const _0x5ea150=Array[_0x368f('0xb')](_0x7c918d[_0x368f('0x20')]());for(const _0x18aaab of _0x5ea150){const _0x1a6a1e=_0x5c208d?[_0x18aaab]:_0x43c64e(_0x2fa4cb,_0x18aaab,_0x4f9a8e);for(const _0x4bc6fb of _0x1a6a1e)_0x5a511a[_0x368f('0xa')](_0x4bc6fb,{'commandName':_0x2fa4cb,'commandParams':[{'forceValue':_0x5c208d}]});}});});}function _0x116502(_0x511ac2,_0x3208bc){_0x5a511a[_0x368f('0x1d')][_0x368f('0x15')](_0x334c0f=>{const {data:_0x34c96c}=_0x334c0f;if(_0x34c96c&&_0x34c96c[_0x368f('0x1c')]===_0x511ac2)return _0x34c96c[_0x368f('0x1f')][0x0][_0x368f('0x18')]?{'type':'format','content':_0x518a05(_0x3ad0f4,_0x368f('0x17'),_0x3208bc)}:{'type':_0x368f('0x1a'),'content':_0x518a05(_0x3ad0f4,_0x368f('0xc'),_0x3208bc)};});}_0x116502('bold',_0x518a05(_0x3ad0f4,_0x368f('0xf'))),_0x116502(_0x368f('0x3'),_0x518a05(_0x3ad0f4,_0x368f('0x7'))),_0x116502(_0x368f('0x19'),_0x518a05(_0x3ad0f4,_0x368f('0x4'))),_0x116502(_0x368f('0x11'),_0x518a05(_0x3ad0f4,_0x368f('0xd'))),_0x116502('strikethrough',_0x518a05(_0x3ad0f4,'FORMAT_STRIKETHROUGH')),_0x116502(_0x368f('0x9'),_0x518a05(_0x3ad0f4,'FORMAT_SUBSCRIPT')),_0x116502('superscript',_0x518a05(_0x3ad0f4,_0x368f('0x10')));}}
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 _0x1b4c=['checkChild','*Format:*\x20%0','parent','has','*Remove\x20format:*\x20%0','schema','selection','commandName','blockQuote','editor','enableCommand','_descriptionFactory','forceValue','get','commandParams','TrackChangesEditing','format','from','ELEMENT_BLOCK_QUOTE','document','BlockQuoteEditing','filter','plugins','commands','getSelectedBlocks','model','locale'];(function(_0x3605fd,_0x1b4c0c){const _0x2eef24=function(_0x167bbb){while(--_0x167bbb){_0x3605fd['push'](_0x3605fd['shift']());}};_0x2eef24(++_0x1b4c0c);}(_0x1b4c,0x147));const _0x2eef=function(_0x3605fd,_0x1b4c0c){_0x3605fd=_0x3605fd-0x0;let _0x2eef24=_0x1b4c[_0x3605fd];return _0x2eef24;};import{Plugin as _0x1e977b}from'ckeditor5/src/core';import{getTranslation as _0x671534}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x17ad2e}from'../utils/utils';export default class F extends _0x1e977b{['afterInit'](){const _0x160446=this['editor'],_0x11e408=_0x160446[_0x2eef('0x17')];if(!_0x160446[_0x2eef('0x13')][_0x2eef('0x0')](_0x2eef('0x11')))return;const _0x449bf5=_0x160446[_0x2eef('0x13')][_0x2eef('0xa')](_0x2eef('0xc')),_0x51103b=this[_0x2eef('0x6')][_0x2eef('0x14')]['get'](_0x2eef('0x5'));_0x449bf5[_0x2eef('0x7')]('blockQuote',(_0x546122,_0x14f327={})=>{const _0x3b8ac1=this[_0x2eef('0x6')][_0x2eef('0x16')][_0x2eef('0x10')][_0x2eef('0x3')],_0x219f28=_0x14f327&&void 0x0!==_0x14f327['forceValue']?_0x14f327[_0x2eef('0x9')]:!_0x51103b['value'];let _0x1fe443=[];if(_0x219f28){const _0x5a992d=Array[_0x2eef('0xe')](_0x3b8ac1[_0x2eef('0x15')]())['filter'](_0x181630=>Jt(_0x181630)||function(_0xeca325,_0x20a7f4){const _0x1c20fc=_0x20a7f4[_0x2eef('0x18')](_0xeca325[_0x2eef('0x1a')],_0x2eef('0x5')),_0x20c7e4=_0x20a7f4[_0x2eef('0x18')](['$root',_0x2eef('0x5')],_0xeca325);return _0x1c20fc&&_0x20c7e4;}(_0x181630,this[_0x2eef('0x6')][_0x2eef('0x16')][_0x2eef('0x2')]));_0x1fe443=_0x17ad2e(_0x5a992d,_0x160446[_0x2eef('0x16')]);}else{const _0x4fcb89=Array[_0x2eef('0xe')](_0x3b8ac1[_0x2eef('0x15')]())[_0x2eef('0x12')](_0x35236b=>Jt(_0x35236b));_0x1fe443=_0x17ad2e(_0x4fcb89,_0x160446[_0x2eef('0x16')]);}_0x160446['model']['change'](()=>{for(const _0x495396 of _0x1fe443)_0x449bf5['markBlockFormat'](_0x495396,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x219f28}]});});}),_0x449bf5[_0x2eef('0x8')]['registerDescriptionCallback'](_0x3fb95e=>{const {data:_0x5a2b10}=_0x3fb95e;if(_0x5a2b10&&_0x2eef('0x5')==_0x5a2b10[_0x2eef('0x4')]){const _0x3ed595=_0x671534(_0x11e408,_0x2eef('0xf'));return _0x5a2b10[_0x2eef('0xb')][0x0][_0x2eef('0x9')]?{'type':'format','content':_0x671534(_0x11e408,_0x2eef('0x19'),_0x3ed595)}:{'type':_0x2eef('0xd'),'content':_0x671534(_0x11e408,_0x2eef('0x1'),_0x3ed595)};}});}}function Jt(_0x28df61){return _0x2eef('0x5')==_0x28df61[_0x2eef('0x1a')]['name'];}
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 _0x4f0a=['editor','enableCommand','commands','get','plugins','ckbox','afterInit'];(function(_0xd9e9e5,_0x4f0acd){const _0x542ca6=function(_0x4a33d6){while(--_0x4a33d6){_0xd9e9e5['push'](_0xd9e9e5['shift']());}};_0x542ca6(++_0x4f0acd);}(_0x4f0a,0x9d));const _0x542c=function(_0xd9e9e5,_0x4f0acd){_0xd9e9e5=_0xd9e9e5-0x0;let _0x542ca6=_0x4f0a[_0xd9e9e5];return _0x542ca6;};import{Plugin as _0x447dc1}from'ckeditor5/src/core';export default class P extends _0x447dc1{[_0x542c('0x3')](){const _0x26d7c9=this[_0x542c('0x4')];_0x26d7c9[_0x542c('0x6')][_0x542c('0x0')](_0x542c('0x2'))&&_0x26d7c9[_0x542c('0x1')]['get']('TrackChangesEditing')[_0x542c('0x5')]('ckbox');}}
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 _0x50de=['config','ELEMENT_CODE_BLOCK','registerElementLabel','value','from','*Format:*\x20%0','formatBlock','codeBlock','filter','CodeBlock','registerDescriptionCallback','forceValue','model','outdentCodeBlock','languages','commandParams','rootElement','schema','format','find','blockName','get','_descriptionFactory','has','plugins','getSelectedBlocks','document','label','enableCommand','*Remove\x20format:*\x20%0','TrackChangesEditing','selection','language','indentCodeBlock'];(function(_0x368a55,_0x50de59){const _0x20aea7=function(_0x31ec41){while(--_0x31ec41){_0x368a55['push'](_0x368a55['shift']());}};_0x20aea7(++_0x50de59);}(_0x50de,0x149));const _0x20ae=function(_0x368a55,_0x50de59){_0x368a55=_0x368a55-0x0;let _0x20aea7=_0x50de[_0x368a55];return _0x20aea7;};import{Plugin as _0x31ed5f}from'ckeditor5/src/core';import{getTranslation as _0x38d278}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x208656}from'../utils/utils';export default class G extends _0x31ed5f{['afterInit'](){const _0x34d95b=this['editor'];if(!_0x34d95b['plugins'][_0x20ae('0x0')](_0x20ae('0x14')))return;const _0x1d349e=_0x34d95b[_0x20ae('0x1')]['get'](_0x20ae('0x7')),_0x3f5034=_0x34d95b['locale'],_0x26b393=_0x34d95b[_0x20ae('0xb')][_0x20ae('0x20')](_0x20ae('0x12'))[_0x20ae('0x19')],_0xd81c82=_0x34d95b['commands'][_0x20ae('0x20')](_0x20ae('0x12'));_0x1d349e[_0x20ae('0x5')](_0x20ae('0xa')),_0x1d349e[_0x20ae('0x5')](_0x20ae('0x18')),_0x1d349e[_0x20ae('0x5')](_0x20ae('0x12'),(_0x2fa085,_0x431ec4={})=>{const _0x4e6386=_0x34d95b['model'],_0x2ed964=_0x34d95b[_0x20ae('0x17')][_0x20ae('0x3')][_0x20ae('0x8')],_0x199a45=_0x431ec4&&void 0x0!==_0x431ec4[_0x20ae('0x16')]?_0x431ec4['forceValue']:!_0xd81c82[_0x20ae('0xe')];let _0xd083b9;_0x431ec4[_0x20ae('0x9')]||(_0x431ec4[_0x20ae('0x9')]=_0x26b393[0x0][_0x20ae('0x9')]),_0xd083b9=_0x199a45?Array['from'](_0x2ed964[_0x20ae('0x2')]())[_0x20ae('0x13')](_0x48d4ec=>oo(_0x48d4ec)||function(_0xeac1db,_0x362eec){if(_0xeac1db['is'](_0x20ae('0x1b'))||_0x362eec['isLimit'](_0xeac1db))return!0x1;return _0x362eec['checkChild'](_0xeac1db['parent'],_0x20ae('0x12'));}(_0x48d4ec,_0x4e6386[_0x20ae('0x1c')])):Array[_0x20ae('0xf')](_0x2ed964['getSelectedBlocks']())[_0x20ae('0x13')](_0x5dcef8=>oo(_0x5dcef8));const _0x271d6a=_0x208656(_0xd083b9,_0x4e6386);_0x4e6386['change'](()=>{for(const _0x26366f of _0x271d6a)_0x1d349e['markBlockFormat'](_0x26366f,{'commandName':'codeBlock','commandParams':[{..._0x431ec4,'forceValue':_0x199a45}],'formatGroupId':_0x20ae('0x1f')});});}),(_0x1d349e[_0x20ae('0x21')][_0x20ae('0xd')](_0x20ae('0x12'),_0x466cdb=>_0x38d278(_0x3f5034,_0x20ae('0xc'),_0x466cdb)),_0x1d349e[_0x20ae('0x21')][_0x20ae('0x15')](_0x56ab75=>{const {type:_0xf1319f,data:_0xcd4a7a}=_0x56ab75;if(_0x20ae('0x11')==_0xf1319f&&_0xcd4a7a&&'codeBlock'==_0xcd4a7a['commandName']){const _0x1796e0=_0xcd4a7a[_0x20ae('0x1a')][0x0]['language'],_0x4a914d=_0x26b393[_0x20ae('0x1e')](_0x103ee1=>_0x103ee1[_0x20ae('0x9')]===_0x1796e0)[_0x20ae('0x4')],_0x25fffc=_0x3f5034['_t'](_0x4a914d);return _0xcd4a7a[_0x20ae('0x1a')][0x0]['forceValue']?{'type':_0x20ae('0x1d'),'content':_0x38d278(_0x3f5034,_0x20ae('0x10'),_0x38d278(_0x3f5034,_0x20ae('0xc'),0x1)+'\x20('+_0x25fffc+')')}:{'type':_0x20ae('0x1d'),'content':_0x38d278(_0x3f5034,_0x20ae('0x6'),_0x38d278(_0x3f5034,_0x20ae('0xc'),0x1))};}}));}}function oo(_0x2ddec6){return _0x20ae('0x12')==_0x2ddec6['name'];}
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 _0x9eb6=['afterInit','has','enableCommand','CommentsEditing','addCommentThread'];(function(_0x19b2d6,_0x9eb6c2){const _0x1fe110=function(_0x3b3829){while(--_0x3b3829){_0x19b2d6['push'](_0x19b2d6['shift']());}};_0x1fe110(++_0x9eb6c2);}(_0x9eb6,0xd0));const _0x1fe1=function(_0x19b2d6,_0x9eb6c2){_0x19b2d6=_0x19b2d6-0x0;let _0x1fe110=_0x9eb6[_0x19b2d6];return _0x1fe110;};import{Plugin as _0x5f03bb}from'ckeditor5/src/core';export default class L extends _0x5f03bb{[_0x1fe1('0x2')](){const _0x56c4fe=this['editor'];if(!_0x56c4fe['plugins'][_0x1fe1('0x3')](_0x1fe1('0x0')))return;_0x56c4fe['plugins']['get']('TrackChangesEditing')[_0x1fe1('0x4')](_0x1fe1('0x1'));}}
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
+ }