@ckeditor/ckeditor5-track-changes 39.0.1 → 40.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/LICENSE.md +6 -6
  3. package/README.md +14 -14
  4. package/build/track-changes.js +1 -1
  5. package/lang/translations/ar.po +1 -0
  6. package/lang/translations/az.po +1 -0
  7. package/lang/translations/bg.po +1 -0
  8. package/lang/translations/bn.po +1 -0
  9. package/lang/translations/ca.po +1 -0
  10. package/lang/translations/cs.po +1 -0
  11. package/lang/translations/da.po +1 -0
  12. package/lang/translations/de.po +1 -0
  13. package/lang/translations/el.po +1 -0
  14. package/lang/translations/en-au.po +1 -0
  15. package/lang/translations/en.po +1 -0
  16. package/lang/translations/es.po +1 -0
  17. package/lang/translations/et.po +1 -0
  18. package/lang/translations/fi.po +1 -0
  19. package/lang/translations/fr.po +1 -0
  20. package/lang/translations/gl.po +1 -0
  21. package/lang/translations/he.po +1 -0
  22. package/lang/translations/hi.po +1 -0
  23. package/lang/translations/hr.po +1 -0
  24. package/lang/translations/hu.po +1 -0
  25. package/lang/translations/id.po +1 -0
  26. package/lang/translations/it.po +1 -0
  27. package/lang/translations/ja.po +1 -0
  28. package/lang/translations/ko.po +1 -0
  29. package/lang/translations/lt.po +1 -0
  30. package/lang/translations/lv.po +1 -0
  31. package/lang/translations/ms.po +1 -0
  32. package/lang/translations/nl.po +1 -0
  33. package/lang/translations/no.po +1 -0
  34. package/lang/translations/pl.po +1 -0
  35. package/lang/translations/pt-br.po +1 -0
  36. package/lang/translations/pt.po +1 -0
  37. package/lang/translations/ro.po +1 -0
  38. package/lang/translations/ru.po +1 -0
  39. package/lang/translations/sk.po +1 -0
  40. package/lang/translations/sq.po +1 -0
  41. package/lang/translations/sr-latn.po +1 -0
  42. package/lang/translations/sr.po +1 -0
  43. package/lang/translations/sv.po +1 -0
  44. package/lang/translations/th.po +1 -0
  45. package/lang/translations/tk.po +1 -0
  46. package/lang/translations/tr.po +1 -0
  47. package/lang/translations/tt.po +1 -0
  48. package/lang/translations/uk.po +1 -0
  49. package/lang/translations/ur.po +1 -0
  50. package/lang/translations/vi.po +1 -0
  51. package/lang/translations/zh-cn.po +1 -0
  52. package/lang/translations/zh.po +1 -0
  53. package/package.json +3 -7
  54. package/src/augmentation.d.ts +40 -40
  55. package/src/commands/acceptsuggestioncommand.d.ts +24 -24
  56. package/src/commands/acceptsuggestioncommand.js +1 -1
  57. package/src/commands/discardsuggestioncommand.d.ts +24 -24
  58. package/src/commands/discardsuggestioncommand.js +1 -1
  59. package/src/commands/executeonallsuggestionscommand.d.ts +24 -24
  60. package/src/commands/executeonallsuggestionscommand.js +1 -1
  61. package/src/commands/executeonselectedsuggestionscommand.d.ts +24 -24
  62. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  63. package/src/commands/trackchangescommand.d.ts +26 -26
  64. package/src/commands/trackchangescommand.js +1 -1
  65. package/src/index.d.ts +16 -16
  66. package/src/integrations/aiassistant.d.ts +17 -0
  67. package/src/integrations/aiassistant.js +23 -0
  68. package/src/integrations/alignment.d.ts +17 -17
  69. package/src/integrations/alignment.js +1 -1
  70. package/src/integrations/basicstyles.d.ts +17 -17
  71. package/src/integrations/basicstyles.js +1 -1
  72. package/src/integrations/blockquote.d.ts +17 -17
  73. package/src/integrations/blockquote.js +1 -1
  74. package/src/integrations/ckbox.d.ts +17 -17
  75. package/src/integrations/ckbox.js +1 -1
  76. package/src/integrations/codeblock.d.ts +17 -17
  77. package/src/integrations/codeblock.js +1 -1
  78. package/src/integrations/comments.d.ts +14 -14
  79. package/src/integrations/comments.js +1 -1
  80. package/src/integrations/deletecommand.d.ts +17 -17
  81. package/src/integrations/deletecommand.js +1 -1
  82. package/src/integrations/documentlist.d.ts +17 -17
  83. package/src/integrations/documentlist.js +1 -1
  84. package/src/integrations/documentlistproperties.d.ts +29 -29
  85. package/src/integrations/documentlistproperties.js +1 -1
  86. package/src/integrations/entercommand.d.ts +16 -16
  87. package/src/integrations/entercommand.js +1 -1
  88. package/src/integrations/findandreplace.d.ts +21 -21
  89. package/src/integrations/findandreplace.js +1 -1
  90. package/src/integrations/font.d.ts +17 -17
  91. package/src/integrations/font.js +1 -1
  92. package/src/integrations/formatpainter.d.ts +17 -17
  93. package/src/integrations/formatpainter.js +1 -1
  94. package/src/integrations/heading.d.ts +17 -17
  95. package/src/integrations/heading.js +1 -1
  96. package/src/integrations/highlight.d.ts +17 -17
  97. package/src/integrations/highlight.js +1 -1
  98. package/src/integrations/horizontalline.d.ts +17 -17
  99. package/src/integrations/horizontalline.js +1 -1
  100. package/src/integrations/htmlembed.d.ts +17 -17
  101. package/src/integrations/htmlembed.js +1 -1
  102. package/src/integrations/image.d.ts +17 -17
  103. package/src/integrations/image.js +1 -1
  104. package/src/integrations/imagereplace.d.ts +23 -23
  105. package/src/integrations/imagereplace.js +1 -1
  106. package/src/integrations/importword.d.ts +18 -18
  107. package/src/integrations/importword.js +1 -1
  108. package/src/integrations/indent.d.ts +17 -17
  109. package/src/integrations/indent.js +1 -1
  110. package/src/integrations/inputcommand.d.ts +16 -16
  111. package/src/integrations/inputcommand.js +1 -1
  112. package/src/integrations/link.d.ts +17 -17
  113. package/src/integrations/link.js +1 -1
  114. package/src/integrations/list.d.ts +17 -17
  115. package/src/integrations/list.js +1 -1
  116. package/src/integrations/listproperties.d.ts +29 -29
  117. package/src/integrations/listproperties.js +1 -1
  118. package/src/integrations/mediaembed.d.ts +17 -17
  119. package/src/integrations/mediaembed.js +1 -1
  120. package/src/integrations/mention.d.ts +17 -17
  121. package/src/integrations/mention.js +1 -1
  122. package/src/integrations/pagebreak.d.ts +17 -17
  123. package/src/integrations/pagebreak.js +1 -1
  124. package/src/integrations/paragraph.d.ts +17 -17
  125. package/src/integrations/paragraph.js +1 -1
  126. package/src/integrations/removeformat.d.ts +17 -17
  127. package/src/integrations/removeformat.js +1 -1
  128. package/src/integrations/restrictededitingmode.d.ts +17 -17
  129. package/src/integrations/restrictededitingmode.js +1 -1
  130. package/src/integrations/shiftentercommand.d.ts +16 -16
  131. package/src/integrations/shiftentercommand.js +1 -1
  132. package/src/integrations/standardeditingmode.d.ts +17 -17
  133. package/src/integrations/standardeditingmode.js +1 -1
  134. package/src/integrations/style.d.ts +18 -18
  135. package/src/integrations/style.js +1 -1
  136. package/src/integrations/table.d.ts +42 -42
  137. package/src/integrations/table.js +1 -1
  138. package/src/integrations/tablecaption.d.ts +22 -22
  139. package/src/integrations/tablecaption.js +1 -1
  140. package/src/integrations/tableclipboard.d.ts +19 -19
  141. package/src/integrations/tableclipboard.js +1 -1
  142. package/src/integrations/tablecolumnresize.d.ts +26 -26
  143. package/src/integrations/tablecolumnresize.js +1 -1
  144. package/src/integrations/tableheadings.d.ts +22 -22
  145. package/src/integrations/tableheadings.js +1 -1
  146. package/src/integrations/tablemergesplit.d.ts +22 -22
  147. package/src/integrations/tablemergesplit.js +1 -1
  148. package/src/integrations/tableofcontents.d.ts +17 -17
  149. package/src/integrations/tableofcontents.js +1 -1
  150. package/src/integrations/tableproperties.d.ts +27 -27
  151. package/src/integrations/tableproperties.js +1 -1
  152. package/src/integrations/template.d.ts +17 -17
  153. package/src/integrations/template.js +1 -1
  154. package/src/integrations/title.d.ts +17 -17
  155. package/src/integrations/title.js +1 -1
  156. package/src/integrations/undo.d.ts +17 -17
  157. package/src/integrations/undo.js +1 -1
  158. package/src/integrations/utils.d.ts +21 -21
  159. package/src/integrations/utils.js +1 -1
  160. package/src/suggestion.d.ts +276 -276
  161. package/src/suggestion.js +1 -1
  162. package/src/suggestiondescriptionfactory.d.ts +163 -163
  163. package/src/suggestiondescriptionfactory.js +1 -1
  164. package/src/trackchanges.d.ts +244 -244
  165. package/src/trackchanges.js +1 -1
  166. package/src/trackchangesconfig.d.ts +75 -75
  167. package/src/trackchangesdata.d.ts +41 -41
  168. package/src/trackchangesdata.js +1 -1
  169. package/src/trackchangesediting.d.ts +468 -439
  170. package/src/trackchangesediting.js +1 -1
  171. package/src/trackchangesui.d.ts +38 -38
  172. package/src/trackchangesui.js +1 -1
  173. package/src/ui/suggestioncontroller.d.ts +37 -37
  174. package/src/ui/suggestioncontroller.js +1 -1
  175. package/src/ui/view/basesuggestionthreadview.d.ts +170 -170
  176. package/src/ui/view/basesuggestionthreadview.js +1 -1
  177. package/src/ui/view/suggestionthreadview.d.ts +182 -182
  178. package/src/ui/view/suggestionthreadview.js +1 -1
  179. package/src/utils/common-translations.d.ts +9 -9
  180. package/src/utils/common-translations.js +1 -1
  181. package/src/utils/utils.d.ts +30 -30
  182. package/src/utils/utils.js +1 -1
  183. package/theme/icons/track-changes-accept.svg +1 -1
  184. package/theme/icons/track-changes-discard.svg +1 -1
  185. package/theme/icons/track-changes.svg +1 -1
@@ -1,23 +1,23 @@
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/imagereplace
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import type Suggestion from '../suggestion';
10
- import type { Description } from '../suggestiondescriptionfactory';
11
- /**
12
- * Provides track changes plugin integration for image replace feature.
13
- */
14
- export default class TrackChangesImageReplace extends Plugin {
15
- /**
16
- * @inheritDoc
17
- */
18
- afterInit(): void;
19
- handleReplaceImageCommand(executeCommand: Function, options: {
20
- source: string;
21
- }): void;
22
- handleSuggestionDescription(suggestion: Suggestion): Description | undefined;
23
- }
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/imagereplace
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import type Suggestion from '../suggestion';
10
+ import type { Description } from '../suggestiondescriptionfactory';
11
+ /**
12
+ * Provides track changes plugin integration for image replace feature.
13
+ */
14
+ export default class TrackChangesImageReplace extends Plugin {
15
+ /**
16
+ * @inheritDoc
17
+ */
18
+ afterInit(): void;
19
+ handleReplaceImageCommand(executeCommand: Function, options: {
20
+ source: string;
21
+ }): void;
22
+ handleSuggestionDescription(suggestion: Suggestion): Description | undefined;
23
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5eb6=['format','plugins','getSuggestionCallback','_descriptionFactory','TrackChangesEditing','author','discard','formatBlock','handleReplaceImageCommand','*Format:*\x20replace\x20image\x20URL','source','editor','getSelectedElement','get','commandName','subType','accept','src','registerCustomCallback','getSuggestions','getContainedElement','commandParams','data','replaceImageSource','has','change','afterInit','locale','enableCommand','_suggestionFactory','handleSuggestionDescription','model'];(function(_0xe3b3f1,_0x5eb63d){const _0x4269ff=function(_0x439620){while(--_0x439620){_0xe3b3f1['push'](_0xe3b3f1['shift']());}};_0x4269ff(++_0x5eb63d);}(_0x5eb6,0x9f));const _0x4269=function(_0xe3b3f1,_0x5eb63d){_0xe3b3f1=_0xe3b3f1-0x0;let _0x4269ff=_0x5eb6[_0xe3b3f1];return _0x4269ff;};import{Plugin as _0x16477d}from'ckeditor5/src/core';import{getTranslation as _0x1d7968}from'../utils/common-translations';export default class Y extends _0x16477d{[_0x4269('0x1b')](){if(!this[_0x4269('0xc')][_0x4269('0x2')][_0x4269('0x19')]('ImageEditing'))return;const _0x43867e=this[_0x4269('0xc')]['plugins'][_0x4269('0xe')]('TrackChangesEditing');_0x43867e[_0x4269('0x1d')](_0x4269('0x18'),(_0x538ead,_0x4c05b2)=>this[_0x4269('0x9')](_0x538ead,_0x4c05b2)),_0x43867e[_0x4269('0x1e')][_0x4269('0x13')](_0x4269('0x8'),'replaceImageSource',_0x4269('0x11'),_0x43867e['_suggestionFactory'][_0x4269('0x3')](_0x4269('0x8'),null,'discard')),_0x43867e[_0x4269('0x1e')][_0x4269('0x13')](_0x4269('0x8'),_0x4269('0x18'),_0x4269('0x7'),_0x43867e['_suggestionFactory'][_0x4269('0x3')](_0x4269('0x8'),null,_0x4269('0x11'))),_0x43867e[_0x4269('0x4')]['registerDescriptionCallback'](_0x447b10=>this[_0x4269('0x1f')](_0x447b10));}[_0x4269('0x9')](_0x306176,_0x16f712){const _0x310bf5=this[_0x4269('0xc')][_0x4269('0x2')][_0x4269('0xe')](_0x4269('0x5')),_0x46ea08=this['editor'][_0x4269('0x0')]['document']['selection'][_0x4269('0xd')]();this[_0x4269('0xc')][_0x4269('0x0')][_0x4269('0x1a')](()=>{let _0x3bdeb8=_0x46ea08['getAttribute'](_0x4269('0x12'));const _0x57fee0=this[_0x4269('0xc')][_0x4269('0x2')][_0x4269('0xe')]('Users')['me'];for(const _0x526cb5 of _0x310bf5[_0x4269('0x14')]({'skipNotAttached':!0x0})){const _0x1b91f1=_0x526cb5[_0x4269('0x15')]();if('replaceImageSource'===_0x526cb5[_0x4269('0x10')]&&_0x1b91f1===_0x46ea08){_0x526cb5[_0x4269('0x6')]!==_0x57fee0&&_0x526cb5[_0x4269('0x7')](),_0x3bdeb8=_0x526cb5[_0x4269('0x17')][_0x4269('0x16')][0x0][_0x4269('0xb')];break;}}_0x306176(_0x16f712),_0x310bf5['markBlockFormat'](_0x46ea08,{'commandName':'replaceImageSource','commandParams':[{'source':_0x3bdeb8}]},[],_0x4269('0x18'));});}[_0x4269('0x1f')](_0x354dc9){const {data:_0x9b5a5}=_0x354dc9;if(_0x9b5a5&&_0x4269('0x18')===_0x9b5a5[_0x4269('0xf')]){const _0x237b52=_0x4269('0xa');return{'type':_0x4269('0x1'),'content':_0x1d7968(this[_0x4269('0xc')][_0x4269('0x1c')],_0x237b52)};}}}
23
+ const _0xf3c3=['has','selection','registerCustomCallback','get','author','source','data','enableCommand','handleSuggestionDescription','handleReplaceImageCommand','src','ImageEditing','_suggestionFactory','getSuggestionCallback','locale','afterInit','getContainedElement','getSuggestions','commandParams','commandName','markBlockFormat','accept','plugins','TrackChangesEditing','discard','Users','editor','replaceImageSource','format','*Format:*\x20replace\x20image\x20URL','formatBlock','change','getSelectedElement'];(function(_0x5447ff,_0xf3c35c){const _0x270773=function(_0x5e7a48){while(--_0x5e7a48){_0x5447ff['push'](_0x5447ff['shift']());}};_0x270773(++_0xf3c35c);}(_0xf3c3,0x1c6));const _0x2707=function(_0x5447ff,_0xf3c35c){_0x5447ff=_0x5447ff-0x0;let _0x270773=_0xf3c3[_0x5447ff];return _0x270773;};import{Plugin as _0x4bfaf2}from'ckeditor5/src/core';import{getTranslation as _0x4abe83}from'../utils/common-translations';export default class Z extends _0x4bfaf2{[_0x2707('0x17')](){if(!this[_0x2707('0x1')][_0x2707('0x1e')][_0x2707('0x8')](_0x2707('0x13')))return;const _0x2b4b29=this['editor']['plugins'][_0x2707('0xb')](_0x2707('0x1f'));_0x2b4b29[_0x2707('0xf')](_0x2707('0x2'),(_0x3d784c,_0x3f04cc)=>this[_0x2707('0x11')](_0x3d784c,_0x3f04cc)),_0x2b4b29[_0x2707('0x14')][_0x2707('0xa')](_0x2707('0x5'),'replaceImageSource',_0x2707('0x1d'),_0x2b4b29['_suggestionFactory'][_0x2707('0x15')](_0x2707('0x5'),null,'discard')),_0x2b4b29['_suggestionFactory'][_0x2707('0xa')](_0x2707('0x5'),_0x2707('0x2'),_0x2707('0x20'),_0x2b4b29['_suggestionFactory']['getSuggestionCallback'](_0x2707('0x5'),null,_0x2707('0x1d'))),_0x2b4b29['_descriptionFactory']['registerDescriptionCallback'](_0x4bca43=>this[_0x2707('0x10')](_0x4bca43));}['handleReplaceImageCommand'](_0x12ae28,_0x28850f){const _0x5184ac=this['editor'][_0x2707('0x1e')][_0x2707('0xb')](_0x2707('0x1f')),_0x218744=this[_0x2707('0x1')]['model']['document'][_0x2707('0x9')][_0x2707('0x7')]();this[_0x2707('0x1')]['model'][_0x2707('0x6')](()=>{let _0x3a7219=_0x218744['getAttribute'](_0x2707('0x12'));const _0x427c01=this[_0x2707('0x1')][_0x2707('0x1e')][_0x2707('0xb')](_0x2707('0x0'))['me'];for(const _0x27c9f6 of _0x5184ac[_0x2707('0x19')]({'skipNotAttached':!0x0})){const _0x57b50b=_0x27c9f6[_0x2707('0x18')]();if(_0x2707('0x2')===_0x27c9f6['subType']&&_0x57b50b===_0x218744){_0x27c9f6[_0x2707('0xc')]!==_0x427c01&&_0x27c9f6[_0x2707('0x20')](),_0x3a7219=_0x27c9f6[_0x2707('0xe')][_0x2707('0x1a')][0x0][_0x2707('0xd')];break;}}_0x12ae28(_0x28850f),_0x5184ac[_0x2707('0x1c')](_0x218744,{'commandName':_0x2707('0x2'),'commandParams':[{'source':_0x3a7219}]},[],_0x2707('0x2'));});}[_0x2707('0x10')](_0x1915b4){const {data:_0x24ccb6}=_0x1915b4;if(_0x24ccb6&&'replaceImageSource'===_0x24ccb6[_0x2707('0x1b')]){const _0x379186=_0x2707('0x4');return{'type':_0x2707('0x3'),'content':_0x4abe83(this['editor'][_0x2707('0x16')],_0x379186)};}}}
@@ -1,18 +1,18 @@
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/importword
7
- */
8
- import { Plugin, type Editor } from 'ckeditor5/src/core';
9
- /**
10
- * Provides track changes plugin integration for the import from Word feature.
11
- */
12
- export default class TrackChangesImportWord extends Plugin {
13
- constructor(editor: Editor);
14
- /**
15
- * @inheritDoc
16
- */
17
- afterInit(): void;
18
- }
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/importword
7
+ */
8
+ import { Plugin, type Editor } from 'ckeditor5/src/core';
9
+ /**
10
+ * Provides track changes plugin integration for the import from Word feature.
11
+ */
12
+ export default class TrackChangesImportWord extends Plugin {
13
+ constructor(editor: Editor);
14
+ /**
15
+ * @inheritDoc
16
+ */
17
+ afterInit(): void;
18
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4070=['execute','value','TrackChangesEditing','_trackChangesValueDuringImport','_setSuggestionData','bind','dataInsert','collaboration_features','commands','_handleImportedData','afterInit','trackChanges','editor','listenTo','track_changes','_trackChangesExecuted','get','Users','enableCommand','plugins','forEach','lowest','importWord'];(function(_0x31605c,_0x4070a2){const _0x2a4c47=function(_0x24a390){while(--_0x24a390){_0x31605c['push'](_0x31605c['shift']());}};_0x2a4c47(++_0x4070a2);}(_0x4070,0x133));const _0x2a4c=function(_0x31605c,_0x4070a2){_0x31605c=_0x31605c-0x0;let _0x2a4c47=_0x4070[_0x31605c];return _0x2a4c47;};import{Plugin as _0x124ea5}from'ckeditor5/src/core';export default class Z extends _0x124ea5{constructor(_0x522da3){super(_0x522da3),this[_0x2a4c('0x12')]=!0x1,this[_0x2a4c('0x7')]=!0x1;}[_0x2a4c('0x2')](){const _0x324bab=this['editor'],_0x2105b0=_0x324bab['commands']['get'](_0x2a4c('0xe')),_0x1bda94=_0x324bab['commands'][_0x2a4c('0x8')]('trackChanges');_0x2105b0&&(_0x2105b0['on'](_0x2a4c('0xf'),(_0x446b7d,[,_0x21186e])=>{this[_0x2a4c('0x12')]=_0x1bda94[_0x2a4c('0x10')],_0x21186e[_0x2a4c('0x16')][_0x2a4c('0x6')]=!this[_0x2a4c('0x12')];},{'priority':'high'}),this[_0x2a4c('0x5')](_0x2105b0,_0x2a4c('0x15'),this['_handleImportedData'][_0x2a4c('0x14')](this)),this[_0x2a4c('0x5')](_0x2105b0,_0x2a4c('0x15'),()=>{this[_0x2a4c('0x7')]&&(_0x1bda94[_0x2a4c('0xf')](),this['_trackChangesExecuted']=!0x1);},{'priority':_0x2a4c('0xd')}),_0x324bab[_0x2a4c('0xb')][_0x2a4c('0x8')](_0x2a4c('0x11'))[_0x2a4c('0xa')](_0x2a4c('0xe')));}[_0x2a4c('0x1')](_0x508f48,_0x534377){const {suggestions:_0x14f8f2}=_0x534377,_0x44d81d=this[_0x2a4c('0x4')][_0x2a4c('0x0')][_0x2a4c('0x8')](_0x2a4c('0x3')),_0xe3b8b1=_0x44d81d[_0x2a4c('0x10')];this[_0x2a4c('0x12')]!==_0xe3b8b1&&(_0x44d81d['execute'](),this[_0x2a4c('0x7')]=!0x0),_0x14f8f2&&_0x14f8f2[_0x2a4c('0xc')](({id:_0x341282,type:_0x51ee25,author:_0x27c37e,created_at:_0x1cdc5e})=>{const _0x462b4b={'id':_0x341282,'type':_0x51ee25,'authorId':this[_0x2a4c('0x4')][_0x2a4c('0xb')][_0x2a4c('0x8')](_0x2a4c('0x9'))['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x27c37e,'createdAt':_0x1cdc5e?new Date(_0x1cdc5e):new Date(),'source':_0x2a4c('0xe')}}};this[_0x2a4c('0x4')][_0x2a4c('0xb')][_0x2a4c('0x8')](_0x2a4c('0x11'))[_0x2a4c('0x13')](_0x462b4b);});}}
23
+ const _0x54db=['enableCommand','Users','TrackChangesEditing','listenTo','_trackChangesExecuted','trackChanges','_setSuggestionData','_trackChangesValueDuringImport','dataInsert','editor','plugins','forEach','lowest','high','importWord','execute','commands','bind','get','track_changes','collaboration_features','value','afterInit','_handleImportedData'];(function(_0x24fa38,_0x54db3e){const _0x5d15d5=function(_0x5de8af){while(--_0x5de8af){_0x24fa38['push'](_0x24fa38['shift']());}};_0x5d15d5(++_0x54db3e);}(_0x54db,0xff));const _0x5d15=function(_0x24fa38,_0x54db3e){_0x24fa38=_0x24fa38-0x0;let _0x5d15d5=_0x54db[_0x24fa38];return _0x5d15d5;};import{Plugin as _0x23c195}from'ckeditor5/src/core';export default class tt extends _0x23c195{constructor(_0x56c92b){super(_0x56c92b),this[_0x5d15('0x10')]=!0x1,this[_0x5d15('0xd')]=!0x1;}[_0x5d15('0x7')](){const _0x1715d3=this['editor'],_0xf241f6=_0x1715d3[_0x5d15('0x1')][_0x5d15('0x3')](_0x5d15('0x17')),_0x49e5ac=_0x1715d3[_0x5d15('0x1')][_0x5d15('0x3')](_0x5d15('0xe'));_0xf241f6&&(_0xf241f6['on'](_0x5d15('0x0'),(_0x203677,[,_0x560ef5])=>{this[_0x5d15('0x10')]=_0x49e5ac[_0x5d15('0x6')],_0x560ef5[_0x5d15('0x5')][_0x5d15('0x4')]=!this[_0x5d15('0x10')];},{'priority':_0x5d15('0x16')}),this[_0x5d15('0xc')](_0xf241f6,_0x5d15('0x11'),this[_0x5d15('0x8')][_0x5d15('0x2')](this)),this['listenTo'](_0xf241f6,_0x5d15('0x11'),()=>{this[_0x5d15('0xd')]&&(_0x49e5ac['execute'](),this[_0x5d15('0xd')]=!0x1);},{'priority':_0x5d15('0x15')}),_0x1715d3[_0x5d15('0x13')][_0x5d15('0x3')](_0x5d15('0xb'))[_0x5d15('0x9')](_0x5d15('0x17')));}[_0x5d15('0x8')](_0x12f349,_0x4fdb0b){const {suggestions:_0x1dc88c}=_0x4fdb0b,_0x572d21=this[_0x5d15('0x12')]['commands']['get'](_0x5d15('0xe')),_0x524ce3=_0x572d21['value'];this[_0x5d15('0x10')]!==_0x524ce3&&(_0x572d21[_0x5d15('0x0')](),this['_trackChangesExecuted']=!0x0),_0x1dc88c&&_0x1dc88c[_0x5d15('0x14')](({id:_0x216b01,type:_0x4c9289,author:_0x5e05d5,created_at:_0x5590aa})=>{const _0x1dc3d6={'id':_0x216b01,'type':_0x4c9289,'authorId':this[_0x5d15('0x12')]['plugins']['get'](_0x5d15('0xa'))['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5e05d5,'createdAt':_0x5590aa?new Date(_0x5590aa):new Date(),'source':_0x5d15('0x17')}}};this[_0x5d15('0x12')]['plugins'][_0x5d15('0x3')]('TrackChangesEditing')[_0x5d15('0xf')](_0x1dc3d6);});}}
@@ -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/indent
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- /**
10
- * Provides track changes plugin integration for {@link module:indent/indent~Indent indent/outdent feature}.
11
- */
12
- export default class TrackChangesIndent 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/indent
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ /**
10
+ * Provides track changes plugin integration for {@link module:indent/indent~Indent indent/outdent feature}.
11
+ */
12
+ export default class TrackChangesIndent extends Plugin {
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ afterInit(): void;
17
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1d72=['checkAttribute','indentBlock','get','markBlockFormat','model','TrackChangesEditing','has','outdentBlock','editor','afterInit','schema','getItemLabel','plugins','getItems','document','commandName','format','*Indent:*\x20%0','filter','indent','enableCommand','IndentBlock','_descriptionFactory','selection','locale','*Outdent:*\x20%0','registerDescriptionCallback','blockIndent','from'];(function(_0x281418,_0x1d72e2){const _0x29d4ce=function(_0x183907){while(--_0x183907){_0x281418['push'](_0x281418['shift']());}};_0x29d4ce(++_0x1d72e2);}(_0x1d72,0x10c));const _0x29d4=function(_0x281418,_0x1d72e2){_0x281418=_0x281418-0x0;let _0x29d4ce=_0x1d72[_0x281418];return _0x29d4ce;};import{Plugin as _0x341b37}from'ckeditor5/src/core';import{getTranslation as _0xf6c91}from'../utils/common-translations';export default class tt extends _0x341b37{[_0x29d4('0x2')](){const _0x45d27e=this[_0x29d4('0x1')],_0x3ce52d=_0x45d27e['plugins'][_0x29d4('0x18')](_0x29d4('0x1b'));_0x45d27e[_0x29d4('0x5')]['has']('IndentEditing')&&(_0x3ce52d[_0x29d4('0xd')](_0x29d4('0xc')),_0x3ce52d['enableCommand']('outdent'));const _0xd8af6e=_0x45d27e[_0x29d4('0x11')];if(_0x45d27e[_0x29d4('0x5')][_0x29d4('0x1c')](_0x29d4('0xe'))){for(const _0x1af25c of[_0x29d4('0x17'),_0x29d4('0x0')])_0x3ce52d['enableCommand'](_0x1af25c,()=>{const _0x572cce=Array[_0x29d4('0x15')](this[_0x29d4('0x1')]['model'][_0x29d4('0x7')][_0x29d4('0x10')]['getSelectedBlocks']())[_0x29d4('0xb')](_0x5e248b=>this[_0x29d4('0x1')][_0x29d4('0x1a')][_0x29d4('0x3')][_0x29d4('0x16')](_0x5e248b,_0x29d4('0x14')));_0x45d27e[_0x29d4('0x1a')]['change'](()=>{for(const _0x8d7840 of _0x572cce)_0x3ce52d[_0x29d4('0x19')](_0x8d7840,{'commandName':_0x1af25c,'commandParams':[{'value':''}],'formatGroupId':_0x29d4('0x17')});});});_0x3ce52d[_0x29d4('0xf')][_0x29d4('0x13')](_0x3a0a0f=>{const {data:_0x195cd6}=_0x3a0a0f;if(!_0x195cd6)return;if(_0x29d4('0x17')!=_0x195cd6[_0x29d4('0x8')]&&_0x29d4('0x0')!=_0x195cd6[_0x29d4('0x8')])return;const _0xc5407e=_0x3a0a0f[_0x29d4('0x6')]()[0x0],_0xfd5d55=_0x3ce52d[_0x29d4('0xf')][_0x29d4('0x4')](_0xc5407e);return'indentBlock'==_0x195cd6['commandName']?{'type':_0x29d4('0x9'),'content':_0xf6c91(_0xd8af6e,_0x29d4('0xa'),_0xfd5d55)}:'outdentBlock'==_0x195cd6['commandName']?{'type':_0x29d4('0x9'),'content':_0xf6c91(_0xd8af6e,_0x29d4('0x12'),_0xfd5d55)}:void 0x0;});}}}
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;});}}}
@@ -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 _0x237a=['init','get','editor','input','plugins','TrackChangesEditing'];(function(_0x6f8dd8,_0x237aff){var _0x1171bc=function(_0x5731d5){while(--_0x5731d5){_0x6f8dd8['push'](_0x6f8dd8['shift']());}};_0x1171bc(++_0x237aff);}(_0x237a,0x81));var _0x1171=function(_0x6f8dd8,_0x237aff){_0x6f8dd8=_0x6f8dd8-0x0;var _0x1171bc=_0x237a[_0x6f8dd8];return _0x1171bc;};import{Plugin as _0x3de623}from'ckeditor5/src/core';import{Input as _0xa67c86}from'ckeditor5/src/typing';export default class it extends _0x3de623{static get['requires'](){return[_0xa67c86];}[_0x1171('0x3')](){this[_0x1171('0x5')][_0x1171('0x1')][_0x1171('0x4')](_0x1171('0x2'))['enableCommand'](_0x1171('0x0'));}}
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'));}}
@@ -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 _0x559d=['from','commandParams','getFirstPosition','*Remove\x20link*','_descriptionFactory','selection','document','format','change','model','hasAttribute','isCollapsed','registerDescriptionCallback','getFirstRange','plugins','enableCommand','get','link','commandName','markInlineFormat','getRanges','getAttribute','has','editor','*Set\x20link:*\x20%0','unlink','linkHref','LinkEditing'];(function(_0x3f6949,_0x559dc4){const _0x5ded4a=function(_0x325bdc){while(--_0x325bdc){_0x3f6949['push'](_0x3f6949['shift']());}};_0x5ded4a(++_0x559dc4);}(_0x559d,0x16e));const _0x5ded=function(_0x3f6949,_0x559dc4){_0x3f6949=_0x3f6949-0x0;let _0x5ded4a=_0x559d[_0x3f6949];return _0x5ded4a;};import{Plugin as _0x2db016}from'ckeditor5/src/core';import{findAttributeRange as _0x2dfb7}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x1714dc}from'./utils';import{getTranslation as _0x38ba4b}from'../utils/common-translations';export default class et extends _0x2db016{['afterInit'](){const _0x17d2be=this[_0x5ded('0x15')];if(!_0x17d2be[_0x5ded('0xc')][_0x5ded('0x14')](_0x5ded('0x19')))return;const _0x1d4487=_0x17d2be[_0x5ded('0xc')][_0x5ded('0xe')]('TrackChangesEditing');_0x1d4487[_0x5ded('0xd')]('link',(_0x2a9ff0,_0x13cf21)=>{const _0x5d9418=_0x17d2be['model'][_0x5ded('0x4')][_0x5ded('0x3')];let _0x24d1f3=[];if(_0x5d9418[_0x5ded('0x9')]){if(!_0x5d9418[_0x5ded('0x8')](_0x5ded('0x18')))return void _0x2a9ff0(_0x13cf21);{const _0x52caf4=_0x2dfb7(_0x5d9418[_0x5ded('0x0')](),_0x5ded('0x18'),_0x5d9418[_0x5ded('0x13')](_0x5ded('0x18')),_0x17d2be[_0x5ded('0x7')]);_0x24d1f3=[_0x52caf4];}}else _0x24d1f3=Array[_0x5ded('0x1a')](_0x5d9418[_0x5ded('0x12')]());_0x17d2be[_0x5ded('0x7')][_0x5ded('0x6')](()=>{for(const _0x53a030 of _0x24d1f3)_0x1d4487[_0x5ded('0x11')](_0x53a030,{'commandName':_0x5ded('0xf'),'commandParams':[_0x13cf21]});});}),_0x1d4487[_0x5ded('0xd')](_0x5ded('0x17'),()=>{const _0x419067=this[_0x5ded('0x15')][_0x5ded('0x7')],_0x361cae=_0x419067[_0x5ded('0x4')]['selection'];_0x419067[_0x5ded('0x6')](()=>{let _0x1e22a3=[];if(_0x361cae['isCollapsed'])_0x1e22a3=[_0x2dfb7(_0x361cae[_0x5ded('0x0')](),'linkHref',_0x361cae['getAttribute'](_0x5ded('0x18')),_0x17d2be['model'])];else _0x1e22a3=_0x1714dc(_0x5ded('0x18'),_0x361cae[_0x5ded('0xb')](),_0x17d2be[_0x5ded('0x7')]);for(const _0x5608b5 of _0x1e22a3)_0x1d4487[_0x5ded('0x11')](_0x5608b5,{'commandName':_0x5ded('0x17'),'commandParams':[]});});}),_0x1d4487[_0x5ded('0x2')][_0x5ded('0xa')](_0x464f3f=>{const {data:_0x56b2ee}=_0x464f3f,_0x26bdcd=_0x17d2be['locale'];if(_0x56b2ee){if(_0x5ded('0xf')==_0x56b2ee[_0x5ded('0x10')]){const _0x2e6825=_0x56b2ee[_0x5ded('0x1b')][0x0];return{'type':_0x5ded('0x5'),'content':_0x38ba4b(_0x26bdcd,_0x5ded('0x16'),'\x22'+_0x2e6825+'\x22')};}return _0x5ded('0x17')==_0x56b2ee[_0x5ded('0x10')]?{'type':_0x5ded('0x5'),'content':_0x38ba4b(_0x26bdcd,_0x5ded('0x1'))}:void 0x0;}});}}
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;}});}}
@@ -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 _0x2235=['selection','slice','blockName','todoListChecked','parent','getAttribute','ELEMENT_NUMBERED_LIST','previousSibling','ELEMENT_BULLETED_LIST','element','filter','model','push','change','checkTodoList','isObject','*Change\x20to:*\x20%0','from','commandName','value','editor','enableCommand','format','add','*Uncheck\x20item*','*Indent:*\x20%0','commands','get','forceValue','bulleted','createPositionAt','ELEMENT_TODO_LIST','nextSibling','commandParams','markBlockFormat','plugins','*Check\x20item*','locale','document','todoList','TrackChangesEditing','findIndex','name','outdentList','numberedList','before','numbered','afterInit','_descriptionFactory','has','indentList','createRange','length','listIndent','replace','ELEMENT_LIST_ITEM','todo','List','listItem','_selectedElements'];(function(_0x5ef86a,_0x223581){const _0x332f76=function(_0x5e1ac6){while(--_0x5e1ac6){_0x5ef86a['push'](_0x5ef86a['shift']());}};_0x332f76(++_0x223581);}(_0x2235,0x1f3));const _0x332f=function(_0x5ef86a,_0x223581){_0x5ef86a=_0x5ef86a-0x0;let _0x332f76=_0x2235[_0x5ef86a];return _0x332f76;};import{Plugin as _0x22c9d1}from'ckeditor5/src/core';import{getTranslation as _0x351e0a}from'../utils/common-translations';export default class st extends _0x22c9d1{[_0x332f('0x1c')](){const _0x22c82a=this[_0x332f('0x1')],_0x2bb841=_0x22c82a[_0x332f('0x12')];if(!_0x22c82a[_0x332f('0x10')][_0x332f('0x1e')]('ListEditing'))return;const _0x278372=_0x22c82a[_0x332f('0x10')]['get'](_0x332f('0x15')),_0x518aa8=_0x22c82a['plugins'][_0x332f('0x1e')]('TodoListEditing');function _0x13cf85(_0x41de30){return()=>{const _0x45044b=_0x22c82a[_0x332f('0x34')][_0x332f('0x13')][_0x332f('0x29')],_0x4c194c=_0x22c82a['commands'][_0x332f('0x8')](_0x41de30);if(_0x4c194c[_0x332f('0x0')])return void _0x22c82a['execute']('paragraph',{});const _0x38caec=_0x41de30[_0x332f('0x2a')](0x0,-0x4),_0x2b3ace=function(_0x61084a,_0x41bc56,_0x24456c){let _0x562987=Array[_0x332f('0x3a')](_0x61084a)[_0x332f('0x33')](_0x8dd748=>function(_0x4dc3df,_0x5c3037){return _0x5c3037['checkChild'](_0x4dc3df[_0x332f('0x2d')],_0x332f('0x27'))&&!_0x5c3037[_0x332f('0x38')](_0x4dc3df);}(_0x8dd748,_0x24456c));_0x562987=_0x562987[_0x332f('0x33')](_0x5a25a7=>!_0x5a25a7['is'](_0x332f('0x32'),_0x332f('0x27'))||_0x5a25a7[_0x332f('0x2e')]('listType')!=_0x41bc56);const _0x3e3d8b=new Set();for(const _0x3269d7 of _0x562987)_0x3269d7['is'](_0x332f('0x32'),_0x332f('0x27'))?_0x3e3d8b[_0x332f('0x4')](ne(_0x3269d7)):_0x3e3d8b[_0x332f('0x4')](_0x3269d7);return Array[_0x332f('0x3a')](_0x3e3d8b);}(_0x45044b['getSelectedBlocks'](),_0x38caec,_0x22c82a[_0x332f('0x34')]['schema']);_0x22c82a['model']['change'](()=>{for(const _0x56a504 of _0x2b3ace)_0x278372['markBlockFormat'](_0x56a504,{'commandName':_0x41de30,'commandParams':[{'forceValue':!_0x4c194c[_0x332f('0x0')]}],'formatGroupId':_0x332f('0x2b')},oe(_0x56a504));});};}function _0x2de9d4(_0x382048){return()=>{const _0x1ab309=function(_0x303261){let _0x1d03c3=Array[_0x332f('0x3a')](_0x303261);const _0x1053ec=_0x1d03c3[_0x332f('0x16')](_0x21c634=>_0x332f('0x27')!=_0x21c634[_0x332f('0x17')]);return _0x1053ec>-0x1&&(_0x1d03c3=_0x1d03c3[_0x332f('0x2a')](0x0,_0x1053ec)),_0x1d03c3;}(_0x22c82a[_0x332f('0x34')]['document']['selection']['getSelectedBlocks']()),_0x9c0b69=_0x22c82a[_0x332f('0x34')][_0x332f('0x20')](_0x22c82a[_0x332f('0x34')][_0x332f('0xb')](_0x1ab309[0x0],_0x332f('0x1a')),_0x22c82a['model'][_0x332f('0xb')](_0x1ab309[_0x1ab309[_0x332f('0x21')]-0x1],'end'));_0x22c82a['model'][_0x332f('0x36')](()=>{_0x278372[_0x332f('0xf')](_0x9c0b69,{'commandName':_0x382048,'commandParams':[],'formatGroupId':_0x332f('0x22')},function(_0x3d6a9b){const _0x420e05=new Set();for(const _0x567707 of _0x3d6a9b){let _0xf90503=_0x567707['nextSibling'];for(;_0xf90503&&_0xf90503[_0x332f('0x2e')](_0x332f('0x22'))>_0x567707['getAttribute'](_0x332f('0x22'));)_0x420e05[_0x332f('0x4')](_0xf90503),_0xf90503=_0xf90503[_0x332f('0xd')];}return Array[_0x332f('0x3a')](_0x420e05);}(_0x1ab309));});};}_0x278372[_0x332f('0x2')](_0x332f('0x19'),_0x13cf85('numberedList')),_0x278372[_0x332f('0x2')]('bulletedList',_0x13cf85('bulletedList')),_0x518aa8&&_0x278372['enableCommand'](_0x332f('0x14'),_0x13cf85(_0x332f('0x14'))),_0x278372['enableCommand'](_0x332f('0x1f'),_0x2de9d4(_0x332f('0x1f'))),_0x278372[_0x332f('0x2')](_0x332f('0x18'),_0x2de9d4(_0x332f('0x18'))),_0x518aa8&&_0x278372[_0x332f('0x2')](_0x332f('0x37'),()=>{const _0x2a7ce3=_0x22c82a[_0x332f('0x7')]['get'](_0x332f('0x37')),_0x41f467=Array[_0x332f('0x3a')](_0x2a7ce3[_0x332f('0x28')]);_0x41f467[_0x332f('0x33')](_0x3ae28c=>_0x3ae28c[_0x332f('0x2e')](_0x332f('0x2c'))!=_0x2a7ce3[_0x332f('0x0')]),_0x22c82a['model'][_0x332f('0x36')](()=>{for(const _0x283760 of _0x41f467)_0x278372[_0x332f('0xf')](_0x283760,{'commandName':_0x332f('0x37'),'commandParams':[{'forceValue':!_0x2a7ce3[_0x332f('0x0')]}]});});}),_0x278372[_0x332f('0x1d')]['registerElementLabel']('listItem',_0x20c131=>_0x351e0a(_0x2bb841,'ELEMENT_LIST_ITEM',_0x20c131)),_0x278372['_descriptionFactory']['registerDescriptionCallback'](_0x2abddf=>{const {data:_0x17aebe}=_0x2abddf;if(_0x17aebe){if('numberedList'==_0x17aebe[_0x332f('0x3b')]||'bulletedList'==_0x17aebe[_0x332f('0x3b')]||_0x332f('0x14')==_0x17aebe[_0x332f('0x3b')])switch(_0x17aebe[_0x332f('0x3b')][_0x332f('0x23')](_0x332f('0x26'),'')){case _0x332f('0xa'):return _0xb6a335(_0x351e0a(_0x2bb841,_0x332f('0x31')));case _0x332f('0x1b'):return _0xb6a335(_0x351e0a(_0x2bb841,_0x332f('0x2f')));case _0x332f('0x25'):return _0xb6a335(_0x351e0a(_0x2bb841,_0x332f('0xc')));}if(_0x332f('0x1f')==_0x17aebe[_0x332f('0x3b')])return{'type':'format','content':_0x351e0a(_0x2bb841,_0x332f('0x6'),_0x351e0a(_0x2bb841,_0x332f('0x24')))};if(_0x332f('0x18')==_0x17aebe[_0x332f('0x3b')])return{'type':'format','content':_0x351e0a(_0x2bb841,'*Outdent:*\x20%0',_0x351e0a(_0x2bb841,_0x332f('0x24')))};if(_0x332f('0x37')==_0x17aebe[_0x332f('0x3b')])return _0x17aebe[_0x332f('0xe')][0x0][_0x332f('0x9')]?{'type':_0x332f('0x3'),'content':_0x351e0a(_0x2bb841,_0x332f('0x11'))}:{'type':_0x332f('0x3'),'content':_0x351e0a(_0x2bb841,_0x332f('0x5'))};}function _0xb6a335(_0x4097ec){return{'type':_0x332f('0x3'),'content':_0x351e0a(_0x2bb841,_0x332f('0x39'),_0x4097ec)};}});}}function ne(_0xe47c4f){const _0xef4a29=_0xe47c4f[_0x332f('0x2e')]('listIndent');if(0x0==_0xef4a29)return _0xe47c4f;let _0x26a47a=_0xe47c4f;for(;_0xe47c4f['previousSibling']&&_0xe47c4f[_0x332f('0x30')]['is'](_0x332f('0x32'),'listItem');){const _0x5bcc9b=_0xe47c4f[_0x332f('0x30')][_0x332f('0x2e')]('listIndent');if(_0x5bcc9b==_0xef4a29)_0x26a47a=_0xe47c4f[_0x332f('0x30')];else{if(_0x5bcc9b<_0xef4a29)break;}_0xe47c4f=_0xe47c4f[_0x332f('0x30')];}return _0x26a47a;}function oe(_0x157a93){const _0x3d777b=[];if(_0x157a93['is'](_0x332f('0x32'),_0x332f('0x27'))&&_0x157a93['getAttribute'](_0x332f('0x22'))>0x0){let _0x4e3f09=_0x157a93[_0x332f('0xd')];for(;_0x4e3f09&&_0x332f('0x27')==_0x4e3f09[_0x332f('0x17')]&&_0x4e3f09['getAttribute'](_0x332f('0x22'))==_0x157a93[_0x332f('0x2e')](_0x332f('0x22'));)_0x3d777b[_0x332f('0x35')](_0x4e3f09),_0x4e3f09=_0x4e3f09[_0x332f('0xd')];}return _0x3d777b;}
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;}
@@ -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 _0x2fac=['markMultiRangeBlockFormat','getLastPosition','element','forward','list.properties','*Format:*\x20set\x20order\x20to\x20reversed','replace','commandName','has','handleDescriptions','handleListStartCommand','_descriptionFactory','listReversed','plugins','enableCommand','editor','createRange','createPositionAt','document','flat','listStart','push','_getSuggestionBlocksForListStyle','selection','unshift','listStyle','from','handleListReversedCommand','length','ListUtils','type','commandParams','_getSuggestionBlocks','change','getFirstPosition','bind','listItem','getAttribute','locale','getSelectedBlocks','getSiblingNodes','model','get','_getTranslationKeyForListStyle','backward','registerDescriptionCallback','parent','numbered','ELEMENT_','toUpperCase','getListTypeFromListStyleType','handleListStyleCommand','listType','startIndex','format','filter','map','reversed','before','TrackChangesEditing'];(function(_0x464a29,_0x2fac7a){const _0x500e24=function(_0x1ff086){while(--_0x1ff086){_0x464a29['push'](_0x464a29['shift']());}};_0x500e24(++_0x2fac7a);}(_0x2fac,0x18b));const _0x500e=function(_0x464a29,_0x2fac7a){_0x464a29=_0x464a29-0x0;let _0x500e24=_0x2fac[_0x464a29];return _0x500e24;};import{Plugin as _0x371873}from'ckeditor5/src/core';import{getTranslation as _0x27712b}from'../utils/common-translations';export default class nt extends _0x371873{['afterInit'](){if(!this[_0x500e('0x28')][_0x500e('0x26')][_0x500e('0x21')]('ListPropertiesEditing'))return;const _0x2f50d6=this[_0x500e('0x28')]['config'][_0x500e('0x7')](_0x500e('0x1d')),_0x2b69ed=this[_0x500e('0x28')]['plugins'][_0x500e('0x7')]('TrackChangesEditing');_0x2f50d6['styles']&&_0x2b69ed['enableCommand'](_0x500e('0x32'),this[_0x500e('0x10')][_0x500e('0x0')](this)),_0x2f50d6[_0x500e('0x16')]&&_0x2b69ed[_0x500e('0x27')](_0x500e('0x25'),this[_0x500e('0x34')]['bind'](this)),_0x2f50d6[_0x500e('0x12')]&&_0x2b69ed[_0x500e('0x27')](_0x500e('0x2d'),this[_0x500e('0x23')][_0x500e('0x0')](this)),_0x2b69ed[_0x500e('0x24')][_0x500e('0xa')](this[_0x500e('0x22')][_0x500e('0x0')](this));}[_0x500e('0x10')](_0x1fac02,_0x23f045={}){const _0x37b84f=this['editor'][_0x500e('0x26')][_0x500e('0x7')](_0x500e('0x18')),_0x3c6eb8=this[_0x500e('0x2f')]();this[_0x500e('0x28')][_0x500e('0x6')][_0x500e('0x3a')](()=>{_0x37b84f[_0x500e('0x19')](_0x3c6eb8,{'commandName':_0x500e('0x32'),'commandParams':[{'type':_0x23f045[_0x500e('0x37')]}],'formatGroupId':_0x500e('0x32')});});}[_0x500e('0x34')](_0x10c531,_0x6641e2={}){const _0x4dc5a5=this[_0x500e('0x28')][_0x500e('0x26')]['get']('TrackChangesEditing'),_0x138484=this[_0x500e('0x39')](_0x2ab283=>_0x2ab283['is'](_0x500e('0x1b'),_0x500e('0x1'))&&_0x500e('0xc')===_0x2ab283[_0x500e('0x2')]('listType'));if(_0x138484[_0x500e('0x35')]<0x1)return;const _0x6e85ae=_0x138484[_0x500e('0x15')](_0x2dc34f=>this[_0x500e('0x28')][_0x500e('0x6')][_0x500e('0x29')](this[_0x500e('0x28')][_0x500e('0x6')][_0x500e('0x2a')](_0x2dc34f,_0x500e('0x17')),this[_0x500e('0x28')][_0x500e('0x6')][_0x500e('0x2a')](_0x2dc34f,0x0)));this['editor'][_0x500e('0x6')][_0x500e('0x3a')](()=>{_0x4dc5a5[_0x500e('0x19')](_0x6e85ae,{'commandName':_0x500e('0x25'),'commandParams':[{'reversed':_0x6641e2[_0x500e('0x16')]}],'formatGroupId':_0x500e('0x25')});});}['handleListStartCommand'](_0x1d0c6f,_0x1e8fe5={}){const _0x19e815=this[_0x500e('0x28')][_0x500e('0x26')]['get']('TrackChangesEditing'),_0x2a5491=this[_0x500e('0x39')](_0x3eeab5=>_0x3eeab5['is']('element','listItem')&&_0x500e('0xc')===_0x3eeab5[_0x500e('0x2')](_0x500e('0x11')));if(_0x2a5491[_0x500e('0x35')]<0x1)return;const _0x18db0b=_0x2a5491['map'](_0x2aa974=>this[_0x500e('0x28')][_0x500e('0x6')][_0x500e('0x29')](this[_0x500e('0x28')][_0x500e('0x6')][_0x500e('0x2a')](_0x2aa974,'before'),this['editor'][_0x500e('0x6')]['createPositionAt'](_0x2aa974,0x0)));this[_0x500e('0x28')][_0x500e('0x6')][_0x500e('0x3a')](()=>{_0x19e815[_0x500e('0x19')](_0x18db0b,{'commandName':_0x500e('0x2d'),'commandParams':[{'startIndex':_0x1e8fe5[_0x500e('0x12')]}],'formatGroupId':'listStart'});});}[_0x500e('0x22')](_0x500c97){const _0x3c793e=this[_0x500e('0x28')][_0x500e('0x3')],{data:_0xa95c9f}=_0x500c97;if(!_0xa95c9f)return;let _0x4ddf93,_0x2a7af3;switch(_0xa95c9f[_0x500e('0x20')]){case'listStyle':_0x4ddf93='*Change\x20to:*\x20%0',_0x2a7af3={'type':_0x500e('0x13'),'content':_0x27712b(_0x3c793e,_0x4ddf93,_0x27712b(_0x3c793e,this[_0x500e('0x8')](_0xa95c9f[_0x500e('0x38')][0x0][_0x500e('0x37')])))};break;case _0x500e('0x25'):_0x4ddf93=_0xa95c9f[_0x500e('0x38')][0x0][_0x500e('0x16')]?_0x500e('0x1e'):'*Format:*\x20set\x20order\x20to\x20regular',_0x2a7af3={'type':_0x500e('0x13'),'content':_0x27712b(_0x3c793e,_0x4ddf93)};break;case _0x500e('0x2d'):_0x4ddf93='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2a7af3={'type':_0x500e('0x13'),'content':_0x27712b(_0x3c793e,_0x4ddf93,_0xa95c9f[_0x500e('0x38')][0x0][_0x500e('0x12')])};}return _0x2a7af3;}[_0x500e('0x2f')](){var _0x37a38b,_0x4099bc,_0x36b8fc,_0x8c7b55;const _0x2e7e23=this[_0x500e('0x28')][_0x500e('0x26')]['get']('ListUtils');let _0x979c35=Array[_0x500e('0x33')](this[_0x500e('0x28')][_0x500e('0x6')][_0x500e('0x2b')][_0x500e('0x30')]['getSelectedBlocks']());return(null===(_0x37a38b=_0x979c35[0x0])||void 0x0===_0x37a38b?void 0x0:_0x37a38b['is'](_0x500e('0x1b'),'listItem'))&&_0x979c35[_0x500e('0x31')](..._0x2e7e23[_0x500e('0x5')](this[_0x500e('0x28')]['model'][_0x500e('0x2b')][_0x500e('0x30')]['getFirstPosition'](),_0x500e('0x9'))),(null===(_0x4099bc=_0x979c35[_0x979c35[_0x500e('0x35')]-0x1])||void 0x0===_0x4099bc?void 0x0:_0x4099bc['is']('element',_0x500e('0x1')))&&_0x979c35[_0x500e('0x2e')](..._0x2e7e23[_0x500e('0x5')](this[_0x500e('0x28')][_0x500e('0x6')][_0x500e('0x2b')][_0x500e('0x30')][_0x500e('0x1a')](),_0x500e('0x1c'))),_0x979c35=[...new Set(_0x979c35)],(null===(_0x8c7b55=null===(_0x36b8fc=this[_0x500e('0x28')][_0x500e('0x6')][_0x500e('0x2b')]['selection'][_0x500e('0x3b')]())||void 0x0===_0x36b8fc?void 0x0:_0x36b8fc[_0x500e('0xb')])||void 0x0===_0x8c7b55?void 0x0:_0x8c7b55['is'](_0x500e('0x1b'),_0x500e('0x1')))&&(_0x979c35=_0x979c35[_0x500e('0x14')](_0x3f8ea9=>_0x3f8ea9['is'](_0x500e('0x1b'),_0x500e('0x1')))),_0x979c35;}[_0x500e('0x39')](_0x19cd5d){const _0x1b0978=this['editor'][_0x500e('0x26')]['get'](_0x500e('0x36'));let _0x32e23b=Array['from'](this[_0x500e('0x28')]['model'][_0x500e('0x2b')]['selection'][_0x500e('0x4')]())[_0x500e('0x14')](_0x19cd5d)[_0x500e('0x15')](_0x3cf96b=>{const _0x21796d=this[_0x500e('0x28')][_0x500e('0x6')]['createPositionAt'](_0x3cf96b,0x0);return[..._0x1b0978[_0x500e('0x5')](_0x21796d,_0x500e('0x9')),..._0x1b0978[_0x500e('0x5')](_0x21796d,'forward')];})[_0x500e('0x2c')]();return _0x32e23b=[...new Set(_0x32e23b)],_0x32e23b;}[_0x500e('0x8')](_0x3a5ed8){return _0x500e('0xd')+this['editor'][_0x500e('0x26')][_0x500e('0x7')](_0x500e('0x36'))[_0x500e('0xf')](_0x3a5ed8)[_0x500e('0xe')]()+'_LIST_'+_0x3a5ed8[_0x500e('0xe')]()[_0x500e('0x1f')](/-/g,'_');}}
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,'_');}}