@ckeditor/ckeditor5-track-changes 39.0.2 → 40.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 (136) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +1 -1
  3. package/build/track-changes.js +1 -1
  4. package/package.json +3 -3
  5. package/src/augmentation.d.ts +40 -40
  6. package/src/commands/acceptsuggestioncommand.d.ts +24 -24
  7. package/src/commands/acceptsuggestioncommand.js +1 -1
  8. package/src/commands/discardsuggestioncommand.d.ts +24 -24
  9. package/src/commands/discardsuggestioncommand.js +1 -1
  10. package/src/commands/executeonallsuggestionscommand.d.ts +24 -24
  11. package/src/commands/executeonallsuggestionscommand.js +1 -1
  12. package/src/commands/executeonselectedsuggestionscommand.d.ts +24 -24
  13. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  14. package/src/commands/trackchangescommand.d.ts +26 -26
  15. package/src/commands/trackchangescommand.js +1 -1
  16. package/src/index.d.ts +16 -16
  17. package/src/integrations/aiassistant.d.ts +17 -0
  18. package/src/integrations/aiassistant.js +23 -0
  19. package/src/integrations/alignment.d.ts +17 -17
  20. package/src/integrations/alignment.js +1 -1
  21. package/src/integrations/basicstyles.d.ts +17 -17
  22. package/src/integrations/basicstyles.js +1 -1
  23. package/src/integrations/blockquote.d.ts +17 -17
  24. package/src/integrations/blockquote.js +1 -1
  25. package/src/integrations/ckbox.d.ts +17 -17
  26. package/src/integrations/ckbox.js +1 -1
  27. package/src/integrations/codeblock.d.ts +17 -17
  28. package/src/integrations/codeblock.js +1 -1
  29. package/src/integrations/comments.d.ts +14 -14
  30. package/src/integrations/comments.js +1 -1
  31. package/src/integrations/deletecommand.d.ts +17 -17
  32. package/src/integrations/deletecommand.js +1 -1
  33. package/src/integrations/documentlist.d.ts +17 -17
  34. package/src/integrations/documentlist.js +1 -1
  35. package/src/integrations/documentlistproperties.d.ts +29 -29
  36. package/src/integrations/documentlistproperties.js +1 -1
  37. package/src/integrations/entercommand.d.ts +16 -16
  38. package/src/integrations/entercommand.js +1 -1
  39. package/src/integrations/findandreplace.d.ts +21 -21
  40. package/src/integrations/findandreplace.js +1 -1
  41. package/src/integrations/font.d.ts +17 -17
  42. package/src/integrations/font.js +1 -1
  43. package/src/integrations/formatpainter.d.ts +17 -17
  44. package/src/integrations/formatpainter.js +1 -1
  45. package/src/integrations/heading.d.ts +17 -17
  46. package/src/integrations/heading.js +1 -1
  47. package/src/integrations/highlight.d.ts +17 -17
  48. package/src/integrations/highlight.js +1 -1
  49. package/src/integrations/horizontalline.d.ts +17 -17
  50. package/src/integrations/horizontalline.js +1 -1
  51. package/src/integrations/htmlembed.d.ts +17 -17
  52. package/src/integrations/htmlembed.js +1 -1
  53. package/src/integrations/image.d.ts +17 -17
  54. package/src/integrations/image.js +1 -1
  55. package/src/integrations/imagereplace.d.ts +23 -23
  56. package/src/integrations/imagereplace.js +1 -1
  57. package/src/integrations/importword.d.ts +18 -18
  58. package/src/integrations/importword.js +1 -1
  59. package/src/integrations/indent.d.ts +17 -17
  60. package/src/integrations/indent.js +1 -1
  61. package/src/integrations/inputcommand.d.ts +16 -16
  62. package/src/integrations/inputcommand.js +1 -1
  63. package/src/integrations/link.d.ts +17 -17
  64. package/src/integrations/link.js +1 -1
  65. package/src/integrations/list.d.ts +17 -17
  66. package/src/integrations/list.js +1 -1
  67. package/src/integrations/listproperties.d.ts +29 -29
  68. package/src/integrations/listproperties.js +1 -1
  69. package/src/integrations/mediaembed.d.ts +17 -17
  70. package/src/integrations/mediaembed.js +1 -1
  71. package/src/integrations/mention.d.ts +17 -17
  72. package/src/integrations/mention.js +1 -1
  73. package/src/integrations/pagebreak.d.ts +17 -17
  74. package/src/integrations/pagebreak.js +1 -1
  75. package/src/integrations/paragraph.d.ts +17 -17
  76. package/src/integrations/paragraph.js +1 -1
  77. package/src/integrations/removeformat.d.ts +17 -17
  78. package/src/integrations/removeformat.js +1 -1
  79. package/src/integrations/restrictededitingmode.d.ts +17 -17
  80. package/src/integrations/restrictededitingmode.js +1 -1
  81. package/src/integrations/shiftentercommand.d.ts +16 -16
  82. package/src/integrations/shiftentercommand.js +1 -1
  83. package/src/integrations/standardeditingmode.d.ts +17 -17
  84. package/src/integrations/standardeditingmode.js +1 -1
  85. package/src/integrations/style.d.ts +18 -18
  86. package/src/integrations/style.js +1 -1
  87. package/src/integrations/table.d.ts +42 -42
  88. package/src/integrations/table.js +1 -1
  89. package/src/integrations/tablecaption.d.ts +22 -22
  90. package/src/integrations/tablecaption.js +1 -1
  91. package/src/integrations/tableclipboard.d.ts +19 -19
  92. package/src/integrations/tableclipboard.js +1 -1
  93. package/src/integrations/tablecolumnresize.d.ts +26 -26
  94. package/src/integrations/tablecolumnresize.js +1 -1
  95. package/src/integrations/tableheadings.d.ts +22 -22
  96. package/src/integrations/tableheadings.js +1 -1
  97. package/src/integrations/tablemergesplit.d.ts +22 -22
  98. package/src/integrations/tablemergesplit.js +1 -1
  99. package/src/integrations/tableofcontents.d.ts +17 -17
  100. package/src/integrations/tableofcontents.js +1 -1
  101. package/src/integrations/tableproperties.d.ts +27 -27
  102. package/src/integrations/tableproperties.js +1 -1
  103. package/src/integrations/template.d.ts +17 -17
  104. package/src/integrations/template.js +1 -1
  105. package/src/integrations/title.d.ts +17 -17
  106. package/src/integrations/title.js +1 -1
  107. package/src/integrations/undo.d.ts +17 -17
  108. package/src/integrations/undo.js +1 -1
  109. package/src/integrations/utils.d.ts +21 -21
  110. package/src/integrations/utils.js +1 -1
  111. package/src/suggestion.d.ts +276 -276
  112. package/src/suggestion.js +1 -1
  113. package/src/suggestiondescriptionfactory.d.ts +163 -163
  114. package/src/suggestiondescriptionfactory.js +1 -1
  115. package/src/trackchanges.d.ts +244 -244
  116. package/src/trackchanges.js +1 -1
  117. package/src/trackchangesconfig.d.ts +75 -75
  118. package/src/trackchangesdata.d.ts +41 -41
  119. package/src/trackchangesdata.js +1 -1
  120. package/src/trackchangesediting.d.ts +468 -467
  121. package/src/trackchangesediting.js +1 -1
  122. package/src/trackchangesui.d.ts +38 -38
  123. package/src/trackchangesui.js +1 -1
  124. package/src/ui/suggestioncontroller.d.ts +37 -37
  125. package/src/ui/suggestioncontroller.js +1 -1
  126. package/src/ui/view/basesuggestionthreadview.d.ts +170 -170
  127. package/src/ui/view/basesuggestionthreadview.js +1 -1
  128. package/src/ui/view/suggestionthreadview.d.ts +182 -182
  129. package/src/ui/view/suggestionthreadview.js +1 -1
  130. package/src/utils/common-translations.d.ts +9 -9
  131. package/src/utils/common-translations.js +1 -1
  132. package/src/utils/utils.d.ts +30 -30
  133. package/src/utils/utils.js +1 -1
  134. package/theme/icons/track-changes-accept.svg +1 -1
  135. package/theme/icons/track-changes-discard.svg +1 -1
  136. package/theme/icons/track-changes.svg +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-track-changes",
3
- "version": "39.0.2",
3
+ "version": "40.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/)",
@@ -39,8 +39,8 @@
39
39
  "CHANGELOG.md"
40
40
  ],
41
41
  "dependencies": {
42
- "ckeditor5": "39.0.2",
43
- "ckeditor5-collaboration": "39.0.2",
42
+ "ckeditor5": "40.0.0",
43
+ "ckeditor5-collaboration": "40.0.0",
44
44
  "lodash-es": "4.17.21"
45
45
  },
46
46
  "types": "src/index.d.ts",
@@ -1,40 +1,40 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- import type { TrackChangesConfig, TrackChangesEditing, AcceptSuggestionCommand, DiscardSuggestionCommand, ExecuteOnAllSuggestionsCommand, ExecuteOnSelectedSuggestionsCommand, TrackChangesCommand } from './index';
6
- import type { Editor } from 'ckeditor5/src/core';
7
- declare module '@ckeditor/ckeditor5-core' {
8
- interface EditorConfig {
9
- /**
10
- * The configuration of the {@link module:track-changes/trackchanges~TrackChanges} feature.
11
- *
12
- * Read more in {@link module:track-changes/trackchangesconfig~TrackChangesConfig}.
13
- */
14
- trackChanges?: TrackChangesConfig;
15
- /**
16
- * The configuration of the track changes data feature.
17
- */
18
- trackChangesData?: {
19
- /**
20
- * Callback that creates an editor instances.
21
- *
22
- * Used in non-standard integrations. See track changes data
23
- * {@glink features/collaboration/track-changes/track-changes-data#configuring-track-changes-data-plugin configuration guide}.
24
- */
25
- editorCreator?: (config: EditorConfig, createElement: Function) => Promise<Editor>;
26
- };
27
- }
28
- interface PluginsMap {
29
- [TrackChangesEditing.pluginName]: TrackChangesEditing;
30
- }
31
- interface CommandsMap {
32
- acceptSuggestion: AcceptSuggestionCommand;
33
- discardSuggestion: DiscardSuggestionCommand;
34
- acceptAllSuggestions: ExecuteOnAllSuggestionsCommand<AcceptSuggestionCommand>;
35
- discardAllSuggestions: ExecuteOnAllSuggestionsCommand<DiscardSuggestionCommand>;
36
- acceptSelectedSuggestions: ExecuteOnSelectedSuggestionsCommand<AcceptSuggestionCommand>;
37
- discardSelectedSuggestions: ExecuteOnSelectedSuggestionsCommand<DiscardSuggestionCommand>;
38
- trackChanges: TrackChangesCommand;
39
- }
40
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ import type { TrackChangesConfig, TrackChangesEditing, AcceptSuggestionCommand, DiscardSuggestionCommand, ExecuteOnAllSuggestionsCommand, ExecuteOnSelectedSuggestionsCommand, TrackChangesCommand } from './index';
6
+ import type { Editor } from 'ckeditor5/src/core';
7
+ declare module '@ckeditor/ckeditor5-core' {
8
+ interface EditorConfig {
9
+ /**
10
+ * The configuration of the {@link module:track-changes/trackchanges~TrackChanges} feature.
11
+ *
12
+ * Read more in {@link module:track-changes/trackchangesconfig~TrackChangesConfig}.
13
+ */
14
+ trackChanges?: TrackChangesConfig;
15
+ /**
16
+ * The configuration of the track changes data feature.
17
+ */
18
+ trackChangesData?: {
19
+ /**
20
+ * Callback that creates an editor instances.
21
+ *
22
+ * Used in non-standard integrations. See track changes data
23
+ * {@glink features/collaboration/track-changes/track-changes-data#configuring-track-changes-data-plugin configuration guide}.
24
+ */
25
+ editorCreator?: (config: EditorConfig, createElement: Function) => Promise<Editor>;
26
+ };
27
+ }
28
+ interface PluginsMap {
29
+ [TrackChangesEditing.pluginName]: TrackChangesEditing;
30
+ }
31
+ interface CommandsMap {
32
+ acceptSuggestion: AcceptSuggestionCommand;
33
+ discardSuggestion: DiscardSuggestionCommand;
34
+ acceptAllSuggestions: ExecuteOnAllSuggestionsCommand<AcceptSuggestionCommand>;
35
+ discardAllSuggestions: ExecuteOnAllSuggestionsCommand<DiscardSuggestionCommand>;
36
+ acceptSelectedSuggestions: ExecuteOnSelectedSuggestionsCommand<AcceptSuggestionCommand>;
37
+ discardSelectedSuggestions: ExecuteOnSelectedSuggestionsCommand<DiscardSuggestionCommand>;
38
+ trackChanges: TrackChangesCommand;
39
+ }
40
+ }
@@ -1,24 +1,24 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module track-changes/commands/acceptsuggestioncommand
7
- * @publicApi
8
- */
9
- import { Command, type Editor } from 'ckeditor5/src/core';
10
- import type Suggestion from '../suggestion';
11
- /**
12
- * A command that accepts the suggestion chain.
13
- */
14
- export default class AcceptSuggestionCommand extends Command {
15
- constructor(editor: Editor, suggestions: Map<string, Suggestion>);
16
- /**
17
- * @inheritDoc
18
- */
19
- refresh(): void;
20
- /**
21
- * @inheritDoc
22
- */
23
- execute(suggestionId: string): void;
24
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module track-changes/commands/acceptsuggestioncommand
7
+ * @publicApi
8
+ */
9
+ import { Command, type Editor } from 'ckeditor5/src/core';
10
+ import type Suggestion from '../suggestion';
11
+ /**
12
+ * A command that accepts the suggestion chain.
13
+ */
14
+ export default class AcceptSuggestionCommand extends Command {
15
+ constructor(editor: Editor, suggestions: Map<string, Suggestion>);
16
+ /**
17
+ * @inheritDoc
18
+ */
19
+ refresh(): void;
20
+ /**
21
+ * @inheritDoc
22
+ */
23
+ execute(suggestionId: string): void;
24
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5059=['_suggestions','acceptSuggestion','_isEnabledBasedOnSelection','isEnabled','refresh','execute','editor','get','getRanges','track-changes-accept-suggestion-not-found','TrackChangesEditing'];(function(_0x24f610,_0x5059d0){const _0x2080f3=function(_0x2ff65e){while(--_0x2ff65e){_0x24f610['push'](_0x24f610['shift']());}};_0x2080f3(++_0x5059d0);}(_0x5059,0xff));const _0x2080=function(_0x24f610,_0x5059d0){_0x24f610=_0x24f610-0x0;let _0x2080f3=_0x5059[_0x24f610];return _0x2080f3;};import{Command as _0x43adc0}from'ckeditor5/src/core';import{CKEditorError as _0x22860d}from'ckeditor5/src/utils';export default class M extends _0x43adc0{constructor(_0x55a88b,_0x3dd9f3){super(_0x55a88b),this[_0x2080('0x9')]=_0x3dd9f3,this[_0x2080('0x2')](),this[_0x2080('0x0')]=!0x1;}['refresh'](){this[_0x2080('0x1')]=!0x0;}[_0x2080('0x3')](_0x3b0040){const _0x19c236=this[_0x2080('0x9')][_0x2080('0x5')](_0x3b0040);if(!_0x19c236)throw new _0x22860d(_0x2080('0x7'),this);const _0xd66c7b=_0x19c236[_0x2080('0x6')]();this['editor']['model']['canEditAt'](_0xd66c7b)&&this[_0x2080('0x4')]['plugins'][_0x2080('0x5')](_0x2080('0x8'))[_0x2080('0xa')](_0x19c236);}}
23
+ const _0x29cb=['_isEnabledBasedOnSelection','getRanges','isEnabled','track-changes-accept-suggestion-not-found','model','get','acceptSuggestion','editor','plugins','refresh','execute','_suggestions','TrackChangesEditing'];(function(_0x3e37ab,_0x29cb02){const _0x1a65c8=function(_0x9e2fa2){while(--_0x9e2fa2){_0x3e37ab['push'](_0x3e37ab['shift']());}};_0x1a65c8(++_0x29cb02);}(_0x29cb,0x169));const _0x1a65=function(_0x3e37ab,_0x29cb02){_0x3e37ab=_0x3e37ab-0x0;let _0x1a65c8=_0x29cb[_0x3e37ab];return _0x1a65c8;};import{Command as _0x5de87c}from'ckeditor5/src/core';import{CKEditorError as _0x178435}from'ckeditor5/src/utils';export default class M extends _0x5de87c{constructor(_0x275149,_0x435707){super(_0x275149),this[_0x1a65('0x1')]=_0x435707,this['refresh'](),this[_0x1a65('0x3')]=!0x1;}[_0x1a65('0xc')](){this[_0x1a65('0x5')]=!0x0;}[_0x1a65('0x0')](_0x445d35){const _0x51b995=this['_suggestions'][_0x1a65('0x8')](_0x445d35);if(!_0x51b995)throw new _0x178435(_0x1a65('0x6'),this);const _0x32e028=_0x51b995[_0x1a65('0x4')]();this[_0x1a65('0xa')][_0x1a65('0x7')]['canEditAt'](_0x32e028)&&this[_0x1a65('0xa')][_0x1a65('0xb')][_0x1a65('0x8')](_0x1a65('0x2'))[_0x1a65('0x9')](_0x51b995);}}
@@ -1,24 +1,24 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module track-changes/commands/discardsuggestioncommand
7
- * @publicApi
8
- */
9
- import { Command, type Editor } from 'ckeditor5/src/core';
10
- import type Suggestion from '../suggestion';
11
- /**
12
- * A command that discards the suggestion chain.
13
- */
14
- export default class DiscardSuggestionCommand extends Command {
15
- constructor(editor: Editor, suggestions: Map<string, Suggestion>);
16
- /**
17
- * @inheritDoc
18
- */
19
- refresh(): void;
20
- /**
21
- * @inheritDoc
22
- */
23
- execute(suggestionId: string): void;
24
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module track-changes/commands/discardsuggestioncommand
7
+ * @publicApi
8
+ */
9
+ import { Command, type Editor } from 'ckeditor5/src/core';
10
+ import type Suggestion from '../suggestion';
11
+ /**
12
+ * A command that discards the suggestion chain.
13
+ */
14
+ export default class DiscardSuggestionCommand extends Command {
15
+ constructor(editor: Editor, suggestions: Map<string, Suggestion>);
16
+ /**
17
+ * @inheritDoc
18
+ */
19
+ refresh(): void;
20
+ /**
21
+ * @inheritDoc
22
+ */
23
+ execute(suggestionId: string): void;
24
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1a3e=['discardSuggestion','_isEnabledBasedOnSelection','refresh','canEditAt','isEnabled','_suggestions','track-changes-discard-suggestion-not-found','execute','model','editor','get'];(function(_0x2d0f0d,_0x1a3e98){const _0xa1d8b0=function(_0x408805){while(--_0x408805){_0x2d0f0d['push'](_0x2d0f0d['shift']());}};_0xa1d8b0(++_0x1a3e98);}(_0x1a3e,0x121));const _0xa1d8=function(_0x2d0f0d,_0x1a3e98){_0x2d0f0d=_0x2d0f0d-0x0;let _0xa1d8b0=_0x1a3e[_0x2d0f0d];return _0xa1d8b0;};import{Command as _0x4a7b0a}from'ckeditor5/src/core';import{CKEditorError as _0x1fea4e}from'ckeditor5/src/utils';export default class $ extends _0x4a7b0a{constructor(_0x12d0fd,_0x50576e){super(_0x12d0fd),this[_0xa1d8('0x2')]=_0x50576e,this[_0xa1d8('0xa')](),this[_0xa1d8('0x9')]=!0x1;}[_0xa1d8('0xa')](){this[_0xa1d8('0x1')]=!0x0;}[_0xa1d8('0x4')](_0x3c745e){const _0x3ec63f=this[_0xa1d8('0x2')][_0xa1d8('0x7')](_0x3c745e);if(!_0x3ec63f)throw new _0x1fea4e(_0xa1d8('0x3'),this);const _0x179d79=_0x3ec63f['getRanges']();this[_0xa1d8('0x6')][_0xa1d8('0x5')][_0xa1d8('0x0')](_0x179d79)&&this[_0xa1d8('0x6')]['plugins'][_0xa1d8('0x7')]('TrackChangesEditing')[_0xa1d8('0x8')](_0x3ec63f);}}
23
+ const _0x60ce=['TrackChangesEditing','_suggestions','plugins','canEditAt','getRanges','isEnabled','model','_isEnabledBasedOnSelection','get','track-changes-discard-suggestion-not-found','editor'];(function(_0x1f68b1,_0x60ce95){const _0x373f42=function(_0x173e1c){while(--_0x173e1c){_0x1f68b1['push'](_0x1f68b1['shift']());}};_0x373f42(++_0x60ce95);}(_0x60ce,0xe8));const _0x373f=function(_0x1f68b1,_0x60ce95){_0x1f68b1=_0x1f68b1-0x0;let _0x373f42=_0x60ce[_0x1f68b1];return _0x373f42;};import{Command as _0x248f0a}from'ckeditor5/src/core';import{CKEditorError as _0x2f6d5f}from'ckeditor5/src/utils';export default class $ extends _0x248f0a{constructor(_0x5658d6,_0x376db2){super(_0x5658d6),this['_suggestions']=_0x376db2,this['refresh'](),this[_0x373f('0x6')]=!0x1;}['refresh'](){this[_0x373f('0x4')]=!0x0;}['execute'](_0x43b2db){const _0x353cc9=this[_0x373f('0x0')][_0x373f('0x7')](_0x43b2db);if(!_0x353cc9)throw new _0x2f6d5f(_0x373f('0x8'),this);const _0xfbdf38=_0x353cc9[_0x373f('0x3')]();this['editor'][_0x373f('0x5')][_0x373f('0x2')](_0xfbdf38)&&this[_0x373f('0x9')][_0x373f('0x1')][_0x373f('0x7')](_0x373f('0xa'))['discardSuggestion'](_0x353cc9);}}
@@ -1,24 +1,24 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module track-changes/commands/executeonallsuggestionscommand
7
- * @publicApi
8
- */
9
- import { Command, type Editor } from 'ckeditor5/src/core';
10
- import type Suggestion from '../suggestion';
11
- /**
12
- * A command that executes passed command (accept or discard suggestion command) at once for all suggestions in the document.
13
- */
14
- export default class ExecuteOnAllSuggestionsCommand<T extends Command> extends Command {
15
- constructor(editor: Editor, command: T, suggestions: Map<string, Suggestion>);
16
- /**
17
- * @inheritDoc
18
- */
19
- refresh(): void;
20
- /**
21
- * @inheritDoc
22
- */
23
- execute(): void;
24
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module track-changes/commands/executeonallsuggestionscommand
7
+ * @publicApi
8
+ */
9
+ import { Command, type Editor } from 'ckeditor5/src/core';
10
+ import type Suggestion from '../suggestion';
11
+ /**
12
+ * A command that executes passed command (accept or discard suggestion command) at once for all suggestions in the document.
13
+ */
14
+ export default class ExecuteOnAllSuggestionsCommand<T extends Command> extends Command {
15
+ constructor(editor: Editor, command: T, suggestions: Map<string, Suggestion>);
16
+ /**
17
+ * @inheritDoc
18
+ */
19
+ refresh(): void;
20
+ /**
21
+ * @inheritDoc
22
+ */
23
+ execute(): void;
24
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2699=['refresh','canEditAt','from','getRanges','some','_isEnabledBasedOnSelection','_suggestions','isInContent','_command','values','editor','model','isEnabled'];(function(_0x4be917,_0x269985){const _0x3b5de0=function(_0xbcd2a9){while(--_0xbcd2a9){_0x4be917['push'](_0x4be917['shift']());}};_0x3b5de0(++_0x269985);}(_0x2699,0x1a3));const _0x3b5d=function(_0x4be917,_0x269985){_0x4be917=_0x4be917-0x0;let _0x3b5de0=_0x2699[_0x4be917];return _0x3b5de0;};import{Command as _0xfe1a07}from'ckeditor5/src/core';import{sortSuggestions as _0x1d5b17,executeCommandForSuggestions as _0x5bcca3}from'../utils/utils';export default class N extends _0xfe1a07{constructor(_0x378731,_0x33edce,_0x10b5a1){super(_0x378731),this[_0x3b5d('0x5')]=_0x33edce,this[_0x3b5d('0x3')]=_0x10b5a1,this[_0x3b5d('0xa')](),this[_0x3b5d('0x2')]=!0x1;}[_0x3b5d('0xa')](){const _0x3aea3c=Array[_0x3b5d('0xc')](this[_0x3b5d('0x3')][_0x3b5d('0x6')]())[_0x3b5d('0x1')](_0x4be91c=>_0x4be91c[_0x3b5d('0x4')]);this[_0x3b5d('0x9')]=this[_0x3b5d('0x5')]['isEnabled']&&_0x3aea3c;}['execute'](){const _0x4eba7c=_0x1d5b17(Array[_0x3b5d('0xc')](this[_0x3b5d('0x3')][_0x3b5d('0x6')]()));for(const _0x3d01c0 of _0x4eba7c){const _0x3b5664=_0x3d01c0[_0x3b5d('0x0')]();if(!this['editor'][_0x3b5d('0x8')][_0x3b5d('0xb')](_0x3b5664))return;}_0x5bcca3(this[_0x3b5d('0x7')][_0x3b5d('0x8')],this[_0x3b5d('0x5')],_0x4eba7c);}}
23
+ const _0x3880=['getRanges','isInContent','execute','isEnabled','values','model','_suggestions','refresh','from','_command','editor'];(function(_0x3cb4f0,_0x388041){const _0x35201e=function(_0x3f1570){while(--_0x3f1570){_0x3cb4f0['push'](_0x3cb4f0['shift']());}};_0x35201e(++_0x388041);}(_0x3880,0x163));const _0x3520=function(_0x3cb4f0,_0x388041){_0x3cb4f0=_0x3cb4f0-0x0;let _0x35201e=_0x3880[_0x3cb4f0];return _0x35201e;};import{Command as _0xd82202}from'ckeditor5/src/core';import{sortSuggestions as _0x283458,executeCommandForSuggestions as _0x4ab057}from'../utils/utils';export default class N extends _0xd82202{constructor(_0xacc81a,_0x2263f1,_0x8da4b2){super(_0xacc81a),this[_0x3520('0x6')]=_0x2263f1,this[_0x3520('0x3')]=_0x8da4b2,this[_0x3520('0x4')](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1d061b=Array['from'](this[_0x3520('0x3')]['values']())['some'](_0x2b6e04=>_0x2b6e04[_0x3520('0x9')]);this[_0x3520('0x0')]=this[_0x3520('0x6')]['isEnabled']&&_0x1d061b;}[_0x3520('0xa')](){const _0x566083=_0x283458(Array[_0x3520('0x5')](this[_0x3520('0x3')][_0x3520('0x1')]()));for(const _0x290a0d of _0x566083){const _0xdea80f=_0x290a0d[_0x3520('0x8')]();if(!this[_0x3520('0x7')]['model']['canEditAt'](_0xdea80f))return;}_0x4ab057(this[_0x3520('0x7')][_0x3520('0x2')],this['_command'],_0x566083);}}
@@ -1,24 +1,24 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module track-changes/commands/executeonselectedsuggestionscommand
7
- * @publicApi
8
- */
9
- import { Command, type Editor } from 'ckeditor5/src/core';
10
- import type Suggestion from '../suggestion';
11
- /**
12
- * A command that executes passed command (accept or discard suggestion command) at once for all suggestions selected in the document.
13
- */
14
- export default class ExecuteOnSelectedSuggestionsCommand<T extends Command> extends Command {
15
- constructor(editor: Editor, command: T, suggestions: Map<string, Suggestion>);
16
- /**
17
- * @inheritDoc
18
- */
19
- refresh(): void;
20
- /**
21
- * @inheritDoc
22
- */
23
- execute(): void;
24
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module track-changes/commands/executeonselectedsuggestionscommand
7
+ * @publicApi
8
+ */
9
+ import { Command, type Editor } from 'ckeditor5/src/core';
10
+ import type Suggestion from '../suggestion';
11
+ /**
12
+ * A command that executes passed command (accept or discard suggestion command) at once for all suggestions selected in the document.
13
+ */
14
+ export default class ExecuteOnSelectedSuggestionsCommand<T extends Command> extends Command {
15
+ constructor(editor: Editor, command: T, suggestions: Map<string, Suggestion>);
16
+ /**
17
+ * @inheritDoc
18
+ */
19
+ refresh(): void;
20
+ /**
21
+ * @inheritDoc
22
+ */
23
+ execute(): void;
24
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3731=['execute','document','isEnabled','_command','getRanges','values','canEditAt','_suggestions','from','_selectedSuggestions','model','refresh'];(function(_0x272171,_0x373127){const _0x5b8e5a=function(_0x3a2f95){while(--_0x3a2f95){_0x272171['push'](_0x272171['shift']());}};_0x5b8e5a(++_0x373127);}(_0x3731,0x108));const _0x5b8e=function(_0x272171,_0x373127){_0x272171=_0x272171-0x0;let _0x5b8e5a=_0x3731[_0x272171];return _0x5b8e5a;};import{Command as _0x2f63f2}from'ckeditor5/src/core';import{sortSuggestions as _0x32d791,getSelectedSuggestions as _0x25fc28,executeCommandForSuggestions as _0xfbc984}from'../utils/utils';export default class R extends _0x2f63f2{constructor(_0x2dc74a,_0x372e2f,_0x17bb27){super(_0x2dc74a),this[_0x5b8e('0x3')]=_0x372e2f,this[_0x5b8e('0x7')]=_0x17bb27,this['_selectedSuggestions']=new Set(),this[_0x5b8e('0xb')](),this['_isEnabledBasedOnSelection']=!0x1;}[_0x5b8e('0xb')](){const _0x5525d=this['editor']['model'][_0x5b8e('0x1')]['selection'],_0x3cedea=Array['from'](this[_0x5b8e('0x7')][_0x5b8e('0x5')]());this[_0x5b8e('0x9')]=_0x25fc28(_0x5525d,_0x3cedea),this[_0x5b8e('0x2')]=this['_command']['isEnabled']&&!!this[_0x5b8e('0x9')]['size'];}[_0x5b8e('0x0')](){const _0x3701b8=_0x32d791(Array[_0x5b8e('0x8')](this[_0x5b8e('0x9')]));for(const _0xc4102c of _0x3701b8){const _0x5e75b2=_0xc4102c[_0x5b8e('0x4')]();if(!this['editor'][_0x5b8e('0xa')][_0x5b8e('0x6')](_0x5e75b2))return;}_0xfbc984(this['editor'][_0x5b8e('0xa')],this['_command'],_0x3701b8);}}
23
+ const _0x50ff=['from','editor','_suggestions','execute','document','size','canEditAt','values','_selectedSuggestions','_command','getRanges','selection','model','isEnabled','refresh'];(function(_0x5ab14d,_0x50ff01){const _0x5eb5f0=function(_0x42eb30){while(--_0x42eb30){_0x5ab14d['push'](_0x5ab14d['shift']());}};_0x5eb5f0(++_0x50ff01);}(_0x50ff,0x1e1));const _0x5eb5=function(_0x5ab14d,_0x50ff01){_0x5ab14d=_0x5ab14d-0x0;let _0x5eb5f0=_0x50ff[_0x5ab14d];return _0x5eb5f0;};import{Command as _0xa897e8}from'ckeditor5/src/core';import{sortSuggestions as _0x405e45,getSelectedSuggestions as _0x285c39,executeCommandForSuggestions as _0x4f0258}from'../utils/utils';export default class R extends _0xa897e8{constructor(_0x32c0ec,_0x5969de,_0x3976ef){super(_0x32c0ec),this[_0x5eb5('0x8')]=_0x5969de,this[_0x5eb5('0x1')]=_0x3976ef,this[_0x5eb5('0x7')]=new Set(),this[_0x5eb5('0xd')](),this['_isEnabledBasedOnSelection']=!0x1;}[_0x5eb5('0xd')](){const _0xf9d2bb=this['editor']['model'][_0x5eb5('0x3')][_0x5eb5('0xa')],_0x36607b=Array[_0x5eb5('0xe')](this[_0x5eb5('0x1')][_0x5eb5('0x6')]());this[_0x5eb5('0x7')]=_0x285c39(_0xf9d2bb,_0x36607b),this[_0x5eb5('0xc')]=this[_0x5eb5('0x8')][_0x5eb5('0xc')]&&!!this['_selectedSuggestions'][_0x5eb5('0x4')];}[_0x5eb5('0x2')](){const _0x7fe869=_0x405e45(Array[_0x5eb5('0xe')](this[_0x5eb5('0x7')]));for(const _0x2f2dc8 of _0x7fe869){const _0x544771=_0x2f2dc8[_0x5eb5('0x9')]();if(!this['editor'][_0x5eb5('0xb')][_0x5eb5('0x5')](_0x544771))return;}_0x4f0258(this[_0x5eb5('0x0')][_0x5eb5('0xb')],this[_0x5eb5('0x8')],_0x7fe869);}}
@@ -1,26 +1,26 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module track-changes/commands/trackchangescommand
7
- * @publicApi
8
- */
9
- import { Command, type Editor } from 'ckeditor5/src/core';
10
- /**
11
- * Turns the track changes mode on and off.
12
- *
13
- * When the track changes mode is on, this command disables all the unsupported commands.
14
- */
15
- export default class TrackChangesCommand extends Command {
16
- value: boolean;
17
- constructor(editor: Editor, enabledCommands: Set<Command>);
18
- /**
19
- * @inheritDoc
20
- */
21
- refresh(): void;
22
- /**
23
- * @inheritDoc
24
- */
25
- execute(): void;
26
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module track-changes/commands/trackchangescommand
7
+ * @publicApi
8
+ */
9
+ import { Command, type Editor } from 'ckeditor5/src/core';
10
+ /**
11
+ * Turns the track changes mode on and off.
12
+ *
13
+ * When the track changes mode is on, this command disables all the unsupported commands.
14
+ */
15
+ export default class TrackChangesCommand extends Command {
16
+ value: boolean;
17
+ constructor(editor: Editor, enabledCommands: Set<Command>);
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ refresh(): void;
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ execute(): void;
26
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x20ef=['_enableCommands','value','has','TrackChangesCommand','_enabledCommands','forceDisabled','affectsData','refresh','_disableUnsupportedCommands','editor','commands','isEnabled'];(function(_0x59228c,_0x20ef40){const _0x3ff206=function(_0x3f607d){while(--_0x3f607d){_0x59228c['push'](_0x59228c['shift']());}};_0x3ff206(++_0x20ef40);}(_0x20ef,0x1da));const _0x3ff2=function(_0x59228c,_0x20ef40){_0x59228c=_0x59228c-0x0;let _0x3ff206=_0x20ef[_0x59228c];return _0x3ff206;};import{Command as _0x47bf0a}from'ckeditor5/src/core';export default class _ extends _0x47bf0a{constructor(_0x4ea771,_0x424329){super(_0x4ea771),this[_0x3ff2('0xa')]=_0x424329,this[_0x3ff2('0x7')]=!0x1,this[_0x3ff2('0x1')](),this['_isEnabledBasedOnSelection']=!0x1;}[_0x3ff2('0x1')](){this[_0x3ff2('0x5')]=!0x0;}['execute'](){this[_0x3ff2('0x7')]=!this[_0x3ff2('0x7')],this[_0x3ff2('0x7')]?this[_0x3ff2('0x2')]():this[_0x3ff2('0x6')]();}['_disableUnsupportedCommands'](){for(const _0x24d28d of this[_0x3ff2('0x3')]['commands'][_0x3ff2('0x4')]())_0x24d28d[_0x3ff2('0x0')]&&!this[_0x3ff2('0xa')][_0x3ff2('0x8')](_0x24d28d)&&_0x24d28d[_0x3ff2('0xb')](_0x3ff2('0x9'));}[_0x3ff2('0x6')](){for(const _0x50ac4d of this[_0x3ff2('0x3')][_0x3ff2('0x4')][_0x3ff2('0x4')]())_0x50ac4d[_0x3ff2('0x0')]&&!this[_0x3ff2('0xa')][_0x3ff2('0x8')](_0x50ac4d)&&_0x50ac4d['clearForceDisabled'](_0x3ff2('0x9'));}}
23
+ const _0x10f5=['editor','commands','refresh','_isEnabledBasedOnSelection','_enabledCommands','value','has','clearForceDisabled','execute','affectsData','_disableUnsupportedCommands','_enableCommands','TrackChangesCommand'];(function(_0x7b61f7,_0x10f5cc){const _0x381bcd=function(_0x10be11){while(--_0x10be11){_0x7b61f7['push'](_0x7b61f7['shift']());}};_0x381bcd(++_0x10f5cc);}(_0x10f5,0x84));const _0x381b=function(_0x7b61f7,_0x10f5cc){_0x7b61f7=_0x7b61f7-0x0;let _0x381bcd=_0x10f5[_0x7b61f7];return _0x381bcd;};import{Command as _0x459803}from'ckeditor5/src/core';export default class _ extends _0x459803{constructor(_0x23baba,_0x43493d){super(_0x23baba),this[_0x381b('0x2')]=_0x43493d,this[_0x381b('0x3')]=!0x1,this[_0x381b('0x0')](),this[_0x381b('0x1')]=!0x1;}[_0x381b('0x0')](){this['isEnabled']=!0x0;}[_0x381b('0x6')](){this[_0x381b('0x3')]=!this[_0x381b('0x3')],this[_0x381b('0x3')]?this['_disableUnsupportedCommands']():this[_0x381b('0x9')]();}[_0x381b('0x8')](){for(const _0x336785 of this[_0x381b('0xb')]['commands'][_0x381b('0xc')]())_0x336785['affectsData']&&!this['_enabledCommands'][_0x381b('0x4')](_0x336785)&&_0x336785['forceDisabled']('TrackChangesCommand');}[_0x381b('0x9')](){for(const _0x529307 of this[_0x381b('0xb')][_0x381b('0xc')][_0x381b('0xc')]())_0x529307[_0x381b('0x7')]&&!this[_0x381b('0x2')]['has'](_0x529307)&&_0x529307[_0x381b('0x5')](_0x381b('0xa'));}}
package/src/index.d.ts CHANGED
@@ -1,16 +1,16 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- export { default as TrackChanges, type SuggestionData } from './trackchanges';
6
- export { default as TrackChangesData } from './trackchangesdata';
7
- export { default as TrackChangesEditing } from './trackchangesediting';
8
- export type { SuggestionJSON } from './suggestion';
9
- export { default as BaseSuggestionThreadView } from './ui/view/basesuggestionthreadview';
10
- export type { TrackChangesConfig } from './trackchangesconfig';
11
- export type { default as AcceptSuggestionCommand } from './commands/acceptsuggestioncommand';
12
- export type { default as DiscardSuggestionCommand } from './commands/discardsuggestioncommand';
13
- export type { default as ExecuteOnAllSuggestionsCommand } from './commands/executeonallsuggestionscommand';
14
- export type { default as ExecuteOnSelectedSuggestionsCommand } from './commands/executeonselectedsuggestionscommand';
15
- export type { default as TrackChangesCommand } from './commands/trackchangescommand';
16
- import './augmentation';
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ export { default as TrackChanges, type SuggestionData } from './trackchanges';
6
+ export { default as TrackChangesData } from './trackchangesdata';
7
+ export { default as TrackChangesEditing } from './trackchangesediting';
8
+ export type { SuggestionJSON } from './suggestion';
9
+ export { default as BaseSuggestionThreadView } from './ui/view/basesuggestionthreadview';
10
+ export type { TrackChangesConfig } from './trackchangesconfig';
11
+ export type { default as AcceptSuggestionCommand } from './commands/acceptsuggestioncommand';
12
+ export type { default as DiscardSuggestionCommand } from './commands/discardsuggestioncommand';
13
+ export type { default as ExecuteOnAllSuggestionsCommand } from './commands/executeonallsuggestionscommand';
14
+ export type { default as ExecuteOnSelectedSuggestionsCommand } from './commands/executeonselectedsuggestionscommand';
15
+ export type { default as TrackChangesCommand } from './commands/trackchangescommand';
16
+ import './augmentation';
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module track-changes/integrations/aiassistant
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ /**
10
+ * Provides track changes plugin integration for the AI Assistant feature.
11
+ */
12
+ export default class TrackChangesAIAssistant extends Plugin {
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ afterInit(): void;
17
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-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
+ const _0x3308=['showAIAssistant','afterInit','editor','get','commands','enableCommand','plugins'];(function(_0x65e238,_0x330895){const _0x1aa660=function(_0x1aed76){while(--_0x1aed76){_0x65e238['push'](_0x65e238['shift']());}};_0x1aa660(++_0x330895);}(_0x3308,0x7e));const _0x1aa6=function(_0x65e238,_0x330895){_0x65e238=_0x65e238-0x0;let _0x1aa660=_0x3308[_0x65e238];return _0x1aa660;};import{Plugin as _0x504481}from'ckeditor5/src/core';export default class j extends _0x504481{[_0x1aa6('0x1')](){const _0x52d3a0=this[_0x1aa6('0x2')],_0xbd2e74=_0x52d3a0[_0x1aa6('0x6')][_0x1aa6('0x3')]('TrackChangesEditing');_0x52d3a0[_0x1aa6('0x4')]['get'](_0x1aa6('0x0'))&&_0xbd2e74[_0x1aa6('0x5')](_0x1aa6('0x0'));}}
@@ -1,17 +1,17 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module track-changes/integrations/alignment
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- /**
10
- * Provides track changes plugin integration for alignment feature.
11
- */
12
- export default class TrackChangesAlignment extends Plugin {
13
- /**
14
- * @inheritDoc
15
- */
16
- afterInit(): void;
17
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module track-changes/integrations/alignment
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ /**
10
+ * Provides track changes plugin integration for alignment feature.
11
+ */
12
+ export default class TrackChangesAlignment extends Plugin {
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ afterInit(): void;
17
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3e3f=['_descriptionFactory','from','document','FORMAT_JUSTIFY_TEXT','selection','commandParams','markBlockFormat','right','format','value','change','commandName','editor','getSelectedBlocks','getAttribute','checkAttribute','plugins','schema','*Format:*\x20%0','AlignmentEditing','get','FORMAT_ALIGN_TO_LEFT','ltr','contentLanguageDirection','filter','TrackChangesEditing','model','left','alignment'];(function(_0x422c5d,_0x3e3f97){const _0x749ba1=function(_0x32d9e0){while(--_0x32d9e0){_0x422c5d['push'](_0x422c5d['shift']());}};_0x749ba1(++_0x3e3f97);}(_0x3e3f,0x17a));const _0x749b=function(_0x422c5d,_0x3e3f97){_0x422c5d=_0x422c5d-0x0;let _0x749ba1=_0x3e3f[_0x422c5d];return _0x749ba1;};import{Plugin as _0x1b353d}from'ckeditor5/src/core';import{getTranslation as _0x5c5951}from'../utils/common-translations';export default class j extends _0x1b353d{['afterInit'](){const _0x4d3161=this[_0x749b('0xb')],_0x1778e2=_0x4d3161['locale'];if(!_0x4d3161[_0x749b('0xf')]['has'](_0x749b('0x12')))return;const _0x57190a=_0x4d3161[_0x749b('0xf')][_0x749b('0x13')](_0x749b('0x18'));_0x57190a['enableCommand']('alignment',(_0x163dec,_0xa9a126={})=>{let _0x526fba=_0xa9a126[_0x749b('0x8')];_0xa9a126[_0x749b('0x8')]||(_0x526fba=_0x749b('0x15')===_0x4d3161['locale'][_0x749b('0x16')]?_0x749b('0x1a'):_0x749b('0x6'));const _0x4f5f1e=Array[_0x749b('0x0')](this[_0x749b('0xb')]['model'][_0x749b('0x1')][_0x749b('0x3')][_0x749b('0xc')]())[_0x749b('0x17')](_0x2eb075=>function(_0x26b19a,_0x35baba,_0x1c7afc){const _0x46b88f=_0x26b19a[_0x749b('0xd')](_0x749b('0x1b'))||null;return _0x35baba[_0x749b('0xe')](_0x26b19a,_0x749b('0x1b'))&&_0x1c7afc!=_0x46b88f;}(_0x2eb075,this[_0x749b('0xb')][_0x749b('0x19')][_0x749b('0x10')],_0x526fba));_0x4d3161[_0x749b('0x19')][_0x749b('0x9')](()=>{for(const _0x19a656 of _0x4f5f1e)_0x57190a[_0x749b('0x5')](_0x19a656,{'commandName':_0x749b('0x1b'),'commandParams':[{'value':_0x526fba}]});});}),_0x57190a[_0x749b('0x1c')]['registerDescriptionCallback'](_0xfffeab=>{const {data:_0x4597c7}=_0xfffeab;if(_0x4597c7&&_0x749b('0x1b')==_0x4597c7[_0x749b('0xa')]){const _0x451f56=_0x4597c7[_0x749b('0x4')][0x0][_0x749b('0x8')];return{'type':_0x749b('0x7'),'content':_0x5c5951(_0x1778e2,_0x749b('0x11'),function(_0x32da0e){switch(_0x32da0e){case _0x749b('0x1a'):return _0x5c5951(_0x1778e2,_0x749b('0x14'));case _0x749b('0x6'):return _0x5c5951(_0x1778e2,'FORMAT_ALIGN_TO_RIGHT');case'center':return _0x5c5951(_0x1778e2,'FORMAT_ALIGN_TO_CENTER');case'justify':return _0x5c5951(_0x1778e2,_0x749b('0x2'));}}(_0x451f56))};}});}}
23
+ const _0x351f=['markBlockFormat','afterInit','enableCommand','from','justify','FORMAT_ALIGN_TO_RIGHT','commandParams','left','schema','document','AlignmentEditing','FORMAT_ALIGN_TO_CENTER','getSelectedBlocks','FORMAT_ALIGN_TO_LEFT','editor','contentLanguageDirection','ltr','get','has','format','FORMAT_JUSTIFY_TEXT','alignment','registerDescriptionCallback','plugins','right','model','checkAttribute','*Format:*\x20%0','center','getAttribute','TrackChangesEditing'];(function(_0x34dc6e,_0x351fa1){const _0x5421d0=function(_0x1e8029){while(--_0x1e8029){_0x34dc6e['push'](_0x34dc6e['shift']());}};_0x5421d0(++_0x351fa1);}(_0x351f,0x142));const _0x5421=function(_0x34dc6e,_0x351fa1){_0x34dc6e=_0x34dc6e-0x0;let _0x5421d0=_0x351f[_0x34dc6e];return _0x5421d0;};import{Plugin as _0x4a1ad2}from'ckeditor5/src/core';import{getTranslation as _0xe12936}from'../utils/common-translations';export default class x extends _0x4a1ad2{[_0x5421('0x14')](){const _0x54c158=this[_0x5421('0x2')],_0x59f88d=_0x54c158['locale'];if(!_0x54c158[_0x5421('0xb')][_0x5421('0x6')](_0x5421('0x1d')))return;const _0x18025c=_0x54c158[_0x5421('0xb')][_0x5421('0x5')](_0x5421('0x12'));_0x18025c[_0x5421('0x15')](_0x5421('0x9'),(_0x6c7f31,_0x4c7426={})=>{let _0x56e02f=_0x4c7426['value'];_0x4c7426['value']||(_0x56e02f=_0x5421('0x4')===_0x54c158['locale'][_0x5421('0x3')]?'left':_0x5421('0xc'));const _0x56d8b7=Array[_0x5421('0x16')](this[_0x5421('0x2')][_0x5421('0xd')][_0x5421('0x1c')]['selection'][_0x5421('0x0')]())['filter'](_0x9587fa=>function(_0xeceb84,_0xabd9ae,_0x36f00b){const _0x437371=_0xeceb84[_0x5421('0x11')](_0x5421('0x9'))||null;return _0xabd9ae[_0x5421('0xe')](_0xeceb84,'alignment')&&_0x36f00b!=_0x437371;}(_0x9587fa,this[_0x5421('0x2')]['model'][_0x5421('0x1b')],_0x56e02f));_0x54c158[_0x5421('0xd')]['change'](()=>{for(const _0x2c6bfd of _0x56d8b7)_0x18025c[_0x5421('0x13')](_0x2c6bfd,{'commandName':_0x5421('0x9'),'commandParams':[{'value':_0x56e02f}]});});}),_0x18025c['_descriptionFactory'][_0x5421('0xa')](_0x1aa4b5=>{const {data:_0x69958b}=_0x1aa4b5;if(_0x69958b&&_0x5421('0x9')==_0x69958b['commandName']){const _0x3fdce7=_0x69958b[_0x5421('0x19')][0x0]['value'];return{'type':_0x5421('0x7'),'content':_0xe12936(_0x59f88d,_0x5421('0xf'),function(_0x4bf4d6){switch(_0x4bf4d6){case _0x5421('0x1a'):return _0xe12936(_0x59f88d,_0x5421('0x1'));case'right':return _0xe12936(_0x59f88d,_0x5421('0x18'));case _0x5421('0x10'):return _0xe12936(_0x59f88d,_0x5421('0x1e'));case _0x5421('0x17'):return _0xe12936(_0x59f88d,_0x5421('0x8'));}}(_0x3fdce7))};}});}}
@@ -1,17 +1,17 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module track-changes/integrations/basicstyles
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- /**
10
- * Provides track changes plugin integration for basic styles features.
11
- */
12
- export default class TrackChangesBasicStyles extends Plugin {
13
- /**
14
- * @inheritDoc
15
- */
16
- afterInit(): void;
17
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module track-changes/integrations/basicstyles
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ /**
10
+ * Provides track changes plugin integration for basic styles features.
11
+ */
12
+ export default class TrackChangesBasicStyles extends Plugin {
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ afterInit(): void;
17
+ }