@ckeditor/ckeditor5-track-changes 40.2.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 (196) hide show
  1. package/CHANGELOG.md +5 -5
  2. package/LICENSE.md +1 -1
  3. package/README.md +1 -1
  4. package/build/track-changes.js +2 -2
  5. package/build/translations/es.js +1 -1
  6. package/lang/translations/ar.po +1 -1
  7. package/lang/translations/az.po +1 -1
  8. package/lang/translations/bg.po +1 -1
  9. package/lang/translations/bn.po +1 -1
  10. package/lang/translations/ca.po +1 -1
  11. package/lang/translations/cs.po +1 -1
  12. package/lang/translations/da.po +1 -1
  13. package/lang/translations/de.po +1 -1
  14. package/lang/translations/el.po +1 -1
  15. package/lang/translations/en-au.po +1 -1
  16. package/lang/translations/en.po +1 -1
  17. package/lang/translations/es.po +2 -2
  18. package/lang/translations/et.po +1 -1
  19. package/lang/translations/fi.po +1 -1
  20. package/lang/translations/fr.po +1 -1
  21. package/lang/translations/gl.po +1 -1
  22. package/lang/translations/he.po +1 -1
  23. package/lang/translations/hi.po +1 -1
  24. package/lang/translations/hr.po +1 -1
  25. package/lang/translations/hu.po +1 -1
  26. package/lang/translations/id.po +1 -1
  27. package/lang/translations/it.po +1 -1
  28. package/lang/translations/ja.po +1 -1
  29. package/lang/translations/ko.po +1 -1
  30. package/lang/translations/lt.po +1 -1
  31. package/lang/translations/lv.po +1 -1
  32. package/lang/translations/ms.po +1 -1
  33. package/lang/translations/nl.po +1 -1
  34. package/lang/translations/no.po +1 -1
  35. package/lang/translations/pl.po +1 -1
  36. package/lang/translations/pt-br.po +1 -1
  37. package/lang/translations/pt.po +1 -1
  38. package/lang/translations/ro.po +1 -1
  39. package/lang/translations/ru.po +1 -1
  40. package/lang/translations/sk.po +1 -1
  41. package/lang/translations/sq.po +1 -1
  42. package/lang/translations/sr-latn.po +1 -1
  43. package/lang/translations/sr.po +1 -1
  44. package/lang/translations/sv.po +1 -1
  45. package/lang/translations/th.po +1 -1
  46. package/lang/translations/tk.po +1 -1
  47. package/lang/translations/tr.po +1 -1
  48. package/lang/translations/tt.po +1 -1
  49. package/lang/translations/uk.po +1 -1
  50. package/lang/translations/ur.po +1 -1
  51. package/lang/translations/vi.po +1 -1
  52. package/lang/translations/zh-cn.po +1 -1
  53. package/lang/translations/zh.po +1 -1
  54. package/package.json +4 -3
  55. package/src/augmentation.d.ts +3 -3
  56. package/src/augmentation.js +1 -1
  57. package/src/commands/acceptsuggestioncommand.d.ts +3 -3
  58. package/src/commands/acceptsuggestioncommand.js +2 -2
  59. package/src/commands/discardsuggestioncommand.d.ts +3 -3
  60. package/src/commands/discardsuggestioncommand.js +2 -2
  61. package/src/commands/executeonallsuggestionscommand.d.ts +3 -3
  62. package/src/commands/executeonallsuggestionscommand.js +2 -2
  63. package/src/commands/executeonselectedsuggestionscommand.d.ts +3 -3
  64. package/src/commands/executeonselectedsuggestionscommand.js +2 -2
  65. package/src/commands/trackchangescommand.d.ts +2 -2
  66. package/src/commands/trackchangescommand.js +2 -2
  67. package/src/index.d.ts +13 -13
  68. package/src/index.js +2 -2
  69. package/src/integrations/aiassistant.d.ts +2 -2
  70. package/src/integrations/aiassistant.js +2 -2
  71. package/src/integrations/alignment.d.ts +2 -2
  72. package/src/integrations/alignment.js +2 -2
  73. package/src/integrations/basicstyles.d.ts +2 -2
  74. package/src/integrations/basicstyles.js +2 -2
  75. package/src/integrations/blockquote.d.ts +2 -2
  76. package/src/integrations/blockquote.js +2 -2
  77. package/src/integrations/casechange.d.ts +17 -0
  78. package/src/integrations/casechange.js +23 -0
  79. package/src/integrations/ckbox.d.ts +2 -2
  80. package/src/integrations/ckbox.js +2 -2
  81. package/src/integrations/codeblock.d.ts +2 -2
  82. package/src/integrations/codeblock.js +2 -2
  83. package/src/integrations/comments.d.ts +2 -2
  84. package/src/integrations/comments.js +2 -2
  85. package/src/integrations/deletecommand.d.ts +3 -3
  86. package/src/integrations/deletecommand.js +2 -2
  87. package/src/integrations/entercommand.d.ts +3 -3
  88. package/src/integrations/entercommand.js +2 -2
  89. package/src/integrations/findandreplace.d.ts +2 -2
  90. package/src/integrations/findandreplace.js +2 -2
  91. package/src/integrations/font.d.ts +2 -2
  92. package/src/integrations/font.js +2 -2
  93. package/src/integrations/formatpainter.d.ts +2 -2
  94. package/src/integrations/formatpainter.js +2 -2
  95. package/src/integrations/heading.d.ts +2 -2
  96. package/src/integrations/heading.js +2 -2
  97. package/src/integrations/highlight.d.ts +2 -2
  98. package/src/integrations/highlight.js +2 -2
  99. package/src/integrations/horizontalline.d.ts +2 -2
  100. package/src/integrations/horizontalline.js +2 -2
  101. package/src/integrations/htmlembed.d.ts +2 -2
  102. package/src/integrations/htmlembed.js +2 -2
  103. package/src/integrations/image.d.ts +2 -2
  104. package/src/integrations/image.js +2 -2
  105. package/src/integrations/imagereplace.d.ts +2 -2
  106. package/src/integrations/imagereplace.js +2 -2
  107. package/src/integrations/imagestyle.d.ts +2 -2
  108. package/src/integrations/imagestyle.js +2 -2
  109. package/src/integrations/importword.d.ts +2 -2
  110. package/src/integrations/importword.js +2 -2
  111. package/src/integrations/indent.d.ts +2 -2
  112. package/src/integrations/indent.js +2 -2
  113. package/src/integrations/inputcommand.d.ts +3 -3
  114. package/src/integrations/inputcommand.js +2 -2
  115. package/src/integrations/legacylist.d.ts +17 -0
  116. package/src/integrations/legacylist.js +23 -0
  117. package/src/integrations/{documentlistproperties.d.ts → legacylistproperties.d.ts} +7 -7
  118. package/src/integrations/legacylistproperties.js +23 -0
  119. package/src/integrations/link.d.ts +2 -2
  120. package/src/integrations/link.js +2 -2
  121. package/src/integrations/list.d.ts +6 -6
  122. package/src/integrations/list.js +2 -2
  123. package/src/integrations/listproperties.d.ts +6 -15
  124. package/src/integrations/listproperties.js +2 -2
  125. package/src/integrations/mediaembed.d.ts +2 -2
  126. package/src/integrations/mediaembed.js +2 -2
  127. package/src/integrations/mention.d.ts +2 -2
  128. package/src/integrations/mention.js +2 -2
  129. package/src/integrations/pagebreak.d.ts +2 -2
  130. package/src/integrations/pagebreak.js +2 -2
  131. package/src/integrations/paragraph.d.ts +2 -2
  132. package/src/integrations/paragraph.js +2 -2
  133. package/src/integrations/removeformat.d.ts +2 -2
  134. package/src/integrations/removeformat.js +2 -2
  135. package/src/integrations/restrictededitingmode.d.ts +2 -2
  136. package/src/integrations/restrictededitingmode.js +2 -2
  137. package/src/integrations/shiftentercommand.d.ts +3 -3
  138. package/src/integrations/shiftentercommand.js +2 -2
  139. package/src/integrations/standardeditingmode.d.ts +2 -2
  140. package/src/integrations/standardeditingmode.js +2 -2
  141. package/src/integrations/style.d.ts +2 -2
  142. package/src/integrations/style.js +2 -2
  143. package/src/integrations/table.d.ts +2 -2
  144. package/src/integrations/table.js +2 -2
  145. package/src/integrations/tablecaption.d.ts +3 -3
  146. package/src/integrations/tablecaption.js +2 -2
  147. package/src/integrations/tableclipboard.d.ts +3 -3
  148. package/src/integrations/tableclipboard.js +2 -2
  149. package/src/integrations/tablecolumnresize.d.ts +5 -5
  150. package/src/integrations/tablecolumnresize.js +2 -2
  151. package/src/integrations/tableheadings.d.ts +3 -3
  152. package/src/integrations/tableheadings.js +2 -2
  153. package/src/integrations/tablemergesplit.d.ts +3 -3
  154. package/src/integrations/tablemergesplit.js +2 -2
  155. package/src/integrations/tableofcontents.d.ts +2 -2
  156. package/src/integrations/tableofcontents.js +2 -2
  157. package/src/integrations/tableproperties.d.ts +5 -5
  158. package/src/integrations/tableproperties.js +2 -2
  159. package/src/integrations/template.d.ts +2 -2
  160. package/src/integrations/template.js +2 -2
  161. package/src/integrations/title.d.ts +2 -2
  162. package/src/integrations/title.js +2 -2
  163. package/src/integrations/undo.d.ts +2 -2
  164. package/src/integrations/undo.js +2 -2
  165. package/src/integrations/utils.d.ts +4 -4
  166. package/src/integrations/utils.js +2 -2
  167. package/src/suggestion.d.ts +6 -6
  168. package/src/suggestion.js +2 -2
  169. package/src/suggestiondescriptionfactory.d.ts +4 -4
  170. package/src/suggestiondescriptionfactory.js +2 -2
  171. package/src/trackchanges.d.ts +6 -6
  172. package/src/trackchanges.js +2 -2
  173. package/src/trackchangesconfig.d.ts +2 -2
  174. package/src/trackchangesconfig.js +1 -1
  175. package/src/trackchangesdata.d.ts +3 -3
  176. package/src/trackchangesdata.js +2 -2
  177. package/src/trackchangesediting.d.ts +56 -55
  178. package/src/trackchangesediting.js +2 -2
  179. package/src/trackchangesui.d.ts +4 -4
  180. package/src/trackchangesui.js +2 -2
  181. package/src/ui/suggestioncontroller.d.ts +6 -6
  182. package/src/ui/suggestioncontroller.js +2 -2
  183. package/src/ui/view/basesuggestionthreadview.d.ts +7 -7
  184. package/src/ui/view/basesuggestionthreadview.js +2 -2
  185. package/src/ui/view/suggestionthreadview.d.ts +6 -6
  186. package/src/ui/view/suggestionthreadview.js +2 -2
  187. package/src/utils/common-translations.d.ts +2 -2
  188. package/src/utils/common-translations.js +2 -2
  189. package/src/utils/utils.d.ts +5 -5
  190. package/src/utils/utils.js +2 -2
  191. package/theme/icons/track-changes-accept.svg +1 -1
  192. package/theme/icons/track-changes-discard.svg +1 -1
  193. package/theme/icons/track-changes.svg +1 -1
  194. package/src/integrations/documentlist.d.ts +0 -17
  195. package/src/integrations/documentlist.js +0 -23
  196. 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 _0x27f4=['trackChanges','editor','*Split\x20cell:*\x20horizontally','_descriptionFactory','return','has','insertion','subType','filter','createRangeOn','_acceptFormatSuggestionCallbackFactory','TableEditing','mergeTableCellLeft','low','document','from','element','format','mergeTableCellRight','mergeTableCellUp','markBlockFormat','deletion','requires','_areSelectedCellsMergable','createTableWalker','formatInline','TableUtils','commandName','change','table','execute','splitTableCellHorizontally','horizontally','author','rootName','get','getFirstPosition','getRanges','commands','_areMergableCells','getAncestors','mergeTableCells','accept','splitTableCellVertically','getCellLocation','find','markMultiRangeBlockFormat','value','set:isEnabled','detach','formatBlock','registerDescriptionCallback','_suggestionFactory','selection','*Merge\x20cells*','map','length','root','plugins','mergeTableCellDown','getSelectionAffectedTableCells','model','add','_tablePostFixingSubtypes','type','containsRange','findAncestor','enableCommand','registerCustomCallback','cell','$graveyard','tableCell'];(function(_0x33c2e2,_0x27f4e3){const _0x36aa39=function(_0x3887c3){while(--_0x3887c3){_0x33c2e2['push'](_0x33c2e2['shift']());}};_0x36aa39(++_0x27f4e3);}(_0x27f4,0x13d));const _0x36aa=function(_0x33c2e2,_0x27f4e3){_0x33c2e2=_0x33c2e2-0x0;let _0x36aa39=_0x27f4[_0x33c2e2];return _0x36aa39;};import{Plugin as _0x26c818}from'ckeditor5/src/core';import _0x89496f from'./table';import{LiveRange as _0xb99239}from'ckeditor5/src/engine';import{getTranslation as _0x2e38e0}from'../utils/common-translations';export default class yt extends _0x26c818{static get[_0x36aa('0x41')](){return[_0x89496f];}['afterInit'](){const _0x473158=this[_0x36aa('0x2c')],_0x4493c5=_0x473158[_0x36aa('0x20')][_0x36aa('0x39')][_0x36aa('0x18')],_0x3ca5af=_0x473158['locale'];if(!_0x473158[_0x36aa('0x1d')][_0x36aa('0x30')](_0x36aa('0x36')))return;const _0x135cb5=_0x473158[_0x36aa('0x1d')][_0x36aa('0x6')]('TrackChangesEditing'),_0xb7f449=_0x473158[_0x36aa('0x1d')][_0x36aa('0x6')]('TableUtils'),_0x224777=_0x473158['plugins'][_0x36aa('0x6')](_0x89496f);_0x224777[_0x36aa('0x22')]['push'](_0x36aa('0xc')),_0x135cb5[_0x36aa('0x26')](_0x36aa('0xc'),()=>{const _0x528392=_0xb7f449[_0x36aa('0x1f')](_0x473158[_0x36aa('0x20')][_0x36aa('0x39')][_0x36aa('0x18')]);_0x473158[_0x36aa('0x20')][_0x36aa('0x47')](()=>{_0x135cb5[_0x36aa('0x11')](_0x528392,{'commandName':_0x36aa('0xc'),'commandParams':[]},[],_0x36aa('0xc'));});}),_0x473158[_0x36aa('0x9')][_0x36aa('0x6')]('mergeTableCells')['on'](_0x36aa('0x1'),(_0x2f4fdc,_0xfb2da3)=>{_0x473158['commands']['get'](_0x36aa('0x2b'))[_0x36aa('0x12')]&&(_0xfb2da3['length']>0x0&&_0xfb2da3[_0xfb2da3['length']-0x1]&&_0xfb2da3[_0xfb2da3[_0x36aa('0x1b')]-0x1]['forceDefaultExecution']||_0x135cb5['_isForcedDefaultExecutionBlock']||this[_0x36aa('0x42')]()||_0x2f4fdc['stop']());},{'priority':'highest'});for(const _0x1600e2 of[_0x36aa('0x3e'),_0x36aa('0x3d'),_0x36aa('0x1e'),_0x36aa('0x37')]){const _0x535e65=_0x473158[_0x36aa('0x9')][_0x36aa('0x6')](_0x1600e2);_0x135cb5['enableCommand'](_0x1600e2,()=>{const _0x32674c=_0x473158[_0x36aa('0x20')][_0x36aa('0x39')][_0x36aa('0x18')]['getFirstPosition']()[_0x36aa('0xb')]()[_0x36aa('0x10')](_0x2427ef=>_0x2427ef['is']('element',_0x36aa('0x2a'))),_0x2abea8=_0x535e65[_0x36aa('0x12')];_0x473158[_0x36aa('0x20')][_0x36aa('0x47')](()=>{_0x135cb5['markMultiRangeBlockFormat']([_0x32674c,_0x2abea8],{'commandName':'mergeTableCells','commandParams':[]},[],_0x36aa('0xc'));});});}for(const _0x21af18 of[_0x36aa('0xe'),_0x36aa('0x2')]){const _0x5ca3e3=_0x473158[_0x36aa('0x9')][_0x36aa('0x6')](_0x21af18);_0x135cb5['enableCommand'](_0x21af18,()=>{const _0x47bf7f=_0xb7f449[_0x36aa('0x1f')](_0x473158[_0x36aa('0x20')][_0x36aa('0x39')][_0x36aa('0x18')])[0x0],_0x3fcd56=_0x47bf7f[_0x36aa('0x25')](_0x36aa('0x0')),{column:_0x104be9,row:_0x374db1}=_0xb7f449[_0x36aa('0xf')](_0x47bf7f);let _0x3f3537=[];if(_0x36aa('0x3')==_0x5ca3e3['direction']){const _0x4e4cc8=_0xb7f449[_0x36aa('0x43')](_0x3fcd56,{'startRow':_0x374db1,'endRow':_0x374db1,'includeAllSlots':!0x0});_0x3f3537=Array[_0x36aa('0x3a')](_0x4e4cc8)[_0x36aa('0x1a')](_0x3bc85f=>_0x3bc85f[_0x36aa('0x28')]);}else{const _0x441f9c=_0xb7f449[_0x36aa('0x43')](_0x3fcd56,{'column':_0x104be9,'includeAllSlots':!0x0});_0x3f3537=Array[_0x36aa('0x3a')](_0x441f9c)['map'](_0x18f429=>_0x18f429[_0x36aa('0x28')]);}_0x473158['model'][_0x36aa('0x47')](_0x395f10=>{_0x135cb5[_0x36aa('0x3f')](_0x395f10['createRangeOn'](_0x47bf7f),{'commandName':_0x21af18,'commandParams':[]},_0x3f3537,_0x21af18);});});}_0x135cb5['_descriptionFactory']['registerDescriptionCallback'](_0x39eb90=>{if(_0x36aa('0x15')!=_0x39eb90['type']&&_0x36aa('0x44')!=_0x39eb90[_0x36aa('0x23')])return;const {data:_0x40850f}=_0x39eb90;return _0x40850f&&'mergeTableCells'==_0x40850f[_0x36aa('0x46')]?{'type':'format','content':_0x2e38e0(_0x3ca5af,_0x36aa('0x19'))}:void 0x0;}),_0x135cb5[_0x36aa('0x2e')][_0x36aa('0x16')](_0x62740d=>{if(_0x36aa('0x15')!=_0x62740d[_0x36aa('0x23')]&&'formatInline'!=_0x62740d['type'])return;const {data:_0x51bd9d}=_0x62740d;return _0x51bd9d?_0x36aa('0xe')==_0x51bd9d[_0x36aa('0x46')]?{'type':_0x36aa('0x3c'),'content':_0x2e38e0(_0x3ca5af,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x51bd9d[_0x36aa('0x46')]?{'type':_0x36aa('0x3c'),'content':_0x2e38e0(_0x3ca5af,_0x36aa('0x2d'))}:void 0x0:void 0x0;});const _0x306341=_0x224777[_0x36aa('0x35')]();for(const _0x443881 of[_0x36aa('0x3e'),_0x36aa('0x3d'),_0x36aa('0x1e'),_0x36aa('0x37')])_0x135cb5[_0x36aa('0x17')][_0x36aa('0x27')]('formatBlock',_0x443881,'accept',_0x306341);for(const _0x177784 of['splitTableCellVertically',_0x36aa('0x2')])_0x135cb5[_0x36aa('0x17')][_0x36aa('0x27')](_0x36aa('0x15'),_0x177784,'accept',_0x306341);_0x135cb5[_0x36aa('0x17')]['registerCustomCallback'](_0x36aa('0x15'),_0x36aa('0xc'),_0x36aa('0xd'),_0x27359c=>{_0x473158['model']['change'](_0x52edfe=>{const _0x36d401=Array[_0x36aa('0x3a')](_0x4493c5[_0x36aa('0x8')]())[_0x36aa('0x1a')](_0x4ac5b9=>_0xb99239['fromRange'](_0x4ac5b9));_0x52edfe['setSelection'](_0x27359c),_0x473158[_0x36aa('0x9')][_0x36aa('0x6')](_0x36aa('0xc'))['refresh'](),_0x473158['execute'](_0x36aa('0xc'),{'forceDefaultExecution':!0x0});const _0x286db1=_0x36d401[_0x36aa('0x33')](_0x30b072=>_0x36aa('0x29')!=_0x30b072[_0x36aa('0x1c')][_0x36aa('0x5')]);_0x286db1[_0x36aa('0x1b')]>0x0&&_0x52edfe['setSelection'](_0x286db1);for(const _0x1d95c1 of _0x36d401)_0x1d95c1[_0x36aa('0x14')]();});});for(const _0x1329dd of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft',_0x36aa('0x3d')]){const _0x3dbccd=_0x473158[_0x36aa('0x9')][_0x36aa('0x6')](_0x1329dd);_0x3dbccd['on'](_0x36aa('0x13'),(_0x507e5d,_0x5e7cc2,_0x16cf36)=>{if(_0x16cf36){const _0x2895b2=_0x473158[_0x36aa('0x20')][_0x36aa('0x39')][_0x36aa('0x18')][_0x36aa('0x7')]()[_0x36aa('0xb')]()[_0x36aa('0x10')](_0x827425=>_0x827425['is'](_0x36aa('0x3b'),'tableCell'));this[_0x36aa('0xa')](_0x3dbccd[_0x36aa('0x12')],_0x2895b2)||(_0x507e5d[_0x36aa('0x2f')]=!0x1,_0x507e5d['stop']());}},{'priority':_0x36aa('0x38')});}}[_0x36aa('0x42')](){const _0x16f17c=this[_0x36aa('0x2c')][_0x36aa('0x9')][_0x36aa('0x6')](_0x36aa('0xc')),_0x44b94b=this[_0x36aa('0x2c')][_0x36aa('0x1d')][_0x36aa('0x6')](_0x36aa('0x45'));if(!_0x16f17c['isEnabled'])return!0x1;const _0x48e3b7=_0x44b94b['getSelectionAffectedTableCells'](this[_0x36aa('0x2c')][_0x36aa('0x20')][_0x36aa('0x39')]['selection']);for(const _0x408115 of _0x48e3b7)for(const _0x1e3158 of _0x48e3b7)if(_0x408115!=_0x1e3158&&!this['_areMergableCells'](_0x408115,_0x1e3158))return!0x1;return!0x0;}[_0x36aa('0xa')](_0x1267a6,_0x472672){const _0x4ddc46=this[_0x36aa('0x2c')][_0x36aa('0x1d')][_0x36aa('0x6')]('TrackChangesEditing'),_0x49b77b=this[_0x36aa('0x2c')][_0x36aa('0x20')][_0x36aa('0x34')](_0x1267a6),_0x3b7d31=this[_0x36aa('0x2c')][_0x36aa('0x20')][_0x36aa('0x34')](_0x472672),_0x484a0e=new Set(),_0x759494=new Set();for(const _0x29336c of _0x4ddc46['getSuggestions']())if((_0x36aa('0x31')==_0x29336c[_0x36aa('0x23')]||_0x36aa('0x40')==_0x29336c[_0x36aa('0x23')]||'mergeTableCells'==_0x29336c[_0x36aa('0x32')])&&_0x29336c['isInContent'])for(const _0x2637a1 of _0x29336c[_0x36aa('0x8')]())_0x2637a1[_0x36aa('0x24')](_0x49b77b,!0x0)&&_0x484a0e[_0x36aa('0x21')](_0x29336c[_0x36aa('0x23')]+':'+_0x29336c[_0x36aa('0x4')]['id']),_0x2637a1[_0x36aa('0x24')](_0x3b7d31,!0x0)&&_0x759494['add'](_0x29336c['type']+':'+_0x29336c[_0x36aa('0x4')]['id']);if(_0x484a0e['size']!=_0x759494['size'])return!0x1;for(const _0x40b7d0 of _0x484a0e)if(!_0x759494[_0x36aa('0x30')](_0x40b7d0))return!0x1;return!0x0;}}
23
+ const _0x4ab6=['accept','has','root','value','stop','push','selection','getCellLocation','getSuggestions','highest','splitTableCellHorizontally','_areSelectedCellsMergable','isInContent','registerDescriptionCallback','get','from','mergeTableCells','add','type','mergeTableCellLeft','forceDefaultExecution','getAncestors','subType','document','return','markMultiRangeBlockFormat','TrackChangesEditing','formatInline','_isForcedDefaultExecutionBlock','TableUtils','createRangeOn','direction','_areMergableCells','isEnabled','getFirstPosition','refresh','length','findAncestor','editor','containsRange','setSelection','registerCustomCallback','commandName','set:isEnabled','author','TableEditing','*Split\x20cell:*\x20vertically','table','format','createTableWalker','afterInit','rootName','enableCommand','getRanges','change','size','trackChanges','_acceptFormatSuggestionCallbackFactory','_suggestionFactory','tableCell','mergeTableCellUp','execute','*Split\x20cell:*\x20horizontally','plugins','element','low','map','commands','splitTableCellVertically','formatBlock','model','mergeTableCellDown','requires','$graveyard','insertion','cell','mergeTableCellRight','find','filter'];(function(_0x4293e0,_0x4ab6fb){const _0x542022=function(_0x1c26bf){while(--_0x1c26bf){_0x4293e0['push'](_0x4293e0['shift']());}};_0x542022(++_0x4ab6fb);}(_0x4ab6,0x17b));const _0x5420=function(_0x4293e0,_0x4ab6fb){_0x4293e0=_0x4293e0-0x0;let _0x542022=_0x4ab6[_0x4293e0];return _0x542022;};import{Plugin as _0xcd357a}from'ckeditor5/src/core.js';import _0x2a6ad3 from'./table.js';import{LiveRange as _0x51da94}from'ckeditor5/src/engine.js';import{getTranslation as _0x37bbf5}from'../utils/common-translations.js';export default class jt extends _0xcd357a{static get[_0x5420('0x9')](){return[_0x2a6ad3];}[_0x5420('0x42')](){const _0x2f68b8=this[_0x5420('0x36')],_0x29f373=_0x2f68b8['model'][_0x5420('0x27')][_0x5420('0x16')],_0x59c37d=_0x2f68b8['locale'];if(!_0x2f68b8[_0x5420('0x0')][_0x5420('0x11')](_0x5420('0x3d')))return;const _0xd08810=_0x2f68b8[_0x5420('0x0')]['get'](_0x5420('0x2a')),_0x5e363e=_0x2f68b8[_0x5420('0x0')]['get'](_0x5420('0x2d')),_0x2dd412=_0x2f68b8['plugins']['get'](_0x2a6ad3);_0x2dd412['_tablePostFixingSubtypes'][_0x5420('0x15')](_0x5420('0x20')),_0xd08810[_0x5420('0x44')](_0x5420('0x20'),()=>{const _0x4e0a47=_0x5e363e['getSelectionAffectedTableCells'](_0x2f68b8[_0x5420('0x7')][_0x5420('0x27')][_0x5420('0x16')]);_0x2f68b8[_0x5420('0x7')]['change'](()=>{_0xd08810[_0x5420('0x29')](_0x4e0a47,{'commandName':_0x5420('0x20'),'commandParams':[]},[],_0x5420('0x20'));});}),_0x2f68b8[_0x5420('0x4')][_0x5420('0x1e')](_0x5420('0x20'))['on'](_0x5420('0x4d'),(_0x245065,_0x186479)=>{_0x2f68b8[_0x5420('0x4')][_0x5420('0x1e')](_0x5420('0x48'))[_0x5420('0x13')]&&(_0x186479[_0x5420('0x34')]>0x0&&_0x186479[_0x186479[_0x5420('0x34')]-0x1]&&_0x186479[_0x186479[_0x5420('0x34')]-0x1][_0x5420('0x24')]||_0xd08810[_0x5420('0x2c')]||this['_areSelectedCellsMergable']()||_0x245065['stop']());},{'priority':_0x5420('0x19')});for(const _0x7cd28a of[_0x5420('0x4c'),_0x5420('0xd'),_0x5420('0x8'),_0x5420('0x23')]){const _0x3f2143=_0x2f68b8[_0x5420('0x4')][_0x5420('0x1e')](_0x7cd28a);_0xd08810[_0x5420('0x44')](_0x7cd28a,()=>{const _0x1b0cda=_0x2f68b8[_0x5420('0x7')][_0x5420('0x27')][_0x5420('0x16')][_0x5420('0x32')]()['getAncestors']()[_0x5420('0xe')](_0x283d75=>_0x283d75['is'](_0x5420('0x1'),_0x5420('0x4b'))),_0x29182a=_0x3f2143[_0x5420('0x13')];_0x2f68b8[_0x5420('0x7')][_0x5420('0x46')](()=>{_0xd08810[_0x5420('0x29')]([_0x1b0cda,_0x29182a],{'commandName':_0x5420('0x20'),'commandParams':[]},[],_0x5420('0x20'));});});}for(const _0x350a91 of[_0x5420('0x5'),_0x5420('0x1a')]){const _0x1a0aed=_0x2f68b8['commands'][_0x5420('0x1e')](_0x350a91);_0xd08810['enableCommand'](_0x350a91,()=>{const _0xbf5748=_0x5e363e['getSelectionAffectedTableCells'](_0x2f68b8['model']['document']['selection'])[0x0],_0x110d9c=_0xbf5748[_0x5420('0x35')](_0x5420('0x3f')),{column:_0x2faa69,row:_0x3fd9bf}=_0x5e363e[_0x5420('0x17')](_0xbf5748);let _0x548164=[];if('horizontally'==_0x1a0aed[_0x5420('0x2f')]){const _0x7fd782=_0x5e363e['createTableWalker'](_0x110d9c,{'startRow':_0x3fd9bf,'endRow':_0x3fd9bf,'includeAllSlots':!0x0});_0x548164=Array[_0x5420('0x1f')](_0x7fd782)[_0x5420('0x3')](_0x4202ca=>_0x4202ca[_0x5420('0xc')]);}else{const _0x3947ef=_0x5e363e[_0x5420('0x41')](_0x110d9c,{'column':_0x2faa69,'includeAllSlots':!0x0});_0x548164=Array[_0x5420('0x1f')](_0x3947ef)[_0x5420('0x3')](_0x19f93f=>_0x19f93f[_0x5420('0xc')]);}_0x2f68b8[_0x5420('0x7')][_0x5420('0x46')](_0x46a658=>{_0xd08810['markBlockFormat'](_0x46a658[_0x5420('0x2e')](_0xbf5748),{'commandName':_0x350a91,'commandParams':[]},_0x548164,_0x350a91);});});}_0xd08810['_descriptionFactory'][_0x5420('0x1d')](_0x11eec3=>{if(_0x5420('0x6')!=_0x11eec3['type']&&'formatInline'!=_0x11eec3[_0x5420('0x22')])return;const {data:_0x5b5a48}=_0x11eec3;return _0x5b5a48&&'mergeTableCells'==_0x5b5a48['commandName']?{'type':_0x5420('0x40'),'content':_0x37bbf5(_0x59c37d,'*Merge\x20cells*')}:void 0x0;}),_0xd08810['_descriptionFactory'][_0x5420('0x1d')](_0x4c20e0=>{if(_0x5420('0x6')!=_0x4c20e0[_0x5420('0x22')]&&_0x5420('0x2b')!=_0x4c20e0[_0x5420('0x22')])return;const {data:_0x3ce5f9}=_0x4c20e0;return _0x3ce5f9?_0x5420('0x5')==_0x3ce5f9[_0x5420('0x3a')]?{'type':_0x5420('0x40'),'content':_0x37bbf5(_0x59c37d,_0x5420('0x3e'))}:_0x5420('0x1a')==_0x3ce5f9[_0x5420('0x3a')]?{'type':_0x5420('0x40'),'content':_0x37bbf5(_0x59c37d,_0x5420('0x4e'))}:void 0x0:void 0x0;});const _0xf28b42=_0x2dd412[_0x5420('0x49')]();for(const _0x205f78 of[_0x5420('0x4c'),_0x5420('0xd'),_0x5420('0x8'),'mergeTableCellLeft'])_0xd08810[_0x5420('0x4a')][_0x5420('0x39')]('formatBlock',_0x205f78,_0x5420('0x10'),_0xf28b42);for(const _0x1670fa of['splitTableCellVertically',_0x5420('0x1a')])_0xd08810['_suggestionFactory'][_0x5420('0x39')](_0x5420('0x6'),_0x1670fa,'accept',_0xf28b42);_0xd08810['_suggestionFactory'][_0x5420('0x39')]('formatBlock','mergeTableCells',_0x5420('0x10'),_0x5a317a=>{_0x2f68b8['model']['change'](_0x483113=>{const _0x1d8f40=Array['from'](_0x29f373['getRanges']())[_0x5420('0x3')](_0x5be7cf=>_0x51da94['fromRange'](_0x5be7cf));_0x483113[_0x5420('0x38')](_0x5a317a),_0x2f68b8[_0x5420('0x4')][_0x5420('0x1e')](_0x5420('0x20'))[_0x5420('0x33')](),_0x2f68b8[_0x5420('0x4d')](_0x5420('0x20'),{'forceDefaultExecution':!0x0});const _0x268005=_0x1d8f40[_0x5420('0xf')](_0x3d2048=>_0x5420('0xa')!=_0x3d2048[_0x5420('0x12')][_0x5420('0x43')]);_0x268005[_0x5420('0x34')]>0x0&&_0x483113[_0x5420('0x38')](_0x268005);for(const _0x57214c of _0x1d8f40)_0x57214c['detach']();});});for(const _0x54f3dd of[_0x5420('0x4c'),_0x5420('0x8'),_0x5420('0x23'),_0x5420('0xd')]){const _0x35fece=_0x2f68b8[_0x5420('0x4')]['get'](_0x54f3dd);_0x35fece['on'](_0x5420('0x3b'),(_0x559f12,_0x37703f,_0xb9c5d4)=>{if(_0xb9c5d4){const _0x32db91=_0x2f68b8[_0x5420('0x7')][_0x5420('0x27')][_0x5420('0x16')][_0x5420('0x32')]()[_0x5420('0x25')]()[_0x5420('0xe')](_0xf57505=>_0xf57505['is'](_0x5420('0x1'),_0x5420('0x4b')));this['_areMergableCells'](_0x35fece['value'],_0x32db91)||(_0x559f12[_0x5420('0x28')]=!0x1,_0x559f12[_0x5420('0x14')]());}},{'priority':_0x5420('0x2')});}}[_0x5420('0x1b')](){const _0x57cf9f=this['editor'][_0x5420('0x4')]['get'](_0x5420('0x20')),_0x57641f=this[_0x5420('0x36')]['plugins'][_0x5420('0x1e')](_0x5420('0x2d'));if(!_0x57cf9f[_0x5420('0x31')])return!0x1;const _0x4ec621=_0x57641f['getSelectionAffectedTableCells'](this['editor'][_0x5420('0x7')][_0x5420('0x27')][_0x5420('0x16')]);for(const _0x1dc390 of _0x4ec621)for(const _0x59bbbf of _0x4ec621)if(_0x1dc390!=_0x59bbbf&&!this[_0x5420('0x30')](_0x1dc390,_0x59bbbf))return!0x1;return!0x0;}['_areMergableCells'](_0x5e72ea,_0x5ef81f){const _0x442e47=this[_0x5420('0x36')]['plugins'][_0x5420('0x1e')](_0x5420('0x2a')),_0xfc874e=this[_0x5420('0x36')][_0x5420('0x7')][_0x5420('0x2e')](_0x5e72ea),_0xbba729=this['editor'][_0x5420('0x7')][_0x5420('0x2e')](_0x5ef81f),_0x4deb1f=new Set(),_0x9ba758=new Set();for(const _0x202bf5 of _0x442e47[_0x5420('0x18')]())if((_0x5420('0xb')==_0x202bf5[_0x5420('0x22')]||'deletion'==_0x202bf5[_0x5420('0x22')]||_0x5420('0x20')==_0x202bf5[_0x5420('0x26')])&&_0x202bf5[_0x5420('0x1c')])for(const _0x194eba of _0x202bf5[_0x5420('0x45')]())_0x194eba[_0x5420('0x37')](_0xfc874e,!0x0)&&_0x4deb1f['add'](_0x202bf5[_0x5420('0x22')]+':'+_0x202bf5['author']['id']),_0x194eba[_0x5420('0x37')](_0xbba729,!0x0)&&_0x9ba758[_0x5420('0x21')](_0x202bf5[_0x5420('0x22')]+':'+_0x202bf5[_0x5420('0x3c')]['id']);if(_0x4deb1f[_0x5420('0x47')]!=_0x9ba758[_0x5420('0x47')])return!0x1;for(const _0xac5858 of _0x4deb1f)if(!_0x9ba758[_0x5420('0x11')](_0xac5858))return!0x1;return!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/tableofcontents
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 Table of contents 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 _0x1f6b=['_descriptionFactory','ELEMENT_TABLE_OF_CONTENTS','registerElementLabel','locale','TrackChangesEditing','tableOfContents','commands','enableCommand','get','afterInit','editor','plugins','insertTableOfContents'];(function(_0x1465e1,_0x1f6b3d){const _0x39129f=function(_0x3b1fbd){while(--_0x3b1fbd){_0x1465e1['push'](_0x1465e1['shift']());}};_0x39129f(++_0x1f6b3d);}(_0x1f6b,0xb9));const _0x3912=function(_0x1465e1,_0x1f6b3d){_0x1465e1=_0x1465e1-0x0;let _0x39129f=_0x1f6b[_0x1465e1];return _0x39129f;};import{Plugin as _0x48c8ca}from'ckeditor5/src/core';import{getTranslation as _0x26a220}from'../utils/common-translations';export default class Ct extends _0x48c8ca{[_0x3912('0x6')](){const _0x15c912=this[_0x3912('0x7')];if(!_0x15c912[_0x3912('0x3')][_0x3912('0x5')](_0x3912('0x9')))return;_0x15c912[_0x3912('0x8')][_0x3912('0x5')](_0x3912('0x1'))[_0x3912('0x4')](_0x3912('0x9'));const _0x1ad5e7=_0x15c912['plugins']['get']('TrackChangesEditing'),_0x32b3ed=_0x15c912[_0x3912('0x0')];_0x1ad5e7[_0x3912('0xa')][_0x3912('0xc')](_0x3912('0x2'),_0xf42348=>_0x26a220(_0x32b3ed,_0x3912('0xb'),_0xf42348));}}
23
+ const _0x51fa=['TrackChangesEditing','get','ELEMENT_TABLE_OF_CONTENTS','afterInit','tableOfContents','plugins','commands','locale','enableCommand'];(function(_0x371b40,_0x51fa7c){const _0x21fde1=function(_0x43e381){while(--_0x43e381){_0x371b40['push'](_0x371b40['shift']());}};_0x21fde1(++_0x51fa7c);}(_0x51fa,0x14b));const _0x21fd=function(_0x371b40,_0x51fa7c){_0x371b40=_0x371b40-0x0;let _0x21fde1=_0x51fa[_0x371b40];return _0x21fde1;};import{Plugin as _0x48ffbb}from'ckeditor5/src/core.js';import{getTranslation as _0x6ed679}from'../utils/common-translations.js';export default class _t extends _0x48ffbb{[_0x21fd('0x5')](){const _0x1c9263=this['editor'];if(!_0x1c9263[_0x21fd('0x8')][_0x21fd('0x3')]('insertTableOfContents'))return;_0x1c9263[_0x21fd('0x7')][_0x21fd('0x3')](_0x21fd('0x2'))[_0x21fd('0x1')]('insertTableOfContents');const _0x4bda96=_0x1c9263[_0x21fd('0x7')][_0x21fd('0x3')](_0x21fd('0x2')),_0x286535=_0x1c9263[_0x21fd('0x0')];_0x4bda96['_descriptionFactory']['registerElementLabel'](_0x21fd('0x6'),_0x177427=>_0x6ed679(_0x286535,_0x21fd('0x4'),_0x177427));}}
@@ -1,14 +1,14 @@
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/tableproperties
7
7
  */
8
- import { Plugin, type Editor } from 'ckeditor5/src/core';
9
- import type { Range } from 'ckeditor5/src/engine';
10
- import type { default as Suggestion } from '../suggestion';
11
- import type { Description } from '../suggestiondescriptionfactory';
8
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
9
+ import type { Range } from 'ckeditor5/src/engine.js';
10
+ import type { default as Suggestion } from '../suggestion.js';
11
+ import type { Description } from '../suggestiondescriptionfactory.js';
12
12
  /**
13
13
  * Provides track changes plugin integration for table properties feature.
14
14
  */
@@ -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 _0x1ac7=['enableCommand','batch','*Format:*\x20change\x20table\x20cell\x20properties','tableWidth','get','has','nodeAfter','_suggestionFactory','registerDescriptionCallback','TrackChangesEditing','tableCellProperties','model','table','selection','tableHeight','discard','formatBlock','getFirstPosition','getSuggestionCallback','editor','handleDiscardAction','tableCellPadding','_descriptionFactory','_handlePropertyChange','tableBorderStyle','getAttribute','format','registerCustomCallback','TablePropertiesEditing','getContainedElement','tableProperties','tableCellWidth','getSuggestions','removeAttribute','tableBackgroundColor','tableCellHeight','enqueueChange','accept','handleSuggestionDescription','afterInit','data','document','join','plugins','tableCellHorizontalAlignment','locale','TableUtils','TableCellPropertiesEditing','markBlockFormat','tableBorderColor','subType','tableCellBorderColor'];(function(_0x432f1a,_0x1ac7a1){const _0x523dc4=function(_0x5a1688){while(--_0x5a1688){_0x432f1a['push'](_0x432f1a['shift']());}};_0x523dc4(++_0x1ac7a1);}(_0x1ac7,0x17e));const _0x523d=function(_0x432f1a,_0x1ac7a1){_0x432f1a=_0x432f1a-0x0;let _0x523dc4=_0x1ac7[_0x432f1a];return _0x523dc4;};import{Plugin as _0x890481}from'ckeditor5/src/core';import{getTranslation as _0x16f514}from'../utils/common-translations';export default class Mt extends _0x890481{constructor(_0x476054){super(_0x476054),this[_0x523d('0xc')]=[_0x523d('0x1f'),_0x523d('0x6'),'tableBorderWidth','tableAlignment',_0x523d('0x25'),_0x523d('0x30'),_0x523d('0x10')],this[_0x523d('0x2c')]=[_0x523d('0x21'),'tableCellBorderStyle','tableCellBorderWidth',_0x523d('0x3'),_0x523d('0xd'),_0x523d('0x11'),'tableCellBackgroundColor',_0x523d('0x1a'),'tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}[_0x523d('0x15')](){const _0x5297b9=this[_0x523d('0x1')][_0x523d('0x19')]['get'](_0x523d('0x2b'));if(this[_0x523d('0x1')][_0x523d('0x19')]['has'](_0x523d('0xa'))){for(const _0x32be83 of this[_0x523d('0xc')])_0x5297b9['enableCommand'](_0x32be83,(_0x4c13db,_0x241ad2)=>{const _0x32637e=this[_0x523d('0x1')][_0x523d('0x2d')][_0x523d('0x17')][_0x523d('0x2f')][_0x523d('0x33')]()['findAncestor'](_0x523d('0x2e'));this['_handlePropertyChange'](_0x32be83,[_0x32637e],this[_0x523d('0xc')],_0x523d('0xc'),_0x4c13db,_0x241ad2);});_0x5297b9['_suggestionFactory'][_0x523d('0x9')](_0x523d('0x32'),_0x523d('0xc'),'accept',_0x5297b9[_0x523d('0x29')]['getSuggestionCallback'](_0x523d('0x32'),null,'discard')),_0x5297b9['_suggestionFactory'][_0x523d('0x9')](_0x523d('0x32'),_0x523d('0xc'),_0x523d('0x31'),(_0x1f1e1e,_0x4047cb)=>this[_0x523d('0x2')](this[_0x523d('0xc')],_0x1f1e1e,_0x4047cb)),_0x5297b9[_0x523d('0x29')][_0x523d('0x9')](_0x523d('0x32'),_0x523d('0xc'),'join',()=>!0x1);}if(this[_0x523d('0x1')][_0x523d('0x19')][_0x523d('0x27')](_0x523d('0x1d'))){for(const _0x1d0d22 of this[_0x523d('0x2c')])_0x5297b9[_0x523d('0x22')](_0x1d0d22,(_0x1641c3,_0x3d2060)=>{const _0x35d13f=this[_0x523d('0x1')]['plugins'][_0x523d('0x26')](_0x523d('0x1c'))['getSelectionAffectedTableCells'](this[_0x523d('0x1')]['model'][_0x523d('0x17')]['selection']);this['_handlePropertyChange'](_0x1d0d22,_0x35d13f,this['tableCellProperties'],'tableCellProperties',_0x1641c3,_0x3d2060);});_0x5297b9[_0x523d('0x29')]['registerCustomCallback'](_0x523d('0x32'),_0x523d('0x2c'),_0x523d('0x13'),_0x5297b9[_0x523d('0x29')][_0x523d('0x0')](_0x523d('0x32'),null,'discard')),_0x5297b9[_0x523d('0x29')][_0x523d('0x9')](_0x523d('0x32'),'tableCellProperties',_0x523d('0x31'),(_0x1227d6,_0x14ca83)=>this[_0x523d('0x2')](this[_0x523d('0x2c')],_0x1227d6,_0x14ca83)),_0x5297b9['_suggestionFactory'][_0x523d('0x9')](_0x523d('0x32'),_0x523d('0x2c'),_0x523d('0x18'),()=>!0x1);}_0x5297b9[_0x523d('0x4')][_0x523d('0x2a')](_0x379646=>this[_0x523d('0x14')](_0x379646));}[_0x523d('0x5')](_0xa574e0,_0x2d5b46,_0x52fd71,_0x22749e,_0x3597cc,_0x5aaa70){const _0x4450e6=this['editor']['plugins'][_0x523d('0x26')](_0x523d('0x2b'));this[_0x523d('0x1')]['model'][_0x523d('0x12')](_0x5aaa70[_0x523d('0x23')],()=>{for(const _0x5e2d9d of _0x2d5b46){if(this['_getSuggestion'](_0x5e2d9d,_0x22749e))_0x3597cc(_0x5aaa70);else{const _0xbfcbee={};for(const _0x3e8fa8 of _0x52fd71){const _0x3e4cec=_0x5e2d9d[_0x523d('0x7')](_0x3e8fa8);void 0x0!==_0x3e4cec&&(_0xbfcbee[_0x3e8fa8]=_0x3e4cec);}_0x3597cc(_0x5aaa70),_0x4450e6[_0x523d('0x1e')](_0x5e2d9d,{'commandParams':[_0xbfcbee]},[],_0x22749e);}}});}[_0x523d('0x2')](_0x5b7e39,_0x5d1b58,_0x15c644){const _0x5ae496=_0x5d1b58[0x0]['start'][_0x523d('0x28')],_0x5965bd=_0x15c644['commandParams'][0x0];this['editor'][_0x523d('0x2d')]['change'](_0x203910=>{for(const _0xbabbe3 of _0x5b7e39)void 0x0!==_0x5965bd[_0xbabbe3]?_0x203910['setAttribute'](_0xbabbe3,_0x5965bd[_0xbabbe3],_0x5ae496):_0x203910[_0x523d('0xf')](_0xbabbe3,_0x5ae496);});}['handleSuggestionDescription'](_0x58734a){if(_0x58734a[_0x523d('0x16')])switch(_0x58734a[_0x523d('0x20')]){case _0x523d('0xc'):return{'type':_0x523d('0x8'),'content':_0x16f514(this[_0x523d('0x1')][_0x523d('0x1b')],'*Format:*\x20change\x20table\x20properties')};case _0x523d('0x2c'):return{'type':_0x523d('0x8'),'content':_0x16f514(this['editor'][_0x523d('0x1b')],_0x523d('0x24'))};}}['_getSuggestion'](_0x489a30,_0x206da1){const _0x522fea=this['editor'][_0x523d('0x19')][_0x523d('0x26')](_0x523d('0x2b'));for(const _0x43f9db of _0x522fea[_0x523d('0xe')]({'skipNotAttached':!0x0})){const _0x30fd14=_0x43f9db[_0x523d('0xb')]();if(_0x43f9db[_0x523d('0x20')]===_0x206da1&&_0x30fd14===_0x489a30)return _0x43f9db;}return null;}}
23
+ const _0x53e8=['batch','tableBorderStyle','data','TableUtils','discard','markBlockFormat','tableProperties','TrackChangesTableProperties','model','getSuggestions','removeAttribute','subType','tableCellHorizontalAlignment','tableCellBorderColor','formatBlock','_suggestionFactory','tableCellBorderWidth','tableAlignment','locale','selection','TablePropertiesEditing','tableCellVerticalAlignment','handleSuggestionDescription','enableCommand','tableBackgroundColor','tableBorderColor','accept','getFirstPosition','has','document','_descriptionFactory','getSuggestionCallback','tableHeight','format','_handlePropertyChange','tableBorderWidth','registerCustomCallback','enqueueChange','getAttribute','get','handleDiscardAction','TrackChangesEditing','join','tableCellBackgroundColor','plugins','registerDescriptionCallback','TableCellPropertiesEditing','table','tableCellProperties','tableWidth','tableCellBorderStyle','change','editor','tableCellHeight','getSelectionAffectedTableCells','nodeAfter','_getSuggestion'];(function(_0x54233e,_0x53e89c){const _0x30deed=function(_0x792968){while(--_0x792968){_0x54233e['push'](_0x54233e['shift']());}};_0x30deed(++_0x53e89c);}(_0x53e8,0x1c5));const _0x30de=function(_0x54233e,_0x53e89c){_0x54233e=_0x54233e-0x0;let _0x30deed=_0x53e8[_0x54233e];return _0x30deed;};import{Plugin as _0x7c4d1}from'ckeditor5/src/core.js';import{getTranslation as _0x15b1e3}from'../utils/common-translations.js';export default class Mt extends _0x7c4d1{constructor(_0x206e96){super(_0x206e96),this[_0x30de('0x9')]=[_0x30de('0x1c'),_0x30de('0x4'),_0x30de('0x26'),_0x30de('0x14'),_0x30de('0x34'),_0x30de('0x23'),_0x30de('0x1b')],this[_0x30de('0x33')]=[_0x30de('0x10'),_0x30de('0x35'),_0x30de('0x13'),'tableCellPadding','tableCellWidth',_0x30de('0x38'),_0x30de('0x2e'),_0x30de('0xf'),_0x30de('0x18')];}static get['pluginName'](){return _0x30de('0xa');}['afterInit'](){const _0x4eccb4=this[_0x30de('0x37')]['plugins'][_0x30de('0x2a')](_0x30de('0x2c'));if(this[_0x30de('0x37')][_0x30de('0x2f')][_0x30de('0x1f')](_0x30de('0x17'))){for(const _0x472752 of this['tableProperties'])_0x4eccb4[_0x30de('0x1a')](_0x472752,(_0x57d5e6,_0x2c2b48)=>{const _0x539c76=this['editor']['model'][_0x30de('0x20')][_0x30de('0x16')][_0x30de('0x1e')]()['findAncestor'](_0x30de('0x32'));this['_handlePropertyChange'](_0x472752,[_0x539c76],this[_0x30de('0x9')],_0x30de('0x9'),_0x57d5e6,_0x2c2b48);});_0x4eccb4[_0x30de('0x12')][_0x30de('0x27')]('formatBlock','tableProperties','accept',_0x4eccb4[_0x30de('0x12')][_0x30de('0x22')](_0x30de('0x11'),null,'discard')),_0x4eccb4[_0x30de('0x12')][_0x30de('0x27')](_0x30de('0x11'),_0x30de('0x9'),_0x30de('0x7'),(_0x595466,_0x1f3109)=>this[_0x30de('0x2b')](this[_0x30de('0x9')],_0x595466,_0x1f3109)),_0x4eccb4['_suggestionFactory'][_0x30de('0x27')](_0x30de('0x11'),_0x30de('0x9'),_0x30de('0x2d'),()=>!0x1);}if(this[_0x30de('0x37')][_0x30de('0x2f')][_0x30de('0x1f')](_0x30de('0x31'))){for(const _0x6db6e9 of this[_0x30de('0x33')])_0x4eccb4[_0x30de('0x1a')](_0x6db6e9,(_0x1ce5a3,_0x5ce7e3)=>{const _0xad576=this[_0x30de('0x37')]['plugins'][_0x30de('0x2a')](_0x30de('0x6'))[_0x30de('0x0')](this[_0x30de('0x37')][_0x30de('0xb')]['document'][_0x30de('0x16')]);this['_handlePropertyChange'](_0x6db6e9,_0xad576,this[_0x30de('0x33')],'tableCellProperties',_0x1ce5a3,_0x5ce7e3);});_0x4eccb4['_suggestionFactory'][_0x30de('0x27')](_0x30de('0x11'),'tableCellProperties',_0x30de('0x1d'),_0x4eccb4[_0x30de('0x12')][_0x30de('0x22')](_0x30de('0x11'),null,'discard')),_0x4eccb4['_suggestionFactory']['registerCustomCallback'](_0x30de('0x11'),_0x30de('0x33'),_0x30de('0x7'),(_0x3b88b9,_0xd6a6b)=>this[_0x30de('0x2b')](this[_0x30de('0x33')],_0x3b88b9,_0xd6a6b)),_0x4eccb4['_suggestionFactory'][_0x30de('0x27')](_0x30de('0x11'),'tableCellProperties',_0x30de('0x2d'),()=>!0x1);}_0x4eccb4[_0x30de('0x21')][_0x30de('0x30')](_0x181ace=>this[_0x30de('0x19')](_0x181ace));}[_0x30de('0x25')](_0x3c606b,_0x26bf62,_0x2f2f46,_0x57e9d8,_0x781d71,_0x17f13e){const _0x48fbc9=this[_0x30de('0x37')][_0x30de('0x2f')][_0x30de('0x2a')]('TrackChangesEditing');this[_0x30de('0x37')][_0x30de('0xb')][_0x30de('0x28')](_0x17f13e[_0x30de('0x3')],()=>{for(const _0x1ac0d9 of _0x26bf62){if(this[_0x30de('0x2')](_0x1ac0d9,_0x57e9d8))_0x781d71(_0x17f13e);else{const _0x185704={};for(const _0x3c6a53 of _0x2f2f46){const _0x5970a2=_0x1ac0d9[_0x30de('0x29')](_0x3c6a53);void 0x0!==_0x5970a2&&(_0x185704[_0x3c6a53]=_0x5970a2);}_0x781d71(_0x17f13e),_0x48fbc9[_0x30de('0x8')](_0x1ac0d9,{'commandParams':[_0x185704]},[],_0x57e9d8);}}});}[_0x30de('0x2b')](_0x48d9e1,_0xb56787,_0x253c3b){const _0x582e50=_0xb56787[0x0]['start'][_0x30de('0x1')],_0x3ece75=_0x253c3b['commandParams'][0x0];this[_0x30de('0x37')][_0x30de('0xb')][_0x30de('0x36')](_0x4e830e=>{for(const _0x4bdd34 of _0x48d9e1)void 0x0!==_0x3ece75[_0x4bdd34]?_0x4e830e['setAttribute'](_0x4bdd34,_0x3ece75[_0x4bdd34],_0x582e50):_0x4e830e[_0x30de('0xd')](_0x4bdd34,_0x582e50);});}[_0x30de('0x19')](_0x51b2c8){if(_0x51b2c8[_0x30de('0x5')])switch(_0x51b2c8['subType']){case _0x30de('0x9'):return{'type':_0x30de('0x24'),'content':_0x15b1e3(this[_0x30de('0x37')][_0x30de('0x15')],'*Format:*\x20change\x20table\x20properties')};case _0x30de('0x33'):return{'type':_0x30de('0x24'),'content':_0x15b1e3(this['editor'][_0x30de('0x15')],'*Format:*\x20change\x20table\x20cell\x20properties')};}}[_0x30de('0x2')](_0xd03983,_0x5315e1){const _0x2c1c99=this[_0x30de('0x37')]['plugins'][_0x30de('0x2a')]('TrackChangesEditing');for(const _0x29bc55 of _0x2c1c99[_0x30de('0xc')]({'skipNotAttached':!0x0})){const _0x30b335=_0x29bc55['getContainedElement']();if(_0x29bc55[_0x30de('0xe')]===_0x5315e1&&_0x30b335===_0xd03983)return _0x29bc55;}return null;}}
@@ -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/template
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 template 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 _0x2828=['afterInit','TrackChangesEditing','has','Template','enableCommand','plugins','get'];(function(_0x588cfb,_0x282820){const _0x4b76e2=function(_0x503933){while(--_0x503933){_0x588cfb['push'](_0x588cfb['shift']());}};_0x4b76e2(++_0x282820);}(_0x2828,0x1d8));const _0x4b76=function(_0x588cfb,_0x282820){_0x588cfb=_0x588cfb-0x0;let _0x4b76e2=_0x2828[_0x588cfb];return _0x4b76e2;};import{Plugin as _0x421c51}from'ckeditor5/src/core';export default class vt extends _0x421c51{[_0x4b76('0x4')](){const _0x2d4cfe=this['editor'];_0x2d4cfe[_0x4b76('0x2')][_0x4b76('0x6')](_0x4b76('0x0'))&&_0x2d4cfe[_0x4b76('0x2')][_0x4b76('0x3')](_0x4b76('0x5'))[_0x4b76('0x1')]('insertTemplate');}}
23
+ const _0x54fa=['afterInit','get','plugins','has','editor','Template'];(function(_0x5b7bb1,_0x54fafb){const _0x113b80=function(_0x9e9efd){while(--_0x9e9efd){_0x5b7bb1['push'](_0x5b7bb1['shift']());}};_0x113b80(++_0x54fafb);}(_0x54fa,0x1e4));const _0x113b=function(_0x5b7bb1,_0x54fafb){_0x5b7bb1=_0x5b7bb1-0x0;let _0x113b80=_0x54fa[_0x5b7bb1];return _0x113b80;};import{Plugin as _0x7f8292}from'ckeditor5/src/core.js';export default class vt extends _0x7f8292{[_0x113b('0x2')](){const _0x15e7b2=this[_0x113b('0x0')];_0x15e7b2[_0x113b('0x4')][_0x113b('0x5')](_0x113b('0x1'))&&_0x15e7b2[_0x113b('0x4')][_0x113b('0x3')]('TrackChangesEditing')['enableCommand']('insertTemplate');}}
@@ -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/title
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 title 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 _0x5e95=['schema','_splitMarkerName','has','isEqual','document','editor','isCollapsed','end','afterInit','suggestion','start','model','ELEMENT_TITLE','removeMarker','getChangedMarkers','createRange','forward','locale','title-content','from','updateMarker','element'];(function(_0x331b3b,_0x5e950c){const _0x5a9ba6=function(_0x45c03f){while(--_0x45c03f){_0x331b3b['push'](_0x331b3b['shift']());}};_0x5a9ba6(++_0x5e950c);}(_0x5e95,0x13a));const _0x5a9b=function(_0x331b3b,_0x5e950c){_0x331b3b=_0x331b3b-0x0;let _0x5a9ba6=_0x5e95[_0x331b3b];return _0x5a9ba6;};import{Plugin as _0x3f245a}from'ckeditor5/src/core';import{getTranslation as _0x61b65d}from'../utils/common-translations';export default class _t extends _0x3f245a{[_0x5a9b('0x2')](){const _0x14a488=this[_0x5a9b('0x15')];if(!_0x14a488['plugins'][_0x5a9b('0x12')]('Title'))return;const _0x43b8ac=_0x14a488['plugins']['get']('TrackChangesEditing');_0x43b8ac['_descriptionFactory']['registerElementLabel'](_0x5a9b('0xc'),()=>_0x61b65d(_0x14a488[_0x5a9b('0xb')],_0x5a9b('0x6'))),_0x14a488[_0x5a9b('0x5')][_0x5a9b('0x14')]['registerPostFixer'](_0x2cd45a=>{let _0x3b9b55=!0x1;const _0x57180a=Array[_0x5a9b('0xd')](_0x14a488[_0x5a9b('0x5')]['document']['differ'][_0x5a9b('0x8')]());for(const {name:_0x1bec36,data:_0x3ae090}of _0x57180a){const {group:_0xdc6af9}=_0x43b8ac[_0x5a9b('0x11')](_0x1bec36);if(_0x5a9b('0x3')!==_0xdc6af9||!_0x3ae090['newRange'])continue;const _0x1c55c6=_0x3ae090['newRange'],_0x74aab7=_0x1c55c6['end']['nodeBefore'];if(!_0x74aab7||!_0x74aab7['is'](_0x5a9b('0xf'),_0x5a9b('0xc')))continue;if(!_0x1c55c6[_0x5a9b('0x4')]['isTouching'](_0x1c55c6[_0x5a9b('0x1')]))continue;const _0x168464=_0x14a488[_0x5a9b('0x5')][_0x5a9b('0x10')]['getNearestSelectionRange'](_0x1c55c6[_0x5a9b('0x1')],_0x5a9b('0xa'));if(_0x168464&&_0x168464[_0x5a9b('0x0')]){const _0xf59709=_0x2cd45a[_0x5a9b('0x9')](_0x1c55c6[_0x5a9b('0x4')],_0x168464[_0x5a9b('0x4')]);_0xf59709[_0x5a9b('0x13')](_0x1c55c6)||(_0x2cd45a[_0x5a9b('0xe')](_0x1bec36,{'range':_0xf59709}),_0x3b9b55=!0x0);}_0x3b9b55||(_0x2cd45a[_0x5a9b('0x7')](_0x1bec36),_0x3b9b55=!0x0);}return _0x3b9b55;});}}
23
+ const _0x3dcb=['suggestion','isTouching','isEqual','registerElementLabel','Title','forward','createRange','_descriptionFactory','newRange','plugins','getChangedMarkers','document','has','schema','get','end','nodeBefore','differ','title-content','element','getNearestSelectionRange','afterInit','removeMarker','model','_splitMarkerName','TrackChangesEditing','start','locale'];(function(_0xea42d9,_0x3dcbba){const _0x2031f0=function(_0x14f68e){while(--_0x14f68e){_0xea42d9['push'](_0xea42d9['shift']());}};_0x2031f0(++_0x3dcbba);}(_0x3dcb,0xa1));const _0x2031=function(_0xea42d9,_0x3dcbba){_0xea42d9=_0xea42d9-0x0;let _0x2031f0=_0x3dcb[_0xea42d9];return _0x2031f0;};import{Plugin as _0x39b15b}from'ckeditor5/src/core.js';import{getTranslation as _0x2be51b}from'../utils/common-translations.js';export default class Ct extends _0x39b15b{[_0x2031('0x0')](){const _0x329aaf=this['editor'];if(!_0x329aaf[_0x2031('0x10')][_0x2031('0x13')](_0x2031('0xb')))return;const _0x642d45=_0x329aaf['plugins'][_0x2031('0x15')](_0x2031('0x4'));_0x642d45[_0x2031('0xe')][_0x2031('0xa')](_0x2031('0x19'),()=>_0x2be51b(_0x329aaf[_0x2031('0x6')],'ELEMENT_TITLE')),_0x329aaf[_0x2031('0x2')][_0x2031('0x12')]['registerPostFixer'](_0x1c3e69=>{let _0x1d2f8d=!0x1;const _0x287aee=Array['from'](_0x329aaf[_0x2031('0x2')][_0x2031('0x12')][_0x2031('0x18')][_0x2031('0x11')]());for(const {name:_0x19bd99,data:_0x4528bf}of _0x287aee){const {group:_0x4a26cd}=_0x642d45[_0x2031('0x3')](_0x19bd99);if(_0x2031('0x7')!==_0x4a26cd||!_0x4528bf[_0x2031('0xf')])continue;const _0x47c47a=_0x4528bf[_0x2031('0xf')],_0x472678=_0x47c47a['end'][_0x2031('0x17')];if(!_0x472678||!_0x472678['is'](_0x2031('0x1a'),_0x2031('0x19')))continue;if(!_0x47c47a[_0x2031('0x5')][_0x2031('0x8')](_0x47c47a['end']))continue;const _0x25809b=_0x329aaf[_0x2031('0x2')][_0x2031('0x14')][_0x2031('0x1b')](_0x47c47a[_0x2031('0x16')],_0x2031('0xc'));if(_0x25809b&&_0x25809b['isCollapsed']){const _0x3b33bf=_0x1c3e69[_0x2031('0xd')](_0x47c47a[_0x2031('0x5')],_0x25809b[_0x2031('0x5')]);_0x3b33bf[_0x2031('0x9')](_0x47c47a)||(_0x1c3e69['updateMarker'](_0x19bd99,{'range':_0x3b33bf}),_0x1d2f8d=!0x0);}_0x1d2f8d||(_0x1c3e69[_0x2031('0x1')](_0x19bd99),_0x1d2f8d=!0x0);}return _0x1d2f8d;});}}
@@ -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/undo
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:undo/undo~Undo undo 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 _0x1a11=['undo','get','enableCommand','has','TrackChangesEditing','editor','afterInit','plugins'];(function(_0x3c54cb,_0x1a11ad){const _0x31b686=function(_0x1fd816){while(--_0x1fd816){_0x3c54cb['push'](_0x3c54cb['shift']());}};_0x31b686(++_0x1a11ad);}(_0x1a11,0x161));const _0x31b6=function(_0x3c54cb,_0x1a11ad){_0x3c54cb=_0x3c54cb-0x0;let _0x31b686=_0x1a11[_0x3c54cb];return _0x31b686;};import{Plugin as _0x5f1e27}from'ckeditor5/src/core';export default class Dt extends _0x5f1e27{[_0x31b6('0x5')](){const _0xe299cf=this[_0x31b6('0x4')],_0x4bd904=_0xe299cf[_0x31b6('0x6')][_0x31b6('0x0')](_0x31b6('0x3'));_0xe299cf[_0x31b6('0x6')][_0x31b6('0x2')]('UndoEditing')&&(_0x4bd904['enableCommand'](_0x31b6('0x7')),_0x4bd904[_0x31b6('0x1')]('redo'));}}
23
+ const _0x193a=['plugins','undo','has','TrackChangesEditing','afterInit','UndoEditing','enableCommand'];(function(_0x3035ab,_0x193a04){const _0x4eb303=function(_0x598a76){while(--_0x598a76){_0x3035ab['push'](_0x3035ab['shift']());}};_0x4eb303(++_0x193a04);}(_0x193a,0x12e));const _0x4eb3=function(_0x3035ab,_0x193a04){_0x3035ab=_0x3035ab-0x0;let _0x4eb303=_0x193a[_0x3035ab];return _0x4eb303;};import{Plugin as _0x284d83}from'ckeditor5/src/core.js';export default class Dt extends _0x284d83{[_0x4eb3('0x3')](){const _0x16e1e1=this['editor'],_0x2e4615=_0x16e1e1[_0x4eb3('0x6')]['get'](_0x4eb3('0x2'));_0x16e1e1[_0x4eb3('0x6')][_0x4eb3('0x1')](_0x4eb3('0x4'))&&(_0x2e4615[_0x4eb3('0x5')](_0x4eb3('0x0')),_0x2e4615[_0x4eb3('0x5')]('redo'));}}
@@ -1,10 +1,10 @@
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
- import type { Editor } from 'ckeditor5/src/core';
6
- import type { Range, Model, Element, DowncastAddMarkerEvent } from 'ckeditor5/src/engine';
7
- import type { GetCallback } from 'ckeditor5/src/utils';
5
+ import type { Editor } from 'ckeditor5/src/core.js';
6
+ import type { Range, Model, Element, DowncastAddMarkerEvent } from 'ckeditor5/src/engine.js';
7
+ import type { GetCallback } from 'ckeditor5/src/utils.js';
8
8
  /**
9
9
  * Searches given `range` and returns all sub-ranges containing items with given `attributeKey`.
10
10
  */
@@ -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 _0x24ba=['plugins','writer','activeMarkers','push','schema','getAttribute','getWalker','isAtEnd','ck-suggestion-marker--active','mapper','addClass','isContent','consumable','name','element','nextSibling','createUIElement','test','insert','type','elementEnd','get','markerName','getItems','isLimit','createRangeOn','toViewPosition','includes','parent','markerRange','previousPosition','listItem','item','getCustomProperty'];(function(_0x573cd9,_0x24ba71){const _0x4920d1=function(_0x42eb05){while(--_0x42eb05){_0x573cd9['push'](_0x573cd9['shift']());}};_0x4920d1(++_0x24ba71);}(_0x24ba,0x1d2));const _0x4920=function(_0x573cd9,_0x24ba71){_0x573cd9=_0x573cd9-0x0;let _0x4920d1=_0x24ba[_0x573cd9];return _0x4920d1;};export function getRangesWithAttribute(_0x417211,_0x1f5a50,_0xd96e01){const _0x1bb612=[];for(const _0x2a5d75 of _0x1f5a50[_0x4920('0x21')]())_0x2a5d75['hasAttribute'](_0x417211)&&_0x1bb612[_0x4920('0xd')](_0xd96e01[_0x4920('0x1')](_0x2a5d75));return _0x1bb612;}export function getElementsAffectedByListItemRename(_0x4775ac){const _0xcf7fb3=[];if(_0x4775ac['is'](_0x4920('0x18'),_0x4920('0x7'))){let _0x4a20a1=_0x4775ac[_0x4920('0x19')];for(;_0x4a20a1&&_0x4a20a1['is'](_0x4920('0x18'),_0x4920('0x7'))&&_0x4a20a1[_0x4920('0xf')]('listIndent')>0x0;)_0xcf7fb3[_0x4920('0xd')](_0x4a20a1),_0x4a20a1=_0x4a20a1['nextSibling'];}return _0xcf7fb3;}export function downcastSplitMergeMarker(_0x1320f8,_0x875cd6,{showActiveMarker:_0x54e40b=!0x0}={}){const _0x1aad58=_0x1320f8[_0x4920('0xa')][_0x4920('0x1f')]('TrackChangesEditing');return(_0x2f42e2,_0x33a0cc,_0x2312db)=>{if(!_0x2312db[_0x4920('0x16')][_0x4920('0x1b')](_0x33a0cc['markerRange'],_0x2f42e2[_0x4920('0x17')]))return;const _0x5887da=_0x33a0cc[_0x4920('0x5')][_0x4920('0x10')](),_0x4146d3=_0x33a0cc[_0x4920('0x5')]['start'],_0x3a9cde=_0x1320f8['model'][_0x4920('0xe')];let _0x4d1db5=null,_0x4f7b9f=null,_0x596b7f=!0x1,_0x5a4591=!0x1;for(const _0x408a3c of _0x5887da){const _0x4b44cc=_0x408a3c[_0x4920('0x8')];_0x596b7f=_0x596b7f||_0x3a9cde[_0x4920('0x15')](_0x4b44cc);const _0x342862=_0x2312db[_0x4920('0x13')]['toViewElement'](_0x4b44cc);if(_0x342862&&_0x342862[_0x4920('0x9')]('addHighlight'))return;_0x4920('0x1e')==_0x408a3c[_0x4920('0x1d')]&&(_0x3a9cde['isBlock'](_0x4b44cc)&&!_0x3a9cde[_0x4920('0x0')](_0x4b44cc)&&(_0x4b44cc[_0x4920('0x19')]||_0x4146d3[_0x4920('0x11')]?_0x4d1db5&&_0x4d1db5[_0x4920('0x4')]==_0x4b44cc||(_0x4d1db5=_0x4b44cc,_0x527016(_0x408a3c[_0x4920('0x6')]),_0x5a4591=!0x0):_0x4f7b9f=_0x4f7b9f||_0x408a3c[_0x4920('0x6')]));}function _0x527016(_0x4d97fa){const _0x96e38d=_0x2312db[_0x4920('0xb')][_0x4920('0x1a')]('span',{'class':'ck-suggestion-marker-'+_0x875cd6}),_0x2db5df=_0x2312db[_0x4920('0x13')][_0x4920('0x2')](_0x4d97fa);_0x54e40b&&_0x1aad58[_0x4920('0xc')][_0x4920('0x3')](_0x33a0cc[_0x4920('0x20')])&&_0x2312db['writer'][_0x4920('0x14')](_0x4920('0x12'),_0x96e38d),_0x2312db[_0x4920('0xb')][_0x4920('0x1c')](_0x2db5df,_0x96e38d),_0x2312db[_0x4920('0x13')]['bindElementToMarker'](_0x96e38d,_0x33a0cc[_0x4920('0x20')]);}_0x596b7f||_0x5a4591||!_0x4f7b9f||_0x527016(_0x4f7b9f);};}
23
+ const _0x3ebe=['mapper','start','createUIElement','getAttribute','bindElementToMarker','previousPosition','getCustomProperty','activeMarkers','isContent','schema','parent','span','markerName','isLimit','ck-suggestion-marker-','TrackChangesEditing','test','push','addHighlight','isAtEnd','hasAttribute','writer','element','name','model','nextSibling','toViewElement','isBlock','markerRange','item','addClass','type','getItems','toViewPosition'];(function(_0xc9957d,_0x3ebe7d){const _0x906b8a=function(_0x18949c){while(--_0x18949c){_0xc9957d['push'](_0xc9957d['shift']());}};_0x906b8a(++_0x3ebe7d);}(_0x3ebe,0x98));const _0x906b=function(_0xc9957d,_0x3ebe7d){_0xc9957d=_0xc9957d-0x0;let _0x906b8a=_0x3ebe[_0xc9957d];return _0x906b8a;};export function getRangesWithAttribute(_0x2ce837,_0x452b25,_0x53483e){const _0x111c7e=[];for(const _0x40fd7d of _0x452b25[_0x906b('0x10')]())_0x40fd7d[_0x906b('0x4')](_0x2ce837)&&_0x111c7e[_0x906b('0x1')](_0x53483e['createRangeOn'](_0x40fd7d));return _0x111c7e;}export function getElementsAffectedByListItemRename(_0x131b9b){const _0x5e02a8=[];if(_0x131b9b['is']('element','listItem')){let _0x4af635=_0x131b9b['nextSibling'];for(;_0x4af635&&_0x4af635['is'](_0x906b('0x6'),'listItem')&&_0x4af635[_0x906b('0x15')]('listIndent')>0x0;)_0x5e02a8[_0x906b('0x1')](_0x4af635),_0x4af635=_0x4af635['nextSibling'];}return _0x5e02a8;}export function downcastSplitMergeMarker(_0x4dd5a5,_0x2e8ee3,{showActiveMarker:_0x501737=!0x0}={}){const _0x1d8033=_0x4dd5a5['plugins']['get'](_0x906b('0x21'));return(_0x49e33d,_0x2c3653,_0x42008a)=>{if(!_0x42008a['consumable'][_0x906b('0x0')](_0x2c3653[_0x906b('0xc')],_0x49e33d[_0x906b('0x7')]))return;const _0x9da01=_0x2c3653[_0x906b('0xc')]['getWalker'](),_0x1fa20f=_0x2c3653[_0x906b('0xc')][_0x906b('0x13')],_0x4ff966=_0x4dd5a5[_0x906b('0x8')][_0x906b('0x1b')];let _0x523d7d=null,_0x1e632f=null,_0x3b0204=!0x1,_0x351fa4=!0x1;for(const _0x494eeb of _0x9da01){const _0x6ab9d8=_0x494eeb[_0x906b('0xd')];_0x3b0204=_0x3b0204||_0x4ff966[_0x906b('0x1a')](_0x6ab9d8);const _0x302b2b=_0x42008a['mapper'][_0x906b('0xa')](_0x6ab9d8);if(_0x302b2b&&_0x302b2b[_0x906b('0x18')](_0x906b('0x2')))return;'elementEnd'==_0x494eeb[_0x906b('0xf')]&&(_0x4ff966[_0x906b('0xb')](_0x6ab9d8)&&!_0x4ff966[_0x906b('0x1f')](_0x6ab9d8)&&(_0x6ab9d8[_0x906b('0x9')]||_0x1fa20f[_0x906b('0x3')]?_0x523d7d&&_0x523d7d[_0x906b('0x1c')]==_0x6ab9d8||(_0x523d7d=_0x6ab9d8,_0x23d8c2(_0x494eeb[_0x906b('0x17')]),_0x351fa4=!0x0):_0x1e632f=_0x1e632f||_0x494eeb['previousPosition']));}function _0x23d8c2(_0x26908d){const _0x44f1bd=_0x42008a[_0x906b('0x5')][_0x906b('0x14')](_0x906b('0x1d'),{'class':_0x906b('0x20')+_0x2e8ee3}),_0x30817a=_0x42008a[_0x906b('0x12')][_0x906b('0x11')](_0x26908d);_0x501737&&_0x1d8033[_0x906b('0x19')]['includes'](_0x2c3653['markerName'])&&_0x42008a[_0x906b('0x5')][_0x906b('0xe')]('ck-suggestion-marker--active',_0x44f1bd),_0x42008a[_0x906b('0x5')]['insert'](_0x30817a,_0x44f1bd),_0x42008a[_0x906b('0x12')][_0x906b('0x16')](_0x44f1bd,_0x2c3653[_0x906b('0x1e')]);}_0x3b0204||_0x351fa4||!_0x1e632f||_0x23d8c2(_0x1e632f);};}
@@ -1,18 +1,18 @@
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/suggestion
7
7
  * @publicApi
8
8
  */
9
- import { Element, type Marker, type Model, type Range, type Item } from 'ckeditor5/src/engine';
10
- import type { User } from 'ckeditor5-collaboration/src/collaboration-core';
9
+ import { Element, type Marker, type Model, type Range, type Item } from 'ckeditor5/src/engine.js';
10
+ import type { User } from 'ckeditor5-collaboration/src/collaboration-core.js';
11
11
  import type { CommentThread } from '@ckeditor/ckeditor5-comments';
12
- import type { FormatData, AttributeData } from './trackchangesediting';
12
+ import type { FormatData, AttributeData } from './trackchangesediting.js';
13
13
  declare const Suggestion_base: {
14
- new (): import("ckeditor5/src/utils").Observable;
15
- prototype: import("ckeditor5/src/utils").Observable;
14
+ new (): import("ckeditor5/src/utils.js").Observable;
15
+ prototype: import("ckeditor5/src/utils.js").Observable;
16
16
  };
17
17
  /**
18
18
  * Represents a singular suggestion that is tracked by track changes plugin.
package/src/suggestion.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
- const _0x2b8d=['from','decorate','_model','getFirstMarker','markers','hasComments','@external','discard','subType','onAttributesChange','getMarkerNames','split','attributes','getMarkers','next','getItems','onAccept','getRanges','creator','reduce','type','_onAccept','clear','nodeAfter','isMultiRange','setAttribute','previous','filter','author','getFirstRange','commentThread','onDiscard','substr','_onAttributesChange','removeMarker','removeMarkers','addMarkerName','getRange','addMarker','authoredAt','get','getMultiRangeId','isExternal','suggestion:','getAllAdjacentSuggestions','size','head','set','length','accept','end','_isDataLoaded','nodeBefore','isIntersectingWithRange','data','_markerNames','removeAttribute','map','createdAt','_onDiscard','change','getContainedElement'];(function(_0x558eef,_0x2b8dfc){const _0x2e70b8=function(_0x536c3c){while(--_0x536c3c){_0x558eef['push'](_0x558eef['shift']());}};_0x2e70b8(++_0x2b8dfc);}(_0x2b8d,0x1cb));const _0x2e70=function(_0x558eef,_0x2b8dfc){_0x558eef=_0x558eef-0x0;let _0x2e70b8=_0x2b8d[_0x558eef];return _0x2e70b8;};import{Element as _0x675665}from'ckeditor5/src/engine';import{ObservableMixin as _0x224d26,uid as _0x4a2373}from'ckeditor5/src/utils';import{cloneDeep as _0x171b68,isEqual as _0x50d259,set as _0x2d51a1,unset as _0x3077bb}from'lodash-es';export default class u extends _0x224d26(){constructor(_0x34df69,_0x1f1fe7){super(),this[_0x2e70('0x1a')]=!0x1,this['id']=_0x1f1fe7['id'],this[_0x2e70('0x39')]=_0x1f1fe7['type'],this[_0x2e70('0x2d')]=_0x1f1fe7[_0x2e70('0x2d')]||null,this[_0x2e70('0x3')]=_0x1f1fe7[_0x2e70('0x3')],this[_0x2e70('0x37')]=_0x1f1fe7[_0x2e70('0x37')]||_0x1f1fe7[_0x2e70('0x3')],this[_0x2e70('0x11')]=Boolean(_0x1f1fe7[_0x2e70('0x31')]&&_0x1f1fe7['attributes'][_0x2e70('0x2b')]),this['data']=null,this[_0x2e70('0x27')]=_0x34df69,this[_0x2e70('0x3a')]=_0x1f1fe7[_0x2e70('0x35')],this[_0x2e70('0x22')]=_0x1f1fe7[_0x2e70('0x6')],this[_0x2e70('0x8')]=_0x1f1fe7[_0x2e70('0x2e')],this[_0x2e70('0x1e')]=new Set(),this[_0x2e70('0x21')]=null,this[_0x2e70('0x16')](_0x2e70('0xe'),null),this[_0x2e70('0x16')](_0x2e70('0x31'),_0x1f1fe7[_0x2e70('0x31')]||{}),this['set'](_0x2e70('0x1'),null),this[_0x2e70('0x16')]('next',null),this[_0x2e70('0x16')](_0x2e70('0x5'),null),this[_0x2e70('0x16')]('_saved',!0x1),this[_0x2e70('0x26')](_0x2e70('0x18')),this['decorate'](_0x2e70('0x2c'));}get['head'](){let _0x9e557d=this;for(;_0x9e557d[_0x2e70('0x1')];)_0x9e557d=_0x9e557d[_0x2e70('0x1')];return _0x9e557d;}get[_0x2e70('0x2a')](){return!!this[_0x2e70('0x5')]&&this[_0x2e70('0x5')]['length']>0x0;}get[_0x2e70('0x3d')](){if(0x0==this[_0x2e70('0x1e')][_0x2e70('0x14')])return!0x1;return 0x6==Array[_0x2e70('0x25')](this[_0x2e70('0x1e')])[0x0][_0x2e70('0x30')](':')[_0x2e70('0x17')];}get['isInContent'](){return null!==this[_0x2e70('0x28')]();}[_0x2e70('0xb')](_0x2c4670){this[_0x2e70('0x1e')]['add'](_0x2c4670);}[_0x2e70('0x2f')](){return Array[_0x2e70('0x25')](this[_0x2e70('0x1e')]);}[_0x2e70('0x32')](){return this[_0x2e70('0x2f')]()[_0x2e70('0x20')](_0x4619df=>this[_0x2e70('0x27')][_0x2e70('0x29')][_0x2e70('0xf')](_0x4619df))[_0x2e70('0x2')](_0x202893=>_0x202893);}[_0x2e70('0x28')](){return this[_0x2e70('0x32')]()[0x0]||null;}[_0x2e70('0xa')](){this['_model'][_0x2e70('0x23')](_0x34c74b=>{for(const _0x411e3f of this[_0x2e70('0x32')]())_0x34c74b[_0x2e70('0x9')](_0x411e3f);}),this['_markerNames'][_0x2e70('0x3b')]();}[_0x2e70('0x9')](_0x594663){this['_model'][_0x2e70('0x23')](_0x4d881b=>{_0x4d881b[_0x2e70('0x9')](_0x594663);}),this['_markerNames']['delete'](_0x594663);}['addRange'](_0x51888c){const _0x10d927=_0x2e70('0x12')+this[_0x2e70('0x39')]+':'+this[_0x2e70('0x2d')]+':'+this['id']+':'+this[_0x2e70('0x37')]['id']+':'+u[_0x2e70('0x10')]();this[_0x2e70('0xb')](_0x10d927),this[_0x2e70('0x27')][_0x2e70('0x23')](_0x391436=>{_0x391436[_0x2e70('0xd')](_0x10d927,{'range':_0x51888c,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x2e70('0x1c')](_0x301632){for(const _0x512aa1 of this['getRanges']())if(_0x512aa1['isIntersecting'](_0x301632))return!0x0;return!0x1;}[_0x2e70('0x36')](){return this['getMarkers']()['map'](_0x3b5c3f=>_0x3b5c3f[_0x2e70('0xc')]());}[_0x2e70('0x34')](){return this[_0x2e70('0x36')]()[_0x2e70('0x38')]((_0x14304e,_0x4c6ae2)=>[..._0x14304e,..._0x4c6ae2['getItems']()],[]);}[_0x2e70('0x4')](){var _0x18656f;return(null===(_0x18656f=this[_0x2e70('0x28')]())||void 0x0===_0x18656f?void 0x0:_0x18656f['getRange']())||null;}[_0x2e70('0x24')](){const _0x1fa947=this[_0x2e70('0x36')]();if(0x1!=_0x1fa947[_0x2e70('0x17')])return null;const _0xf741e2=_0x1fa947[0x0],_0x2bcf34=_0xf741e2['start'][_0x2e70('0x3c')],_0x252914=_0xf741e2[_0x2e70('0x19')][_0x2e70('0x1b')];return _0x2bcf34 instanceof _0x675665?_0x2bcf34!=_0x252914?null:_0x2bcf34:null;}['accept'](){this[_0x2e70('0x3a')](this['getRanges'](),this[_0x2e70('0x1d')],this[_0x2e70('0x31')]),this[_0x2e70('0xa')]();}[_0x2e70('0x2c')](){this[_0x2e70('0x22')](this[_0x2e70('0x36')](),this[_0x2e70('0x1d')],this[_0x2e70('0x31')]),this['removeMarkers']();}[_0x2e70('0x13')](){const _0x25f320=[];let _0x1dfe3b=this[_0x2e70('0x15')];for(;_0x1dfe3b;)_0x25f320['push'](_0x1dfe3b),_0x1dfe3b=_0x1dfe3b[_0x2e70('0x33')];return _0x25f320;}[_0x2e70('0x0')](_0x6994ab,_0x581a32){const _0x224af7=_0x171b68(this[_0x2e70('0x31')]);_0x2d51a1(_0x224af7,_0x6994ab,_0x581a32),_0x50d259(_0x224af7,this[_0x2e70('0x31')])||(this[_0x2e70('0x31')]=_0x224af7,this['_onAttributesChange'](_0x224af7));}[_0x2e70('0x1f')](_0x49dee7){const _0x42b6a0=_0x171b68(this['attributes']);_0x3077bb(_0x42b6a0,_0x49dee7),_0x50d259(_0x42b6a0,this['attributes'])||(this[_0x2e70('0x31')]=_0x42b6a0,this[_0x2e70('0x8')](this[_0x2e70('0x31')]));}['toJSON'](){return{'id':this['id'],'type':this['subType']?this['type']+':'+this[_0x2e70('0x2d')]:this[_0x2e70('0x39')],'authorId':this[_0x2e70('0x37')]['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this['data'],'attributes':this[_0x2e70('0x31')]};}static[_0x2e70('0x10')](){return _0x4a2373()[_0x2e70('0x7')](0x1,0x5);}}
23
+ const _0x1bf6=['discard','delete','commentThread','getItems','getMultiRangeId','createdAt','getAllAdjacentSuggestions','split','isIntersecting','reduce','head','authoredAt','map','accept','previous','isInContent','getMarkerNames','author','removeAttribute','get','getRanges','removeMarkers','_onDiscard','getFirstMarker','type','end','size','onDiscard','creator','removeMarker','change','setAttribute','onAttributesChange','_model','_isDataLoaded','add','@external','getContainedElement','getMarkers','nodeBefore','isIntersectingWithRange','isMultiRange','clear','attributes','addRange','push','getRange','hasComments','set','from','addMarkerName','_markerNames','subType','_onAccept','_onAttributesChange','next','getFirstRange','length','markers','decorate','data','start'];(function(_0xf4c501,_0x1bf6e0){const _0x5a2983=function(_0x5a3b7c){while(--_0x5a3b7c){_0xf4c501['push'](_0xf4c501['shift']());}};_0x5a2983(++_0x1bf6e0);}(_0x1bf6,0xa4));const _0x5a29=function(_0xf4c501,_0x1bf6e0){_0xf4c501=_0xf4c501-0x0;let _0x5a2983=_0x1bf6[_0xf4c501];return _0x5a2983;};import{Element as _0x12eb54}from'ckeditor5/src/engine.js';import{ObservableMixin as _0x4f71fa,uid as _0xae8884}from'ckeditor5/src/utils.js';import{cloneDeep as _0x1a81fa,isEqual as _0x2d81e9,set as _0x1b22bf,unset as _0x20b699}from'lodash-es';export default class u extends _0x4f71fa(){constructor(_0x28bbcd,_0x5473b6){super(),this[_0x5a29('0x38')]=!0x1,this['id']=_0x5473b6['id'],this[_0x5a29('0x2e')]=_0x5473b6[_0x5a29('0x2e')],this[_0x5a29('0xc')]=_0x5473b6[_0x5a29('0xc')]||null,this['author']=_0x5473b6[_0x5a29('0x27')],this[_0x5a29('0x32')]=_0x5473b6[_0x5a29('0x32')]||_0x5473b6['author'],this['isExternal']=Boolean(_0x5473b6[_0x5a29('0x3')]&&_0x5473b6[_0x5a29('0x3')][_0x5a29('0x3a')]),this[_0x5a29('0x14')]=null,this[_0x5a29('0x37')]=_0x28bbcd,this[_0x5a29('0xd')]=_0x5473b6['onAccept'],this[_0x5a29('0x2c')]=_0x5473b6[_0x5a29('0x31')],this[_0x5a29('0xe')]=_0x5473b6[_0x5a29('0x36')],this['_markerNames']=new Set(),this[_0x5a29('0x1b')]=null,this['set'](_0x5a29('0x21'),null),this[_0x5a29('0x8')]('attributes',_0x5473b6[_0x5a29('0x3')]||{}),this[_0x5a29('0x8')](_0x5a29('0x24'),null),this[_0x5a29('0x8')](_0x5a29('0xf'),null),this[_0x5a29('0x8')](_0x5a29('0x18'),null),this['set']('_saved',!0x1),this['decorate'](_0x5a29('0x23')),this[_0x5a29('0x13')](_0x5a29('0x16'));}get[_0x5a29('0x20')](){let _0x3b2ba6=this;for(;_0x3b2ba6[_0x5a29('0x24')];)_0x3b2ba6=_0x3b2ba6['previous'];return _0x3b2ba6;}get['hasComments'](){return!!this['commentThread']&&this[_0x5a29('0x18')]['length']>0x0;}get[_0x5a29('0x1')](){if(0x0==this['_markerNames'][_0x5a29('0x30')])return!0x1;return 0x6==Array[_0x5a29('0x9')](this[_0x5a29('0xb')])[0x0][_0x5a29('0x1d')](':')[_0x5a29('0x11')];}get[_0x5a29('0x25')](){return null!==this[_0x5a29('0x2d')]();}['addMarkerName'](_0x4769e8){this[_0x5a29('0xb')][_0x5a29('0x39')](_0x4769e8);}[_0x5a29('0x26')](){return Array[_0x5a29('0x9')](this[_0x5a29('0xb')]);}[_0x5a29('0x3c')](){return this['getMarkerNames']()[_0x5a29('0x22')](_0x35ef9b=>this[_0x5a29('0x37')][_0x5a29('0x12')][_0x5a29('0x29')](_0x35ef9b))['filter'](_0x461a39=>_0x461a39);}[_0x5a29('0x2d')](){return this[_0x5a29('0x3c')]()[0x0]||null;}[_0x5a29('0x2b')](){this[_0x5a29('0x37')][_0x5a29('0x34')](_0x5bc783=>{for(const _0x1a3813 of this[_0x5a29('0x3c')]())_0x5bc783['removeMarker'](_0x1a3813);}),this[_0x5a29('0xb')][_0x5a29('0x2')]();}['removeMarker'](_0x67a56d){this[_0x5a29('0x37')][_0x5a29('0x34')](_0x32d381=>{_0x32d381[_0x5a29('0x33')](_0x67a56d);}),this['_markerNames'][_0x5a29('0x17')](_0x67a56d);}[_0x5a29('0x4')](_0x32294f){const _0x17b29f='suggestion:'+this[_0x5a29('0x2e')]+':'+this[_0x5a29('0xc')]+':'+this['id']+':'+this[_0x5a29('0x32')]['id']+':'+u[_0x5a29('0x1a')]();this[_0x5a29('0xa')](_0x17b29f),this['_model'][_0x5a29('0x34')](_0x297497=>{_0x297497['addMarker'](_0x17b29f,{'range':_0x32294f,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x5a29('0x0')](_0x8bd95d){for(const _0x8a51c2 of this[_0x5a29('0x2a')]())if(_0x8a51c2[_0x5a29('0x1e')](_0x8bd95d))return!0x0;return!0x1;}['getRanges'](){return this[_0x5a29('0x3c')]()[_0x5a29('0x22')](_0x4e315c=>_0x4e315c[_0x5a29('0x6')]());}[_0x5a29('0x19')](){return this[_0x5a29('0x2a')]()[_0x5a29('0x1f')]((_0xe973df,_0x14046b)=>[..._0xe973df,..._0x14046b[_0x5a29('0x19')]()],[]);}[_0x5a29('0x10')](){var _0x53dbe3;return(null===(_0x53dbe3=this[_0x5a29('0x2d')]())||void 0x0===_0x53dbe3?void 0x0:_0x53dbe3[_0x5a29('0x6')]())||null;}[_0x5a29('0x3b')](){const _0x2361eb=this[_0x5a29('0x2a')]();if(0x1!=_0x2361eb[_0x5a29('0x11')])return null;const _0x4e5a65=_0x2361eb[0x0],_0x233474=_0x4e5a65[_0x5a29('0x15')]['nodeAfter'],_0x19e155=_0x4e5a65[_0x5a29('0x2f')][_0x5a29('0x3d')];return _0x233474 instanceof _0x12eb54?_0x233474!=_0x19e155?null:_0x233474:null;}[_0x5a29('0x23')](){this['_onAccept'](this[_0x5a29('0x2a')](),this['data'],this['attributes']),this[_0x5a29('0x2b')]();}[_0x5a29('0x16')](){this[_0x5a29('0x2c')](this[_0x5a29('0x2a')](),this['data'],this[_0x5a29('0x3')]),this[_0x5a29('0x2b')]();}[_0x5a29('0x1c')](){const _0x2e49c2=[];let _0x253201=this[_0x5a29('0x20')];for(;_0x253201;)_0x2e49c2[_0x5a29('0x5')](_0x253201),_0x253201=_0x253201[_0x5a29('0xf')];return _0x2e49c2;}[_0x5a29('0x35')](_0x116b7a,_0x2a3081){const _0x538384=_0x1a81fa(this['attributes']);_0x1b22bf(_0x538384,_0x116b7a,_0x2a3081),_0x2d81e9(_0x538384,this[_0x5a29('0x3')])||(this[_0x5a29('0x3')]=_0x538384,this[_0x5a29('0xe')](_0x538384));}[_0x5a29('0x28')](_0x1e7977){const _0x3f2da8=_0x1a81fa(this[_0x5a29('0x3')]);_0x20b699(_0x3f2da8,_0x1e7977),_0x2d81e9(_0x3f2da8,this[_0x5a29('0x3')])||(this['attributes']=_0x3f2da8,this['_onAttributesChange'](this[_0x5a29('0x3')]));}['toJSON'](){return{'id':this['id'],'type':this[_0x5a29('0xc')]?this[_0x5a29('0x2e')]+':'+this[_0x5a29('0xc')]:this['type'],'authorId':this[_0x5a29('0x32')]['id'],'createdAt':this['createdAt'],'hasComments':this[_0x5a29('0x7')],'data':this[_0x5a29('0x14')],'attributes':this[_0x5a29('0x3')]};}static[_0x5a29('0x1a')](){return _0xae8884()['substr'](0x1,0x5);}}
@@ -1,10 +1,10 @@
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
- import { type Locale, type PriorityString } from 'ckeditor5/src/utils';
6
- import type { Schema, Element } from 'ckeditor5/src/engine';
7
- import type Suggestion from './suggestion';
5
+ import { type Locale, type PriorityString } from 'ckeditor5/src/utils.js';
6
+ import type { Schema, Element } from 'ckeditor5/src/engine.js';
7
+ import type Suggestion from './suggestion.js';
8
8
  /**
9
9
  * Creates descriptions for suggestions and suggestions chains.
10
10
  *