@ckeditor/ckeditor5-track-changes 40.1.0 → 41.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 (242) hide show
  1. package/CHANGELOG.md +20 -20
  2. package/LICENSE.md +1 -1
  3. package/README.md +1 -1
  4. package/build/track-changes.js +3 -3
  5. package/build/translations/ar.js +1 -1
  6. package/build/translations/az.js +1 -1
  7. package/build/translations/bg.js +1 -1
  8. package/build/translations/bn.js +1 -1
  9. package/build/translations/ca.js +1 -1
  10. package/build/translations/cs.js +1 -1
  11. package/build/translations/da.js +1 -1
  12. package/build/translations/de.js +1 -1
  13. package/build/translations/el.js +1 -1
  14. package/build/translations/en-au.js +1 -1
  15. package/build/translations/es.js +1 -1
  16. package/build/translations/et.js +1 -1
  17. package/build/translations/fi.js +1 -1
  18. package/build/translations/fr.js +1 -1
  19. package/build/translations/gl.js +1 -1
  20. package/build/translations/he.js +1 -1
  21. package/build/translations/hi.js +1 -1
  22. package/build/translations/hr.js +1 -1
  23. package/build/translations/hu.js +1 -1
  24. package/build/translations/id.js +1 -1
  25. package/build/translations/it.js +1 -1
  26. package/build/translations/ja.js +1 -1
  27. package/build/translations/ko.js +1 -1
  28. package/build/translations/lt.js +1 -1
  29. package/build/translations/lv.js +1 -1
  30. package/build/translations/ms.js +1 -1
  31. package/build/translations/nl.js +1 -1
  32. package/build/translations/no.js +1 -1
  33. package/build/translations/pl.js +1 -1
  34. package/build/translations/pt-br.js +1 -1
  35. package/build/translations/pt.js +1 -1
  36. package/build/translations/ro.js +1 -1
  37. package/build/translations/ru.js +1 -1
  38. package/build/translations/sk.js +1 -1
  39. package/build/translations/sq.js +1 -1
  40. package/build/translations/sr-latn.js +1 -1
  41. package/build/translations/sr.js +1 -1
  42. package/build/translations/sv.js +1 -1
  43. package/build/translations/th.js +1 -1
  44. package/build/translations/tk.js +1 -1
  45. package/build/translations/tr.js +1 -1
  46. package/build/translations/tt.js +1 -1
  47. package/build/translations/uk.js +1 -1
  48. package/build/translations/ur.js +1 -1
  49. package/build/translations/vi.js +1 -1
  50. package/build/translations/zh-cn.js +1 -1
  51. package/build/translations/zh.js +1 -1
  52. package/lang/translations/ar.po +6 -6
  53. package/lang/translations/az.po +5 -5
  54. package/lang/translations/bg.po +6 -6
  55. package/lang/translations/bn.po +6 -6
  56. package/lang/translations/ca.po +6 -6
  57. package/lang/translations/cs.po +6 -6
  58. package/lang/translations/da.po +6 -6
  59. package/lang/translations/de.po +6 -6
  60. package/lang/translations/el.po +6 -6
  61. package/lang/translations/en-au.po +6 -6
  62. package/lang/translations/en.po +6 -6
  63. package/lang/translations/es.po +7 -7
  64. package/lang/translations/et.po +6 -6
  65. package/lang/translations/fi.po +6 -6
  66. package/lang/translations/fr.po +6 -6
  67. package/lang/translations/gl.po +37 -37
  68. package/lang/translations/he.po +6 -6
  69. package/lang/translations/hi.po +6 -6
  70. package/lang/translations/hr.po +6 -6
  71. package/lang/translations/hu.po +6 -6
  72. package/lang/translations/id.po +6 -6
  73. package/lang/translations/it.po +6 -6
  74. package/lang/translations/ja.po +6 -6
  75. package/lang/translations/ko.po +6 -6
  76. package/lang/translations/lt.po +6 -6
  77. package/lang/translations/lv.po +6 -6
  78. package/lang/translations/ms.po +6 -6
  79. package/lang/translations/nl.po +6 -6
  80. package/lang/translations/no.po +6 -6
  81. package/lang/translations/pl.po +6 -6
  82. package/lang/translations/pt-br.po +6 -6
  83. package/lang/translations/pt.po +6 -6
  84. package/lang/translations/ro.po +6 -6
  85. package/lang/translations/ru.po +6 -6
  86. package/lang/translations/sk.po +6 -6
  87. package/lang/translations/sq.po +5 -5
  88. package/lang/translations/sr-latn.po +25 -25
  89. package/lang/translations/sr.po +6 -6
  90. package/lang/translations/sv.po +6 -6
  91. package/lang/translations/th.po +6 -6
  92. package/lang/translations/tk.po +5 -5
  93. package/lang/translations/tr.po +6 -6
  94. package/lang/translations/tt.po +5 -5
  95. package/lang/translations/uk.po +6 -6
  96. package/lang/translations/ur.po +5 -5
  97. package/lang/translations/vi.po +6 -6
  98. package/lang/translations/zh-cn.po +6 -6
  99. package/lang/translations/zh.po +6 -6
  100. package/package.json +4 -3
  101. package/src/augmentation.d.ts +3 -3
  102. package/src/augmentation.js +1 -1
  103. package/src/commands/acceptsuggestioncommand.d.ts +3 -3
  104. package/src/commands/acceptsuggestioncommand.js +2 -2
  105. package/src/commands/discardsuggestioncommand.d.ts +3 -3
  106. package/src/commands/discardsuggestioncommand.js +2 -2
  107. package/src/commands/executeonallsuggestionscommand.d.ts +3 -3
  108. package/src/commands/executeonallsuggestionscommand.js +2 -2
  109. package/src/commands/executeonselectedsuggestionscommand.d.ts +3 -3
  110. package/src/commands/executeonselectedsuggestionscommand.js +2 -2
  111. package/src/commands/trackchangescommand.d.ts +2 -2
  112. package/src/commands/trackchangescommand.js +2 -2
  113. package/src/index.d.ts +13 -13
  114. package/src/index.js +2 -2
  115. package/src/integrations/aiassistant.d.ts +2 -2
  116. package/src/integrations/aiassistant.js +2 -2
  117. package/src/integrations/alignment.d.ts +2 -2
  118. package/src/integrations/alignment.js +2 -2
  119. package/src/integrations/basicstyles.d.ts +2 -2
  120. package/src/integrations/basicstyles.js +2 -2
  121. package/src/integrations/blockquote.d.ts +2 -2
  122. package/src/integrations/blockquote.js +2 -2
  123. package/src/integrations/casechange.d.ts +17 -0
  124. package/src/integrations/casechange.js +23 -0
  125. package/src/integrations/ckbox.d.ts +2 -2
  126. package/src/integrations/ckbox.js +2 -2
  127. package/src/integrations/codeblock.d.ts +2 -2
  128. package/src/integrations/codeblock.js +2 -2
  129. package/src/integrations/comments.d.ts +2 -2
  130. package/src/integrations/comments.js +2 -2
  131. package/src/integrations/deletecommand.d.ts +3 -3
  132. package/src/integrations/deletecommand.js +2 -2
  133. package/src/integrations/entercommand.d.ts +3 -3
  134. package/src/integrations/entercommand.js +2 -2
  135. package/src/integrations/findandreplace.d.ts +2 -2
  136. package/src/integrations/findandreplace.js +2 -2
  137. package/src/integrations/font.d.ts +2 -2
  138. package/src/integrations/font.js +2 -2
  139. package/src/integrations/formatpainter.d.ts +2 -2
  140. package/src/integrations/formatpainter.js +2 -2
  141. package/src/integrations/heading.d.ts +2 -2
  142. package/src/integrations/heading.js +2 -2
  143. package/src/integrations/highlight.d.ts +2 -2
  144. package/src/integrations/highlight.js +2 -2
  145. package/src/integrations/horizontalline.d.ts +2 -2
  146. package/src/integrations/horizontalline.js +2 -2
  147. package/src/integrations/htmlembed.d.ts +2 -2
  148. package/src/integrations/htmlembed.js +2 -2
  149. package/src/integrations/image.d.ts +2 -2
  150. package/src/integrations/image.js +2 -2
  151. package/src/integrations/imagereplace.d.ts +2 -2
  152. package/src/integrations/imagereplace.js +2 -2
  153. package/src/integrations/imagestyle.d.ts +2 -2
  154. package/src/integrations/imagestyle.js +2 -2
  155. package/src/integrations/importword.d.ts +2 -2
  156. package/src/integrations/importword.js +2 -2
  157. package/src/integrations/indent.d.ts +2 -2
  158. package/src/integrations/indent.js +2 -2
  159. package/src/integrations/inputcommand.d.ts +3 -3
  160. package/src/integrations/inputcommand.js +2 -2
  161. package/src/integrations/legacylist.d.ts +17 -0
  162. package/src/integrations/legacylist.js +23 -0
  163. package/src/integrations/{documentlistproperties.d.ts → legacylistproperties.d.ts} +7 -7
  164. package/src/integrations/legacylistproperties.js +23 -0
  165. package/src/integrations/link.d.ts +2 -2
  166. package/src/integrations/link.js +2 -2
  167. package/src/integrations/list.d.ts +6 -6
  168. package/src/integrations/list.js +2 -2
  169. package/src/integrations/listproperties.d.ts +6 -15
  170. package/src/integrations/listproperties.js +2 -2
  171. package/src/integrations/mediaembed.d.ts +2 -2
  172. package/src/integrations/mediaembed.js +2 -2
  173. package/src/integrations/mention.d.ts +2 -2
  174. package/src/integrations/mention.js +2 -2
  175. package/src/integrations/pagebreak.d.ts +2 -2
  176. package/src/integrations/pagebreak.js +2 -2
  177. package/src/integrations/paragraph.d.ts +2 -2
  178. package/src/integrations/paragraph.js +2 -2
  179. package/src/integrations/removeformat.d.ts +2 -2
  180. package/src/integrations/removeformat.js +2 -2
  181. package/src/integrations/restrictededitingmode.d.ts +2 -2
  182. package/src/integrations/restrictededitingmode.js +2 -2
  183. package/src/integrations/shiftentercommand.d.ts +3 -3
  184. package/src/integrations/shiftentercommand.js +2 -2
  185. package/src/integrations/standardeditingmode.d.ts +2 -2
  186. package/src/integrations/standardeditingmode.js +2 -2
  187. package/src/integrations/style.d.ts +2 -2
  188. package/src/integrations/style.js +2 -2
  189. package/src/integrations/table.d.ts +2 -2
  190. package/src/integrations/table.js +2 -2
  191. package/src/integrations/tablecaption.d.ts +3 -3
  192. package/src/integrations/tablecaption.js +2 -2
  193. package/src/integrations/tableclipboard.d.ts +3 -3
  194. package/src/integrations/tableclipboard.js +2 -2
  195. package/src/integrations/tablecolumnresize.d.ts +5 -5
  196. package/src/integrations/tablecolumnresize.js +2 -2
  197. package/src/integrations/tableheadings.d.ts +3 -3
  198. package/src/integrations/tableheadings.js +2 -2
  199. package/src/integrations/tablemergesplit.d.ts +3 -3
  200. package/src/integrations/tablemergesplit.js +2 -2
  201. package/src/integrations/tableofcontents.d.ts +2 -2
  202. package/src/integrations/tableofcontents.js +2 -2
  203. package/src/integrations/tableproperties.d.ts +5 -5
  204. package/src/integrations/tableproperties.js +2 -2
  205. package/src/integrations/template.d.ts +2 -2
  206. package/src/integrations/template.js +2 -2
  207. package/src/integrations/title.d.ts +2 -2
  208. package/src/integrations/title.js +2 -2
  209. package/src/integrations/undo.d.ts +2 -2
  210. package/src/integrations/undo.js +2 -2
  211. package/src/integrations/utils.d.ts +4 -4
  212. package/src/integrations/utils.js +2 -2
  213. package/src/suggestion.d.ts +6 -6
  214. package/src/suggestion.js +2 -2
  215. package/src/suggestiondescriptionfactory.d.ts +4 -4
  216. package/src/suggestiondescriptionfactory.js +2 -2
  217. package/src/trackchanges.d.ts +6 -6
  218. package/src/trackchanges.js +2 -2
  219. package/src/trackchangesconfig.d.ts +2 -2
  220. package/src/trackchangesconfig.js +1 -1
  221. package/src/trackchangesdata.d.ts +3 -3
  222. package/src/trackchangesdata.js +2 -2
  223. package/src/trackchangesediting.d.ts +56 -55
  224. package/src/trackchangesediting.js +2 -2
  225. package/src/trackchangesui.d.ts +4 -4
  226. package/src/trackchangesui.js +2 -2
  227. package/src/ui/suggestioncontroller.d.ts +6 -6
  228. package/src/ui/suggestioncontroller.js +2 -2
  229. package/src/ui/view/basesuggestionthreadview.d.ts +7 -7
  230. package/src/ui/view/basesuggestionthreadview.js +2 -2
  231. package/src/ui/view/suggestionthreadview.d.ts +6 -6
  232. package/src/ui/view/suggestionthreadview.js +2 -2
  233. package/src/utils/common-translations.d.ts +2 -2
  234. package/src/utils/common-translations.js +2 -2
  235. package/src/utils/utils.d.ts +5 -5
  236. package/src/utils/utils.js +2 -2
  237. package/theme/icons/track-changes-accept.svg +1 -1
  238. package/theme/icons/track-changes-discard.svg +1 -1
  239. package/theme/icons/track-changes.svg +1 -1
  240. package/src/integrations/documentlist.d.ts +0 -17
  241. package/src/integrations/documentlist.js +0 -23
  242. package/src/integrations/documentlistproperties.js +0 -23
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, 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 _0x1c25=['track-changes-discard-suggestion-not-found','isEnabled','editor','get','plugins','TrackChangesEditing','refresh','discardSuggestion','getRanges','execute','_suggestions','canEditAt'];(function(_0x3e360e,_0x1c2520){const _0x5d9f52=function(_0x5e9437){while(--_0x5e9437){_0x3e360e['push'](_0x3e360e['shift']());}};_0x5d9f52(++_0x1c2520);}(_0x1c25,0x169));const _0x5d9f=function(_0x3e360e,_0x1c2520){_0x3e360e=_0x3e360e-0x0;let _0x5d9f52=_0x1c25[_0x3e360e];return _0x5d9f52;};import{Command as _0x4ac650}from'ckeditor5/src/core';import{CKEditorError as _0x356bc4}from'ckeditor5/src/utils';export default class x extends _0x4ac650{constructor(_0x2d58f2,_0x3c80fd){super(_0x2d58f2),this[_0x5d9f('0x9')]=_0x3c80fd,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}[_0x5d9f('0x5')](){this[_0x5d9f('0x0')]=!0x0;}[_0x5d9f('0x8')](_0x331b2e){const _0x45c91a=this[_0x5d9f('0x9')]['get'](_0x331b2e);if(!_0x45c91a)throw new _0x356bc4(_0x5d9f('0xb'),this);const _0x12d33f=_0x45c91a[_0x5d9f('0x7')]();this[_0x5d9f('0x1')]['model'][_0x5d9f('0xa')](_0x12d33f)&&this[_0x5d9f('0x1')][_0x5d9f('0x3')][_0x5d9f('0x2')](_0x5d9f('0x4'))[_0x5d9f('0x6')](_0x45c91a);}}
23
+ const _0x65e2=['isEnabled','refresh','discardSuggestion','get','plugins','_isEnabledBasedOnSelection','track-changes-discard-suggestion-not-found','_suggestions','TrackChangesEditing','getRanges','editor'];(function(_0x17392e,_0x65e2e1){const _0x4bc70c=function(_0x342d4b){while(--_0x342d4b){_0x17392e['push'](_0x17392e['shift']());}};_0x4bc70c(++_0x65e2e1);}(_0x65e2,0xc5));const _0x4bc7=function(_0x17392e,_0x65e2e1){_0x17392e=_0x17392e-0x0;let _0x4bc70c=_0x65e2[_0x17392e];return _0x4bc70c;};import{Command as _0x556ed1}from'ckeditor5/src/core.js';import{CKEditorError as _0x762599}from'ckeditor5/src/utils.js';export default class B extends _0x556ed1{constructor(_0x26c3ad,_0x46b93a){super(_0x26c3ad),this[_0x4bc7('0x8')]=_0x46b93a,this[_0x4bc7('0x2')](),this[_0x4bc7('0x6')]=!0x1;}[_0x4bc7('0x2')](){this[_0x4bc7('0x1')]=!0x0;}['execute'](_0x163da2){const _0x3a5959=this[_0x4bc7('0x8')]['get'](_0x163da2);if(!_0x3a5959)throw new _0x762599(_0x4bc7('0x7'),this);const _0x5d0663=_0x3a5959[_0x4bc7('0xa')]();this[_0x4bc7('0x0')]['model']['canEditAt'](_0x5d0663)&&this[_0x4bc7('0x0')][_0x4bc7('0x5')][_0x4bc7('0x4')](_0x4bc7('0x9'))[_0x4bc7('0x3')](_0x3a5959);}}
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module track-changes/commands/executeonallsuggestionscommand
7
7
  * @publicApi
8
8
  */
9
- import { Command, type Editor } from 'ckeditor5/src/core';
10
- import type Suggestion from '../suggestion';
9
+ import { Command, type Editor } from 'ckeditor5/src/core.js';
10
+ import type Suggestion from '../suggestion.js';
11
11
  /**
12
12
  * A command that executes passed command (accept or discard suggestion command) at once for all suggestions in the document.
13
13
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, 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 _0x3187=['editor','canEditAt','from','some','isEnabled','_isEnabledBasedOnSelection','execute','getRanges','model','_suggestions','values','_command'];(function(_0x5e258b,_0x3187da){const _0x2439f3=function(_0x3c0f50){while(--_0x3c0f50){_0x5e258b['push'](_0x5e258b['shift']());}};_0x2439f3(++_0x3187da);}(_0x3187,0x1ef));const _0x2439=function(_0x5e258b,_0x3187da){_0x5e258b=_0x5e258b-0x0;let _0x2439f3=_0x3187[_0x5e258b];return _0x2439f3;};import{Command as _0x40dc85}from'ckeditor5/src/core';import{sortSuggestions as _0x5268b1,executeCommandForSuggestions as _0x13fbf3}from'../utils/utils';export default class E extends _0x40dc85{constructor(_0x4aa136,_0xef9de4,_0x541e66){super(_0x4aa136),this[_0x2439('0x8')]=_0xef9de4,this[_0x2439('0x6')]=_0x541e66,this['refresh'](),this[_0x2439('0x2')]=!0x1;}['refresh'](){const _0x1e06fa=Array['from'](this[_0x2439('0x6')][_0x2439('0x7')]())[_0x2439('0x0')](_0x495a57=>_0x495a57['isInContent']);this['isEnabled']=this[_0x2439('0x8')][_0x2439('0x1')]&&_0x1e06fa;}[_0x2439('0x3')](){const _0x468484=_0x5268b1(Array[_0x2439('0xb')](this[_0x2439('0x6')]['values']()));for(const _0x3d08c5 of _0x468484){const _0x247069=_0x3d08c5[_0x2439('0x4')]();if(!this['editor'][_0x2439('0x5')][_0x2439('0xa')](_0x247069))return;}_0x13fbf3(this[_0x2439('0x9')]['model'],this['_command'],_0x468484);}}
23
+ const _0x3ee0=['execute','from','values','model','editor','refresh','canEditAt','isEnabled','_command','some','_isEnabledBasedOnSelection','_suggestions'];(function(_0x48120d,_0x3ee0e0){const _0x4a76af=function(_0x3a0ffe){while(--_0x3a0ffe){_0x48120d['push'](_0x48120d['shift']());}};_0x4a76af(++_0x3ee0e0);}(_0x3ee0,0x193));const _0x4a76=function(_0x48120d,_0x3ee0e0){_0x48120d=_0x48120d-0x0;let _0x4a76af=_0x3ee0[_0x48120d];return _0x4a76af;};import{Command as _0x5babaa}from'ckeditor5/src/core.js';import{sortSuggestions as _0x3554e6,executeCommandForSuggestions as _0x2dbafb}from'../utils/utils.js';export default class x extends _0x5babaa{constructor(_0x5ddf63,_0x3efe02,_0x4dfe28){super(_0x5ddf63),this['_command']=_0x3efe02,this['_suggestions']=_0x4dfe28,this[_0x4a76('0xa')](),this[_0x4a76('0x3')]=!0x1;}[_0x4a76('0xa')](){const _0x261d28=Array['from'](this[_0x4a76('0x4')][_0x4a76('0x7')]())[_0x4a76('0x2')](_0x6ef1ea=>_0x6ef1ea['isInContent']);this['isEnabled']=this['_command'][_0x4a76('0x0')]&&_0x261d28;}[_0x4a76('0x5')](){const _0x2b2391=_0x3554e6(Array[_0x4a76('0x6')](this['_suggestions']['values']()));for(const _0x3c4e55 of _0x2b2391){const _0x1c7618=_0x3c4e55['getRanges']();if(!this['editor'][_0x4a76('0x8')][_0x4a76('0xb')](_0x1c7618))return;}_0x2dbafb(this[_0x4a76('0x9')]['model'],this[_0x4a76('0x1')],_0x2b2391);}}
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module track-changes/commands/executeonselectedsuggestionscommand
7
7
  * @publicApi
8
8
  */
9
- import { Command, type Editor } from 'ckeditor5/src/core';
10
- import type Suggestion from '../suggestion';
9
+ import { Command, type Editor } from 'ckeditor5/src/core.js';
10
+ import type Suggestion from '../suggestion.js';
11
11
  /**
12
12
  * A command that executes passed command (accept or discard suggestion command) at once for all suggestions selected in the document.
13
13
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, 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 _0x47be=['canEditAt','selection','values','from','document','model','refresh','editor','_suggestions','_command','isEnabled','_selectedSuggestions','size','_isEnabledBasedOnSelection','getRanges'];(function(_0x562dfe,_0x47be77){const _0x5275a6=function(_0x10da87){while(--_0x10da87){_0x562dfe['push'](_0x562dfe['shift']());}};_0x5275a6(++_0x47be77);}(_0x47be,0x1ce));const _0x5275=function(_0x562dfe,_0x47be77){_0x562dfe=_0x562dfe-0x0;let _0x5275a6=_0x47be[_0x562dfe];return _0x5275a6;};import{Command as _0x1b0b89}from'ckeditor5/src/core';import{sortSuggestions as _0x3b14f9,getSelectedSuggestions as _0x17cb86,executeCommandForSuggestions as _0x1e2071}from'../utils/utils';export default class R extends _0x1b0b89{constructor(_0x161725,_0x45008c,_0x549f98){super(_0x161725),this['_command']=_0x45008c,this[_0x5275('0xb')]=_0x549f98,this[_0x5275('0xe')]=new Set(),this[_0x5275('0x9')](),this[_0x5275('0x1')]=!0x1;}[_0x5275('0x9')](){const _0x9c6dcc=this[_0x5275('0xa')][_0x5275('0x8')][_0x5275('0x7')][_0x5275('0x4')],_0x4c1a1a=Array[_0x5275('0x6')](this['_suggestions'][_0x5275('0x5')]());this[_0x5275('0xe')]=_0x17cb86(_0x9c6dcc,_0x4c1a1a),this[_0x5275('0xd')]=this[_0x5275('0xc')][_0x5275('0xd')]&&!!this[_0x5275('0xe')][_0x5275('0x0')];}['execute'](){const _0x383d7e=_0x3b14f9(Array[_0x5275('0x6')](this['_selectedSuggestions']));for(const _0x45fcc4 of _0x383d7e){const _0x2cfca4=_0x45fcc4[_0x5275('0x2')]();if(!this[_0x5275('0xa')][_0x5275('0x8')][_0x5275('0x3')](_0x2cfca4))return;}_0x1e2071(this[_0x5275('0xa')][_0x5275('0x8')],this[_0x5275('0xc')],_0x383d7e);}}
23
+ const _0x2976=['editor','_command','execute','_suggestions','_isEnabledBasedOnSelection','canEditAt','values','model','document','_selectedSuggestions','isEnabled','size','getRanges'];(function(_0x106992,_0x2976f1){const _0x29aec1=function(_0x3d18e5){while(--_0x3d18e5){_0x106992['push'](_0x106992['shift']());}};_0x29aec1(++_0x2976f1);}(_0x2976,0xa8));const _0x29ae=function(_0x106992,_0x2976f1){_0x106992=_0x106992-0x0;let _0x29aec1=_0x2976[_0x106992];return _0x29aec1;};import{Command as _0x2089f7}from'ckeditor5/src/core.js';import{sortSuggestions as _0x36337e,getSelectedSuggestions as _0x220441,executeCommandForSuggestions as _0x55e18b}from'../utils/utils.js';export default class R extends _0x2089f7{constructor(_0x4f4217,_0x52cd95,_0x4f8315){super(_0x4f4217),this['_command']=_0x52cd95,this[_0x29ae('0x4')]=_0x4f8315,this[_0x29ae('0xa')]=new Set(),this['refresh'](),this[_0x29ae('0x5')]=!0x1;}['refresh'](){const _0x49fb6a=this[_0x29ae('0x1')][_0x29ae('0x8')][_0x29ae('0x9')]['selection'],_0x1ba925=Array['from'](this['_suggestions'][_0x29ae('0x7')]());this[_0x29ae('0xa')]=_0x220441(_0x49fb6a,_0x1ba925),this[_0x29ae('0xb')]=this[_0x29ae('0x2')][_0x29ae('0xb')]&&!!this[_0x29ae('0xa')][_0x29ae('0xc')];}[_0x29ae('0x3')](){const _0x33fd6f=_0x36337e(Array['from'](this[_0x29ae('0xa')]));for(const _0x10ef93 of _0x33fd6f){const _0x2b9835=_0x10ef93[_0x29ae('0x0')]();if(!this[_0x29ae('0x1')][_0x29ae('0x8')][_0x29ae('0x6')](_0x2b9835))return;}_0x55e18b(this[_0x29ae('0x1')][_0x29ae('0x8')],this['_command'],_0x33fd6f);}}
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module track-changes/commands/trackchangescommand
7
7
  * @publicApi
8
8
  */
9
- import { Command, type Editor } from 'ckeditor5/src/core';
9
+ import { Command, type Editor } from 'ckeditor5/src/core.js';
10
10
  /**
11
11
  * Turns the track changes mode on and off.
12
12
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, 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 _0x4d84=['TrackChangesCommand','has','_disableUnsupportedCommands','_enabledCommands','isEnabled','refresh','editor','_isEnabledBasedOnSelection','commands','forceDisabled','execute','value','affectsData','clearForceDisabled'];(function(_0x32e9f1,_0x4d8430){const _0x445dd7=function(_0x35573c){while(--_0x35573c){_0x32e9f1['push'](_0x32e9f1['shift']());}};_0x445dd7(++_0x4d8430);}(_0x4d84,0x13a));const _0x445d=function(_0x32e9f1,_0x4d8430){_0x32e9f1=_0x32e9f1-0x0;let _0x445dd7=_0x4d84[_0x32e9f1];return _0x445dd7;};import{Command as _0x25a8fe}from'ckeditor5/src/core';export default class $ extends _0x25a8fe{constructor(_0x3f416d,_0x90c391){super(_0x3f416d),this[_0x445d('0xb')]=_0x90c391,this[_0x445d('0x5')]=!0x1,this[_0x445d('0xd')](),this[_0x445d('0x1')]=!0x1;}[_0x445d('0xd')](){this[_0x445d('0xc')]=!0x0;}[_0x445d('0x4')](){this['value']=!this[_0x445d('0x5')],this['value']?this[_0x445d('0xa')]():this['_enableCommands']();}[_0x445d('0xa')](){for(const _0x4edee4 of this[_0x445d('0x0')][_0x445d('0x2')][_0x445d('0x2')]())_0x4edee4['affectsData']&&!this[_0x445d('0xb')][_0x445d('0x9')](_0x4edee4)&&_0x4edee4[_0x445d('0x3')](_0x445d('0x8'));}['_enableCommands'](){for(const _0x5e4612 of this['editor'][_0x445d('0x2')][_0x445d('0x2')]())_0x5e4612[_0x445d('0x6')]&&!this[_0x445d('0xb')]['has'](_0x5e4612)&&_0x5e4612[_0x445d('0x7')](_0x445d('0x8'));}}
23
+ const _0x4e7d=['refresh','value','has','TrackChangesCommand','affectsData','_enableCommands','_isEnabledBasedOnSelection','execute','clearForceDisabled','_disableUnsupportedCommands','commands','_enabledCommands','forceDisabled','isEnabled'];(function(_0x34f5f4,_0x4e7d62){const _0x4c2af4=function(_0xcf0a19){while(--_0xcf0a19){_0x34f5f4['push'](_0x34f5f4['shift']());}};_0x4c2af4(++_0x4e7d62);}(_0x4e7d,0x142));const _0x4c2a=function(_0x34f5f4,_0x4e7d62){_0x34f5f4=_0x34f5f4-0x0;let _0x4c2af4=_0x4e7d[_0x34f5f4];return _0x4c2af4;};import{Command as _0x2fae55}from'ckeditor5/src/core.js';export default class M extends _0x2fae55{constructor(_0x507ac1,_0x22396e){super(_0x507ac1),this['_enabledCommands']=_0x22396e,this[_0x4c2a('0x1')]=!0x1,this[_0x4c2a('0x0')](),this[_0x4c2a('0x6')]=!0x1;}[_0x4c2a('0x0')](){this[_0x4c2a('0xd')]=!0x0;}[_0x4c2a('0x7')](){this[_0x4c2a('0x1')]=!this[_0x4c2a('0x1')],this['value']?this[_0x4c2a('0x9')]():this[_0x4c2a('0x5')]();}['_disableUnsupportedCommands'](){for(const _0x3fee46 of this['editor'][_0x4c2a('0xa')][_0x4c2a('0xa')]())_0x3fee46['affectsData']&&!this[_0x4c2a('0xb')][_0x4c2a('0x2')](_0x3fee46)&&_0x3fee46[_0x4c2a('0xc')](_0x4c2a('0x3'));}[_0x4c2a('0x5')](){for(const _0x5905af of this['editor']['commands'][_0x4c2a('0xa')]())_0x5905af[_0x4c2a('0x4')]&&!this['_enabledCommands'][_0x4c2a('0x2')](_0x5905af)&&_0x5905af[_0x4c2a('0x8')](_0x4c2a('0x3'));}}
package/src/index.d.ts CHANGED
@@ -1,16 +1,16 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- export { default as TrackChanges, type SuggestionData, type TrackChangesAdapter } 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';
5
+ export { default as TrackChanges, type SuggestionData, type TrackChangesAdapter } from './trackchanges.js';
6
+ export { default as TrackChangesData } from './trackchangesdata.js';
7
+ export { default as TrackChangesEditing } from './trackchangesediting.js';
8
+ export type { SuggestionJSON } from './suggestion.js';
9
+ export { default as BaseSuggestionThreadView } from './ui/view/basesuggestionthreadview.js';
10
+ export type { TrackChangesConfig } from './trackchangesconfig.js';
11
+ export type { default as AcceptSuggestionCommand } from './commands/acceptsuggestioncommand.js';
12
+ export type { default as DiscardSuggestionCommand } from './commands/discardsuggestioncommand.js';
13
+ export type { default as ExecuteOnAllSuggestionsCommand } from './commands/executeonallsuggestionscommand.js';
14
+ export type { default as ExecuteOnSelectedSuggestionsCommand } from './commands/executeonselectedsuggestionscommand.js';
15
+ export type { default as TrackChangesCommand } from './commands/trackchangescommand.js';
16
+ import './augmentation.js';
package/src/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, 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';export{default as TrackChangesData}from'./trackchangesdata';export{default as TrackChangesEditing}from'./trackchangesediting';export{default as BaseSuggestionThreadView}from'./ui/view/basesuggestionthreadview';import'./augmentation';
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';
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module track-changes/integrations/aiassistant
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
9
  /**
10
10
  * Provides track changes plugin integration for the AI Assistant feature.
11
11
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, 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 _0x5e64=['enableCommand','showAIAssistant','editor','commands','get','TrackChangesEditing'];(function(_0x112545,_0x5e640d){const _0x3de5f8=function(_0xfe2b95){while(--_0xfe2b95){_0x112545['push'](_0x112545['shift']());}};_0x3de5f8(++_0x5e640d);}(_0x5e64,0xac));const _0x3de5=function(_0x112545,_0x5e640d){_0x112545=_0x112545-0x0;let _0x3de5f8=_0x5e64[_0x112545];return _0x3de5f8;};import{Plugin as _0x2acc10}from'ckeditor5/src/core';export default class j extends _0x2acc10{['afterInit'](){const _0x11eb8b=this[_0x3de5('0x4')],_0xddb8e2=_0x11eb8b['plugins']['get'](_0x3de5('0x1'));_0x11eb8b[_0x3de5('0x5')][_0x3de5('0x0')](_0x3de5('0x3'))&&_0xddb8e2[_0x3de5('0x2')]('showAIAssistant');}}
23
+ const _0x1c39=['editor','commands','showAIAssistant','get','plugins'];(function(_0x3177be,_0x1c3975){const _0x17f671=function(_0x25084f){while(--_0x25084f){_0x3177be['push'](_0x3177be['shift']());}};_0x17f671(++_0x1c3975);}(_0x1c39,0x133));const _0x17f6=function(_0x3177be,_0x1c3975){_0x3177be=_0x3177be-0x0;let _0x17f671=_0x1c39[_0x3177be];return _0x17f671;};import{Plugin as _0x432a17}from'ckeditor5/src/core.js';export default class E extends _0x432a17{['afterInit'](){const _0x4684b4=this[_0x17f6('0x3')],_0x48de67=_0x4684b4[_0x17f6('0x2')][_0x17f6('0x1')]('TrackChangesEditing');_0x4684b4[_0x17f6('0x4')][_0x17f6('0x1')](_0x17f6('0x0'))&&_0x48de67['enableCommand']('showAIAssistant');}}
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module track-changes/integrations/alignment
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
9
  /**
10
10
  * Provides track changes plugin integration for alignment feature.
11
11
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, 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 _0x2adb=['TrackChangesEditing','locale','right','formatBlock','center','plugins','format','_registerLegacyDescription','afterInit','*Format:*\x20%0','FORMAT_ALIGN_TO_RIGHT','FORMAT_ALIGN_TO_LEFT','FORMAT_JUSTIFY_TEXT','registerDescriptionCallback','commandName','_enableDefaultAttributesIntegration','editor','FORMAT_ALIGNMENT','alignment','_descriptionFactory','FORMAT_ALIGN_TO_CENTER','get','has','type','AlignmentEditing'];(function(_0x512dd9,_0x2adbab){const _0x4db0aa=function(_0x409baf){while(--_0x409baf){_0x512dd9['push'](_0x512dd9['shift']());}};_0x4db0aa(++_0x2adbab);}(_0x2adb,0x1b9));const _0x4db0=function(_0x512dd9,_0x2adbab){_0x512dd9=_0x512dd9-0x0;let _0x4db0aa=_0x2adb[_0x512dd9];return _0x4db0aa;};import{Plugin as _0x46f3df}from'ckeditor5/src/core';import{getTranslation as _0xe8cd67}from'../utils/common-translations';export default class U extends _0x46f3df{[_0x4db0('0x11')](){const _0x2867e5=this['editor'],_0x53cc24=_0x2867e5[_0x4db0('0xa')];if(!_0x2867e5[_0x4db0('0xe')][_0x4db0('0x6')](_0x4db0('0x8')))return;const _0xb1619b=_0x2867e5[_0x4db0('0xe')][_0x4db0('0x5')](_0x4db0('0x9'));_0xb1619b[_0x4db0('0x18')](_0x4db0('0x2'),[],[_0x4db0('0x2')]),_0xb1619b[_0x4db0('0x3')]['registerAttributeLabel'](_0x4db0('0x2'),_0xe8cd67(_0x53cc24,_0x4db0('0x1'))),this[_0x4db0('0x10')]();}[_0x4db0('0x10')](){const _0x4ba405=this[_0x4db0('0x0')],_0x1efb12=_0x4ba405[_0x4db0('0xa')];_0x4ba405['plugins']['get']('TrackChangesEditing')[_0x4db0('0x3')][_0x4db0('0x16')](_0x211dd3=>{if(_0x4db0('0xc')!=_0x211dd3[_0x4db0('0x7')])return;const {data:_0x4d4ad3}=_0x211dd3;if(_0x4d4ad3&&'alignment'==_0x4d4ad3[_0x4db0('0x17')]){const _0xb233d5=_0x4d4ad3['commandParams'][0x0]['value'];return{'type':_0x4db0('0xf'),'content':_0xe8cd67(_0x1efb12,_0x4db0('0x12'),function(_0x3ee9e9){switch(_0x3ee9e9){case'left':return _0xe8cd67(_0x1efb12,_0x4db0('0x14'));case _0x4db0('0xb'):return _0xe8cd67(_0x1efb12,_0x4db0('0x13'));case _0x4db0('0xd'):return _0xe8cd67(_0x1efb12,_0x4db0('0x4'));case'justify':return _0xe8cd67(_0x1efb12,_0x4db0('0x15'));}}(_0xb233d5))};}});}}
23
+ const _0x18c7=['FORMAT_ALIGN_TO_LEFT','alignment','TrackChangesEditing','FORMAT_JUSTIFY_TEXT','format','type','center','registerDescriptionCallback','*Format:*\x20%0','has','commandName','FORMAT_ALIGN_TO_RIGHT','registerAttributeLabel','FORMAT_ALIGNMENT','locale','_enableDefaultAttributesIntegration','left','justify','plugins','value','get','FORMAT_ALIGN_TO_CENTER','editor','_registerLegacyDescription','afterInit'];(function(_0x595303,_0x18c714){const _0x41e3d0=function(_0x5046ce){while(--_0x5046ce){_0x595303['push'](_0x595303['shift']());}};_0x41e3d0(++_0x18c714);}(_0x18c7,0x1db));const _0x41e3=function(_0x595303,_0x18c714){_0x595303=_0x595303-0x0;let _0x41e3d0=_0x18c7[_0x595303];return _0x41e3d0;};import{Plugin as _0x178f67}from'ckeditor5/src/core.js';import{getTranslation as _0x308da1}from'../utils/common-translations.js';export default class V extends _0x178f67{[_0x41e3('0x18')](){const _0x2ce1d6=this[_0x41e3('0x16')],_0xef9e0e=_0x2ce1d6['locale'];if(!_0x2ce1d6[_0x41e3('0x12')][_0x41e3('0x9')]('AlignmentEditing'))return;const _0x34318f=_0x2ce1d6[_0x41e3('0x12')][_0x41e3('0x14')](_0x41e3('0x2'));_0x34318f[_0x41e3('0xf')](_0x41e3('0x1'),[],[_0x41e3('0x1')]),_0x34318f['_descriptionFactory'][_0x41e3('0xc')](_0x41e3('0x1'),_0x308da1(_0xef9e0e,_0x41e3('0xd'))),this['_registerLegacyDescription']();}[_0x41e3('0x17')](){const _0x3dc839=this[_0x41e3('0x16')],_0x46afe3=_0x3dc839[_0x41e3('0xe')];_0x3dc839[_0x41e3('0x12')][_0x41e3('0x14')](_0x41e3('0x2'))['_descriptionFactory'][_0x41e3('0x7')](_0x51e0a5=>{if('formatBlock'!=_0x51e0a5[_0x41e3('0x5')])return;const {data:_0x4ddcc6}=_0x51e0a5;if(_0x4ddcc6&&'alignment'==_0x4ddcc6[_0x41e3('0xa')]){const _0x113c21=_0x4ddcc6['commandParams'][0x0][_0x41e3('0x13')];return{'type':_0x41e3('0x4'),'content':_0x308da1(_0x46afe3,_0x41e3('0x8'),function(_0x54351d){switch(_0x54351d){case _0x41e3('0x10'):return _0x308da1(_0x46afe3,_0x41e3('0x0'));case'right':return _0x308da1(_0x46afe3,_0x41e3('0xb'));case _0x41e3('0x6'):return _0x308da1(_0x46afe3,_0x41e3('0x15'));case _0x41e3('0x11'):return _0x308da1(_0x46afe3,_0x41e3('0x3'));}}(_0x113c21))};}});}}
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module track-changes/integrations/basicstyles
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
9
  /**
10
10
  * Provides track changes plugin integration for basic styles features.
11
11
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, 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 _0x1f99=['strikethrough','*Format:*\x20%0','underline','registerDescriptionCallback','registerAttributeLabel','has','toUpperCase','BoldEditing','forceValue','SuperscriptEditing','FORMAT_CODE','_registerLegacyDescription','subscript','*Remove\x20format:*\x20%0','formatInline','_descriptionFactory','code','FORMAT_ITALIC','FORMAT_','commandParams','FORMAT_SUBSCRIPT','bold','plugins','SubscriptEditing','ItalicEditing','StrikethroughEditing','commandName','get','italic','FORMAT_UNDERLINE','format','TrackChangesEditing','editor','locale','type','UnderlineEditing','slice','toLowerCase'];(function(_0x5b967e,_0x1f9922){const _0x38dce3=function(_0x557e0b){while(--_0x557e0b){_0x5b967e['push'](_0x5b967e['shift']());}};_0x38dce3(++_0x1f9922);}(_0x1f99,0x1e5));const _0x38dc=function(_0x5b967e,_0x1f9922){_0x5b967e=_0x5b967e-0x0;let _0x38dce3=_0x1f99[_0x5b967e];return _0x38dce3;};import{Plugin as _0x1f30d7}from'ckeditor5/src/core';import{getTranslation as _0x275a70}from'../utils/common-translations';const ti=[_0x38dc('0x10'),_0x38dc('0x21'),_0x38dc('0x6'),'CodeEditing',_0x38dc('0x22'),_0x38dc('0x20'),_0x38dc('0x12')];export default class O extends _0x1f30d7{['afterInit'](){const _0x39e63c=this[_0x38dc('0x3')],_0x49f415=_0x39e63c['plugins']['get'](_0x38dc('0x2')),_0x4ae2c5=_0x39e63c[_0x38dc('0x4')];for(const _0x155d5c of ti){if(!_0x39e63c[_0x38dc('0x1f')][_0x38dc('0xe')](_0x155d5c))continue;const _0x3a4bdd=_0x155d5c[_0x38dc('0x7')](0x0,-0x7)[_0x38dc('0x8')](),_0x303d1b=_0x38dc('0x1b')+_0x3a4bdd[_0x38dc('0xf')]();_0x49f415['_enableDefaultAttributesIntegration'](_0x3a4bdd,[_0x3a4bdd]),_0x49f415[_0x38dc('0x18')][_0x38dc('0xd')](_0x3a4bdd,_0x275a70(_0x4ae2c5,_0x303d1b));}this[_0x38dc('0x14')]();}[_0x38dc('0x14')](){const _0x535aba=this[_0x38dc('0x3')],_0x1a1c2e=_0x535aba[_0x38dc('0x4')],_0x2d1bfd=_0x535aba[_0x38dc('0x1f')][_0x38dc('0x24')](_0x38dc('0x2'));function _0x25dfaa(_0xf1afd5,_0x11c413){_0x2d1bfd[_0x38dc('0x18')][_0x38dc('0xc')](_0xd23a5=>{if(_0x38dc('0x17')!=_0xd23a5[_0x38dc('0x5')])return;const {data:_0x288039}=_0xd23a5;return _0x288039&&_0x288039[_0x38dc('0x23')]===_0xf1afd5?_0x288039[_0x38dc('0x1c')][0x0][_0x38dc('0x11')]?{'type':_0x38dc('0x1'),'content':_0x275a70(_0x1a1c2e,_0x38dc('0xa'),_0x11c413)}:{'type':_0x38dc('0x1'),'content':_0x275a70(_0x1a1c2e,_0x38dc('0x16'),_0x11c413)}:void 0x0;});}_0x25dfaa(_0x38dc('0x1e'),_0x275a70(_0x1a1c2e,'FORMAT_BOLD')),_0x25dfaa(_0x38dc('0x25'),_0x275a70(_0x1a1c2e,_0x38dc('0x1a'))),_0x25dfaa(_0x38dc('0xb'),_0x275a70(_0x1a1c2e,_0x38dc('0x0'))),_0x25dfaa(_0x38dc('0x19'),_0x275a70(_0x1a1c2e,_0x38dc('0x13'))),_0x25dfaa(_0x38dc('0x9'),_0x275a70(_0x1a1c2e,'FORMAT_STRIKETHROUGH')),_0x25dfaa(_0x38dc('0x15'),_0x275a70(_0x1a1c2e,_0x38dc('0x1d'))),_0x25dfaa('superscript',_0x275a70(_0x1a1c2e,'FORMAT_SUPERSCRIPT'));}}
23
+ const _0x48fb=['editor','superscript','strikethrough','plugins','_descriptionFactory','toLowerCase','FORMAT_BOLD','SuperscriptEditing','FORMAT_SUBSCRIPT','underline','CodeEditing','StrikethroughEditing','FORMAT_STRIKETHROUGH','forceValue','subscript','SubscriptEditing','code','ItalicEditing','locale','slice','*Format:*\x20%0','_registerLegacyDescription','toUpperCase','FORMAT_','registerDescriptionCallback','UnderlineEditing','bold','commandName','_enableDefaultAttributesIntegration','italic','FORMAT_CODE','FORMAT_SUPERSCRIPT','commandParams','TrackChangesEditing','FORMAT_UNDERLINE','type'];(function(_0x96bbc0,_0x48fb53){const _0x694eb4=function(_0x5cbb49){while(--_0x5cbb49){_0x96bbc0['push'](_0x96bbc0['shift']());}};_0x694eb4(++_0x48fb53);}(_0x48fb,0x8b));const _0x694e=function(_0x96bbc0,_0x48fb53){_0x96bbc0=_0x96bbc0-0x0;let _0x694eb4=_0x48fb[_0x96bbc0];return _0x694eb4;};import{Plugin as _0x5f4693}from'ckeditor5/src/core.js';import{getTranslation as _0x70b1e9}from'../utils/common-translations.js';const ti=['BoldEditing',_0x694e('0x16'),_0x694e('0x1e'),_0x694e('0xf'),_0x694e('0x10'),_0x694e('0x14'),_0x694e('0xc')];export default class U extends _0x5f4693{['afterInit'](){const _0x35a70a=this['editor'],_0xb872f0=_0x35a70a['plugins']['get']('TrackChangesEditing'),_0x3e19eb=_0x35a70a['locale'];for(const _0x2b7717 of ti){if(!_0x35a70a[_0x694e('0x8')]['has'](_0x2b7717))continue;const _0x45fb7f=_0x2b7717[_0x694e('0x18')](0x0,-0x7)[_0x694e('0xa')](),_0x36da30=_0x694e('0x1c')+_0x45fb7f[_0x694e('0x1b')]();_0xb872f0[_0x694e('0x21')](_0x45fb7f,[_0x45fb7f]),_0xb872f0[_0x694e('0x9')]['registerAttributeLabel'](_0x45fb7f,_0x70b1e9(_0x3e19eb,_0x36da30));}this['_registerLegacyDescription']();}[_0x694e('0x1a')](){const _0x50dce6=this[_0x694e('0x5')],_0x43597f=_0x50dce6[_0x694e('0x17')],_0x39089a=_0x50dce6['plugins']['get'](_0x694e('0x2'));function _0x1fc66d(_0x2a68de,_0x398a2b){_0x39089a['_descriptionFactory'][_0x694e('0x1d')](_0x4f8ad5=>{if('formatInline'!=_0x4f8ad5[_0x694e('0x4')])return;const {data:_0x5222f3}=_0x4f8ad5;return _0x5222f3&&_0x5222f3[_0x694e('0x20')]===_0x2a68de?_0x5222f3[_0x694e('0x1')][0x0][_0x694e('0x12')]?{'type':'format','content':_0x70b1e9(_0x43597f,_0x694e('0x19'),_0x398a2b)}:{'type':'format','content':_0x70b1e9(_0x43597f,'*Remove\x20format:*\x20%0',_0x398a2b)}:void 0x0;});}_0x1fc66d(_0x694e('0x1f'),_0x70b1e9(_0x43597f,_0x694e('0xb'))),_0x1fc66d(_0x694e('0x22'),_0x70b1e9(_0x43597f,'FORMAT_ITALIC')),_0x1fc66d(_0x694e('0xe'),_0x70b1e9(_0x43597f,_0x694e('0x3'))),_0x1fc66d(_0x694e('0x15'),_0x70b1e9(_0x43597f,_0x694e('0x23'))),_0x1fc66d(_0x694e('0x7'),_0x70b1e9(_0x43597f,_0x694e('0x11'))),_0x1fc66d(_0x694e('0x13'),_0x70b1e9(_0x43597f,_0x694e('0xd'))),_0x1fc66d(_0x694e('0x6'),_0x70b1e9(_0x43597f,_0x694e('0x0')));}}
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module track-changes/integrations/blockquote
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
9
  /**
10
10
  * Provides track changes plugin integration for block quote feature.
11
11
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, 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 _0x29be=['model','name','getSelectedBlocks','blockQuote','checkChild','from','BlockQuoteEditing','filter','commandParams','format','ELEMENT_BLOCK_QUOTE','forceValue','plugins','has','enableCommand','value','markBlockFormat','editor','*Set\x20format:*\x20%0','parent','commands','locale','registerDescriptionCallback','TrackChangesEditing','get','_descriptionFactory'];(function(_0xe69a04,_0x29bea5){const _0x148075=function(_0x9be0cd){while(--_0x9be0cd){_0xe69a04['push'](_0xe69a04['shift']());}};_0x148075(++_0x29bea5);}(_0x29be,0xa0));const _0x1480=function(_0xe69a04,_0x29bea5){_0xe69a04=_0xe69a04-0x0;let _0x148075=_0x29be[_0xe69a04];return _0x148075;};import{Plugin as _0x46c32d}from'ckeditor5/src/core';import{getTranslation as _0x4a63b3}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x2761d1}from'../utils/utils';export default class V extends _0x46c32d{['afterInit'](){const _0x3cf64e=this[_0x1480('0xd')],_0x28b70c=_0x3cf64e[_0x1480('0x11')];if(!_0x3cf64e[_0x1480('0x8')][_0x1480('0x9')](_0x1480('0x2')))return;const _0x5e41e7=_0x3cf64e['plugins']['get'](_0x1480('0x13')),_0x3adeea=this[_0x1480('0xd')][_0x1480('0x10')][_0x1480('0x14')]('blockQuote');_0x5e41e7[_0x1480('0xa')](_0x1480('0x19'),(_0xab0e5a,_0x5d462a={})=>{const _0x12de49=this['editor'][_0x1480('0x16')]['document']['selection'],_0x4dd338=_0x5d462a&&void 0x0!==_0x5d462a[_0x1480('0x7')]?_0x5d462a[_0x1480('0x7')]:!_0x3adeea[_0x1480('0xb')];let _0x221b95=[];if(_0x4dd338){const _0x44009c=Array['from'](_0x12de49[_0x1480('0x18')]())[_0x1480('0x3')](_0x54b2e0=>eo(_0x54b2e0)||function(_0x170587,_0x169ec5){const _0x20ac74=_0x169ec5[_0x1480('0x0')](_0x170587[_0x1480('0xf')],_0x1480('0x19')),_0x4096e9=_0x169ec5[_0x1480('0x0')](['$root','blockQuote'],_0x170587);return _0x20ac74&&_0x4096e9;}(_0x54b2e0,this[_0x1480('0xd')][_0x1480('0x16')]['schema']));_0x221b95=_0x2761d1(_0x44009c,_0x3cf64e[_0x1480('0x16')]);}else{const _0x1c4c1b=Array[_0x1480('0x1')](_0x12de49['getSelectedBlocks']())[_0x1480('0x3')](_0xf3b94f=>eo(_0xf3b94f));_0x221b95=_0x2761d1(_0x1c4c1b,_0x3cf64e[_0x1480('0x16')]);}_0x3cf64e[_0x1480('0x16')]['change'](()=>{for(const _0x426b8a of _0x221b95)_0x5e41e7[_0x1480('0xc')](_0x426b8a,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4dd338}]});});}),_0x5e41e7[_0x1480('0x15')][_0x1480('0x12')](_0x4e8869=>{const {data:_0x33fe50}=_0x4e8869;if(_0x33fe50&&_0x1480('0x19')==_0x33fe50['commandName']){const _0x4ad0eb=_0x4a63b3(_0x28b70c,_0x1480('0x6'));return _0x33fe50[_0x1480('0x4')][0x0][_0x1480('0x7')]?{'type':_0x1480('0x5'),'content':_0x4a63b3(_0x28b70c,_0x1480('0xe'),_0x4ad0eb)}:{'type':_0x1480('0x5'),'content':_0x4a63b3(_0x28b70c,'*Remove\x20format:*\x20%0',_0x4ad0eb)};}});}}function eo(_0x342880){return _0x1480('0x19')==_0x342880['parent'][_0x1480('0x17')];}
23
+ const _0x410a=['commandName','value','commandParams','locale','afterInit','has','forceValue','*Remove\x20format:*\x20%0','change','format','ELEMENT_BLOCK_QUOTE','from','getSelectedBlocks','blockQuote','checkChild','commands','selection','editor','filter','registerDescriptionCallback','parent','_descriptionFactory','name','model','markBlockFormat','plugins'];(function(_0x59a75c,_0x410aec){const _0x8390fd=function(_0x2304c6){while(--_0x2304c6){_0x59a75c['push'](_0x59a75c['shift']());}};_0x8390fd(++_0x410aec);}(_0x410a,0x1dc));const _0x8390=function(_0x59a75c,_0x410aec){_0x59a75c=_0x59a75c-0x0;let _0x8390fd=_0x410a[_0x59a75c];return _0x8390fd;};import{Plugin as _0x1bc5b3}from'ckeditor5/src/core.js';import{getTranslation as _0x590650}from'../utils/common-translations.js';import{getRangesOfBlockGroups as _0x3fd0ed}from'../utils/utils.js';export default class O extends _0x1bc5b3{[_0x8390('0x16')](){const _0x477ecd=this[_0x8390('0x9')],_0x103b07=_0x477ecd[_0x8390('0x15')];if(!_0x477ecd['plugins'][_0x8390('0x17')]('BlockQuoteEditing'))return;const _0x5b7fdc=_0x477ecd[_0x8390('0x11')]['get']('TrackChangesEditing'),_0x556f14=this[_0x8390('0x9')][_0x8390('0x7')]['get']('blockQuote');_0x5b7fdc['enableCommand'](_0x8390('0x5'),(_0x5a1c06,_0x306537={})=>{const _0xbc2b1f=this['editor'][_0x8390('0xf')]['document'][_0x8390('0x8')],_0x18eded=_0x306537&&void 0x0!==_0x306537[_0x8390('0x18')]?_0x306537[_0x8390('0x18')]:!_0x556f14[_0x8390('0x13')];let _0x574c69=[];if(_0x18eded){const _0x4528c7=Array[_0x8390('0x3')](_0xbc2b1f[_0x8390('0x4')]())[_0x8390('0xa')](_0x2e7f36=>oo(_0x2e7f36)||function(_0x491190,_0x5e8eda){const _0x3449c9=_0x5e8eda[_0x8390('0x6')](_0x491190['parent'],_0x8390('0x5')),_0x40555a=_0x5e8eda[_0x8390('0x6')](['$root',_0x8390('0x5')],_0x491190);return _0x3449c9&&_0x40555a;}(_0x2e7f36,this[_0x8390('0x9')][_0x8390('0xf')]['schema']));_0x574c69=_0x3fd0ed(_0x4528c7,_0x477ecd['model']);}else{const _0x46c381=Array[_0x8390('0x3')](_0xbc2b1f[_0x8390('0x4')]())[_0x8390('0xa')](_0x433e58=>oo(_0x433e58));_0x574c69=_0x3fd0ed(_0x46c381,_0x477ecd[_0x8390('0xf')]);}_0x477ecd[_0x8390('0xf')][_0x8390('0x0')](()=>{for(const _0x521670 of _0x574c69)_0x5b7fdc[_0x8390('0x10')](_0x521670,{'commandName':_0x8390('0x5'),'commandParams':[{'forceValue':_0x18eded}]});});}),_0x5b7fdc[_0x8390('0xd')][_0x8390('0xb')](_0x573142=>{const {data:_0x4c4dd3}=_0x573142;if(_0x4c4dd3&&_0x8390('0x5')==_0x4c4dd3[_0x8390('0x12')]){const _0x2cb61b=_0x590650(_0x103b07,_0x8390('0x2'));return _0x4c4dd3[_0x8390('0x14')][0x0][_0x8390('0x18')]?{'type':_0x8390('0x1'),'content':_0x590650(_0x103b07,'*Set\x20format:*\x20%0',_0x2cb61b)}:{'type':_0x8390('0x1'),'content':_0x590650(_0x103b07,_0x8390('0x19'),_0x2cb61b)};}});}}function oo(_0x4a9ad0){return _0x8390('0x5')==_0x4a9ad0[_0x8390('0xc')][_0x8390('0xe')];}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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/casechange
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ /**
10
+ * Provides track changes plugin integration for case change feature.
11
+ */
12
+ export default class TrackChangesCaseChange extends Plugin {
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ afterInit(): void;
17
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, 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 _0x3e6b=['afterInit','plugins','changeCaseUpper','get','has','TrackChangesEditing','changeCaseLower','editor','enableCommand','changeCaseTitle'];(function(_0x4f91ea,_0x3e6b8e){const _0x41300a=function(_0x3b3d13){while(--_0x3b3d13){_0x4f91ea['push'](_0x4f91ea['shift']());}};_0x41300a(++_0x3e6b8e);}(_0x3e6b,0x1b2));const _0x4130=function(_0x4f91ea,_0x3e6b8e){_0x4f91ea=_0x4f91ea-0x0;let _0x41300a=_0x3e6b[_0x4f91ea];return _0x41300a;};import{Plugin as _0x1a4469}from'ckeditor5/src/core.js';export default class G extends _0x1a4469{[_0x4130('0x6')](){const _0x14c050=this[_0x4130('0x3')];_0x14c050[_0x4130('0x7')][_0x4130('0x0')]('CaseChange')&&(_0x14c050['plugins'][_0x4130('0x9')](_0x4130('0x1'))[_0x4130('0x4')](_0x4130('0x8')),_0x14c050[_0x4130('0x7')][_0x4130('0x9')](_0x4130('0x1'))[_0x4130('0x4')](_0x4130('0x2')),_0x14c050[_0x4130('0x7')][_0x4130('0x9')](_0x4130('0x1'))[_0x4130('0x4')](_0x4130('0x5')));}}
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module track-changes/integrations/ckbox
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
9
  /**
10
10
  * Provides track changes plugin integration for the CKBox feature.
11
11
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, 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 _0x5d9b=['ckbox','plugins','get','TrackChangesEditing','editor','afterInit','enableCommand'];(function(_0x2f6894,_0x5d9b94){const _0x27f714=function(_0x230bd2){while(--_0x230bd2){_0x2f6894['push'](_0x2f6894['shift']());}};_0x27f714(++_0x5d9b94);}(_0x5d9b,0x12b));const _0x27f7=function(_0x2f6894,_0x5d9b94){_0x2f6894=_0x2f6894-0x0;let _0x27f714=_0x5d9b[_0x2f6894];return _0x27f714;};import{Plugin as _0x5da118}from'ckeditor5/src/core';export default class F extends _0x5da118{[_0x27f7('0x0')](){const _0x300c3c=this[_0x27f7('0x6')];_0x300c3c['commands'][_0x27f7('0x4')](_0x27f7('0x2'))&&_0x300c3c[_0x27f7('0x3')][_0x27f7('0x4')](_0x27f7('0x5'))[_0x27f7('0x1')]('ckbox');}}
23
+ const _0x4522=['afterInit','TrackChangesEditing','editor','enableCommand','get','commands','ckbox','plugins'];(function(_0x372fa8,_0x45228e){const _0x4ae7c7=function(_0x2a80c3){while(--_0x2a80c3){_0x372fa8['push'](_0x372fa8['shift']());}};_0x4ae7c7(++_0x45228e);}(_0x4522,0x14c));const _0x4ae7=function(_0x372fa8,_0x45228e){_0x372fa8=_0x372fa8-0x0;let _0x4ae7c7=_0x4522[_0x372fa8];return _0x4ae7c7;};import{Plugin as _0x1a2376}from'ckeditor5/src/core.js';export default class F extends _0x1a2376{[_0x4ae7('0x4')](){const _0x189add=this[_0x4ae7('0x6')];_0x189add[_0x4ae7('0x1')][_0x4ae7('0x0')](_0x4ae7('0x2'))&&_0x189add[_0x4ae7('0x3')][_0x4ae7('0x0')](_0x4ae7('0x5'))[_0x4ae7('0x7')](_0x4ae7('0x2'));}}
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module track-changes/integrations/codeblock
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
9
  /**
10
10
  * Provides track changes plugin integration for code block feature.
11
11
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, 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 _0x5d89=['rootElement','type','change','label','from','registerDescriptionCallback','afterInit','language','forceValue','get','formatBlock','filter','commandName','document','isLimit','plugins','model','TrackChangesEditing','outdentCodeBlock','format','codeBlock','parent','enableCommand','*Set\x20format:*\x20%0','toLowerCase','config','ELEMENT_CODE_BLOCK','editor','commandParams','indentCodeBlock','commands','getSelectedBlocks','CodeBlock','*Remove\x20format:*\x20%0','markBlockFormat','checkChild','locale'];(function(_0x18eda2,_0x5d8911){const _0x2ff416=function(_0x37119c){while(--_0x37119c){_0x18eda2['push'](_0x18eda2['shift']());}};_0x2ff416(++_0x5d8911);}(_0x5d89,0xcc));const _0x2ff4=function(_0x18eda2,_0x5d8911){_0x18eda2=_0x18eda2-0x0;let _0x2ff416=_0x5d89[_0x18eda2];return _0x2ff416;};import{Plugin as _0x5338a4}from'ckeditor5/src/core';import{getTranslation as _0x57fb46}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x4fefee}from'../utils/utils';export default class G extends _0x5338a4{[_0x2ff4('0x18')](){const _0x1e02c9=this[_0x2ff4('0x8')];if(!_0x1e02c9[_0x2ff4('0x21')]['has'](_0x2ff4('0xd')))return;const _0x442d27=_0x1e02c9[_0x2ff4('0x21')][_0x2ff4('0x1b')](_0x2ff4('0x23')),_0x5998e8=_0x1e02c9[_0x2ff4('0x11')],_0x55bba1=_0x1e02c9[_0x2ff4('0x6')]['get']('codeBlock')['languages'],_0x54b2fc=_0x1e02c9[_0x2ff4('0xb')][_0x2ff4('0x1b')](_0x2ff4('0x1'));_0x442d27['enableCommand'](_0x2ff4('0xa')),_0x442d27[_0x2ff4('0x3')](_0x2ff4('0x24')),_0x442d27[_0x2ff4('0x3')](_0x2ff4('0x1'),(_0x156387,_0x1f7c52={})=>{const _0x2d1429=_0x1e02c9[_0x2ff4('0x22')],_0x2470e8=_0x1e02c9[_0x2ff4('0x22')][_0x2ff4('0x1f')]['selection'],_0x1e9840=_0x1f7c52&&void 0x0!==_0x1f7c52[_0x2ff4('0x1a')]?_0x1f7c52['forceValue']:!_0x54b2fc['value'];let _0x38c68c;_0x1f7c52['language']||(_0x1f7c52[_0x2ff4('0x19')]=_0x55bba1[0x0]['language']),_0x38c68c=_0x1e9840?Array[_0x2ff4('0x16')](_0x2470e8[_0x2ff4('0xc')]())[_0x2ff4('0x1d')](_0x52b06f=>ro(_0x52b06f)||function(_0x540b72,_0xa922ee){if(_0x540b72['is'](_0x2ff4('0x12'))||_0xa922ee[_0x2ff4('0x20')](_0x540b72))return!0x1;return _0xa922ee[_0x2ff4('0x10')](_0x540b72[_0x2ff4('0x2')],'codeBlock');}(_0x52b06f,_0x2d1429['schema'])):Array[_0x2ff4('0x16')](_0x2470e8[_0x2ff4('0xc')]())[_0x2ff4('0x1d')](_0x113dfd=>ro(_0x113dfd));const _0x5b1bb3=_0x4fefee(_0x38c68c,_0x2d1429);_0x2d1429[_0x2ff4('0x14')](()=>{for(const _0x4e9792 of _0x5b1bb3)_0x442d27[_0x2ff4('0xf')](_0x4e9792,{'commandName':_0x2ff4('0x1'),'commandParams':[{..._0x1f7c52,'forceValue':_0x1e9840}],'formatGroupId':'blockName'});});}),(_0x442d27['_descriptionFactory']['registerElementLabel'](_0x2ff4('0x1'),_0x130515=>_0x57fb46(_0x5998e8,'ELEMENT_CODE_BLOCK',_0x130515)),_0x442d27['_descriptionFactory'][_0x2ff4('0x17')](_0x203bc8=>{if(_0x2ff4('0x1c')!=_0x203bc8[_0x2ff4('0x13')])return;const _0x5c7afa=_0x5998e8['t'],{data:_0x208681}=_0x203bc8;if(!_0x208681||_0x2ff4('0x1')!=_0x208681[_0x2ff4('0x1e')])return;const _0x2c999e=_0x208681[_0x2ff4('0x9')][0x0]['language'],_0x3be4a9=_0x5c7afa(_0x55bba1['find'](_0x50d5c6=>_0x50d5c6[_0x2ff4('0x19')]===_0x2c999e)[_0x2ff4('0x15')])[_0x2ff4('0x5')]();return _0x208681['commandParams'][0x0]['forceValue']?{'type':_0x2ff4('0x0'),'content':_0x57fb46(_0x5998e8,_0x2ff4('0x4'),_0x57fb46(_0x5998e8,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3be4a9+')')}:{'type':_0x2ff4('0x0'),'content':_0x57fb46(_0x5998e8,_0x2ff4('0xe'),_0x57fb46(_0x5998e8,_0x2ff4('0x7'),0x1))};}));}}function ro(_0x436c30){return _0x2ff4('0x1')==_0x436c30['name'];}
23
+ const _0x194e=['TrackChangesEditing','enableCommand','commandName','forceValue','format','outdentCodeBlock','*Remove\x20format:*\x20%0','has','language','name','checkChild','markBlockFormat','registerElementLabel','_descriptionFactory','from','schema','*Set\x20format:*\x20%0','change','document','value','registerDescriptionCallback','model','locale','find','ELEMENT_CODE_BLOCK','blockName','plugins','commands','formatBlock','afterInit','rootElement','commandParams','indentCodeBlock','get','codeBlock'];(function(_0x2a07ee,_0x194e4b){const _0x523579=function(_0x521916){while(--_0x521916){_0x2a07ee['push'](_0x2a07ee['shift']());}};_0x523579(++_0x194e4b);}(_0x194e,0x114));const _0x5235=function(_0x2a07ee,_0x194e4b){_0x2a07ee=_0x2a07ee-0x0;let _0x523579=_0x194e[_0x2a07ee];return _0x523579;};import{Plugin as _0x1c5078}from'ckeditor5/src/core.js';import{getTranslation as _0x941dd6}from'../utils/common-translations.js';import{getRangesOfBlockGroups as _0x28dd61}from'../utils/utils.js';export default class L extends _0x1c5078{[_0x5235('0x21')](){const _0x12285a=this['editor'];if(!_0x12285a[_0x5235('0x1e')][_0x5235('0xb')]('CodeBlock'))return;const _0x396b19=_0x12285a[_0x5235('0x1e')][_0x5235('0x2')](_0x5235('0x4')),_0x510a5e=_0x12285a[_0x5235('0x1a')],_0x3c3fd3=_0x12285a['config'][_0x5235('0x2')](_0x5235('0x3'))['languages'],_0xd33154=_0x12285a[_0x5235('0x1f')][_0x5235('0x2')](_0x5235('0x3'));_0x396b19[_0x5235('0x5')](_0x5235('0x1')),_0x396b19[_0x5235('0x5')](_0x5235('0x9')),_0x396b19[_0x5235('0x5')](_0x5235('0x3'),(_0x35fa1f,_0xfc4d76={})=>{const _0x52a387=_0x12285a[_0x5235('0x19')],_0xac2553=_0x12285a['model'][_0x5235('0x16')]['selection'],_0x292195=_0xfc4d76&&void 0x0!==_0xfc4d76[_0x5235('0x7')]?_0xfc4d76[_0x5235('0x7')]:!_0xd33154[_0x5235('0x17')];let _0x537eba;_0xfc4d76[_0x5235('0xc')]||(_0xfc4d76[_0x5235('0xc')]=_0x3c3fd3[0x0]['language']),_0x537eba=_0x292195?Array[_0x5235('0x12')](_0xac2553['getSelectedBlocks']())['filter'](_0x25f35c=>eo(_0x25f35c)||function(_0x140448,_0x2829f8){if(_0x140448['is'](_0x5235('0x22'))||_0x2829f8['isLimit'](_0x140448))return!0x1;return _0x2829f8[_0x5235('0xe')](_0x140448['parent'],_0x5235('0x3'));}(_0x25f35c,_0x52a387[_0x5235('0x13')])):Array[_0x5235('0x12')](_0xac2553['getSelectedBlocks']())['filter'](_0xa536eb=>eo(_0xa536eb));const _0x546065=_0x28dd61(_0x537eba,_0x52a387);_0x52a387[_0x5235('0x15')](()=>{for(const _0x6508ed of _0x546065)_0x396b19[_0x5235('0xf')](_0x6508ed,{'commandName':'codeBlock','commandParams':[{..._0xfc4d76,'forceValue':_0x292195}],'formatGroupId':_0x5235('0x1d')});});}),(_0x396b19['_descriptionFactory'][_0x5235('0x10')]('codeBlock',_0x1d4afc=>_0x941dd6(_0x510a5e,'ELEMENT_CODE_BLOCK',_0x1d4afc)),_0x396b19[_0x5235('0x11')][_0x5235('0x18')](_0x5584db=>{if(_0x5235('0x20')!=_0x5584db['type'])return;const _0x410170=_0x510a5e['t'],{data:_0x4684b2}=_0x5584db;if(!_0x4684b2||_0x5235('0x3')!=_0x4684b2[_0x5235('0x6')])return;const _0x13a458=_0x4684b2[_0x5235('0x0')][0x0][_0x5235('0xc')],_0x196982=_0x410170(_0x3c3fd3[_0x5235('0x1b')](_0x39bc60=>_0x39bc60['language']===_0x13a458)['label'])['toLowerCase']();return _0x4684b2[_0x5235('0x0')][0x0]['forceValue']?{'type':_0x5235('0x8'),'content':_0x941dd6(_0x510a5e,_0x5235('0x14'),_0x941dd6(_0x510a5e,_0x5235('0x1c'),0x1)+'\x20('+_0x196982+')')}:{'type':_0x5235('0x8'),'content':_0x941dd6(_0x510a5e,_0x5235('0xa'),_0x941dd6(_0x510a5e,_0x5235('0x1c'),0x1))};}));}}function eo(_0x3e6579){return'codeBlock'==_0x3e6579[_0x5235('0xd')];}
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module track-changes/integrations/comments
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
9
  /**
10
10
  * Provides track changes plugin integration for {@link module:comments/comments~Comments comments feature}.
11
11
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, 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 _0x1fc2=['plugins','enableCommand','addCommentThread','has','CommentsEditing','TrackChangesEditing','editor'];(function(_0x2d2e30,_0x1fc2df){const _0x485e75=function(_0x390c30){while(--_0x390c30){_0x2d2e30['push'](_0x2d2e30['shift']());}};_0x485e75(++_0x1fc2df);}(_0x1fc2,0x121));const _0x485e=function(_0x2d2e30,_0x1fc2df){_0x2d2e30=_0x2d2e30-0x0;let _0x485e75=_0x1fc2[_0x2d2e30];return _0x485e75;};import{Plugin as _0x1f9bf8}from'ckeditor5/src/core';export default class L extends _0x1f9bf8{['afterInit'](){const _0x2adfdc=this[_0x485e('0x4')];if(!_0x2adfdc[_0x485e('0x5')][_0x485e('0x1')](_0x485e('0x2')))return;_0x2adfdc['plugins']['get'](_0x485e('0x3'))[_0x485e('0x6')](_0x485e('0x0'));}}
23
+ const _0x266d=['TrackChangesEditing','CommentsEditing','plugins','has','editor'];(function(_0x511f30,_0x266db2){const _0x1dd4df=function(_0x2f4be2){while(--_0x2f4be2){_0x511f30['push'](_0x511f30['shift']());}};_0x1dd4df(++_0x266db2);}(_0x266d,0x1b9));const _0x1dd4=function(_0x511f30,_0x266db2){_0x511f30=_0x511f30-0x0;let _0x1dd4df=_0x266d[_0x511f30];return _0x1dd4df;};import{Plugin as _0x32ddcf}from'ckeditor5/src/core.js';export default class H extends _0x32ddcf{['afterInit'](){const _0x1be53c=this[_0x1dd4('0x3')];if(!_0x1be53c[_0x1dd4('0x1')][_0x1dd4('0x2')](_0x1dd4('0x0')))return;_0x1be53c[_0x1dd4('0x1')]['get'](_0x1dd4('0x4'))['enableCommand']('addCommentThread');}}
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module track-changes/integrations/deletecommand
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { Delete } from 'ckeditor5/src/typing';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { Delete } from 'ckeditor5/src/typing.js';
10
10
  /**
11
11
  * Provides track changes plugin integration for {@link module:typing/inputcommand~DeleteCommand delete command}. Also
12
12
  * provides integration {@link module:engine/model/model~Model#deleteContent} as many features use it internally.