@ckeditor/ckeditor5-track-changes 40.0.0 → 40.2.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 (232) hide show
  1. package/CHANGELOG.md +15 -15
  2. package/LICENSE.md +3 -3
  3. package/README.md +1 -1
  4. package/build/track-changes.js +2 -2
  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/contexts.json +20 -1
  53. package/lang/translations/ar.po +78 -2
  54. package/lang/translations/az.po +77 -1
  55. package/lang/translations/bg.po +78 -2
  56. package/lang/translations/bn.po +78 -2
  57. package/lang/translations/ca.po +78 -2
  58. package/lang/translations/cs.po +78 -2
  59. package/lang/translations/da.po +78 -2
  60. package/lang/translations/de.po +78 -2
  61. package/lang/translations/el.po +78 -2
  62. package/lang/translations/en-au.po +78 -2
  63. package/lang/translations/en.po +78 -2
  64. package/lang/translations/es.po +78 -2
  65. package/lang/translations/et.po +78 -2
  66. package/lang/translations/fi.po +78 -2
  67. package/lang/translations/fr.po +78 -2
  68. package/lang/translations/gl.po +90 -14
  69. package/lang/translations/he.po +78 -2
  70. package/lang/translations/hi.po +78 -2
  71. package/lang/translations/hr.po +78 -2
  72. package/lang/translations/hu.po +78 -2
  73. package/lang/translations/id.po +78 -2
  74. package/lang/translations/it.po +78 -2
  75. package/lang/translations/ja.po +78 -2
  76. package/lang/translations/ko.po +78 -2
  77. package/lang/translations/lt.po +78 -2
  78. package/lang/translations/lv.po +78 -2
  79. package/lang/translations/ms.po +78 -2
  80. package/lang/translations/nl.po +78 -2
  81. package/lang/translations/no.po +78 -2
  82. package/lang/translations/pl.po +78 -2
  83. package/lang/translations/pt-br.po +96 -20
  84. package/lang/translations/pt.po +78 -2
  85. package/lang/translations/ro.po +78 -2
  86. package/lang/translations/ru.po +78 -2
  87. package/lang/translations/sk.po +78 -2
  88. package/lang/translations/sq.po +77 -1
  89. package/lang/translations/sr-latn.po +78 -2
  90. package/lang/translations/sr.po +78 -2
  91. package/lang/translations/sv.po +78 -2
  92. package/lang/translations/th.po +78 -2
  93. package/lang/translations/tk.po +77 -1
  94. package/lang/translations/tr.po +78 -2
  95. package/lang/translations/tt.po +77 -1
  96. package/lang/translations/uk.po +78 -2
  97. package/lang/translations/ur.po +77 -1
  98. package/lang/translations/vi.po +78 -2
  99. package/lang/translations/zh-cn.po +78 -2
  100. package/lang/translations/zh.po +78 -2
  101. package/package.json +3 -3
  102. package/src/augmentation.d.ts +40 -40
  103. package/src/commands/acceptsuggestioncommand.d.ts +24 -24
  104. package/src/commands/acceptsuggestioncommand.js +1 -1
  105. package/src/commands/discardsuggestioncommand.d.ts +24 -24
  106. package/src/commands/discardsuggestioncommand.js +1 -1
  107. package/src/commands/executeonallsuggestionscommand.d.ts +24 -24
  108. package/src/commands/executeonallsuggestionscommand.js +1 -1
  109. package/src/commands/executeonselectedsuggestionscommand.d.ts +24 -24
  110. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  111. package/src/commands/trackchangescommand.d.ts +26 -26
  112. package/src/commands/trackchangescommand.js +1 -1
  113. package/src/index.d.ts +16 -16
  114. package/src/integrations/aiassistant.d.ts +17 -17
  115. package/src/integrations/aiassistant.js +1 -1
  116. package/src/integrations/alignment.d.ts +17 -17
  117. package/src/integrations/alignment.js +1 -1
  118. package/src/integrations/basicstyles.d.ts +17 -17
  119. package/src/integrations/basicstyles.js +1 -1
  120. package/src/integrations/blockquote.d.ts +17 -17
  121. package/src/integrations/blockquote.js +1 -1
  122. package/src/integrations/ckbox.d.ts +17 -17
  123. package/src/integrations/ckbox.js +1 -1
  124. package/src/integrations/codeblock.d.ts +17 -17
  125. package/src/integrations/codeblock.js +1 -1
  126. package/src/integrations/comments.d.ts +14 -14
  127. package/src/integrations/comments.js +1 -1
  128. package/src/integrations/deletecommand.d.ts +17 -17
  129. package/src/integrations/deletecommand.js +1 -1
  130. package/src/integrations/documentlist.d.ts +17 -17
  131. package/src/integrations/documentlist.js +1 -1
  132. package/src/integrations/documentlistproperties.d.ts +29 -29
  133. package/src/integrations/documentlistproperties.js +1 -1
  134. package/src/integrations/entercommand.d.ts +16 -16
  135. package/src/integrations/entercommand.js +1 -1
  136. package/src/integrations/findandreplace.d.ts +21 -21
  137. package/src/integrations/findandreplace.js +1 -1
  138. package/src/integrations/font.d.ts +17 -17
  139. package/src/integrations/font.js +1 -1
  140. package/src/integrations/formatpainter.d.ts +17 -17
  141. package/src/integrations/formatpainter.js +1 -1
  142. package/src/integrations/heading.d.ts +17 -17
  143. package/src/integrations/heading.js +1 -1
  144. package/src/integrations/highlight.d.ts +17 -17
  145. package/src/integrations/highlight.js +1 -1
  146. package/src/integrations/horizontalline.d.ts +17 -17
  147. package/src/integrations/horizontalline.js +1 -1
  148. package/src/integrations/htmlembed.d.ts +17 -17
  149. package/src/integrations/htmlembed.js +1 -1
  150. package/src/integrations/image.d.ts +17 -17
  151. package/src/integrations/image.js +1 -1
  152. package/src/integrations/imagereplace.d.ts +17 -23
  153. package/src/integrations/imagereplace.js +1 -1
  154. package/src/integrations/imagestyle.d.ts +17 -0
  155. package/src/integrations/imagestyle.js +23 -0
  156. package/src/integrations/importword.d.ts +18 -18
  157. package/src/integrations/importword.js +1 -1
  158. package/src/integrations/indent.d.ts +17 -17
  159. package/src/integrations/indent.js +1 -1
  160. package/src/integrations/inputcommand.d.ts +16 -16
  161. package/src/integrations/inputcommand.js +1 -1
  162. package/src/integrations/link.d.ts +17 -17
  163. package/src/integrations/link.js +1 -1
  164. package/src/integrations/list.d.ts +17 -17
  165. package/src/integrations/list.js +1 -1
  166. package/src/integrations/listproperties.d.ts +29 -29
  167. package/src/integrations/listproperties.js +1 -1
  168. package/src/integrations/mediaembed.d.ts +17 -17
  169. package/src/integrations/mediaembed.js +1 -1
  170. package/src/integrations/mention.d.ts +17 -17
  171. package/src/integrations/mention.js +1 -1
  172. package/src/integrations/pagebreak.d.ts +17 -17
  173. package/src/integrations/pagebreak.js +1 -1
  174. package/src/integrations/paragraph.d.ts +17 -17
  175. package/src/integrations/paragraph.js +1 -1
  176. package/src/integrations/removeformat.d.ts +17 -17
  177. package/src/integrations/removeformat.js +1 -1
  178. package/src/integrations/restrictededitingmode.d.ts +17 -17
  179. package/src/integrations/restrictededitingmode.js +1 -1
  180. package/src/integrations/shiftentercommand.d.ts +16 -16
  181. package/src/integrations/shiftentercommand.js +1 -1
  182. package/src/integrations/standardeditingmode.d.ts +17 -17
  183. package/src/integrations/standardeditingmode.js +1 -1
  184. package/src/integrations/style.d.ts +17 -18
  185. package/src/integrations/style.js +1 -1
  186. package/src/integrations/table.d.ts +42 -42
  187. package/src/integrations/table.js +1 -1
  188. package/src/integrations/tablecaption.d.ts +22 -22
  189. package/src/integrations/tablecaption.js +1 -1
  190. package/src/integrations/tableclipboard.d.ts +19 -19
  191. package/src/integrations/tableclipboard.js +1 -1
  192. package/src/integrations/tablecolumnresize.d.ts +26 -26
  193. package/src/integrations/tablecolumnresize.js +1 -1
  194. package/src/integrations/tableheadings.d.ts +22 -22
  195. package/src/integrations/tableheadings.js +1 -1
  196. package/src/integrations/tablemergesplit.d.ts +22 -22
  197. package/src/integrations/tablemergesplit.js +1 -1
  198. package/src/integrations/tableofcontents.d.ts +17 -17
  199. package/src/integrations/tableofcontents.js +1 -1
  200. package/src/integrations/tableproperties.d.ts +27 -27
  201. package/src/integrations/tableproperties.js +1 -1
  202. package/src/integrations/template.d.ts +17 -17
  203. package/src/integrations/template.js +1 -1
  204. package/src/integrations/title.d.ts +17 -17
  205. package/src/integrations/title.js +1 -1
  206. package/src/integrations/undo.d.ts +17 -17
  207. package/src/integrations/undo.js +1 -1
  208. package/src/integrations/utils.d.ts +21 -21
  209. package/src/integrations/utils.js +1 -1
  210. package/src/suggestion.d.ts +291 -276
  211. package/src/suggestion.js +1 -1
  212. package/src/suggestiondescriptionfactory.d.ts +183 -163
  213. package/src/suggestiondescriptionfactory.js +1 -1
  214. package/src/trackchanges.d.ts +180 -244
  215. package/src/trackchanges.js +1 -1
  216. package/src/trackchangesconfig.d.ts +78 -75
  217. package/src/trackchangesdata.d.ts +41 -41
  218. package/src/trackchangesdata.js +1 -1
  219. package/src/trackchangesediting.d.ts +524 -468
  220. package/src/trackchangesediting.js +1 -1
  221. package/src/trackchangesui.d.ts +38 -38
  222. package/src/trackchangesui.js +1 -1
  223. package/src/ui/suggestioncontroller.d.ts +37 -37
  224. package/src/ui/suggestioncontroller.js +1 -1
  225. package/src/ui/view/basesuggestionthreadview.d.ts +170 -170
  226. package/src/ui/view/basesuggestionthreadview.js +1 -1
  227. package/src/ui/view/suggestionthreadview.d.ts +182 -182
  228. package/src/ui/view/suggestionthreadview.js +1 -1
  229. package/src/utils/common-translations.d.ts +9 -9
  230. package/src/utils/common-translations.js +1 -1
  231. package/src/utils/utils.d.ts +30 -30
  232. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x17a5=['has','afterInit','removeClass','ck-suggestion-marker-','getColumnIndexes','formatBlock','model','ck-suggestion-marker--active','FORMAT_HEADER_ROW','_suggestionFactory','getSuggestion','createPositionBefore','showSuggestionHighlights','setTableRowHeader','enableCommand','headingColumns','stop','childCount','getAttribute','mapper','get','_acceptFormatSuggestionCallbackFactory','name','setTableColumnHeader','value','findAncestor','includes','data','requires','downcastDispatcher','unbindElementFromMarkerName','selection','_splitMarkerName','nodeAfter','options','from','_descriptionFactory','headingRows','getCellLocation','table','toViewElement','commandName','activeMarkers','createPositionAfter','isBefore','last','markerRange','markerNameToElements','start','FORMAT_HEADER_COLUMN','index','consume','locale','removeAttribute','data-suggestion','parent','addMarker:suggestion','commands','createRange','commandParams','createTableWalker','first','*Format:*\x20%0','bindElementToMarker','change','writer','forceValue','accept','TableUtils','format','document','item','markerName','editor','consumable','highest','plugins','editing','TableEditing','registerDescriptionCallback','getSelectionAffectedTableCells','TrackChangesEditing','registerCustomCallback','cell','nodeBefore','addClass','getChild'];(function(_0x32ad35,_0x17a5e1){const _0x265bde=function(_0x464545){while(--_0x464545){_0x32ad35['push'](_0x32ad35['shift']());}};_0x265bde(++_0x17a5e1);}(_0x17a5,0x139));const _0x265b=function(_0x32ad35,_0x17a5e1){_0x32ad35=_0x32ad35-0x0;let _0x265bde=_0x17a5[_0x32ad35];return _0x265bde;};import{Plugin as _0x52cdca}from'ckeditor5/src/core';import _0xf1ac1c from'./table';import{getTranslation as _0x21c5c4}from'../utils/common-translations';export default class kt extends _0x52cdca{static get[_0x265b('0x3f')](){return[_0xf1ac1c];}[_0x265b('0x24')](){const _0xeb5fd2=this[_0x265b('0x15')];if(!_0xeb5fd2[_0x265b('0x18')][_0x265b('0x23')](_0x265b('0x1a')))return;const _0x20198e=_0xeb5fd2[_0x265b('0x0')],_0x47b9fc=_0xeb5fd2[_0x265b('0x18')][_0x265b('0x37')](_0x265b('0x1d')),_0x24b429=_0xeb5fd2[_0x265b('0x18')][_0x265b('0x37')](_0x265b('0x10')),_0x537773=_0xeb5fd2[_0x265b('0x18')][_0x265b('0x37')](_0xf1ac1c);function _0x4378a2({showActiveMarker:_0x2907fa=!0x0,setDataAttribute:_0x4ff9cd=!0x0}={}){return(_0x4df33b,_0x4a2c35,_0x7dc348)=>{const {type:_0x2f1b16,id:_0x1fa8fb}=_0x47b9fc[_0x265b('0x43')](_0x4a2c35['markerName']),_0x1375d5=_0x47b9fc[_0x265b('0x2d')](_0x1fa8fb);if(!_0x1375d5[_0x265b('0x3e')]||_0x265b('0x3a')!=_0x1375d5[_0x265b('0x3e')][_0x265b('0x4c')])return;if(_0x4a2c35[_0x265b('0x13')])return void _0x4df33b[_0x265b('0x33')]();if(!_0x7dc348[_0x265b('0x16')][_0x265b('0x56')](_0x4a2c35['markerRange'],_0x4df33b[_0x265b('0x39')]))return;const _0x485832=_0x4a2c35[_0x265b('0x51')][_0x265b('0x53')][_0x265b('0x44')],_0x43fe1d=_0x4a2c35[_0x265b('0x51')]['end'][_0x265b('0x20')],_0x122beb=_0x485832['parent'][_0x265b('0x3')],{column:_0x16cb1e}=_0x24b429[_0x265b('0x49')](_0x485832),{column:_0x1f9899}=_0x24b429[_0x265b('0x49')](_0x43fe1d);for(let _0x46ee9f=_0x16cb1e;_0x46ee9f<=_0x1f9899;_0x46ee9f++){const _0x40e3bc=_0x24b429[_0x265b('0x8')](_0x122beb,{'column':_0x46ee9f,'includeAllSlots':!0x1});for(const _0x4d2a60 of _0x40e3bc){const _0x1f18d2=_0x4d2a60[_0x265b('0x1f')],_0xb9cb83=_0x7dc348[_0x265b('0x36')][_0x265b('0x4b')](_0x1f18d2);_0x7dc348[_0x265b('0xd')][_0x265b('0x21')]('ck-suggestion-marker-'+_0x2f1b16,_0xb9cb83),_0x4ff9cd&&_0x7dc348[_0x265b('0xd')]['setAttribute'](_0x265b('0x2'),_0x1fa8fb,_0xb9cb83),_0x7dc348[_0x265b('0x36')][_0x265b('0xb')](_0xb9cb83,_0x4a2c35[_0x265b('0x14')]),_0x2907fa&&(_0x47b9fc[_0x265b('0x4d')][_0x265b('0x3d')](_0x4a2c35[_0x265b('0x14')])?_0x7dc348[_0x265b('0xd')][_0x265b('0x21')](_0x265b('0x2a'),_0xb9cb83):_0x7dc348[_0x265b('0xd')]['removeClass'](_0x265b('0x2a'),_0xb9cb83));}}};}_0x47b9fc[_0x265b('0x31')]('setTableRowHeader',(_0x3eab96,_0x2ee518)=>{const _0x2899aa=_0x24b429[_0x265b('0x1c')](_0xeb5fd2[_0x265b('0x29')][_0x265b('0x12')][_0x265b('0x42')]),_0x5d10ad=_0x24b429['getRowIndexes'](_0x2899aa),_0x33c97a=_0x2899aa[0x0][_0x265b('0x3c')](_0x265b('0x4a')),_0x6b08f3=_0x33c97a[_0x265b('0x35')](_0x265b('0x48'))||0x0,_0x18dd4e=_0x2ee518&&null!==_0x2ee518[_0x265b('0xe')]?_0x2ee518['forceValue']:!_0xeb5fd2[_0x265b('0x5')][_0x265b('0x37')](_0x265b('0x30'))[_0x265b('0x3b')],_0x2bf5cc=_0x18dd4e?_0x5d10ad[_0x265b('0x50')]:_0x5d10ad[_0x265b('0x9')],_0x3eb1e1=_0x33c97a['getChild'](_0x2bf5cc);let _0x5677fb;if(_0x18dd4e){const _0x1a108e=_0x33c97a['getChild'](_0x6b08f3);if(_0x3eb1e1['index']<_0x1a108e[_0x265b('0x55')])return;_0x5677fb=_0xeb5fd2[_0x265b('0x29')][_0x265b('0x6')](_0xeb5fd2[_0x265b('0x29')][_0x265b('0x2e')](_0x1a108e[_0x265b('0x22')](0x0)),_0xeb5fd2[_0x265b('0x29')]['createPositionAfter'](_0x3eb1e1[_0x265b('0x22')](_0x3eb1e1[_0x265b('0x34')]-0x1)));}else{const _0x303f6e=_0x33c97a[_0x265b('0x22')](_0x6b08f3-0x1);if(!_0x303f6e)return;_0x5677fb=_0xeb5fd2[_0x265b('0x29')][_0x265b('0x6')](_0xeb5fd2[_0x265b('0x29')][_0x265b('0x2e')](_0x3eb1e1[_0x265b('0x22')](0x0)),_0xeb5fd2[_0x265b('0x29')][_0x265b('0x4e')](_0x303f6e[_0x265b('0x22')](_0x303f6e[_0x265b('0x34')]-0x1)));}_0xeb5fd2['model'][_0x265b('0xc')](()=>{_0x47b9fc['markBlockFormat'](_0x5677fb,{'commandName':_0x265b('0x30'),'commandParams':[{'forceValue':_0x18dd4e}]},[],_0x265b('0x30'));});}),_0x47b9fc['enableCommand']('setTableColumnHeader',(_0x247833,_0x2546c9)=>{const _0x4055b8=_0xeb5fd2['plugins']['get'](_0x265b('0x10')),_0x1ddf82=_0x4055b8[_0x265b('0x1c')](_0xeb5fd2['model'][_0x265b('0x12')][_0x265b('0x42')]),_0x4ec9fa=_0x4055b8[_0x265b('0x27')](_0x1ddf82),_0x3d00ec=_0x1ddf82[0x0]['findAncestor'](_0x265b('0x4a')),_0x6fb5f3=_0x3d00ec[_0x265b('0x35')](_0x265b('0x32'))||0x0,_0x216d91=_0x2546c9&&null!==_0x2546c9['forceValue']?_0x2546c9[_0x265b('0xe')]:!_0xeb5fd2[_0x265b('0x5')][_0x265b('0x37')](_0x265b('0x3a'))[_0x265b('0x3b')];let _0x3ecb39;const _0x49691a=_0x3d00ec[_0x265b('0x22')](0x0),_0xea419c=_0x216d91?_0x4ec9fa[_0x265b('0x50')]:_0x4ec9fa[_0x265b('0x9')],_0x42a8ac=_0x4055b8['createTableWalker'](_0x3d00ec,{'startRow':0x0,'column':_0xea419c,'includeAllSlots':!0x1}),_0x41504d=Array[_0x265b('0x46')](_0x42a8ac)[0x0][_0x265b('0x1f')];if(_0x216d91){const _0x23bc34=_0x49691a[_0x265b('0x22')](_0x6fb5f3);if(_0x41504d[_0x265b('0x4f')](_0x23bc34))return;_0x3ecb39=_0xeb5fd2[_0x265b('0x29')][_0x265b('0x6')](_0xeb5fd2[_0x265b('0x29')][_0x265b('0x2e')](_0x23bc34),_0xeb5fd2[_0x265b('0x29')][_0x265b('0x4e')](_0x41504d));}else{const _0x241f8d=_0x49691a[_0x265b('0x22')](_0x6fb5f3-0x1);if(!_0x241f8d)return;_0x3ecb39=_0xeb5fd2[_0x265b('0x29')][_0x265b('0x6')](_0xeb5fd2[_0x265b('0x29')][_0x265b('0x2e')](_0x41504d),_0xeb5fd2[_0x265b('0x29')]['createPositionAfter'](_0x241f8d));}_0xeb5fd2[_0x265b('0x29')]['change'](()=>{_0x47b9fc['markBlockFormat'](_0x3ecb39,{'commandName':'setTableColumnHeader','commandParams':[{'forceValue':_0x216d91}]},[],_0x265b('0x3a'));});}),_0xeb5fd2[_0x265b('0x19')][_0x265b('0x40')]['on'](_0x265b('0x4'),_0x4378a2(),{'priority':_0x265b('0x17')}),_0xeb5fd2[_0x265b('0x3e')][_0x265b('0x40')]['on'](_0x265b('0x4'),(_0x38b0bb,_0x199c3e,_0x1e6910)=>{_0x1e6910[_0x265b('0x45')][_0x265b('0x2f')]&&_0x4378a2({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x38b0bb,_0x199c3e,_0x1e6910);},{'priority':_0x265b('0x17')}),_0xeb5fd2[_0x265b('0x19')][_0x265b('0x40')]['on']('removeMarker:suggestion',(_0x22ba43,_0x2846f3,_0x5740fd)=>{const {type:_0x2290f7,id:_0x1c8301}=_0x47b9fc[_0x265b('0x43')](_0x2846f3['markerName']),_0x1e2479=_0x47b9fc[_0x265b('0x2d')](_0x1c8301);if(!_0x1e2479[_0x265b('0x3e')]||_0x265b('0x3a')!=_0x1e2479[_0x265b('0x3e')][_0x265b('0x4c')])return;const _0x1312f2=_0x5740fd['mapper'][_0x265b('0x52')](_0x2846f3[_0x265b('0x14')]);if(_0x1312f2)for(const _0x178873 of _0x1312f2)_0x5740fd['writer']['removeClass'](_0x265b('0x26')+_0x2290f7,_0x178873),_0x5740fd[_0x265b('0xd')][_0x265b('0x25')]('ck-suggestion-marker--active',_0x178873),_0x5740fd[_0x265b('0xd')][_0x265b('0x1')](_0x265b('0x2'),_0x178873),_0x5740fd[_0x265b('0x36')][_0x265b('0x41')](_0x178873,_0x2846f3['markerName']);},{'priority':_0x265b('0x17')}),_0x47b9fc[_0x265b('0x47')][_0x265b('0x1b')](_0xdb88e4=>{const {data:_0x4249a7}=_0xdb88e4;if(_0x4249a7){if(_0x265b('0x30')==_0x4249a7['commandName']){const _0x2a3d80=_0x4249a7[_0x265b('0x7')][0x0][_0x265b('0xe')];return _0x4ed563(_0x21c5c4(_0x20198e,_0x2a3d80?_0x265b('0x2b'):'FORMAT_REGULAR_ROW'));}if(_0x265b('0x3a')==_0x4249a7[_0x265b('0x4c')]){const _0xc18c3d=_0x4249a7['commandParams'][0x0]['forceValue'];return _0x4ed563(_0x21c5c4(_0x20198e,_0xc18c3d?_0x265b('0x54'):'FORMAT_REGULAR_COLUMN'));}}function _0x4ed563(_0x56f2fd){return{'type':_0x265b('0x11'),'content':_0x21c5c4(_0x20198e,_0x265b('0xa'),_0x56f2fd)};}});const _0x1df622=_0x537773[_0x265b('0x38')]();_0x47b9fc['_suggestionFactory'][_0x265b('0x1e')](_0x265b('0x28'),_0x265b('0x30'),_0x265b('0xf'),_0x1df622),_0x47b9fc[_0x265b('0x2c')][_0x265b('0x1e')](_0x265b('0x28'),_0x265b('0x3a'),_0x265b('0xf'),_0x1df622);}}
23
+ const _0x1e7e=['data-suggestion','formatBlock','TableEditing','forceValue','registerCustomCallback','getSuggestion','_splitMarkerName','FORMAT_HEADER_ROW','addClass','downcastDispatcher','writer','setTableRowHeader','_suggestionFactory','afterInit','createTableWalker','markerRange','bindElementToMarker','cell','_registerLegacyDescription','FORMAT_HEADER_COLUMN','setAttribute','_descriptionFactory','editor','TrackChangesEditing','get','requires','FORMAT_REGULAR_ROW','highest','has','*Format:*\x20%0','registerAttributeLabel','end','item','headingColumns','format','ck-suggestion-marker--active','toViewElement','addMarker:suggestion','unbindElementFromMarkerName','mapper','locale','type','ck-suggestion-marker-','editing','markerNameToElements','removeAttribute','showSuggestionHighlights','_handleLegacySuggestions','getCellLocation','nodeAfter','setTableColumnHeader','markerName','accept','commandName','data','commandParams','headingRows','plugins','removeClass','start','_enableDefaultAttributesIntegration'];(function(_0x5797d3,_0x1e7e21){const _0x1014b2=function(_0x2500a2){while(--_0x2500a2){_0x5797d3['push'](_0x5797d3['shift']());}};_0x1014b2(++_0x1e7e21);}(_0x1e7e,0x1d4));const _0x1014=function(_0x5797d3,_0x1e7e21){_0x5797d3=_0x5797d3-0x0;let _0x1014b2=_0x1e7e[_0x5797d3];return _0x1014b2;};import{Plugin as _0x28d52f}from'ckeditor5/src/core';import _0x431aaa from'./table';import{getTranslation as _0x380f92}from'../utils/common-translations';export default class St extends _0x28d52f{static get[_0x1014('0x2d')](){return[_0x431aaa];}[_0x1014('0x21')](){const _0xb46fa8=this[_0x1014('0x2a')];if(!_0xb46fa8[_0x1014('0x10')][_0x1014('0x30')](_0x1014('0x16')))return;const _0x1f349a=_0xb46fa8[_0x1014('0x3c')],_0x5d5f1d=_0xb46fa8['plugins'][_0x1014('0x2c')](_0x1014('0x2b'));_0x5d5f1d[_0x1014('0x13')](_0x1014('0x1f'),[],['headingRows']),_0x5d5f1d[_0x1014('0x13')](_0x1014('0x9'),[],['headingColumns']),_0x5d5f1d[_0x1014('0x29')]['registerAttributeLabel'](_0x1014('0xf'),_0x380f92(_0x1f349a,'FORMAT_HEADER_ROW')),_0x5d5f1d[_0x1014('0x29')][_0x1014('0x32')](_0x1014('0x35'),_0x380f92(_0x1f349a,_0x1014('0x27'))),this['_handleLegacySuggestions']();}[_0x1014('0x6')](){const _0x4b4946=this[_0x1014('0x2a')][_0x1014('0x10')][_0x1014('0x2c')]('TrackChangesEditing'),_0x5d0193=this[_0x1014('0x2a')]['plugins'][_0x1014('0x2c')]('TableUtils'),_0x3770b6=this['editor'][_0x1014('0x10')][_0x1014('0x2c')](_0x431aaa)['_acceptFormatSuggestionCallbackFactory']();function _0x3af317({showActiveMarker:_0x4086ba=!0x0,setDataAttribute:_0x24ef0d=!0x0}={}){return(_0xa8c169,_0x56fa21,_0x218044)=>{const {type:_0x3921dd,id:_0x902b92}=_0x4b4946[_0x1014('0x1a')](_0x56fa21[_0x1014('0xa')]),_0x47b2dc=_0x4b4946[_0x1014('0x19')](_0x902b92),_0x21554e=_0x47b2dc['data'];if(_0x1014('0x15')!=_0x47b2dc[_0x1014('0x0')]||!_0x21554e||_0x1014('0x9')!=_0x21554e[_0x1014('0xc')])return;if(_0x56fa21[_0x1014('0x34')])return void _0xa8c169['stop']();if(!_0x218044['consumable']['consume'](_0x56fa21[_0x1014('0x23')],_0xa8c169['name']))return;const _0x41662b=_0x56fa21[_0x1014('0x23')][_0x1014('0x12')][_0x1014('0x8')],_0x524261=_0x56fa21[_0x1014('0x23')][_0x1014('0x33')]['nodeBefore'],_0x1741f1=_0x41662b['parent']['parent'],{column:_0x1f2793}=_0x5d0193[_0x1014('0x7')](_0x41662b),{column:_0x58ce86}=_0x5d0193[_0x1014('0x7')](_0x524261);for(let _0x513b76=_0x1f2793;_0x513b76<=_0x58ce86;_0x513b76++){const _0x89fe9b=_0x5d0193[_0x1014('0x22')](_0x1741f1,{'column':_0x513b76,'includeAllSlots':!0x1});for(const _0x276f73 of _0x89fe9b){const _0x39e800=_0x276f73[_0x1014('0x25')],_0x13efb4=_0x218044[_0x1014('0x3b')][_0x1014('0x38')](_0x39e800);_0x218044[_0x1014('0x1e')][_0x1014('0x1c')](_0x1014('0x1')+_0x3921dd,_0x13efb4),_0x24ef0d&&_0x218044[_0x1014('0x1e')][_0x1014('0x28')](_0x1014('0x14'),_0x902b92,_0x13efb4),_0x218044[_0x1014('0x3b')][_0x1014('0x24')](_0x13efb4,_0x56fa21[_0x1014('0xa')]),_0x4086ba&&(_0x4b4946['activeMarkers']['includes'](_0x56fa21[_0x1014('0xa')])?_0x218044[_0x1014('0x1e')][_0x1014('0x1c')](_0x1014('0x37'),_0x13efb4):_0x218044[_0x1014('0x1e')][_0x1014('0x11')](_0x1014('0x37'),_0x13efb4));}}};}_0x4b4946[_0x1014('0x20')][_0x1014('0x18')](_0x1014('0x15'),_0x1014('0x1f'),_0x1014('0xb'),_0x3770b6),_0x4b4946[_0x1014('0x20')][_0x1014('0x18')]('formatBlock',_0x1014('0x9'),'accept',_0x3770b6),this[_0x1014('0x2a')]['editing']['downcastDispatcher']['on'](_0x1014('0x39'),_0x3af317(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on'](_0x1014('0x39'),(_0x58f32f,_0x2278e3,_0x2c5c32)=>{_0x2c5c32['options'][_0x1014('0x5')]&&_0x3af317({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x58f32f,_0x2278e3,_0x2c5c32);},{'priority':'highest'}),this[_0x1014('0x2a')][_0x1014('0x2')][_0x1014('0x1d')]['on']('removeMarker:suggestion',(_0x56238f,_0x11d8ca,_0x4d7a89)=>{const {type:_0x2b62fe,id:_0x239684}=_0x4b4946[_0x1014('0x1a')](_0x11d8ca[_0x1014('0xa')]),_0x2b49f6=_0x4b4946[_0x1014('0x19')](_0x239684),_0x3b1a73=_0x2b49f6[_0x1014('0xd')];if(_0x1014('0x15')!=_0x2b49f6[_0x1014('0x0')]||!_0x3b1a73||_0x1014('0x9')!=_0x3b1a73[_0x1014('0xc')])return;const _0xe87fe7=_0x4d7a89[_0x1014('0x3b')][_0x1014('0x3')](_0x11d8ca[_0x1014('0xa')]);if(_0xe87fe7)for(const _0x59b48c of _0xe87fe7)_0x4d7a89[_0x1014('0x1e')][_0x1014('0x11')](_0x1014('0x1')+_0x2b62fe,_0x59b48c),_0x4d7a89[_0x1014('0x1e')]['removeClass'](_0x1014('0x37'),_0x59b48c),_0x4d7a89[_0x1014('0x1e')][_0x1014('0x4')](_0x1014('0x14'),_0x59b48c),_0x4d7a89[_0x1014('0x3b')][_0x1014('0x3a')](_0x59b48c,_0x11d8ca[_0x1014('0xa')]);},{'priority':_0x1014('0x2f')}),this[_0x1014('0x26')]();}[_0x1014('0x26')](){const _0x22cdd6=this[_0x1014('0x2a')],_0x1c3586=_0x22cdd6[_0x1014('0x3c')];function _0x30fbca(_0x184720){return{'type':_0x1014('0x36'),'content':_0x380f92(_0x1c3586,_0x1014('0x31'),_0x184720)};}_0x22cdd6[_0x1014('0x10')][_0x1014('0x2c')](_0x1014('0x2b'))['_descriptionFactory']['registerDescriptionCallback'](_0x1e6cec=>{if(_0x1014('0x15')!=_0x1e6cec[_0x1014('0x0')])return;const {data:_0x5387bd}=_0x1e6cec;if(_0x5387bd){if(_0x1014('0x1f')==_0x5387bd[_0x1014('0xc')]){const _0x73e2e6=_0x5387bd[_0x1014('0xe')][0x0]['forceValue'];return _0x30fbca(_0x380f92(_0x1c3586,_0x73e2e6?_0x1014('0x1b'):_0x1014('0x2e')));}if(_0x1014('0x9')==_0x5387bd[_0x1014('0xc')]){const _0x985bc3=_0x5387bd[_0x1014('0xe')][0x0][_0x1014('0x17')];return _0x30fbca(_0x380f92(_0x1c3586,_0x985bc3?_0x1014('0x27'):'FORMAT_REGULAR_COLUMN'));}}});}}
@@ -1,22 +1,22 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module track-changes/integrations/tablemergesplit
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import TrackChangesTable from './table';
10
- /**
11
- * Provides track changes plugin integration for {@link module:table/table~Table table feature} merging and splitting cells.
12
- */
13
- export default class TrackChangesTableMergeSplit extends Plugin {
14
- /**
15
- * @inheritDoc
16
- */
17
- static get requires(): readonly [typeof TrackChangesTable];
18
- /**
19
- * @inheritDoc
20
- */
21
- afterInit(): void;
22
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module track-changes/integrations/tablemergesplit
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import TrackChangesTable from './table';
10
+ /**
11
+ * Provides track changes plugin integration for {@link module:table/table~Table table feature} merging and splitting cells.
12
+ */
13
+ export default class TrackChangesTableMergeSplit extends Plugin {
14
+ /**
15
+ * @inheritDoc
16
+ */
17
+ static get requires(): readonly [typeof TrackChangesTable];
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ afterInit(): void;
22
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2099=['markMultiRangeBlockFormat','model','enableCommand','TrackChangesEditing','_areSelectedCellsMergable','mergeTableCellDown','filter','TableUtils','element','length','*Merge\x20cells*','registerCustomCallback','has','*Split\x20cell:*\x20vertically','stop','find','accept','isEnabled','plugins','type','execute','_descriptionFactory','requires','getFirstPosition','registerDescriptionCallback','size','containsRange','setSelection','getRanges','$graveyard','fromRange','return','mergeTableCellRight','_suggestionFactory','_tablePostFixingSubtypes','from','mergeTableCellUp','push','low','author','mergeTableCellLeft','getSelectionAffectedTableCells','TableEditing','direction','editor','getCellLocation','splitTableCellHorizontally','get','rootName','commandName','table','splitTableCellVertically','createTableWalker','change','document','horizontally','add','cell','tableCell','format','getAncestors','locale','afterInit','_acceptFormatSuggestionCallbackFactory','_areMergableCells','insertion','root','formatBlock','commands','value','mergeTableCells','_isForcedDefaultExecutionBlock','map','refresh','createRangeOn','markBlockFormat','selection'];(function(_0xb540cd,_0x2099c9){const _0x5f12dc=function(_0x1314a8){while(--_0x1314a8){_0xb540cd['push'](_0xb540cd['shift']());}};_0x5f12dc(++_0x2099c9);}(_0x2099,0x93));const _0x5f12=function(_0xb540cd,_0x2099c9){_0xb540cd=_0xb540cd-0x0;let _0x5f12dc=_0x2099[_0xb540cd];return _0x5f12dc;};import{Plugin as _0x497730}from'ckeditor5/src/core';import _0x5948af from'./table';import{LiveRange as _0x1d4014}from'ckeditor5/src/engine';import{getTranslation as _0x745999}from'../utils/common-translations';export default class pt extends _0x497730{static get[_0x5f12('0x1d')](){return[_0x5948af];}[_0x5f12('0x45')](){const _0x64d57b=this['editor'],_0x1f0fd5=_0x64d57b['model'][_0x5f12('0x3d')]['selection'],_0x4c8d7b=_0x64d57b[_0x5f12('0x44')];if(!_0x64d57b[_0x5f12('0x19')][_0x5f12('0x13')](_0x5f12('0x31')))return;const _0xf822c5=_0x64d57b['plugins'][_0x5f12('0x36')](_0x5f12('0xa')),_0x2a1d5d=_0x64d57b[_0x5f12('0x19')][_0x5f12('0x36')](_0x5f12('0xe')),_0x245d6e=_0x64d57b[_0x5f12('0x19')][_0x5f12('0x36')](_0x5948af);_0x245d6e[_0x5f12('0x29')][_0x5f12('0x2c')](_0x5f12('0x0')),_0xf822c5[_0x5f12('0x9')](_0x5f12('0x0'),()=>{const _0x519429=_0x2a1d5d[_0x5f12('0x30')](_0x64d57b[_0x5f12('0x8')][_0x5f12('0x3d')][_0x5f12('0x6')]);_0x64d57b[_0x5f12('0x8')][_0x5f12('0x3c')](()=>{_0xf822c5[_0x5f12('0x7')](_0x519429,{'commandName':'mergeTableCells','commandParams':[]},[],_0x5f12('0x0'));});}),_0x64d57b[_0x5f12('0x4b')]['get'](_0x5f12('0x0'))['on'](_0x5f12('0x1b'),(_0x38832e,_0x307fea)=>{_0x64d57b[_0x5f12('0x4b')][_0x5f12('0x36')]('trackChanges')['value']&&(_0x307fea['length']>0x0&&_0x307fea[_0x307fea[_0x5f12('0x10')]-0x1]&&_0x307fea[_0x307fea['length']-0x1]['forceDefaultExecution']||_0xf822c5[_0x5f12('0x1')]||this['_areSelectedCellsMergable']()||_0x38832e['stop']());},{'priority':'highest'});for(const _0x3ae12a of[_0x5f12('0x2b'),_0x5f12('0x27'),_0x5f12('0xc'),'mergeTableCellLeft']){const _0x2fa26c=_0x64d57b['commands']['get'](_0x3ae12a);_0xf822c5['enableCommand'](_0x3ae12a,()=>{const _0x24c479=_0x64d57b['model'][_0x5f12('0x3d')][_0x5f12('0x6')][_0x5f12('0x1e')]()[_0x5f12('0x43')]()[_0x5f12('0x16')](_0x401286=>_0x401286['is'](_0x5f12('0xf'),'tableCell')),_0x43d5f3=_0x2fa26c[_0x5f12('0x4c')];_0x64d57b[_0x5f12('0x8')][_0x5f12('0x3c')](()=>{_0xf822c5['markMultiRangeBlockFormat']([_0x24c479,_0x43d5f3],{'commandName':_0x5f12('0x0'),'commandParams':[]},[],_0x5f12('0x0'));});});}for(const _0x69095a of[_0x5f12('0x3a'),_0x5f12('0x35')]){const _0x4d97ad=_0x64d57b[_0x5f12('0x4b')]['get'](_0x69095a);_0xf822c5['enableCommand'](_0x69095a,()=>{const _0x13be31=_0x2a1d5d['getSelectionAffectedTableCells'](_0x64d57b[_0x5f12('0x8')][_0x5f12('0x3d')][_0x5f12('0x6')])[0x0],_0x4986da=_0x13be31['findAncestor'](_0x5f12('0x39')),{column:_0xfdc9c0,row:_0x5b4203}=_0x2a1d5d[_0x5f12('0x34')](_0x13be31);let _0x3c811b=[];if(_0x5f12('0x3e')==_0x4d97ad[_0x5f12('0x32')]){const _0x30afaf=_0x2a1d5d[_0x5f12('0x3b')](_0x4986da,{'startRow':_0x5b4203,'endRow':_0x5b4203,'includeAllSlots':!0x0});_0x3c811b=Array[_0x5f12('0x2a')](_0x30afaf)['map'](_0x386519=>_0x386519[_0x5f12('0x40')]);}else{const _0x5ae843=_0x2a1d5d[_0x5f12('0x3b')](_0x4986da,{'column':_0xfdc9c0,'includeAllSlots':!0x0});_0x3c811b=Array[_0x5f12('0x2a')](_0x5ae843)[_0x5f12('0x2')](_0x4cc15a=>_0x4cc15a[_0x5f12('0x40')]);}_0x64d57b[_0x5f12('0x8')][_0x5f12('0x3c')](_0x488801=>{_0xf822c5[_0x5f12('0x5')](_0x488801[_0x5f12('0x4')](_0x13be31),{'commandName':_0x69095a,'commandParams':[]},_0x3c811b,_0x69095a);});});}_0xf822c5[_0x5f12('0x1c')][_0x5f12('0x1f')](_0x1db85b=>{const {data:_0x24ae3d}=_0x1db85b;if(_0x24ae3d)return'mergeTableCells'==_0x24ae3d[_0x5f12('0x38')]?{'type':_0x5f12('0x42'),'content':_0x745999(_0x4c8d7b,_0x5f12('0x11'))}:void 0x0;}),_0xf822c5['_descriptionFactory'][_0x5f12('0x1f')](_0x287820=>{const {data:_0x1dedd2}=_0x287820;if(_0x1dedd2)return _0x5f12('0x3a')==_0x1dedd2['commandName']?{'type':_0x5f12('0x42'),'content':_0x745999(_0x4c8d7b,_0x5f12('0x14'))}:_0x5f12('0x35')==_0x1dedd2[_0x5f12('0x38')]?{'type':_0x5f12('0x42'),'content':_0x745999(_0x4c8d7b,'*Split\x20cell:*\x20horizontally')}:void 0x0;});const _0x50bdef=_0x245d6e[_0x5f12('0x46')]();for(const _0x21ac4f of['mergeTableCellUp','mergeTableCellRight',_0x5f12('0xc'),_0x5f12('0x2f')])_0xf822c5['_suggestionFactory']['registerCustomCallback'](_0x5f12('0x4a'),_0x21ac4f,_0x5f12('0x17'),_0x50bdef);for(const _0x1bbbc6 of['splitTableCellVertically','splitTableCellHorizontally'])_0xf822c5[_0x5f12('0x28')][_0x5f12('0x12')](_0x5f12('0x4a'),_0x1bbbc6,_0x5f12('0x17'),_0x50bdef);_0xf822c5['_suggestionFactory'][_0x5f12('0x12')]('formatBlock',_0x5f12('0x0'),_0x5f12('0x17'),_0x562475=>{_0x64d57b['model']['change'](_0x2bb05f=>{const _0x34794d=Array[_0x5f12('0x2a')](_0x1f0fd5[_0x5f12('0x23')]())[_0x5f12('0x2')](_0x57c764=>_0x1d4014[_0x5f12('0x25')](_0x57c764));_0x2bb05f[_0x5f12('0x22')](_0x562475),_0x64d57b[_0x5f12('0x4b')][_0x5f12('0x36')](_0x5f12('0x0'))[_0x5f12('0x3')](),_0x64d57b[_0x5f12('0x1b')](_0x5f12('0x0'),{'forceDefaultExecution':!0x0});const _0x199f01=_0x34794d[_0x5f12('0xd')](_0x36955f=>_0x5f12('0x24')!=_0x36955f[_0x5f12('0x49')][_0x5f12('0x37')]);_0x199f01[_0x5f12('0x10')]>0x0&&_0x2bb05f['setSelection'](_0x199f01);for(const _0xbc6613 of _0x34794d)_0xbc6613['detach']();});});for(const _0x2dc4d9 of[_0x5f12('0x2b'),_0x5f12('0xc'),_0x5f12('0x2f'),_0x5f12('0x27')]){const _0x5489ed=_0x64d57b[_0x5f12('0x4b')][_0x5f12('0x36')](_0x2dc4d9);_0x5489ed['on']('set:isEnabled',(_0x1f7c68,_0x3c3ac1,_0x1dad7b)=>{if(_0x1dad7b){const _0x12e1e7=_0x64d57b[_0x5f12('0x8')][_0x5f12('0x3d')][_0x5f12('0x6')][_0x5f12('0x1e')]()[_0x5f12('0x43')]()[_0x5f12('0x16')](_0xbad652=>_0xbad652['is'](_0x5f12('0xf'),_0x5f12('0x41')));this[_0x5f12('0x47')](_0x5489ed['value'],_0x12e1e7)||(_0x1f7c68[_0x5f12('0x26')]=!0x1,_0x1f7c68[_0x5f12('0x15')]());}},{'priority':_0x5f12('0x2d')});}}[_0x5f12('0xb')](){const _0xad50fd=this[_0x5f12('0x33')][_0x5f12('0x4b')]['get'](_0x5f12('0x0')),_0x3730b2=this[_0x5f12('0x33')]['plugins'][_0x5f12('0x36')](_0x5f12('0xe'));if(!_0xad50fd[_0x5f12('0x18')])return!0x1;const _0x5e9090=_0x3730b2[_0x5f12('0x30')](this['editor'][_0x5f12('0x8')][_0x5f12('0x3d')]['selection']);for(const _0x56f3d2 of _0x5e9090)for(const _0x4b8b98 of _0x5e9090)if(_0x56f3d2!=_0x4b8b98&&!this[_0x5f12('0x47')](_0x56f3d2,_0x4b8b98))return!0x1;return!0x0;}[_0x5f12('0x47')](_0x3fbf2b,_0x2ef9a1){const _0x57225c=this[_0x5f12('0x33')][_0x5f12('0x19')][_0x5f12('0x36')](_0x5f12('0xa')),_0x45da05=this['editor'][_0x5f12('0x8')][_0x5f12('0x4')](_0x3fbf2b),_0x383f6f=this[_0x5f12('0x33')][_0x5f12('0x8')][_0x5f12('0x4')](_0x2ef9a1),_0x3fd3ae=new Set(),_0x2fb9b9=new Set();for(const _0x38af1a of _0x57225c['getSuggestions']())if((_0x5f12('0x48')==_0x38af1a[_0x5f12('0x1a')]||'deletion'==_0x38af1a['type']||_0x5f12('0x0')==_0x38af1a['subType'])&&_0x38af1a['isInContent'])for(const _0x1bf9e4 of _0x38af1a[_0x5f12('0x23')]())_0x1bf9e4[_0x5f12('0x21')](_0x45da05,!0x0)&&_0x3fd3ae[_0x5f12('0x3f')](_0x38af1a['type']+':'+_0x38af1a[_0x5f12('0x2e')]['id']),_0x1bf9e4[_0x5f12('0x21')](_0x383f6f,!0x0)&&_0x2fb9b9[_0x5f12('0x3f')](_0x38af1a[_0x5f12('0x1a')]+':'+_0x38af1a[_0x5f12('0x2e')]['id']);if(_0x3fd3ae[_0x5f12('0x20')]!=_0x2fb9b9[_0x5f12('0x20')])return!0x1;for(const _0x195228 of _0x3fd3ae)if(!_0x2fb9b9[_0x5f12('0x13')](_0x195228))return!0x1;return!0x0;}}
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;}}
@@ -1,17 +1,17 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module track-changes/integrations/tableofcontents
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- /**
10
- * Provides track changes plugin integration for the Table of contents feature.
11
- */
12
- export default class TrackChangesTableOfContents extends Plugin {
13
- /**
14
- * @inheritDoc
15
- */
16
- afterInit(): void;
17
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module track-changes/integrations/tableofcontents
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ /**
10
+ * Provides track changes plugin integration for the Table of contents feature.
11
+ */
12
+ export default class TrackChangesTableOfContents extends Plugin {
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ afterInit(): void;
17
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x34f2=['TrackChangesEditing','enableCommand','commands','plugins','registerElementLabel','get','_descriptionFactory','insertTableOfContents','afterInit','tableOfContents'];(function(_0x248359,_0x34f286){const _0x2e45cf=function(_0x2c0100){while(--_0x2c0100){_0x248359['push'](_0x248359['shift']());}};_0x2e45cf(++_0x34f286);}(_0x34f2,0xfd));const _0x2e45=function(_0x248359,_0x34f286){_0x248359=_0x248359-0x0;let _0x2e45cf=_0x34f2[_0x248359];return _0x2e45cf;};import{Plugin as _0x2d74fc}from'ckeditor5/src/core';import{getTranslation as _0x1687b4}from'../utils/common-translations';export default class St extends _0x2d74fc{[_0x2e45('0x5')](){const _0x456548=this['editor'];if(!_0x456548[_0x2e45('0x9')][_0x2e45('0x2')]('insertTableOfContents'))return;_0x456548['plugins'][_0x2e45('0x2')](_0x2e45('0x7'))[_0x2e45('0x8')](_0x2e45('0x4'));const _0x3d390f=_0x456548[_0x2e45('0x0')]['get'](_0x2e45('0x7')),_0x34155e=_0x456548['locale'];_0x3d390f[_0x2e45('0x3')][_0x2e45('0x1')](_0x2e45('0x6'),_0x2d2095=>_0x1687b4(_0x34155e,'ELEMENT_TABLE_OF_CONTENTS',_0x2d2095));}}
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));}}
@@ -1,27 +1,27 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module track-changes/integrations/tableproperties
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';
12
- /**
13
- * Provides track changes plugin integration for table properties feature.
14
- */
15
- export default class TrackChangesTableProperties extends Plugin {
16
- constructor(editor: Editor);
17
- /**
18
- * @inheritDoc
19
- */
20
- static get pluginName(): "TrackChangesTableProperties";
21
- /**
22
- * @inheritDoc
23
- */
24
- afterInit(): void;
25
- handleDiscardAction(properties: Array<string>, ranges: Array<Range>, data: any): void;
26
- handleSuggestionDescription(suggestion: Suggestion): Description | undefined;
27
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module track-changes/integrations/tableproperties
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';
12
+ /**
13
+ * Provides track changes plugin integration for table properties feature.
14
+ */
15
+ export default class TrackChangesTableProperties extends Plugin {
16
+ constructor(editor: Editor);
17
+ /**
18
+ * @inheritDoc
19
+ */
20
+ static get pluginName(): "TrackChangesTableProperties";
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ afterInit(): void;
25
+ handleDiscardAction(properties: Array<string>, ranges: Array<Range>, data: any): void;
26
+ handleSuggestionDescription(suggestion: Suggestion): Description | undefined;
27
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1810=['tableCellBorderStyle','accept','document','tableCellVerticalAlignment','setAttribute','handleSuggestionDescription','TrackChangesEditing','plugins','get','registerDescriptionCallback','change','TableUtils','tableCellHorizontalAlignment','getSuggestions','commandParams','tableCellWidth','subType','has','formatBlock','handleDiscardAction','*Format:*\x20change\x20table\x20properties','TableCellPropertiesEditing','removeAttribute','tableCellProperties','start','table','join','registerCustomCallback','enableCommand','tableCellBorderColor','tableCellBackgroundColor','_suggestionFactory','enqueueChange','_handlePropertyChange','editor','selection','getAttribute','getSuggestionCallback','getFirstPosition','nodeAfter','locale','TrackChangesTableProperties','tableCellBorderWidth','discard','pluginName','tableProperties','tableHeight','*Format:*\x20change\x20table\x20cell\x20properties','tableBorderColor','getContainedElement','TablePropertiesEditing','tableWidth','model','data','format','_getSuggestion'];(function(_0x4ec658,_0x18109a){const _0x554806=function(_0x293fc1){while(--_0x293fc1){_0x4ec658['push'](_0x4ec658['shift']());}};_0x554806(++_0x18109a);}(_0x1810,0x1af));const _0x5548=function(_0x4ec658,_0x18109a){_0x4ec658=_0x4ec658-0x0;let _0x554806=_0x1810[_0x4ec658];return _0x554806;};import{Plugin as _0x1f7e24}from'ckeditor5/src/core';import{getTranslation as _0x5d6771}from'../utils/common-translations';export default class Dt extends _0x1f7e24{constructor(_0x1ce6db){super(_0x1ce6db),this[_0x5548('0x6')]=[_0x5548('0x9'),'tableBorderStyle','tableBorderWidth','tableAlignment',_0x5548('0xc'),_0x5548('0x7'),'tableBackgroundColor'],this['tableCellProperties']=[_0x5548('0x2e'),_0x5548('0x11'),_0x5548('0x3'),'tableCellPadding',_0x5548('0x20'),'tableCellHeight',_0x5548('0x2f'),_0x5548('0x1d'),_0x5548('0x14')];}static get[_0x5548('0x5')](){return _0x5548('0x2');}['afterInit'](){const _0xc0cd4a=this[_0x5548('0x33')][_0x5548('0x18')][_0x5548('0x19')](_0x5548('0x17'));if(this[_0x5548('0x33')][_0x5548('0x18')]['has'](_0x5548('0xb'))){for(const _0x2c11c4 of this[_0x5548('0x6')])_0xc0cd4a[_0x5548('0x2d')](_0x2c11c4,(_0x296f79,_0x369fe1)=>{const _0x1d2756=this[_0x5548('0x33')][_0x5548('0xd')][_0x5548('0x13')]['selection'][_0x5548('0x37')]()['findAncestor'](_0x5548('0x2a'));this[_0x5548('0x32')](_0x2c11c4,[_0x1d2756],this[_0x5548('0x6')],_0x5548('0x6'),_0x296f79,_0x369fe1);});_0xc0cd4a[_0x5548('0x30')][_0x5548('0x2c')](_0x5548('0x23'),'tableProperties',_0x5548('0x12'),_0xc0cd4a[_0x5548('0x30')][_0x5548('0x36')]('formatBlock',null,'discard')),_0xc0cd4a[_0x5548('0x30')][_0x5548('0x2c')]('formatBlock',_0x5548('0x6'),_0x5548('0x4'),(_0x2cb97e,_0x44d765)=>this[_0x5548('0x24')](this['tableProperties'],_0x2cb97e,_0x44d765)),_0xc0cd4a[_0x5548('0x30')][_0x5548('0x2c')](_0x5548('0x23'),_0x5548('0x6'),'join',()=>!0x1);}if(this[_0x5548('0x33')]['plugins'][_0x5548('0x22')](_0x5548('0x26'))){for(const _0x598bcd of this[_0x5548('0x28')])_0xc0cd4a[_0x5548('0x2d')](_0x598bcd,(_0x301e77,_0xdc8781)=>{const _0x5444ea=this[_0x5548('0x33')]['plugins']['get'](_0x5548('0x1c'))['getSelectionAffectedTableCells'](this[_0x5548('0x33')][_0x5548('0xd')][_0x5548('0x13')][_0x5548('0x34')]);this[_0x5548('0x32')](_0x598bcd,_0x5444ea,this[_0x5548('0x28')],'tableCellProperties',_0x301e77,_0xdc8781);});_0xc0cd4a[_0x5548('0x30')]['registerCustomCallback'](_0x5548('0x23'),_0x5548('0x28'),_0x5548('0x12'),_0xc0cd4a['_suggestionFactory'][_0x5548('0x36')]('formatBlock',null,_0x5548('0x4'))),_0xc0cd4a[_0x5548('0x30')][_0x5548('0x2c')](_0x5548('0x23'),_0x5548('0x28'),_0x5548('0x4'),(_0x497c85,_0xff492f)=>this[_0x5548('0x24')](this[_0x5548('0x28')],_0x497c85,_0xff492f)),_0xc0cd4a[_0x5548('0x30')]['registerCustomCallback']('formatBlock',_0x5548('0x28'),_0x5548('0x2b'),()=>!0x1);}_0xc0cd4a['_descriptionFactory'][_0x5548('0x1a')](_0xef0daa=>this[_0x5548('0x16')](_0xef0daa));}['_handlePropertyChange'](_0xad561b,_0x1c1269,_0x40d076,_0x10ef7c,_0x136ef9,_0x517413){const _0x1930b6=this[_0x5548('0x33')][_0x5548('0x18')][_0x5548('0x19')](_0x5548('0x17'));this[_0x5548('0x33')]['model'][_0x5548('0x31')](_0x517413['batch'],()=>{for(const _0x22944a of _0x1c1269){if(this[_0x5548('0x10')](_0x22944a,_0x10ef7c))_0x136ef9(_0x517413);else{const _0x29e807={};for(const _0x49ac8b of _0x40d076){const _0x4b0aa5=_0x22944a[_0x5548('0x35')](_0x49ac8b);void 0x0!==_0x4b0aa5&&(_0x29e807[_0x49ac8b]=_0x4b0aa5);}_0x136ef9(_0x517413),_0x1930b6['markBlockFormat'](_0x22944a,{'commandParams':[_0x29e807]},[],_0x10ef7c);}}});}[_0x5548('0x24')](_0x24c5cd,_0x29a8e5,_0x37f717){const _0x4ae80f=_0x29a8e5[0x0][_0x5548('0x29')][_0x5548('0x0')],_0x24e5ba=_0x37f717[_0x5548('0x1f')][0x0];this[_0x5548('0x33')][_0x5548('0xd')][_0x5548('0x1b')](_0xab37ae=>{for(const _0x470213 of _0x24c5cd)void 0x0!==_0x24e5ba[_0x470213]?_0xab37ae[_0x5548('0x15')](_0x470213,_0x24e5ba[_0x470213],_0x4ae80f):_0xab37ae[_0x5548('0x27')](_0x470213,_0x4ae80f);});}[_0x5548('0x16')](_0x2e65fb){if(_0x2e65fb[_0x5548('0xe')])switch(_0x2e65fb['subType']){case _0x5548('0x6'):return{'type':'format','content':_0x5d6771(this['editor'][_0x5548('0x1')],_0x5548('0x25'))};case'tableCellProperties':return{'type':_0x5548('0xf'),'content':_0x5d6771(this['editor']['locale'],_0x5548('0x8'))};}}[_0x5548('0x10')](_0xe9bf5d,_0x1251a6){const _0x18c38f=this[_0x5548('0x33')][_0x5548('0x18')][_0x5548('0x19')]('TrackChangesEditing');for(const _0x32e39b of _0x18c38f[_0x5548('0x1e')]({'skipNotAttached':!0x0})){const _0x3f52cb=_0x32e39b[_0x5548('0xa')]();if(_0x32e39b[_0x5548('0x21')]===_0x1251a6&&_0x3f52cb===_0xe9bf5d)return _0x32e39b;}return null;}}
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;}}
@@ -1,17 +1,17 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module track-changes/integrations/template
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- /**
10
- * Provides track changes plugin integration for template feature.
11
- */
12
- export default class TrackChangesTemplate extends Plugin {
13
- /**
14
- * @inheritDoc
15
- */
16
- afterInit(): void;
17
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module track-changes/integrations/template
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ /**
10
+ * Provides track changes plugin integration for template feature.
11
+ */
12
+ export default class TrackChangesTemplate extends Plugin {
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ afterInit(): void;
17
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3bb2=['get','plugins','enableCommand','insertTemplate','TrackChangesEditing','has','afterInit','Template'];(function(_0x1eb90d,_0x3bb290){const _0x3767be=function(_0x54b222){while(--_0x54b222){_0x1eb90d['push'](_0x1eb90d['shift']());}};_0x3767be(++_0x3bb290);}(_0x3bb2,0xe5));const _0x3767=function(_0x1eb90d,_0x3bb290){_0x1eb90d=_0x1eb90d-0x0;let _0x3767be=_0x3bb2[_0x1eb90d];return _0x3767be;};import{Plugin as _0x3cfb40}from'ckeditor5/src/core';export default class bt extends _0x3cfb40{[_0x3767('0x1')](){const _0x50fa63=this['editor'];_0x50fa63[_0x3767('0x4')][_0x3767('0x0')](_0x3767('0x2'))&&_0x50fa63[_0x3767('0x4')][_0x3767('0x3')](_0x3767('0x7'))[_0x3767('0x5')](_0x3767('0x6'));}}
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');}}
@@ -1,17 +1,17 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module track-changes/integrations/title
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- /**
10
- * Provides track changes plugin integration for title feature.
11
- */
12
- export default class TrackChangesTitle extends Plugin {
13
- /**
14
- * @inheritDoc
15
- */
16
- afterInit(): void;
17
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module track-changes/integrations/title
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ /**
10
+ * Provides track changes plugin integration for title feature.
11
+ */
12
+ export default class TrackChangesTitle extends Plugin {
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ afterInit(): void;
17
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xbf94=['_splitMarkerName','isCollapsed','createRange','newRange','TrackChangesEditing','from','locale','plugins','end','afterInit','title-content','getChangedMarkers','suggestion','get','nodeBefore','forward','registerElementLabel','Title','element','differ','isEqual','model','document','ELEMENT_TITLE','schema','isTouching','start','removeMarker','editor'];(function(_0x1ef500,_0xbf941a){const _0x52e255=function(_0x39219f){while(--_0x39219f){_0x1ef500['push'](_0x1ef500['shift']());}};_0x52e255(++_0xbf941a);}(_0xbf94,0xe6));const _0x52e2=function(_0x1ef500,_0xbf941a){_0x1ef500=_0x1ef500-0x0;let _0x52e255=_0xbf94[_0x1ef500];return _0x52e255;};import{Plugin as _0x11fbd8}from'ckeditor5/src/core';import{getTranslation as _0x4756bb}from'../utils/common-translations';export default class It extends _0x11fbd8{[_0x52e2('0xb')](){const _0x3be69a=this[_0x52e2('0x1')];if(!_0x3be69a[_0x52e2('0x9')]['has'](_0x52e2('0x13')))return;const _0xe73945=_0x3be69a[_0x52e2('0x9')][_0x52e2('0xf')](_0x52e2('0x6'));_0xe73945['_descriptionFactory'][_0x52e2('0x12')]('title-content',()=>_0x4756bb(_0x3be69a[_0x52e2('0x8')],_0x52e2('0x19'))),_0x3be69a[_0x52e2('0x17')][_0x52e2('0x18')]['registerPostFixer'](_0x24c6ec=>{let _0x1c93f6=!0x1;const _0x214e3f=Array[_0x52e2('0x7')](_0x3be69a[_0x52e2('0x17')][_0x52e2('0x18')][_0x52e2('0x15')][_0x52e2('0xd')]());for(const {name:_0x37ea49,data:_0x44d40f}of _0x214e3f){const {group:_0x348d8d}=_0xe73945[_0x52e2('0x2')](_0x37ea49);if(_0x52e2('0xe')!==_0x348d8d||!_0x44d40f['newRange'])continue;const _0x7ab21e=_0x44d40f[_0x52e2('0x5')],_0x58f93a=_0x7ab21e[_0x52e2('0xa')][_0x52e2('0x10')];if(!_0x58f93a||!_0x58f93a['is'](_0x52e2('0x14'),_0x52e2('0xc')))continue;if(!_0x7ab21e[_0x52e2('0x1c')][_0x52e2('0x1b')](_0x7ab21e[_0x52e2('0xa')]))continue;const _0x25c77d=_0x3be69a[_0x52e2('0x17')][_0x52e2('0x1a')]['getNearestSelectionRange'](_0x7ab21e[_0x52e2('0xa')],_0x52e2('0x11'));if(_0x25c77d&&_0x25c77d[_0x52e2('0x3')]){const _0x547a1c=_0x24c6ec[_0x52e2('0x4')](_0x7ab21e[_0x52e2('0x1c')],_0x25c77d[_0x52e2('0x1c')]);_0x547a1c[_0x52e2('0x16')](_0x7ab21e)||(_0x24c6ec['updateMarker'](_0x37ea49,{'range':_0x547a1c}),_0x1c93f6=!0x0);}_0x1c93f6||(_0x24c6ec[_0x52e2('0x0')](_0x37ea49),_0x1c93f6=!0x0);}return _0x1c93f6;});}}
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;});}}
@@ -1,17 +1,17 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module track-changes/integrations/undo
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- /**
10
- * Provides track changes plugin integration for {@link module:undo/undo~Undo undo feature}.
11
- */
12
- export default class TrackChangesUndo extends Plugin {
13
- /**
14
- * @inheritDoc
15
- */
16
- afterInit(): void;
17
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module track-changes/integrations/undo
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ /**
10
+ * Provides track changes plugin integration for {@link module:undo/undo~Undo undo feature}.
11
+ */
12
+ export default class TrackChangesUndo extends Plugin {
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ afterInit(): void;
17
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb94f=['TrackChangesEditing','undo','afterInit','enableCommand','get','editor','has','redo','plugins'];(function(_0x1a6404,_0xb94f65){const _0x1b1808=function(_0x1c1a83){while(--_0x1c1a83){_0x1a6404['push'](_0x1a6404['shift']());}};_0x1b1808(++_0xb94f65);}(_0xb94f,0xd2));const _0x1b18=function(_0x1a6404,_0xb94f65){_0x1a6404=_0x1a6404-0x0;let _0x1b1808=_0xb94f[_0x1a6404];return _0x1b1808;};import{Plugin as _0x4e3cc5}from'ckeditor5/src/core';export default class vt extends _0x4e3cc5{[_0x1b18('0x8')](){const _0x1b62b4=this[_0x1b18('0x2')],_0x2ea7ff=_0x1b62b4[_0x1b18('0x5')][_0x1b18('0x1')](_0x1b18('0x6'));_0x1b62b4['plugins'][_0x1b18('0x3')]('UndoEditing')&&(_0x2ea7ff[_0x1b18('0x0')](_0x1b18('0x7')),_0x2ea7ff['enableCommand'](_0x1b18('0x4')));}}
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'));}}
@@ -1,21 +1,21 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- import type { Editor } from 'ckeditor5/src/core';
6
- import type { Range, Model, Element, DowncastAddMarkerEvent } from 'ckeditor5/src/engine';
7
- import type { GetCallback } from 'ckeditor5/src/utils';
8
- /**
9
- * Searches given `range` and returns all sub-ranges containing items with given `attributeKey`.
10
- */
11
- export declare function getRangesWithAttribute(attributeKey: string, range: Range, model: Model): Array<Range>;
12
- /**
13
- * For given `element`, if it is a list item, returns all list items that would be affected by renaming `element` to a different element.
14
- */
15
- export declare function getElementsAffectedByListItemRename(element: Element): Array<Element>;
16
- /**
17
- * Returns the conversion function for down-casting split/merge markers.
18
- */
19
- export declare function downcastSplitMergeMarker(editor: Editor, type: 'split' | 'merge', { showActiveMarker }?: {
20
- showActiveMarker?: boolean | undefined;
21
- }): GetCallback<DowncastAddMarkerEvent>;
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ import type { Editor } from 'ckeditor5/src/core';
6
+ import type { Range, Model, Element, DowncastAddMarkerEvent } from 'ckeditor5/src/engine';
7
+ import type { GetCallback } from 'ckeditor5/src/utils';
8
+ /**
9
+ * Searches given `range` and returns all sub-ranges containing items with given `attributeKey`.
10
+ */
11
+ export declare function getRangesWithAttribute(attributeKey: string, range: Range, model: Model): Array<Range>;
12
+ /**
13
+ * For given `element`, if it is a list item, returns all list items that would be affected by renaming `element` to a different element.
14
+ */
15
+ export declare function getElementsAffectedByListItemRename(element: Element): Array<Element>;
16
+ /**
17
+ * Returns the conversion function for down-casting split/merge markers.
18
+ */
19
+ export declare function downcastSplitMergeMarker(editor: Editor, type: 'split' | 'merge', { showActiveMarker }?: {
20
+ showActiveMarker?: boolean | undefined;
21
+ }): GetCallback<DowncastAddMarkerEvent>;