@ckeditor/ckeditor5-track-changes 38.2.0-alpha.1 → 39.0.1

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 (137) hide show
  1. package/README.md +0 -1
  2. package/build/track-changes.js +2 -2
  3. package/build/translations/gl.js +1 -1
  4. package/build/translations/sq.js +1 -0
  5. package/lang/translations/gl.po +23 -23
  6. package/lang/translations/sq.po +487 -0
  7. package/package.json +4 -5
  8. package/src/augmentation.d.ts +6 -2
  9. package/src/augmentation.js +1 -1
  10. package/src/commands/acceptsuggestioncommand.d.ts +6 -2
  11. package/src/commands/acceptsuggestioncommand.js +2 -2
  12. package/src/commands/discardsuggestioncommand.d.ts +6 -2
  13. package/src/commands/discardsuggestioncommand.js +2 -2
  14. package/src/commands/executeonallsuggestionscommand.d.ts +6 -2
  15. package/src/commands/executeonallsuggestionscommand.js +2 -2
  16. package/src/commands/executeonselectedsuggestionscommand.d.ts +6 -2
  17. package/src/commands/executeonselectedsuggestionscommand.js +2 -2
  18. package/src/commands/trackchangescommand.d.ts +5 -1
  19. package/src/commands/trackchangescommand.js +2 -2
  20. package/src/index.d.ts +16 -12
  21. package/src/index.js +2 -2
  22. package/src/integrations/alignment.d.ts +5 -1
  23. package/src/integrations/alignment.js +2 -2
  24. package/src/integrations/basicstyles.d.ts +5 -1
  25. package/src/integrations/basicstyles.js +2 -2
  26. package/src/integrations/blockquote.d.ts +5 -1
  27. package/src/integrations/blockquote.js +2 -2
  28. package/src/integrations/ckbox.d.ts +5 -1
  29. package/src/integrations/ckbox.js +2 -2
  30. package/src/integrations/codeblock.d.ts +5 -1
  31. package/src/integrations/codeblock.js +2 -2
  32. package/src/integrations/comments.d.ts +5 -1
  33. package/src/integrations/comments.js +2 -2
  34. package/src/integrations/deletecommand.d.ts +6 -2
  35. package/src/integrations/deletecommand.js +2 -2
  36. package/src/integrations/documentlist.d.ts +5 -1
  37. package/src/integrations/documentlist.js +2 -2
  38. package/src/integrations/documentlistproperties.d.ts +7 -3
  39. package/src/integrations/documentlistproperties.js +2 -2
  40. package/src/integrations/entercommand.d.ts +6 -2
  41. package/src/integrations/entercommand.js +2 -2
  42. package/src/integrations/findandreplace.d.ts +5 -1
  43. package/src/integrations/findandreplace.js +2 -2
  44. package/src/integrations/font.d.ts +5 -1
  45. package/src/integrations/font.js +2 -2
  46. package/src/integrations/formatpainter.d.ts +5 -1
  47. package/src/integrations/formatpainter.js +2 -2
  48. package/src/integrations/heading.d.ts +5 -1
  49. package/src/integrations/heading.js +2 -2
  50. package/src/integrations/highlight.d.ts +5 -1
  51. package/src/integrations/highlight.js +2 -2
  52. package/src/integrations/horizontalline.d.ts +5 -1
  53. package/src/integrations/horizontalline.js +2 -2
  54. package/src/integrations/htmlembed.d.ts +5 -1
  55. package/src/integrations/htmlembed.js +2 -2
  56. package/src/integrations/image.d.ts +5 -1
  57. package/src/integrations/image.js +2 -2
  58. package/src/integrations/imagereplace.d.ts +7 -3
  59. package/src/integrations/imagereplace.js +2 -2
  60. package/src/integrations/importword.d.ts +5 -1
  61. package/src/integrations/importword.js +2 -2
  62. package/src/integrations/indent.d.ts +5 -1
  63. package/src/integrations/indent.js +2 -2
  64. package/src/integrations/inputcommand.d.ts +6 -2
  65. package/src/integrations/inputcommand.js +2 -2
  66. package/src/integrations/link.d.ts +5 -1
  67. package/src/integrations/link.js +2 -2
  68. package/src/integrations/list.d.ts +5 -1
  69. package/src/integrations/list.js +2 -2
  70. package/src/integrations/listproperties.d.ts +7 -3
  71. package/src/integrations/listproperties.js +2 -2
  72. package/src/integrations/mediaembed.d.ts +5 -1
  73. package/src/integrations/mediaembed.js +2 -2
  74. package/src/integrations/mention.d.ts +5 -1
  75. package/src/integrations/mention.js +2 -2
  76. package/src/integrations/pagebreak.d.ts +5 -1
  77. package/src/integrations/pagebreak.js +2 -2
  78. package/src/integrations/paragraph.d.ts +5 -1
  79. package/src/integrations/paragraph.js +2 -2
  80. package/src/integrations/removeformat.d.ts +5 -1
  81. package/src/integrations/removeformat.js +2 -2
  82. package/src/integrations/restrictededitingmode.d.ts +5 -1
  83. package/src/integrations/restrictededitingmode.js +2 -2
  84. package/src/integrations/shiftentercommand.d.ts +6 -2
  85. package/src/integrations/shiftentercommand.js +2 -2
  86. package/src/integrations/standardeditingmode.d.ts +5 -1
  87. package/src/integrations/standardeditingmode.js +2 -2
  88. package/src/integrations/style.d.ts +5 -1
  89. package/src/integrations/style.js +2 -2
  90. package/src/integrations/table.d.ts +5 -1
  91. package/src/integrations/table.js +2 -2
  92. package/src/integrations/tablecaption.d.ts +6 -2
  93. package/src/integrations/tablecaption.js +2 -2
  94. package/src/integrations/tableclipboard.d.ts +4 -3
  95. package/src/integrations/tableclipboard.js +2 -2
  96. package/src/integrations/tablecolumnresize.d.ts +8 -4
  97. package/src/integrations/tablecolumnresize.js +2 -2
  98. package/src/integrations/tableheadings.d.ts +6 -2
  99. package/src/integrations/tableheadings.js +2 -2
  100. package/src/integrations/tablemergesplit.d.ts +6 -2
  101. package/src/integrations/tablemergesplit.js +2 -2
  102. package/src/integrations/tableofcontents.d.ts +5 -1
  103. package/src/integrations/tableofcontents.js +2 -2
  104. package/src/integrations/tableproperties.d.ts +8 -4
  105. package/src/integrations/tableproperties.js +2 -2
  106. package/src/integrations/template.d.ts +5 -1
  107. package/src/integrations/template.js +2 -2
  108. package/src/integrations/title.d.ts +5 -1
  109. package/src/integrations/title.js +2 -2
  110. package/src/integrations/undo.d.ts +5 -1
  111. package/src/integrations/undo.js +2 -2
  112. package/src/integrations/utils.d.ts +7 -3
  113. package/src/integrations/utils.js +2 -2
  114. package/src/suggestion.d.ts +15 -5
  115. package/src/suggestion.js +2 -2
  116. package/src/suggestiondescriptionfactory.d.ts +5 -5
  117. package/src/suggestiondescriptionfactory.js +2 -2
  118. package/src/trackchanges.d.ts +10 -6
  119. package/src/trackchanges.js +2 -2
  120. package/src/trackchangesconfig.d.ts +5 -1
  121. package/src/trackchangesconfig.js +1 -1
  122. package/src/trackchangesdata.d.ts +6 -2
  123. package/src/trackchangesdata.js +2 -2
  124. package/src/trackchangesediting.d.ts +55 -51
  125. package/src/trackchangesediting.js +2 -2
  126. package/src/trackchangesui.d.ts +7 -3
  127. package/src/trackchangesui.js +2 -2
  128. package/src/ui/suggestioncontroller.d.ts +7 -6
  129. package/src/ui/suggestioncontroller.js +2 -2
  130. package/src/ui/view/basesuggestionthreadview.d.ts +10 -6
  131. package/src/ui/view/basesuggestionthreadview.js +2 -2
  132. package/src/ui/view/suggestionthreadview.d.ts +7 -7
  133. package/src/ui/view/suggestionthreadview.js +2 -2
  134. package/src/utils/common-translations.d.ts +5 -1
  135. package/src/utils/common-translations.js +2 -2
  136. package/src/utils/utils.d.ts +8 -4
  137. package/src/utils/utils.js +2 -2
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4a1a=['*Split\x20cell:*\x20vertically','containsRange','_descriptionFactory','type','splitTableCellHorizontally','mergeTableCellRight','mergeTableCells','createRangeOn','_tablePostFixingSubtypes','insertion','isEnabled','_areMergableCells','execute','change','add','mergeTableCellDown','commandName','fromRange','plugins','cell','TableUtils','tableCell','commands','registerCustomCallback','from','map','_areSelectedCellsMergable','selection','stop','size','getSuggestions','TableEditing','direction','splitTableCellVertically','mergeTableCellUp','createTableWalker','findAncestor','find','highest','author','document','get','setSelection','push','format','filter','set:isEnabled','accept','*Merge\x20cells*','mergeTableCellLeft','formatBlock','getRanges','_isForcedDefaultExecutionBlock','getFirstPosition','TrackChangesEditing','requires','length','afterInit','registerDescriptionCallback','_suggestionFactory','table','element','markMultiRangeBlockFormat','getCellLocation','getSelectionAffectedTableCells','root','enableCommand','markBlockFormat','locale','deletion','forceDefaultExecution','value','editor','trackChanges','model','getAncestors','horizontally'];(function(_0x4ecbbf,_0x4a1a11){const _0x4abf47=function(_0x320df0){while(--_0x320df0){_0x4ecbbf['push'](_0x4ecbbf['shift']());}};_0x4abf47(++_0x4a1a11);}(_0x4a1a,0x1af));const _0x4abf=function(_0x4ecbbf,_0x4a1a11){_0x4ecbbf=_0x4ecbbf-0x0;let _0x4abf47=_0x4a1a[_0x4ecbbf];return _0x4abf47;};import{Plugin as _0x4afcfd}from'ckeditor5/src/core.js';import _0x239696 from'./table.js';import{LiveRange as _0x40dfd3}from'ckeditor5/src/engine.js';import{getTranslation as _0x367979}from'../utils/common-translations.js';export default class dt extends _0x4afcfd{static get[_0x4abf('0x9')](){return[_0x239696];}[_0x4abf('0xb')](){const _0x33911f=this['editor'],_0x2dd53e=_0x33911f['model'][_0x4abf('0x47')][_0x4abf('0x3a')],_0x498140=_0x33911f[_0x4abf('0x16')];if(!_0x33911f['plugins']['has'](_0x4abf('0x3e')))return;const _0x1ca0b3=_0x33911f[_0x4abf('0x31')]['get'](_0x4abf('0x8')),_0x741136=_0x33911f[_0x4abf('0x31')][_0x4abf('0x48')](_0x4abf('0x33')),_0x54a3c3=_0x33911f[_0x4abf('0x31')]['get'](_0x239696);_0x54a3c3[_0x4abf('0x27')][_0x4abf('0x4a')](_0x4abf('0x25')),_0x1ca0b3[_0x4abf('0x14')]('mergeTableCells',()=>{const _0x273ae1=_0x741136[_0x4abf('0x12')](_0x33911f[_0x4abf('0x1c')]['document'][_0x4abf('0x3a')]);_0x33911f[_0x4abf('0x1c')][_0x4abf('0x2c')](()=>{_0x1ca0b3['markMultiRangeBlockFormat'](_0x273ae1,{'commandName':_0x4abf('0x25'),'commandParams':[]},[],_0x4abf('0x25'));});}),_0x33911f['commands'][_0x4abf('0x48')](_0x4abf('0x25'))['on'](_0x4abf('0x2b'),(_0x56bd24,_0x2a56c1)=>{_0x33911f[_0x4abf('0x35')]['get'](_0x4abf('0x1b'))[_0x4abf('0x19')]&&(_0x2a56c1[_0x4abf('0xa')]>0x0&&_0x2a56c1[_0x2a56c1[_0x4abf('0xa')]-0x1]&&_0x2a56c1[_0x2a56c1[_0x4abf('0xa')]-0x1][_0x4abf('0x18')]||_0x1ca0b3[_0x4abf('0x6')]||this[_0x4abf('0x39')]()||_0x56bd24[_0x4abf('0x3b')]());},{'priority':_0x4abf('0x45')});for(const _0x1c047d of[_0x4abf('0x41'),_0x4abf('0x24'),'mergeTableCellDown',_0x4abf('0x3')]){const _0x493120=_0x33911f[_0x4abf('0x35')]['get'](_0x1c047d);_0x1ca0b3['enableCommand'](_0x1c047d,()=>{const _0x1289b2=_0x33911f[_0x4abf('0x1c')][_0x4abf('0x47')]['selection'][_0x4abf('0x7')]()[_0x4abf('0x1d')]()[_0x4abf('0x44')](_0x574056=>_0x574056['is']('element',_0x4abf('0x34'))),_0x248b5f=_0x493120['value'];_0x33911f[_0x4abf('0x1c')]['change'](()=>{_0x1ca0b3[_0x4abf('0x10')]([_0x1289b2,_0x248b5f],{'commandName':_0x4abf('0x25'),'commandParams':[]},[],'mergeTableCells');});});}for(const _0x154739 of[_0x4abf('0x40'),_0x4abf('0x23')]){const _0x13fb34=_0x33911f[_0x4abf('0x35')][_0x4abf('0x48')](_0x154739);_0x1ca0b3[_0x4abf('0x14')](_0x154739,()=>{const _0xf34f65=_0x741136['getSelectionAffectedTableCells'](_0x33911f[_0x4abf('0x1c')][_0x4abf('0x47')][_0x4abf('0x3a')])[0x0],_0x28b77e=_0xf34f65[_0x4abf('0x43')](_0x4abf('0xe')),{column:_0x23a863,row:_0x2377e7}=_0x741136[_0x4abf('0x11')](_0xf34f65);let _0xf36533=[];if(_0x4abf('0x1e')==_0x13fb34[_0x4abf('0x3f')]){const _0x34bcfa=_0x741136[_0x4abf('0x42')](_0x28b77e,{'startRow':_0x2377e7,'endRow':_0x2377e7,'includeAllSlots':!0x0});_0xf36533=Array['from'](_0x34bcfa)[_0x4abf('0x38')](_0x3b69d1=>_0x3b69d1[_0x4abf('0x32')]);}else{const _0x4e0a96=_0x741136['createTableWalker'](_0x28b77e,{'column':_0x23a863,'includeAllSlots':!0x0});_0xf36533=Array[_0x4abf('0x37')](_0x4e0a96)['map'](_0x3c4014=>_0x3c4014[_0x4abf('0x32')]);}_0x33911f[_0x4abf('0x1c')]['change'](_0x34a30f=>{_0x1ca0b3[_0x4abf('0x15')](_0x34a30f[_0x4abf('0x26')](_0xf34f65),{'commandName':_0x154739,'commandParams':[]},_0xf36533,_0x154739);});});}_0x1ca0b3[_0x4abf('0x21')][_0x4abf('0xc')](_0x5a673c=>{const {data:_0x221a35}=_0x5a673c;if(_0x221a35)return _0x4abf('0x25')==_0x221a35['commandName']?{'type':_0x4abf('0x4b'),'content':_0x367979(_0x498140,_0x4abf('0x2'))}:void 0x0;}),_0x1ca0b3[_0x4abf('0x21')]['registerDescriptionCallback'](_0x1de119=>{const {data:_0x2b02b5}=_0x1de119;if(_0x2b02b5)return _0x4abf('0x40')==_0x2b02b5[_0x4abf('0x2f')]?{'type':_0x4abf('0x4b'),'content':_0x367979(_0x498140,_0x4abf('0x1f'))}:'splitTableCellHorizontally'==_0x2b02b5[_0x4abf('0x2f')]?{'type':_0x4abf('0x4b'),'content':_0x367979(_0x498140,'*Split\x20cell:*\x20horizontally')}:void 0x0;});const _0x2fef56=_0x54a3c3['_acceptFormatSuggestionCallbackFactory']();for(const _0xebb17f of['mergeTableCellUp',_0x4abf('0x24'),_0x4abf('0x2e'),_0x4abf('0x3')])_0x1ca0b3['_suggestionFactory']['registerCustomCallback'](_0x4abf('0x4'),_0xebb17f,'accept',_0x2fef56);for(const _0x33961b of['splitTableCellVertically',_0x4abf('0x23')])_0x1ca0b3[_0x4abf('0xd')][_0x4abf('0x36')]('formatBlock',_0x33961b,_0x4abf('0x1'),_0x2fef56);_0x1ca0b3[_0x4abf('0xd')][_0x4abf('0x36')]('formatBlock',_0x4abf('0x25'),_0x4abf('0x1'),_0x15de6a=>{_0x33911f[_0x4abf('0x1c')][_0x4abf('0x2c')](_0x407ed7=>{const _0x24ac3c=Array[_0x4abf('0x37')](_0x2dd53e[_0x4abf('0x5')]())['map'](_0x1e73d8=>_0x40dfd3[_0x4abf('0x30')](_0x1e73d8));_0x407ed7['setSelection'](_0x15de6a),_0x33911f[_0x4abf('0x35')]['get']('mergeTableCells')['refresh'](),_0x33911f[_0x4abf('0x2b')]('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2a0cc4=_0x24ac3c[_0x4abf('0x4c')](_0x41d1d4=>'$graveyard'!=_0x41d1d4[_0x4abf('0x13')]['rootName']);_0x2a0cc4[_0x4abf('0xa')]>0x0&&_0x407ed7[_0x4abf('0x49')](_0x2a0cc4);for(const _0x43356b of _0x24ac3c)_0x43356b['detach']();});});for(const _0x57281d of[_0x4abf('0x41'),'mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4bae0a=_0x33911f[_0x4abf('0x35')][_0x4abf('0x48')](_0x57281d);_0x4bae0a['on'](_0x4abf('0x0'),(_0x49d99d,_0x10e259,_0x1c6bc6)=>{if(_0x1c6bc6){const _0x41cc34=_0x33911f[_0x4abf('0x1c')][_0x4abf('0x47')][_0x4abf('0x3a')][_0x4abf('0x7')]()[_0x4abf('0x1d')]()[_0x4abf('0x44')](_0x3a9c27=>_0x3a9c27['is'](_0x4abf('0xf'),'tableCell'));this[_0x4abf('0x2a')](_0x4bae0a[_0x4abf('0x19')],_0x41cc34)||(_0x49d99d['return']=!0x1,_0x49d99d['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xb8950e=this[_0x4abf('0x1a')]['commands'][_0x4abf('0x48')](_0x4abf('0x25')),_0x45dbff=this[_0x4abf('0x1a')][_0x4abf('0x31')]['get']('TableUtils');if(!_0xb8950e[_0x4abf('0x29')])return!0x1;const _0x3b038c=_0x45dbff[_0x4abf('0x12')](this['editor'][_0x4abf('0x1c')][_0x4abf('0x47')][_0x4abf('0x3a')]);for(const _0x3b4e4c of _0x3b038c)for(const _0x47a184 of _0x3b038c)if(_0x3b4e4c!=_0x47a184&&!this[_0x4abf('0x2a')](_0x3b4e4c,_0x47a184))return!0x1;return!0x0;}[_0x4abf('0x2a')](_0x37b68d,_0x23398a){const _0x4f45f9=this['editor'][_0x4abf('0x31')]['get'](_0x4abf('0x8')),_0x4c76aa=this[_0x4abf('0x1a')][_0x4abf('0x1c')]['createRangeOn'](_0x37b68d),_0x122bfd=this[_0x4abf('0x1a')]['model'][_0x4abf('0x26')](_0x23398a),_0x370f5a=new Set(),_0x49097f=new Set();for(const _0x456f11 of _0x4f45f9[_0x4abf('0x3d')]())if((_0x4abf('0x28')==_0x456f11[_0x4abf('0x22')]||_0x4abf('0x17')==_0x456f11['type']||_0x4abf('0x25')==_0x456f11['subType'])&&_0x456f11['isInContent'])for(const _0x7c5be5 of _0x456f11[_0x4abf('0x5')]())_0x7c5be5[_0x4abf('0x20')](_0x4c76aa,!0x0)&&_0x370f5a['add'](_0x456f11[_0x4abf('0x22')]+':'+_0x456f11[_0x4abf('0x46')]['id']),_0x7c5be5['containsRange'](_0x122bfd,!0x0)&&_0x49097f[_0x4abf('0x2d')](_0x456f11[_0x4abf('0x22')]+':'+_0x456f11[_0x4abf('0x46')]['id']);if(_0x370f5a['size']!=_0x49097f[_0x4abf('0x3c')])return!0x1;for(const _0x248655 of _0x370f5a)if(!_0x49097f['has'](_0x248655))return!0x1;return!0x0;}}
23
+ const _0x2e7a=['markMultiRangeBlockFormat','_tablePostFixingSubtypes','splitTableCellVertically','_isForcedDefaultExecutionBlock','isEnabled','afterInit','mergeTableCells','author','set:isEnabled','*Split\x20cell:*\x20vertically','has','add','size','formatBlock','mergeTableCellRight','tableCell','registerCustomCallback','document','format','table','type','commands','mergeTableCellLeft','selection','plugins','filter','direction','createRangeOn','element','cell','getRanges','rootName','TrackChangesEditing','enableCommand','_descriptionFactory','accept','from','createTableWalker','commandName','editor','requires','deletion','$graveyard','_areSelectedCellsMergable','setSelection','getAncestors','markBlockFormat','stop','execute','mergeTableCellUp','registerDescriptionCallback','findAncestor','value','_suggestionFactory','trackChanges','fromRange','*Merge\x20cells*','_areMergableCells','push','root','map','containsRange','getSelectionAffectedTableCells','TableUtils','change','refresh','TableEditing','find','return','mergeTableCellDown','splitTableCellHorizontally','insertion','length','get','highest','horizontally','getFirstPosition','model','subType','getCellLocation'];(function(_0xc33fe2,_0x2e7a25){const _0x5e350f=function(_0x436851){while(--_0x436851){_0xc33fe2['push'](_0xc33fe2['shift']());}};_0x5e350f(++_0x2e7a25);}(_0x2e7a,0x97));const _0x5e35=function(_0xc33fe2,_0x2e7a25){_0xc33fe2=_0xc33fe2-0x0;let _0x5e350f=_0x2e7a[_0xc33fe2];return _0x5e350f;};import{Plugin as _0x2a9382}from'ckeditor5/src/core';import _0x4b40a3 from'./table';import{LiveRange as _0x5d9d42}from'ckeditor5/src/engine';import{getTranslation as _0x4c45ff}from'../utils/common-translations';export default class dt extends _0x2a9382{static get[_0x5e35('0x31')](){return[_0x4b40a3];}[_0x5e35('0xe')](){const _0x585364=this[_0x5e35('0x30')],_0x43aedc=_0x585364[_0x5e35('0x6')]['document'][_0x5e35('0x20')],_0x16421f=_0x585364['locale'];if(!_0x585364['plugins'][_0x5e35('0x13')](_0x5e35('0x4b')))return;const _0x324880=_0x585364[_0x5e35('0x21')][_0x5e35('0x2')](_0x5e35('0x29')),_0x36786a=_0x585364[_0x5e35('0x21')]['get'](_0x5e35('0x48')),_0x3bdca2=_0x585364['plugins']['get'](_0x4b40a3);_0x3bdca2[_0x5e35('0xa')][_0x5e35('0x43')](_0x5e35('0xf')),_0x324880[_0x5e35('0x2a')]('mergeTableCells',()=>{const _0x2399cd=_0x36786a[_0x5e35('0x47')](_0x585364[_0x5e35('0x6')][_0x5e35('0x1a')]['selection']);_0x585364[_0x5e35('0x6')][_0x5e35('0x49')](()=>{_0x324880[_0x5e35('0x9')](_0x2399cd,{'commandName':_0x5e35('0xf'),'commandParams':[]},[],_0x5e35('0xf'));});}),_0x585364['commands'][_0x5e35('0x2')](_0x5e35('0xf'))['on']('execute',(_0x3f8a05,_0x4d69e3)=>{_0x585364[_0x5e35('0x1e')][_0x5e35('0x2')](_0x5e35('0x3f'))['value']&&(_0x4d69e3[_0x5e35('0x1')]>0x0&&_0x4d69e3[_0x4d69e3[_0x5e35('0x1')]-0x1]&&_0x4d69e3[_0x4d69e3[_0x5e35('0x1')]-0x1]['forceDefaultExecution']||_0x324880[_0x5e35('0xc')]||this[_0x5e35('0x34')]()||_0x3f8a05[_0x5e35('0x38')]());},{'priority':_0x5e35('0x3')});for(const _0x114372 of[_0x5e35('0x3a'),_0x5e35('0x17'),_0x5e35('0x4e'),_0x5e35('0x1f')]){const _0x397a89=_0x585364[_0x5e35('0x1e')][_0x5e35('0x2')](_0x114372);_0x324880[_0x5e35('0x2a')](_0x114372,()=>{const _0x5b6d42=_0x585364[_0x5e35('0x6')]['document'][_0x5e35('0x20')]['getFirstPosition']()[_0x5e35('0x36')]()[_0x5e35('0x4c')](_0xac2f65=>_0xac2f65['is'](_0x5e35('0x25'),_0x5e35('0x18'))),_0x1141aa=_0x397a89['value'];_0x585364[_0x5e35('0x6')][_0x5e35('0x49')](()=>{_0x324880[_0x5e35('0x9')]([_0x5b6d42,_0x1141aa],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x58d334 of[_0x5e35('0xb'),_0x5e35('0x4f')]){const _0x2472cf=_0x585364[_0x5e35('0x1e')][_0x5e35('0x2')](_0x58d334);_0x324880['enableCommand'](_0x58d334,()=>{const _0x588411=_0x36786a[_0x5e35('0x47')](_0x585364[_0x5e35('0x6')][_0x5e35('0x1a')][_0x5e35('0x20')])[0x0],_0x57c10c=_0x588411[_0x5e35('0x3c')](_0x5e35('0x1c')),{column:_0x34ae32,row:_0x2d9533}=_0x36786a[_0x5e35('0x8')](_0x588411);let _0x6f43cb=[];if(_0x5e35('0x4')==_0x2472cf[_0x5e35('0x23')]){const _0x462241=_0x36786a[_0x5e35('0x2e')](_0x57c10c,{'startRow':_0x2d9533,'endRow':_0x2d9533,'includeAllSlots':!0x0});_0x6f43cb=Array[_0x5e35('0x2d')](_0x462241)[_0x5e35('0x45')](_0x4ffaa5=>_0x4ffaa5[_0x5e35('0x26')]);}else{const _0x3ce5c2=_0x36786a[_0x5e35('0x2e')](_0x57c10c,{'column':_0x34ae32,'includeAllSlots':!0x0});_0x6f43cb=Array['from'](_0x3ce5c2)[_0x5e35('0x45')](_0x5c8ac3=>_0x5c8ac3['cell']);}_0x585364['model']['change'](_0x277fe0=>{_0x324880[_0x5e35('0x37')](_0x277fe0[_0x5e35('0x24')](_0x588411),{'commandName':_0x58d334,'commandParams':[]},_0x6f43cb,_0x58d334);});});}_0x324880['_descriptionFactory'][_0x5e35('0x3b')](_0x59be23=>{const {data:_0x3d9dc8}=_0x59be23;if(_0x3d9dc8)return _0x5e35('0xf')==_0x3d9dc8[_0x5e35('0x2f')]?{'type':_0x5e35('0x1b'),'content':_0x4c45ff(_0x16421f,_0x5e35('0x41'))}:void 0x0;}),_0x324880[_0x5e35('0x2b')][_0x5e35('0x3b')](_0x1f8e8a=>{const {data:_0x253501}=_0x1f8e8a;if(_0x253501)return _0x5e35('0xb')==_0x253501[_0x5e35('0x2f')]?{'type':_0x5e35('0x1b'),'content':_0x4c45ff(_0x16421f,_0x5e35('0x12'))}:_0x5e35('0x4f')==_0x253501[_0x5e35('0x2f')]?{'type':_0x5e35('0x1b'),'content':_0x4c45ff(_0x16421f,'*Split\x20cell:*\x20horizontally')}:void 0x0;});const _0x322584=_0x3bdca2['_acceptFormatSuggestionCallbackFactory']();for(const _0x15855a of['mergeTableCellUp',_0x5e35('0x17'),_0x5e35('0x4e'),_0x5e35('0x1f')])_0x324880[_0x5e35('0x3e')][_0x5e35('0x19')](_0x5e35('0x16'),_0x15855a,_0x5e35('0x2c'),_0x322584);for(const _0xef8135 of[_0x5e35('0xb'),_0x5e35('0x4f')])_0x324880[_0x5e35('0x3e')][_0x5e35('0x19')](_0x5e35('0x16'),_0xef8135,_0x5e35('0x2c'),_0x322584);_0x324880[_0x5e35('0x3e')]['registerCustomCallback'](_0x5e35('0x16'),_0x5e35('0xf'),_0x5e35('0x2c'),_0x22b4fb=>{_0x585364['model'][_0x5e35('0x49')](_0x545ea7=>{const _0x2206d4=Array['from'](_0x43aedc[_0x5e35('0x27')]())[_0x5e35('0x45')](_0x383569=>_0x5d9d42[_0x5e35('0x40')](_0x383569));_0x545ea7[_0x5e35('0x35')](_0x22b4fb),_0x585364[_0x5e35('0x1e')][_0x5e35('0x2')](_0x5e35('0xf'))[_0x5e35('0x4a')](),_0x585364[_0x5e35('0x39')](_0x5e35('0xf'),{'forceDefaultExecution':!0x0});const _0x3ccd1f=_0x2206d4[_0x5e35('0x22')](_0x5917c1=>_0x5e35('0x33')!=_0x5917c1[_0x5e35('0x44')][_0x5e35('0x28')]);_0x3ccd1f[_0x5e35('0x1')]>0x0&&_0x545ea7[_0x5e35('0x35')](_0x3ccd1f);for(const _0x3ed67d of _0x2206d4)_0x3ed67d['detach']();});});for(const _0x2b79a0 of['mergeTableCellUp',_0x5e35('0x4e'),_0x5e35('0x1f'),_0x5e35('0x17')]){const _0x1a78c7=_0x585364[_0x5e35('0x1e')][_0x5e35('0x2')](_0x2b79a0);_0x1a78c7['on'](_0x5e35('0x11'),(_0x24638a,_0x5cf10d,_0x2e0b21)=>{if(_0x2e0b21){const _0x5a927e=_0x585364[_0x5e35('0x6')][_0x5e35('0x1a')][_0x5e35('0x20')][_0x5e35('0x5')]()[_0x5e35('0x36')]()[_0x5e35('0x4c')](_0x5cba8b=>_0x5cba8b['is'](_0x5e35('0x25'),'tableCell'));this[_0x5e35('0x42')](_0x1a78c7[_0x5e35('0x3d')],_0x5a927e)||(_0x24638a[_0x5e35('0x4d')]=!0x1,_0x24638a[_0x5e35('0x38')]());}},{'priority':'low'});}}[_0x5e35('0x34')](){const _0x588d9b=this[_0x5e35('0x30')]['commands'][_0x5e35('0x2')](_0x5e35('0xf')),_0x29f140=this[_0x5e35('0x30')][_0x5e35('0x21')][_0x5e35('0x2')]('TableUtils');if(!_0x588d9b[_0x5e35('0xd')])return!0x1;const _0x5627b7=_0x29f140[_0x5e35('0x47')](this[_0x5e35('0x30')][_0x5e35('0x6')][_0x5e35('0x1a')]['selection']);for(const _0x556aba of _0x5627b7)for(const _0x592662 of _0x5627b7)if(_0x556aba!=_0x592662&&!this[_0x5e35('0x42')](_0x556aba,_0x592662))return!0x1;return!0x0;}[_0x5e35('0x42')](_0x362a04,_0xc6f3bf){const _0x557543=this[_0x5e35('0x30')]['plugins'][_0x5e35('0x2')](_0x5e35('0x29')),_0x33504a=this[_0x5e35('0x30')]['model']['createRangeOn'](_0x362a04),_0x582605=this[_0x5e35('0x30')]['model'][_0x5e35('0x24')](_0xc6f3bf),_0x2b7868=new Set(),_0x4c8168=new Set();for(const _0x8bc6b5 of _0x557543['getSuggestions']())if((_0x5e35('0x0')==_0x8bc6b5['type']||_0x5e35('0x32')==_0x8bc6b5[_0x5e35('0x1d')]||'mergeTableCells'==_0x8bc6b5[_0x5e35('0x7')])&&_0x8bc6b5['isInContent'])for(const _0x49ee9c of _0x8bc6b5[_0x5e35('0x27')]())_0x49ee9c[_0x5e35('0x46')](_0x33504a,!0x0)&&_0x2b7868[_0x5e35('0x14')](_0x8bc6b5[_0x5e35('0x1d')]+':'+_0x8bc6b5[_0x5e35('0x10')]['id']),_0x49ee9c[_0x5e35('0x46')](_0x582605,!0x0)&&_0x4c8168[_0x5e35('0x14')](_0x8bc6b5['type']+':'+_0x8bc6b5['author']['id']);if(_0x2b7868[_0x5e35('0x15')]!=_0x4c8168['size'])return!0x1;for(const _0x1e5a2a of _0x2b7868)if(!_0x4c8168[_0x5e35('0x13')](_0x1e5a2a))return!0x1;return!0x0;}}
@@ -1,7 +1,11 @@
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
+ */
1
5
  /**
2
6
  * @module track-changes/integrations/tableofcontents
3
7
  */
4
- import { Plugin } from 'ckeditor5/src/core.js';
8
+ import { Plugin } from 'ckeditor5/src/core';
5
9
  /**
6
10
  * Provides track changes plugin integration for the Table of contents feature.
7
11
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3010=['editor','tableOfContents','plugins','_descriptionFactory','afterInit','TrackChangesEditing','enableCommand','insertTableOfContents','registerElementLabel','ELEMENT_TABLE_OF_CONTENTS','commands','get'];(function(_0x4ad10c,_0x30105b){const _0x4ca394=function(_0xd18efd){while(--_0xd18efd){_0x4ad10c['push'](_0x4ad10c['shift']());}};_0x4ca394(++_0x30105b);}(_0x3010,0x19e));const _0x4ca3=function(_0x4ad10c,_0x30105b){_0x4ad10c=_0x4ad10c-0x0;let _0x4ca394=_0x3010[_0x4ad10c];return _0x4ca394;};import{Plugin as _0xfc1bcd}from'ckeditor5/src/core.js';import{getTranslation as _0x213b1a}from'../utils/common-translations.js';export default class yt extends _0xfc1bcd{[_0x4ca3('0xa')](){const _0x52c9a8=this[_0x4ca3('0x6')];if(!_0x52c9a8[_0x4ca3('0x4')][_0x4ca3('0x5')](_0x4ca3('0x1')))return;_0x52c9a8[_0x4ca3('0x8')][_0x4ca3('0x5')](_0x4ca3('0xb'))[_0x4ca3('0x0')](_0x4ca3('0x1'));const _0x8ab408=_0x52c9a8[_0x4ca3('0x8')][_0x4ca3('0x5')](_0x4ca3('0xb')),_0x3c9f66=_0x52c9a8['locale'];_0x8ab408[_0x4ca3('0x9')][_0x4ca3('0x2')](_0x4ca3('0x7'),_0x39851f=>_0x213b1a(_0x3c9f66,_0x4ca3('0x3'),_0x39851f));}}
23
+ const _0xb426=['enableCommand','ELEMENT_TABLE_OF_CONTENTS','plugins','insertTableOfContents','get','editor','commands','locale','TrackChangesEditing','afterInit','tableOfContents'];(function(_0x133951,_0xb42619){const _0x53699f=function(_0x2350b5){while(--_0x2350b5){_0x133951['push'](_0x133951['shift']());}};_0x53699f(++_0xb42619);}(_0xb426,0xb4));const _0x5369=function(_0x133951,_0xb42619){_0x133951=_0x133951-0x0;let _0x53699f=_0xb426[_0x133951];return _0x53699f;};import{Plugin as _0x1f40a0}from'ckeditor5/src/core';import{getTranslation as _0x1669af}from'../utils/common-translations';export default class bt extends _0x1f40a0{[_0x5369('0x5')](){const _0x93c2d2=this[_0x5369('0x1')];if(!_0x93c2d2[_0x5369('0x2')][_0x5369('0x0')](_0x5369('0xa')))return;_0x93c2d2['plugins'][_0x5369('0x0')](_0x5369('0x4'))[_0x5369('0x7')](_0x5369('0xa'));const _0x219700=_0x93c2d2[_0x5369('0x9')][_0x5369('0x0')](_0x5369('0x4')),_0x1716b9=_0x93c2d2[_0x5369('0x3')];_0x219700['_descriptionFactory']['registerElementLabel'](_0x5369('0x6'),_0x4c1c9a=>_0x1669af(_0x1716b9,_0x5369('0x8'),_0x4c1c9a));}}
@@ -1,10 +1,14 @@
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
+ */
1
5
  /**
2
6
  * @module track-changes/integrations/tableproperties
3
7
  */
4
- import { Plugin, type Editor } from 'ckeditor5/src/core.js';
5
- import type { Range } from 'ckeditor5/src/engine.js';
6
- import type { default as Suggestion } from '../suggestion.js';
7
- import type { Description } from '../suggestiondescriptionfactory.js';
8
+ import { Plugin, type Editor } from 'ckeditor5/src/core';
9
+ import type { Range } from 'ckeditor5/src/engine';
10
+ import type { default as Suggestion } from '../suggestion';
11
+ import type { Description } from '../suggestiondescriptionfactory';
8
12
  /**
9
13
  * Provides track changes plugin integration for table properties feature.
10
14
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x32ff=['enqueueChange','plugins','tableCellVerticalAlignment','tableCellWidth','change','format','TableUtils','TableCellPropertiesEditing','removeAttribute','data','getSelectionAffectedTableCells','join','tableCellBorderWidth','_getSuggestion','*Format:*\x20change\x20table\x20cell\x20properties','TrackChangesEditing','tableBorderColor','tableCellBorderColor','commandParams','findAncestor','getSuggestionCallback','model','selection','discard','tableWidth','getContainedElement','tableCellBackgroundColor','enableCommand','document','accept','batch','has','tableCellHorizontalAlignment','tableBorderWidth','locale','tableCellProperties','TablePropertiesEditing','*Format:*\x20change\x20table\x20properties','tableProperties','formatBlock','tableCellBorderStyle','editor','handleDiscardAction','subType','nodeAfter','tableCellHeight','registerDescriptionCallback','get','registerCustomCallback','markBlockFormat','start','_suggestionFactory','tableAlignment','handleSuggestionDescription','afterInit','getAttribute','tableBorderStyle'];(function(_0x2953ff,_0x32ff92){const _0x3dd24d=function(_0x18f75){while(--_0x18f75){_0x2953ff['push'](_0x2953ff['shift']());}};_0x3dd24d(++_0x32ff92);}(_0x32ff,0x111));const _0x3dd2=function(_0x2953ff,_0x32ff92){_0x2953ff=_0x2953ff-0x0;let _0x3dd24d=_0x32ff[_0x2953ff];return _0x3dd24d;};import{Plugin as _0x1d030c}from'ckeditor5/src/core.js';import{getTranslation as _0x1ed207}from'../utils/common-translations.js';export default class At extends _0x1d030c{constructor(_0x59171d){super(_0x59171d),this[_0x3dd2('0x32')]=[_0x3dd2('0x1c'),_0x3dd2('0xb'),_0x3dd2('0x2d'),_0x3dd2('0x7'),_0x3dd2('0x24'),'tableHeight','tableBackgroundColor'],this[_0x3dd2('0x2f')]=[_0x3dd2('0x1d'),_0x3dd2('0x34'),_0x3dd2('0x18'),'tableCellPadding',_0x3dd2('0xf'),_0x3dd2('0x0'),_0x3dd2('0x26'),_0x3dd2('0x2c'),_0x3dd2('0xe')];}static get['pluginName'](){return'TrackChangesTableProperties';}[_0x3dd2('0x9')](){const _0x52c8db=this['editor']['plugins'][_0x3dd2('0x2')](_0x3dd2('0x1b'));if(this['editor'][_0x3dd2('0xd')][_0x3dd2('0x2b')](_0x3dd2('0x30'))){for(const _0x1fc81a of this[_0x3dd2('0x32')])_0x52c8db[_0x3dd2('0x27')](_0x1fc81a,(_0x56a89c,_0x18c0cf)=>{const _0x11d1d9=this['editor'][_0x3dd2('0x21')][_0x3dd2('0x28')][_0x3dd2('0x22')]['getFirstPosition']()[_0x3dd2('0x1f')]('table');this['_handlePropertyChange'](_0x1fc81a,[_0x11d1d9],this[_0x3dd2('0x32')],'tableProperties',_0x56a89c,_0x18c0cf);});_0x52c8db[_0x3dd2('0x6')][_0x3dd2('0x3')](_0x3dd2('0x33'),_0x3dd2('0x32'),_0x3dd2('0x29'),_0x52c8db[_0x3dd2('0x6')][_0x3dd2('0x20')]('formatBlock',null,_0x3dd2('0x23'))),_0x52c8db['_suggestionFactory']['registerCustomCallback'](_0x3dd2('0x33'),_0x3dd2('0x32'),_0x3dd2('0x23'),(_0x886842,_0x45a46c)=>this[_0x3dd2('0x36')](this[_0x3dd2('0x32')],_0x886842,_0x45a46c)),_0x52c8db['_suggestionFactory'][_0x3dd2('0x3')](_0x3dd2('0x33'),_0x3dd2('0x32'),_0x3dd2('0x17'),()=>!0x1);}if(this[_0x3dd2('0x35')][_0x3dd2('0xd')][_0x3dd2('0x2b')](_0x3dd2('0x13'))){for(const _0x4a0b64 of this[_0x3dd2('0x2f')])_0x52c8db['enableCommand'](_0x4a0b64,(_0x1373e3,_0x178c7d)=>{const _0x28c52e=this[_0x3dd2('0x35')]['plugins'][_0x3dd2('0x2')](_0x3dd2('0x12'))[_0x3dd2('0x16')](this['editor'][_0x3dd2('0x21')][_0x3dd2('0x28')][_0x3dd2('0x22')]);this['_handlePropertyChange'](_0x4a0b64,_0x28c52e,this['tableCellProperties'],_0x3dd2('0x2f'),_0x1373e3,_0x178c7d);});_0x52c8db['_suggestionFactory'][_0x3dd2('0x3')](_0x3dd2('0x33'),_0x3dd2('0x2f'),_0x3dd2('0x29'),_0x52c8db[_0x3dd2('0x6')][_0x3dd2('0x20')](_0x3dd2('0x33'),null,_0x3dd2('0x23'))),_0x52c8db[_0x3dd2('0x6')][_0x3dd2('0x3')](_0x3dd2('0x33'),_0x3dd2('0x2f'),_0x3dd2('0x23'),(_0x1b54f7,_0x5dba55)=>this[_0x3dd2('0x36')](this[_0x3dd2('0x2f')],_0x1b54f7,_0x5dba55)),_0x52c8db['_suggestionFactory'][_0x3dd2('0x3')](_0x3dd2('0x33'),_0x3dd2('0x2f'),_0x3dd2('0x17'),()=>!0x1);}_0x52c8db['_descriptionFactory'][_0x3dd2('0x1')](_0x5bf3a9=>this[_0x3dd2('0x8')](_0x5bf3a9));}['_handlePropertyChange'](_0x180f7d,_0x3de1b2,_0x67a871,_0x2da29d,_0x4124f8,_0x286251){const _0x444ae5=this[_0x3dd2('0x35')][_0x3dd2('0xd')][_0x3dd2('0x2')](_0x3dd2('0x1b'));this['editor']['model'][_0x3dd2('0xc')](_0x286251[_0x3dd2('0x2a')],()=>{for(const _0x2f076a of _0x3de1b2){if(this['_getSuggestion'](_0x2f076a,_0x2da29d))_0x4124f8(_0x286251);else{const _0xdd942={};for(const _0x45176a of _0x67a871){const _0x22e2db=_0x2f076a[_0x3dd2('0xa')](_0x45176a);void 0x0!==_0x22e2db&&(_0xdd942[_0x45176a]=_0x22e2db);}_0x4124f8(_0x286251),_0x444ae5[_0x3dd2('0x4')](_0x2f076a,{'commandParams':[_0xdd942]},[],_0x2da29d);}}});}[_0x3dd2('0x36')](_0x2d8975,_0x39caee,_0x2b609a){const _0xbb3215=_0x39caee[0x0][_0x3dd2('0x5')][_0x3dd2('0x38')],_0x49ba5a=_0x2b609a[_0x3dd2('0x1e')][0x0];this[_0x3dd2('0x35')][_0x3dd2('0x21')][_0x3dd2('0x10')](_0x17aed5=>{for(const _0x35a85a of _0x2d8975)void 0x0!==_0x49ba5a[_0x35a85a]?_0x17aed5['setAttribute'](_0x35a85a,_0x49ba5a[_0x35a85a],_0xbb3215):_0x17aed5[_0x3dd2('0x14')](_0x35a85a,_0xbb3215);});}[_0x3dd2('0x8')](_0xd3ddc0){if(_0xd3ddc0[_0x3dd2('0x15')])switch(_0xd3ddc0[_0x3dd2('0x37')]){case _0x3dd2('0x32'):return{'type':_0x3dd2('0x11'),'content':_0x1ed207(this[_0x3dd2('0x35')]['locale'],_0x3dd2('0x31'))};case _0x3dd2('0x2f'):return{'type':_0x3dd2('0x11'),'content':_0x1ed207(this[_0x3dd2('0x35')][_0x3dd2('0x2e')],_0x3dd2('0x1a'))};}}[_0x3dd2('0x19')](_0xe5dceb,_0x2b9863){const _0x3cc5f5=this[_0x3dd2('0x35')][_0x3dd2('0xd')][_0x3dd2('0x2')](_0x3dd2('0x1b'));for(const _0x12130e of _0x3cc5f5['getSuggestions']({'skipNotAttached':!0x0})){const _0x43b6e1=_0x12130e[_0x3dd2('0x25')]();if(_0x12130e[_0x3dd2('0x37')]===_0x2b9863&&_0x43b6e1===_0xe5dceb)return _0x12130e;}return null;}}
23
+ const _0x5da5=['getSelectionAffectedTableCells','setAttribute','enqueueChange','discard','subType','*Format:*\x20change\x20table\x20properties','markBlockFormat','nodeAfter','format','table','tableBackgroundColor','handleDiscardAction','tableCellHorizontalAlignment','tableCellBorderColor','tableCellBackgroundColor','plugins','_handlePropertyChange','_getSuggestion','selection','TablePropertiesEditing','tableAlignment','findAncestor','enableCommand','document','tableCellProperties','getAttribute','model','formatBlock','getFirstPosition','tableCellPadding','tableCellHeight','has','data','registerDescriptionCallback','join','_suggestionFactory','start','tableCellWidth','tableWidth','editor','TrackChangesTableProperties','get','tableProperties','accept','afterInit','pluginName','registerCustomCallback','_descriptionFactory','commandParams','tableBorderColor','TableUtils','tableCellBorderStyle','TrackChangesEditing','tableCellBorderWidth','tableBorderStyle','getSuggestionCallback','change'];(function(_0x55c5bb,_0x5da532){const _0x59044c=function(_0x5a7437){while(--_0x5a7437){_0x55c5bb['push'](_0x55c5bb['shift']());}};_0x59044c(++_0x5da532);}(_0x5da5,0x1cc));const _0x5904=function(_0x55c5bb,_0x5da532){_0x55c5bb=_0x55c5bb-0x0;let _0x59044c=_0x5da5[_0x55c5bb];return _0x59044c;};import{Plugin as _0x285160}from'ckeditor5/src/core';import{getTranslation as _0xe4fcb1}from'../utils/common-translations';export default class Ct extends _0x285160{constructor(_0x185a73){super(_0x185a73),this[_0x5904('0x26')]=[_0x5904('0x2d'),_0x5904('0x32'),'tableBorderWidth',_0x5904('0x10'),_0x5904('0x22'),'tableHeight',_0x5904('0x6')],this[_0x5904('0x14')]=[_0x5904('0x9'),_0x5904('0x2f'),_0x5904('0x31'),_0x5904('0x19'),_0x5904('0x21'),_0x5904('0x1a'),_0x5904('0xa'),_0x5904('0x8'),'tableCellVerticalAlignment'];}static get[_0x5904('0x29')](){return _0x5904('0x24');}[_0x5904('0x28')](){const _0x4c1b20=this[_0x5904('0x23')][_0x5904('0xb')][_0x5904('0x25')](_0x5904('0x30'));if(this[_0x5904('0x23')][_0x5904('0xb')][_0x5904('0x1b')](_0x5904('0xf'))){for(const _0x5d98d2 of this[_0x5904('0x26')])_0x4c1b20[_0x5904('0x12')](_0x5d98d2,(_0x37dea4,_0x4d98f1)=>{const _0x5c807d=this[_0x5904('0x23')][_0x5904('0x16')][_0x5904('0x13')][_0x5904('0xe')][_0x5904('0x18')]()[_0x5904('0x11')](_0x5904('0x5'));this[_0x5904('0xc')](_0x5d98d2,[_0x5c807d],this['tableProperties'],_0x5904('0x26'),_0x37dea4,_0x4d98f1);});_0x4c1b20['_suggestionFactory'][_0x5904('0x2a')](_0x5904('0x17'),_0x5904('0x26'),_0x5904('0x27'),_0x4c1b20[_0x5904('0x1f')][_0x5904('0x33')](_0x5904('0x17'),null,_0x5904('0x38'))),_0x4c1b20[_0x5904('0x1f')][_0x5904('0x2a')](_0x5904('0x17'),_0x5904('0x26'),_0x5904('0x38'),(_0x1bea14,_0x5ecfc7)=>this[_0x5904('0x7')](this[_0x5904('0x26')],_0x1bea14,_0x5ecfc7)),_0x4c1b20[_0x5904('0x1f')][_0x5904('0x2a')](_0x5904('0x17'),'tableProperties',_0x5904('0x1e'),()=>!0x1);}if(this[_0x5904('0x23')][_0x5904('0xb')]['has']('TableCellPropertiesEditing')){for(const _0x4a8983 of this[_0x5904('0x14')])_0x4c1b20['enableCommand'](_0x4a8983,(_0x1f82b9,_0x8c69c2)=>{const _0x624b74=this[_0x5904('0x23')]['plugins'][_0x5904('0x25')](_0x5904('0x2e'))[_0x5904('0x35')](this[_0x5904('0x23')][_0x5904('0x16')][_0x5904('0x13')]['selection']);this[_0x5904('0xc')](_0x4a8983,_0x624b74,this[_0x5904('0x14')],_0x5904('0x14'),_0x1f82b9,_0x8c69c2);});_0x4c1b20[_0x5904('0x1f')][_0x5904('0x2a')](_0x5904('0x17'),_0x5904('0x14'),_0x5904('0x27'),_0x4c1b20[_0x5904('0x1f')][_0x5904('0x33')](_0x5904('0x17'),null,_0x5904('0x38'))),_0x4c1b20['_suggestionFactory'][_0x5904('0x2a')]('formatBlock',_0x5904('0x14'),'discard',(_0x491fe2,_0xe2b6f2)=>this[_0x5904('0x7')](this[_0x5904('0x14')],_0x491fe2,_0xe2b6f2)),_0x4c1b20[_0x5904('0x1f')][_0x5904('0x2a')](_0x5904('0x17'),'tableCellProperties','join',()=>!0x1);}_0x4c1b20[_0x5904('0x2b')][_0x5904('0x1d')](_0x4f422e=>this['handleSuggestionDescription'](_0x4f422e));}['_handlePropertyChange'](_0x4d94c5,_0xb7acae,_0x5cf4bd,_0x3fbb93,_0x179d4f,_0x4319db){const _0xce118a=this[_0x5904('0x23')]['plugins'][_0x5904('0x25')]('TrackChangesEditing');this[_0x5904('0x23')]['model'][_0x5904('0x37')](_0x4319db['batch'],()=>{for(const _0x2dddf4 of _0xb7acae){if(this['_getSuggestion'](_0x2dddf4,_0x3fbb93))_0x179d4f(_0x4319db);else{const _0x2d2bfd={};for(const _0xc403 of _0x5cf4bd){const _0x5ce5c8=_0x2dddf4[_0x5904('0x15')](_0xc403);void 0x0!==_0x5ce5c8&&(_0x2d2bfd[_0xc403]=_0x5ce5c8);}_0x179d4f(_0x4319db),_0xce118a[_0x5904('0x2')](_0x2dddf4,{'commandParams':[_0x2d2bfd]},[],_0x3fbb93);}}});}[_0x5904('0x7')](_0x15d4a9,_0x21e156,_0x2279f0){const _0x5c7b13=_0x21e156[0x0][_0x5904('0x20')][_0x5904('0x3')],_0x27b363=_0x2279f0[_0x5904('0x2c')][0x0];this[_0x5904('0x23')]['model'][_0x5904('0x34')](_0x2094c2=>{for(const _0x328009 of _0x15d4a9)void 0x0!==_0x27b363[_0x328009]?_0x2094c2[_0x5904('0x36')](_0x328009,_0x27b363[_0x328009],_0x5c7b13):_0x2094c2['removeAttribute'](_0x328009,_0x5c7b13);});}['handleSuggestionDescription'](_0x2326de){if(_0x2326de[_0x5904('0x1c')])switch(_0x2326de['subType']){case _0x5904('0x26'):return{'type':_0x5904('0x4'),'content':_0xe4fcb1(this[_0x5904('0x23')]['locale'],_0x5904('0x1'))};case _0x5904('0x14'):return{'type':_0x5904('0x4'),'content':_0xe4fcb1(this[_0x5904('0x23')]['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}[_0x5904('0xd')](_0x5aabd2,_0x1663cc){const _0x5256eb=this['editor']['plugins']['get'](_0x5904('0x30'));for(const _0x30e6e3 of _0x5256eb['getSuggestions']({'skipNotAttached':!0x0})){const _0x3fa8ce=_0x30e6e3['getContainedElement']();if(_0x30e6e3[_0x5904('0x0')]===_0x1663cc&&_0x3fa8ce===_0x5aabd2)return _0x30e6e3;}return null;}}
@@ -1,7 +1,11 @@
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
+ */
1
5
  /**
2
6
  * @module track-changes/integrations/template
3
7
  */
4
- import { Plugin } from 'ckeditor5/src/core.js';
8
+ import { Plugin } from 'ckeditor5/src/core';
5
9
  /**
6
10
  * Provides track changes plugin integration for template feature.
7
11
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xf308=['plugins','insertTemplate','has','editor','enableCommand'];(function(_0x45c5cd,_0xf308f7){const _0x4f4ffc=function(_0x53d8c6){while(--_0x53d8c6){_0x45c5cd['push'](_0x45c5cd['shift']());}};_0x4f4ffc(++_0xf308f7);}(_0xf308,0x189));const _0x4f4f=function(_0x45c5cd,_0xf308f7){_0x45c5cd=_0x45c5cd-0x0;let _0x4f4ffc=_0xf308[_0x45c5cd];return _0x4f4ffc;};import{Plugin as _0x11ea80}from'ckeditor5/src/core.js';export default class jt extends _0x11ea80{['afterInit'](){const _0x2ba9ed=this[_0x4f4f('0x0')];_0x2ba9ed[_0x4f4f('0x2')][_0x4f4f('0x4')]('Template')&&_0x2ba9ed[_0x4f4f('0x2')]['get']('TrackChangesEditing')[_0x4f4f('0x1')](_0x4f4f('0x3'));}}
23
+ const _0xaafc=['afterInit','insertTemplate','enableCommand','editor','Template','get','has','TrackChangesEditing','plugins'];(function(_0x48a26e,_0xaafcfa){const _0x33b165=function(_0x4d7edc){while(--_0x4d7edc){_0x48a26e['push'](_0x48a26e['shift']());}};_0x33b165(++_0xaafcfa);}(_0xaafc,0x195));const _0x33b1=function(_0x48a26e,_0xaafcfa){_0x48a26e=_0x48a26e-0x0;let _0x33b165=_0xaafc[_0x48a26e];return _0x33b165;};import{Plugin as _0x280fca}from'ckeditor5/src/core';export default class yt extends _0x280fca{[_0x33b1('0x0')](){const _0x529f9b=this[_0x33b1('0x3')];_0x529f9b['plugins'][_0x33b1('0x6')](_0x33b1('0x4'))&&_0x529f9b[_0x33b1('0x8')][_0x33b1('0x5')](_0x33b1('0x7'))[_0x33b1('0x2')](_0x33b1('0x1'));}}
@@ -1,7 +1,11 @@
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
+ */
1
5
  /**
2
6
  * @module track-changes/integrations/title
3
7
  */
4
- import { Plugin } from 'ckeditor5/src/core.js';
8
+ import { Plugin } from 'ckeditor5/src/core';
5
9
  /**
6
10
  * Provides track changes plugin integration for title feature.
7
11
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x45c5=['start','createRange','_splitMarkerName','from','plugins','end','isCollapsed','newRange','document','suggestion','afterInit','forward','removeMarker','ELEMENT_TITLE','title-content','updateMarker','model','differ','isEqual','getChangedMarkers','Title','registerPostFixer','has','_descriptionFactory','getNearestSelectionRange','TrackChangesEditing','element','editor'];(function(_0xaef7c4,_0x45c529){const _0x1baa41=function(_0x4974d7){while(--_0x4974d7){_0xaef7c4['push'](_0xaef7c4['shift']());}};_0x1baa41(++_0x45c529);}(_0x45c5,0x91));const _0x1baa=function(_0xaef7c4,_0x45c529){_0xaef7c4=_0xaef7c4-0x0;let _0x1baa41=_0x45c5[_0xaef7c4];return _0x1baa41;};import{Plugin as _0x71d027}from'ckeditor5/src/core.js';import{getTranslation as _0x2eba42}from'../utils/common-translations.js';export default class bt extends _0x71d027{[_0x1baa('0x5')](){const _0x432c6b=this[_0x1baa('0x16')];if(!_0x432c6b[_0x1baa('0x1b')][_0x1baa('0x11')](_0x1baa('0xf')))return;const _0x3c39c1=_0x432c6b[_0x1baa('0x1b')]['get'](_0x1baa('0x14'));_0x3c39c1[_0x1baa('0x12')]['registerElementLabel'](_0x1baa('0x9'),()=>_0x2eba42(_0x432c6b['locale'],_0x1baa('0x8'))),_0x432c6b[_0x1baa('0xb')][_0x1baa('0x3')][_0x1baa('0x10')](_0x2e8af7=>{let _0xa09919=!0x1;const _0x5b7064=Array[_0x1baa('0x1a')](_0x432c6b[_0x1baa('0xb')][_0x1baa('0x3')][_0x1baa('0xc')][_0x1baa('0xe')]());for(const {name:_0x31fb5e,data:_0x226c61}of _0x5b7064){const {group:_0x18e7eb}=_0x3c39c1[_0x1baa('0x19')](_0x31fb5e);if(_0x1baa('0x4')!==_0x18e7eb||!_0x226c61[_0x1baa('0x2')])continue;const _0x37bda3=_0x226c61['newRange'],_0x2339b3=_0x37bda3[_0x1baa('0x0')]['nodeBefore'];if(!_0x2339b3||!_0x2339b3['is'](_0x1baa('0x15'),_0x1baa('0x9')))continue;if(!_0x37bda3[_0x1baa('0x17')]['isTouching'](_0x37bda3[_0x1baa('0x0')]))continue;const _0x1ca4a1=_0x432c6b[_0x1baa('0xb')]['schema'][_0x1baa('0x13')](_0x37bda3[_0x1baa('0x0')],_0x1baa('0x6'));if(_0x1ca4a1&&_0x1ca4a1[_0x1baa('0x1')]){const _0x1872a4=_0x2e8af7[_0x1baa('0x18')](_0x37bda3[_0x1baa('0x17')],_0x1ca4a1['start']);_0x1872a4[_0x1baa('0xd')](_0x37bda3)||(_0x2e8af7[_0x1baa('0xa')](_0x31fb5e,{'range':_0x1872a4}),_0xa09919=!0x0);}_0xa09919||(_0x2e8af7[_0x1baa('0x7')](_0x31fb5e),_0xa09919=!0x0);}return _0xa09919;});}}
23
+ const _0x3c7a=['registerPostFixer','nodeBefore','isEqual','editor','getNearestSelectionRange','title-content','document','schema','_descriptionFactory','newRange','differ','createRange','_splitMarkerName','forward','end','ELEMENT_TITLE','start','isCollapsed','TrackChangesEditing','locale','element','get','afterInit','Title','plugins','model','isTouching','registerElementLabel'];(function(_0xc8a335,_0x3c7a45){const _0x23b8ff=function(_0x422025){while(--_0x422025){_0xc8a335['push'](_0xc8a335['shift']());}};_0x23b8ff(++_0x3c7a45);}(_0x3c7a,0x98));const _0x23b8=function(_0xc8a335,_0x3c7a45){_0xc8a335=_0xc8a335-0x0;let _0x23b8ff=_0x3c7a[_0xc8a335];return _0x23b8ff;};import{Plugin as _0x58b68b}from'ckeditor5/src/core';import{getTranslation as _0xf4f21d}from'../utils/common-translations';export default class St extends _0x58b68b{[_0x23b8('0xa')](){const _0x1bb2d9=this[_0x23b8('0x13')];if(!_0x1bb2d9['plugins']['has'](_0x23b8('0xb')))return;const _0x429179=_0x1bb2d9[_0x23b8('0xc')][_0x23b8('0x9')](_0x23b8('0x6'));_0x429179[_0x23b8('0x18')][_0x23b8('0xf')](_0x23b8('0x15'),()=>_0xf4f21d(_0x1bb2d9[_0x23b8('0x7')],_0x23b8('0x3'))),_0x1bb2d9[_0x23b8('0xd')][_0x23b8('0x16')][_0x23b8('0x10')](_0x5f22a9=>{let _0x559b81=!0x1;const _0x2e3905=Array['from'](_0x1bb2d9[_0x23b8('0xd')][_0x23b8('0x16')][_0x23b8('0x1a')]['getChangedMarkers']());for(const {name:_0xe530ac,data:_0x17cb79}of _0x2e3905){const {group:_0x68b709}=_0x429179[_0x23b8('0x0')](_0xe530ac);if('suggestion'!==_0x68b709||!_0x17cb79['newRange'])continue;const _0x8effc4=_0x17cb79[_0x23b8('0x19')],_0x324bd8=_0x8effc4[_0x23b8('0x2')][_0x23b8('0x11')];if(!_0x324bd8||!_0x324bd8['is'](_0x23b8('0x8'),'title-content'))continue;if(!_0x8effc4[_0x23b8('0x4')][_0x23b8('0xe')](_0x8effc4[_0x23b8('0x2')]))continue;const _0xe91583=_0x1bb2d9['model'][_0x23b8('0x17')][_0x23b8('0x14')](_0x8effc4['end'],_0x23b8('0x1'));if(_0xe91583&&_0xe91583[_0x23b8('0x5')]){const _0x125902=_0x5f22a9[_0x23b8('0x1b')](_0x8effc4[_0x23b8('0x4')],_0xe91583[_0x23b8('0x4')]);_0x125902[_0x23b8('0x12')](_0x8effc4)||(_0x5f22a9['updateMarker'](_0xe530ac,{'range':_0x125902}),_0x559b81=!0x0);}_0x559b81||(_0x5f22a9['removeMarker'](_0xe530ac),_0x559b81=!0x0);}return _0x559b81;});}}
@@ -1,7 +1,11 @@
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
+ */
1
5
  /**
2
6
  * @module track-changes/integrations/undo
3
7
  */
4
- import { Plugin } from 'ckeditor5/src/core.js';
8
+ import { Plugin } from 'ckeditor5/src/core';
5
9
  /**
6
10
  * Provides track changes plugin integration for {@link module:undo/undo~Undo undo feature}.
7
11
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x458a=['enableCommand','afterInit','editor','UndoEditing','TrackChangesEditing','redo','undo','has','plugins','get'];(function(_0x3e110e,_0x458a67){const _0x29bfa3=function(_0x32e646){while(--_0x32e646){_0x3e110e['push'](_0x3e110e['shift']());}};_0x29bfa3(++_0x458a67);}(_0x458a,0x168));const _0x29bf=function(_0x3e110e,_0x458a67){_0x3e110e=_0x3e110e-0x0;let _0x29bfa3=_0x458a[_0x3e110e];return _0x29bfa3;};import{Plugin as _0x4b1596}from'ckeditor5/src/core.js';export default class St extends _0x4b1596{[_0x29bf('0x1')](){const _0xd1994e=this[_0x29bf('0x2')],_0x58bdc9=_0xd1994e[_0x29bf('0x8')][_0x29bf('0x9')](_0x29bf('0x4'));_0xd1994e['plugins'][_0x29bf('0x7')](_0x29bf('0x3'))&&(_0x58bdc9['enableCommand'](_0x29bf('0x6')),_0x58bdc9[_0x29bf('0x0')](_0x29bf('0x5')));}}
23
+ const _0x4860=['plugins','TrackChangesEditing','UndoEditing','enableCommand','undo','has'];(function(_0x35e95e,_0x486023){const _0x1e7e97=function(_0x8fee6e){while(--_0x8fee6e){_0x35e95e['push'](_0x35e95e['shift']());}};_0x1e7e97(++_0x486023);}(_0x4860,0x146));const _0x1e7e=function(_0x35e95e,_0x486023){_0x35e95e=_0x35e95e-0x0;let _0x1e7e97=_0x4860[_0x35e95e];return _0x1e7e97;};import{Plugin as _0x1d4f8f}from'ckeditor5/src/core';export default class It extends _0x1d4f8f{['afterInit'](){const _0x4b4940=this['editor'],_0x3a4b23=_0x4b4940[_0x1e7e('0x4')]['get'](_0x1e7e('0x5'));_0x4b4940[_0x1e7e('0x4')][_0x1e7e('0x3')](_0x1e7e('0x0'))&&(_0x3a4b23[_0x1e7e('0x1')](_0x1e7e('0x2')),_0x3a4b23[_0x1e7e('0x1')]('redo'));}}
@@ -1,6 +1,10 @@
1
- import type { Editor } from 'ckeditor5/src/core.js';
2
- import type { Range, Model, Element, DowncastAddMarkerEvent } from 'ckeditor5/src/engine.js';
3
- import type { GetCallback } from 'ckeditor5/src/utils.js';
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ import type { Editor } from 'ckeditor5/src/core';
6
+ import type { Range, Model, Element, DowncastAddMarkerEvent } from 'ckeditor5/src/engine';
7
+ import type { GetCallback } from 'ckeditor5/src/utils';
4
8
  /**
5
9
  * Searches given `range` and returns all sub-ranges containing items with given `attributeKey`.
6
10
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1fc6=['nextSibling','listItem','markerName','schema','bindElementToMarker','plugins','item','activeMarkers','listIndent','getItems','TrackChangesEditing','writer','getCustomProperty','name','parent','markerRange','type','insert','hasAttribute','model','addHighlight','createUIElement','start','toViewPosition','element','includes','span','consumable','toViewElement','push','previousPosition','get','mapper'];(function(_0x4ee2d8,_0x1fc6dd){const _0x3b32b0=function(_0x357c4d){while(--_0x357c4d){_0x4ee2d8['push'](_0x4ee2d8['shift']());}};_0x3b32b0(++_0x1fc6dd);}(_0x1fc6,0x1af));const _0x3b32=function(_0x4ee2d8,_0x1fc6dd){_0x4ee2d8=_0x4ee2d8-0x0;let _0x3b32b0=_0x1fc6[_0x4ee2d8];return _0x3b32b0;};export function getRangesWithAttribute(_0x59644b,_0x550c2c,_0x4347ac){const _0x2eceb1=[];for(const _0x1465b8 of _0x550c2c[_0x3b32('0x7')]())_0x1465b8[_0x3b32('0x10')](_0x59644b)&&_0x2eceb1['push'](_0x4347ac['createRangeOn'](_0x1465b8));return _0x2eceb1;}export function getElementsAffectedByListItemRename(_0x3105c5){const _0xab1249=[];if(_0x3105c5['is']('element',_0x3b32('0x20'))){let _0x57fdc3=_0x3105c5[_0x3b32('0x1f')];for(;_0x57fdc3&&_0x57fdc3['is'](_0x3b32('0x16'),_0x3b32('0x20'))&&_0x57fdc3['getAttribute'](_0x3b32('0x6'))>0x0;)_0xab1249[_0x3b32('0x1b')](_0x57fdc3),_0x57fdc3=_0x57fdc3[_0x3b32('0x1f')];}return _0xab1249;}export function downcastSplitMergeMarker(_0x3f44ce,_0x2dbbc3,{showActiveMarker:_0x2ebc90=!0x0}={}){const _0x36bf24=_0x3f44ce[_0x3b32('0x3')][_0x3b32('0x1d')](_0x3b32('0x8'));return(_0x26daab,_0x163a9a,_0x34d6a1)=>{if(!_0x34d6a1[_0x3b32('0x19')]['test'](_0x163a9a['markerRange'],_0x26daab[_0x3b32('0xb')]))return;const _0x1a6b7b=_0x163a9a[_0x3b32('0xd')]['getWalker'](),_0x2ed6f6=_0x163a9a['markerRange'][_0x3b32('0x14')],_0x9fc509=_0x3f44ce[_0x3b32('0x11')][_0x3b32('0x1')];let _0x37f4e1=null,_0x2c855c=null,_0x4fbdbb=!0x1,_0x575a1f=!0x1;for(const _0x3c50b8 of _0x1a6b7b){const _0x5abead=_0x3c50b8[_0x3b32('0x4')];_0x4fbdbb=_0x4fbdbb||_0x9fc509['isContent'](_0x5abead);const _0xd10fc5=_0x34d6a1['mapper'][_0x3b32('0x1a')](_0x5abead);if(_0xd10fc5&&_0xd10fc5[_0x3b32('0xa')](_0x3b32('0x12')))return;'elementEnd'==_0x3c50b8[_0x3b32('0xe')]&&(_0x9fc509['isBlock'](_0x5abead)&&!_0x9fc509['isLimit'](_0x5abead)&&(_0x5abead[_0x3b32('0x1f')]||_0x2ed6f6['isAtEnd']?_0x37f4e1&&_0x37f4e1[_0x3b32('0xc')]==_0x5abead||(_0x37f4e1=_0x5abead,_0x236e4b(_0x3c50b8[_0x3b32('0x1c')]),_0x575a1f=!0x0):_0x2c855c=_0x2c855c||_0x3c50b8[_0x3b32('0x1c')]));}function _0x236e4b(_0x17e1d9){const _0x3b95eb=_0x34d6a1[_0x3b32('0x9')][_0x3b32('0x13')](_0x3b32('0x18'),{'class':'ck-suggestion-marker-'+_0x2dbbc3}),_0x12cf01=_0x34d6a1[_0x3b32('0x1e')][_0x3b32('0x15')](_0x17e1d9);_0x2ebc90&&_0x36bf24[_0x3b32('0x5')][_0x3b32('0x17')](_0x163a9a[_0x3b32('0x0')])&&_0x34d6a1['writer']['addClass']('ck-suggestion-marker--active',_0x3b95eb),_0x34d6a1[_0x3b32('0x9')][_0x3b32('0xf')](_0x12cf01,_0x3b95eb),_0x34d6a1['mapper'][_0x3b32('0x2')](_0x3b95eb,_0x163a9a[_0x3b32('0x0')]);}_0x4fbdbb||_0x575a1f||!_0x2c855c||_0x236e4b(_0x2c855c);};}
23
+ const _0x3923=['get','mapper','listItem','activeMarkers','test','push','ck-suggestion-marker-','isLimit','type','addClass','model','schema','addHighlight','getItems','includes','insert','bindElementToMarker','consumable','getWalker','TrackChangesEditing','parent','elementEnd','element','isContent','getAttribute','listIndent','nextSibling','markerRange','ck-suggestion-marker--active','name','toViewPosition','writer','markerName','plugins'];(function(_0x22e0b0,_0x3923c0){const _0x59e21c=function(_0x4a6d4e){while(--_0x4a6d4e){_0x22e0b0['push'](_0x22e0b0['shift']());}};_0x59e21c(++_0x3923c0);}(_0x3923,0xf6));const _0x59e2=function(_0x22e0b0,_0x3923c0){_0x22e0b0=_0x22e0b0-0x0;let _0x59e21c=_0x3923[_0x22e0b0];return _0x59e21c;};export function getRangesWithAttribute(_0x2233ef,_0x48af14,_0x2a9f09){const _0x228f9b=[];for(const _0x57ba2b of _0x48af14[_0x59e2('0x5')]())_0x57ba2b['hasAttribute'](_0x2233ef)&&_0x228f9b[_0x59e2('0x1f')](_0x2a9f09['createRangeOn'](_0x57ba2b));return _0x228f9b;}export function getElementsAffectedByListItemRename(_0x182ad8){const _0x378480=[];if(_0x182ad8['is']('element',_0x59e2('0x1c'))){let _0x13faa4=_0x182ad8[_0x59e2('0x12')];for(;_0x13faa4&&_0x13faa4['is'](_0x59e2('0xe'),_0x59e2('0x1c'))&&_0x13faa4[_0x59e2('0x10')](_0x59e2('0x11'))>0x0;)_0x378480[_0x59e2('0x1f')](_0x13faa4),_0x13faa4=_0x13faa4[_0x59e2('0x12')];}return _0x378480;}export function downcastSplitMergeMarker(_0x45694d,_0x303efc,{showActiveMarker:_0x309d23=!0x0}={}){const _0x40e22f=_0x45694d[_0x59e2('0x19')][_0x59e2('0x1a')](_0x59e2('0xb'));return(_0x415ce0,_0x18222b,_0x3a0748)=>{if(!_0x3a0748[_0x59e2('0x9')][_0x59e2('0x1e')](_0x18222b['markerRange'],_0x415ce0[_0x59e2('0x15')]))return;const _0x560c86=_0x18222b[_0x59e2('0x13')][_0x59e2('0xa')](),_0x5f40d5=_0x18222b['markerRange']['start'],_0x13fc0e=_0x45694d[_0x59e2('0x2')][_0x59e2('0x3')];let _0x2433f8=null,_0x5ad8c9=null,_0x1a3906=!0x1,_0xd8b67=!0x1;for(const _0x59fd47 of _0x560c86){const _0xc52a07=_0x59fd47['item'];_0x1a3906=_0x1a3906||_0x13fc0e[_0x59e2('0xf')](_0xc52a07);const _0xf05edd=_0x3a0748[_0x59e2('0x1b')]['toViewElement'](_0xc52a07);if(_0xf05edd&&_0xf05edd['getCustomProperty'](_0x59e2('0x4')))return;_0x59e2('0xd')==_0x59fd47[_0x59e2('0x0')]&&(_0x13fc0e['isBlock'](_0xc52a07)&&!_0x13fc0e[_0x59e2('0x21')](_0xc52a07)&&(_0xc52a07[_0x59e2('0x12')]||_0x5f40d5['isAtEnd']?_0x2433f8&&_0x2433f8[_0x59e2('0xc')]==_0xc52a07||(_0x2433f8=_0xc52a07,_0x7ec4ea(_0x59fd47['previousPosition']),_0xd8b67=!0x0):_0x5ad8c9=_0x5ad8c9||_0x59fd47['previousPosition']));}function _0x7ec4ea(_0x83ecad){const _0x51f35e=_0x3a0748[_0x59e2('0x17')]['createUIElement']('span',{'class':_0x59e2('0x20')+_0x303efc}),_0x4e3787=_0x3a0748[_0x59e2('0x1b')][_0x59e2('0x16')](_0x83ecad);_0x309d23&&_0x40e22f[_0x59e2('0x1d')][_0x59e2('0x6')](_0x18222b['markerName'])&&_0x3a0748[_0x59e2('0x17')][_0x59e2('0x1')](_0x59e2('0x14'),_0x51f35e),_0x3a0748[_0x59e2('0x17')][_0x59e2('0x7')](_0x4e3787,_0x51f35e),_0x3a0748[_0x59e2('0x1b')][_0x59e2('0x8')](_0x51f35e,_0x18222b[_0x59e2('0x18')]);}_0x1a3906||_0xd8b67||!_0x5ad8c9||_0x7ec4ea(_0x5ad8c9);};}
@@ -1,14 +1,24 @@
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
+ */
1
5
  /**
2
6
  * @module track-changes/suggestion
3
7
  * @publicApi
4
8
  */
5
- import { Element, type Marker, type Model, type Range, type Item } from 'ckeditor5/src/engine.js';
6
- import type { User } from 'ckeditor5-collaboration';
9
+ import { Element, type Marker, type Model, type Range, type Item } from 'ckeditor5/src/engine';
10
+ import type { User } from 'ckeditor5-collaboration/src/collaboration-core';
7
11
  import type { CommentThread } from '@ckeditor/ckeditor5-comments';
8
- import type { FormatData } from './trackchangesediting.js';
12
+ import type { FormatData } from './trackchangesediting';
9
13
  declare const Suggestion_base: {
10
- new (): import("ckeditor5/src/utils.js").Observable;
11
- prototype: import("ckeditor5/src/utils.js").Observable;
14
+ new (): import("ckeditor5/src/utils").Observable;
15
+ prototype: import("ckeditor5/src/utils").Observable; /**
16
+ * Previous suggestion in suggestions chain.
17
+ *
18
+ * Chained suggestions should be handled as one entity.
19
+ *
20
+ * @observable
21
+ */
12
22
  };
13
23
  /**
14
24
  * Represents a singular suggestion that is tracked by track changes plugin.
package/src/suggestion.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1d7f=['suggestion:','add','next','data','accept','map','markers','removeMarker','start','set','attributes','get','getItems','addMarkerName','getFirstMarker','from','nodeAfter','commentThread','_markerNames','isIntersectingWithRange','getMarkers','creator','clear','filter','removeAttribute','author','delete','substr','onAttributesChange','_onDiscard','removeMarkers','decorate','type','addMarker','_onAttributesChange','_onAccept','getRange','previous','@external','getFirstRange','split','length','authoredAt','getMultiRangeId','discard','getRanges','change','isInContent','onDiscard','_saved','end','size','isExternal','hasComments','subType','nodeBefore','_model','head','setAttribute','push'];(function(_0x19aeac,_0x1d7f7b){const _0x1ba77c=function(_0x2d51d6){while(--_0x2d51d6){_0x19aeac['push'](_0x19aeac['shift']());}};_0x1ba77c(++_0x1d7f7b);}(_0x1d7f,0xcf));const _0x1ba7=function(_0x19aeac,_0x1d7f7b){_0x19aeac=_0x19aeac-0x0;let _0x1ba77c=_0x1d7f[_0x19aeac];return _0x1ba77c;};import{Element as _0x2a9800}from'ckeditor5/src/engine.js';import{ObservableMixin as _0x3faf91,uid as _0x57da9d}from'ckeditor5/src/utils.js';import{cloneDeep as _0x4773e1,isEqual as _0x287e93,set as _0x4fe179,unset as _0x156121}from'lodash-es';export default class u extends _0x3faf91(){constructor(_0x216950,_0x570545){super(),this['id']=_0x570545['id'],this[_0x1ba7('0x5')]=_0x570545[_0x1ba7('0x5')],this['subType']=_0x570545[_0x1ba7('0x1b')]||null,this[_0x1ba7('0x3a')]=_0x570545[_0x1ba7('0x3a')],this[_0x1ba7('0x36')]=_0x570545['creator']||_0x570545['author'],this[_0x1ba7('0x19')]=Boolean(_0x570545[_0x1ba7('0x2b')]&&_0x570545['attributes'][_0x1ba7('0xb')]),this[_0x1ba7('0x24')]=null,this[_0x1ba7('0x1d')]=_0x216950,this['_onAccept']=_0x570545['onAccept'],this[_0x1ba7('0x2')]=_0x570545[_0x1ba7('0x15')],this['_onAttributesChange']=_0x570545[_0x1ba7('0x1')],this[_0x1ba7('0x33')]=new Set(),this['createdAt']=null,this[_0x1ba7('0x2a')](_0x1ba7('0xf'),null),this[_0x1ba7('0x2a')](_0x1ba7('0x2b'),_0x570545[_0x1ba7('0x2b')]||{}),this[_0x1ba7('0x2a')](_0x1ba7('0xa'),null),this[_0x1ba7('0x2a')](_0x1ba7('0x23'),null),this[_0x1ba7('0x2a')]('commentThread',null),this[_0x1ba7('0x2a')](_0x1ba7('0x16'),!0x1),this['decorate'](_0x1ba7('0x25')),this[_0x1ba7('0x4')](_0x1ba7('0x11'));}get[_0x1ba7('0x1e')](){let _0x386a8f=this;for(;_0x386a8f[_0x1ba7('0xa')];)_0x386a8f=_0x386a8f[_0x1ba7('0xa')];return _0x386a8f;}get[_0x1ba7('0x1a')](){return!!this[_0x1ba7('0x32')]&&this[_0x1ba7('0x32')][_0x1ba7('0xe')]>0x0;}get['isMultiRange'](){if(0x0==this[_0x1ba7('0x33')][_0x1ba7('0x18')])return!0x1;return 0x6==Array[_0x1ba7('0x30')](this[_0x1ba7('0x33')])[0x0][_0x1ba7('0xd')](':')[_0x1ba7('0xe')];}get[_0x1ba7('0x14')](){return null!==this[_0x1ba7('0x2f')]();}[_0x1ba7('0x2e')](_0x392961){this[_0x1ba7('0x33')][_0x1ba7('0x22')](_0x392961);}['getMarkerNames'](){return Array[_0x1ba7('0x30')](this[_0x1ba7('0x33')]);}[_0x1ba7('0x35')](){return this['getMarkerNames']()[_0x1ba7('0x26')](_0x5d526e=>this['_model'][_0x1ba7('0x27')][_0x1ba7('0x2c')](_0x5d526e))[_0x1ba7('0x38')](_0x11c533=>_0x11c533);}['getFirstMarker'](){return this[_0x1ba7('0x35')]()[0x0]||null;}[_0x1ba7('0x3')](){this[_0x1ba7('0x1d')][_0x1ba7('0x13')](_0x4e05ba=>{for(const _0x555373 of this[_0x1ba7('0x35')]())_0x4e05ba[_0x1ba7('0x28')](_0x555373);}),this[_0x1ba7('0x33')][_0x1ba7('0x37')]();}[_0x1ba7('0x28')](_0x35532e){this[_0x1ba7('0x1d')][_0x1ba7('0x13')](_0x3a9bcb=>{_0x3a9bcb[_0x1ba7('0x28')](_0x35532e);}),this['_markerNames'][_0x1ba7('0x3b')](_0x35532e);}['addRange'](_0x5d599d){const _0x57bce5=_0x1ba7('0x21')+this[_0x1ba7('0x5')]+':'+this[_0x1ba7('0x1b')]+':'+this['id']+':'+this[_0x1ba7('0x36')]['id']+':'+u['getMultiRangeId']();this[_0x1ba7('0x2e')](_0x57bce5),this['_model']['change'](_0xc8fe3=>{_0xc8fe3[_0x1ba7('0x6')](_0x57bce5,{'range':_0x5d599d,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x1ba7('0x34')](_0xf959aa){for(const _0x2dddaa of this[_0x1ba7('0x12')]())if(_0x2dddaa['isIntersecting'](_0xf959aa))return!0x0;return!0x1;}[_0x1ba7('0x12')](){return this[_0x1ba7('0x35')]()['map'](_0x21a840=>_0x21a840[_0x1ba7('0x9')]());}[_0x1ba7('0x2d')](){return this[_0x1ba7('0x12')]()['reduce']((_0x116db2,_0x117887)=>[..._0x116db2,..._0x117887[_0x1ba7('0x2d')]()],[]);}[_0x1ba7('0xc')](){var _0x1059cb;return(null===(_0x1059cb=this['getFirstMarker']())||void 0x0===_0x1059cb?void 0x0:_0x1059cb['getRange']())||null;}['getContainedElement'](){const _0xb569fc=this[_0x1ba7('0x12')]();if(0x1!=_0xb569fc[_0x1ba7('0xe')])return null;const _0x5cf4a0=_0xb569fc[0x0],_0x43aee5=_0x5cf4a0[_0x1ba7('0x29')][_0x1ba7('0x31')],_0x419ce1=_0x5cf4a0[_0x1ba7('0x17')][_0x1ba7('0x1c')];return _0x43aee5 instanceof _0x2a9800?_0x43aee5!=_0x419ce1?null:_0x43aee5:null;}[_0x1ba7('0x25')](){this[_0x1ba7('0x8')](this[_0x1ba7('0x12')](),this[_0x1ba7('0x24')],this[_0x1ba7('0x2b')]),this[_0x1ba7('0x3')]();}['discard'](){this['_onDiscard'](this[_0x1ba7('0x12')](),this[_0x1ba7('0x24')],this['attributes']),this['removeMarkers']();}['getAllAdjacentSuggestions'](){const _0x4e6933=[];let _0x1efa2a=this[_0x1ba7('0x1e')];for(;_0x1efa2a;)_0x4e6933[_0x1ba7('0x20')](_0x1efa2a),_0x1efa2a=_0x1efa2a[_0x1ba7('0x23')];return _0x4e6933;}[_0x1ba7('0x1f')](_0x22e78b,_0x4a1c9c){const _0x21b699=_0x4773e1(this['attributes']);_0x4fe179(_0x21b699,_0x22e78b,_0x4a1c9c),_0x287e93(_0x21b699,this['attributes'])||(this[_0x1ba7('0x2b')]=_0x21b699,this[_0x1ba7('0x7')](_0x21b699));}[_0x1ba7('0x39')](_0x2030a8){const _0x2d50e2=_0x4773e1(this[_0x1ba7('0x2b')]);_0x156121(_0x2d50e2,_0x2030a8),_0x287e93(_0x2d50e2,this[_0x1ba7('0x2b')])||(this[_0x1ba7('0x2b')]=_0x2d50e2,this['_onAttributesChange'](this[_0x1ba7('0x2b')]));}['toJSON'](){return{'id':this['id'],'type':this[_0x1ba7('0x1b')]?this[_0x1ba7('0x5')]+':'+this[_0x1ba7('0x1b')]:this[_0x1ba7('0x5')],'authorId':this[_0x1ba7('0x36')]['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this[_0x1ba7('0x24')],'attributes':this[_0x1ba7('0x2b')]};}static[_0x1ba7('0x10')](){return _0x57da9d()[_0x1ba7('0x0')](0x1,0x5);}}
23
+ const _0x9808=['_model','getRanges','discard','split','head','getItems','reduce','add','toJSON','nodeAfter','getMarkers','getRange','addRange','commentThread','_onDiscard','getMultiRangeId','createdAt','subType','getFirstMarker','onAttributesChange','accept','addMarker','push','get','getFirstRange','onAccept','getContainedElement','next','markers','attributes','decorate','data','author','start','_markerNames','clear','suggestion:','_onAttributesChange','nodeBefore','type','set','onDiscard','map','removeAttribute','isIntersecting','length','_onAccept','isMultiRange','end','hasComments','creator','@external','change','isIntersectingWithRange','isInContent','removeMarker','from','getMarkerNames','authoredAt','setAttribute','previous','removeMarkers'];(function(_0x3cae3e,_0x9808dc){const _0x4ec64f=function(_0x4c17b0){while(--_0x4c17b0){_0x3cae3e['push'](_0x3cae3e['shift']());}};_0x4ec64f(++_0x9808dc);}(_0x9808,0x163));const _0x4ec6=function(_0x3cae3e,_0x9808dc){_0x3cae3e=_0x3cae3e-0x0;let _0x4ec64f=_0x9808[_0x3cae3e];return _0x4ec64f;};import{Element as _0x20afd1}from'ckeditor5/src/engine';import{ObservableMixin as _0x1c9a60,uid as _0x4b2b9d}from'ckeditor5/src/utils';import{cloneDeep as _0x18cef9,isEqual as _0x163eab,set as _0x1c5797,unset as _0x42ca37}from'lodash-es';export default class u extends _0x1c9a60(){constructor(_0x32e0cb,_0xe666){super(),this['id']=_0xe666['id'],this[_0x4ec6('0x38')]=_0xe666[_0x4ec6('0x38')],this[_0x4ec6('0x22')]=_0xe666['subType']||null,this[_0x4ec6('0x31')]=_0xe666[_0x4ec6('0x31')],this[_0x4ec6('0x5')]=_0xe666[_0x4ec6('0x5')]||_0xe666[_0x4ec6('0x31')],this['isExternal']=Boolean(_0xe666['attributes']&&_0xe666[_0x4ec6('0x2e')][_0x4ec6('0x6')]),this[_0x4ec6('0x30')]=null,this[_0x4ec6('0x11')]=_0x32e0cb,this[_0x4ec6('0x1')]=_0xe666[_0x4ec6('0x2a')],this[_0x4ec6('0x1f')]=_0xe666[_0x4ec6('0x3a')],this['_onAttributesChange']=_0xe666[_0x4ec6('0x24')],this['_markerNames']=new Set(),this[_0x4ec6('0x21')]=null,this[_0x4ec6('0x39')](_0x4ec6('0xd'),null),this['set'](_0x4ec6('0x2e'),_0xe666[_0x4ec6('0x2e')]||{}),this['set'](_0x4ec6('0xf'),null),this['set'](_0x4ec6('0x2c'),null),this[_0x4ec6('0x39')](_0x4ec6('0x1e'),null),this[_0x4ec6('0x39')]('_saved',!0x1),this['decorate'](_0x4ec6('0x25')),this[_0x4ec6('0x2f')](_0x4ec6('0x13'));}get[_0x4ec6('0x15')](){let _0x4349c4=this;for(;_0x4349c4[_0x4ec6('0xf')];)_0x4349c4=_0x4349c4[_0x4ec6('0xf')];return _0x4349c4;}get[_0x4ec6('0x4')](){return!!this[_0x4ec6('0x1e')]&&this['commentThread'][_0x4ec6('0x0')]>0x0;}get[_0x4ec6('0x2')](){if(0x0==this[_0x4ec6('0x33')]['size'])return!0x1;return 0x6==Array[_0x4ec6('0xb')](this[_0x4ec6('0x33')])[0x0][_0x4ec6('0x14')](':')['length'];}get[_0x4ec6('0x9')](){return null!==this[_0x4ec6('0x23')]();}['addMarkerName'](_0x197dce){this['_markerNames'][_0x4ec6('0x18')](_0x197dce);}['getMarkerNames'](){return Array[_0x4ec6('0xb')](this[_0x4ec6('0x33')]);}[_0x4ec6('0x1b')](){return this[_0x4ec6('0xc')]()[_0x4ec6('0x3b')](_0x27f148=>this[_0x4ec6('0x11')][_0x4ec6('0x2d')][_0x4ec6('0x28')](_0x27f148))['filter'](_0x46be26=>_0x46be26);}[_0x4ec6('0x23')](){return this[_0x4ec6('0x1b')]()[0x0]||null;}[_0x4ec6('0x10')](){this[_0x4ec6('0x11')]['change'](_0x17d2c3=>{for(const _0x76b15 of this[_0x4ec6('0x1b')]())_0x17d2c3[_0x4ec6('0xa')](_0x76b15);}),this['_markerNames'][_0x4ec6('0x34')]();}[_0x4ec6('0xa')](_0x24707d){this[_0x4ec6('0x11')][_0x4ec6('0x7')](_0x4c5a1a=>{_0x4c5a1a[_0x4ec6('0xa')](_0x24707d);}),this[_0x4ec6('0x33')]['delete'](_0x24707d);}[_0x4ec6('0x1d')](_0x142056){const _0x17ea84=_0x4ec6('0x35')+this[_0x4ec6('0x38')]+':'+this[_0x4ec6('0x22')]+':'+this['id']+':'+this[_0x4ec6('0x5')]['id']+':'+u[_0x4ec6('0x20')]();this['addMarkerName'](_0x17ea84),this[_0x4ec6('0x11')][_0x4ec6('0x7')](_0xd7de07=>{_0xd7de07[_0x4ec6('0x26')](_0x17ea84,{'range':_0x142056,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4ec6('0x8')](_0x43660c){for(const _0xc51c94 of this[_0x4ec6('0x12')]())if(_0xc51c94[_0x4ec6('0x3d')](_0x43660c))return!0x0;return!0x1;}[_0x4ec6('0x12')](){return this[_0x4ec6('0x1b')]()[_0x4ec6('0x3b')](_0x53412e=>_0x53412e[_0x4ec6('0x1c')]());}[_0x4ec6('0x16')](){return this[_0x4ec6('0x12')]()[_0x4ec6('0x17')]((_0x3fdbac,_0x48058b)=>[..._0x3fdbac,..._0x48058b['getItems']()],[]);}[_0x4ec6('0x29')](){var _0x25247b;return(null===(_0x25247b=this[_0x4ec6('0x23')]())||void 0x0===_0x25247b?void 0x0:_0x25247b[_0x4ec6('0x1c')]())||null;}[_0x4ec6('0x2b')](){const _0x872b8f=this[_0x4ec6('0x12')]();if(0x1!=_0x872b8f[_0x4ec6('0x0')])return null;const _0x5b2052=_0x872b8f[0x0],_0x42205e=_0x5b2052[_0x4ec6('0x32')][_0x4ec6('0x1a')],_0x4a3e22=_0x5b2052[_0x4ec6('0x3')][_0x4ec6('0x37')];return _0x42205e instanceof _0x20afd1?_0x42205e!=_0x4a3e22?null:_0x42205e:null;}[_0x4ec6('0x25')](){this[_0x4ec6('0x1')](this['getRanges'](),this['data'],this['attributes']),this[_0x4ec6('0x10')]();}[_0x4ec6('0x13')](){this['_onDiscard'](this[_0x4ec6('0x12')](),this['data'],this[_0x4ec6('0x2e')]),this[_0x4ec6('0x10')]();}['getAllAdjacentSuggestions'](){const _0x39afee=[];let _0x42c74f=this['head'];for(;_0x42c74f;)_0x39afee[_0x4ec6('0x27')](_0x42c74f),_0x42c74f=_0x42c74f[_0x4ec6('0x2c')];return _0x39afee;}[_0x4ec6('0xe')](_0x300ec6,_0x57e64f){const _0xae42ba=_0x18cef9(this[_0x4ec6('0x2e')]);_0x1c5797(_0xae42ba,_0x300ec6,_0x57e64f),_0x163eab(_0xae42ba,this['attributes'])||(this[_0x4ec6('0x2e')]=_0xae42ba,this['_onAttributesChange'](_0xae42ba));}[_0x4ec6('0x3c')](_0x4b1eb9){const _0x4f54a6=_0x18cef9(this['attributes']);_0x42ca37(_0x4f54a6,_0x4b1eb9),_0x163eab(_0x4f54a6,this[_0x4ec6('0x2e')])||(this[_0x4ec6('0x2e')]=_0x4f54a6,this[_0x4ec6('0x36')](this[_0x4ec6('0x2e')]));}[_0x4ec6('0x19')](){return{'id':this['id'],'type':this[_0x4ec6('0x22')]?this[_0x4ec6('0x38')]+':'+this[_0x4ec6('0x22')]:this['type'],'authorId':this['creator']['id'],'createdAt':this[_0x4ec6('0x21')],'hasComments':this[_0x4ec6('0x4')],'data':this[_0x4ec6('0x30')],'attributes':this['attributes']};}static[_0x4ec6('0x20')](){return _0x4b2b9d()['substr'](0x1,0x5);}}
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @module track-changes/suggestiondescriptionfactory
3
- * @publicApi
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
4
  */
5
- import { type Locale, type PriorityString } from 'ckeditor5/src/utils.js';
6
- import type { Schema, Element } from 'ckeditor5/src/engine.js';
7
- import type Suggestion from './suggestion.js';
5
+ import { type Locale, type PriorityString } from 'ckeditor5/src/utils';
6
+ import type { Schema, Element } from 'ckeditor5/src/engine';
7
+ import type Suggestion from './suggestion';
8
8
  /**
9
9
  * Creates descriptions for suggestion chains.
10
10
  *