@ckeditor/ckeditor5-track-changes 36.0.1 → 37.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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",
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",
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 _0x27d0=['plugins','_suggestions','refresh','acceptSuggestion','track-changes-accept-suggestion-not-found','execute','get'];(function(_0x41d722,_0x27d03a){const _0x577ddf=function(_0xe70193){while(--_0xe70193){_0x41d722['push'](_0x41d722['shift']());}};_0x577ddf(++_0x27d03a);}(_0x27d0,0x178));const _0x577d=function(_0x41d722,_0x27d03a){_0x41d722=_0x41d722-0x0;let _0x577ddf=_0x27d0[_0x41d722];return _0x577ddf;};import{Command as _0x4ccdf7}from'ckeditor5/src/core';import{CKEditorError as _0x7371c3}from'ckeditor5/src/utils';export default class M extends _0x4ccdf7{constructor(_0x271d46,_0x374979){super(_0x271d46),this[_0x577d('0x3')]=_0x374979,this[_0x577d('0x4')]();}['refresh'](){this['isEnabled']=!0x0;}[_0x577d('0x0')](_0x605e2b){const _0x124fb2=this[_0x577d('0x3')][_0x577d('0x1')](_0x605e2b);if(!_0x124fb2)throw new _0x7371c3(_0x577d('0x6'),this);this['editor'][_0x577d('0x2')][_0x577d('0x1')]('TrackChangesEditing')[_0x577d('0x5')](_0x124fb2);}}
@@ -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 _0x1c96=['discardSuggestion','refresh','TrackChangesEditing','editor','_suggestions','get','isEnabled'];(function(_0x3e3b62,_0x1c9602){const _0x5c5412=function(_0x271efb){while(--_0x271efb){_0x3e3b62['push'](_0x3e3b62['shift']());}};_0x5c5412(++_0x1c9602);}(_0x1c96,0x169));const _0x5c54=function(_0x3e3b62,_0x1c9602){_0x3e3b62=_0x3e3b62-0x0;let _0x5c5412=_0x1c96[_0x3e3b62];return _0x5c5412;};import{Command as _0x29af8e}from'ckeditor5/src/core';import{CKEditorError as _0xf7a1f8}from'ckeditor5/src/utils';export default class $ extends _0x29af8e{constructor(_0x13384f,_0x458f15){super(_0x13384f),this[_0x5c54('0x0')]=_0x458f15,this[_0x5c54('0x4')]();}[_0x5c54('0x4')](){this[_0x5c54('0x2')]=!0x0;}['execute'](_0x5c8c94){const _0x1dbfec=this[_0x5c54('0x0')][_0x5c54('0x1')](_0x5c8c94);if(!_0x1dbfec)throw new _0xf7a1f8('track-changes-discard-suggestion-not-found',this);this[_0x5c54('0x6')]['plugins']['get'](_0x5c54('0x5'))[_0x5c54('0x3')](_0x1dbfec);}}
@@ -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 _0x3241=['_suggestions','some','values','editor','isInContent','model','refresh','_command','isEnabled','from','execute'];(function(_0x5214f6,_0x3241b9){const _0x26385b=function(_0x50849a){while(--_0x50849a){_0x5214f6['push'](_0x5214f6['shift']());}};_0x26385b(++_0x3241b9);}(_0x3241,0x1bd));const _0x2638=function(_0x5214f6,_0x3241b9){_0x5214f6=_0x5214f6-0x0;let _0x26385b=_0x3241[_0x5214f6];return _0x26385b;};import{Command as _0x539f9f}from'ckeditor5/src/core';import{sortSuggestions as _0x567e5f,executeCommandForSuggestions as _0x4a5d9f}from'../utils/utils';export default class N extends _0x539f9f{constructor(_0x448613,_0x3649b7,_0x2be6ea){super(_0x448613),this[_0x2638('0x2')]=_0x3649b7,this[_0x2638('0x6')]=_0x2be6ea,this['refresh']();}[_0x2638('0x1')](){const _0x37fd3c=Array[_0x2638('0x4')](this[_0x2638('0x6')][_0x2638('0x8')]())[_0x2638('0x7')](_0x4078a2=>_0x4078a2[_0x2638('0xa')]);this[_0x2638('0x3')]=this[_0x2638('0x2')]['isEnabled']&&_0x37fd3c;}[_0x2638('0x5')](){const _0x333e43=_0x567e5f(Array['from'](this[_0x2638('0x6')][_0x2638('0x8')]()));_0x4a5d9f(this[_0x2638('0x9')][_0x2638('0x0')],this[_0x2638('0x2')],_0x333e43);}}
@@ -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 _0xa166=['_command','size','editor','model','selection','_selectedSuggestions','_suggestions','execute','from','refresh','isEnabled','values'];(function(_0x15f610,_0xa16659){const _0x28992f=function(_0x555c22){while(--_0x555c22){_0x15f610['push'](_0x15f610['shift']());}};_0x28992f(++_0xa16659);}(_0xa166,0xc0));const _0x2899=function(_0x15f610,_0xa16659){_0x15f610=_0x15f610-0x0;let _0x28992f=_0xa166[_0x15f610];return _0x28992f;};import{Command as _0x33c6cf}from'ckeditor5/src/core';import{sortSuggestions as _0x1cedda,getSelectedSuggestions as _0x3539d3,executeCommandForSuggestions as _0x2cf19f}from'../utils/utils';export default class R extends _0x33c6cf{constructor(_0x4d3acf,_0x3d37f4,_0x4d850c){super(_0x4d3acf),this[_0x2899('0x0')]=_0x3d37f4,this[_0x2899('0x6')]=_0x4d850c,this[_0x2899('0x5')]=new Set(),this[_0x2899('0x9')]();}[_0x2899('0x9')](){const _0x4d460e=this['editor'][_0x2899('0x3')]['document'][_0x2899('0x4')],_0x26f1ae=Array[_0x2899('0x8')](this[_0x2899('0x6')][_0x2899('0xb')]());this['_selectedSuggestions']=_0x3539d3(_0x4d460e,_0x26f1ae),this['isEnabled']=this[_0x2899('0x0')][_0x2899('0xa')]&&!!this[_0x2899('0x5')][_0x2899('0x1')];}[_0x2899('0x7')](){const _0x5a7552=_0x1cedda(Array[_0x2899('0x8')](this[_0x2899('0x5')]));_0x2cf19f(this[_0x2899('0x2')][_0x2899('0x3')],this['_command'],_0x5a7552);}}
@@ -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 _0x27eb=['_enabledCommands','affectsData','isEnabled','execute','_disableUnsupportedCommands','has','_enableCommands','forceDisabled','clearForceDisabled','refresh','commands','editor','TrackChangesCommand','value'];(function(_0xead4a,_0x27ebd5){const _0x3e99f7=function(_0x7e150e){while(--_0x7e150e){_0xead4a['push'](_0xead4a['shift']());}};_0x3e99f7(++_0x27ebd5);}(_0x27eb,0x67));const _0x3e99=function(_0xead4a,_0x27ebd5){_0xead4a=_0xead4a-0x0;let _0x3e99f7=_0x27eb[_0xead4a];return _0x3e99f7;};import{Command as _0x1133c7}from'ckeditor5/src/core';export default class _ extends _0x1133c7{constructor(_0x3a263a,_0xd0ce29){super(_0x3a263a),this[_0x3e99('0x9')]=_0xd0ce29,this[_0x3e99('0x8')]=!0x1,this[_0x3e99('0x4')]();}[_0x3e99('0x4')](){this[_0x3e99('0xb')]=!0x0;}[_0x3e99('0xc')](){this[_0x3e99('0x8')]=!this[_0x3e99('0x8')],this['value']?this[_0x3e99('0xd')]():this[_0x3e99('0x1')]();}[_0x3e99('0xd')](){for(const _0x567ece of this[_0x3e99('0x6')][_0x3e99('0x5')]['commands']())_0x567ece[_0x3e99('0xa')]&&!this[_0x3e99('0x9')][_0x3e99('0x0')](_0x567ece)&&_0x567ece[_0x3e99('0x2')](_0x3e99('0x7'));}['_enableCommands'](){for(const _0x402509 of this['editor'][_0x3e99('0x5')][_0x3e99('0x5')]())_0x402509[_0x3e99('0xa')]&&!this['_enabledCommands']['has'](_0x402509)&&_0x402509[_0x3e99('0x3')]('TrackChangesCommand');}}
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 _0x56f3=['right','registerDescriptionCallback','left','_descriptionFactory','TrackChangesEditing','FORMAT_JUSTIFY_TEXT','commandName','get','afterInit','value','ltr','selection','filter','editor','center','justify','getAttribute','getSelectedBlocks','checkAttribute','FORMAT_ALIGN_TO_CENTER','model','has','*Format:*\x20%0','plugins','document','from','FORMAT_ALIGN_TO_RIGHT','locale','enableCommand','alignment','contentLanguageDirection'];(function(_0x3309fd,_0x56f383){const _0x2efc72=function(_0x37dd1a){while(--_0x37dd1a){_0x3309fd['push'](_0x3309fd['shift']());}};_0x2efc72(++_0x56f383);}(_0x56f3,0x13a));const _0x2efc=function(_0x3309fd,_0x56f383){_0x3309fd=_0x3309fd-0x0;let _0x2efc72=_0x56f3[_0x3309fd];return _0x2efc72;};import{Plugin as _0x663beb}from'ckeditor5/src/core';import{getTranslation as _0x3bed5f}from'../utils/common-translations';export default class x extends _0x663beb{[_0x2efc('0x4')](){const _0x1a09a7=this[_0x2efc('0x9')],_0x2ed3d1=_0x1a09a7[_0x2efc('0x17')];if(!_0x1a09a7[_0x2efc('0x13')][_0x2efc('0x11')]('AlignmentEditing'))return;const _0x272957=_0x1a09a7[_0x2efc('0x13')][_0x2efc('0x3')](_0x2efc('0x0'));_0x272957[_0x2efc('0x18')](_0x2efc('0x19'),(_0x4b8cd5,_0x207c07={})=>{let _0x26a7fb=_0x207c07[_0x2efc('0x5')];_0x207c07['value']||(_0x26a7fb=_0x2efc('0x6')===_0x1a09a7[_0x2efc('0x17')][_0x2efc('0x1a')]?_0x2efc('0x1d'):_0x2efc('0x1b'));const _0x39bcb5=Array[_0x2efc('0x15')](this[_0x2efc('0x9')][_0x2efc('0x10')][_0x2efc('0x14')][_0x2efc('0x7')][_0x2efc('0xd')]())[_0x2efc('0x8')](_0x22d147=>function(_0x31f28e,_0x572fb6,_0x4e9ce3){const _0x52c24e=_0x31f28e[_0x2efc('0xc')]('alignment')||null;return _0x572fb6[_0x2efc('0xe')](_0x31f28e,_0x2efc('0x19'))&&_0x4e9ce3!=_0x52c24e;}(_0x22d147,this[_0x2efc('0x9')]['model']['schema'],_0x26a7fb));_0x1a09a7['model']['change'](()=>{for(const _0x3bf299 of _0x39bcb5)_0x272957['markBlockFormat'](_0x3bf299,{'commandName':'alignment','commandParams':[{'value':_0x26a7fb}]});});}),_0x272957[_0x2efc('0x1e')][_0x2efc('0x1c')](_0x2146ce=>{const {data:_0xda8eee}=_0x2146ce;if(_0xda8eee&&'alignment'==_0xda8eee[_0x2efc('0x2')]){const _0x125414=_0xda8eee['commandParams'][0x0][_0x2efc('0x5')];return{'type':'format','content':_0x3bed5f(_0x2ed3d1,_0x2efc('0x12'),function(_0x5d0d1d){switch(_0x5d0d1d){case _0x2efc('0x1d'):return _0x3bed5f(_0x2ed3d1,'FORMAT_ALIGN_TO_LEFT');case _0x2efc('0x1b'):return _0x3bed5f(_0x2ed3d1,_0x2efc('0x16'));case _0x2efc('0xa'):return _0x3bed5f(_0x2ed3d1,_0x2efc('0xf'));case _0x2efc('0xb'):return _0x3bed5f(_0x2ed3d1,_0x2efc('0x1'));}}(_0x125414))};}});}}
@@ -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 _0x1058=['UnderlineEditing','FORMAT_UNDERLINE','*Remove\x20format:*\x20%0','forceValue','SuperscriptEditing','plugins','from','markInlineFormat','toLowerCase','ItalicEditing','registerDescriptionCallback','editor','FORMAT_SUBSCRIPT','commandParams','_descriptionFactory','document','strikethrough','format','FORMAT_CODE','locale','TrackChangesEditing','commands','StrikethroughEditing','get','underline','*Format:*\x20%0','getRanges','afterInit','FORMAT_STRIKETHROUGH','italic','SubscriptEditing','FORMAT_BOLD','code','subscript','superscript','enableCommand','value','selection'];(function(_0x2eb930,_0x105816){const _0x150f21=function(_0x1d6264){while(--_0x1d6264){_0x2eb930['push'](_0x2eb930['shift']());}};_0x150f21(++_0x105816);}(_0x1058,0x128));const _0x150f=function(_0x2eb930,_0x105816){_0x2eb930=_0x2eb930-0x0;let _0x150f21=_0x1058[_0x2eb930];return _0x150f21;};import{Plugin as _0xe68c3e}from'ckeditor5/src/core';import{getTranslation as _0x40486e}from'../utils/common-translations';import{getRangesWithAttribute as _0x5ca6c7}from'./utils';const Ht=['BoldEditing',_0x150f('0x11'),_0x150f('0x8'),'CodeEditing',_0x150f('0x1e'),_0x150f('0x0'),_0x150f('0xc')];export default class U extends _0xe68c3e{[_0x150f('0x23')](){const _0x19a4ce=this[_0x150f('0x13')],_0xf52fd4=_0x19a4ce['model'],_0x42c376=_0x19a4ce[_0x150f('0xd')][_0x150f('0x1f')](_0x150f('0x1c')),_0x52894b=_0x19a4ce[_0x150f('0x1b')];for(const _0x48dbe0 of Ht){if(!_0x19a4ce[_0x150f('0xd')]['has'](_0x48dbe0))continue;const _0x37427f=_0x48dbe0['slice'](0x0,-0x7)[_0x150f('0x10')](),_0xb0a159=_0x19a4ce[_0x150f('0x1d')][_0x150f('0x1f')](_0x37427f);_0x42c376[_0x150f('0x5')](_0x37427f,(_0x38a3ab,_0x163981={})=>{const _0xef75dd=_0xf52fd4[_0x150f('0x17')][_0x150f('0x7')];if(_0xef75dd['isCollapsed'])return void _0x38a3ab(_0x163981);const _0x55764f=void 0x0!==_0x163981[_0x150f('0xb')]?_0x163981['forceValue']:!_0xb0a159[_0x150f('0x6')];_0xf52fd4['change'](()=>{const _0x1aea65=Array[_0x150f('0xe')](_0xef75dd[_0x150f('0x22')]());for(const _0x1c9241 of _0x1aea65){const _0x11d41e=_0x55764f?[_0x1c9241]:_0x5ca6c7(_0x37427f,_0x1c9241,_0xf52fd4);for(const _0x5621f1 of _0x11d41e)_0x42c376[_0x150f('0xf')](_0x5621f1,{'commandName':_0x37427f,'commandParams':[{'forceValue':_0x55764f}]});}});});}function _0xa372f5(_0x7f6bc9,_0x44e962){_0x42c376[_0x150f('0x16')][_0x150f('0x12')](_0x143864=>{const {data:_0x15b3a0}=_0x143864;if(_0x15b3a0&&_0x15b3a0['commandName']===_0x7f6bc9)return _0x15b3a0[_0x150f('0x15')][0x0]['forceValue']?{'type':_0x150f('0x19'),'content':_0x40486e(_0x52894b,_0x150f('0x21'),_0x44e962)}:{'type':_0x150f('0x19'),'content':_0x40486e(_0x52894b,_0x150f('0xa'),_0x44e962)};});}_0xa372f5('bold',_0x40486e(_0x52894b,_0x150f('0x1'))),_0xa372f5(_0x150f('0x25'),_0x40486e(_0x52894b,'FORMAT_ITALIC')),_0xa372f5(_0x150f('0x20'),_0x40486e(_0x52894b,_0x150f('0x9'))),_0xa372f5(_0x150f('0x2'),_0x40486e(_0x52894b,_0x150f('0x1a'))),_0xa372f5(_0x150f('0x18'),_0x40486e(_0x52894b,_0x150f('0x24'))),_0xa372f5(_0x150f('0x3'),_0x40486e(_0x52894b,_0x150f('0x14'))),_0xa372f5(_0x150f('0x4'),_0x40486e(_0x52894b,'FORMAT_SUPERSCRIPT'));}}
@@ -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 _0x591c=['afterInit','value','$root','BlockQuoteEditing','name','get','model','TrackChangesEditing','from','forceValue','has','checkChild','schema','locale','format','commands','change','*Remove\x20format:*\x20%0','getSelectedBlocks','parent','enableCommand','markBlockFormat','commandName','registerDescriptionCallback','plugins','ELEMENT_BLOCK_QUOTE','selection','_descriptionFactory','editor','blockQuote','*Format:*\x20%0'];(function(_0x17ec3c,_0x591c09){const _0x3e5d69=function(_0x30f5df){while(--_0x30f5df){_0x17ec3c['push'](_0x17ec3c['shift']());}};_0x3e5d69(++_0x591c09);}(_0x591c,0xc8));const _0x3e5d=function(_0x17ec3c,_0x591c09){_0x17ec3c=_0x17ec3c-0x0;let _0x3e5d69=_0x591c[_0x17ec3c];return _0x3e5d69;};import{Plugin as _0x379cba}from'ckeditor5/src/core';import{getTranslation as _0x159f6f}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x46aff5}from'../utils/utils';export default class j extends _0x379cba{[_0x3e5d('0x11')](){const _0x3743b3=this[_0x3e5d('0xe')],_0x4a809b=_0x3743b3[_0x3e5d('0x1e')];if(!_0x3743b3['plugins'][_0x3e5d('0x1b')](_0x3e5d('0x14')))return;const _0x41d09c=_0x3743b3[_0x3e5d('0xa')][_0x3e5d('0x16')](_0x3e5d('0x18')),_0xd31f76=this['editor'][_0x3e5d('0x1')]['get'](_0x3e5d('0xf'));_0x41d09c[_0x3e5d('0x6')]('blockQuote',(_0x21d0e2,_0x526bf0={})=>{const _0x335562=this[_0x3e5d('0xe')][_0x3e5d('0x17')]['document'][_0x3e5d('0xc')],_0x2cb1b9=_0x526bf0&&void 0x0!==_0x526bf0[_0x3e5d('0x1a')]?_0x526bf0[_0x3e5d('0x1a')]:!_0xd31f76[_0x3e5d('0x12')];let _0x50c131=[];if(_0x2cb1b9){const _0x67260e=Array['from'](_0x335562[_0x3e5d('0x4')]())['filter'](_0x55e4e2=>Kt(_0x55e4e2)||function(_0x142ff8,_0x55941f){const _0xf2399b=_0x55941f[_0x3e5d('0x1c')](_0x142ff8[_0x3e5d('0x5')],_0x3e5d('0xf')),_0x224a96=_0x55941f[_0x3e5d('0x1c')]([_0x3e5d('0x13'),'blockQuote'],_0x142ff8);return _0xf2399b&&_0x224a96;}(_0x55e4e2,this[_0x3e5d('0xe')][_0x3e5d('0x17')][_0x3e5d('0x1d')]));_0x50c131=_0x46aff5(_0x67260e,_0x3743b3[_0x3e5d('0x17')]);}else{const _0x3f558e=Array[_0x3e5d('0x19')](_0x335562[_0x3e5d('0x4')]())['filter'](_0x40dde3=>Kt(_0x40dde3));_0x50c131=_0x46aff5(_0x3f558e,_0x3743b3[_0x3e5d('0x17')]);}_0x3743b3[_0x3e5d('0x17')][_0x3e5d('0x2')](()=>{for(const _0x18cce4 of _0x50c131)_0x41d09c[_0x3e5d('0x7')](_0x18cce4,{'commandName':_0x3e5d('0xf'),'commandParams':[{'forceValue':_0x2cb1b9}]});});}),_0x41d09c[_0x3e5d('0xd')][_0x3e5d('0x9')](_0x44832e=>{const {data:_0x21402c}=_0x44832e;if(_0x21402c&&_0x3e5d('0xf')==_0x21402c[_0x3e5d('0x8')]){const _0x4fc9a7=_0x159f6f(_0x4a809b,_0x3e5d('0xb'));return _0x21402c['commandParams'][0x0][_0x3e5d('0x1a')]?{'type':_0x3e5d('0x0'),'content':_0x159f6f(_0x4a809b,_0x3e5d('0x10'),_0x4fc9a7)}:{'type':_0x3e5d('0x0'),'content':_0x159f6f(_0x4a809b,_0x3e5d('0x3'),_0x4fc9a7)};}});}}function Kt(_0x5641de){return _0x3e5d('0xf')==_0x5641de[_0x3e5d('0x5')][_0x3e5d('0x15')];}
@@ -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 _0x5ccd=['editor','enableCommand','commands','TrackChangesEditing','ckbox','plugins','get'];(function(_0x243c63,_0x5ccd0b){const _0x22d25e=function(_0x294305){while(--_0x294305){_0x243c63['push'](_0x243c63['shift']());}};_0x22d25e(++_0x5ccd0b);}(_0x5ccd,0xfc));const _0x22d2=function(_0x243c63,_0x5ccd0b){_0x243c63=_0x243c63-0x0;let _0x22d25e=_0x5ccd[_0x243c63];return _0x22d25e;};import{Plugin as _0x36da58}from'ckeditor5/src/core';export default class E extends _0x36da58{['afterInit'](){const _0x33ec9d=this[_0x22d2('0x0')];_0x33ec9d[_0x22d2('0x2')][_0x22d2('0x6')](_0x22d2('0x4'))&&_0x33ec9d[_0x22d2('0x5')][_0x22d2('0x6')](_0x22d2('0x3'))[_0x22d2('0x1')](_0x22d2('0x4'));}}
@@ -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 _0x44d0=['name','commandParams','blockName','filter','plugins','checkChild','enableCommand','forceValue','*Format:*\x20%0','parent','commandName','codeBlock','language','indentCodeBlock','_descriptionFactory','find','languages','document','*Remove\x20format:*\x20%0','outdentCodeBlock','editor','getSelectedBlocks','has','markBlockFormat','afterInit','from','change','commands','registerDescriptionCallback','isLimit','format','model','formatBlock','locale','label','value','get','ELEMENT_CODE_BLOCK'];(function(_0x4669f5,_0x44d0fd){const _0x669126=function(_0x5862be){while(--_0x5862be){_0x4669f5['push'](_0x4669f5['shift']());}};_0x669126(++_0x44d0fd);}(_0x44d0,0x18c));const _0x6691=function(_0x4669f5,_0x44d0fd){_0x4669f5=_0x4669f5-0x0;let _0x669126=_0x44d0[_0x4669f5];return _0x669126;};import{Plugin as _0x6a0f2a}from'ckeditor5/src/core';import{getTranslation as _0x509166}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x51e71c}from'../utils/utils';export default class O extends _0x6a0f2a{[_0x6691('0x8')](){const _0x165754=this[_0x6691('0x4')];if(!_0x165754[_0x6691('0x1a')][_0x6691('0x6')]('CodeBlock'))return;const _0xc08987=_0x165754['plugins'][_0x6691('0x14')]('TrackChangesEditing'),_0x47f70c=_0x165754[_0x6691('0x11')],_0x46e5db=_0x165754['config']['get'](_0x6691('0x21'))[_0x6691('0x0')],_0x847b61=_0x165754[_0x6691('0xb')][_0x6691('0x14')]('codeBlock');_0xc08987[_0x6691('0x1c')](_0x6691('0x23')),_0xc08987[_0x6691('0x1c')](_0x6691('0x3')),_0xc08987[_0x6691('0x1c')](_0x6691('0x21'),(_0x25d0b2,_0x447e9f={})=>{const _0x4fd37f=_0x165754[_0x6691('0xf')],_0x2c0eca=_0x165754[_0x6691('0xf')][_0x6691('0x1')]['selection'],_0x98ff70=_0x447e9f&&void 0x0!==_0x447e9f[_0x6691('0x1d')]?_0x447e9f[_0x6691('0x1d')]:!_0x847b61[_0x6691('0x13')];let _0x4a2a2c;_0x447e9f['language']||(_0x447e9f[_0x6691('0x22')]=_0x46e5db[0x0][_0x6691('0x22')]),_0x4a2a2c=_0x98ff70?Array[_0x6691('0x9')](_0x2c0eca[_0x6691('0x5')]())[_0x6691('0x19')](_0x930f9e=>to(_0x930f9e)||function(_0x583335,_0x48c2ea){if(_0x583335['is']('rootElement')||_0x48c2ea[_0x6691('0xd')](_0x583335))return!0x1;return _0x48c2ea[_0x6691('0x1b')](_0x583335[_0x6691('0x1f')],_0x6691('0x21'));}(_0x930f9e,_0x4fd37f['schema'])):Array[_0x6691('0x9')](_0x2c0eca['getSelectedBlocks']())[_0x6691('0x19')](_0x493cda=>to(_0x493cda));const _0x473fa2=_0x51e71c(_0x4a2a2c,_0x4fd37f);_0x4fd37f[_0x6691('0xa')](()=>{for(const _0x2a6a1b of _0x473fa2)_0xc08987[_0x6691('0x7')](_0x2a6a1b,{'commandName':_0x6691('0x21'),'commandParams':[{..._0x447e9f,'forceValue':_0x98ff70}],'formatGroupId':_0x6691('0x18')});});}),(_0xc08987[_0x6691('0x24')]['registerElementLabel'](_0x6691('0x21'),_0x3d71fb=>_0x509166(_0x47f70c,_0x6691('0x15'),_0x3d71fb)),_0xc08987[_0x6691('0x24')][_0x6691('0xc')](_0x588df6=>{const _0x194bb4=_0x47f70c['t'],{type:_0x15d0fe,data:_0x35a6cc}=_0x588df6;if(_0x6691('0x10')==_0x15d0fe&&_0x35a6cc&&_0x6691('0x21')==_0x35a6cc[_0x6691('0x20')]){const _0x241a1f=_0x35a6cc[_0x6691('0x17')][0x0][_0x6691('0x22')],_0x4905b3=_0x194bb4(_0x46e5db[_0x6691('0x25')](_0x55e872=>_0x55e872[_0x6691('0x22')]===_0x241a1f)[_0x6691('0x12')]);return _0x35a6cc[_0x6691('0x17')][0x0]['forceValue']?{'type':'format','content':_0x509166(_0x47f70c,_0x6691('0x1e'),_0x509166(_0x47f70c,_0x6691('0x15'),0x1)+'\x20('+_0x4905b3+')')}:{'type':_0x6691('0xe'),'content':_0x509166(_0x47f70c,_0x6691('0x2'),_0x509166(_0x47f70c,'ELEMENT_CODE_BLOCK',0x1))};}}));}}function to(_0x15064a){return _0x6691('0x21')==_0x15064a[_0x6691('0x16')];}
@@ -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 _0x1ad3=['TrackChangesEditing','editor','plugins','has','addCommentThread','get'];(function(_0x3e6908,_0x1ad36e){const _0x48d509=function(_0x34c9a0){while(--_0x34c9a0){_0x3e6908['push'](_0x3e6908['shift']());}};_0x48d509(++_0x1ad36e);}(_0x1ad3,0x16a));const _0x48d5=function(_0x3e6908,_0x1ad36e){_0x3e6908=_0x3e6908-0x0;let _0x48d509=_0x1ad3[_0x3e6908];return _0x48d509;};import{Plugin as _0x257efa}from'ckeditor5/src/core';export default class F extends _0x257efa{['afterInit'](){const _0x5e2597=this[_0x48d5('0x5')];if(!_0x5e2597[_0x48d5('0x0')][_0x48d5('0x1')]('CommentsEditing'))return;_0x5e2597[_0x48d5('0x0')][_0x48d5('0x3')](_0x48d5('0x4'))['enableCommand'](_0x48d5('0x2'));}}
@@ -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
+ }