@ckeditor/ckeditor5-track-changes 40.0.0 → 40.1.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 (230) hide show
  1. package/LICENSE.md +3 -3
  2. package/build/track-changes.js +2 -2
  3. package/build/translations/ar.js +1 -1
  4. package/build/translations/az.js +1 -1
  5. package/build/translations/bg.js +1 -1
  6. package/build/translations/bn.js +1 -1
  7. package/build/translations/ca.js +1 -1
  8. package/build/translations/cs.js +1 -1
  9. package/build/translations/da.js +1 -1
  10. package/build/translations/de.js +1 -1
  11. package/build/translations/el.js +1 -1
  12. package/build/translations/en-au.js +1 -1
  13. package/build/translations/es.js +1 -1
  14. package/build/translations/et.js +1 -1
  15. package/build/translations/fi.js +1 -1
  16. package/build/translations/fr.js +1 -1
  17. package/build/translations/gl.js +1 -1
  18. package/build/translations/he.js +1 -1
  19. package/build/translations/hi.js +1 -1
  20. package/build/translations/hr.js +1 -1
  21. package/build/translations/hu.js +1 -1
  22. package/build/translations/id.js +1 -1
  23. package/build/translations/it.js +1 -1
  24. package/build/translations/ja.js +1 -1
  25. package/build/translations/ko.js +1 -1
  26. package/build/translations/lt.js +1 -1
  27. package/build/translations/lv.js +1 -1
  28. package/build/translations/ms.js +1 -1
  29. package/build/translations/nl.js +1 -1
  30. package/build/translations/no.js +1 -1
  31. package/build/translations/pl.js +1 -1
  32. package/build/translations/pt-br.js +1 -1
  33. package/build/translations/pt.js +1 -1
  34. package/build/translations/ro.js +1 -1
  35. package/build/translations/ru.js +1 -1
  36. package/build/translations/sk.js +1 -1
  37. package/build/translations/sq.js +1 -1
  38. package/build/translations/sr-latn.js +1 -1
  39. package/build/translations/sr.js +1 -1
  40. package/build/translations/sv.js +1 -1
  41. package/build/translations/th.js +1 -1
  42. package/build/translations/tk.js +1 -1
  43. package/build/translations/tr.js +1 -1
  44. package/build/translations/tt.js +1 -1
  45. package/build/translations/uk.js +1 -1
  46. package/build/translations/ur.js +1 -1
  47. package/build/translations/vi.js +1 -1
  48. package/build/translations/zh-cn.js +1 -1
  49. package/build/translations/zh.js +1 -1
  50. package/lang/contexts.json +20 -1
  51. package/lang/translations/ar.po +76 -0
  52. package/lang/translations/az.po +76 -0
  53. package/lang/translations/bg.po +76 -0
  54. package/lang/translations/bn.po +76 -0
  55. package/lang/translations/ca.po +76 -0
  56. package/lang/translations/cs.po +76 -0
  57. package/lang/translations/da.po +76 -0
  58. package/lang/translations/de.po +76 -0
  59. package/lang/translations/el.po +76 -0
  60. package/lang/translations/en-au.po +76 -0
  61. package/lang/translations/en.po +76 -0
  62. package/lang/translations/es.po +76 -0
  63. package/lang/translations/et.po +76 -0
  64. package/lang/translations/fi.po +76 -0
  65. package/lang/translations/fr.po +76 -0
  66. package/lang/translations/gl.po +76 -0
  67. package/lang/translations/he.po +76 -0
  68. package/lang/translations/hi.po +76 -0
  69. package/lang/translations/hr.po +76 -0
  70. package/lang/translations/hu.po +76 -0
  71. package/lang/translations/id.po +76 -0
  72. package/lang/translations/it.po +76 -0
  73. package/lang/translations/ja.po +76 -0
  74. package/lang/translations/ko.po +76 -0
  75. package/lang/translations/lt.po +76 -0
  76. package/lang/translations/lv.po +76 -0
  77. package/lang/translations/ms.po +76 -0
  78. package/lang/translations/nl.po +76 -0
  79. package/lang/translations/no.po +76 -0
  80. package/lang/translations/pl.po +76 -0
  81. package/lang/translations/pt-br.po +94 -18
  82. package/lang/translations/pt.po +76 -0
  83. package/lang/translations/ro.po +76 -0
  84. package/lang/translations/ru.po +76 -0
  85. package/lang/translations/sk.po +76 -0
  86. package/lang/translations/sq.po +76 -0
  87. package/lang/translations/sr-latn.po +76 -0
  88. package/lang/translations/sr.po +76 -0
  89. package/lang/translations/sv.po +76 -0
  90. package/lang/translations/th.po +76 -0
  91. package/lang/translations/tk.po +76 -0
  92. package/lang/translations/tr.po +76 -0
  93. package/lang/translations/tt.po +76 -0
  94. package/lang/translations/uk.po +76 -0
  95. package/lang/translations/ur.po +76 -0
  96. package/lang/translations/vi.po +76 -0
  97. package/lang/translations/zh-cn.po +76 -0
  98. package/lang/translations/zh.po +76 -0
  99. package/package.json +3 -3
  100. package/src/augmentation.d.ts +40 -40
  101. package/src/commands/acceptsuggestioncommand.d.ts +24 -24
  102. package/src/commands/acceptsuggestioncommand.js +1 -1
  103. package/src/commands/discardsuggestioncommand.d.ts +24 -24
  104. package/src/commands/discardsuggestioncommand.js +1 -1
  105. package/src/commands/executeonallsuggestionscommand.d.ts +24 -24
  106. package/src/commands/executeonallsuggestionscommand.js +1 -1
  107. package/src/commands/executeonselectedsuggestionscommand.d.ts +24 -24
  108. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  109. package/src/commands/trackchangescommand.d.ts +26 -26
  110. package/src/commands/trackchangescommand.js +1 -1
  111. package/src/index.d.ts +16 -16
  112. package/src/integrations/aiassistant.d.ts +17 -17
  113. package/src/integrations/aiassistant.js +1 -1
  114. package/src/integrations/alignment.d.ts +17 -17
  115. package/src/integrations/alignment.js +1 -1
  116. package/src/integrations/basicstyles.d.ts +17 -17
  117. package/src/integrations/basicstyles.js +1 -1
  118. package/src/integrations/blockquote.d.ts +17 -17
  119. package/src/integrations/blockquote.js +1 -1
  120. package/src/integrations/ckbox.d.ts +17 -17
  121. package/src/integrations/ckbox.js +1 -1
  122. package/src/integrations/codeblock.d.ts +17 -17
  123. package/src/integrations/codeblock.js +1 -1
  124. package/src/integrations/comments.d.ts +14 -14
  125. package/src/integrations/comments.js +1 -1
  126. package/src/integrations/deletecommand.d.ts +17 -17
  127. package/src/integrations/deletecommand.js +1 -1
  128. package/src/integrations/documentlist.d.ts +17 -17
  129. package/src/integrations/documentlist.js +1 -1
  130. package/src/integrations/documentlistproperties.d.ts +29 -29
  131. package/src/integrations/documentlistproperties.js +1 -1
  132. package/src/integrations/entercommand.d.ts +16 -16
  133. package/src/integrations/entercommand.js +1 -1
  134. package/src/integrations/findandreplace.d.ts +21 -21
  135. package/src/integrations/findandreplace.js +1 -1
  136. package/src/integrations/font.d.ts +17 -17
  137. package/src/integrations/font.js +1 -1
  138. package/src/integrations/formatpainter.d.ts +17 -17
  139. package/src/integrations/formatpainter.js +1 -1
  140. package/src/integrations/heading.d.ts +17 -17
  141. package/src/integrations/heading.js +1 -1
  142. package/src/integrations/highlight.d.ts +17 -17
  143. package/src/integrations/highlight.js +1 -1
  144. package/src/integrations/horizontalline.d.ts +17 -17
  145. package/src/integrations/horizontalline.js +1 -1
  146. package/src/integrations/htmlembed.d.ts +17 -17
  147. package/src/integrations/htmlembed.js +1 -1
  148. package/src/integrations/image.d.ts +17 -17
  149. package/src/integrations/image.js +1 -1
  150. package/src/integrations/imagereplace.d.ts +17 -23
  151. package/src/integrations/imagereplace.js +1 -1
  152. package/src/integrations/imagestyle.d.ts +17 -0
  153. package/src/integrations/imagestyle.js +23 -0
  154. package/src/integrations/importword.d.ts +18 -18
  155. package/src/integrations/importword.js +1 -1
  156. package/src/integrations/indent.d.ts +17 -17
  157. package/src/integrations/indent.js +1 -1
  158. package/src/integrations/inputcommand.d.ts +16 -16
  159. package/src/integrations/inputcommand.js +1 -1
  160. package/src/integrations/link.d.ts +17 -17
  161. package/src/integrations/link.js +1 -1
  162. package/src/integrations/list.d.ts +17 -17
  163. package/src/integrations/list.js +1 -1
  164. package/src/integrations/listproperties.d.ts +29 -29
  165. package/src/integrations/listproperties.js +1 -1
  166. package/src/integrations/mediaembed.d.ts +17 -17
  167. package/src/integrations/mediaembed.js +1 -1
  168. package/src/integrations/mention.d.ts +17 -17
  169. package/src/integrations/mention.js +1 -1
  170. package/src/integrations/pagebreak.d.ts +17 -17
  171. package/src/integrations/pagebreak.js +1 -1
  172. package/src/integrations/paragraph.d.ts +17 -17
  173. package/src/integrations/paragraph.js +1 -1
  174. package/src/integrations/removeformat.d.ts +17 -17
  175. package/src/integrations/removeformat.js +1 -1
  176. package/src/integrations/restrictededitingmode.d.ts +17 -17
  177. package/src/integrations/restrictededitingmode.js +1 -1
  178. package/src/integrations/shiftentercommand.d.ts +16 -16
  179. package/src/integrations/shiftentercommand.js +1 -1
  180. package/src/integrations/standardeditingmode.d.ts +17 -17
  181. package/src/integrations/standardeditingmode.js +1 -1
  182. package/src/integrations/style.d.ts +17 -18
  183. package/src/integrations/style.js +1 -1
  184. package/src/integrations/table.d.ts +42 -42
  185. package/src/integrations/table.js +1 -1
  186. package/src/integrations/tablecaption.d.ts +22 -22
  187. package/src/integrations/tablecaption.js +1 -1
  188. package/src/integrations/tableclipboard.d.ts +19 -19
  189. package/src/integrations/tableclipboard.js +1 -1
  190. package/src/integrations/tablecolumnresize.d.ts +26 -26
  191. package/src/integrations/tablecolumnresize.js +1 -1
  192. package/src/integrations/tableheadings.d.ts +22 -22
  193. package/src/integrations/tableheadings.js +1 -1
  194. package/src/integrations/tablemergesplit.d.ts +22 -22
  195. package/src/integrations/tablemergesplit.js +1 -1
  196. package/src/integrations/tableofcontents.d.ts +17 -17
  197. package/src/integrations/tableofcontents.js +1 -1
  198. package/src/integrations/tableproperties.d.ts +27 -27
  199. package/src/integrations/tableproperties.js +1 -1
  200. package/src/integrations/template.d.ts +17 -17
  201. package/src/integrations/template.js +1 -1
  202. package/src/integrations/title.d.ts +17 -17
  203. package/src/integrations/title.js +1 -1
  204. package/src/integrations/undo.d.ts +17 -17
  205. package/src/integrations/undo.js +1 -1
  206. package/src/integrations/utils.d.ts +21 -21
  207. package/src/integrations/utils.js +1 -1
  208. package/src/suggestion.d.ts +291 -276
  209. package/src/suggestion.js +1 -1
  210. package/src/suggestiondescriptionfactory.d.ts +183 -163
  211. package/src/suggestiondescriptionfactory.js +1 -1
  212. package/src/trackchanges.d.ts +180 -244
  213. package/src/trackchanges.js +1 -1
  214. package/src/trackchangesconfig.d.ts +78 -75
  215. package/src/trackchangesdata.d.ts +41 -41
  216. package/src/trackchangesdata.js +1 -1
  217. package/src/trackchangesediting.d.ts +524 -468
  218. package/src/trackchangesediting.js +1 -1
  219. package/src/trackchangesui.d.ts +38 -38
  220. package/src/trackchangesui.js +1 -1
  221. package/src/ui/suggestioncontroller.d.ts +37 -37
  222. package/src/ui/suggestioncontroller.js +1 -1
  223. package/src/ui/view/basesuggestionthreadview.d.ts +170 -170
  224. package/src/ui/view/basesuggestionthreadview.js +1 -1
  225. package/src/ui/view/suggestionthreadview.d.ts +182 -182
  226. package/src/ui/view/suggestionthreadview.js +1 -1
  227. package/src/utils/common-translations.d.ts +9 -9
  228. package/src/utils/common-translations.js +1 -1
  229. package/src/utils/utils.d.ts +30 -30
  230. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1932=['outdentBlock','document','locale','getSelectedBlocks','commandName','registerDescriptionCallback','editor','from','filter','plugins','afterInit','enableCommand','TrackChangesEditing','model','getItems','selection','indent','_descriptionFactory','format','IndentEditing','indentBlock','*Indent:*\x20%0','outdent','checkAttribute','has','*Outdent:*\x20%0','schema'];(function(_0x1b9c4f,_0x193242){const _0x4dab6f=function(_0x2d4950){while(--_0x2d4950){_0x1b9c4f['push'](_0x1b9c4f['shift']());}};_0x4dab6f(++_0x193242);}(_0x1932,0xd8));const _0x4dab=function(_0x1b9c4f,_0x193242){_0x1b9c4f=_0x1b9c4f-0x0;let _0x4dab6f=_0x1932[_0x1b9c4f];return _0x4dab6f;};import{Plugin as _0x2da79a}from'ckeditor5/src/core';import{getTranslation as _0x2f1e88}from'../utils/common-translations';export default class it extends _0x2da79a{[_0x4dab('0xa')](){const _0x1eb6dc=this[_0x4dab('0x6')],_0x12ee84=_0x1eb6dc[_0x4dab('0x9')]['get'](_0x4dab('0xc'));_0x1eb6dc[_0x4dab('0x9')][_0x4dab('0x18')](_0x4dab('0x13'))&&(_0x12ee84[_0x4dab('0xb')](_0x4dab('0x10')),_0x12ee84[_0x4dab('0xb')](_0x4dab('0x16')));const _0x16c392=_0x1eb6dc[_0x4dab('0x2')];if(_0x1eb6dc[_0x4dab('0x9')]['has']('IndentBlock')){for(const _0xcee4ec of[_0x4dab('0x14'),'outdentBlock'])_0x12ee84['enableCommand'](_0xcee4ec,()=>{const _0x2ab763=Array[_0x4dab('0x7')](this['editor'][_0x4dab('0xd')][_0x4dab('0x1')][_0x4dab('0xf')][_0x4dab('0x3')]())[_0x4dab('0x8')](_0x1a8d95=>this[_0x4dab('0x6')][_0x4dab('0xd')][_0x4dab('0x1a')][_0x4dab('0x17')](_0x1a8d95,'blockIndent'));_0x1eb6dc[_0x4dab('0xd')]['change'](()=>{for(const _0x28f15b of _0x2ab763)_0x12ee84['markBlockFormat'](_0x28f15b,{'commandName':_0xcee4ec,'commandParams':[{'value':''}],'formatGroupId':_0x4dab('0x14')});});});_0x12ee84['_descriptionFactory'][_0x4dab('0x5')](_0x277eec=>{const {data:_0x533f22}=_0x277eec;if(!_0x533f22)return;if(_0x4dab('0x14')!=_0x533f22[_0x4dab('0x4')]&&_0x4dab('0x0')!=_0x533f22[_0x4dab('0x4')])return;const _0x36ce4b=_0x277eec[_0x4dab('0xe')]()[0x0],_0x324cd9=_0x12ee84[_0x4dab('0x11')]['getItemLabel'](_0x36ce4b);return'indentBlock'==_0x533f22[_0x4dab('0x4')]?{'type':'format','content':_0x2f1e88(_0x16c392,_0x4dab('0x15'),_0x324cd9)}:_0x4dab('0x0')==_0x533f22[_0x4dab('0x4')]?{'type':_0x4dab('0x12'),'content':_0x2f1e88(_0x16c392,_0x4dab('0x19'),_0x324cd9)}:void 0x0;});}}}
23
+ const _0x24ec=['enableCommand','has','formatBlock','*Indent:*\x20%0','type','*Outdent:*\x20%0','indentBlock','outdent','plugins','outdentBlock','getItems','editor','getItemLabel','FORMAT_INDENT','IndentBlock','IndentEditing','_enableDefaultAttributesIntegration','blockIndent','_registerLegacyDescription','registerAttributeLabel','commandName','get','_descriptionFactory','afterInit','format','TrackChangesEditing','indent','locale'];(function(_0x2b0566,_0x24ece){const _0x2b6053=function(_0x3fe03c){while(--_0x3fe03c){_0x2b0566['push'](_0x2b0566['shift']());}};_0x2b6053(++_0x24ece);}(_0x24ec,0x118));const _0x2b60=function(_0x2b0566,_0x24ece){_0x2b0566=_0x2b0566-0x0;let _0x2b6053=_0x24ec[_0x2b0566];return _0x2b6053;};import{Plugin as _0x590f60}from'ckeditor5/src/core';import{getTranslation as _0x7fdeb}from'../utils/common-translations';export default class ot extends _0x590f60{[_0x2b60('0x17')](){const _0x34e032=this[_0x2b60('0xb')],_0x205ccb=_0x34e032[_0x2b60('0x8')]['get'](_0x2b60('0x19'));if(_0x34e032[_0x2b60('0x8')][_0x2b60('0x1')](_0x2b60('0xf'))&&(_0x205ccb['enableCommand'](_0x2b60('0x1a')),_0x205ccb[_0x2b60('0x0')](_0x2b60('0x7'))),_0x34e032['plugins']['has'](_0x2b60('0xe')))for(const _0x26e81a of[_0x2b60('0x6'),_0x2b60('0x9')])_0x205ccb[_0x2b60('0x10')](_0x26e81a);const _0x538a98=_0x34e032[_0x2b60('0x1b')];_0x205ccb['_registerBlockAttribute'](_0x2b60('0x11')),_0x205ccb['_descriptionFactory'][_0x2b60('0x13')](_0x2b60('0x11'),_0x7fdeb(_0x538a98,_0x2b60('0xd'))),this[_0x2b60('0x12')]();}['_registerLegacyDescription'](){const _0x1aee43=this[_0x2b60('0xb')],_0x29df9c=_0x1aee43[_0x2b60('0x1b')],_0x1b71c0=_0x1aee43[_0x2b60('0x8')][_0x2b60('0x15')](_0x2b60('0x19'));_0x1b71c0[_0x2b60('0x16')]['registerDescriptionCallback'](_0x333ad4=>{if(_0x2b60('0x2')!=_0x333ad4[_0x2b60('0x4')])return;const {data:_0x293c66}=_0x333ad4;if(!_0x293c66)return;if('indentBlock'!=_0x293c66['commandName']&&_0x2b60('0x9')!=_0x293c66[_0x2b60('0x14')])return;const _0x5511c2=_0x333ad4[_0x2b60('0xa')]()[0x0],_0x43345c=_0x1b71c0['_descriptionFactory'][_0x2b60('0xc')](_0x5511c2);return _0x2b60('0x6')==_0x293c66[_0x2b60('0x14')]?{'type':_0x2b60('0x18'),'content':_0x7fdeb(_0x29df9c,_0x2b60('0x3'),_0x43345c)}:_0x2b60('0x9')==_0x293c66[_0x2b60('0x14')]?{'type':'format','content':_0x7fdeb(_0x29df9c,_0x2b60('0x5'),_0x43345c)}:void 0x0;});}}
@@ -1,16 +1,16 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module track-changes/integrations/inputcommand/inputcommand
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { Input } from 'ckeditor5/src/typing';
10
- /**
11
- * Provides track changes plugin integration for {@link module:typing/inputcommand~InputCommand input command}.
12
- */
13
- export default class TrackChangesInputCommand extends Plugin {
14
- static get requires(): readonly [typeof Input];
15
- init(): void;
16
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module track-changes/integrations/inputcommand/inputcommand
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import { Input } from 'ckeditor5/src/typing';
10
+ /**
11
+ * Provides track changes plugin integration for {@link module:typing/inputcommand~InputCommand input command}.
12
+ */
13
+ export default class TrackChangesInputCommand extends Plugin {
14
+ static get requires(): readonly [typeof Input];
15
+ init(): void;
16
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0xa69b=['enableCommand','TrackChangesEditing','requires','input','init'];(function(_0x1adced,_0xa69b5c){var _0x46dff1=function(_0x229e90){while(--_0x229e90){_0x1adced['push'](_0x1adced['shift']());}};_0x46dff1(++_0xa69b5c);}(_0xa69b,0xd4));var _0x46df=function(_0x1adced,_0xa69b5c){_0x1adced=_0x1adced-0x0;var _0x46dff1=_0xa69b[_0x1adced];return _0x46dff1;};import{Plugin as _0x27c291}from'ckeditor5/src/core';import{Input as _0x1addf4}from'ckeditor5/src/typing';export default class et extends _0x27c291{static get[_0x46df('0x0')](){return[_0x1addf4];}[_0x46df('0x2')](){this['editor']['plugins']['get'](_0x46df('0x4'))[_0x46df('0x3')](_0x46df('0x1'));}}
23
+ var _0x33e7=['plugins','TrackChangesEditing','requires','editor','input'];(function(_0x19c603,_0x33e76d){var _0x2df956=function(_0x1c7383){while(--_0x1c7383){_0x19c603['push'](_0x19c603['shift']());}};_0x2df956(++_0x33e76d);}(_0x33e7,0xd0));var _0x2df9=function(_0x19c603,_0x33e76d){_0x19c603=_0x19c603-0x0;var _0x2df956=_0x33e7[_0x19c603];return _0x2df956;};import{Plugin as _0x450672}from'ckeditor5/src/core';import{Input as _0x425f13}from'ckeditor5/src/typing';export default class rt extends _0x450672{static get[_0x2df9('0x4')](){return[_0x425f13];}['init'](){this[_0x2df9('0x0')][_0x2df9('0x2')]['get'](_0x2df9('0x3'))['enableCommand'](_0x2df9('0x1'));}}
@@ -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/link
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- /**
10
- * Provides track changes plugin integration for link feature.
11
- */
12
- export default class TrackChangesLink 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/link
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ /**
10
+ * Provides track changes plugin integration for link feature.
11
+ */
12
+ export default class TrackChangesLink extends Plugin {
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ afterInit(): void;
17
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1a1e=['isCollapsed','registerDescriptionCallback','selection','has','format','enableCommand','_descriptionFactory','document','change','link','*Remove\x20link*','getFirstRange','hasAttribute','unlink','linkHref','get','markInlineFormat','getFirstPosition','commandParams','model','TrackChangesEditing','LinkEditing','plugins','editor','commandName'];(function(_0x5e8429,_0x1a1e11){const _0x6a53ba=function(_0x47fdd8){while(--_0x47fdd8){_0x5e8429['push'](_0x5e8429['shift']());}};_0x6a53ba(++_0x1a1e11);}(_0x1a1e,0x1f1));const _0x6a53=function(_0x5e8429,_0x1a1e11){_0x5e8429=_0x5e8429-0x0;let _0x6a53ba=_0x1a1e[_0x5e8429];return _0x6a53ba;};import{Plugin as _0x5e5fe5}from'ckeditor5/src/core';import{findAttributeRange as _0x48920b}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x31378d}from'./utils';import{getTranslation as _0x4bcaff}from'../utils/common-translations';export default class nt extends _0x5e5fe5{['afterInit'](){const _0x47d753=this[_0x6a53('0x1')];if(!_0x47d753['plugins'][_0x6a53('0x6')](_0x6a53('0x18')))return;const _0x2f25b7=_0x47d753[_0x6a53('0x0')][_0x6a53('0x12')](_0x6a53('0x17'));_0x2f25b7[_0x6a53('0x8')](_0x6a53('0xc'),(_0x1cfee6,_0x214116)=>{const _0x1f1fbf=_0x47d753[_0x6a53('0x16')][_0x6a53('0xa')][_0x6a53('0x5')];let _0x156b27=[];if(_0x1f1fbf[_0x6a53('0x3')]){if(!_0x1f1fbf[_0x6a53('0xf')](_0x6a53('0x11')))return void _0x1cfee6(_0x214116);{const _0x425d65=_0x48920b(_0x1f1fbf[_0x6a53('0x14')](),_0x6a53('0x11'),_0x1f1fbf['getAttribute'](_0x6a53('0x11')),_0x47d753[_0x6a53('0x16')]);_0x156b27=[_0x425d65];}}else _0x156b27=Array['from'](_0x1f1fbf['getRanges']());_0x47d753[_0x6a53('0x16')][_0x6a53('0xb')](()=>{for(const _0x19782a of _0x156b27)_0x2f25b7[_0x6a53('0x13')](_0x19782a,{'commandName':'link','commandParams':[_0x214116]});});}),_0x2f25b7[_0x6a53('0x8')](_0x6a53('0x10'),()=>{const _0x241b46=this['editor'][_0x6a53('0x16')],_0x501559=_0x241b46[_0x6a53('0xa')]['selection'];_0x241b46['change'](()=>{let _0x428de8=[];if(_0x501559['isCollapsed'])_0x428de8=[_0x48920b(_0x501559[_0x6a53('0x14')](),_0x6a53('0x11'),_0x501559['getAttribute']('linkHref'),_0x47d753[_0x6a53('0x16')])];else _0x428de8=_0x31378d(_0x6a53('0x11'),_0x501559[_0x6a53('0xe')](),_0x47d753[_0x6a53('0x16')]);for(const _0x15664e of _0x428de8)_0x2f25b7['markInlineFormat'](_0x15664e,{'commandName':_0x6a53('0x10'),'commandParams':[]});});}),_0x2f25b7[_0x6a53('0x9')][_0x6a53('0x4')](_0x24bbe0=>{const {data:_0x4acef2}=_0x24bbe0,_0x4bbb1e=_0x47d753['locale'];if(_0x4acef2){if(_0x6a53('0xc')==_0x4acef2[_0x6a53('0x2')]){const _0x41850c=_0x4acef2[_0x6a53('0x15')][0x0];return{'type':'format','content':_0x4bcaff(_0x4bbb1e,'*Set\x20link:*\x20%0','\x22'+_0x41850c+'\x22')};}return _0x6a53('0x10')==_0x4acef2[_0x6a53('0x2')]?{'type':_0x6a53('0x7'),'content':_0x4bcaff(_0x4bbb1e,_0x6a53('0xd'))}:void 0x0;}});}}
23
+ const _0x4ef1=['unlink','label','locale','_descriptionFactory','map','LinkEditing','link','registerDescriptionCallback','_registerLegacyDescription','commandParams','_enableDefaultAttributesIntegration','*Set\x20link:*\x20%0','editor','get','format','type','has','commandName','linkHref','toLowerCase','afterInit','TrackChangesEditing','formatInline','manualDecorators','*Remove\x20link*'];(function(_0x5062be,_0x4ef1c2){const _0x259506=function(_0x4aac84){while(--_0x4aac84){_0x5062be['push'](_0x5062be['shift']());}};_0x259506(++_0x4ef1c2);}(_0x4ef1,0x1b5));const _0x2595=function(_0x5062be,_0x4ef1c2){_0x5062be=_0x5062be-0x0;let _0x259506=_0x4ef1[_0x5062be];return _0x259506;};import{Plugin as _0x1fd3ed}from'ckeditor5/src/core';import{getTranslation as _0xba9d34}from'../utils/common-translations';export default class at extends _0x1fd3ed{[_0x2595('0x8')](){const _0x5aa657=this[_0x2595('0x0')];if(!_0x5aa657['plugins'][_0x2595('0x4')](_0x2595('0x12')))return;const _0x4f52a6=_0x5aa657['plugins']['get'](_0x2595('0x9')),_0x421269=_0x5aa657['commands'][_0x2595('0x1')](_0x2595('0x13'));_0x4f52a6[_0x2595('0x17')](_0x2595('0x13'),[_0x2595('0x6'),..._0x421269['manualDecorators'][_0x2595('0x11')](_0x179a24=>_0x179a24['id'])]),_0x4f52a6[_0x2595('0x17')](_0x2595('0xd'));for(const _0x56ac2f of _0x421269[_0x2595('0xb')])_0x4f52a6[_0x2595('0x10')]['registerAttributeLabel'](_0x56ac2f['id'],'link\x20('+_0x56ac2f[_0x2595('0xe')][_0x2595('0x7')]()+')');_0x4f52a6[_0x2595('0x10')]['registerDescriptionCallback'](_0x3f17b6=>{if('attribute'!=_0x3f17b6[_0x2595('0x3')])return;const {data:_0x3a4172}=_0x3f17b6;if(!_0x3a4172||'linkHref'!=_0x3a4172['key'])return;const _0x54c7c2=_0x3a4172['newValue'],_0x5bdc09=_0x5aa657[_0x2595('0xf')];return{'type':_0x2595('0x2'),'content':_0x54c7c2?_0xba9d34(_0x5bdc09,'*Set\x20link:*\x20%0','\x22'+_0x54c7c2+'\x22'):_0xba9d34(_0x5bdc09,'*Remove\x20link*')};}),this[_0x2595('0x15')]();}[_0x2595('0x15')](){const _0x4705cf=this[_0x2595('0x0')],_0x42f2a9=_0x4705cf['locale'];_0x4705cf['plugins'][_0x2595('0x1')](_0x2595('0x9'))[_0x2595('0x10')][_0x2595('0x14')](_0x162c55=>{if(_0x2595('0xa')!=_0x162c55['type'])return;const {data:_0x148ec4}=_0x162c55;if(_0x148ec4){if(_0x2595('0x13')==_0x148ec4['commandName']){const _0x28eb06=_0x148ec4[_0x2595('0x16')][0x0];return{'type':_0x2595('0x2'),'content':_0xba9d34(_0x42f2a9,_0x2595('0x18'),'\x22'+_0x28eb06+'\x22')};}return _0x2595('0xd')==_0x148ec4[_0x2595('0x5')]?{'type':_0x2595('0x2'),'content':_0xba9d34(_0x42f2a9,_0x2595('0xc'))}:void 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/list
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- /**
10
- * Provides track changes plugin integration for list feature.
11
- */
12
- export default class TrackChangesList 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/list
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ /**
10
+ * Provides track changes plugin integration for list feature.
11
+ */
12
+ export default class TrackChangesList extends Plugin {
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ afterInit(): void;
17
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x510b=['element','document','selection','format','ELEMENT_NUMBERED_LIST','has','commandName','todo','*Check\x20item*','registerDescriptionCallback','parent','nextSibling','*Uncheck\x20item*','slice','blockName','plugins','createRange','checkTodoList','registerElementLabel','commands','createPositionAt','get','todoList','length','listType','numbered','value','isObject','editor','execute','getSelectedBlocks','getAttribute','afterInit','List','schema','bulletedList','push','end','replace','_selectedElements','locale','paragraph','listItem','todoListChecked','*Change\x20to:*\x20%0','ELEMENT_LIST_ITEM','commandParams','_descriptionFactory','markBlockFormat','model','add','listIndent','ListEditing','before','enableCommand','previousSibling','from','outdentList','TodoListEditing','filter','change','name','indentList'];(function(_0x402542,_0x510b57){const _0x387953=function(_0x3f30c7){while(--_0x3f30c7){_0x402542['push'](_0x402542['shift']());}};_0x387953(++_0x510b57);}(_0x510b,0x171));const _0x3879=function(_0x402542,_0x510b57){_0x402542=_0x402542-0x0;let _0x387953=_0x510b[_0x402542];return _0x387953;};import{Plugin as _0x20c961}from'ckeditor5/src/core';import{getTranslation as _0x22cc15}from'../utils/common-translations';export default class st extends _0x20c961{[_0x3879('0x29')](){const _0x15afbe=this[_0x3879('0x25')],_0xfbecd4=_0x15afbe[_0x3879('0x31')];if(!_0x15afbe[_0x3879('0x18')][_0x3879('0xe')](_0x3879('0x3d')))return;const _0x55ebf9=_0x15afbe[_0x3879('0x18')][_0x3879('0x1e')]('TrackChangesEditing'),_0x18dd9c=_0x15afbe[_0x3879('0x18')]['has'](_0x3879('0x4'));function _0x3401db(_0x535d47){return()=>{const _0x18cd9f=_0x15afbe[_0x3879('0x3a')][_0x3879('0xa')][_0x3879('0xb')],_0x31f756=_0x15afbe[_0x3879('0x1c')][_0x3879('0x1e')](_0x535d47);if(_0x31f756[_0x3879('0x23')])return void _0x15afbe[_0x3879('0x26')](_0x3879('0x32'),{});const _0x4ff80d=_0x535d47[_0x3879('0x16')](0x0,-0x4),_0x2a2edf=function(_0x271ee6,_0x231b1e,_0x34eed3){let _0x598494=Array[_0x3879('0x2')](_0x271ee6)[_0x3879('0x5')](_0x3550b7=>function(_0x10b013,_0x108833){return _0x108833['checkChild'](_0x10b013[_0x3879('0x13')],_0x3879('0x33'))&&!_0x108833[_0x3879('0x24')](_0x10b013);}(_0x3550b7,_0x34eed3));_0x598494=_0x598494[_0x3879('0x5')](_0x29f602=>!_0x29f602['is']('element',_0x3879('0x33'))||_0x29f602[_0x3879('0x28')](_0x3879('0x21'))!=_0x231b1e);const _0x7f6074=new Set();for(const _0x3fdd57 of _0x598494)_0x3fdd57['is'](_0x3879('0x9'),_0x3879('0x33'))?_0x7f6074[_0x3879('0x3b')](ne(_0x3fdd57)):_0x7f6074[_0x3879('0x3b')](_0x3fdd57);return Array['from'](_0x7f6074);}(_0x18cd9f[_0x3879('0x27')](),_0x4ff80d,_0x15afbe[_0x3879('0x3a')][_0x3879('0x2b')]);_0x15afbe[_0x3879('0x3a')][_0x3879('0x6')](()=>{for(const _0x4cd9f8 of _0x2a2edf)_0x55ebf9['markBlockFormat'](_0x4cd9f8,{'commandName':_0x535d47,'commandParams':[{'forceValue':!_0x31f756[_0x3879('0x23')]}],'formatGroupId':_0x3879('0x17')},oe(_0x4cd9f8));});};}function _0x240ea3(_0x4ae6a2){return()=>{const _0x287367=function(_0x3693e7){let _0x111b2a=Array[_0x3879('0x2')](_0x3693e7);const _0x4a73c9=_0x111b2a['findIndex'](_0x525704=>_0x3879('0x33')!=_0x525704[_0x3879('0x7')]);return _0x4a73c9>-0x1&&(_0x111b2a=_0x111b2a['slice'](0x0,_0x4a73c9)),_0x111b2a;}(_0x15afbe['model'][_0x3879('0xa')]['selection'][_0x3879('0x27')]()),_0x27d400=_0x15afbe[_0x3879('0x3a')][_0x3879('0x19')](_0x15afbe[_0x3879('0x3a')][_0x3879('0x1d')](_0x287367[0x0],_0x3879('0x3e')),_0x15afbe[_0x3879('0x3a')][_0x3879('0x1d')](_0x287367[_0x287367[_0x3879('0x20')]-0x1],_0x3879('0x2e')));_0x15afbe[_0x3879('0x3a')][_0x3879('0x6')](()=>{_0x55ebf9[_0x3879('0x39')](_0x27d400,{'commandName':_0x4ae6a2,'commandParams':[],'formatGroupId':_0x3879('0x3c')},function(_0x4b4ffb){const _0xef6996=new Set();for(const _0x16b3bf of _0x4b4ffb){let _0x2c971e=_0x16b3bf['nextSibling'];for(;_0x2c971e&&_0x2c971e['getAttribute'](_0x3879('0x3c'))>_0x16b3bf['getAttribute']('listIndent');)_0xef6996[_0x3879('0x3b')](_0x2c971e),_0x2c971e=_0x2c971e['nextSibling'];}return Array[_0x3879('0x2')](_0xef6996);}(_0x287367));});};}_0x55ebf9[_0x3879('0x0')]('numberedList',_0x3401db('numberedList')),_0x55ebf9['enableCommand'](_0x3879('0x2c'),_0x3401db(_0x3879('0x2c'))),_0x18dd9c&&_0x55ebf9[_0x3879('0x0')](_0x3879('0x1f'),_0x3401db(_0x3879('0x1f'))),_0x55ebf9['enableCommand']('indentList',_0x240ea3(_0x3879('0x8'))),_0x55ebf9[_0x3879('0x0')](_0x3879('0x3'),_0x240ea3('outdentList')),_0x18dd9c&&_0x55ebf9[_0x3879('0x0')](_0x3879('0x1a'),()=>{const _0x26064d=_0x15afbe[_0x3879('0x1c')]['get'](_0x3879('0x1a')),_0xbe3c6d=Array['from'](_0x26064d[_0x3879('0x30')]);_0xbe3c6d[_0x3879('0x5')](_0xfd204a=>_0xfd204a[_0x3879('0x28')](_0x3879('0x34'))!=_0x26064d[_0x3879('0x23')]),_0x15afbe[_0x3879('0x3a')]['change'](()=>{for(const _0x19b6f6 of _0xbe3c6d)_0x55ebf9[_0x3879('0x39')](_0x19b6f6,{'commandName':_0x3879('0x1a'),'commandParams':[{'forceValue':!_0x26064d[_0x3879('0x23')]}]});});}),_0x55ebf9[_0x3879('0x38')][_0x3879('0x1b')](_0x3879('0x33'),_0x3b2199=>_0x22cc15(_0xfbecd4,_0x3879('0x36'),_0x3b2199)),_0x55ebf9[_0x3879('0x38')][_0x3879('0x12')](_0x3d8fcb=>{const {data:_0x3bd952}=_0x3d8fcb;if(_0x3bd952){if('numberedList'==_0x3bd952[_0x3879('0xf')]||'bulletedList'==_0x3bd952[_0x3879('0xf')]||_0x3879('0x1f')==_0x3bd952['commandName'])switch(_0x3bd952[_0x3879('0xf')][_0x3879('0x2f')](_0x3879('0x2a'),'')){case'bulleted':return _0x145960(_0x22cc15(_0xfbecd4,'ELEMENT_BULLETED_LIST'));case _0x3879('0x22'):return _0x145960(_0x22cc15(_0xfbecd4,_0x3879('0xd')));case _0x3879('0x10'):return _0x145960(_0x22cc15(_0xfbecd4,'ELEMENT_TODO_LIST'));}if(_0x3879('0x8')==_0x3bd952[_0x3879('0xf')])return{'type':_0x3879('0xc'),'content':_0x22cc15(_0xfbecd4,'*Indent:*\x20%0',_0x22cc15(_0xfbecd4,_0x3879('0x36')))};if(_0x3879('0x3')==_0x3bd952[_0x3879('0xf')])return{'type':'format','content':_0x22cc15(_0xfbecd4,'*Outdent:*\x20%0',_0x22cc15(_0xfbecd4,'ELEMENT_LIST_ITEM'))};if(_0x3879('0x1a')==_0x3bd952[_0x3879('0xf')])return _0x3bd952[_0x3879('0x37')][0x0]['forceValue']?{'type':_0x3879('0xc'),'content':_0x22cc15(_0xfbecd4,_0x3879('0x11'))}:{'type':_0x3879('0xc'),'content':_0x22cc15(_0xfbecd4,_0x3879('0x15'))};}function _0x145960(_0x47efed){return{'type':_0x3879('0xc'),'content':_0x22cc15(_0xfbecd4,_0x3879('0x35'),_0x47efed)};}});}}function ne(_0x37c1ff){const _0x1016fb=_0x37c1ff[_0x3879('0x28')]('listIndent');if(0x0==_0x1016fb)return _0x37c1ff;let _0x20f8b6=_0x37c1ff;for(;_0x37c1ff[_0x3879('0x1')]&&_0x37c1ff[_0x3879('0x1')]['is'](_0x3879('0x9'),_0x3879('0x33'));){const _0x3b9e32=_0x37c1ff[_0x3879('0x1')][_0x3879('0x28')](_0x3879('0x3c'));if(_0x3b9e32==_0x1016fb)_0x20f8b6=_0x37c1ff[_0x3879('0x1')];else{if(_0x3b9e32<_0x1016fb)break;}_0x37c1ff=_0x37c1ff[_0x3879('0x1')];}return _0x20f8b6;}function oe(_0x45ad78){const _0x2f24a7=[];if(_0x45ad78['is']('element',_0x3879('0x33'))&&_0x45ad78[_0x3879('0x28')]('listIndent')>0x0){let _0x3a089b=_0x45ad78['nextSibling'];for(;_0x3a089b&&'listItem'==_0x3a089b[_0x3879('0x7')]&&_0x3a089b[_0x3879('0x28')](_0x3879('0x3c'))==_0x45ad78['getAttribute'](_0x3879('0x3c'));)_0x2f24a7[_0x3879('0x2d')](_0x3a089b),_0x3a089b=_0x3a089b[_0x3879('0x14')];}return _0x2f24a7;}
23
+ const _0x1548=['ELEMENT_LIST_ITEM','selection','element','slice','commands','blockName','end','*Indent:*\x20%0','locale','length','value','ELEMENT_TODO_LIST','commandName','listIndent','editor','model','format','*Check\x20item*','isObject','paragraph','createRange','commandParams','filter','document','name','_selectedElements','List','ListEditing','afterInit','getAttribute','execute','TodoListEditing','previousSibling','checkTodoList','schema','has','*Outdent:*\x20%0','parent','type','todoList','_descriptionFactory','registerElementLabel','from','plugins','markBlockFormat','*Uncheck\x20item*','forceValue','indentList','ELEMENT_NUMBERED_LIST','numberedList','checkChild','add','change','nextSibling','listItem','enableCommand','getSelectedBlocks','outdentList','findIndex','formatInline','bulleted','bulletedList'];(function(_0x18798a,_0x154877){const _0x1d2f06=function(_0x14ef5a){while(--_0x14ef5a){_0x18798a['push'](_0x18798a['shift']());}};_0x1d2f06(++_0x154877);}(_0x1548,0xca));const _0x1d2f=function(_0x18798a,_0x154877){_0x18798a=_0x18798a-0x0;let _0x1d2f06=_0x1548[_0x18798a];return _0x1d2f06;};import{Plugin as _0x12c7b2}from'ckeditor5/src/core';import{getTranslation as _0x587104}from'../utils/common-translations';export default class ct extends _0x12c7b2{[_0x1d2f('0xc')](){const _0x326575=this[_0x1d2f('0x3c')],_0x1e8770=_0x326575[_0x1d2f('0x36')];if(!_0x326575['plugins'][_0x1d2f('0x13')](_0x1d2f('0xb')))return;const _0x39285a=_0x326575[_0x1d2f('0x1b')]['get']('TrackChangesEditing'),_0xc5a327=_0x326575[_0x1d2f('0x1b')]['has'](_0x1d2f('0xf'));function _0x378b47(_0x5d7a0c){return()=>{const _0x5ca021=_0x326575[_0x1d2f('0x3d')]['document'][_0x1d2f('0x2f')],_0x1b64a7=_0x326575[_0x1d2f('0x32')]['get'](_0x5d7a0c);if(_0x1b64a7['value'])return void _0x326575[_0x1d2f('0xe')](_0x1d2f('0x3'),{});const _0x545f33=_0x5d7a0c['slice'](0x0,-0x4),_0x417a7c=function(_0x3f859b,_0x3b3176,_0x49e422){let _0x44d70b=Array['from'](_0x3f859b)['filter'](_0x567ae1=>function(_0x91c5c9,_0x28fa18){return _0x28fa18[_0x1d2f('0x22')](_0x91c5c9[_0x1d2f('0x15')],_0x1d2f('0x26'))&&!_0x28fa18[_0x1d2f('0x2')](_0x91c5c9);}(_0x567ae1,_0x49e422));_0x44d70b=_0x44d70b['filter'](_0x512316=>!_0x512316['is'](_0x1d2f('0x30'),'listItem')||_0x512316[_0x1d2f('0xd')]('listType')!=_0x3b3176);const _0x96bd0f=new Set();for(const _0x2ff317 of _0x44d70b)_0x2ff317['is'](_0x1d2f('0x30'),'listItem')?_0x96bd0f['add'](ne(_0x2ff317)):_0x96bd0f[_0x1d2f('0x23')](_0x2ff317);return Array[_0x1d2f('0x1a')](_0x96bd0f);}(_0x5ca021[_0x1d2f('0x28')](),_0x545f33,_0x326575[_0x1d2f('0x3d')][_0x1d2f('0x12')]);_0x326575[_0x1d2f('0x3d')]['change'](()=>{for(const _0x3e0a8e of _0x417a7c)_0x39285a['markBlockFormat'](_0x3e0a8e,{'commandName':_0x5d7a0c,'commandParams':[{'forceValue':!_0x1b64a7[_0x1d2f('0x38')]}],'formatGroupId':_0x1d2f('0x33')},oe(_0x3e0a8e));});};}function _0x446aa3(_0x1b5508){return()=>{const _0x39b774=function(_0x24562c){let _0x4b3fab=Array['from'](_0x24562c);const _0x546a5f=_0x4b3fab[_0x1d2f('0x2a')](_0x50e428=>_0x1d2f('0x26')!=_0x50e428[_0x1d2f('0x8')]);return _0x546a5f>-0x1&&(_0x4b3fab=_0x4b3fab[_0x1d2f('0x31')](0x0,_0x546a5f)),_0x4b3fab;}(_0x326575['model'][_0x1d2f('0x7')][_0x1d2f('0x2f')][_0x1d2f('0x28')]()),_0x352c35=_0x326575['model'][_0x1d2f('0x4')](_0x326575['model']['createPositionAt'](_0x39b774[0x0],'before'),_0x326575[_0x1d2f('0x3d')]['createPositionAt'](_0x39b774[_0x39b774[_0x1d2f('0x37')]-0x1],_0x1d2f('0x34')));_0x326575[_0x1d2f('0x3d')]['change'](()=>{_0x39285a[_0x1d2f('0x1c')](_0x352c35,{'commandName':_0x1b5508,'commandParams':[],'formatGroupId':_0x1d2f('0x3b')},function(_0x4a3540){const _0x802279=new Set();for(const _0x8632ba of _0x4a3540){let _0x3d338d=_0x8632ba['nextSibling'];for(;_0x3d338d&&_0x3d338d[_0x1d2f('0xd')](_0x1d2f('0x3b'))>_0x8632ba[_0x1d2f('0xd')](_0x1d2f('0x3b'));)_0x802279[_0x1d2f('0x23')](_0x3d338d),_0x3d338d=_0x3d338d['nextSibling'];}return Array[_0x1d2f('0x1a')](_0x802279);}(_0x39b774));});};}_0x39285a['enableCommand'](_0x1d2f('0x21'),_0x378b47(_0x1d2f('0x21'))),_0x39285a[_0x1d2f('0x27')]('bulletedList',_0x378b47(_0x1d2f('0x2d'))),_0xc5a327&&_0x39285a['enableCommand'](_0x1d2f('0x17'),_0x378b47(_0x1d2f('0x17'))),_0x39285a['enableCommand'](_0x1d2f('0x1f'),_0x446aa3(_0x1d2f('0x1f'))),_0x39285a['enableCommand'](_0x1d2f('0x29'),_0x446aa3(_0x1d2f('0x29'))),_0xc5a327&&_0x39285a[_0x1d2f('0x27')](_0x1d2f('0x11'),()=>{const _0x312cf2=_0x326575[_0x1d2f('0x32')]['get'](_0x1d2f('0x11')),_0x47c26f=Array[_0x1d2f('0x1a')](_0x312cf2[_0x1d2f('0x9')]);_0x47c26f[_0x1d2f('0x6')](_0x17e943=>_0x17e943[_0x1d2f('0xd')]('todoListChecked')!=_0x312cf2[_0x1d2f('0x38')]),_0x326575[_0x1d2f('0x3d')][_0x1d2f('0x24')](()=>{for(const _0x490bed of _0x47c26f)_0x39285a[_0x1d2f('0x1c')](_0x490bed,{'commandName':_0x1d2f('0x11'),'commandParams':[{'forceValue':!_0x312cf2[_0x1d2f('0x38')]}]});});}),_0x39285a[_0x1d2f('0x18')][_0x1d2f('0x19')](_0x1d2f('0x26'),_0x10bb1d=>_0x587104(_0x1e8770,'ELEMENT_LIST_ITEM',_0x10bb1d)),_0x39285a['_descriptionFactory']['registerDescriptionCallback'](_0x10fd95=>{if('formatBlock'!=_0x10fd95[_0x1d2f('0x16')]&&_0x1d2f('0x2b')!=_0x10fd95['type'])return;const {data:_0x31a916}=_0x10fd95;if(_0x31a916){if(_0x1d2f('0x21')==_0x31a916[_0x1d2f('0x3a')]||_0x1d2f('0x2d')==_0x31a916[_0x1d2f('0x3a')]||'todoList'==_0x31a916['commandName'])switch(_0x31a916['commandName']['replace'](_0x1d2f('0xa'),'')){case _0x1d2f('0x2c'):return _0x4381cf(_0x587104(_0x1e8770,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4381cf(_0x587104(_0x1e8770,_0x1d2f('0x20')));case'todo':return _0x4381cf(_0x587104(_0x1e8770,_0x1d2f('0x39')));}if(_0x1d2f('0x1f')==_0x31a916[_0x1d2f('0x3a')])return{'type':_0x1d2f('0x0'),'content':_0x587104(_0x1e8770,_0x1d2f('0x35'),_0x587104(_0x1e8770,_0x1d2f('0x2e')))};if(_0x1d2f('0x29')==_0x31a916[_0x1d2f('0x3a')])return{'type':_0x1d2f('0x0'),'content':_0x587104(_0x1e8770,_0x1d2f('0x14'),_0x587104(_0x1e8770,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x31a916[_0x1d2f('0x3a')])return _0x31a916[_0x1d2f('0x5')][0x0][_0x1d2f('0x1e')]?{'type':_0x1d2f('0x0'),'content':_0x587104(_0x1e8770,_0x1d2f('0x1'))}:{'type':_0x1d2f('0x0'),'content':_0x587104(_0x1e8770,_0x1d2f('0x1d'))};}function _0x4381cf(_0x42588c){return{'type':_0x1d2f('0x0'),'content':_0x587104(_0x1e8770,'*Change\x20to:*\x20%0',_0x42588c)};}});}}function ne(_0x13e05a){const _0x2724db=_0x13e05a[_0x1d2f('0xd')]('listIndent');if(0x0==_0x2724db)return _0x13e05a;let _0x376d14=_0x13e05a;for(;_0x13e05a['previousSibling']&&_0x13e05a[_0x1d2f('0x10')]['is'](_0x1d2f('0x30'),'listItem');){const _0xfc7d91=_0x13e05a[_0x1d2f('0x10')][_0x1d2f('0xd')]('listIndent');if(_0xfc7d91==_0x2724db)_0x376d14=_0x13e05a['previousSibling'];else{if(_0xfc7d91<_0x2724db)break;}_0x13e05a=_0x13e05a['previousSibling'];}return _0x376d14;}function oe(_0x1e88a5){const _0x597cc8=[];if(_0x1e88a5['is'](_0x1d2f('0x30'),_0x1d2f('0x26'))&&_0x1e88a5[_0x1d2f('0xd')]('listIndent')>0x0){let _0xa139a0=_0x1e88a5[_0x1d2f('0x25')];for(;_0xa139a0&&_0x1d2f('0x26')==_0xa139a0[_0x1d2f('0x8')]&&_0xa139a0[_0x1d2f('0xd')](_0x1d2f('0x3b'))==_0x1e88a5[_0x1d2f('0xd')](_0x1d2f('0x3b'));)_0x597cc8['push'](_0xa139a0),_0xa139a0=_0xa139a0[_0x1d2f('0x25')];}return _0x597cc8;}
@@ -1,29 +1,29 @@
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/listproperties
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import type { Description } from '../suggestiondescriptionfactory';
10
- import type Suggestion from '../suggestion';
11
- /**
12
- * Provides track changes plugin integration for list properties feature.
13
- */
14
- export default class TrackChangesListProperties extends Plugin {
15
- /**
16
- * @inheritDoc
17
- */
18
- afterInit(): void;
19
- handleListStyleCommand(executeCommand: Function, options?: {
20
- type?: string | null;
21
- }): void;
22
- handleListReversedCommand(executeCommand: Function, options?: {
23
- reversed?: boolean;
24
- }): void;
25
- handleListStartCommand(executeCommand: Function, options?: {
26
- startIndex?: number;
27
- }): void;
28
- handleDescriptions(suggestion: Suggestion): Description | undefined;
29
- }
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/listproperties
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import type { Description } from '../suggestiondescriptionfactory';
10
+ import type Suggestion from '../suggestion';
11
+ /**
12
+ * Provides track changes plugin integration for list properties feature.
13
+ */
14
+ export default class TrackChangesListProperties extends Plugin {
15
+ /**
16
+ * @inheritDoc
17
+ */
18
+ afterInit(): void;
19
+ handleListStyleCommand(executeCommand: Function, options?: {
20
+ type?: string | null;
21
+ }): void;
22
+ handleListReversedCommand(executeCommand: Function, options?: {
23
+ reversed?: boolean;
24
+ }): void;
25
+ handleListStartCommand(executeCommand: Function, options?: {
26
+ startIndex?: number;
27
+ }): void;
28
+ handleDescriptions(suggestion: Suggestion): Description | undefined;
29
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5cd0=['getSelectedBlocks','config','plugins','from','listType','ListPropertiesEditing','enableCommand','TrackChangesEditing','listStyle','styles','ELEMENT_','length','model','markMultiRangeBlockFormat','*Format:*\x20set\x20order\x20to\x20regular','get','flat','handleListStyleCommand','listReversed','map','selection','filter','createRange','has','getAttribute','commandParams','handleListStartCommand','element','getSiblingNodes','parent','*Format:*\x20set\x20order\x20to\x20reversed','getFirstPosition','document','_LIST_','_getSuggestionBlocks','unshift','toUpperCase','handleListReversedCommand','forward','before','push','getLastPosition','startIndex','commandName','listItem','createPositionAt','numbered','locale','ListUtils','_getTranslationKeyForListStyle','listStart','editor','change','backward','afterInit','bind','getListTypeFromListStyleType','type','reversed'];(function(_0x1ea38f,_0x5cd05e){const _0x36564a=function(_0x32d5a4){while(--_0x32d5a4){_0x1ea38f['push'](_0x1ea38f['shift']());}};_0x36564a(++_0x5cd05e);}(_0x5cd0,0xe4));const _0x3656=function(_0x1ea38f,_0x5cd05e){_0x1ea38f=_0x1ea38f-0x0;let _0x36564a=_0x5cd0[_0x1ea38f];return _0x36564a;};import{Plugin as _0x5d4829}from'ckeditor5/src/core';import{getTranslation as _0x4d1a58}from'../utils/common-translations';export default class ot extends _0x5d4829{[_0x3656('0x3')](){if(!this['editor'][_0x3656('0xa')][_0x3656('0x1f')](_0x3656('0xd')))return;const _0x527c9a=this[_0x3656('0x0')][_0x3656('0x9')]['get']('list.properties'),_0x5a7168=this['editor'][_0x3656('0xa')][_0x3656('0x17')](_0x3656('0xf'));_0x527c9a[_0x3656('0x11')]&&_0x5a7168['enableCommand'](_0x3656('0x10'),this[_0x3656('0x19')][_0x3656('0x4')](this)),_0x527c9a[_0x3656('0x7')]&&_0x5a7168[_0x3656('0xe')](_0x3656('0x1a'),this[_0x3656('0x2d')][_0x3656('0x4')](this)),_0x527c9a[_0x3656('0x32')]&&_0x5a7168[_0x3656('0xe')](_0x3656('0x3a'),this[_0x3656('0x22')][_0x3656('0x4')](this)),_0x5a7168['_descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions'][_0x3656('0x4')](this));}[_0x3656('0x19')](_0x58bb72,_0x425503={}){const _0x31a559=this[_0x3656('0x0')][_0x3656('0xa')][_0x3656('0x17')](_0x3656('0xf')),_0x2e214c=this['_getSuggestionBlocksForListStyle']();this[_0x3656('0x0')][_0x3656('0x14')]['change'](()=>{_0x31a559[_0x3656('0x15')](_0x2e214c,{'commandName':_0x3656('0x10'),'commandParams':[{'type':_0x425503[_0x3656('0x6')]}],'formatGroupId':_0x3656('0x10')});});}[_0x3656('0x2d')](_0x2f1cce,_0x120fdf={}){const _0x26dab8=this[_0x3656('0x0')][_0x3656('0xa')][_0x3656('0x17')](_0x3656('0xf')),_0x5b7ef0=this[_0x3656('0x2a')](_0x50dfc6=>_0x50dfc6['is'](_0x3656('0x23'),_0x3656('0x34'))&&'numbered'===_0x50dfc6[_0x3656('0x20')](_0x3656('0xc')));if(_0x5b7ef0[_0x3656('0x13')]<0x1)return;const _0x3b645e=_0x5b7ef0[_0x3656('0x1b')](_0x54f251=>this[_0x3656('0x0')]['model'][_0x3656('0x1e')](this['editor'][_0x3656('0x14')][_0x3656('0x35')](_0x54f251,_0x3656('0x2f')),this[_0x3656('0x0')][_0x3656('0x14')][_0x3656('0x35')](_0x54f251,0x0)));this[_0x3656('0x0')]['model'][_0x3656('0x1')](()=>{_0x26dab8[_0x3656('0x15')](_0x3b645e,{'commandName':'listReversed','commandParams':[{'reversed':_0x120fdf[_0x3656('0x7')]}],'formatGroupId':_0x3656('0x1a')});});}[_0x3656('0x22')](_0x530f53,_0x40de11={}){const _0x35341=this['editor'][_0x3656('0xa')][_0x3656('0x17')](_0x3656('0xf')),_0x47b1a9=this[_0x3656('0x2a')](_0x3ce521=>_0x3ce521['is'](_0x3656('0x23'),_0x3656('0x34'))&&_0x3656('0x36')===_0x3ce521[_0x3656('0x20')](_0x3656('0xc')));if(_0x47b1a9['length']<0x1)return;const _0x4cb2e7=_0x47b1a9[_0x3656('0x1b')](_0x1888ae=>this[_0x3656('0x0')]['model'][_0x3656('0x1e')](this['editor'][_0x3656('0x14')][_0x3656('0x35')](_0x1888ae,'before'),this[_0x3656('0x0')][_0x3656('0x14')][_0x3656('0x35')](_0x1888ae,0x0)));this['editor'][_0x3656('0x14')][_0x3656('0x1')](()=>{_0x35341[_0x3656('0x15')](_0x4cb2e7,{'commandName':_0x3656('0x3a'),'commandParams':[{'startIndex':_0x40de11[_0x3656('0x32')]}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xf3b030){const _0x2959cb=this['editor'][_0x3656('0x37')],{data:_0x5f2119}=_0xf3b030;if(!_0x5f2119)return;let _0x2129d3,_0x4f4f79;switch(_0x5f2119[_0x3656('0x33')]){case _0x3656('0x10'):_0x2129d3='*Change\x20to:*\x20%0',_0x4f4f79={'type':'format','content':_0x4d1a58(_0x2959cb,_0x2129d3,_0x4d1a58(_0x2959cb,this[_0x3656('0x39')](_0x5f2119[_0x3656('0x21')][0x0][_0x3656('0x6')])))};break;case'listReversed':_0x2129d3=_0x5f2119[_0x3656('0x21')][0x0]['reversed']?_0x3656('0x26'):_0x3656('0x16'),_0x4f4f79={'type':'format','content':_0x4d1a58(_0x2959cb,_0x2129d3)};break;case _0x3656('0x3a'):_0x2129d3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4f4f79={'type':'format','content':_0x4d1a58(_0x2959cb,_0x2129d3,_0x5f2119['commandParams'][0x0][_0x3656('0x32')])};}return _0x4f4f79;}['_getSuggestionBlocksForListStyle'](){var _0x11b692,_0x88e746,_0x27ed34,_0x1f7436;const _0xc2ef8b=this[_0x3656('0x0')][_0x3656('0xa')][_0x3656('0x17')]('ListUtils');let _0x530d57=Array['from'](this[_0x3656('0x0')]['model']['document'][_0x3656('0x1c')][_0x3656('0x8')]());return(null===(_0x11b692=_0x530d57[0x0])||void 0x0===_0x11b692?void 0x0:_0x11b692['is'](_0x3656('0x23'),'listItem'))&&_0x530d57[_0x3656('0x2b')](..._0xc2ef8b[_0x3656('0x24')](this[_0x3656('0x0')][_0x3656('0x14')]['document'][_0x3656('0x1c')][_0x3656('0x27')](),_0x3656('0x2'))),(null===(_0x88e746=_0x530d57[_0x530d57[_0x3656('0x13')]-0x1])||void 0x0===_0x88e746?void 0x0:_0x88e746['is']('element',_0x3656('0x34')))&&_0x530d57[_0x3656('0x30')](..._0xc2ef8b[_0x3656('0x24')](this[_0x3656('0x0')][_0x3656('0x14')][_0x3656('0x28')]['selection'][_0x3656('0x31')](),'forward')),_0x530d57=[...new Set(_0x530d57)],(null===(_0x1f7436=null===(_0x27ed34=this[_0x3656('0x0')][_0x3656('0x14')][_0x3656('0x28')]['selection']['getFirstPosition']())||void 0x0===_0x27ed34?void 0x0:_0x27ed34[_0x3656('0x25')])||void 0x0===_0x1f7436?void 0x0:_0x1f7436['is']('element',_0x3656('0x34')))&&(_0x530d57=_0x530d57[_0x3656('0x1d')](_0x59eecd=>_0x59eecd['is'](_0x3656('0x23'),_0x3656('0x34')))),_0x530d57;}[_0x3656('0x2a')](_0x5b4e8f){const _0x5284e6=this[_0x3656('0x0')][_0x3656('0xa')][_0x3656('0x17')]('ListUtils');let _0x13be57=Array[_0x3656('0xb')](this[_0x3656('0x0')][_0x3656('0x14')][_0x3656('0x28')][_0x3656('0x1c')]['getSelectedBlocks']())[_0x3656('0x1d')](_0x5b4e8f)[_0x3656('0x1b')](_0xcfae92=>{const _0x2c7185=this[_0x3656('0x0')]['model'][_0x3656('0x35')](_0xcfae92,0x0);return[..._0x5284e6['getSiblingNodes'](_0x2c7185,'backward'),..._0x5284e6['getSiblingNodes'](_0x2c7185,_0x3656('0x2e'))];})[_0x3656('0x18')]();return _0x13be57=[...new Set(_0x13be57)],_0x13be57;}[_0x3656('0x39')](_0xd31602){return _0x3656('0x12')+this[_0x3656('0x0')][_0x3656('0xa')][_0x3656('0x17')](_0x3656('0x38'))[_0x3656('0x5')](_0xd31602)[_0x3656('0x2c')]()+_0x3656('0x29')+_0xd31602[_0x3656('0x2c')]()['replace'](/-/g,'_');}}
23
+ const _0x3543=['flat','backward','ListUtils','startIndex','getFirstPosition','document','*Format:*\x20set\x20start\x20index\x20to\x20%0','_getSuggestionBlocksForListStyle','forward','getSelectedBlocks','listType','filter','parent','commandParams','getAttribute','createRange','length','styles','handleListReversedCommand','locale','formatInline','getLastPosition','unshift','push','listStart','plugins','reversed','toUpperCase','ELEMENT_','getListTypeFromListStyleType','markMultiRangeBlockFormat','before','numbered','*Format:*\x20set\x20order\x20to\x20reversed','_descriptionFactory','_LIST_','afterInit','type','handleListStartCommand','map','element','handleListStyleCommand','format','enableCommand','replace','list.properties','*Change\x20to:*\x20%0','model','registerDescriptionCallback','from','formatBlock','listItem','listStyle','bind','selection','commandName','editor','_getTranslationKeyForListStyle','change','TrackChangesEditing','get','handleDescriptions','listReversed','getSiblingNodes','_getSuggestionBlocks','has','createPositionAt'];(function(_0x429aa6,_0x35433c){const _0x2d1bd0=function(_0x5f3674){while(--_0x5f3674){_0x429aa6['push'](_0x429aa6['shift']());}};_0x2d1bd0(++_0x35433c);}(_0x3543,0x17c));const _0x2d1b=function(_0x429aa6,_0x35433c){_0x429aa6=_0x429aa6-0x0;let _0x2d1bd0=_0x3543[_0x429aa6];return _0x2d1bd0;};import{Plugin as _0x80a917}from'ckeditor5/src/core';import{getTranslation as _0x1c1e2f}from'../utils/common-translations';export default class ut extends _0x80a917{[_0x2d1b('0x3a')](){if(!this[_0x2d1b('0xb')][_0x2d1b('0x2f')][_0x2d1b('0x14')]('ListPropertiesEditing'))return;const _0x35ee18=this[_0x2d1b('0xb')]['config'][_0x2d1b('0xf')](_0x2d1b('0x0')),_0x281c4a=this[_0x2d1b('0xb')][_0x2d1b('0x2f')][_0x2d1b('0xf')]('TrackChangesEditing');_0x35ee18[_0x2d1b('0x27')]&&_0x281c4a[_0x2d1b('0x41')]('listStyle',this[_0x2d1b('0x3f')][_0x2d1b('0x8')](this)),_0x35ee18[_0x2d1b('0x30')]&&_0x281c4a[_0x2d1b('0x41')](_0x2d1b('0x11'),this[_0x2d1b('0x28')]['bind'](this)),_0x35ee18['startIndex']&&_0x281c4a[_0x2d1b('0x41')](_0x2d1b('0x2e'),this[_0x2d1b('0x3c')][_0x2d1b('0x8')](this)),_0x281c4a[_0x2d1b('0x38')][_0x2d1b('0x3')](this[_0x2d1b('0x10')][_0x2d1b('0x8')](this));}['handleListStyleCommand'](_0x5d25c0,_0x52b4d7={}){const _0x56b5e4=this[_0x2d1b('0xb')][_0x2d1b('0x2f')][_0x2d1b('0xf')](_0x2d1b('0xe')),_0x157556=this[_0x2d1b('0x1d')]();this['editor'][_0x2d1b('0x2')][_0x2d1b('0xd')](()=>{_0x56b5e4[_0x2d1b('0x34')](_0x157556,{'commandName':_0x2d1b('0x7'),'commandParams':[{'type':_0x52b4d7['type']}],'formatGroupId':_0x2d1b('0x7')});});}['handleListReversedCommand'](_0x5e29ca,_0x595def={}){const _0x429865=this[_0x2d1b('0xb')][_0x2d1b('0x2f')][_0x2d1b('0xf')]('TrackChangesEditing'),_0x5e8afa=this[_0x2d1b('0x13')](_0x1bb27e=>_0x1bb27e['is'](_0x2d1b('0x3e'),_0x2d1b('0x6'))&&_0x2d1b('0x36')===_0x1bb27e[_0x2d1b('0x24')]('listType'));if(_0x5e8afa['length']<0x1)return;const _0x3cba7f=_0x5e8afa[_0x2d1b('0x3d')](_0x5853ed=>this[_0x2d1b('0xb')]['model'][_0x2d1b('0x25')](this['editor']['model'][_0x2d1b('0x15')](_0x5853ed,'before'),this[_0x2d1b('0xb')]['model'][_0x2d1b('0x15')](_0x5853ed,0x0)));this[_0x2d1b('0xb')][_0x2d1b('0x2')][_0x2d1b('0xd')](()=>{_0x429865[_0x2d1b('0x34')](_0x3cba7f,{'commandName':_0x2d1b('0x11'),'commandParams':[{'reversed':_0x595def['reversed']}],'formatGroupId':_0x2d1b('0x11')});});}[_0x2d1b('0x3c')](_0x29d305,_0x3f7151={}){const _0x290620=this['editor'][_0x2d1b('0x2f')][_0x2d1b('0xf')]('TrackChangesEditing'),_0x342200=this[_0x2d1b('0x13')](_0x2c1a04=>_0x2c1a04['is'](_0x2d1b('0x3e'),_0x2d1b('0x6'))&&'numbered'===_0x2c1a04[_0x2d1b('0x24')](_0x2d1b('0x20')));if(_0x342200[_0x2d1b('0x26')]<0x1)return;const _0x396c1d=_0x342200[_0x2d1b('0x3d')](_0x596756=>this[_0x2d1b('0xb')]['model'][_0x2d1b('0x25')](this[_0x2d1b('0xb')][_0x2d1b('0x2')][_0x2d1b('0x15')](_0x596756,_0x2d1b('0x35')),this[_0x2d1b('0xb')][_0x2d1b('0x2')][_0x2d1b('0x15')](_0x596756,0x0)));this['editor'][_0x2d1b('0x2')]['change'](()=>{_0x290620['markMultiRangeBlockFormat'](_0x396c1d,{'commandName':_0x2d1b('0x2e'),'commandParams':[{'startIndex':_0x3f7151[_0x2d1b('0x19')]}],'formatGroupId':_0x2d1b('0x2e')});});}[_0x2d1b('0x10')](_0x32bfc4){if(_0x2d1b('0x5')!=_0x32bfc4[_0x2d1b('0x3b')]&&_0x2d1b('0x2a')!=_0x32bfc4[_0x2d1b('0x3b')])return;const _0x1ace60=this['editor'][_0x2d1b('0x29')],{data:_0x78995a}=_0x32bfc4;if(!_0x78995a)return;let _0x38ab35,_0x218b64;switch(_0x78995a[_0x2d1b('0xa')]){case'listStyle':_0x38ab35=_0x2d1b('0x1'),_0x218b64={'type':_0x2d1b('0x40'),'content':_0x1c1e2f(_0x1ace60,_0x38ab35,_0x1c1e2f(_0x1ace60,this[_0x2d1b('0xc')](_0x78995a[_0x2d1b('0x23')][0x0][_0x2d1b('0x3b')])))};break;case'listReversed':_0x38ab35=_0x78995a['commandParams'][0x0][_0x2d1b('0x30')]?_0x2d1b('0x37'):'*Format:*\x20set\x20order\x20to\x20regular',_0x218b64={'type':'format','content':_0x1c1e2f(_0x1ace60,_0x38ab35)};break;case'listStart':_0x38ab35=_0x2d1b('0x1c'),_0x218b64={'type':_0x2d1b('0x40'),'content':_0x1c1e2f(_0x1ace60,_0x38ab35,_0x78995a[_0x2d1b('0x23')][0x0][_0x2d1b('0x19')])};}return _0x218b64;}[_0x2d1b('0x1d')](){var _0x4e0f8e,_0x1a923c,_0x59a10a,_0x829d83;const _0x14c398=this[_0x2d1b('0xb')][_0x2d1b('0x2f')]['get'](_0x2d1b('0x18'));let _0x57b07a=Array[_0x2d1b('0x4')](this[_0x2d1b('0xb')][_0x2d1b('0x2')]['document']['selection']['getSelectedBlocks']());return(null===(_0x4e0f8e=_0x57b07a[0x0])||void 0x0===_0x4e0f8e?void 0x0:_0x4e0f8e['is'](_0x2d1b('0x3e'),_0x2d1b('0x6')))&&_0x57b07a[_0x2d1b('0x2c')](..._0x14c398[_0x2d1b('0x12')](this[_0x2d1b('0xb')]['model'][_0x2d1b('0x1b')][_0x2d1b('0x9')][_0x2d1b('0x1a')](),_0x2d1b('0x17'))),(null===(_0x1a923c=_0x57b07a[_0x57b07a[_0x2d1b('0x26')]-0x1])||void 0x0===_0x1a923c?void 0x0:_0x1a923c['is'](_0x2d1b('0x3e'),'listItem'))&&_0x57b07a[_0x2d1b('0x2d')](..._0x14c398[_0x2d1b('0x12')](this[_0x2d1b('0xb')][_0x2d1b('0x2')]['document'][_0x2d1b('0x9')][_0x2d1b('0x2b')](),_0x2d1b('0x1e'))),_0x57b07a=[...new Set(_0x57b07a)],(null===(_0x829d83=null===(_0x59a10a=this['editor'][_0x2d1b('0x2')]['document'][_0x2d1b('0x9')]['getFirstPosition']())||void 0x0===_0x59a10a?void 0x0:_0x59a10a[_0x2d1b('0x22')])||void 0x0===_0x829d83?void 0x0:_0x829d83['is'](_0x2d1b('0x3e'),'listItem'))&&(_0x57b07a=_0x57b07a[_0x2d1b('0x21')](_0x267870=>_0x267870['is'](_0x2d1b('0x3e'),_0x2d1b('0x6')))),_0x57b07a;}['_getSuggestionBlocks'](_0x4e818b){const _0x2941ff=this['editor'][_0x2d1b('0x2f')][_0x2d1b('0xf')](_0x2d1b('0x18'));let _0x4da7f0=Array[_0x2d1b('0x4')](this['editor'][_0x2d1b('0x2')][_0x2d1b('0x1b')]['selection'][_0x2d1b('0x1f')]())['filter'](_0x4e818b)[_0x2d1b('0x3d')](_0x1cac03=>{const _0x3e842d=this[_0x2d1b('0xb')]['model'][_0x2d1b('0x15')](_0x1cac03,0x0);return[..._0x2941ff['getSiblingNodes'](_0x3e842d,_0x2d1b('0x17')),..._0x2941ff[_0x2d1b('0x12')](_0x3e842d,_0x2d1b('0x1e'))];})[_0x2d1b('0x16')]();return _0x4da7f0=[...new Set(_0x4da7f0)],_0x4da7f0;}['_getTranslationKeyForListStyle'](_0x5ecb4f){return _0x2d1b('0x32')+this[_0x2d1b('0xb')][_0x2d1b('0x2f')][_0x2d1b('0xf')]('ListUtils')[_0x2d1b('0x33')](_0x5ecb4f)[_0x2d1b('0x31')]()+_0x2d1b('0x39')+_0x5ecb4f[_0x2d1b('0x31')]()[_0x2d1b('0x42')](/-/g,'_');}}
@@ -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/mediaembed
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- /**
10
- * Provides track changes plugin integration for {@link module:media-embed/mediaembed~MediaEmbed media embed feature}.
11
- */
12
- export default class TrackChangesMediaEmbed 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/mediaembed
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ /**
10
+ * Provides track changes plugin integration for {@link module:media-embed/mediaembed~MediaEmbed media embed feature}.
11
+ */
12
+ export default class TrackChangesMediaEmbed extends Plugin {
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ afterInit(): void;
17
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x16ab=['enableCommand','media','showSuggestionHighlights','MediaEmbedEditing','options','high','data','plugins','afterInit','stop','attribute:url:media','get','ELEMENT_MEDIA','dataDowncast','conversion','registerElementLabel'];(function(_0x55fcc5,_0x16ab18){const _0x218212=function(_0x128c18){while(--_0x128c18){_0x55fcc5['push'](_0x55fcc5['shift']());}};_0x218212(++_0x16ab18);}(_0x16ab,0x1cd));const _0x2182=function(_0x55fcc5,_0x16ab18){_0x55fcc5=_0x55fcc5-0x0;let _0x218212=_0x16ab[_0x55fcc5];return _0x218212;};import{Plugin as _0x5702b7}from'ckeditor5/src/core';import{getTranslation as _0x17ea61}from'../utils/common-translations';export default class rt extends _0x5702b7{[_0x2182('0xb')](){const _0x272b5b=this['editor'];if(!_0x272b5b[_0x2182('0xa')]['has'](_0x2182('0x6')))return;const _0x171fcc=_0x272b5b['plugins'][_0x2182('0xe')]('TrackChangesEditing'),_0x13829c=_0x272b5b['locale'];_0x171fcc[_0x2182('0x3')]('mediaEmbed'),_0x171fcc['_descriptionFactory'][_0x2182('0x2')](_0x2182('0x4'),_0x158a52=>_0x17ea61(_0x13829c,_0x2182('0xf'),_0x158a52)),_0x272b5b[_0x2182('0x1')]['for'](_0x2182('0x0'))['elementToElement']({'model':_0x2182('0x4'),'view':(_0x38dc12,{writer:_0x31158e,options:_0x31c587})=>{if(_0x31c587[_0x2182('0x5')])return _0x31158e['createEmptyElement']('div');},'converterPriority':'high'}),_0x272b5b[_0x2182('0x9')]['downcastDispatcher']['on'](_0x2182('0xd'),(_0x191f52,_0x3ec261,_0x28ea3b)=>{_0x28ea3b[_0x2182('0x7')][_0x2182('0x5')]&&_0x191f52[_0x2182('0xc')]();},{'priority':_0x2182('0x8')});}}
23
+ const _0xbac9=['editor','createEmptyElement','mediaEmbed','_descriptionFactory','TrackChangesEditing','dataDowncast','locale','media','enableCommand','registerElementLabel','get','div','ELEMENT_MEDIA','data','high','attribute:url:media','downcastDispatcher','stop','has','afterInit','showSuggestionHighlights','elementToElement','plugins','conversion'];(function(_0x228cfc,_0xbac94e){const _0x4dc7dc=function(_0x2a9492){while(--_0x2a9492){_0x228cfc['push'](_0x228cfc['shift']());}};_0x4dc7dc(++_0xbac94e);}(_0xbac9,0xf5));const _0x4dc7=function(_0x228cfc,_0xbac94e){_0x228cfc=_0x228cfc-0x0;let _0x4dc7dc=_0xbac9[_0x228cfc];return _0x4dc7dc;};import{Plugin as _0xb0def8}from'ckeditor5/src/core';import{getTranslation as _0xe9bd26}from'../utils/common-translations';export default class ht extends _0xb0def8{[_0x4dc7('0xe')](){const _0x17016c=this[_0x4dc7('0x13')];if(!_0x17016c['plugins'][_0x4dc7('0xd')]('MediaEmbedEditing'))return;const _0x1ccf2a=_0x17016c[_0x4dc7('0x11')][_0x4dc7('0x5')](_0x4dc7('0x17')),_0x267176=_0x17016c[_0x4dc7('0x1')];_0x1ccf2a[_0x4dc7('0x3')](_0x4dc7('0x15')),_0x1ccf2a[_0x4dc7('0x16')][_0x4dc7('0x4')](_0x4dc7('0x2'),_0x473eec=>_0xe9bd26(_0x267176,_0x4dc7('0x7'),_0x473eec)),_0x17016c[_0x4dc7('0x12')]['for'](_0x4dc7('0x0'))[_0x4dc7('0x10')]({'model':_0x4dc7('0x2'),'view':(_0x1a820f,{writer:_0x36d563,options:_0x7111f4})=>{if(_0x7111f4[_0x4dc7('0xf')])return _0x36d563[_0x4dc7('0x14')](_0x4dc7('0x6'));},'converterPriority':_0x4dc7('0x9')}),_0x17016c[_0x4dc7('0x8')][_0x4dc7('0xb')]['on'](_0x4dc7('0xa'),(_0x14b1cf,_0xcf4915,_0x20b3ab)=>{_0x20b3ab['options']['showSuggestionHighlights']&&_0x14b1cf[_0x4dc7('0xc')]();},{'priority':_0x4dc7('0x9')});}}
@@ -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/mention
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- /**
10
- * Provides track changes plugin integration for mention feature.
11
- */
12
- export default class TrackChangesMention 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/mention
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ /**
10
+ * Provides track changes plugin integration for mention feature.
11
+ */
12
+ export default class TrackChangesMention extends Plugin {
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ afterInit(): void;
17
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2773=['has','mention','editor','get','TrackChangesEditing','MentionEditing','plugins'];(function(_0x26c123,_0x2773cf){const _0x522a5c=function(_0x34c510){while(--_0x34c510){_0x26c123['push'](_0x26c123['shift']());}};_0x522a5c(++_0x2773cf);}(_0x2773,0x106));const _0x522a=function(_0x26c123,_0x2773cf){_0x26c123=_0x26c123-0x0;let _0x522a5c=_0x2773[_0x26c123];return _0x522a5c;};import{Plugin as _0x4b4e02}from'ckeditor5/src/core';export default class at extends _0x4b4e02{['afterInit'](){const _0x195332=this[_0x522a('0x6')];_0x195332[_0x522a('0x3')][_0x522a('0x4')](_0x522a('0x2'))&&_0x195332['plugins'][_0x522a('0x0')](_0x522a('0x1'))['enableCommand'](_0x522a('0x5'));}}
23
+ const _0x1f04=['TrackChangesEditing','MentionEditing','plugins','enableCommand','has','afterInit','mention'];(function(_0x22561d,_0x1f0435){const _0x38b8e8=function(_0x409b98){while(--_0x409b98){_0x22561d['push'](_0x22561d['shift']());}};_0x38b8e8(++_0x1f0435);}(_0x1f04,0xf4));const _0x38b8=function(_0x22561d,_0x1f0435){_0x22561d=_0x22561d-0x0;let _0x38b8e8=_0x1f04[_0x22561d];return _0x38b8e8;};import{Plugin as _0xdd8bc9}from'ckeditor5/src/core';export default class ft extends _0xdd8bc9{[_0x38b8('0x6')](){const _0x33f471=this['editor'];_0x33f471[_0x38b8('0x3')][_0x38b8('0x5')](_0x38b8('0x2'))&&_0x33f471[_0x38b8('0x3')]['get'](_0x38b8('0x1'))[_0x38b8('0x4')](_0x38b8('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/pagebreak
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- /**
10
- * Provides track changes plugin integration for {@link module:page-break/pagebreak~PageBreak page break feature}.
11
- */
12
- export default class TrackChangesPageBreak 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/pagebreak
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ /**
10
+ * Provides track changes plugin integration for {@link module:page-break/pagebreak~PageBreak page break feature}.
11
+ */
12
+ export default class TrackChangesPageBreak extends Plugin {
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ afterInit(): void;
17
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1a14=['enableCommand','editor','afterInit','get','locale','TrackChangesEditing','pageBreak','registerElementLabel','plugins'];(function(_0xafe4ff,_0x1a14ae){const _0xd34449=function(_0x23de4f){while(--_0x23de4f){_0xafe4ff['push'](_0xafe4ff['shift']());}};_0xd34449(++_0x1a14ae);}(_0x1a14,0x92));const _0xd344=function(_0xafe4ff,_0x1a14ae){_0xafe4ff=_0xafe4ff-0x0;let _0xd34449=_0x1a14[_0xafe4ff];return _0xd34449;};import{Plugin as _0x561149}from'ckeditor5/src/core';import{getTranslation as _0x32e5ca}from'../utils/common-translations';export default class ct extends _0x561149{[_0xd344('0x0')](){const _0x2a43af=this[_0xd344('0x8')];if(!_0x2a43af[_0xd344('0x6')]['has']('PageBreakEditing'))return;_0x2a43af[_0xd344('0x6')][_0xd344('0x1')](_0xd344('0x3'))[_0xd344('0x7')](_0xd344('0x4'));const _0x3469e3=_0x2a43af['plugins'][_0xd344('0x1')](_0xd344('0x3')),_0x436848=_0x2a43af[_0xd344('0x2')];_0x3469e3['_descriptionFactory'][_0xd344('0x5')](_0xd344('0x4'),_0x2493ff=>_0x32e5ca(_0x436848,'ELEMENT_PAGE_BREAK',_0x2493ff));}}
23
+ const _0x4f14=['PageBreakEditing','registerElementLabel','has','enableCommand','plugins','afterInit','TrackChangesEditing','ELEMENT_PAGE_BREAK','get','editor','locale'];(function(_0x331588,_0x4f14bb){const _0x26ce3d=function(_0x3c3484){while(--_0x3c3484){_0x331588['push'](_0x331588['shift']());}};_0x26ce3d(++_0x4f14bb);}(_0x4f14,0x13a));const _0x26ce=function(_0x331588,_0x4f14bb){_0x331588=_0x331588-0x0;let _0x26ce3d=_0x4f14[_0x331588];return _0x26ce3d;};import{Plugin as _0x39c30a}from'ckeditor5/src/core';import{getTranslation as _0x51e2a3}from'../utils/common-translations';export default class gt extends _0x39c30a{[_0x26ce('0xa')](){const _0x459af5=this[_0x26ce('0x3')];if(!_0x459af5[_0x26ce('0x9')][_0x26ce('0x7')](_0x26ce('0x5')))return;_0x459af5[_0x26ce('0x9')]['get'](_0x26ce('0x0'))[_0x26ce('0x8')]('pageBreak');const _0x4e7183=_0x459af5[_0x26ce('0x9')][_0x26ce('0x2')]('TrackChangesEditing'),_0x3f5f7a=_0x459af5[_0x26ce('0x4')];_0x4e7183['_descriptionFactory'][_0x26ce('0x6')]('pageBreak',_0x22bd25=>_0x51e2a3(_0x3f5f7a,_0x26ce('0x1'),_0x22bd25));}}
@@ -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/paragraph
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- /**
10
- * Provides track changes plugin integration for paragraph feature.
11
- */
12
- export default class TrackChangesParagraph 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/paragraph
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ /**
10
+ * Provides track changes plugin integration for paragraph feature.
11
+ */
12
+ export default class TrackChangesParagraph extends Plugin {
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ afterInit(): void;
17
+ }