@ckeditor/ckeditor5-track-changes 39.0.1 → 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 (185) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/LICENSE.md +6 -6
  3. package/README.md +14 -14
  4. package/build/track-changes.js +1 -1
  5. package/lang/translations/ar.po +1 -0
  6. package/lang/translations/az.po +1 -0
  7. package/lang/translations/bg.po +1 -0
  8. package/lang/translations/bn.po +1 -0
  9. package/lang/translations/ca.po +1 -0
  10. package/lang/translations/cs.po +1 -0
  11. package/lang/translations/da.po +1 -0
  12. package/lang/translations/de.po +1 -0
  13. package/lang/translations/el.po +1 -0
  14. package/lang/translations/en-au.po +1 -0
  15. package/lang/translations/en.po +1 -0
  16. package/lang/translations/es.po +1 -0
  17. package/lang/translations/et.po +1 -0
  18. package/lang/translations/fi.po +1 -0
  19. package/lang/translations/fr.po +1 -0
  20. package/lang/translations/gl.po +1 -0
  21. package/lang/translations/he.po +1 -0
  22. package/lang/translations/hi.po +1 -0
  23. package/lang/translations/hr.po +1 -0
  24. package/lang/translations/hu.po +1 -0
  25. package/lang/translations/id.po +1 -0
  26. package/lang/translations/it.po +1 -0
  27. package/lang/translations/ja.po +1 -0
  28. package/lang/translations/ko.po +1 -0
  29. package/lang/translations/lt.po +1 -0
  30. package/lang/translations/lv.po +1 -0
  31. package/lang/translations/ms.po +1 -0
  32. package/lang/translations/nl.po +1 -0
  33. package/lang/translations/no.po +1 -0
  34. package/lang/translations/pl.po +1 -0
  35. package/lang/translations/pt-br.po +1 -0
  36. package/lang/translations/pt.po +1 -0
  37. package/lang/translations/ro.po +1 -0
  38. package/lang/translations/ru.po +1 -0
  39. package/lang/translations/sk.po +1 -0
  40. package/lang/translations/sq.po +1 -0
  41. package/lang/translations/sr-latn.po +1 -0
  42. package/lang/translations/sr.po +1 -0
  43. package/lang/translations/sv.po +1 -0
  44. package/lang/translations/th.po +1 -0
  45. package/lang/translations/tk.po +1 -0
  46. package/lang/translations/tr.po +1 -0
  47. package/lang/translations/tt.po +1 -0
  48. package/lang/translations/uk.po +1 -0
  49. package/lang/translations/ur.po +1 -0
  50. package/lang/translations/vi.po +1 -0
  51. package/lang/translations/zh-cn.po +1 -0
  52. package/lang/translations/zh.po +1 -0
  53. package/package.json +3 -7
  54. package/src/augmentation.d.ts +40 -40
  55. package/src/commands/acceptsuggestioncommand.d.ts +24 -24
  56. package/src/commands/acceptsuggestioncommand.js +1 -1
  57. package/src/commands/discardsuggestioncommand.d.ts +24 -24
  58. package/src/commands/discardsuggestioncommand.js +1 -1
  59. package/src/commands/executeonallsuggestionscommand.d.ts +24 -24
  60. package/src/commands/executeonallsuggestionscommand.js +1 -1
  61. package/src/commands/executeonselectedsuggestionscommand.d.ts +24 -24
  62. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  63. package/src/commands/trackchangescommand.d.ts +26 -26
  64. package/src/commands/trackchangescommand.js +1 -1
  65. package/src/index.d.ts +16 -16
  66. package/src/integrations/aiassistant.d.ts +17 -0
  67. package/src/integrations/aiassistant.js +23 -0
  68. package/src/integrations/alignment.d.ts +17 -17
  69. package/src/integrations/alignment.js +1 -1
  70. package/src/integrations/basicstyles.d.ts +17 -17
  71. package/src/integrations/basicstyles.js +1 -1
  72. package/src/integrations/blockquote.d.ts +17 -17
  73. package/src/integrations/blockquote.js +1 -1
  74. package/src/integrations/ckbox.d.ts +17 -17
  75. package/src/integrations/ckbox.js +1 -1
  76. package/src/integrations/codeblock.d.ts +17 -17
  77. package/src/integrations/codeblock.js +1 -1
  78. package/src/integrations/comments.d.ts +14 -14
  79. package/src/integrations/comments.js +1 -1
  80. package/src/integrations/deletecommand.d.ts +17 -17
  81. package/src/integrations/deletecommand.js +1 -1
  82. package/src/integrations/documentlist.d.ts +17 -17
  83. package/src/integrations/documentlist.js +1 -1
  84. package/src/integrations/documentlistproperties.d.ts +29 -29
  85. package/src/integrations/documentlistproperties.js +1 -1
  86. package/src/integrations/entercommand.d.ts +16 -16
  87. package/src/integrations/entercommand.js +1 -1
  88. package/src/integrations/findandreplace.d.ts +21 -21
  89. package/src/integrations/findandreplace.js +1 -1
  90. package/src/integrations/font.d.ts +17 -17
  91. package/src/integrations/font.js +1 -1
  92. package/src/integrations/formatpainter.d.ts +17 -17
  93. package/src/integrations/formatpainter.js +1 -1
  94. package/src/integrations/heading.d.ts +17 -17
  95. package/src/integrations/heading.js +1 -1
  96. package/src/integrations/highlight.d.ts +17 -17
  97. package/src/integrations/highlight.js +1 -1
  98. package/src/integrations/horizontalline.d.ts +17 -17
  99. package/src/integrations/horizontalline.js +1 -1
  100. package/src/integrations/htmlembed.d.ts +17 -17
  101. package/src/integrations/htmlembed.js +1 -1
  102. package/src/integrations/image.d.ts +17 -17
  103. package/src/integrations/image.js +1 -1
  104. package/src/integrations/imagereplace.d.ts +23 -23
  105. package/src/integrations/imagereplace.js +1 -1
  106. package/src/integrations/importword.d.ts +18 -18
  107. package/src/integrations/importword.js +1 -1
  108. package/src/integrations/indent.d.ts +17 -17
  109. package/src/integrations/indent.js +1 -1
  110. package/src/integrations/inputcommand.d.ts +16 -16
  111. package/src/integrations/inputcommand.js +1 -1
  112. package/src/integrations/link.d.ts +17 -17
  113. package/src/integrations/link.js +1 -1
  114. package/src/integrations/list.d.ts +17 -17
  115. package/src/integrations/list.js +1 -1
  116. package/src/integrations/listproperties.d.ts +29 -29
  117. package/src/integrations/listproperties.js +1 -1
  118. package/src/integrations/mediaembed.d.ts +17 -17
  119. package/src/integrations/mediaembed.js +1 -1
  120. package/src/integrations/mention.d.ts +17 -17
  121. package/src/integrations/mention.js +1 -1
  122. package/src/integrations/pagebreak.d.ts +17 -17
  123. package/src/integrations/pagebreak.js +1 -1
  124. package/src/integrations/paragraph.d.ts +17 -17
  125. package/src/integrations/paragraph.js +1 -1
  126. package/src/integrations/removeformat.d.ts +17 -17
  127. package/src/integrations/removeformat.js +1 -1
  128. package/src/integrations/restrictededitingmode.d.ts +17 -17
  129. package/src/integrations/restrictededitingmode.js +1 -1
  130. package/src/integrations/shiftentercommand.d.ts +16 -16
  131. package/src/integrations/shiftentercommand.js +1 -1
  132. package/src/integrations/standardeditingmode.d.ts +17 -17
  133. package/src/integrations/standardeditingmode.js +1 -1
  134. package/src/integrations/style.d.ts +18 -18
  135. package/src/integrations/style.js +1 -1
  136. package/src/integrations/table.d.ts +42 -42
  137. package/src/integrations/table.js +1 -1
  138. package/src/integrations/tablecaption.d.ts +22 -22
  139. package/src/integrations/tablecaption.js +1 -1
  140. package/src/integrations/tableclipboard.d.ts +19 -19
  141. package/src/integrations/tableclipboard.js +1 -1
  142. package/src/integrations/tablecolumnresize.d.ts +26 -26
  143. package/src/integrations/tablecolumnresize.js +1 -1
  144. package/src/integrations/tableheadings.d.ts +22 -22
  145. package/src/integrations/tableheadings.js +1 -1
  146. package/src/integrations/tablemergesplit.d.ts +22 -22
  147. package/src/integrations/tablemergesplit.js +1 -1
  148. package/src/integrations/tableofcontents.d.ts +17 -17
  149. package/src/integrations/tableofcontents.js +1 -1
  150. package/src/integrations/tableproperties.d.ts +27 -27
  151. package/src/integrations/tableproperties.js +1 -1
  152. package/src/integrations/template.d.ts +17 -17
  153. package/src/integrations/template.js +1 -1
  154. package/src/integrations/title.d.ts +17 -17
  155. package/src/integrations/title.js +1 -1
  156. package/src/integrations/undo.d.ts +17 -17
  157. package/src/integrations/undo.js +1 -1
  158. package/src/integrations/utils.d.ts +21 -21
  159. package/src/integrations/utils.js +1 -1
  160. package/src/suggestion.d.ts +276 -276
  161. package/src/suggestion.js +1 -1
  162. package/src/suggestiondescriptionfactory.d.ts +163 -163
  163. package/src/suggestiondescriptionfactory.js +1 -1
  164. package/src/trackchanges.d.ts +244 -244
  165. package/src/trackchanges.js +1 -1
  166. package/src/trackchangesconfig.d.ts +75 -75
  167. package/src/trackchangesdata.d.ts +41 -41
  168. package/src/trackchangesdata.js +1 -1
  169. package/src/trackchangesediting.d.ts +468 -439
  170. package/src/trackchangesediting.js +1 -1
  171. package/src/trackchangesui.d.ts +38 -38
  172. package/src/trackchangesui.js +1 -1
  173. package/src/ui/suggestioncontroller.d.ts +37 -37
  174. package/src/ui/suggestioncontroller.js +1 -1
  175. package/src/ui/view/basesuggestionthreadview.d.ts +170 -170
  176. package/src/ui/view/basesuggestionthreadview.js +1 -1
  177. package/src/ui/view/suggestionthreadview.d.ts +182 -182
  178. package/src/ui/view/suggestionthreadview.js +1 -1
  179. package/src/utils/common-translations.d.ts +9 -9
  180. package/src/utils/common-translations.js +1 -1
  181. package/src/utils/utils.d.ts +30 -30
  182. package/src/utils/utils.js +1 -1
  183. package/theme/icons/track-changes-accept.svg +1 -1
  184. package/theme/icons/track-changes-discard.svg +1 -1
  185. package/theme/icons/track-changes.svg +1 -1
@@ -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 _0x44da=['track-changes-discard-suggestion-not-found','isEnabled','refresh','getRanges','discardSuggestion','plugins','canEditAt','get','_isEnabledBasedOnSelection','execute'];(function(_0x5c46e3,_0x44da73){const _0x5f503a=function(_0x3acb73){while(--_0x3acb73){_0x5c46e3['push'](_0x5c46e3['shift']());}};_0x5f503a(++_0x44da73);}(_0x44da,0x1e8));const _0x5f50=function(_0x5c46e3,_0x44da73){_0x5c46e3=_0x5c46e3-0x0;let _0x5f503a=_0x44da[_0x5c46e3];return _0x5f503a;};import{Command as _0x3df63e}from'ckeditor5/src/core';import{CKEditorError as _0x386dbe}from'ckeditor5/src/utils';export default class $ extends _0x3df63e{constructor(_0x359ed0,_0x5a2970){super(_0x359ed0),this['_suggestions']=_0x5a2970,this['refresh'](),this[_0x5f50('0x0')]=!0x1;}[_0x5f50('0x4')](){this[_0x5f50('0x3')]=!0x0;}[_0x5f50('0x1')](_0x8d0614){const _0x379e44=this['_suggestions'][_0x5f50('0x9')](_0x8d0614);if(!_0x379e44)throw new _0x386dbe(_0x5f50('0x2'),this);const _0x2bae3d=_0x379e44[_0x5f50('0x5')]();this['editor']['model'][_0x5f50('0x8')](_0x2bae3d)&&this['editor'][_0x5f50('0x7')][_0x5f50('0x9')]('TrackChangesEditing')[_0x5f50('0x6')](_0x379e44);}}
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 _0x37c0=['editor','some','refresh','_command','canEditAt','model','isEnabled','_suggestions','from','values'];(function(_0x59b4d1,_0x37c0e3){const _0x4c5d99=function(_0x54ab7c){while(--_0x54ab7c){_0x59b4d1['push'](_0x59b4d1['shift']());}};_0x4c5d99(++_0x37c0e3);}(_0x37c0,0x1dd));const _0x4c5d=function(_0x59b4d1,_0x37c0e3){_0x59b4d1=_0x59b4d1-0x0;let _0x4c5d99=_0x37c0[_0x59b4d1];return _0x4c5d99;};import{Command as _0x160690}from'ckeditor5/src/core';import{sortSuggestions as _0x2dedd8,executeCommandForSuggestions as _0x26501c}from'../utils/utils';export default class N extends _0x160690{constructor(_0x465bfe,_0x57ee11,_0x151d12){super(_0x465bfe),this['_command']=_0x57ee11,this[_0x4c5d('0x0')]=_0x151d12,this[_0x4c5d('0x5')](),this['_isEnabledBasedOnSelection']=!0x1;}[_0x4c5d('0x5')](){const _0x10fe77=Array[_0x4c5d('0x1')](this[_0x4c5d('0x0')][_0x4c5d('0x2')]())[_0x4c5d('0x4')](_0x24e320=>_0x24e320['isInContent']);this[_0x4c5d('0x9')]=this['_command']['isEnabled']&&_0x10fe77;}['execute'](){const _0x528db2=_0x2dedd8(Array[_0x4c5d('0x1')](this[_0x4c5d('0x0')][_0x4c5d('0x2')]()));for(const _0x5e212f of _0x528db2){const _0x1e3ea6=_0x5e212f['getRanges']();if(!this['editor'][_0x4c5d('0x8')][_0x4c5d('0x7')](_0x1e3ea6))return;}_0x26501c(this[_0x4c5d('0x3')][_0x4c5d('0x8')],this[_0x4c5d('0x6')],_0x528db2);}}
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 _0x48bc=['_suggestions','execute','_isEnabledBasedOnSelection','document','editor','_selectedSuggestions','_command','isEnabled','size','model','refresh','from'];(function(_0x35a277,_0x48bcf9){const _0x2cdfd6=function(_0x5066a6){while(--_0x5066a6){_0x35a277['push'](_0x35a277['shift']());}};_0x2cdfd6(++_0x48bcf9);}(_0x48bc,0x145));const _0x2cdf=function(_0x35a277,_0x48bcf9){_0x35a277=_0x35a277-0x0;let _0x2cdfd6=_0x48bc[_0x35a277];return _0x2cdfd6;};import{Command as _0x2814e5}from'ckeditor5/src/core';import{sortSuggestions as _0x587b73,getSelectedSuggestions as _0x15be24,executeCommandForSuggestions as _0x2873bd}from'../utils/utils';export default class R extends _0x2814e5{constructor(_0x2549d4,_0x5ab46b,_0xc25eb3){super(_0x2549d4),this[_0x2cdf('0x5')]=_0x5ab46b,this[_0x2cdf('0xb')]=_0xc25eb3,this[_0x2cdf('0x4')]=new Set(),this['refresh'](),this[_0x2cdf('0x1')]=!0x1;}[_0x2cdf('0x9')](){const _0xfac5a1=this[_0x2cdf('0x3')][_0x2cdf('0x8')][_0x2cdf('0x2')]['selection'],_0x5018ca=Array[_0x2cdf('0xa')](this['_suggestions']['values']());this[_0x2cdf('0x4')]=_0x15be24(_0xfac5a1,_0x5018ca),this[_0x2cdf('0x6')]=this[_0x2cdf('0x5')]['isEnabled']&&!!this['_selectedSuggestions'][_0x2cdf('0x7')];}[_0x2cdf('0x0')](){const _0x3fc560=_0x587b73(Array[_0x2cdf('0xa')](this[_0x2cdf('0x4')]));for(const _0x157c57 of _0x3fc560){const _0x4016b6=_0x157c57['getRanges']();if(!this[_0x2cdf('0x3')][_0x2cdf('0x8')]['canEditAt'](_0x4016b6))return;}_0x2873bd(this[_0x2cdf('0x3')][_0x2cdf('0x8')],this[_0x2cdf('0x5')],_0x3fc560);}}
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 _0x2b8f=['has','value','commands','editor','TrackChangesCommand','clearForceDisabled','forceDisabled','_isEnabledBasedOnSelection','refresh','_enabledCommands','execute','_disableUnsupportedCommands','_enableCommands','affectsData'];(function(_0x1e11b5,_0x2b8fce){const _0x2a94cf=function(_0x2f088d){while(--_0x2f088d){_0x1e11b5['push'](_0x1e11b5['shift']());}};_0x2a94cf(++_0x2b8fce);}(_0x2b8f,0xe2));const _0x2a94=function(_0x1e11b5,_0x2b8fce){_0x1e11b5=_0x1e11b5-0x0;let _0x2a94cf=_0x2b8f[_0x1e11b5];return _0x2a94cf;};import{Command as _0x1a7584}from'ckeditor5/src/core';export default class _ extends _0x1a7584{constructor(_0x5e82a2,_0x164275){super(_0x5e82a2),this['_enabledCommands']=_0x164275,this[_0x2a94('0xd')]=!0x1,this[_0x2a94('0x6')](),this[_0x2a94('0x5')]=!0x1;}[_0x2a94('0x6')](){this['isEnabled']=!0x0;}[_0x2a94('0x8')](){this[_0x2a94('0xd')]=!this['value'],this[_0x2a94('0xd')]?this[_0x2a94('0x9')]():this[_0x2a94('0xa')]();}['_disableUnsupportedCommands'](){for(const _0x1643d4 of this['editor']['commands'][_0x2a94('0x0')]())_0x1643d4['affectsData']&&!this[_0x2a94('0x7')]['has'](_0x1643d4)&&_0x1643d4[_0x2a94('0x4')](_0x2a94('0x2'));}[_0x2a94('0xa')](){for(const _0x40367a of this[_0x2a94('0x1')][_0x2a94('0x0')][_0x2a94('0x0')]())_0x40367a[_0x2a94('0xb')]&&!this[_0x2a94('0x7')][_0x2a94('0xc')](_0x40367a)&&_0x40367a[_0x2a94('0x3')](_0x2a94('0x2'));}}
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 _0x1887=['commandName','has','*Format:*\x20%0','justify','FORMAT_ALIGN_TO_LEFT','right','get','commandParams','change','left','document','FORMAT_JUSTIFY_TEXT','registerDescriptionCallback','locale','checkAttribute','model','plugins','schema','FORMAT_ALIGN_TO_CENTER','selection','editor','afterInit','contentLanguageDirection','ltr','from','TrackChangesEditing','value','_descriptionFactory','markBlockFormat','filter','alignment','getAttribute'];(function(_0x272ec3,_0x1887d1){const _0x54020e=function(_0x10cbfa){while(--_0x10cbfa){_0x272ec3['push'](_0x272ec3['shift']());}};_0x54020e(++_0x1887d1);}(_0x1887,0x108));const _0x5402=function(_0x272ec3,_0x1887d1){_0x272ec3=_0x272ec3-0x0;let _0x54020e=_0x1887[_0x272ec3];return _0x54020e;};import{Plugin as _0x474ddf}from'ckeditor5/src/core';import{getTranslation as _0x2fc84b}from'../utils/common-translations';export default class x extends _0x474ddf{[_0x5402('0xd')](){const _0x95f25e=this['editor'],_0x5f34ce=_0x95f25e[_0x5402('0x5')];if(!_0x95f25e[_0x5402('0x8')][_0x5402('0x19')]('AlignmentEditing'))return;const _0x3999ed=_0x95f25e[_0x5402('0x8')][_0x5402('0x1e')](_0x5402('0x11'));_0x3999ed['enableCommand']('alignment',(_0x7d28d0,_0xab200={})=>{let _0x38bb8d=_0xab200[_0x5402('0x12')];_0xab200[_0x5402('0x12')]||(_0x38bb8d=_0x5402('0xf')===_0x95f25e['locale'][_0x5402('0xe')]?_0x5402('0x1'):'right');const _0x25172d=Array[_0x5402('0x10')](this[_0x5402('0xc')][_0x5402('0x7')][_0x5402('0x2')][_0x5402('0xb')]['getSelectedBlocks']())[_0x5402('0x15')](_0x4aff64=>function(_0x1eeb3e,_0x5e5c06,_0x2d7234){const _0x579f8e=_0x1eeb3e[_0x5402('0x17')](_0x5402('0x16'))||null;return _0x5e5c06[_0x5402('0x6')](_0x1eeb3e,_0x5402('0x16'))&&_0x2d7234!=_0x579f8e;}(_0x4aff64,this[_0x5402('0xc')][_0x5402('0x7')][_0x5402('0x9')],_0x38bb8d));_0x95f25e['model'][_0x5402('0x0')](()=>{for(const _0x4983c2 of _0x25172d)_0x3999ed[_0x5402('0x14')](_0x4983c2,{'commandName':_0x5402('0x16'),'commandParams':[{'value':_0x38bb8d}]});});}),_0x3999ed[_0x5402('0x13')][_0x5402('0x4')](_0x5aa08d=>{const {data:_0x7ff55}=_0x5aa08d;if(_0x7ff55&&_0x5402('0x16')==_0x7ff55[_0x5402('0x18')]){const _0x39eb85=_0x7ff55[_0x5402('0x1f')][0x0]['value'];return{'type':'format','content':_0x2fc84b(_0x5f34ce,_0x5402('0x1a'),function(_0x589104){switch(_0x589104){case'left':return _0x2fc84b(_0x5f34ce,_0x5402('0x1c'));case _0x5402('0x1d'):return _0x2fc84b(_0x5f34ce,'FORMAT_ALIGN_TO_RIGHT');case'center':return _0x2fc84b(_0x5f34ce,_0x5402('0xa'));case _0x5402('0x1b'):return _0x2fc84b(_0x5f34ce,_0x5402('0x3'));}}(_0x39eb85))};}});}}
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
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x56bf=['FORMAT_CODE','FORMAT_ITALIC','_descriptionFactory','commandName','BoldEditing','isCollapsed','SuperscriptEditing','SubscriptEditing','forceValue','plugins','CodeEditing','subscript','code','document','registerDescriptionCallback','UnderlineEditing','afterInit','from','StrikethroughEditing','*Format:*\x20%0','getRanges','has','TrackChangesEditing','commands','bold','commandParams','get','FORMAT_STRIKETHROUGH','*Remove\x20format:*\x20%0','markInlineFormat','enableCommand','underline','slice','format','model'];(function(_0xbec7a6,_0x56bfbb){const _0x3ccae0=function(_0x45dedf){while(--_0x45dedf){_0xbec7a6['push'](_0xbec7a6['shift']());}};_0x3ccae0(++_0x56bfbb);}(_0x56bf,0x96));const _0x3cca=function(_0xbec7a6,_0x56bfbb){_0xbec7a6=_0xbec7a6-0x0;let _0x3ccae0=_0x56bf[_0xbec7a6];return _0x3ccae0;};import{Plugin as _0x6030fa}from'ckeditor5/src/core';import{getTranslation as _0x4dcd31}from'../utils/common-translations';import{getRangesWithAttribute as _0x3cc6cd}from'./utils';const Kt=[_0x3cca('0x1d'),'ItalicEditing',_0x3cca('0x5'),_0x3cca('0x0'),_0x3cca('0x8'),_0x3cca('0x20'),_0x3cca('0x1f')];export default class U extends _0x6030fa{[_0x3cca('0x6')](){const _0x20b644=this['editor'],_0x3acd29=_0x20b644[_0x3cca('0x18')],_0x2963db=_0x20b644[_0x3cca('0x22')][_0x3cca('0x10')](_0x3cca('0xc')),_0x543d27=_0x20b644['locale'];for(const _0xa30fb5 of Kt){if(!_0x20b644['plugins'][_0x3cca('0xb')](_0xa30fb5))continue;const _0x1cfdee=_0xa30fb5[_0x3cca('0x16')](0x0,-0x7)['toLowerCase'](),_0xc1fc8c=_0x20b644[_0x3cca('0xd')]['get'](_0x1cfdee);_0x2963db[_0x3cca('0x14')](_0x1cfdee,(_0x5e0e31,_0x2c1189={})=>{const _0x5a2a24=_0x3acd29[_0x3cca('0x3')]['selection'];if(_0x5a2a24[_0x3cca('0x1e')])return void _0x5e0e31(_0x2c1189);const _0x1adef1=void 0x0!==_0x2c1189['forceValue']?_0x2c1189[_0x3cca('0x21')]:!_0xc1fc8c['value'];_0x3acd29['change'](()=>{const _0x36cf49=Array[_0x3cca('0x7')](_0x5a2a24[_0x3cca('0xa')]());for(const _0x1dc6a3 of _0x36cf49){const _0x52a0f4=_0x1adef1?[_0x1dc6a3]:_0x3cc6cd(_0x1cfdee,_0x1dc6a3,_0x3acd29);for(const _0x4936dd of _0x52a0f4)_0x2963db[_0x3cca('0x13')](_0x4936dd,{'commandName':_0x1cfdee,'commandParams':[{'forceValue':_0x1adef1}]});}});});}function _0x57354b(_0x2275da,_0x4eb310){_0x2963db[_0x3cca('0x1b')][_0x3cca('0x4')](_0x1e377a=>{const {data:_0x33c70a}=_0x1e377a;if(_0x33c70a&&_0x33c70a[_0x3cca('0x1c')]===_0x2275da)return _0x33c70a[_0x3cca('0xf')][0x0]['forceValue']?{'type':_0x3cca('0x17'),'content':_0x4dcd31(_0x543d27,_0x3cca('0x9'),_0x4eb310)}:{'type':_0x3cca('0x17'),'content':_0x4dcd31(_0x543d27,_0x3cca('0x12'),_0x4eb310)};});}_0x57354b(_0x3cca('0xe'),_0x4dcd31(_0x543d27,'FORMAT_BOLD')),_0x57354b('italic',_0x4dcd31(_0x543d27,_0x3cca('0x1a'))),_0x57354b(_0x3cca('0x15'),_0x4dcd31(_0x543d27,'FORMAT_UNDERLINE')),_0x57354b(_0x3cca('0x2'),_0x4dcd31(_0x543d27,_0x3cca('0x19'))),_0x57354b('strikethrough',_0x4dcd31(_0x543d27,_0x3cca('0x11'))),_0x57354b(_0x3cca('0x1'),_0x4dcd31(_0x543d27,'FORMAT_SUBSCRIPT')),_0x57354b('superscript',_0x4dcd31(_0x543d27,'FORMAT_SUPERSCRIPT'));}}
23
+ const _0x3293=['getRanges','FORMAT_UNDERLINE','FORMAT_ITALIC','locale','strikethrough','commandName','slice','afterInit','editor','markInlineFormat','toLowerCase','BoldEditing','value','code','FORMAT_SUPERSCRIPT','commands','isCollapsed','forceValue','enableCommand','model','UnderlineEditing','StrikethroughEditing','has','format','document','*Format:*\x20%0','get','superscript','plugins','SuperscriptEditing','_descriptionFactory','FORMAT_STRIKETHROUGH','selection','CodeEditing','FORMAT_BOLD','FORMAT_SUBSCRIPT','SubscriptEditing','subscript','FORMAT_CODE'];(function(_0x3a6c97,_0x329359){const _0x1dbc7c=function(_0x11ee6d){while(--_0x11ee6d){_0x3a6c97['push'](_0x3a6c97['shift']());}};_0x1dbc7c(++_0x329359);}(_0x3293,0x159));const _0x1dbc=function(_0x3a6c97,_0x329359){_0x3a6c97=_0x3a6c97-0x0;let _0x1dbc7c=_0x3293[_0x3a6c97];return _0x1dbc7c;};import{Plugin as _0x30573d}from'ckeditor5/src/core';import{getTranslation as _0x4ec84d}from'../utils/common-translations';import{getRangesWithAttribute as _0x44d0e5}from'./utils';const Zt=[_0x1dbc('0x11'),'ItalicEditing',_0x1dbc('0x1a'),_0x1dbc('0x0'),_0x1dbc('0x1b'),_0x1dbc('0x3'),_0x1dbc('0x23')];export default class U extends _0x30573d{[_0x1dbc('0xd')](){const _0x207a18=this[_0x1dbc('0xe')],_0x3afe2e=_0x207a18[_0x1dbc('0x19')],_0x342417=_0x207a18['plugins'][_0x1dbc('0x20')]('TrackChangesEditing'),_0x5e8a0a=_0x207a18[_0x1dbc('0x9')];for(const _0x718ed6 of Zt){if(!_0x207a18[_0x1dbc('0x22')][_0x1dbc('0x1c')](_0x718ed6))continue;const _0x32b8f1=_0x718ed6[_0x1dbc('0xc')](0x0,-0x7)[_0x1dbc('0x10')](),_0x22cc93=_0x207a18[_0x1dbc('0x15')]['get'](_0x32b8f1);_0x342417[_0x1dbc('0x18')](_0x32b8f1,(_0x10b24c,_0x133ed2={})=>{const _0x9e4a=_0x3afe2e[_0x1dbc('0x1e')][_0x1dbc('0x26')];if(_0x9e4a[_0x1dbc('0x16')])return void _0x10b24c(_0x133ed2);const _0x1bf442=void 0x0!==_0x133ed2[_0x1dbc('0x17')]?_0x133ed2[_0x1dbc('0x17')]:!_0x22cc93[_0x1dbc('0x12')];_0x3afe2e['change'](()=>{const _0x4f5568=Array['from'](_0x9e4a[_0x1dbc('0x6')]());for(const _0x1c145d of _0x4f5568){const _0x482329=_0x1bf442?[_0x1c145d]:_0x44d0e5(_0x32b8f1,_0x1c145d,_0x3afe2e);for(const _0x28e7a3 of _0x482329)_0x342417[_0x1dbc('0xf')](_0x28e7a3,{'commandName':_0x32b8f1,'commandParams':[{'forceValue':_0x1bf442}]});}});});}function _0x5c5af(_0x325105,_0x3f55b5){_0x342417[_0x1dbc('0x24')]['registerDescriptionCallback'](_0x33049e=>{const {data:_0x5511ef}=_0x33049e;if(_0x5511ef&&_0x5511ef[_0x1dbc('0xb')]===_0x325105)return _0x5511ef['commandParams'][0x0][_0x1dbc('0x17')]?{'type':_0x1dbc('0x1d'),'content':_0x4ec84d(_0x5e8a0a,_0x1dbc('0x1f'),_0x3f55b5)}:{'type':_0x1dbc('0x1d'),'content':_0x4ec84d(_0x5e8a0a,'*Remove\x20format:*\x20%0',_0x3f55b5)};});}_0x5c5af('bold',_0x4ec84d(_0x5e8a0a,_0x1dbc('0x1'))),_0x5c5af('italic',_0x4ec84d(_0x5e8a0a,_0x1dbc('0x8'))),_0x5c5af('underline',_0x4ec84d(_0x5e8a0a,_0x1dbc('0x7'))),_0x5c5af(_0x1dbc('0x13'),_0x4ec84d(_0x5e8a0a,_0x1dbc('0x5'))),_0x5c5af(_0x1dbc('0xa'),_0x4ec84d(_0x5e8a0a,_0x1dbc('0x25'))),_0x5c5af(_0x1dbc('0x4'),_0x4ec84d(_0x5e8a0a,_0x1dbc('0x2'))),_0x5c5af(_0x1dbc('0x21'),_0x4ec84d(_0x5e8a0a,_0x1dbc('0x14')));}}
@@ -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/blockquote
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- /**
10
- * Provides track changes plugin integration for block quote feature.
11
- */
12
- export default class TrackChangesBlockQuote 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/blockquote
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ /**
10
+ * Provides track changes plugin integration for block quote feature.
11
+ */
12
+ export default class TrackChangesBlockQuote extends Plugin {
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ afterInit(): void;
17
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x42ed=['markBlockFormat','value','parent','change','get','checkChild','afterInit','from','commandName','forceValue','plugins','TrackChangesEditing','commandParams','_descriptionFactory','commands','locale','ELEMENT_BLOCK_QUOTE','document','*Format:*\x20%0','*Remove\x20format:*\x20%0','getSelectedBlocks','BlockQuoteEditing','has','filter','editor','model','schema','name','$root','format','blockQuote'];(function(_0x22efb0,_0x42ed1c){const _0x572e3e=function(_0x14252e){while(--_0x14252e){_0x22efb0['push'](_0x22efb0['shift']());}};_0x572e3e(++_0x42ed1c);}(_0x42ed,0xf6));const _0x572e=function(_0x22efb0,_0x42ed1c){_0x22efb0=_0x22efb0-0x0;let _0x572e3e=_0x42ed[_0x22efb0];return _0x572e3e;};import{Plugin as _0x564e84}from'ckeditor5/src/core';import{getTranslation as _0x1240b9}from'../utils/common-translations';import{getRangesOfBlockGroups as _0xc63868}from'../utils/utils';export default class j extends _0x564e84{[_0x572e('0x8')](){const _0x4570a6=this[_0x572e('0x1a')],_0x1d45d9=_0x4570a6[_0x572e('0x11')];if(!_0x4570a6[_0x572e('0xc')][_0x572e('0x18')](_0x572e('0x17')))return;const _0x45a384=_0x4570a6[_0x572e('0xc')][_0x572e('0x6')](_0x572e('0xd')),_0x429a2b=this['editor'][_0x572e('0x10')][_0x572e('0x6')](_0x572e('0x1'));_0x45a384['enableCommand'](_0x572e('0x1'),(_0x1f886d,_0x3fb7ec={})=>{const _0x52c88c=this[_0x572e('0x1a')][_0x572e('0x1b')][_0x572e('0x13')]['selection'],_0x12d730=_0x3fb7ec&&void 0x0!==_0x3fb7ec[_0x572e('0xb')]?_0x3fb7ec[_0x572e('0xb')]:!_0x429a2b[_0x572e('0x3')];let _0x47802b=[];if(_0x12d730){const _0x12674e=Array[_0x572e('0x9')](_0x52c88c[_0x572e('0x16')]())[_0x572e('0x19')](_0x57fdc4=>Xt(_0x57fdc4)||function(_0x593cee,_0x3cb38b){const _0x4eaf3c=_0x3cb38b[_0x572e('0x7')](_0x593cee[_0x572e('0x4')],_0x572e('0x1')),_0x50bea7=_0x3cb38b[_0x572e('0x7')]([_0x572e('0x1e'),_0x572e('0x1')],_0x593cee);return _0x4eaf3c&&_0x50bea7;}(_0x57fdc4,this[_0x572e('0x1a')][_0x572e('0x1b')][_0x572e('0x1c')]));_0x47802b=_0xc63868(_0x12674e,_0x4570a6[_0x572e('0x1b')]);}else{const _0x53371a=Array['from'](_0x52c88c[_0x572e('0x16')]())[_0x572e('0x19')](_0x2c579f=>Xt(_0x2c579f));_0x47802b=_0xc63868(_0x53371a,_0x4570a6[_0x572e('0x1b')]);}_0x4570a6['model'][_0x572e('0x5')](()=>{for(const _0x2858e8 of _0x47802b)_0x45a384[_0x572e('0x2')](_0x2858e8,{'commandName':_0x572e('0x1'),'commandParams':[{'forceValue':_0x12d730}]});});}),_0x45a384[_0x572e('0xf')]['registerDescriptionCallback'](_0x203465=>{const {data:_0x39ca8a}=_0x203465;if(_0x39ca8a&&_0x572e('0x1')==_0x39ca8a[_0x572e('0xa')]){const _0x3428d2=_0x1240b9(_0x1d45d9,_0x572e('0x12'));return _0x39ca8a[_0x572e('0xe')][0x0][_0x572e('0xb')]?{'type':_0x572e('0x0'),'content':_0x1240b9(_0x1d45d9,_0x572e('0x14'),_0x3428d2)}:{'type':'format','content':_0x1240b9(_0x1d45d9,_0x572e('0x15'),_0x3428d2)};}});}}function Xt(_0x19a670){return'blockQuote'==_0x19a670['parent'][_0x572e('0x1d')];}
23
+ const _0x3553=['BlockQuoteEditing','editor','blockQuote','afterInit','schema','locale','getSelectedBlocks','checkChild','*Remove\x20format:*\x20%0','enableCommand','filter','model','parent','commandName','ELEMENT_BLOCK_QUOTE','plugins','selection','*Format:*\x20%0','has','format','get','commandParams','forceValue','value','name','change','commands'];(function(_0xf5ca9a,_0x355366){const _0x488795=function(_0x162cb0){while(--_0x162cb0){_0xf5ca9a['push'](_0xf5ca9a['shift']());}};_0x488795(++_0x355366);}(_0x3553,0xa4));const _0x4887=function(_0xf5ca9a,_0x355366){_0xf5ca9a=_0xf5ca9a-0x0;let _0x488795=_0x3553[_0xf5ca9a];return _0x488795;};import{Plugin as _0xd9cfaf}from'ckeditor5/src/core';import{getTranslation as _0xe3a237}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x4aec1a}from'../utils/utils';export default class O extends _0xd9cfaf{[_0x4887('0x1')](){const _0x5c3bce=this[_0x4887('0x1a')],_0x569fce=_0x5c3bce[_0x4887('0x3')];if(!_0x5c3bce[_0x4887('0xd')][_0x4887('0x10')](_0x4887('0x19')))return;const _0x45bc35=_0x5c3bce[_0x4887('0xd')][_0x4887('0x12')]('TrackChangesEditing'),_0x9f680b=this[_0x4887('0x1a')][_0x4887('0x18')][_0x4887('0x12')](_0x4887('0x0'));_0x45bc35[_0x4887('0x7')]('blockQuote',(_0x5abfab,_0x484627={})=>{const _0x7622a4=this[_0x4887('0x1a')]['model']['document'][_0x4887('0xe')],_0x102a1a=_0x484627&&void 0x0!==_0x484627[_0x4887('0x14')]?_0x484627[_0x4887('0x14')]:!_0x9f680b[_0x4887('0x15')];let _0x5ea788=[];if(_0x102a1a){const _0x193b5c=Array['from'](_0x7622a4[_0x4887('0x4')]())['filter'](_0x3c6c92=>oo(_0x3c6c92)||function(_0xaa048f,_0x51c4f8){const _0x226891=_0x51c4f8[_0x4887('0x5')](_0xaa048f['parent'],_0x4887('0x0')),_0x40e5a3=_0x51c4f8[_0x4887('0x5')](['$root',_0x4887('0x0')],_0xaa048f);return _0x226891&&_0x40e5a3;}(_0x3c6c92,this[_0x4887('0x1a')][_0x4887('0x9')][_0x4887('0x2')]));_0x5ea788=_0x4aec1a(_0x193b5c,_0x5c3bce[_0x4887('0x9')]);}else{const _0xb234f7=Array['from'](_0x7622a4[_0x4887('0x4')]())[_0x4887('0x8')](_0x394359=>oo(_0x394359));_0x5ea788=_0x4aec1a(_0xb234f7,_0x5c3bce['model']);}_0x5c3bce[_0x4887('0x9')][_0x4887('0x17')](()=>{for(const _0xbf3024 of _0x5ea788)_0x45bc35['markBlockFormat'](_0xbf3024,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x102a1a}]});});}),_0x45bc35['_descriptionFactory']['registerDescriptionCallback'](_0x4ad9b0=>{const {data:_0x28a08b}=_0x4ad9b0;if(_0x28a08b&&'blockQuote'==_0x28a08b[_0x4887('0xb')]){const _0x456f07=_0xe3a237(_0x569fce,_0x4887('0xc'));return _0x28a08b[_0x4887('0x13')][0x0]['forceValue']?{'type':_0x4887('0x11'),'content':_0xe3a237(_0x569fce,_0x4887('0xf'),_0x456f07)}:{'type':_0x4887('0x11'),'content':_0xe3a237(_0x569fce,_0x4887('0x6'),_0x456f07)};}});}}function oo(_0x27e746){return _0x4887('0x0')==_0x27e746[_0x4887('0xa')][_0x4887('0x16')];}
@@ -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/ckbox
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- /**
10
- * Provides track changes plugin integration for the CKBox feature.
11
- */
12
- export default class TrackChangesCKBox 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/ckbox
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ /**
10
+ * Provides track changes plugin integration for the CKBox feature.
11
+ */
12
+ export default class TrackChangesCKBox extends Plugin {
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ afterInit(): void;
17
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3ba8=['enableCommand','TrackChangesEditing','plugins','afterInit','ckbox','editor'];(function(_0x3546cf,_0x3ba8fc){const _0xd72efa=function(_0x1a11a8){while(--_0x1a11a8){_0x3546cf['push'](_0x3546cf['shift']());}};_0xd72efa(++_0x3ba8fc);}(_0x3ba8,0x71));const _0xd72e=function(_0x3546cf,_0x3ba8fc){_0x3546cf=_0x3546cf-0x0;let _0xd72efa=_0x3ba8[_0x3546cf];return _0xd72efa;};import{Plugin as _0x3a8a14}from'ckeditor5/src/core';export default class E extends _0x3a8a14{[_0xd72e('0x4')](){const _0x5deab7=this[_0xd72e('0x0')];_0x5deab7['commands']['get'](_0xd72e('0x5'))&&_0x5deab7[_0xd72e('0x3')]['get'](_0xd72e('0x2'))[_0xd72e('0x1')]('ckbox');}}
23
+ const _0x1fb4=['TrackChangesEditing','ckbox','get','enableCommand','commands','plugins','editor'];(function(_0x493117,_0x1fb4be){const _0x4e19ce=function(_0x1e04c0){while(--_0x1e04c0){_0x493117['push'](_0x493117['shift']());}};_0x4e19ce(++_0x1fb4be);}(_0x1fb4,0x197));const _0x4e19=function(_0x493117,_0x1fb4be){_0x493117=_0x493117-0x0;let _0x4e19ce=_0x1fb4[_0x493117];return _0x4e19ce;};import{Plugin as _0x50cea5}from'ckeditor5/src/core';export default class E extends _0x50cea5{['afterInit'](){const _0x7b10fd=this[_0x4e19('0x5')];_0x7b10fd[_0x4e19('0x3')][_0x4e19('0x1')](_0x4e19('0x0'))&&_0x7b10fd[_0x4e19('0x4')][_0x4e19('0x1')](_0x4e19('0x6'))[_0x4e19('0x2')](_0x4e19('0x0'));}}