@ckeditor/ckeditor5-track-changes 38.2.0-alpha.1 → 39.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/README.md +0 -1
  2. package/build/track-changes.js +2 -2
  3. package/build/translations/gl.js +1 -1
  4. package/build/translations/sq.js +1 -0
  5. package/lang/translations/gl.po +23 -23
  6. package/lang/translations/sq.po +487 -0
  7. package/package.json +4 -5
  8. package/src/augmentation.d.ts +6 -2
  9. package/src/augmentation.js +1 -1
  10. package/src/commands/acceptsuggestioncommand.d.ts +6 -2
  11. package/src/commands/acceptsuggestioncommand.js +2 -2
  12. package/src/commands/discardsuggestioncommand.d.ts +6 -2
  13. package/src/commands/discardsuggestioncommand.js +2 -2
  14. package/src/commands/executeonallsuggestionscommand.d.ts +6 -2
  15. package/src/commands/executeonallsuggestionscommand.js +2 -2
  16. package/src/commands/executeonselectedsuggestionscommand.d.ts +6 -2
  17. package/src/commands/executeonselectedsuggestionscommand.js +2 -2
  18. package/src/commands/trackchangescommand.d.ts +5 -1
  19. package/src/commands/trackchangescommand.js +2 -2
  20. package/src/index.d.ts +16 -12
  21. package/src/index.js +2 -2
  22. package/src/integrations/alignment.d.ts +5 -1
  23. package/src/integrations/alignment.js +2 -2
  24. package/src/integrations/basicstyles.d.ts +5 -1
  25. package/src/integrations/basicstyles.js +2 -2
  26. package/src/integrations/blockquote.d.ts +5 -1
  27. package/src/integrations/blockquote.js +2 -2
  28. package/src/integrations/ckbox.d.ts +5 -1
  29. package/src/integrations/ckbox.js +2 -2
  30. package/src/integrations/codeblock.d.ts +5 -1
  31. package/src/integrations/codeblock.js +2 -2
  32. package/src/integrations/comments.d.ts +5 -1
  33. package/src/integrations/comments.js +2 -2
  34. package/src/integrations/deletecommand.d.ts +6 -2
  35. package/src/integrations/deletecommand.js +2 -2
  36. package/src/integrations/documentlist.d.ts +5 -1
  37. package/src/integrations/documentlist.js +2 -2
  38. package/src/integrations/documentlistproperties.d.ts +7 -3
  39. package/src/integrations/documentlistproperties.js +2 -2
  40. package/src/integrations/entercommand.d.ts +6 -2
  41. package/src/integrations/entercommand.js +2 -2
  42. package/src/integrations/findandreplace.d.ts +5 -1
  43. package/src/integrations/findandreplace.js +2 -2
  44. package/src/integrations/font.d.ts +5 -1
  45. package/src/integrations/font.js +2 -2
  46. package/src/integrations/formatpainter.d.ts +5 -1
  47. package/src/integrations/formatpainter.js +2 -2
  48. package/src/integrations/heading.d.ts +5 -1
  49. package/src/integrations/heading.js +2 -2
  50. package/src/integrations/highlight.d.ts +5 -1
  51. package/src/integrations/highlight.js +2 -2
  52. package/src/integrations/horizontalline.d.ts +5 -1
  53. package/src/integrations/horizontalline.js +2 -2
  54. package/src/integrations/htmlembed.d.ts +5 -1
  55. package/src/integrations/htmlembed.js +2 -2
  56. package/src/integrations/image.d.ts +5 -1
  57. package/src/integrations/image.js +2 -2
  58. package/src/integrations/imagereplace.d.ts +7 -3
  59. package/src/integrations/imagereplace.js +2 -2
  60. package/src/integrations/importword.d.ts +5 -1
  61. package/src/integrations/importword.js +2 -2
  62. package/src/integrations/indent.d.ts +5 -1
  63. package/src/integrations/indent.js +2 -2
  64. package/src/integrations/inputcommand.d.ts +6 -2
  65. package/src/integrations/inputcommand.js +2 -2
  66. package/src/integrations/link.d.ts +5 -1
  67. package/src/integrations/link.js +2 -2
  68. package/src/integrations/list.d.ts +5 -1
  69. package/src/integrations/list.js +2 -2
  70. package/src/integrations/listproperties.d.ts +7 -3
  71. package/src/integrations/listproperties.js +2 -2
  72. package/src/integrations/mediaembed.d.ts +5 -1
  73. package/src/integrations/mediaembed.js +2 -2
  74. package/src/integrations/mention.d.ts +5 -1
  75. package/src/integrations/mention.js +2 -2
  76. package/src/integrations/pagebreak.d.ts +5 -1
  77. package/src/integrations/pagebreak.js +2 -2
  78. package/src/integrations/paragraph.d.ts +5 -1
  79. package/src/integrations/paragraph.js +2 -2
  80. package/src/integrations/removeformat.d.ts +5 -1
  81. package/src/integrations/removeformat.js +2 -2
  82. package/src/integrations/restrictededitingmode.d.ts +5 -1
  83. package/src/integrations/restrictededitingmode.js +2 -2
  84. package/src/integrations/shiftentercommand.d.ts +6 -2
  85. package/src/integrations/shiftentercommand.js +2 -2
  86. package/src/integrations/standardeditingmode.d.ts +5 -1
  87. package/src/integrations/standardeditingmode.js +2 -2
  88. package/src/integrations/style.d.ts +5 -1
  89. package/src/integrations/style.js +2 -2
  90. package/src/integrations/table.d.ts +5 -1
  91. package/src/integrations/table.js +2 -2
  92. package/src/integrations/tablecaption.d.ts +6 -2
  93. package/src/integrations/tablecaption.js +2 -2
  94. package/src/integrations/tableclipboard.d.ts +4 -3
  95. package/src/integrations/tableclipboard.js +2 -2
  96. package/src/integrations/tablecolumnresize.d.ts +8 -4
  97. package/src/integrations/tablecolumnresize.js +2 -2
  98. package/src/integrations/tableheadings.d.ts +6 -2
  99. package/src/integrations/tableheadings.js +2 -2
  100. package/src/integrations/tablemergesplit.d.ts +6 -2
  101. package/src/integrations/tablemergesplit.js +2 -2
  102. package/src/integrations/tableofcontents.d.ts +5 -1
  103. package/src/integrations/tableofcontents.js +2 -2
  104. package/src/integrations/tableproperties.d.ts +8 -4
  105. package/src/integrations/tableproperties.js +2 -2
  106. package/src/integrations/template.d.ts +5 -1
  107. package/src/integrations/template.js +2 -2
  108. package/src/integrations/title.d.ts +5 -1
  109. package/src/integrations/title.js +2 -2
  110. package/src/integrations/undo.d.ts +5 -1
  111. package/src/integrations/undo.js +2 -2
  112. package/src/integrations/utils.d.ts +7 -3
  113. package/src/integrations/utils.js +2 -2
  114. package/src/suggestion.d.ts +15 -5
  115. package/src/suggestion.js +2 -2
  116. package/src/suggestiondescriptionfactory.d.ts +5 -5
  117. package/src/suggestiondescriptionfactory.js +2 -2
  118. package/src/trackchanges.d.ts +10 -6
  119. package/src/trackchanges.js +2 -2
  120. package/src/trackchangesconfig.d.ts +5 -1
  121. package/src/trackchangesconfig.js +1 -1
  122. package/src/trackchangesdata.d.ts +6 -2
  123. package/src/trackchangesdata.js +2 -2
  124. package/src/trackchangesediting.d.ts +55 -51
  125. package/src/trackchangesediting.js +2 -2
  126. package/src/trackchangesui.d.ts +7 -3
  127. package/src/trackchangesui.js +2 -2
  128. package/src/ui/suggestioncontroller.d.ts +7 -6
  129. package/src/ui/suggestioncontroller.js +2 -2
  130. package/src/ui/view/basesuggestionthreadview.d.ts +10 -6
  131. package/src/ui/view/basesuggestionthreadview.js +2 -2
  132. package/src/ui/view/suggestionthreadview.d.ts +7 -7
  133. package/src/ui/view/suggestionthreadview.js +2 -2
  134. package/src/utils/common-translations.d.ts +5 -1
  135. package/src/utils/common-translations.js +2 -2
  136. package/src/utils/utils.d.ts +8 -4
  137. package/src/utils/utils.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-track-changes",
3
- "version": "38.2.0-alpha.1",
3
+ "version": "39.0.1",
4
4
  "description": "CKEditor 5 track changes plugin.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -29,7 +29,6 @@
29
29
  "framework"
30
30
  ],
31
31
  "main": "src/index.js",
32
- "type": "module",
33
32
  "files": [
34
33
  "build",
35
34
  "lang",
@@ -40,9 +39,9 @@
40
39
  "CHANGELOG.md"
41
40
  ],
42
41
  "dependencies": {
43
- "ckeditor5": "38.2.0-alpha.1",
44
- "ckeditor5-collaboration": "38.2.0-alpha.1",
45
- "lodash-es": "^4.17.11"
42
+ "ckeditor5": "39.0.1",
43
+ "ckeditor5-collaboration": "39.0.1",
44
+ "lodash-es": "4.17.21"
46
45
  },
47
46
  "engines": {
48
47
  "node": ">=16.0.0",
@@ -1,5 +1,9 @@
1
- import type { TrackChangesConfig, TrackChangesEditing, AcceptSuggestionCommand, DiscardSuggestionCommand, ExecuteOnAllSuggestionsCommand, ExecuteOnSelectedSuggestionsCommand, TrackChangesCommand } from './index.js';
2
- import type { Editor } from 'ckeditor5/src/core.js';
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';
3
7
  declare module '@ckeditor/ckeditor5-core' {
4
8
  interface EditorConfig {
5
9
  /**
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -1,9 +1,13 @@
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
+ */
1
5
  /**
2
6
  * @module track-changes/commands/acceptsuggestioncommand
3
7
  * @publicApi
4
8
  */
5
- import { Command, type Editor } from 'ckeditor5/src/core.js';
6
- import type Suggestion from '../suggestion.js';
9
+ import { Command, type Editor } from 'ckeditor5/src/core';
10
+ import type Suggestion from '../suggestion';
7
11
  /**
8
12
  * A command that accepts the suggestion chain.
9
13
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2d1f=['_isEnabledBasedOnSelection','getRanges','plugins','refresh','editor','_suggestions','model','acceptSuggestion','canEditAt','get'];(function(_0x5d9f3d,_0x2d1fe8){const _0x59645f=function(_0x53070d){while(--_0x53070d){_0x5d9f3d['push'](_0x5d9f3d['shift']());}};_0x59645f(++_0x2d1fe8);}(_0x2d1f,0x1ed));const _0x5964=function(_0x5d9f3d,_0x2d1fe8){_0x5d9f3d=_0x5d9f3d-0x0;let _0x59645f=_0x2d1f[_0x5d9f3d];return _0x59645f;};import{Command as _0x544031}from'ckeditor5/src/core.js';import{CKEditorError as _0x1069ac}from'ckeditor5/src/utils.js';export default class _ extends _0x544031{constructor(_0x368d37,_0x5883ba){super(_0x368d37),this[_0x5964('0x2')]=_0x5883ba,this[_0x5964('0x0')](),this[_0x5964('0x7')]=!0x1;}[_0x5964('0x0')](){this['isEnabled']=!0x0;}['execute'](_0x5f4a1b){const _0x32d9da=this['_suggestions'][_0x5964('0x6')](_0x5f4a1b);if(!_0x32d9da)throw new _0x1069ac('track-changes-accept-suggestion-not-found',this);const _0x565bc9=_0x32d9da[_0x5964('0x8')]();this[_0x5964('0x1')][_0x5964('0x3')][_0x5964('0x5')](_0x565bc9)&&this['editor'][_0x5964('0x9')][_0x5964('0x6')]('TrackChangesEditing')[_0x5964('0x4')](_0x32d9da);}}
23
+ const _0x151c=['plugins','execute','editor','acceptSuggestion','refresh','_isEnabledBasedOnSelection','_suggestions','isEnabled','get','TrackChangesEditing','track-changes-accept-suggestion-not-found'];(function(_0x3ea551,_0x151cc5){const _0x25b6d6=function(_0x1f9b08){while(--_0x1f9b08){_0x3ea551['push'](_0x3ea551['shift']());}};_0x25b6d6(++_0x151cc5);}(_0x151c,0x16b));const _0x25b6=function(_0x3ea551,_0x151cc5){_0x3ea551=_0x3ea551-0x0;let _0x25b6d6=_0x151c[_0x3ea551];return _0x25b6d6;};import{Command as _0x24d577}from'ckeditor5/src/core';import{CKEditorError as _0x1d9aae}from'ckeditor5/src/utils';export default class M extends _0x24d577{constructor(_0x369fc7,_0x5f1312){super(_0x369fc7),this[_0x25b6('0x6')]=_0x5f1312,this[_0x25b6('0x4')](),this[_0x25b6('0x5')]=!0x1;}[_0x25b6('0x4')](){this[_0x25b6('0x7')]=!0x0;}[_0x25b6('0x1')](_0x171096){const _0x6eb855=this['_suggestions'][_0x25b6('0x8')](_0x171096);if(!_0x6eb855)throw new _0x1d9aae(_0x25b6('0xa'),this);const _0xe3dd79=_0x6eb855['getRanges']();this[_0x25b6('0x2')]['model']['canEditAt'](_0xe3dd79)&&this[_0x25b6('0x2')][_0x25b6('0x0')][_0x25b6('0x8')](_0x25b6('0x9'))[_0x25b6('0x3')](_0x6eb855);}}
@@ -1,9 +1,13 @@
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
+ */
1
5
  /**
2
6
  * @module track-changes/commands/discardsuggestioncommand
3
7
  * @publicApi
4
8
  */
5
- import { Command, type Editor } from 'ckeditor5/src/core.js';
6
- import type Suggestion from '../suggestion.js';
9
+ import { Command, type Editor } from 'ckeditor5/src/core';
10
+ import type Suggestion from '../suggestion';
7
11
  /**
8
12
  * A command that discards the suggestion chain.
9
13
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2881=['track-changes-discard-suggestion-not-found','getRanges','editor','get','TrackChangesEditing','discardSuggestion','_isEnabledBasedOnSelection','execute','canEditAt','plugins','refresh','_suggestions','isEnabled'];(function(_0x408a46,_0x288195){const _0x3bef50=function(_0x42b075){while(--_0x42b075){_0x408a46['push'](_0x408a46['shift']());}};_0x3bef50(++_0x288195);}(_0x2881,0x173));const _0x3bef=function(_0x408a46,_0x288195){_0x408a46=_0x408a46-0x0;let _0x3bef50=_0x2881[_0x408a46];return _0x3bef50;};import{Command as _0x32e204}from'ckeditor5/src/core.js';import{CKEditorError as _0x3d1ffd}from'ckeditor5/src/utils.js';export default class M extends _0x32e204{constructor(_0x4f7d60,_0x17d469){super(_0x4f7d60),this['_suggestions']=_0x17d469,this[_0x3bef('0x3')](),this[_0x3bef('0xc')]=!0x1;}[_0x3bef('0x3')](){this[_0x3bef('0x5')]=!0x0;}[_0x3bef('0x0')](_0x4fe0bb){const _0x5e3172=this[_0x3bef('0x4')][_0x3bef('0x9')](_0x4fe0bb);if(!_0x5e3172)throw new _0x3d1ffd(_0x3bef('0x6'),this);const _0x180d37=_0x5e3172[_0x3bef('0x7')]();this[_0x3bef('0x8')]['model'][_0x3bef('0x1')](_0x180d37)&&this['editor'][_0x3bef('0x2')][_0x3bef('0x9')](_0x3bef('0xa'))[_0x3bef('0xb')](_0x5e3172);}}
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);}}
@@ -1,9 +1,13 @@
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
+ */
1
5
  /**
2
6
  * @module track-changes/commands/executeonallsuggestionscommand
3
7
  * @publicApi
4
8
  */
5
- import { Command, type Editor } from 'ckeditor5/src/core.js';
6
- import type Suggestion from '../suggestion.js';
9
+ import { Command, type Editor } from 'ckeditor5/src/core';
10
+ import type Suggestion from '../suggestion';
7
11
  /**
8
12
  * A command that executes passed command (accept or discard suggestion command) at once for all suggestions in the document.
9
13
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x50a7=['_isEnabledBasedOnSelection','model','getRanges','refresh','values','execute','isInContent','from','canEditAt','_command','editor','isEnabled','_suggestions'];(function(_0xda34e6,_0x50a725){const _0x2e6d1f=function(_0x2895d9){while(--_0x2895d9){_0xda34e6['push'](_0xda34e6['shift']());}};_0x2e6d1f(++_0x50a725);}(_0x50a7,0x9d));const _0x2e6d=function(_0xda34e6,_0x50a725){_0xda34e6=_0xda34e6-0x0;let _0x2e6d1f=_0x50a7[_0xda34e6];return _0x2e6d1f;};import{Command as _0x39dc94}from'ckeditor5/src/core.js';import{sortSuggestions as _0x5dc2d7,executeCommandForSuggestions as _0x355008}from'../utils/utils.js';export default class $ extends _0x39dc94{constructor(_0xd389a5,_0x214c09,_0x3e5a95){super(_0xd389a5),this['_command']=_0x214c09,this[_0x2e6d('0xb')]=_0x3e5a95,this[_0x2e6d('0x2')](),this[_0x2e6d('0xc')]=!0x1;}[_0x2e6d('0x2')](){const _0x1e3afa=Array['from'](this['_suggestions'][_0x2e6d('0x3')]())['some'](_0x1ec495=>_0x1ec495[_0x2e6d('0x5')]);this[_0x2e6d('0xa')]=this[_0x2e6d('0x8')]['isEnabled']&&_0x1e3afa;}[_0x2e6d('0x4')](){const _0x296225=_0x5dc2d7(Array[_0x2e6d('0x6')](this[_0x2e6d('0xb')]['values']()));for(const _0x4a91ba of _0x296225){const _0x2430c9=_0x4a91ba[_0x2e6d('0x1')]();if(!this[_0x2e6d('0x9')][_0x2e6d('0x0')][_0x2e6d('0x7')](_0x2430c9))return;}_0x355008(this[_0x2e6d('0x9')][_0x2e6d('0x0')],this[_0x2e6d('0x8')],_0x296225);}}
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);}}
@@ -1,9 +1,13 @@
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
+ */
1
5
  /**
2
6
  * @module track-changes/commands/executeonselectedsuggestionscommand
3
7
  * @publicApi
4
8
  */
5
- import { Command, type Editor } from 'ckeditor5/src/core.js';
6
- import type Suggestion from '../suggestion.js';
9
+ import { Command, type Editor } from 'ckeditor5/src/core';
10
+ import type Suggestion from '../suggestion';
7
11
  /**
8
12
  * A command that executes passed command (accept or discard suggestion command) at once for all suggestions selected in the document.
9
13
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x52eb=['from','values','_suggestions','refresh','execute','document','size','isEnabled','_command','model','_selectedSuggestions','_isEnabledBasedOnSelection','editor','selection'];(function(_0x46156c,_0x52eb27){const _0x137260=function(_0x441685){while(--_0x441685){_0x46156c['push'](_0x46156c['shift']());}};_0x137260(++_0x52eb27);}(_0x52eb,0x18a));const _0x1372=function(_0x46156c,_0x52eb27){_0x46156c=_0x46156c-0x0;let _0x137260=_0x52eb[_0x46156c];return _0x137260;};import{Command as _0x20dbbb}from'ckeditor5/src/core.js';import{sortSuggestions as _0x2aa441,getSelectedSuggestions as _0xc175a6,executeCommandForSuggestions as _0x4af119}from'../utils/utils.js';export default class N extends _0x20dbbb{constructor(_0x1fdc83,_0x379c10,_0x322f3d){super(_0x1fdc83),this['_command']=_0x379c10,this['_suggestions']=_0x322f3d,this['_selectedSuggestions']=new Set(),this[_0x1372('0x1')](),this[_0x1372('0x9')]=!0x1;}[_0x1372('0x1')](){const _0x433967=this[_0x1372('0xa')][_0x1372('0x7')][_0x1372('0x3')][_0x1372('0xb')],_0x1c563b=Array[_0x1372('0xc')](this[_0x1372('0x0')][_0x1372('0xd')]());this[_0x1372('0x8')]=_0xc175a6(_0x433967,_0x1c563b),this[_0x1372('0x5')]=this['_command'][_0x1372('0x5')]&&!!this[_0x1372('0x8')][_0x1372('0x4')];}[_0x1372('0x2')](){const _0x30b3c9=_0x2aa441(Array[_0x1372('0xc')](this[_0x1372('0x8')]));for(const _0x3c4e2e of _0x30b3c9){const _0x11cdb9=_0x3c4e2e['getRanges']();if(!this[_0x1372('0xa')]['model']['canEditAt'](_0x11cdb9))return;}_0x4af119(this['editor'][_0x1372('0x7')],this[_0x1372('0x6')],_0x30b3c9);}}
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);}}
@@ -1,8 +1,12 @@
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
+ */
1
5
  /**
2
6
  * @module track-changes/commands/trackchangescommand
3
7
  * @publicApi
4
8
  */
5
- import { Command, type Editor } from 'ckeditor5/src/core.js';
9
+ import { Command, type Editor } from 'ckeditor5/src/core';
6
10
  /**
7
11
  * Turns the track changes mode on and off.
8
12
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3534=['_enabledCommands','has','forceDisabled','editor','clearForceDisabled','_disableUnsupportedCommands','refresh','value','commands','_enableCommands','execute','affectsData','isEnabled'];(function(_0x3a5738,_0x35343c){const _0xda6493=function(_0x31db4e){while(--_0x31db4e){_0x3a5738['push'](_0x3a5738['shift']());}};_0xda6493(++_0x35343c);}(_0x3534,0x159));const _0xda64=function(_0x3a5738,_0x35343c){_0x3a5738=_0x3a5738-0x0;let _0xda6493=_0x3534[_0x3a5738];return _0xda6493;};import{Command as _0x4c90d1}from'ckeditor5/src/core.js';export default class B extends _0x4c90d1{constructor(_0x131866,_0x2d87ee){super(_0x131866),this[_0xda64('0x6')]=_0x2d87ee,this[_0xda64('0x0')]=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}[_0xda64('0xc')](){this[_0xda64('0x5')]=!0x0;}[_0xda64('0x3')](){this[_0xda64('0x0')]=!this['value'],this[_0xda64('0x0')]?this[_0xda64('0xb')]():this['_enableCommands']();}[_0xda64('0xb')](){for(const _0x42311e of this[_0xda64('0x9')][_0xda64('0x1')][_0xda64('0x1')]())_0x42311e[_0xda64('0x4')]&&!this[_0xda64('0x6')][_0xda64('0x7')](_0x42311e)&&_0x42311e[_0xda64('0x8')]('TrackChangesCommand');}[_0xda64('0x2')](){for(const _0x46f5e7 of this[_0xda64('0x9')][_0xda64('0x1')][_0xda64('0x1')]())_0x46f5e7[_0xda64('0x4')]&&!this[_0xda64('0x6')][_0xda64('0x7')](_0x46f5e7)&&_0x46f5e7[_0xda64('0xa')]('TrackChangesCommand');}}
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'));}}
package/src/index.d.ts CHANGED
@@ -1,12 +1,16 @@
1
- export { default as TrackChanges, type SuggestionData } from './trackchanges.js';
2
- export { default as TrackChangesData } from './trackchangesdata.js';
3
- export { default as TrackChangesEditing } from './trackchangesediting.js';
4
- export type { SuggestionJSON } from './suggestion.js';
5
- export { default as BaseSuggestionThreadView } from './ui/view/basesuggestionthreadview.js';
6
- export type { TrackChangesConfig } from './trackchangesconfig.js';
7
- export type { default as AcceptSuggestionCommand } from './commands/acceptsuggestioncommand.js';
8
- export type { default as DiscardSuggestionCommand } from './commands/discardsuggestioncommand.js';
9
- export type { default as ExecuteOnAllSuggestionsCommand } from './commands/executeonallsuggestionscommand.js';
10
- export type { default as ExecuteOnSelectedSuggestionsCommand } from './commands/executeonselectedsuggestionscommand.js';
11
- export type { default as TrackChangesCommand } from './commands/trackchangescommand.js';
12
- import './augmentation.js';
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';
package/src/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export{default as TrackChanges}from'./trackchanges.js';export{default as TrackChangesData}from'./trackchangesdata.js';export{default as TrackChangesEditing}from'./trackchangesediting.js';export{default as BaseSuggestionThreadView}from'./ui/view/basesuggestionthreadview.js';import'./augmentation.js';
23
+ export{default as TrackChanges}from'./trackchanges';export{default as TrackChangesData}from'./trackchangesdata';export{default as TrackChangesEditing}from'./trackchangesediting';export{default as BaseSuggestionThreadView}from'./ui/view/basesuggestionthreadview';import'./augmentation';
@@ -1,7 +1,11 @@
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
+ */
1
5
  /**
2
6
  * @module track-changes/integrations/alignment
3
7
  */
4
- import { Plugin } from 'ckeditor5/src/core.js';
8
+ import { Plugin } from 'ckeditor5/src/core';
5
9
  /**
6
10
  * Provides track changes plugin integration for alignment feature.
7
11
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4bfc=['FORMAT_JUSTIFY_TEXT','afterInit','AlignmentEditing','plugins','FORMAT_ALIGN_TO_CENTER','_descriptionFactory','checkAttribute','value','editor','change','schema','FORMAT_ALIGN_TO_LEFT','getSelectedBlocks','ltr','contentLanguageDirection','right','TrackChangesEditing','alignment','commandName','left','from','format','document','enableCommand','markBlockFormat','model'];(function(_0x3be2f1,_0x4bfc93){const _0x4d6de5=function(_0x38cd2f){while(--_0x38cd2f){_0x3be2f1['push'](_0x3be2f1['shift']());}};_0x4d6de5(++_0x4bfc93);}(_0x4bfc,0x15f));const _0x4d6d=function(_0x3be2f1,_0x4bfc93){_0x3be2f1=_0x3be2f1-0x0;let _0x4d6de5=_0x4bfc[_0x3be2f1];return _0x4d6de5;};import{Plugin as _0x14afe4}from'ckeditor5/src/core.js';import{getTranslation as _0x4e33de}from'../utils/common-translations.js';export default class R extends _0x14afe4{[_0x4d6d('0xe')](){const _0x527c39=this[_0x4d6d('0x15')],_0x52fc5c=_0x527c39['locale'];if(!_0x527c39[_0x4d6d('0x10')]['has'](_0x4d6d('0xf')))return;const _0x1cf1da=_0x527c39[_0x4d6d('0x10')]['get'](_0x4d6d('0x3'));_0x1cf1da[_0x4d6d('0xa')](_0x4d6d('0x4'),(_0x347571,_0x5ac0a4={})=>{let _0x4b5887=_0x5ac0a4[_0x4d6d('0x14')];_0x5ac0a4['value']||(_0x4b5887=_0x4d6d('0x0')===_0x527c39['locale'][_0x4d6d('0x1')]?_0x4d6d('0x6'):_0x4d6d('0x2'));const _0x1128b1=Array[_0x4d6d('0x7')](this[_0x4d6d('0x15')]['model'][_0x4d6d('0x9')]['selection'][_0x4d6d('0x19')]())['filter'](_0x115c86=>function(_0x1e6d2c,_0x4e4e09,_0x5af569){const _0x546a25=_0x1e6d2c['getAttribute'](_0x4d6d('0x4'))||null;return _0x4e4e09[_0x4d6d('0x13')](_0x1e6d2c,_0x4d6d('0x4'))&&_0x5af569!=_0x546a25;}(_0x115c86,this[_0x4d6d('0x15')][_0x4d6d('0xc')][_0x4d6d('0x17')],_0x4b5887));_0x527c39[_0x4d6d('0xc')][_0x4d6d('0x16')](()=>{for(const _0x5a0818 of _0x1128b1)_0x1cf1da[_0x4d6d('0xb')](_0x5a0818,{'commandName':_0x4d6d('0x4'),'commandParams':[{'value':_0x4b5887}]});});}),_0x1cf1da[_0x4d6d('0x12')]['registerDescriptionCallback'](_0x516266=>{const {data:_0x9516b}=_0x516266;if(_0x9516b&&'alignment'==_0x9516b[_0x4d6d('0x5')]){const _0xaa9d1c=_0x9516b['commandParams'][0x0][_0x4d6d('0x14')];return{'type':_0x4d6d('0x8'),'content':_0x4e33de(_0x52fc5c,'*Format:*\x20%0',function(_0x1c2cf5){switch(_0x1c2cf5){case _0x4d6d('0x6'):return _0x4e33de(_0x52fc5c,_0x4d6d('0x18'));case _0x4d6d('0x2'):return _0x4e33de(_0x52fc5c,'FORMAT_ALIGN_TO_RIGHT');case'center':return _0x4e33de(_0x52fc5c,_0x4d6d('0x11'));case'justify':return _0x4e33de(_0x52fc5c,_0x4d6d('0xd'));}}(_0xaa9d1c))};}});}}
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))};}});}}
@@ -1,7 +1,11 @@
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
+ */
1
5
  /**
2
6
  * @module track-changes/integrations/basicstyles
3
7
  */
4
- import { Plugin } from 'ckeditor5/src/core.js';
8
+ import { Plugin } from 'ckeditor5/src/core';
5
9
  /**
6
10
  * Provides track changes plugin integration for basic styles features.
7
11
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x35c6=['FORMAT_STRIKETHROUGH','change','StrikethroughEditing','SubscriptEditing','FORMAT_SUPERSCRIPT','TrackChangesEditing','format','*Remove\x20format:*\x20%0','value','get','has','markInlineFormat','SuperscriptEditing','registerDescriptionCallback','FORMAT_BOLD','UnderlineEditing','subscript','code','BoldEditing','editor','model','locale','forceValue','enableCommand','FORMAT_CODE','selection','afterInit','_descriptionFactory','isCollapsed','getRanges','superscript','strikethrough','document','from','plugins','CodeEditing'];(function(_0xadc863,_0x35c65d){const _0x54f0f7=function(_0x53aad8){while(--_0x53aad8){_0xadc863['push'](_0xadc863['shift']());}};_0x54f0f7(++_0x35c65d);}(_0x35c6,0x91));const _0x54f0=function(_0xadc863,_0x35c65d){_0xadc863=_0xadc863-0x0;let _0x54f0f7=_0x35c6[_0xadc863];return _0x54f0f7;};import{Plugin as _0x52004b}from'ckeditor5/src/core.js';import{getTranslation as _0x15c381}from'../utils/common-translations.js';import{getRangesWithAttribute as _0x1c159d}from'./utils.js';const Kt=[_0x54f0('0x11'),'ItalicEditing',_0x54f0('0xe'),_0x54f0('0x22'),_0x54f0('0x1'),_0x54f0('0x2'),_0x54f0('0xb')];export default class x extends _0x52004b{[_0x54f0('0x19')](){const _0x3859bd=this[_0x54f0('0x12')],_0x4a22d1=_0x3859bd[_0x54f0('0x13')],_0x47e071=_0x3859bd[_0x54f0('0x21')]['get'](_0x54f0('0x4')),_0x37fc00=_0x3859bd[_0x54f0('0x14')];for(const _0x5c6226 of Kt){if(!_0x3859bd['plugins'][_0x54f0('0x9')](_0x5c6226))continue;const _0xbdb031=_0x5c6226['slice'](0x0,-0x7)['toLowerCase'](),_0x386f80=_0x3859bd['commands'][_0x54f0('0x8')](_0xbdb031);_0x47e071[_0x54f0('0x16')](_0xbdb031,(_0x51dd2a,_0x39f482={})=>{const _0x15c1c9=_0x4a22d1[_0x54f0('0x1f')][_0x54f0('0x18')];if(_0x15c1c9[_0x54f0('0x1b')])return void _0x51dd2a(_0x39f482);const _0x191c62=void 0x0!==_0x39f482[_0x54f0('0x15')]?_0x39f482[_0x54f0('0x15')]:!_0x386f80[_0x54f0('0x7')];_0x4a22d1[_0x54f0('0x0')](()=>{const _0x14f0c6=Array[_0x54f0('0x20')](_0x15c1c9[_0x54f0('0x1c')]());for(const _0x561f07 of _0x14f0c6){const _0x446233=_0x191c62?[_0x561f07]:_0x1c159d(_0xbdb031,_0x561f07,_0x4a22d1);for(const _0x193a9e of _0x446233)_0x47e071[_0x54f0('0xa')](_0x193a9e,{'commandName':_0xbdb031,'commandParams':[{'forceValue':_0x191c62}]});}});});}function _0x14b768(_0x707505,_0x2fed4f){_0x47e071[_0x54f0('0x1a')][_0x54f0('0xc')](_0x12c5b6=>{const {data:_0x1844f3}=_0x12c5b6;if(_0x1844f3&&_0x1844f3['commandName']===_0x707505)return _0x1844f3['commandParams'][0x0][_0x54f0('0x15')]?{'type':_0x54f0('0x5'),'content':_0x15c381(_0x37fc00,'*Format:*\x20%0',_0x2fed4f)}:{'type':_0x54f0('0x5'),'content':_0x15c381(_0x37fc00,_0x54f0('0x6'),_0x2fed4f)};});}_0x14b768('bold',_0x15c381(_0x37fc00,_0x54f0('0xd'))),_0x14b768('italic',_0x15c381(_0x37fc00,'FORMAT_ITALIC')),_0x14b768('underline',_0x15c381(_0x37fc00,'FORMAT_UNDERLINE')),_0x14b768(_0x54f0('0x10'),_0x15c381(_0x37fc00,_0x54f0('0x17'))),_0x14b768(_0x54f0('0x1e'),_0x15c381(_0x37fc00,_0x54f0('0x23'))),_0x14b768(_0x54f0('0xf'),_0x15c381(_0x37fc00,'FORMAT_SUBSCRIPT')),_0x14b768(_0x54f0('0x1d'),_0x15c381(_0x37fc00,_0x54f0('0x3')));}}
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'));}}
@@ -1,7 +1,11 @@
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
+ */
1
5
  /**
2
6
  * @module track-changes/integrations/blockquote
3
7
  */
4
- import { Plugin } from 'ckeditor5/src/core.js';
8
+ import { Plugin } from 'ckeditor5/src/core';
5
9
  /**
6
10
  * Provides track changes plugin integration for block quote feature.
7
11
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4620=['parent','forceValue','locale','format','enableCommand','_descriptionFactory','filter','commandName','blockQuote','afterInit','commandParams','getSelectedBlocks','registerDescriptionCallback','schema','editor','markBlockFormat','document','plugins','ELEMENT_BLOCK_QUOTE','*Remove\x20format:*\x20%0','*Format:*\x20%0','BlockQuoteEditing','selection','model','from','get','$root'];(function(_0x4e3a5a,_0x4620e1){const _0x102148=function(_0x12e3ed){while(--_0x12e3ed){_0x4e3a5a['push'](_0x4e3a5a['shift']());}};_0x102148(++_0x4620e1);}(_0x4620,0x1ac));const _0x1021=function(_0x4e3a5a,_0x4620e1){_0x4e3a5a=_0x4e3a5a-0x0;let _0x102148=_0x4620[_0x4e3a5a];return _0x102148;};import{Plugin as _0x3cade1}from'ckeditor5/src/core.js';import{getTranslation as _0x5d33ab}from'../utils/common-translations.js';import{getRangesOfBlockGroups as _0x4eefb2}from'../utils/utils.js';export default class U extends _0x3cade1{[_0x1021('0xd')](){const _0x4c96e2=this['editor'],_0x158b3a=_0x4c96e2[_0x1021('0x6')];if(!_0x4c96e2[_0x1021('0x15')]['has'](_0x1021('0x19')))return;const _0x1b6e97=_0x4c96e2['plugins'][_0x1021('0x2')]('TrackChangesEditing'),_0x526931=this[_0x1021('0x12')]['commands'][_0x1021('0x2')]('blockQuote');_0x1b6e97[_0x1021('0x8')]('blockQuote',(_0x45b2f6,_0x30797c={})=>{const _0x20c658=this['editor'][_0x1021('0x0')][_0x1021('0x14')][_0x1021('0x1a')],_0x1ee3d5=_0x30797c&&void 0x0!==_0x30797c[_0x1021('0x5')]?_0x30797c[_0x1021('0x5')]:!_0x526931['value'];let _0x4e5111=[];if(_0x1ee3d5){const _0x91387d=Array[_0x1021('0x1')](_0x20c658[_0x1021('0xf')]())[_0x1021('0xa')](_0x4d3bb8=>Xt(_0x4d3bb8)||function(_0x4f69d7,_0x572500){const _0x59cf25=_0x572500['checkChild'](_0x4f69d7[_0x1021('0x4')],_0x1021('0xc')),_0x28a26c=_0x572500['checkChild']([_0x1021('0x3'),_0x1021('0xc')],_0x4f69d7);return _0x59cf25&&_0x28a26c;}(_0x4d3bb8,this['editor']['model'][_0x1021('0x11')]));_0x4e5111=_0x4eefb2(_0x91387d,_0x4c96e2[_0x1021('0x0')]);}else{const _0x4f48a7=Array[_0x1021('0x1')](_0x20c658[_0x1021('0xf')]())['filter'](_0x277eb2=>Xt(_0x277eb2));_0x4e5111=_0x4eefb2(_0x4f48a7,_0x4c96e2[_0x1021('0x0')]);}_0x4c96e2[_0x1021('0x0')]['change'](()=>{for(const _0x2a60f6 of _0x4e5111)_0x1b6e97[_0x1021('0x13')](_0x2a60f6,{'commandName':_0x1021('0xc'),'commandParams':[{'forceValue':_0x1ee3d5}]});});}),_0x1b6e97[_0x1021('0x9')][_0x1021('0x10')](_0x2fdb25=>{const {data:_0x38a9c6}=_0x2fdb25;if(_0x38a9c6&&_0x1021('0xc')==_0x38a9c6[_0x1021('0xb')]){const _0x1963e5=_0x5d33ab(_0x158b3a,_0x1021('0x16'));return _0x38a9c6[_0x1021('0xe')][0x0]['forceValue']?{'type':_0x1021('0x7'),'content':_0x5d33ab(_0x158b3a,_0x1021('0x18'),_0x1963e5)}:{'type':'format','content':_0x5d33ab(_0x158b3a,_0x1021('0x17'),_0x1963e5)};}});}}function Xt(_0x2a0df9){return _0x1021('0xc')==_0x2a0df9['parent']['name'];}
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')];}
@@ -1,7 +1,11 @@
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
+ */
1
5
  /**
2
6
  * @module track-changes/integrations/ckbox
3
7
  */
4
- import { Plugin } from 'ckeditor5/src/core.js';
8
+ import { Plugin } from 'ckeditor5/src/core';
5
9
  /**
6
10
  * Provides track changes plugin integration for the CKBox feature.
7
11
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x11a8=['afterInit','ckbox','get','TrackChangesEditing','plugins','commands'];(function(_0x155cdb,_0x11a863){const _0x268cdc=function(_0x51ffa8){while(--_0x51ffa8){_0x155cdb['push'](_0x155cdb['shift']());}};_0x268cdc(++_0x11a863);}(_0x11a8,0xbd));const _0x268c=function(_0x155cdb,_0x11a863){_0x155cdb=_0x155cdb-0x0;let _0x268cdc=_0x11a8[_0x155cdb];return _0x268cdc;};import{Plugin as _0x3eec97}from'ckeditor5/src/core.js';export default class E extends _0x3eec97{[_0x268c('0x3')](){const _0x3c7e71=this['editor'];_0x3c7e71[_0x268c('0x2')][_0x268c('0x5')](_0x268c('0x4'))&&_0x3c7e71[_0x268c('0x1')][_0x268c('0x5')](_0x268c('0x0'))['enableCommand'](_0x268c('0x4'));}}
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');}}
@@ -1,7 +1,11 @@
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
+ */
1
5
  /**
2
6
  * @module track-changes/integrations/codeblock
3
7
  */
4
- import { Plugin } from 'ckeditor5/src/core.js';
8
+ import { Plugin } from 'ckeditor5/src/core';
5
9
  /**
6
10
  * Provides track changes plugin integration for code block feature.
7
11
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x190a=['forceValue','format','checkChild','enableCommand','afterInit','*Format:*\x20%0','model','selection','getSelectedBlocks','from','plugins','commandParams','CodeBlock','config','markBlockFormat','value','formatBlock','get','label','language','document','commandName','commands','filter','codeBlock','has','isLimit','*Remove\x20format:*\x20%0','parent','_descriptionFactory','locale','schema','outdentCodeBlock','rootElement','blockName','editor','find','languages','change','ELEMENT_CODE_BLOCK'];(function(_0x3a2164,_0x190a03){const _0x24d8ee=function(_0x56ee6d){while(--_0x56ee6d){_0x3a2164['push'](_0x3a2164['shift']());}};_0x24d8ee(++_0x190a03);}(_0x190a,0x158));const _0x24d8=function(_0x3a2164,_0x190a03){_0x3a2164=_0x3a2164-0x0;let _0x24d8ee=_0x190a[_0x3a2164];return _0x24d8ee;};import{Plugin as _0x5224b9}from'ckeditor5/src/core.js';import{getTranslation as _0x106a58}from'../utils/common-translations.js';import{getRangesOfBlockGroups as _0x3449b3}from'../utils/utils.js';export default class O extends _0x5224b9{[_0x24d8('0x14')](){const _0x320cf9=this[_0x24d8('0xb')];if(!_0x320cf9['plugins'][_0x24d8('0x1')](_0x24d8('0x1c')))return;const _0x839c5c=_0x320cf9[_0x24d8('0x1a')][_0x24d8('0x21')]('TrackChangesEditing'),_0x57bfee=_0x320cf9[_0x24d8('0x6')],_0x475971=_0x320cf9[_0x24d8('0x1d')][_0x24d8('0x21')](_0x24d8('0x0'))[_0x24d8('0xd')],_0x36c28b=_0x320cf9[_0x24d8('0x26')][_0x24d8('0x21')](_0x24d8('0x0'));_0x839c5c['enableCommand']('indentCodeBlock'),_0x839c5c[_0x24d8('0x13')](_0x24d8('0x8')),_0x839c5c[_0x24d8('0x13')](_0x24d8('0x0'),(_0x30994a,_0xf0343b={})=>{const _0x528972=_0x320cf9['model'],_0x54b8e5=_0x320cf9[_0x24d8('0x16')][_0x24d8('0x24')][_0x24d8('0x17')],_0x4666f5=_0xf0343b&&void 0x0!==_0xf0343b['forceValue']?_0xf0343b['forceValue']:!_0x36c28b[_0x24d8('0x1f')];let _0x18e5e9;_0xf0343b[_0x24d8('0x23')]||(_0xf0343b[_0x24d8('0x23')]=_0x475971[0x0][_0x24d8('0x23')]),_0x18e5e9=_0x4666f5?Array[_0x24d8('0x19')](_0x54b8e5[_0x24d8('0x18')]())['filter'](_0x3347e9=>oo(_0x3347e9)||function(_0x17037e,_0x155714){if(_0x17037e['is'](_0x24d8('0x9'))||_0x155714[_0x24d8('0x2')](_0x17037e))return!0x1;return _0x155714[_0x24d8('0x12')](_0x17037e[_0x24d8('0x4')],_0x24d8('0x0'));}(_0x3347e9,_0x528972[_0x24d8('0x7')])):Array['from'](_0x54b8e5[_0x24d8('0x18')]())[_0x24d8('0x27')](_0x5c49c9=>oo(_0x5c49c9));const _0x222439=_0x3449b3(_0x18e5e9,_0x528972);_0x528972[_0x24d8('0xe')](()=>{for(const _0x5b8a6a of _0x222439)_0x839c5c[_0x24d8('0x1e')](_0x5b8a6a,{'commandName':_0x24d8('0x0'),'commandParams':[{..._0xf0343b,'forceValue':_0x4666f5}],'formatGroupId':_0x24d8('0xa')});});}),(_0x839c5c[_0x24d8('0x5')]['registerElementLabel'](_0x24d8('0x0'),_0x53e568=>_0x106a58(_0x57bfee,_0x24d8('0xf'),_0x53e568)),_0x839c5c[_0x24d8('0x5')]['registerDescriptionCallback'](_0x1c9b29=>{const _0x13a582=_0x57bfee['t'],{type:_0x275780,data:_0x3d2c16}=_0x1c9b29;if(_0x24d8('0x20')==_0x275780&&_0x3d2c16&&_0x24d8('0x0')==_0x3d2c16[_0x24d8('0x25')]){const _0x271c86=_0x3d2c16[_0x24d8('0x1b')][0x0][_0x24d8('0x23')],_0x4d88db=_0x13a582(_0x475971[_0x24d8('0xc')](_0x1a12e4=>_0x1a12e4['language']===_0x271c86)[_0x24d8('0x22')]);return _0x3d2c16[_0x24d8('0x1b')][0x0][_0x24d8('0x10')]?{'type':'format','content':_0x106a58(_0x57bfee,_0x24d8('0x15'),_0x106a58(_0x57bfee,_0x24d8('0xf'),0x1)+'\x20('+_0x4d88db+')')}:{'type':_0x24d8('0x11'),'content':_0x106a58(_0x57bfee,_0x24d8('0x3'),_0x106a58(_0x57bfee,'ELEMENT_CODE_BLOCK',0x1))};}}));}}function oo(_0x3d58c0){return _0x24d8('0x0')==_0x3d58c0['name'];}
23
+ const _0x4637=['_descriptionFactory','registerDescriptionCallback','commands','label','ELEMENT_CODE_BLOCK','commandParams','locale','has','afterInit','blockName','config','language','*Format:*\x20%0','forceValue','from','find','*Remove\x20format:*\x20%0','CodeBlock','model','enableCommand','checkChild','parent','filter','indentCodeBlock','outdentCodeBlock','editor','codeBlock','getSelectedBlocks','plugins','format','commandName','TrackChangesEditing','change','selection','get'];(function(_0x4686d9,_0x4637cc){const _0x2c5db3=function(_0xf87b28){while(--_0xf87b28){_0x4686d9['push'](_0x4686d9['shift']());}};_0x2c5db3(++_0x4637cc);}(_0x4637,0x18c));const _0x2c5d=function(_0x4686d9,_0x4637cc){_0x4686d9=_0x4686d9-0x0;let _0x2c5db3=_0x4637[_0x4686d9];return _0x2c5db3;};import{Plugin as _0x4a19b7}from'ckeditor5/src/core';import{getTranslation as _0x4a994a}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x2b2453}from'../utils/utils';export default class O extends _0x4a19b7{[_0x2c5d('0x20')](){const _0xeaf733=this[_0x2c5d('0xe')];if(!_0xeaf733[_0x2c5d('0x11')][_0x2c5d('0x1f')](_0x2c5d('0x6')))return;const _0xaf580c=_0xeaf733[_0x2c5d('0x11')][_0x2c5d('0x17')](_0x2c5d('0x14')),_0x244ec6=_0xeaf733[_0x2c5d('0x1e')],_0x36babd=_0xeaf733[_0x2c5d('0x22')][_0x2c5d('0x17')](_0x2c5d('0xf'))['languages'],_0x1c5917=_0xeaf733[_0x2c5d('0x1a')][_0x2c5d('0x17')]('codeBlock');_0xaf580c[_0x2c5d('0x8')](_0x2c5d('0xc')),_0xaf580c[_0x2c5d('0x8')](_0x2c5d('0xd')),_0xaf580c[_0x2c5d('0x8')]('codeBlock',(_0x201a97,_0x23894a={})=>{const _0x2813bb=_0xeaf733['model'],_0x5d4350=_0xeaf733[_0x2c5d('0x7')]['document'][_0x2c5d('0x16')],_0x5ecc48=_0x23894a&&void 0x0!==_0x23894a['forceValue']?_0x23894a[_0x2c5d('0x2')]:!_0x1c5917['value'];let _0x4629fa;_0x23894a['language']||(_0x23894a[_0x2c5d('0x0')]=_0x36babd[0x0][_0x2c5d('0x0')]),_0x4629fa=_0x5ecc48?Array[_0x2c5d('0x3')](_0x5d4350[_0x2c5d('0x10')]())['filter'](_0x2683ed=>to(_0x2683ed)||function(_0x24057c,_0x335e7d){if(_0x24057c['is']('rootElement')||_0x335e7d['isLimit'](_0x24057c))return!0x1;return _0x335e7d[_0x2c5d('0x9')](_0x24057c[_0x2c5d('0xa')],_0x2c5d('0xf'));}(_0x2683ed,_0x2813bb['schema'])):Array[_0x2c5d('0x3')](_0x5d4350['getSelectedBlocks']())[_0x2c5d('0xb')](_0x3bf94f=>to(_0x3bf94f));const _0x580fa6=_0x2b2453(_0x4629fa,_0x2813bb);_0x2813bb[_0x2c5d('0x15')](()=>{for(const _0x26dc8c of _0x580fa6)_0xaf580c['markBlockFormat'](_0x26dc8c,{'commandName':_0x2c5d('0xf'),'commandParams':[{..._0x23894a,'forceValue':_0x5ecc48}],'formatGroupId':_0x2c5d('0x21')});});}),(_0xaf580c[_0x2c5d('0x18')]['registerElementLabel'](_0x2c5d('0xf'),_0x5e8262=>_0x4a994a(_0x244ec6,_0x2c5d('0x1c'),_0x5e8262)),_0xaf580c['_descriptionFactory'][_0x2c5d('0x19')](_0x443616=>{const _0x3e0645=_0x244ec6['t'],{type:_0x1f980a,data:_0x5eb69c}=_0x443616;if('formatBlock'==_0x1f980a&&_0x5eb69c&&_0x2c5d('0xf')==_0x5eb69c[_0x2c5d('0x13')]){const _0x4d0c82=_0x5eb69c[_0x2c5d('0x1d')][0x0]['language'],_0x52d06e=_0x3e0645(_0x36babd[_0x2c5d('0x4')](_0x312feb=>_0x312feb[_0x2c5d('0x0')]===_0x4d0c82)[_0x2c5d('0x1b')]);return _0x5eb69c[_0x2c5d('0x1d')][0x0][_0x2c5d('0x2')]?{'type':_0x2c5d('0x12'),'content':_0x4a994a(_0x244ec6,_0x2c5d('0x1'),_0x4a994a(_0x244ec6,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x52d06e+')')}:{'type':_0x2c5d('0x12'),'content':_0x4a994a(_0x244ec6,_0x2c5d('0x5'),_0x4a994a(_0x244ec6,_0x2c5d('0x1c'),0x1))};}}));}}function to(_0x78aff5){return _0x2c5d('0xf')==_0x78aff5['name'];}
@@ -1,7 +1,11 @@
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
+ */
1
5
  /**
2
6
  * @module track-changes/integrations/comments
3
7
  */
4
- import { Plugin } from 'ckeditor5/src/core.js';
8
+ import { Plugin } from 'ckeditor5/src/core';
5
9
  /**
6
10
  * Provides track changes plugin integration for {@link module:comments/comments~Comments comments feature}.
7
11
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x39f2=['editor','TrackChangesEditing','plugins','CommentsEditing','get','has','enableCommand'];(function(_0x57ac87,_0x39f208){const _0x31662f=function(_0x40f864){while(--_0x40f864){_0x57ac87['push'](_0x57ac87['shift']());}};_0x31662f(++_0x39f208);}(_0x39f2,0x1d4));const _0x3166=function(_0x57ac87,_0x39f208){_0x57ac87=_0x57ac87-0x0;let _0x31662f=_0x39f2[_0x57ac87];return _0x31662f;};import{Plugin as _0x531606}from'ckeditor5/src/core.js';export default class F extends _0x531606{['afterInit'](){const _0x3d08ee=this[_0x3166('0x1')];if(!_0x3d08ee[_0x3166('0x3')][_0x3166('0x6')](_0x3166('0x4')))return;_0x3d08ee['plugins'][_0x3166('0x5')](_0x3166('0x2'))[_0x3166('0x0')]('addCommentThread');}}
23
+ const _0x55d2=['get','enableCommand','plugins','TrackChangesEditing','CommentsEditing','addCommentThread','editor'];(function(_0x4f8b04,_0x55d2ef){const _0x422cb9=function(_0x380c5d){while(--_0x380c5d){_0x4f8b04['push'](_0x4f8b04['shift']());}};_0x422cb9(++_0x55d2ef);}(_0x55d2,0x1b2));const _0x422c=function(_0x4f8b04,_0x55d2ef){_0x4f8b04=_0x4f8b04-0x0;let _0x422cb9=_0x55d2[_0x4f8b04];return _0x422cb9;};import{Plugin as _0x46e1f7}from'ckeditor5/src/core';export default class F extends _0x46e1f7{['afterInit'](){const _0x394675=this[_0x422c('0x6')];if(!_0x394675[_0x422c('0x2')]['has'](_0x422c('0x4')))return;_0x394675['plugins'][_0x422c('0x0')](_0x422c('0x3'))[_0x422c('0x1')](_0x422c('0x5'));}}
@@ -1,8 +1,12 @@
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
+ */
1
5
  /**
2
6
  * @module track-changes/integrations/deletecommand
3
7
  */
4
- import { Plugin } from 'ckeditor5/src/core.js';
5
- import { Delete } from 'ckeditor5/src/typing.js';
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import { Delete } from 'ckeditor5/src/typing';
6
10
  /**
7
11
  * Provides track changes plugin integration for {@link module:typing/inputcommand~DeleteCommand delete command}. Also
8
12
  * provides integration {@link module:engine/model/model~Model#deleteContent} as many features use it internally.