@ckeditor/ckeditor5-track-changes 38.0.1 → 38.1.1

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 (129) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +10 -8
  3. package/src/augmentation.d.ts +36 -36
  4. package/src/commands/acceptsuggestioncommand.d.ts +20 -20
  5. package/src/commands/acceptsuggestioncommand.js +1 -1
  6. package/src/commands/discardsuggestioncommand.d.ts +20 -20
  7. package/src/commands/discardsuggestioncommand.js +1 -1
  8. package/src/commands/executeonallsuggestionscommand.d.ts +20 -20
  9. package/src/commands/executeonallsuggestionscommand.js +1 -1
  10. package/src/commands/executeonselectedsuggestionscommand.d.ts +20 -20
  11. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  12. package/src/commands/trackchangescommand.d.ts +22 -22
  13. package/src/commands/trackchangescommand.js +1 -1
  14. package/src/index.d.ts +12 -12
  15. package/src/integrations/alignment.d.ts +13 -13
  16. package/src/integrations/alignment.js +1 -1
  17. package/src/integrations/basicstyles.d.ts +13 -13
  18. package/src/integrations/basicstyles.js +1 -1
  19. package/src/integrations/blockquote.d.ts +13 -13
  20. package/src/integrations/blockquote.js +1 -1
  21. package/src/integrations/ckbox.d.ts +13 -13
  22. package/src/integrations/ckbox.js +1 -1
  23. package/src/integrations/codeblock.d.ts +13 -13
  24. package/src/integrations/codeblock.js +1 -1
  25. package/src/integrations/comments.d.ts +10 -10
  26. package/src/integrations/comments.js +1 -1
  27. package/src/integrations/deletecommand.d.ts +13 -12
  28. package/src/integrations/deletecommand.js +1 -1
  29. package/src/integrations/documentlist.d.ts +13 -13
  30. package/src/integrations/documentlist.js +1 -1
  31. package/src/integrations/documentlistproperties.d.ts +25 -25
  32. package/src/integrations/documentlistproperties.js +1 -1
  33. package/src/integrations/entercommand.d.ts +12 -11
  34. package/src/integrations/entercommand.js +1 -1
  35. package/src/integrations/findandreplace.d.ts +17 -17
  36. package/src/integrations/findandreplace.js +1 -1
  37. package/src/integrations/font.d.ts +13 -13
  38. package/src/integrations/font.js +1 -1
  39. package/src/integrations/formatpainter.d.ts +13 -13
  40. package/src/integrations/formatpainter.js +1 -1
  41. package/src/integrations/heading.d.ts +13 -13
  42. package/src/integrations/heading.js +1 -1
  43. package/src/integrations/highlight.d.ts +13 -13
  44. package/src/integrations/highlight.js +1 -1
  45. package/src/integrations/horizontalline.d.ts +13 -13
  46. package/src/integrations/horizontalline.js +1 -1
  47. package/src/integrations/htmlembed.d.ts +13 -13
  48. package/src/integrations/htmlembed.js +1 -1
  49. package/src/integrations/image.d.ts +13 -13
  50. package/src/integrations/image.js +1 -1
  51. package/src/integrations/imagereplace.d.ts +19 -19
  52. package/src/integrations/imagereplace.js +1 -1
  53. package/src/integrations/importword.d.ts +14 -14
  54. package/src/integrations/importword.js +1 -1
  55. package/src/integrations/indent.d.ts +13 -13
  56. package/src/integrations/indent.js +1 -1
  57. package/src/integrations/inputcommand.d.ts +12 -11
  58. package/src/integrations/inputcommand.js +1 -1
  59. package/src/integrations/link.d.ts +13 -13
  60. package/src/integrations/link.js +1 -1
  61. package/src/integrations/list.d.ts +13 -13
  62. package/src/integrations/list.js +1 -1
  63. package/src/integrations/listproperties.d.ts +25 -25
  64. package/src/integrations/listproperties.js +1 -1
  65. package/src/integrations/mediaembed.d.ts +13 -13
  66. package/src/integrations/mediaembed.js +1 -1
  67. package/src/integrations/mention.d.ts +13 -13
  68. package/src/integrations/mention.js +1 -1
  69. package/src/integrations/pagebreak.d.ts +13 -13
  70. package/src/integrations/pagebreak.js +1 -1
  71. package/src/integrations/paragraph.d.ts +13 -13
  72. package/src/integrations/paragraph.js +1 -1
  73. package/src/integrations/removeformat.d.ts +13 -13
  74. package/src/integrations/removeformat.js +1 -1
  75. package/src/integrations/restrictededitingmode.d.ts +13 -13
  76. package/src/integrations/restrictededitingmode.js +1 -1
  77. package/src/integrations/shiftentercommand.d.ts +12 -11
  78. package/src/integrations/shiftentercommand.js +1 -1
  79. package/src/integrations/standardeditingmode.d.ts +13 -13
  80. package/src/integrations/standardeditingmode.js +1 -1
  81. package/src/integrations/style.d.ts +14 -14
  82. package/src/integrations/style.js +1 -1
  83. package/src/integrations/table.d.ts +38 -38
  84. package/src/integrations/table.js +1 -1
  85. package/src/integrations/tablecaption.d.ts +18 -17
  86. package/src/integrations/tablecaption.js +1 -1
  87. package/src/integrations/tableclipboard.d.ts +18 -17
  88. package/src/integrations/tableclipboard.js +1 -1
  89. package/src/integrations/tablecolumnresize.d.ts +22 -22
  90. package/src/integrations/tablecolumnresize.js +1 -1
  91. package/src/integrations/tableheadings.d.ts +18 -17
  92. package/src/integrations/tableheadings.js +1 -1
  93. package/src/integrations/tablemergesplit.d.ts +18 -17
  94. package/src/integrations/tablemergesplit.js +1 -1
  95. package/src/integrations/tableofcontents.d.ts +13 -13
  96. package/src/integrations/tableofcontents.js +1 -1
  97. package/src/integrations/tableproperties.d.ts +23 -23
  98. package/src/integrations/tableproperties.js +1 -1
  99. package/src/integrations/template.d.ts +13 -13
  100. package/src/integrations/template.js +1 -1
  101. package/src/integrations/title.d.ts +13 -13
  102. package/src/integrations/title.js +1 -1
  103. package/src/integrations/undo.d.ts +13 -13
  104. package/src/integrations/undo.js +1 -1
  105. package/src/integrations/utils.d.ts +17 -17
  106. package/src/integrations/utils.js +1 -1
  107. package/src/suggestion.d.ts +266 -266
  108. package/src/suggestion.js +1 -1
  109. package/src/suggestiondescriptionfactory.d.ts +151 -151
  110. package/src/suggestiondescriptionfactory.js +1 -1
  111. package/src/trackchanges.d.ts +240 -240
  112. package/src/trackchanges.js +1 -1
  113. package/src/trackchangesconfig.d.ts +71 -71
  114. package/src/trackchangesdata.d.ts +37 -38
  115. package/src/trackchangesdata.js +1 -1
  116. package/src/trackchangesediting.d.ts +435 -391
  117. package/src/trackchangesediting.js +1 -1
  118. package/src/trackchangesui.d.ts +34 -34
  119. package/src/trackchangesui.js +1 -1
  120. package/src/ui/suggestioncontroller.d.ts +36 -36
  121. package/src/ui/suggestioncontroller.js +1 -1
  122. package/src/ui/view/basesuggestionthreadview.d.ts +166 -166
  123. package/src/ui/view/basesuggestionthreadview.js +1 -1
  124. package/src/ui/view/suggestionthreadview.d.ts +182 -184
  125. package/src/ui/view/suggestionthreadview.js +1 -1
  126. package/src/utils/common-translations.d.ts +5 -5
  127. package/src/utils/common-translations.js +1 -1
  128. package/src/utils/utils.d.ts +26 -26
  129. package/src/utils/utils.js +1 -1
package/package.json CHANGED
@@ -1,9 +1,12 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-track-changes",
3
- "version": "38.0.1",
3
+ "version": "38.1.1",
4
4
  "description": "CKEditor 5 track changes plugin.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
7
+ "bugs": {
8
+ "url": "https://support.ckeditor.com/hc/en-us/requests/new"
9
+ },
7
10
  "homepage": "https://ckeditor.com/collaboration/track-changes/",
8
11
  "keywords": [
9
12
  "CKEditor",
@@ -35,16 +38,15 @@
35
38
  "ckeditor5-metadata.json",
36
39
  "CHANGELOG.md"
37
40
  ],
38
- "scripts": {
39
- "dll:build": "webpack",
40
- "build": "tsc -p ./tsconfig.json",
41
- "postversion": "npm run build"
42
- },
43
41
  "dependencies": {
44
- "ckeditor5": "^38.0.1",
45
- "ckeditor5-collaboration": "^38.0.1",
42
+ "ckeditor5": "38.1.1",
43
+ "ckeditor5-collaboration": "38.1.1",
46
44
  "lodash-es": "^4.17.11"
47
45
  },
46
+ "engines": {
47
+ "node": ">=16.0.0",
48
+ "npm": ">=5.7.1"
49
+ },
48
50
  "types": "src/index.d.ts",
49
51
  "obfuscated": true
50
52
  }
@@ -1,36 +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
- }
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
+ }
@@ -1,20 +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
- }
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 _0x15eb=['refresh','plugins','_suggestions','acceptSuggestion','execute','isEnabled','get','_isEnabledBasedOnSelection','editor','track-changes-accept-suggestion-not-found'];(function(_0x81e55a,_0x15eb7c){const _0xaa017b=function(_0x319dae){while(--_0x319dae){_0x81e55a['push'](_0x81e55a['shift']());}};_0xaa017b(++_0x15eb7c);}(_0x15eb,0x86));const _0xaa01=function(_0x81e55a,_0x15eb7c){_0x81e55a=_0x81e55a-0x0;let _0xaa017b=_0x15eb[_0x81e55a];return _0xaa017b;};import{Command as _0x4b364c}from'ckeditor5/src/core';import{CKEditorError as _0xbcfee6}from'ckeditor5/src/utils';export default class M extends _0x4b364c{constructor(_0x336f0a,_0x4c7f14){super(_0x336f0a),this[_0xaa01('0x8')]=_0x4c7f14,this[_0xaa01('0x6')](),this[_0xaa01('0x3')]=!0x1;}[_0xaa01('0x6')](){this[_0xaa01('0x1')]=!0x0;}[_0xaa01('0x0')](_0x23cb1d){const _0x25ddf2=this['_suggestions'][_0xaa01('0x2')](_0x23cb1d);if(!_0x25ddf2)throw new _0xbcfee6(_0xaa01('0x5'),this);const _0x43f206=_0x25ddf2['getRanges']();this[_0xaa01('0x4')]['model']['canEditAt'](_0x43f206)&&this[_0xaa01('0x4')][_0xaa01('0x7')][_0xaa01('0x2')]('TrackChangesEditing')[_0xaa01('0x9')](_0x25ddf2);}}
23
+ const _0x122d=['model','refresh','execute','get','plugins','_suggestions','TrackChangesEditing','_isEnabledBasedOnSelection','getRanges','editor','acceptSuggestion','track-changes-accept-suggestion-not-found'];(function(_0x1ff846,_0x122d17){const _0x2370c0=function(_0x5125cf){while(--_0x5125cf){_0x1ff846['push'](_0x1ff846['shift']());}};_0x2370c0(++_0x122d17);}(_0x122d,0xea));const _0x2370=function(_0x1ff846,_0x122d17){_0x1ff846=_0x1ff846-0x0;let _0x2370c0=_0x122d[_0x1ff846];return _0x2370c0;};import{Command as _0xdf2db7}from'ckeditor5/src/core';import{CKEditorError as _0x29f3bb}from'ckeditor5/src/utils';export default class M extends _0xdf2db7{constructor(_0x375c3e,_0x392484){super(_0x375c3e),this[_0x2370('0xb')]=_0x392484,this[_0x2370('0x7')](),this[_0x2370('0x1')]=!0x1;}[_0x2370('0x7')](){this['isEnabled']=!0x0;}[_0x2370('0x8')](_0x1c96f9){const _0x425a6e=this[_0x2370('0xb')][_0x2370('0x9')](_0x1c96f9);if(!_0x425a6e)throw new _0x29f3bb(_0x2370('0x5'),this);const _0x23e0c8=_0x425a6e[_0x2370('0x2')]();this[_0x2370('0x3')][_0x2370('0x6')]['canEditAt'](_0x23e0c8)&&this[_0x2370('0x3')][_0x2370('0xa')][_0x2370('0x9')](_0x2370('0x0'))[_0x2370('0x4')](_0x425a6e);}}
@@ -1,20 +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
- }
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 _0x20de=['model','get','getRanges','canEditAt','editor','_isEnabledBasedOnSelection','execute','_suggestions','plugins','refresh','discardSuggestion','isEnabled','TrackChangesEditing'];(function(_0x9c6040,_0x20deb3){const _0x10fc03=function(_0x3ee04c){while(--_0x3ee04c){_0x9c6040['push'](_0x9c6040['shift']());}};_0x10fc03(++_0x20deb3);}(_0x20de,0x8d));const _0x10fc=function(_0x9c6040,_0x20deb3){_0x9c6040=_0x9c6040-0x0;let _0x10fc03=_0x20de[_0x9c6040];return _0x10fc03;};import{Command as _0x207fbc}from'ckeditor5/src/core';import{CKEditorError as _0x4ac7c8}from'ckeditor5/src/utils';export default class $ extends _0x207fbc{constructor(_0x19cbfa,_0xbde7ec){super(_0x19cbfa),this[_0x10fc('0x9')]=_0xbde7ec,this[_0x10fc('0xb')](),this[_0x10fc('0x7')]=!0x1;}[_0x10fc('0xb')](){this[_0x10fc('0x0')]=!0x0;}[_0x10fc('0x8')](_0x3d71b3){const _0x500ab2=this['_suggestions'][_0x10fc('0x3')](_0x3d71b3);if(!_0x500ab2)throw new _0x4ac7c8('track-changes-discard-suggestion-not-found',this);const _0xdcf7dc=_0x500ab2[_0x10fc('0x4')]();this[_0x10fc('0x6')][_0x10fc('0x2')][_0x10fc('0x5')](_0xdcf7dc)&&this[_0x10fc('0x6')][_0x10fc('0xa')][_0x10fc('0x3')](_0x10fc('0x1'))[_0x10fc('0xc')](_0x500ab2);}}
23
+ const _0x1b5b=['editor','get','TrackChangesEditing','canEditAt','_isEnabledBasedOnSelection','isEnabled','refresh','discardSuggestion','execute','getRanges','_suggestions','model'];(function(_0x516e3e,_0x1b5b67){const _0x5e56a6=function(_0x1339ba){while(--_0x1339ba){_0x516e3e['push'](_0x516e3e['shift']());}};_0x5e56a6(++_0x1b5b67);}(_0x1b5b,0x1ba));const _0x5e56=function(_0x516e3e,_0x1b5b67){_0x516e3e=_0x516e3e-0x0;let _0x5e56a6=_0x1b5b[_0x516e3e];return _0x5e56a6;};import{Command as _0x407c53}from'ckeditor5/src/core';import{CKEditorError as _0xb49365}from'ckeditor5/src/utils';export default class $ extends _0x407c53{constructor(_0x14dd8d,_0x27b4d3){super(_0x14dd8d),this[_0x5e56('0x0')]=_0x27b4d3,this[_0x5e56('0x8')](),this[_0x5e56('0x6')]=!0x1;}['refresh'](){this[_0x5e56('0x7')]=!0x0;}[_0x5e56('0xa')](_0x11e104){const _0x33d841=this[_0x5e56('0x0')]['get'](_0x11e104);if(!_0x33d841)throw new _0xb49365('track-changes-discard-suggestion-not-found',this);const _0x1f1220=_0x33d841[_0x5e56('0xb')]();this['editor'][_0x5e56('0x1')][_0x5e56('0x5')](_0x1f1220)&&this[_0x5e56('0x2')]['plugins'][_0x5e56('0x3')](_0x5e56('0x4'))[_0x5e56('0x9')](_0x33d841);}}
@@ -1,20 +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
- }
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 _0x564e=['from','_command','editor','model','canEditAt','values','execute','isInContent','isEnabled','_isEnabledBasedOnSelection','_suggestions'];(function(_0x726714,_0x564e55){const _0x32b904=function(_0x5a1c1c){while(--_0x5a1c1c){_0x726714['push'](_0x726714['shift']());}};_0x32b904(++_0x564e55);}(_0x564e,0x82));const _0x32b9=function(_0x726714,_0x564e55){_0x726714=_0x726714-0x0;let _0x32b904=_0x564e[_0x726714];return _0x32b904;};import{Command as _0x1602a0}from'ckeditor5/src/core';import{sortSuggestions as _0x2a22f8,executeCommandForSuggestions as _0x178eab}from'../utils/utils';export default class N extends _0x1602a0{constructor(_0x2e5f10,_0xd9fa33,_0x1a00fa){super(_0x2e5f10),this[_0x32b9('0x3')]=_0xd9fa33,this[_0x32b9('0x1')]=_0x1a00fa,this['refresh'](),this[_0x32b9('0x0')]=!0x1;}['refresh'](){const _0xb229b0=Array[_0x32b9('0x2')](this[_0x32b9('0x1')][_0x32b9('0x7')]())['some'](_0x555243=>_0x555243[_0x32b9('0x9')]);this[_0x32b9('0xa')]=this[_0x32b9('0x3')][_0x32b9('0xa')]&&_0xb229b0;}[_0x32b9('0x8')](){const _0x265d29=_0x2a22f8(Array[_0x32b9('0x2')](this[_0x32b9('0x1')][_0x32b9('0x7')]()));for(const _0x53c9fa of _0x265d29){const _0x2ed307=_0x53c9fa['getRanges']();if(!this[_0x32b9('0x4')][_0x32b9('0x5')][_0x32b9('0x6')](_0x2ed307))return;}_0x178eab(this[_0x32b9('0x4')][_0x32b9('0x5')],this['_command'],_0x265d29);}}
23
+ const _0x3dec=['_command','from','some','canEditAt','_suggestions','values','isEnabled','getRanges','_isEnabledBasedOnSelection','execute','isInContent','editor','refresh'];(function(_0x54d33f,_0x3decb7){const _0x146016=function(_0x4801d5){while(--_0x4801d5){_0x54d33f['push'](_0x54d33f['shift']());}};_0x146016(++_0x3decb7);}(_0x3dec,0x1c8));const _0x1460=function(_0x54d33f,_0x3decb7){_0x54d33f=_0x54d33f-0x0;let _0x146016=_0x3dec[_0x54d33f];return _0x146016;};import{Command as _0x2cce3b}from'ckeditor5/src/core';import{sortSuggestions as _0x51abe7,executeCommandForSuggestions as _0x323984}from'../utils/utils';export default class N extends _0x2cce3b{constructor(_0x3e0850,_0x2be4a2,_0x50ddef){super(_0x3e0850),this['_command']=_0x2be4a2,this[_0x1460('0x3')]=_0x50ddef,this[_0x1460('0xb')](),this[_0x1460('0x7')]=!0x1;}['refresh'](){const _0x3086a=Array[_0x1460('0x0')](this[_0x1460('0x3')][_0x1460('0x4')]())[_0x1460('0x1')](_0x268453=>_0x268453[_0x1460('0x9')]);this[_0x1460('0x5')]=this[_0x1460('0xc')][_0x1460('0x5')]&&_0x3086a;}[_0x1460('0x8')](){const _0x30edfa=_0x51abe7(Array[_0x1460('0x0')](this[_0x1460('0x3')][_0x1460('0x4')]()));for(const _0x4171ba of _0x30edfa){const _0x34259f=_0x4171ba[_0x1460('0x6')]();if(!this[_0x1460('0xa')]['model'][_0x1460('0x2')](_0x34259f))return;}_0x323984(this[_0x1460('0xa')]['model'],this['_command'],_0x30edfa);}}
@@ -1,20 +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
- }
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 _0xfd15=['_command','isEnabled','editor','model','_isEnabledBasedOnSelection','refresh','selection','execute','_suggestions','getRanges','from','_selectedSuggestions','values','document','size','canEditAt'];(function(_0x28a799,_0xfd1573){const _0x52f314=function(_0x2d0339){while(--_0x2d0339){_0x28a799['push'](_0x28a799['shift']());}};_0x52f314(++_0xfd1573);}(_0xfd15,0x10e));const _0x52f3=function(_0x28a799,_0xfd1573){_0x28a799=_0x28a799-0x0;let _0x52f314=_0xfd15[_0x28a799];return _0x52f314;};import{Command as _0x42dc4e}from'ckeditor5/src/core';import{sortSuggestions as _0x3a61bc,getSelectedSuggestions as _0x24221a,executeCommandForSuggestions as _0x22cc93}from'../utils/utils';export default class R extends _0x42dc4e{constructor(_0x217cc8,_0x751f33,_0x558323){super(_0x217cc8),this[_0x52f3('0x2')]=_0x751f33,this[_0x52f3('0xa')]=_0x558323,this[_0x52f3('0xd')]=new Set(),this[_0x52f3('0x7')](),this[_0x52f3('0x6')]=!0x1;}['refresh'](){const _0x5b0728=this[_0x52f3('0x4')][_0x52f3('0x5')][_0x52f3('0xf')][_0x52f3('0x8')],_0x11d719=Array[_0x52f3('0xc')](this['_suggestions'][_0x52f3('0xe')]());this[_0x52f3('0xd')]=_0x24221a(_0x5b0728,_0x11d719),this[_0x52f3('0x3')]=this[_0x52f3('0x2')]['isEnabled']&&!!this[_0x52f3('0xd')][_0x52f3('0x0')];}[_0x52f3('0x9')](){const _0x599314=_0x3a61bc(Array[_0x52f3('0xc')](this[_0x52f3('0xd')]));for(const _0x3c90b4 of _0x599314){const _0x574af0=_0x3c90b4[_0x52f3('0xb')]();if(!this[_0x52f3('0x4')][_0x52f3('0x5')][_0x52f3('0x1')](_0x574af0))return;}_0x22cc93(this['editor'][_0x52f3('0x5')],this['_command'],_0x599314);}}
23
+ const _0x32b2=['getRanges','selection','model','from','_command','_isEnabledBasedOnSelection','_suggestions','isEnabled','canEditAt','values','editor','refresh','_selectedSuggestions'];(function(_0x6bb98e,_0x32b216){const _0x370341=function(_0x52c482){while(--_0x52c482){_0x6bb98e['push'](_0x6bb98e['shift']());}};_0x370341(++_0x32b216);}(_0x32b2,0x80));const _0x3703=function(_0x6bb98e,_0x32b216){_0x6bb98e=_0x6bb98e-0x0;let _0x370341=_0x32b2[_0x6bb98e];return _0x370341;};import{Command as _0x34185b}from'ckeditor5/src/core';import{sortSuggestions as _0x243316,getSelectedSuggestions as _0x2e7e46,executeCommandForSuggestions as _0x2552e0}from'../utils/utils';export default class R extends _0x34185b{constructor(_0x3808d5,_0x6dc61b,_0x980064){super(_0x3808d5),this[_0x3703('0x6')]=_0x6dc61b,this[_0x3703('0x8')]=_0x980064,this[_0x3703('0x1')]=new Set(),this['refresh'](),this[_0x3703('0x7')]=!0x1;}[_0x3703('0x0')](){const _0x277520=this[_0x3703('0xc')][_0x3703('0x4')]['document'][_0x3703('0x3')],_0x968cd6=Array[_0x3703('0x5')](this[_0x3703('0x8')][_0x3703('0xb')]());this['_selectedSuggestions']=_0x2e7e46(_0x277520,_0x968cd6),this[_0x3703('0x9')]=this[_0x3703('0x6')][_0x3703('0x9')]&&!!this[_0x3703('0x1')]['size'];}['execute'](){const _0x4016d8=_0x243316(Array[_0x3703('0x5')](this[_0x3703('0x1')]));for(const _0x386274 of _0x4016d8){const _0x4e267c=_0x386274[_0x3703('0x2')]();if(!this['editor'][_0x3703('0x4')][_0x3703('0xa')](_0x4e267c))return;}_0x2552e0(this[_0x3703('0xc')][_0x3703('0x4')],this['_command'],_0x4016d8);}}
@@ -1,22 +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
- }
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 _0x4082=['clearForceDisabled','_enabledCommands','editor','_enableCommands','affectsData','has','commands','_disableUnsupportedCommands','execute','value','TrackChangesCommand','_isEnabledBasedOnSelection','refresh'];(function(_0x363e71,_0x408253){const _0x4e0dc8=function(_0x562a24){while(--_0x562a24){_0x363e71['push'](_0x363e71['shift']());}};_0x4e0dc8(++_0x408253);}(_0x4082,0x148));const _0x4e0d=function(_0x363e71,_0x408253){_0x363e71=_0x363e71-0x0;let _0x4e0dc8=_0x4082[_0x363e71];return _0x4e0dc8;};import{Command as _0xbb7c84}from'ckeditor5/src/core';export default class _ extends _0xbb7c84{constructor(_0x1c8d79,_0x3d1f5c){super(_0x1c8d79),this[_0x4e0d('0xb')]=_0x3d1f5c,this[_0x4e0d('0x6')]=!0x1,this[_0x4e0d('0x9')](),this[_0x4e0d('0x8')]=!0x1;}[_0x4e0d('0x9')](){this['isEnabled']=!0x0;}[_0x4e0d('0x5')](){this[_0x4e0d('0x6')]=!this[_0x4e0d('0x6')],this['value']?this[_0x4e0d('0x4')]():this['_enableCommands']();}[_0x4e0d('0x4')](){for(const _0x225b12 of this[_0x4e0d('0xc')][_0x4e0d('0x3')][_0x4e0d('0x3')]())_0x225b12[_0x4e0d('0x1')]&&!this[_0x4e0d('0xb')][_0x4e0d('0x2')](_0x225b12)&&_0x225b12['forceDisabled'](_0x4e0d('0x7'));}[_0x4e0d('0x0')](){for(const _0x56ac82 of this['editor'][_0x4e0d('0x3')][_0x4e0d('0x3')]())_0x56ac82[_0x4e0d('0x1')]&&!this['_enabledCommands'][_0x4e0d('0x2')](_0x56ac82)&&_0x56ac82[_0x4e0d('0xa')]('TrackChangesCommand');}}
23
+ const _0x1bc3=['value','_enableCommands','refresh','clearForceDisabled','commands','execute','isEnabled','_enabledCommands','_disableUnsupportedCommands','TrackChangesCommand','editor','forceDisabled','has','affectsData','_isEnabledBasedOnSelection'];(function(_0x1431db,_0x1bc38a){const _0x115ba5=function(_0x437a3c){while(--_0x437a3c){_0x1431db['push'](_0x1431db['shift']());}};_0x115ba5(++_0x1bc38a);}(_0x1bc3,0xb8));const _0x115b=function(_0x1431db,_0x1bc38a){_0x1431db=_0x1431db-0x0;let _0x115ba5=_0x1bc3[_0x1431db];return _0x115ba5;};import{Command as _0x59a391}from'ckeditor5/src/core';export default class _ extends _0x59a391{constructor(_0x4fd66f,_0x16e8c5){super(_0x4fd66f),this['_enabledCommands']=_0x16e8c5,this[_0x115b('0xb')]=!0x1,this[_0x115b('0xd')](),this[_0x115b('0xa')]=!0x1;}['refresh'](){this[_0x115b('0x2')]=!0x0;}[_0x115b('0x1')](){this[_0x115b('0xb')]=!this['value'],this['value']?this[_0x115b('0x4')]():this[_0x115b('0xc')]();}[_0x115b('0x4')](){for(const _0x3b88b8 of this[_0x115b('0x6')][_0x115b('0x0')][_0x115b('0x0')]())_0x3b88b8[_0x115b('0x9')]&&!this['_enabledCommands']['has'](_0x3b88b8)&&_0x3b88b8[_0x115b('0x7')](_0x115b('0x5'));}[_0x115b('0xc')](){for(const _0x396553 of this[_0x115b('0x6')][_0x115b('0x0')]['commands']())_0x396553[_0x115b('0x9')]&&!this[_0x115b('0x3')][_0x115b('0x8')](_0x396553)&&_0x396553[_0x115b('0xe')](_0x115b('0x5'));}}
package/src/index.d.ts CHANGED
@@ -1,12 +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 type { 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';
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 type { 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';
@@ -1,13 +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
- }
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 _0x2af2=['center','from','ltr','TrackChangesEditing','left','get','justify','commandParams','locale','model','selection','editor','markBlockFormat','alignment','FORMAT_ALIGN_TO_RIGHT','plugins','FORMAT_ALIGN_TO_CENTER','value','right','*Format:*\x20%0','change','afterInit','commandName','_descriptionFactory','enableCommand','has','AlignmentEditing','filter','getSelectedBlocks','schema','registerDescriptionCallback','getAttribute'];(function(_0x15df62,_0x2af256){const _0x2b5f6d=function(_0x502131){while(--_0x502131){_0x15df62['push'](_0x15df62['shift']());}};_0x2b5f6d(++_0x2af256);}(_0x2af2,0xbf));const _0x2b5f=function(_0x15df62,_0x2af256){_0x15df62=_0x15df62-0x0;let _0x2b5f6d=_0x2af2[_0x15df62];return _0x2b5f6d;};import{Plugin as _0x51e592}from'ckeditor5/src/core';import{getTranslation as _0x52ba5f}from'../utils/common-translations';export default class x extends _0x51e592{[_0x2b5f('0x16')](){const _0x23a38b=this[_0x2b5f('0xc')],_0xa8b99d=_0x23a38b[_0x2b5f('0x9')];if(!_0x23a38b[_0x2b5f('0x10')][_0x2b5f('0x1a')](_0x2b5f('0x1b')))return;const _0x5dc777=_0x23a38b[_0x2b5f('0x10')][_0x2b5f('0x6')](_0x2b5f('0x4'));_0x5dc777[_0x2b5f('0x19')](_0x2b5f('0xe'),(_0x7fff3a,_0x1ecf6e={})=>{let _0x186e07=_0x1ecf6e[_0x2b5f('0x12')];_0x1ecf6e['value']||(_0x186e07=_0x2b5f('0x3')===_0x23a38b[_0x2b5f('0x9')]['contentLanguageDirection']?_0x2b5f('0x5'):_0x2b5f('0x13'));const _0x2712b1=Array[_0x2b5f('0x2')](this[_0x2b5f('0xc')][_0x2b5f('0xa')]['document'][_0x2b5f('0xb')][_0x2b5f('0x1d')]())[_0x2b5f('0x1c')](_0x3c804b=>function(_0xb7bf16,_0x49cb1c,_0x439656){const _0x1cd675=_0xb7bf16[_0x2b5f('0x0')](_0x2b5f('0xe'))||null;return _0x49cb1c['checkAttribute'](_0xb7bf16,_0x2b5f('0xe'))&&_0x439656!=_0x1cd675;}(_0x3c804b,this[_0x2b5f('0xc')][_0x2b5f('0xa')][_0x2b5f('0x1e')],_0x186e07));_0x23a38b[_0x2b5f('0xa')][_0x2b5f('0x15')](()=>{for(const _0x2f565c of _0x2712b1)_0x5dc777[_0x2b5f('0xd')](_0x2f565c,{'commandName':'alignment','commandParams':[{'value':_0x186e07}]});});}),_0x5dc777[_0x2b5f('0x18')][_0x2b5f('0x1f')](_0x3110f1=>{const {data:_0x245eac}=_0x3110f1;if(_0x245eac&&_0x2b5f('0xe')==_0x245eac[_0x2b5f('0x17')]){const _0x542a9d=_0x245eac[_0x2b5f('0x8')][0x0][_0x2b5f('0x12')];return{'type':'format','content':_0x52ba5f(_0xa8b99d,_0x2b5f('0x14'),function(_0x566276){switch(_0x566276){case'left':return _0x52ba5f(_0xa8b99d,'FORMAT_ALIGN_TO_LEFT');case _0x2b5f('0x13'):return _0x52ba5f(_0xa8b99d,_0x2b5f('0xf'));case _0x2b5f('0x1'):return _0x52ba5f(_0xa8b99d,_0x2b5f('0x11'));case _0x2b5f('0x7'):return _0x52ba5f(_0xa8b99d,'FORMAT_JUSTIFY_TEXT');}}(_0x542a9d))};}});}}
23
+ const _0x5bc0=['filter','document','commandName','checkAttribute','change','AlignmentEditing','_descriptionFactory','schema','contentLanguageDirection','from','getSelectedBlocks','right','justify','selection','format','editor','FORMAT_JUSTIFY_TEXT','FORMAT_ALIGN_TO_RIGHT','alignment','*Format:*\x20%0','locale','FORMAT_ALIGN_TO_LEFT','commandParams','TrackChangesEditing','plugins','value','left','markBlockFormat','center'];(function(_0x51f4d7,_0x5bc067){const _0x18f7ab=function(_0x269409){while(--_0x269409){_0x51f4d7['push'](_0x51f4d7['shift']());}};_0x18f7ab(++_0x5bc067);}(_0x5bc0,0x1bc));const _0x18f7=function(_0x51f4d7,_0x5bc067){_0x51f4d7=_0x51f4d7-0x0;let _0x18f7ab=_0x5bc0[_0x51f4d7];return _0x18f7ab;};import{Plugin as _0x45afc9}from'ckeditor5/src/core';import{getTranslation as _0x4d2265}from'../utils/common-translations';export default class x extends _0x45afc9{['afterInit'](){const _0xcae270=this[_0x18f7('0x6')],_0x2843dc=_0xcae270[_0x18f7('0xb')];if(!_0xcae270[_0x18f7('0xf')]['has'](_0x18f7('0x19')))return;const _0x217427=_0xcae270[_0x18f7('0xf')]['get'](_0x18f7('0xe'));_0x217427['enableCommand']('alignment',(_0x596e10,_0x40d40e={})=>{let _0x2c5cce=_0x40d40e[_0x18f7('0x10')];_0x40d40e[_0x18f7('0x10')]||(_0x2c5cce='ltr'===_0xcae270['locale'][_0x18f7('0x1c')]?_0x18f7('0x11'):_0x18f7('0x2'));const _0x44f684=Array[_0x18f7('0x0')](this[_0x18f7('0x6')]['model'][_0x18f7('0x15')][_0x18f7('0x4')][_0x18f7('0x1')]())[_0x18f7('0x14')](_0x48130d=>function(_0x54da1d,_0xa9a8a7,_0x3e3a0e){const _0x961500=_0x54da1d['getAttribute'](_0x18f7('0x9'))||null;return _0xa9a8a7[_0x18f7('0x17')](_0x54da1d,_0x18f7('0x9'))&&_0x3e3a0e!=_0x961500;}(_0x48130d,this[_0x18f7('0x6')]['model'][_0x18f7('0x1b')],_0x2c5cce));_0xcae270['model'][_0x18f7('0x18')](()=>{for(const _0x1c714a of _0x44f684)_0x217427[_0x18f7('0x12')](_0x1c714a,{'commandName':'alignment','commandParams':[{'value':_0x2c5cce}]});});}),_0x217427[_0x18f7('0x1a')]['registerDescriptionCallback'](_0x4cb50a=>{const {data:_0x46aad2}=_0x4cb50a;if(_0x46aad2&&_0x18f7('0x9')==_0x46aad2[_0x18f7('0x16')]){const _0x24b670=_0x46aad2[_0x18f7('0xd')][0x0][_0x18f7('0x10')];return{'type':_0x18f7('0x5'),'content':_0x4d2265(_0x2843dc,_0x18f7('0xa'),function(_0x6fe6f3){switch(_0x6fe6f3){case _0x18f7('0x11'):return _0x4d2265(_0x2843dc,_0x18f7('0xc'));case _0x18f7('0x2'):return _0x4d2265(_0x2843dc,_0x18f7('0x8'));case _0x18f7('0x13'):return _0x4d2265(_0x2843dc,'FORMAT_ALIGN_TO_CENTER');case _0x18f7('0x3'):return _0x4d2265(_0x2843dc,_0x18f7('0x7'));}}(_0x24b670))};}});}}
@@ -1,13 +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
- }
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 _0x11c4=['plugins','slice','forceValue','markInlineFormat','bold','FORMAT_SUBSCRIPT','toLowerCase','subscript','get','from','commands','getRanges','isCollapsed','*Format:*\x20%0','UnderlineEditing','superscript','ItalicEditing','format','strikethrough','italic','FORMAT_STRIKETHROUGH','underline','locale','FORMAT_CODE','commandName','document','code','FORMAT_SUPERSCRIPT','selection','SuperscriptEditing'];(function(_0x3a68c2,_0x11c426){const _0x5c3309=function(_0xc07ad4){while(--_0xc07ad4){_0x3a68c2['push'](_0x3a68c2['shift']());}};_0x5c3309(++_0x11c426);}(_0x11c4,0x159));const _0x5c33=function(_0x3a68c2,_0x11c426){_0x3a68c2=_0x3a68c2-0x0;let _0x5c3309=_0x11c4[_0x3a68c2];return _0x5c3309;};import{Plugin as _0x2d8059}from'ckeditor5/src/core';import{getTranslation as _0x484f68}from'../utils/common-translations';import{getRangesWithAttribute as _0x2e809c}from'./utils';const Kt=['BoldEditing',_0x5c33('0x1'),_0x5c33('0x1d'),'CodeEditing','StrikethroughEditing','SubscriptEditing',_0x5c33('0xe')];export default class U extends _0x2d8059{['afterInit'](){const _0x299a87=this['editor'],_0x5219cb=_0x299a87['model'],_0x5be9d6=_0x299a87[_0x5c33('0xf')][_0x5c33('0x17')]('TrackChangesEditing'),_0x34aa05=_0x299a87[_0x5c33('0x7')];for(const _0x70a5e4 of Kt){if(!_0x299a87['plugins']['has'](_0x70a5e4))continue;const _0x4b96f0=_0x70a5e4[_0x5c33('0x10')](0x0,-0x7)[_0x5c33('0x15')](),_0x37433f=_0x299a87[_0x5c33('0x19')][_0x5c33('0x17')](_0x4b96f0);_0x5be9d6['enableCommand'](_0x4b96f0,(_0x1b6f1c,_0x166178={})=>{const _0x5b7b68=_0x5219cb[_0x5c33('0xa')][_0x5c33('0xd')];if(_0x5b7b68[_0x5c33('0x1b')])return void _0x1b6f1c(_0x166178);const _0x18fdd3=void 0x0!==_0x166178[_0x5c33('0x11')]?_0x166178[_0x5c33('0x11')]:!_0x37433f['value'];_0x5219cb['change'](()=>{const _0x556e14=Array[_0x5c33('0x18')](_0x5b7b68[_0x5c33('0x1a')]());for(const _0x50fe8e of _0x556e14){const _0x348171=_0x18fdd3?[_0x50fe8e]:_0x2e809c(_0x4b96f0,_0x50fe8e,_0x5219cb);for(const _0x4ee588 of _0x348171)_0x5be9d6[_0x5c33('0x12')](_0x4ee588,{'commandName':_0x4b96f0,'commandParams':[{'forceValue':_0x18fdd3}]});}});});}function _0x51deee(_0x396491,_0x2cb24f){_0x5be9d6['_descriptionFactory']['registerDescriptionCallback'](_0x4cc343=>{const {data:_0xc0ed7b}=_0x4cc343;if(_0xc0ed7b&&_0xc0ed7b[_0x5c33('0x9')]===_0x396491)return _0xc0ed7b['commandParams'][0x0][_0x5c33('0x11')]?{'type':_0x5c33('0x2'),'content':_0x484f68(_0x34aa05,_0x5c33('0x1c'),_0x2cb24f)}:{'type':_0x5c33('0x2'),'content':_0x484f68(_0x34aa05,'*Remove\x20format:*\x20%0',_0x2cb24f)};});}_0x51deee(_0x5c33('0x13'),_0x484f68(_0x34aa05,'FORMAT_BOLD')),_0x51deee(_0x5c33('0x4'),_0x484f68(_0x34aa05,'FORMAT_ITALIC')),_0x51deee(_0x5c33('0x6'),_0x484f68(_0x34aa05,'FORMAT_UNDERLINE')),_0x51deee(_0x5c33('0xb'),_0x484f68(_0x34aa05,_0x5c33('0x8'))),_0x51deee(_0x5c33('0x3'),_0x484f68(_0x34aa05,_0x5c33('0x5'))),_0x51deee(_0x5c33('0x16'),_0x484f68(_0x34aa05,_0x5c33('0x14'))),_0x51deee(_0x5c33('0x0'),_0x484f68(_0x34aa05,_0x5c33('0xc')));}}
23
+ const _0x1b3a=['commandParams','editor','toLowerCase','*Format:*\x20%0','UnderlineEditing','FORMAT_CODE','markInlineFormat','locale','get','underline','isCollapsed','getRanges','TrackChangesEditing','from','SuperscriptEditing','model','registerDescriptionCallback','BoldEditing','commandName','commands','enableCommand','FORMAT_BOLD','code','SubscriptEditing','bold','FORMAT_SUBSCRIPT','document','selection','ItalicEditing','italic','plugins','value','afterInit','StrikethroughEditing','CodeEditing','FORMAT_SUPERSCRIPT','forceValue','format','subscript'];(function(_0x8df8e8,_0x1b3aa8){const _0x1c3683=function(_0x2e1a4f){while(--_0x2e1a4f){_0x8df8e8['push'](_0x8df8e8['shift']());}};_0x1c3683(++_0x1b3aa8);}(_0x1b3a,0x89));const _0x1c36=function(_0x8df8e8,_0x1b3aa8){_0x8df8e8=_0x8df8e8-0x0;let _0x1c3683=_0x1b3a[_0x8df8e8];return _0x1c3683;};import{Plugin as _0x36a153}from'ckeditor5/src/core';import{getTranslation as _0x42a14d}from'../utils/common-translations';import{getRangesWithAttribute as _0x1d494c}from'./utils';const Kt=[_0x1c36('0x24'),_0x1c36('0x8'),_0x1c36('0x17'),_0x1c36('0xe'),_0x1c36('0xd'),_0x1c36('0x3'),_0x1c36('0x21')];export default class U extends _0x36a153{[_0x1c36('0xc')](){const _0x825dfa=this[_0x1c36('0x14')],_0x9dbf5e=_0x825dfa[_0x1c36('0x22')],_0x45ae2f=_0x825dfa[_0x1c36('0xa')][_0x1c36('0x1b')](_0x1c36('0x1f')),_0x5e7458=_0x825dfa[_0x1c36('0x1a')];for(const _0x1cba93 of Kt){if(!_0x825dfa[_0x1c36('0xa')]['has'](_0x1cba93))continue;const _0x4a63c1=_0x1cba93['slice'](0x0,-0x7)[_0x1c36('0x15')](),_0x24fd77=_0x825dfa[_0x1c36('0x26')]['get'](_0x4a63c1);_0x45ae2f[_0x1c36('0x0')](_0x4a63c1,(_0x4d4695,_0x587385={})=>{const _0x1b4db4=_0x9dbf5e[_0x1c36('0x6')][_0x1c36('0x7')];if(_0x1b4db4[_0x1c36('0x1d')])return void _0x4d4695(_0x587385);const _0x1beffa=void 0x0!==_0x587385[_0x1c36('0x10')]?_0x587385[_0x1c36('0x10')]:!_0x24fd77[_0x1c36('0xb')];_0x9dbf5e['change'](()=>{const _0x4a901d=Array[_0x1c36('0x20')](_0x1b4db4[_0x1c36('0x1e')]());for(const _0x3162c1 of _0x4a901d){const _0x53dabe=_0x1beffa?[_0x3162c1]:_0x1d494c(_0x4a63c1,_0x3162c1,_0x9dbf5e);for(const _0x2271c3 of _0x53dabe)_0x45ae2f[_0x1c36('0x19')](_0x2271c3,{'commandName':_0x4a63c1,'commandParams':[{'forceValue':_0x1beffa}]});}});});}function _0x3ef7a7(_0x259471,_0x322727){_0x45ae2f['_descriptionFactory'][_0x1c36('0x23')](_0x255a35=>{const {data:_0x291386}=_0x255a35;if(_0x291386&&_0x291386[_0x1c36('0x25')]===_0x259471)return _0x291386[_0x1c36('0x13')][0x0][_0x1c36('0x10')]?{'type':_0x1c36('0x11'),'content':_0x42a14d(_0x5e7458,_0x1c36('0x16'),_0x322727)}:{'type':_0x1c36('0x11'),'content':_0x42a14d(_0x5e7458,'*Remove\x20format:*\x20%0',_0x322727)};});}_0x3ef7a7(_0x1c36('0x4'),_0x42a14d(_0x5e7458,_0x1c36('0x1'))),_0x3ef7a7(_0x1c36('0x9'),_0x42a14d(_0x5e7458,'FORMAT_ITALIC')),_0x3ef7a7(_0x1c36('0x1c'),_0x42a14d(_0x5e7458,'FORMAT_UNDERLINE')),_0x3ef7a7(_0x1c36('0x2'),_0x42a14d(_0x5e7458,_0x1c36('0x18'))),_0x3ef7a7('strikethrough',_0x42a14d(_0x5e7458,'FORMAT_STRIKETHROUGH')),_0x3ef7a7(_0x1c36('0x12'),_0x42a14d(_0x5e7458,_0x1c36('0x5'))),_0x3ef7a7('superscript',_0x42a14d(_0x5e7458,_0x1c36('0xf')));}}
@@ -1,13 +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
- }
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 _0x13a9=['markBlockFormat','value','getSelectedBlocks','model','afterInit','plugins','format','locale','*Remove\x20format:*\x20%0','editor','registerDescriptionCallback','get','parent','checkChild','selection','TrackChangesEditing','has','ELEMENT_BLOCK_QUOTE','_descriptionFactory','enableCommand','commandName','blockQuote','*Format:*\x20%0','BlockQuoteEditing','forceValue','from','commands','filter','name'];(function(_0x1c2708,_0x13a93c){const _0x16403a=function(_0x34d254){while(--_0x34d254){_0x1c2708['push'](_0x1c2708['shift']());}};_0x16403a(++_0x13a93c);}(_0x13a9,0x6b));const _0x1640=function(_0x1c2708,_0x13a93c){_0x1c2708=_0x1c2708-0x0;let _0x16403a=_0x13a9[_0x1c2708];return _0x16403a;};import{Plugin as _0x18657d}from'ckeditor5/src/core';import{getTranslation as _0x573406}from'../utils/common-translations';import{getRangesOfBlockGroups as _0xeac71c}from'../utils/utils';export default class j extends _0x18657d{[_0x1640('0xd')](){const _0x216c90=this[_0x1640('0x12')],_0x1479ac=_0x216c90[_0x1640('0x10')];if(!_0x216c90['plugins'][_0x1640('0x19')](_0x1640('0x3')))return;const _0x1c379c=_0x216c90[_0x1640('0xe')][_0x1640('0x14')](_0x1640('0x18')),_0x4777f8=this[_0x1640('0x12')][_0x1640('0x6')]['get'](_0x1640('0x1'));_0x1c379c[_0x1640('0x1c')](_0x1640('0x1'),(_0x3c3732,_0x110b29={})=>{const _0x482d6c=this[_0x1640('0x12')][_0x1640('0xc')]['document'][_0x1640('0x17')],_0x2dae29=_0x110b29&&void 0x0!==_0x110b29['forceValue']?_0x110b29[_0x1640('0x4')]:!_0x4777f8[_0x1640('0xa')];let _0x3f2464=[];if(_0x2dae29){const _0x2e1070=Array[_0x1640('0x5')](_0x482d6c[_0x1640('0xb')]())[_0x1640('0x7')](_0x3c284f=>Xt(_0x3c284f)||function(_0x112ae7,_0x59ed8a){const _0x430836=_0x59ed8a[_0x1640('0x16')](_0x112ae7['parent'],_0x1640('0x1')),_0x944c5a=_0x59ed8a[_0x1640('0x16')](['$root',_0x1640('0x1')],_0x112ae7);return _0x430836&&_0x944c5a;}(_0x3c284f,this['editor']['model']['schema']));_0x3f2464=_0xeac71c(_0x2e1070,_0x216c90[_0x1640('0xc')]);}else{const _0x52e7a7=Array[_0x1640('0x5')](_0x482d6c[_0x1640('0xb')]())['filter'](_0x41bfd7=>Xt(_0x41bfd7));_0x3f2464=_0xeac71c(_0x52e7a7,_0x216c90[_0x1640('0xc')]);}_0x216c90['model']['change'](()=>{for(const _0x466c6b of _0x3f2464)_0x1c379c[_0x1640('0x9')](_0x466c6b,{'commandName':_0x1640('0x1'),'commandParams':[{'forceValue':_0x2dae29}]});});}),_0x1c379c[_0x1640('0x1b')][_0x1640('0x13')](_0x1a9c77=>{const {data:_0x46f3af}=_0x1a9c77;if(_0x46f3af&&_0x1640('0x1')==_0x46f3af[_0x1640('0x0')]){const _0x4a4c88=_0x573406(_0x1479ac,_0x1640('0x1a'));return _0x46f3af['commandParams'][0x0][_0x1640('0x4')]?{'type':'format','content':_0x573406(_0x1479ac,_0x1640('0x2'),_0x4a4c88)}:{'type':_0x1640('0xf'),'content':_0x573406(_0x1479ac,_0x1640('0x11'),_0x4a4c88)};}});}}function Xt(_0x581575){return'blockQuote'==_0x581575[_0x1640('0x15')][_0x1640('0x8')];}
23
+ const _0x2b07=['registerDescriptionCallback','editor','get','checkChild','afterInit','TrackChangesEditing','commands','format','filter','forceValue','selection','markBlockFormat','commandName','blockQuote','_descriptionFactory','enableCommand','schema','plugins','from','value','model','getSelectedBlocks','BlockQuoteEditing'];(function(_0xebf5c7,_0x2b076d){const _0x1c8e58=function(_0x1560d0){while(--_0x1560d0){_0xebf5c7['push'](_0xebf5c7['shift']());}};_0x1c8e58(++_0x2b076d);}(_0x2b07,0xa1));const _0x1c8e=function(_0xebf5c7,_0x2b076d){_0xebf5c7=_0xebf5c7-0x0;let _0x1c8e58=_0x2b07[_0xebf5c7];return _0x1c8e58;};import{Plugin as _0xb6573d}from'ckeditor5/src/core';import{getTranslation as _0x87b3e1}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x3cdf81}from'../utils/utils';export default class j extends _0xb6573d{[_0x1c8e('0x4')](){const _0x54c093=this[_0x1c8e('0x1')],_0x5368f3=_0x54c093['locale'];if(!_0x54c093[_0x1c8e('0x11')]['has'](_0x1c8e('0x16')))return;const _0x2f7e4a=_0x54c093[_0x1c8e('0x11')][_0x1c8e('0x2')](_0x1c8e('0x5')),_0x3b65f5=this[_0x1c8e('0x1')][_0x1c8e('0x6')][_0x1c8e('0x2')](_0x1c8e('0xd'));_0x2f7e4a[_0x1c8e('0xf')](_0x1c8e('0xd'),(_0x16ec88,_0x23d8ae={})=>{const _0x29edd3=this[_0x1c8e('0x1')]['model']['document'][_0x1c8e('0xa')],_0x4d879c=_0x23d8ae&&void 0x0!==_0x23d8ae['forceValue']?_0x23d8ae[_0x1c8e('0x9')]:!_0x3b65f5[_0x1c8e('0x13')];let _0x1869b8=[];if(_0x4d879c){const _0x325718=Array[_0x1c8e('0x12')](_0x29edd3[_0x1c8e('0x15')]())['filter'](_0x60e543=>Xt(_0x60e543)||function(_0x4ffe50,_0x2d36f6){const _0x18c5da=_0x2d36f6[_0x1c8e('0x3')](_0x4ffe50['parent'],_0x1c8e('0xd')),_0x15d780=_0x2d36f6[_0x1c8e('0x3')](['$root','blockQuote'],_0x4ffe50);return _0x18c5da&&_0x15d780;}(_0x60e543,this[_0x1c8e('0x1')]['model'][_0x1c8e('0x10')]));_0x1869b8=_0x3cdf81(_0x325718,_0x54c093[_0x1c8e('0x14')]);}else{const _0x326e30=Array[_0x1c8e('0x12')](_0x29edd3[_0x1c8e('0x15')]())[_0x1c8e('0x8')](_0x285b12=>Xt(_0x285b12));_0x1869b8=_0x3cdf81(_0x326e30,_0x54c093[_0x1c8e('0x14')]);}_0x54c093[_0x1c8e('0x14')]['change'](()=>{for(const _0x5aa09c of _0x1869b8)_0x2f7e4a[_0x1c8e('0xb')](_0x5aa09c,{'commandName':_0x1c8e('0xd'),'commandParams':[{'forceValue':_0x4d879c}]});});}),_0x2f7e4a[_0x1c8e('0xe')][_0x1c8e('0x0')](_0x1905c4=>{const {data:_0x13cdc3}=_0x1905c4;if(_0x13cdc3&&_0x1c8e('0xd')==_0x13cdc3[_0x1c8e('0xc')]){const _0x51ef64=_0x87b3e1(_0x5368f3,'ELEMENT_BLOCK_QUOTE');return _0x13cdc3['commandParams'][0x0][_0x1c8e('0x9')]?{'type':'format','content':_0x87b3e1(_0x5368f3,'*Format:*\x20%0',_0x51ef64)}:{'type':_0x1c8e('0x7'),'content':_0x87b3e1(_0x5368f3,'*Remove\x20format:*\x20%0',_0x51ef64)};}});}}function Xt(_0x39850f){return _0x1c8e('0xd')==_0x39850f['parent']['name'];}