@ckeditor/ckeditor5-track-changes 31.1.0 → 32.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 (81) hide show
  1. package/LICENSE.md +2 -2
  2. package/README.md +2 -2
  3. package/lang/contexts.json +1 -1
  4. package/lang/translations/cs.po +3 -3
  5. package/lang/translations/da.po +3 -3
  6. package/lang/translations/de.po +3 -3
  7. package/lang/translations/en-au.po +3 -3
  8. package/lang/translations/en.po +2 -2
  9. package/lang/translations/es.po +2 -2
  10. package/lang/translations/et.po +2 -2
  11. package/lang/translations/fr.po +3 -3
  12. package/lang/translations/gl.po +3 -3
  13. package/lang/translations/hi.po +3 -3
  14. package/lang/translations/hr.po +3 -3
  15. package/lang/translations/it.po +5 -5
  16. package/lang/translations/nl.po +2 -2
  17. package/lang/translations/pl.po +3 -3
  18. package/lang/translations/pt-br.po +5 -5
  19. package/lang/translations/sk.po +3 -3
  20. package/lang/translations/sr-latn.po +3 -3
  21. package/lang/translations/sr.po +3 -3
  22. package/lang/translations/tk.po +3 -3
  23. package/lang/translations/tr.po +3 -3
  24. package/lang/translations/zh-cn.po +3 -3
  25. package/lang/translations/zh.po +2 -2
  26. package/package.json +7 -7
  27. package/src/commands/acceptallsuggestionscommand.js +2 -2
  28. package/src/commands/acceptselectedsuggestionscommand.js +2 -2
  29. package/src/commands/acceptsuggestioncommand.js +2 -2
  30. package/src/commands/discardallsuggestionscommand.js +2 -2
  31. package/src/commands/discardselectedsuggestionscommand.js +2 -2
  32. package/src/commands/discardsuggestioncommand.js +2 -2
  33. package/src/commands/trackchangescommand.js +2 -2
  34. package/src/integrations/alignment.js +2 -2
  35. package/src/integrations/basicstyles.js +2 -2
  36. package/src/integrations/blockquote.js +2 -2
  37. package/src/integrations/codeblock.js +2 -2
  38. package/src/integrations/comments.js +2 -2
  39. package/src/integrations/deletecommand.js +2 -2
  40. package/src/integrations/entercommand.js +2 -2
  41. package/src/integrations/font.js +2 -2
  42. package/src/integrations/heading.js +2 -2
  43. package/src/integrations/highlight.js +2 -2
  44. package/src/integrations/horizontalline.js +2 -2
  45. package/src/integrations/image.js +2 -2
  46. package/src/integrations/indent.js +2 -2
  47. package/src/integrations/inputcommand.js +2 -2
  48. package/src/integrations/link.js +2 -2
  49. package/src/integrations/list.js +2 -2
  50. package/src/integrations/mediaembed.js +2 -2
  51. package/src/integrations/mention.js +2 -2
  52. package/src/integrations/pagebreak.js +2 -2
  53. package/src/integrations/paragraph.js +2 -2
  54. package/src/integrations/removeformat.js +2 -2
  55. package/src/integrations/restrictededitingmode.js +2 -2
  56. package/src/integrations/shiftentercommand.js +2 -2
  57. package/src/integrations/standardeditingmode.js +2 -2
  58. package/src/integrations/table.js +2 -2
  59. package/src/integrations/tableclipboard.js +2 -2
  60. package/src/integrations/tableheadings.js +2 -2
  61. package/src/integrations/tablemergesplit.js +2 -2
  62. package/src/integrations/title.js +2 -2
  63. package/src/integrations/undo.js +2 -2
  64. package/src/integrations/utils.js +2 -2
  65. package/src/suggestion.js +2 -2
  66. package/src/suggestiondescriptionfactory.js +2 -2
  67. package/src/trackchanges.js +2 -2
  68. package/src/trackchangesdata.js +2 -2
  69. package/src/trackchangesediting.js +2 -2
  70. package/src/trackchangesui.js +2 -2
  71. package/src/ui/suggestioncontroller.js +2 -2
  72. package/src/ui/view/basesuggestionthreadview.js +2 -2
  73. package/src/ui/view/suggestionthreadview.js +2 -2
  74. package/src/utils/getselectedsuggestions.js +2 -2
  75. package/src/utils/hashobject.js +2 -2
  76. package/src/utils/normalizedescription.js +2 -2
  77. package/src/utils/sortsuggestions.js +2 -2
  78. package/theme/icons/track-changes-accept.svg +1 -1
  79. package/theme/icons/track-changes-discard.svg +1 -1
  80. package/theme/icons/track-changes.svg +1 -1
  81. package/theme/suggestionmarker.css +1 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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
- import{Plugin as _0x23da05}from'ckeditor5/src/core';import _0x54d85d from'@ckeditor/ckeditor5-table/src/tablewalker';import ht from'./table';import{getSelectionAffectedTableCells as _0x46ba1c}from'@ckeditor/ckeditor5-table/src/utils/selection';import{LiveRange as _0x38a406}from'ckeditor5/src/engine';export default class ut extends _0x23da05{static get['requires'](){return[ht];}['afterInit'](){const _0x9d565c=this['editor'],_0x166f0a=_0x9d565c['model']['document']['selection'];if(!_0x9d565c['plugins']['has']('TableEditing'))return;const {t:t}=_0x9d565c['locale'],_0x36abdf=_0x9d565c['plugins']['get']('TrackChangesEditing'),_0x2397b1=_0x9d565c['plugins']['get']('TableUtils'),_0x36b444=_0x9d565c['plugins']['get'](ht);_0x36b444['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x36abdf['enableCommand']('mergeTableCells',()=>{const _0x25c28c=_0x46ba1c(_0x9d565c['model']['document']['selection']);_0x9d565c['model']['change'](()=>{_0x36abdf['markMultiRangeBlockFormat'](_0x25c28c,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x9d565c['commands']['get']('mergeTableCells')['on']('execute',(_0x2e3729,_0x5b4b00)=>{_0x9d565c['commands']['get']('trackChanges')['value']&&(_0x5b4b00['length']>0x0&&_0x5b4b00[_0x5b4b00['length']-0x1]&&_0x5b4b00[_0x5b4b00['length']-0x1]['forceDefaultExecution']||_0x36abdf['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2e3729['stop']());},{'priority':'highest'});for(const _0x418912 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3b459d=_0x9d565c['commands']['get'](_0x418912);_0x36abdf['enableCommand'](_0x418912,()=>{const _0x33a1ac=_0x9d565c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5401a5=>_0x5401a5['is']('element','tableCell')),_0x49ed0d=_0x3b459d['value'];_0x9d565c['model']['change'](()=>{_0x36abdf['markMultiRangeBlockFormat']([_0x33a1ac,_0x49ed0d],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1f3606 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3b9dfd=_0x9d565c['commands']['get'](_0x1f3606);_0x36abdf['enableCommand'](_0x1f3606,()=>{const _0x53b521=_0x46ba1c(_0x9d565c['model']['document']['selection'])[0x0],_0xc5e730=_0x53b521['findAncestor']('table'),{column:_0x33470b,row:_0x292a89}=_0x2397b1['getCellLocation'](_0x53b521);let _0x5b16c3=[];if('horizontally'==_0x3b9dfd['direction']){const _0x52b54b=new _0x54d85d(_0xc5e730,{'startRow':_0x292a89,'endRow':_0x292a89,'includeAllSlots':!0x0});_0x5b16c3=Array['from'](_0x52b54b)['map'](_0x292d04=>_0x292d04['cell']);}else{const _0x22fc50=new _0x54d85d(_0xc5e730,{'column':_0x33470b,'includeAllSlots':!0x0});_0x5b16c3=Array['from'](_0x22fc50)['map'](_0x49c03f=>_0x49c03f['cell']);}_0x9d565c['model']['change'](_0x28f648=>{_0x36abdf['markBlockFormat'](_0x28f648['createRangeOn'](_0x53b521),{'commandName':_0x1f3606,'commandParams':[]},_0x5b16c3,_0x1f3606);});});}_0x36abdf['_descriptionFactory']['registerDescriptionCallback'](_0x5958a0=>{const {data:_0x67627a}=_0x5958a0;if(_0x67627a)return'mergeTableCells'==_0x67627a['commandName']?{'type':'format','content':t('*Merge\x20cells*')}:void 0x0;}),_0x36abdf['_descriptionFactory']['registerDescriptionCallback'](_0x5cb6a7=>{const {data:_0x25f3af}=_0x5cb6a7;if(_0x25f3af)return'splitTableCellVertically'==_0x25f3af['commandName']?{'type':'format','content':t('*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x25f3af['commandName']?{'type':'format','content':t('*Split\x20cell:*\x20horizontally')}:void 0x0;});const _0x2aa881=_0x36b444['_acceptFormatSuggestionCallbackFactory']();for(const _0x2eac46 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x36abdf['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2eac46,'accept',_0x2aa881);for(const _0x2d716e of['splitTableCellVertically','splitTableCellHorizontally'])_0x36abdf['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2d716e,'accept',_0x2aa881);_0x36abdf['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x533fee=>{_0x9d565c['model']['change'](_0x26938e=>{const _0x59e903=Array['from'](_0x166f0a['getRanges']())['map'](_0x3b71ee=>_0x38a406['fromRange'](_0x3b71ee));_0x26938e['setSelection'](_0x533fee),_0x9d565c['commands']['get']('mergeTableCells')['refresh'](),_0x9d565c['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x7bf5bf=_0x59e903['filter'](_0x180d5a=>'$graveyard'!=_0x180d5a['root']['rootName']);_0x7bf5bf['length']>0x0&&_0x26938e['setSelection'](_0x7bf5bf);for(const _0x5648cd of _0x59e903)_0x5648cd['detach']();});});for(const _0x4945c3 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x328853=_0x9d565c['commands']['get'](_0x4945c3);_0x328853['on']('set:isEnabled',(_0xfa3965,_0x5d0da1,_0x29533f)=>{if(_0x29533f){const _0x4017f9=_0x9d565c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x311380=>_0x311380['is']('element','tableCell'));this['_areMergableCells'](_0x328853['value'],_0x4017f9)||(_0xfa3965['return']=!0x1,_0xfa3965['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){if(!this['editor']['commands']['get']('mergeTableCells')['isEnabled'])return!0x1;const _0x5e4240=_0x46ba1c(this['editor']['model']['document']['selection']);for(const _0x352fab of _0x5e4240)for(const _0x3849de of _0x5e4240)if(_0x352fab!=_0x3849de&&!this['_areMergableCells'](_0x352fab,_0x3849de))return!0x1;return!0x0;}['_areMergableCells'](_0x597ccd,_0x59a8e8){const _0x2b80d0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x8c547f=this['editor']['model']['createRangeOn'](_0x597ccd),_0x494505=this['editor']['model']['createRangeOn'](_0x59a8e8),_0x1acdeb=new Set(),_0x294edf=new Set();for(const _0x36bb55 of _0x2b80d0['getSuggestions']())if(('insertion'==_0x36bb55['type']||'deletion'==_0x36bb55['type']||'mergeTableCells'==_0x36bb55['subType'])&&_0x36bb55['isInContent'])for(const _0x3032d8 of _0x36bb55['getRanges']())_0x3032d8['containsRange'](_0x8c547f,!0x0)&&_0x1acdeb['add'](_0x36bb55['type']+':'+_0x36bb55['author']['id']),_0x3032d8['containsRange'](_0x494505,!0x0)&&_0x294edf['add'](_0x36bb55['type']+':'+_0x36bb55['author']['id']);if(_0x1acdeb['size']!=_0x294edf['size'])return!0x1;for(const _0x576c3d of _0x1acdeb)if(!_0x294edf['has'](_0x576c3d))return!0x1;return!0x0;}}
23
+ import{Plugin as _0x234039}from'ckeditor5/src/core';import _0x2187be from'@ckeditor/ckeditor5-table/src/tablewalker';import ht from'./table';import{getSelectionAffectedTableCells as _0x2ed7de}from'@ckeditor/ckeditor5-table/src/utils/selection';import{LiveRange as _0x494018}from'ckeditor5/src/engine';export default class ut extends _0x234039{static get['requires'](){return[ht];}['afterInit'](){const _0x3d6c59=this['editor'],_0x405fe4=_0x3d6c59['model']['document']['selection'];if(!_0x3d6c59['plugins']['has']('TableEditing'))return;const {t:t}=_0x3d6c59['locale'],_0x38d9f1=_0x3d6c59['plugins']['get']('TrackChangesEditing'),_0x19daa2=_0x3d6c59['plugins']['get']('TableUtils'),_0x20f3d5=_0x3d6c59['plugins']['get'](ht);_0x20f3d5['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x38d9f1['enableCommand']('mergeTableCells',()=>{const _0xef867b=_0x2ed7de(_0x3d6c59['model']['document']['selection']);_0x3d6c59['model']['change'](()=>{_0x38d9f1['markMultiRangeBlockFormat'](_0xef867b,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3d6c59['commands']['get']('mergeTableCells')['on']('execute',(_0x489c43,_0x4ff1dc)=>{_0x3d6c59['commands']['get']('trackChanges')['value']&&(_0x4ff1dc['length']>0x0&&_0x4ff1dc[_0x4ff1dc['length']-0x1]&&_0x4ff1dc[_0x4ff1dc['length']-0x1]['forceDefaultExecution']||_0x38d9f1['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x489c43['stop']());},{'priority':'highest'});for(const _0x189045 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x50f1aa=_0x3d6c59['commands']['get'](_0x189045);_0x38d9f1['enableCommand'](_0x189045,()=>{const _0xf69d94=_0x3d6c59['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x246922=>_0x246922['is']('element','tableCell')),_0x45e5bc=_0x50f1aa['value'];_0x3d6c59['model']['change'](()=>{_0x38d9f1['markMultiRangeBlockFormat']([_0xf69d94,_0x45e5bc],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x57d8fd of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2680c3=_0x3d6c59['commands']['get'](_0x57d8fd);_0x38d9f1['enableCommand'](_0x57d8fd,()=>{const _0xf0ecd=_0x2ed7de(_0x3d6c59['model']['document']['selection'])[0x0],_0x38d845=_0xf0ecd['findAncestor']('table'),{column:_0x3ffaa1,row:_0x5015b5}=_0x19daa2['getCellLocation'](_0xf0ecd);let _0x506e71=[];if('horizontally'==_0x2680c3['direction']){const _0x46416b=new _0x2187be(_0x38d845,{'startRow':_0x5015b5,'endRow':_0x5015b5,'includeAllSlots':!0x0});_0x506e71=Array['from'](_0x46416b)['map'](_0x50a594=>_0x50a594['cell']);}else{const _0x59cf41=new _0x2187be(_0x38d845,{'column':_0x3ffaa1,'includeAllSlots':!0x0});_0x506e71=Array['from'](_0x59cf41)['map'](_0x46a439=>_0x46a439['cell']);}_0x3d6c59['model']['change'](_0x41fa92=>{_0x38d9f1['markBlockFormat'](_0x41fa92['createRangeOn'](_0xf0ecd),{'commandName':_0x57d8fd,'commandParams':[]},_0x506e71,_0x57d8fd);});});}_0x38d9f1['_descriptionFactory']['registerDescriptionCallback'](_0xf2e6fd=>{const {data:_0x18c569}=_0xf2e6fd;if(_0x18c569)return'mergeTableCells'==_0x18c569['commandName']?{'type':'format','content':t('*Merge\x20cells*')}:void 0x0;}),_0x38d9f1['_descriptionFactory']['registerDescriptionCallback'](_0x40c870=>{const {data:_0x4e19c7}=_0x40c870;if(_0x4e19c7)return'splitTableCellVertically'==_0x4e19c7['commandName']?{'type':'format','content':t('*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4e19c7['commandName']?{'type':'format','content':t('*Split\x20cell:*\x20horizontally')}:void 0x0;});const _0x569e79=_0x20f3d5['_acceptFormatSuggestionCallbackFactory']();for(const _0x2a2d13 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x38d9f1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2a2d13,'accept',_0x569e79);for(const _0xd942a8 of['splitTableCellVertically','splitTableCellHorizontally'])_0x38d9f1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xd942a8,'accept',_0x569e79);_0x38d9f1['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x15b7f0=>{_0x3d6c59['model']['change'](_0x5c804d=>{const _0x56d9e9=Array['from'](_0x405fe4['getRanges']())['map'](_0x45b4d1=>_0x494018['fromRange'](_0x45b4d1));_0x5c804d['setSelection'](_0x15b7f0),_0x3d6c59['commands']['get']('mergeTableCells')['refresh'](),_0x3d6c59['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5438ee=_0x56d9e9['filter'](_0x217bd0=>'$graveyard'!=_0x217bd0['root']['rootName']);_0x5438ee['length']>0x0&&_0x5c804d['setSelection'](_0x5438ee);for(const _0x42634c of _0x56d9e9)_0x42634c['detach']();});});for(const _0x390a7f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x557726=_0x3d6c59['commands']['get'](_0x390a7f);_0x557726['on']('set:isEnabled',(_0x2f2e83,_0x178f16,_0x2ddcb2)=>{if(_0x2ddcb2){const _0x46c733=_0x3d6c59['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2db6e2=>_0x2db6e2['is']('element','tableCell'));this['_areMergableCells'](_0x557726['value'],_0x46c733)||(_0x2f2e83['return']=!0x1,_0x2f2e83['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){if(!this['editor']['commands']['get']('mergeTableCells')['isEnabled'])return!0x1;const _0x591857=_0x2ed7de(this['editor']['model']['document']['selection']);for(const _0x4773f1 of _0x591857)for(const _0x195d03 of _0x591857)if(_0x4773f1!=_0x195d03&&!this['_areMergableCells'](_0x4773f1,_0x195d03))return!0x1;return!0x0;}['_areMergableCells'](_0x1b4d39,_0x395612){const _0x19af38=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52d1fc=this['editor']['model']['createRangeOn'](_0x1b4d39),_0x5036bb=this['editor']['model']['createRangeOn'](_0x395612),_0x20be54=new Set(),_0x596539=new Set();for(const _0x2152b6 of _0x19af38['getSuggestions']())if(('insertion'==_0x2152b6['type']||'deletion'==_0x2152b6['type']||'mergeTableCells'==_0x2152b6['subType'])&&_0x2152b6['isInContent'])for(const _0x18ba2e of _0x2152b6['getRanges']())_0x18ba2e['containsRange'](_0x52d1fc,!0x0)&&_0x20be54['add'](_0x2152b6['type']+':'+_0x2152b6['author']['id']),_0x18ba2e['containsRange'](_0x5036bb,!0x0)&&_0x596539['add'](_0x2152b6['type']+':'+_0x2152b6['author']['id']);if(_0x20be54['size']!=_0x596539['size'])return!0x1;for(const _0x22f354 of _0x20be54)if(!_0x596539['has'](_0x22f354))return!0x1;return!0x0;}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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
- import{Plugin as _0x5999d2}from'ckeditor5/src/core';export default class lt extends _0x5999d2{['afterInit'](){const _0x120902=this['editor'],t=_0x120902['t'];if(!_0x120902['plugins']['has']('Title'))return;const _0x38390a=_0x120902['plugins']['get']('TrackChangesEditing');_0x38390a['_descriptionFactory']['registerElementLabel']('title-content',()=>t({'id':'ELEMENT_TITLE','string':'title'})),_0x120902['model']['document']['registerPostFixer'](_0x5cd946=>{let _0x4cd350=!0x1;const _0x5a2423=Array['from'](_0x120902['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x283a09,data:_0x1101c3}of _0x5a2423){const {group:_0x460ce0}=_0x38390a['_splitMarkerName'](_0x283a09);if('suggestion'!==_0x460ce0||!_0x1101c3['newRange'])continue;const _0x535bb0=_0x1101c3['newRange'],_0xdb345c=_0x535bb0['end']['nodeBefore'];if(!_0xdb345c||!_0xdb345c['is']('element','title-content'))continue;if(!_0x535bb0['start']['isTouching'](_0x535bb0['end']))continue;const _0x8c481=_0x120902['model']['schema']['getNearestSelectionRange'](_0x535bb0['end'],'forward');if(_0x8c481&&_0x8c481['isCollapsed']){const _0x2f9095=_0x5cd946['createRange'](_0x535bb0['start'],_0x8c481['start']);_0x2f9095['isEqual'](_0x535bb0)||(_0x5cd946['updateMarker'](_0x283a09,{'range':_0x2f9095}),_0x4cd350=!0x0);}_0x4cd350||(_0x5cd946['removeMarker'](_0x283a09),_0x4cd350=!0x0);}return _0x4cd350;});}}
23
+ import{Plugin as _0x19fda8}from'ckeditor5/src/core';export default class lt extends _0x19fda8{['afterInit'](){const _0x1c631c=this['editor'],t=_0x1c631c['t'];if(!_0x1c631c['plugins']['has']('Title'))return;const _0xfca28b=_0x1c631c['plugins']['get']('TrackChangesEditing');_0xfca28b['_descriptionFactory']['registerElementLabel']('title-content',()=>t({'id':'ELEMENT_TITLE','string':'title'})),_0x1c631c['model']['document']['registerPostFixer'](_0x1c1ba0=>{let _0x7e9fa=!0x1;const _0x399d80=Array['from'](_0x1c631c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x54e4d9,data:_0x5397fb}of _0x399d80){const {group:_0x10d67d}=_0xfca28b['_splitMarkerName'](_0x54e4d9);if('suggestion'!==_0x10d67d||!_0x5397fb['newRange'])continue;const _0x2d07fc=_0x5397fb['newRange'],_0x168f2a=_0x2d07fc['end']['nodeBefore'];if(!_0x168f2a||!_0x168f2a['is']('element','title-content'))continue;if(!_0x2d07fc['start']['isTouching'](_0x2d07fc['end']))continue;const _0x35c0e9=_0x1c631c['model']['schema']['getNearestSelectionRange'](_0x2d07fc['end'],'forward');if(_0x35c0e9&&_0x35c0e9['isCollapsed']){const _0x59c04a=_0x1c1ba0['createRange'](_0x2d07fc['start'],_0x35c0e9['start']);_0x59c04a['isEqual'](_0x2d07fc)||(_0x1c1ba0['updateMarker'](_0x54e4d9,{'range':_0x59c04a}),_0x7e9fa=!0x0);}_0x7e9fa||(_0x1c1ba0['removeMarker'](_0x54e4d9),_0x7e9fa=!0x0);}return _0x7e9fa;});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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 _0x53fe=['enableCommand','get','UndoEditing','plugins','has','editor','redo','TrackChangesEditing','undo','afterInit'];(function(_0xcfe96b,_0x53feb0){const _0xf79aaf=function(_0x5b6229){while(--_0x5b6229){_0xcfe96b['push'](_0xcfe96b['shift']());}};_0xf79aaf(++_0x53feb0);}(_0x53fe,0x9a));const _0xf79a=function(_0xcfe96b,_0x53feb0){_0xcfe96b=_0xcfe96b-0x0;let _0xf79aaf=_0x53fe[_0xcfe96b];return _0xf79aaf;};import{Plugin as _0x60e0c2}from'ckeditor5/src/core';export default class dt extends _0x60e0c2{[_0xf79a('0x5')](){const _0x52df5e=this[_0xf79a('0x1')],_0x339ee0=_0x52df5e['plugins'][_0xf79a('0x7')](_0xf79a('0x3'));_0x52df5e[_0xf79a('0x9')][_0xf79a('0x0')](_0xf79a('0x8'))&&(_0x339ee0[_0xf79a('0x6')](_0xf79a('0x4')),_0x339ee0[_0xf79a('0x6')](_0xf79a('0x2')));}}
23
+ const _0x2e8d=['UndoEditing','get','TrackChangesEditing','has','undo','enableCommand','redo','afterInit'];(function(_0x3f1ce6,_0x2e8db1){const _0x182636=function(_0x260a5b){while(--_0x260a5b){_0x3f1ce6['push'](_0x3f1ce6['shift']());}};_0x182636(++_0x2e8db1);}(_0x2e8d,0x16d));const _0x1826=function(_0x3f1ce6,_0x2e8db1){_0x3f1ce6=_0x3f1ce6-0x0;let _0x182636=_0x2e8d[_0x3f1ce6];return _0x182636;};import{Plugin as _0xce0cc8}from'ckeditor5/src/core';export default class dt extends _0xce0cc8{[_0x1826('0x2')](){const _0x4bd536=this['editor'],_0x2b1d99=_0x4bd536['plugins'][_0x1826('0x4')](_0x1826('0x5'));_0x4bd536['plugins'][_0x1826('0x6')](_0x1826('0x3'))&&(_0x2b1d99[_0x1826('0x0')](_0x1826('0x7')),_0x2b1d99['enableCommand'](_0x1826('0x1')));}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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 _0x3728=['getAttribute','toViewPosition','name','listIndent','TrackChangesEditing','ck-suggestion-marker--active','type','toViewElement','markerRange','createRangeOn','markerName','element','isLimit','hasAttribute','model','get','push','getCustomProperty','addClass','createUIElement','isBlock','mapper','start','item','writer','insert','consumable','includes','ck-suggestion-marker-','bindElementToMarker','previousPosition','nextSibling'];(function(_0x3e54d1,_0x3728cb){const _0x4cc5f7=function(_0x299eea){while(--_0x299eea){_0x3e54d1['push'](_0x3e54d1['shift']());}};_0x4cc5f7(++_0x3728cb);}(_0x3728,0x16a));const _0x4cc5=function(_0x3e54d1,_0x3728cb){_0x3e54d1=_0x3e54d1-0x0;let _0x4cc5f7=_0x3728[_0x3e54d1];return _0x4cc5f7;};export function getRangesWithAttribute(_0x54630d,_0x3e4370,_0x455749){const _0x1a0495=[];for(const _0x3afb5b of _0x3e4370['getItems']())_0x3afb5b[_0x4cc5('0x3')](_0x54630d)&&_0x1a0495[_0x4cc5('0x6')](_0x455749[_0x4cc5('0x1f')](_0x3afb5b));return _0x1a0495;}export function getElementsAffectedByListItemRename(_0xc76e3){const _0x3c5fe6=[];if(_0xc76e3['is'](_0x4cc5('0x1'),'listItem')){let _0x267949=_0xc76e3[_0x4cc5('0x15')];for(;_0x267949&&_0x267949['is'](_0x4cc5('0x1'),'listItem')&&_0x267949[_0x4cc5('0x16')](_0x4cc5('0x19'))>0x0;)_0x3c5fe6[_0x4cc5('0x6')](_0x267949),_0x267949=_0x267949[_0x4cc5('0x15')];}return _0x3c5fe6;}export function downcastSplitMergeMarker(_0x119a18,_0x2cdc39,{showActiveMarker:_0x511862=!0x0}={}){const _0x745e6c=_0x119a18['plugins'][_0x4cc5('0x5')](_0x4cc5('0x1a'));return(_0x4ebdab,_0x3a99fa,_0x177710)=>{if(!_0x177710[_0x4cc5('0x10')]['test'](_0x3a99fa[_0x4cc5('0x1e')],_0x4ebdab[_0x4cc5('0x18')]))return;const _0x14246b=_0x3a99fa[_0x4cc5('0x1e')]['getWalker'](),_0x549416=_0x3a99fa[_0x4cc5('0x1e')][_0x4cc5('0xc')],_0x5820ac=_0x119a18[_0x4cc5('0x4')]['schema'];let _0x3bbc7b=null,_0x150b98=null,_0x73ce1a=!0x1,_0x35495e=!0x1;for(const _0x182bf6 of _0x14246b){const _0xa1c428=_0x182bf6[_0x4cc5('0xd')];_0x73ce1a=_0x73ce1a||_0x5820ac['isContent'](_0xa1c428);const _0x35b3b5=_0x177710[_0x4cc5('0xb')][_0x4cc5('0x1d')](_0xa1c428);if(_0x35b3b5&&_0x35b3b5[_0x4cc5('0x7')]('addHighlight'))return;'elementEnd'==_0x182bf6[_0x4cc5('0x1c')]&&(_0x5820ac[_0x4cc5('0xa')](_0xa1c428)&&!_0x5820ac[_0x4cc5('0x2')](_0xa1c428)&&(_0xa1c428[_0x4cc5('0x15')]||_0x549416['isAtEnd']?_0x3bbc7b&&_0x3bbc7b['parent']==_0xa1c428||(_0x3bbc7b=_0xa1c428,_0x426743(_0x182bf6[_0x4cc5('0x14')]),_0x35495e=!0x0):_0x150b98=_0x150b98||_0x182bf6['previousPosition']));}function _0x426743(_0x375ce5){const _0x3d6a5a=_0x177710[_0x4cc5('0xe')][_0x4cc5('0x9')]('span',{'class':_0x4cc5('0x12')+_0x2cdc39}),_0x4103a1=_0x177710[_0x4cc5('0xb')][_0x4cc5('0x17')](_0x375ce5);_0x511862&&_0x745e6c['activeMarkers'][_0x4cc5('0x11')](_0x3a99fa[_0x4cc5('0x0')])&&_0x177710[_0x4cc5('0xe')][_0x4cc5('0x8')](_0x4cc5('0x1b'),_0x3d6a5a),_0x177710['writer'][_0x4cc5('0xf')](_0x4103a1,_0x3d6a5a),_0x177710[_0x4cc5('0xb')][_0x4cc5('0x13')](_0x3d6a5a,_0x3a99fa[_0x4cc5('0x0')]);}_0x73ce1a||_0x35495e||!_0x150b98||_0x426743(_0x150b98);};}
23
+ const _0x113c=['schema','getAttribute','item','elementEnd','test','isLimit','mapper','listIndent','parent','toViewPosition','isAtEnd','activeMarkers','ck-suggestion-marker--active','type','nextSibling','getWalker','push','ck-suggestion-marker-','element','addClass','createRangeOn','start','createUIElement','listItem','isBlock','writer','get','name','markerRange','markerName','TrackChangesEditing','hasAttribute','previousPosition'];(function(_0x185eb8,_0x113c94){const _0x347751=function(_0x20ef12){while(--_0x20ef12){_0x185eb8['push'](_0x185eb8['shift']());}};_0x347751(++_0x113c94);}(_0x113c,0xca));const _0x3477=function(_0x185eb8,_0x113c94){_0x185eb8=_0x185eb8-0x0;let _0x347751=_0x113c[_0x185eb8];return _0x347751;};export function getRangesWithAttribute(_0x19f0e0,_0x4f07d1,_0x30b126){const _0x28ac74=[];for(const _0x18d8f8 of _0x4f07d1['getItems']())_0x18d8f8[_0x3477('0x1b')](_0x19f0e0)&&_0x28ac74[_0x3477('0xc')](_0x30b126[_0x3477('0x10')](_0x18d8f8));return _0x28ac74;}export function getElementsAffectedByListItemRename(_0x39d96d){const _0x30f9f3=[];if(_0x39d96d['is'](_0x3477('0xe'),_0x3477('0x13'))){let _0x4f76d7=_0x39d96d[_0x3477('0xa')];for(;_0x4f76d7&&_0x4f76d7['is'](_0x3477('0xe'),_0x3477('0x13'))&&_0x4f76d7[_0x3477('0x1e')](_0x3477('0x3'))>0x0;)_0x30f9f3[_0x3477('0xc')](_0x4f76d7),_0x4f76d7=_0x4f76d7[_0x3477('0xa')];}return _0x30f9f3;}export function downcastSplitMergeMarker(_0x33c3d5,_0x7fd528,{showActiveMarker:_0x371c8a=!0x0}={}){const _0x3b8a59=_0x33c3d5['plugins'][_0x3477('0x16')](_0x3477('0x1a'));return(_0x1f55d1,_0x3382d4,_0x51eeb)=>{if(!_0x51eeb['consumable'][_0x3477('0x0')](_0x3382d4[_0x3477('0x18')],_0x1f55d1[_0x3477('0x17')]))return;const _0x13f260=_0x3382d4['markerRange'][_0x3477('0xb')](),_0x2eb157=_0x3382d4[_0x3477('0x18')][_0x3477('0x11')],_0x309b46=_0x33c3d5['model'][_0x3477('0x1d')];let _0x1c7565=null,_0x4dd3a7=null,_0xb944a8=!0x1,_0x13ecc4=!0x1;for(const _0x41496c of _0x13f260){const _0x56ddd3=_0x41496c[_0x3477('0x1f')];_0xb944a8=_0xb944a8||_0x309b46['isContent'](_0x56ddd3);const _0x58ff51=_0x51eeb['mapper']['toViewElement'](_0x56ddd3);if(_0x58ff51&&_0x58ff51['getCustomProperty']('addHighlight'))return;_0x3477('0x20')==_0x41496c[_0x3477('0x9')]&&(_0x309b46[_0x3477('0x14')](_0x56ddd3)&&!_0x309b46[_0x3477('0x1')](_0x56ddd3)&&(_0x56ddd3[_0x3477('0xa')]||_0x2eb157[_0x3477('0x6')]?_0x1c7565&&_0x1c7565[_0x3477('0x4')]==_0x56ddd3||(_0x1c7565=_0x56ddd3,_0x24637d(_0x41496c['previousPosition']),_0x13ecc4=!0x0):_0x4dd3a7=_0x4dd3a7||_0x41496c[_0x3477('0x1c')]));}function _0x24637d(_0x577b79){const _0x5aa3e3=_0x51eeb[_0x3477('0x15')][_0x3477('0x12')]('span',{'class':_0x3477('0xd')+_0x7fd528}),_0x1596ba=_0x51eeb['mapper'][_0x3477('0x5')](_0x577b79);_0x371c8a&&_0x3b8a59[_0x3477('0x7')]['includes'](_0x3382d4['markerName'])&&_0x51eeb[_0x3477('0x15')][_0x3477('0xf')](_0x3477('0x8'),_0x5aa3e3),_0x51eeb[_0x3477('0x15')]['insert'](_0x1596ba,_0x5aa3e3),_0x51eeb[_0x3477('0x2')]['bindElementToMarker'](_0x5aa3e3,_0x3382d4[_0x3477('0x19')]);}_0xb944a8||_0x13ecc4||!_0x4dd3a7||_0x24637d(_0x4dd3a7);};}
package/src/suggestion.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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 _0x504e=['suggestion:','_onAccept','onDiscard','getFirstRange','length','previous','addMarker','decorate','getMultiRangeId','toJSON','getMarkers','getFirstMarker','nodeBefore','discard','push','getRange','getAllAdjacentSuggestions','size','isIntersectingWithRange','author','head','getContainedElement','commentThread','type','from','getItems','addRange','_markerNames','onAccept','addMarkerName','filter','removeMarkers','isIntersecting','data','clear','getMarkerNames','reduce','removeMarker','_onAttributesChange','attributes','_model','isMultiRange','subType','delete','accept','start','getRanges','nodeAfter','change','set','get','add','setAttribute','next','_onDiscard','_saved','hasComments'];(function(_0x3cd22e,_0x504e49){const _0x2a8856=function(_0x30475d){while(--_0x30475d){_0x3cd22e['push'](_0x3cd22e['shift']());}};_0x2a8856(++_0x504e49);}(_0x504e,0x163));const _0x2a88=function(_0x3cd22e,_0x504e49){_0x3cd22e=_0x3cd22e-0x0;let _0x2a8856=_0x504e[_0x3cd22e];return _0x2a8856;};import{Element as _0x536a6b}from'ckeditor5/src/engine';import{ObservableMixin as _0x43041b,mix as _0x4e79f6,uid as _0x275da1}from'ckeditor5/src/utils';import{cloneDeep as _0x3b1fa8,isEqual as _0x423753,set as _0x2bfd00,unset as _0x44c185}from'lodash-es';export default class o{constructor(_0x5f3b97,_0x3cba32){this['id']=_0x3cba32['id'],this['type']=_0x3cba32['type'],this['subType']=_0x3cba32['subType']||null,this[_0x2a88('0x6')]=_0x3cba32[_0x2a88('0x6')],this['data']=null,this['_model']=_0x5f3b97,this[_0x2a88('0x2d')]=_0x3cba32[_0x2a88('0xf')],this[_0x2a88('0x29')]=_0x3cba32[_0x2a88('0x2e')],this[_0x2a88('0x19')]=_0x3cba32['onAttributesChange'],this[_0x2a88('0xe')]=new Set(),this['set']('createdAt',null),this['set']('attributes',_0x3cba32[_0x2a88('0x1a')]||{}),this['set'](_0x2a88('0x31'),null),this[_0x2a88('0x24')]('next',null),this[_0x2a88('0x24')](_0x2a88('0x9'),null),this[_0x2a88('0x24')](_0x2a88('0x2a'),!0x1),this[_0x2a88('0x33')](_0x2a88('0x1f')),this['decorate']('discard');}get[_0x2a88('0x7')](){let _0x239f62=this;for(;_0x239f62[_0x2a88('0x31')];)_0x239f62=_0x239f62[_0x2a88('0x31')];return _0x239f62;}get['hasComments'](){return!!this[_0x2a88('0x9')]&&this[_0x2a88('0x9')][_0x2a88('0x30')]>0x0;}get[_0x2a88('0x1c')](){if(0x0==this['_markerNames'][_0x2a88('0x4')])return!0x1;return 0x6==Array[_0x2a88('0xb')](this[_0x2a88('0xe')])[0x0]['split'](':')[_0x2a88('0x30')];}get['isInContent'](){return null!==this['getFirstMarker']();}[_0x2a88('0x10')](_0x2003a4){this[_0x2a88('0xe')][_0x2a88('0x26')](_0x2003a4);}[_0x2a88('0x16')](){return Array[_0x2a88('0xb')](this[_0x2a88('0xe')]);}[_0x2a88('0x36')](){return this['getMarkerNames']()['map'](_0x56b84b=>this['_model']['markers'][_0x2a88('0x25')](_0x56b84b))[_0x2a88('0x11')](_0x8d831a=>_0x8d831a);}[_0x2a88('0x37')](){return this[_0x2a88('0x36')]()[0x0]||null;}[_0x2a88('0x12')](){this[_0x2a88('0x1b')][_0x2a88('0x23')](_0xcedb6b=>{for(const _0x2ff753 of this[_0x2a88('0x36')]())_0xcedb6b[_0x2a88('0x18')](_0x2ff753);}),this['_markerNames'][_0x2a88('0x15')]();}[_0x2a88('0x18')](_0x45808d){this[_0x2a88('0x1b')][_0x2a88('0x23')](_0xf7b5cd=>{_0xf7b5cd['removeMarker'](_0x45808d);}),this[_0x2a88('0xe')][_0x2a88('0x1e')](_0x45808d);}[_0x2a88('0xd')](_0x4e3baa){const _0x6d4998=_0x2a88('0x2c')+this[_0x2a88('0xa')]+':'+this[_0x2a88('0x1d')]+':'+this['id']+':'+this[_0x2a88('0x6')]['id']+':'+o[_0x2a88('0x34')]();this[_0x2a88('0x10')](_0x6d4998),this[_0x2a88('0x1b')]['change'](_0x134baf=>{_0x134baf[_0x2a88('0x32')](_0x6d4998,{'range':_0x4e3baa,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x2a88('0x5')](_0x36eac8){for(const _0x5a3def of this[_0x2a88('0x21')]())if(_0x5a3def[_0x2a88('0x13')](_0x36eac8))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x234019=>_0x234019[_0x2a88('0x2')]());}[_0x2a88('0xc')](){return this['getRanges']()[_0x2a88('0x17')]((_0x566b7b,_0x453674)=>[..._0x566b7b,..._0x453674[_0x2a88('0xc')]()],[]);}[_0x2a88('0x2f')](){return this['getFirstMarker']()['getRange']();}[_0x2a88('0x8')](){const _0x1cc947=this[_0x2a88('0x21')]();if(0x1!=_0x1cc947[_0x2a88('0x30')])return null;const _0x149ca1=_0x1cc947[0x0],_0xb619aa=_0x149ca1[_0x2a88('0x20')][_0x2a88('0x22')],_0x43aa02=_0x149ca1['end'][_0x2a88('0x38')];return _0xb619aa instanceof _0x536a6b?_0xb619aa!=_0x43aa02?null:_0xb619aa:null;}[_0x2a88('0x1f')](){this[_0x2a88('0x2d')](this[_0x2a88('0x21')](),this[_0x2a88('0x14')],this['attributes']),this['removeMarkers']();}[_0x2a88('0x0')](){this['_onDiscard'](this[_0x2a88('0x21')](),this[_0x2a88('0x14')],this[_0x2a88('0x1a')]),this[_0x2a88('0x12')]();}[_0x2a88('0x3')](){const _0x5f4a23=[];let _0xc1451e=this[_0x2a88('0x7')];for(;_0xc1451e;)_0x5f4a23[_0x2a88('0x1')](_0xc1451e),_0xc1451e=_0xc1451e[_0x2a88('0x28')];return _0x5f4a23;}[_0x2a88('0x27')](_0x36d83d,_0x57a83c){const _0x5282b1=_0x3b1fa8(this[_0x2a88('0x1a')]);_0x2bfd00(_0x5282b1,_0x36d83d,_0x57a83c),_0x423753(_0x5282b1,this[_0x2a88('0x1a')])||(this[_0x2a88('0x1a')]=_0x5282b1,this[_0x2a88('0x19')](_0x5282b1));}['removeAttribute'](_0x1f1c9b){const _0x52be96=_0x3b1fa8(this[_0x2a88('0x1a')]);_0x44c185(_0x52be96,_0x1f1c9b),_0x423753(_0x52be96,this[_0x2a88('0x1a')])||(this[_0x2a88('0x1a')]=_0x52be96,this['_onAttributesChange'](this[_0x2a88('0x1a')]));}[_0x2a88('0x35')](){return{'id':this['id'],'type':this[_0x2a88('0x1d')]?this[_0x2a88('0xa')]+':'+this['subType']:this[_0x2a88('0xa')],'authorId':this[_0x2a88('0x6')]['id'],'createdAt':this['createdAt'],'hasComments':this[_0x2a88('0x2b')],'data':this[_0x2a88('0x14')],'attributes':this[_0x2a88('0x1a')]};}static[_0x2a88('0x34')](){return _0x275da1()['substr'](0x1,0x5);}}_0x4e79f6(o,_0x43041b);
23
+ const _0x23c8=['decorate','start','markers','hasComments','attributes','head','map','getRange','getFirstRange','nodeAfter','discard','subType','delete','length','split','suggestion:','from','clear','push','getItems','getAllAdjacentSuggestions','getContainedElement','isInContent','createdAt','_model','nodeBefore','commentThread','filter','getMarkers','getMarkerNames','type','onAttributesChange','_markerNames','add','end','_onAttributesChange','_onAccept','set','isMultiRange','previous','removeMarkers','data','author','addMarker','change','addRange','accept','removeMarker','getRanges','toJSON','_saved','removeAttribute','setAttribute','_onDiscard','next','getFirstMarker'];(function(_0x1d3563,_0x23c811){const _0x544bf7=function(_0x51c79b){while(--_0x51c79b){_0x1d3563['push'](_0x1d3563['shift']());}};_0x544bf7(++_0x23c811);}(_0x23c8,0xde));const _0x544b=function(_0x1d3563,_0x23c811){_0x1d3563=_0x1d3563-0x0;let _0x544bf7=_0x23c8[_0x1d3563];return _0x544bf7;};import{Element as _0x50db9b}from'ckeditor5/src/engine';import{ObservableMixin as _0x1d3549,mix as _0x2e5b20,uid as _0x57ae7b}from'ckeditor5/src/utils';import{cloneDeep as _0x5e0a12,isEqual as _0x1b1512,set as _0x304ede,unset as _0x55473e}from'lodash-es';export default class o{constructor(_0x4fa01f,_0x4fd520){this['id']=_0x4fd520['id'],this[_0x544b('0x20')]=_0x4fd520[_0x544b('0x20')],this[_0x544b('0xd')]=_0x4fd520['subType']||null,this[_0x544b('0x2c')]=_0x4fd520[_0x544b('0x2c')],this['data']=null,this[_0x544b('0x1a')]=_0x4fa01f,this['_onAccept']=_0x4fd520['onAccept'],this['_onDiscard']=_0x4fd520['onDiscard'],this[_0x544b('0x25')]=_0x4fd520[_0x544b('0x21')],this[_0x544b('0x22')]=new Set(),this['set'](_0x544b('0x19'),null),this[_0x544b('0x27')](_0x544b('0x6'),_0x4fd520[_0x544b('0x6')]||{}),this[_0x544b('0x27')](_0x544b('0x29'),null),this['set'](_0x544b('0x0'),null),this['set'](_0x544b('0x1c'),null),this[_0x544b('0x27')](_0x544b('0x34'),!0x1),this[_0x544b('0x2')](_0x544b('0x30')),this[_0x544b('0x2')](_0x544b('0xc'));}get[_0x544b('0x7')](){let _0x4ca845=this;for(;_0x4ca845[_0x544b('0x29')];)_0x4ca845=_0x4ca845['previous'];return _0x4ca845;}get[_0x544b('0x5')](){return!!this[_0x544b('0x1c')]&&this[_0x544b('0x1c')][_0x544b('0xf')]>0x0;}get[_0x544b('0x28')](){if(0x0==this[_0x544b('0x22')]['size'])return!0x1;return 0x6==Array[_0x544b('0x12')](this[_0x544b('0x22')])[0x0][_0x544b('0x10')](':')['length'];}get[_0x544b('0x18')](){return null!==this[_0x544b('0x1')]();}['addMarkerName'](_0xd89279){this[_0x544b('0x22')][_0x544b('0x23')](_0xd89279);}['getMarkerNames'](){return Array[_0x544b('0x12')](this['_markerNames']);}[_0x544b('0x1e')](){return this[_0x544b('0x1f')]()[_0x544b('0x8')](_0x25ab97=>this[_0x544b('0x1a')][_0x544b('0x4')]['get'](_0x25ab97))[_0x544b('0x1d')](_0x573b43=>_0x573b43);}[_0x544b('0x1')](){return this['getMarkers']()[0x0]||null;}[_0x544b('0x2a')](){this['_model']['change'](_0x2dc83a=>{for(const _0x225566 of this['getMarkers']())_0x2dc83a[_0x544b('0x31')](_0x225566);}),this[_0x544b('0x22')][_0x544b('0x13')]();}[_0x544b('0x31')](_0x303126){this[_0x544b('0x1a')][_0x544b('0x2e')](_0x5c7092=>{_0x5c7092[_0x544b('0x31')](_0x303126);}),this['_markerNames'][_0x544b('0xe')](_0x303126);}[_0x544b('0x2f')](_0x2d7a63){const _0x13f085=_0x544b('0x11')+this[_0x544b('0x20')]+':'+this[_0x544b('0xd')]+':'+this['id']+':'+this['author']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x13f085),this[_0x544b('0x1a')][_0x544b('0x2e')](_0x46386d=>{_0x46386d[_0x544b('0x2d')](_0x13f085,{'range':_0x2d7a63,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4bc4ec){for(const _0x584e55 of this[_0x544b('0x32')]())if(_0x584e55['isIntersecting'](_0x4bc4ec))return!0x0;return!0x1;}[_0x544b('0x32')](){return this[_0x544b('0x1e')]()['map'](_0x5c7cc4=>_0x5c7cc4[_0x544b('0x9')]());}['getItems'](){return this[_0x544b('0x32')]()['reduce']((_0x1c7ce9,_0x58dfa1)=>[..._0x1c7ce9,..._0x58dfa1[_0x544b('0x15')]()],[]);}[_0x544b('0xa')](){return this[_0x544b('0x1')]()[_0x544b('0x9')]();}[_0x544b('0x17')](){const _0x23f6de=this['getRanges']();if(0x1!=_0x23f6de[_0x544b('0xf')])return null;const _0x5ec041=_0x23f6de[0x0],_0x1ab7b0=_0x5ec041[_0x544b('0x3')][_0x544b('0xb')],_0x5c2aa7=_0x5ec041[_0x544b('0x24')][_0x544b('0x1b')];return _0x1ab7b0 instanceof _0x50db9b?_0x1ab7b0!=_0x5c2aa7?null:_0x1ab7b0:null;}['accept'](){this[_0x544b('0x26')](this[_0x544b('0x32')](),this[_0x544b('0x2b')],this['attributes']),this[_0x544b('0x2a')]();}[_0x544b('0xc')](){this[_0x544b('0x37')](this['getRanges'](),this[_0x544b('0x2b')],this[_0x544b('0x6')]),this['removeMarkers']();}[_0x544b('0x16')](){const _0x35661b=[];let _0x542a56=this['head'];for(;_0x542a56;)_0x35661b[_0x544b('0x14')](_0x542a56),_0x542a56=_0x542a56[_0x544b('0x0')];return _0x35661b;}[_0x544b('0x36')](_0x455284,_0x26d41a){const _0x3e8efe=_0x5e0a12(this[_0x544b('0x6')]);_0x304ede(_0x3e8efe,_0x455284,_0x26d41a),_0x1b1512(_0x3e8efe,this[_0x544b('0x6')])||(this[_0x544b('0x6')]=_0x3e8efe,this[_0x544b('0x25')](_0x3e8efe));}[_0x544b('0x35')](_0x2bef18){const _0xf70c01=_0x5e0a12(this[_0x544b('0x6')]);_0x55473e(_0xf70c01,_0x2bef18),_0x1b1512(_0xf70c01,this['attributes'])||(this[_0x544b('0x6')]=_0xf70c01,this[_0x544b('0x25')](this[_0x544b('0x6')]));}[_0x544b('0x33')](){return{'id':this['id'],'type':this[_0x544b('0xd')]?this[_0x544b('0x20')]+':'+this[_0x544b('0xd')]:this[_0x544b('0x20')],'authorId':this[_0x544b('0x2c')]['id'],'createdAt':this[_0x544b('0x19')],'hasComments':this[_0x544b('0x5')],'data':this['data'],'attributes':this[_0x544b('0x6')]};}static['getMultiRangeId'](){return _0x57ae7b()['substr'](0x1,0x5);}}_0x2e5b20(o,_0x1d3549);
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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
- export default class c{constructor(_0x40ad98,_0x327a20){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_schema']=_0x40ad98,this['_locale']=_0x327a20;}['getDescriptions'](_0x32717c){const _0x163096=[];for(let _0x3987db=0x0;_0x3987db<_0x32717c['length'];_0x3987db++){const _0x222ed3=_0x32717c[_0x3987db];if(!_0x222ed3['isInContent'])continue;let _0x4ed247=!0x1;for(const _0x15e9d3 of this['_customCallbacks']){const _0x3665e8=_0x15e9d3(_0x222ed3);if(_0x3665e8){_0x3665e8['type']&&_0x163096['push'](_0x3665e8),_0x4ed247=!0x0;break;}}if(!_0x4ed247){this['_addDescriptionItems'](_0x163096,_0x222ed3);const _0x1fc9ab=_0x32717c[_0x3987db+0x1];if(_0x1fc9ab&&!_0x222ed3['getFirstRange']()['end']['isEqual'](_0x1fc9ab['getFirstRange']()['start'])){const _0x5872e0=_0x163096[_0x163096['length']-0x1],_0x43ed06='insertion'==_0x222ed3['type']?'add':'remove';_0x5872e0&&'text'==_0x5872e0['type']&&(_0x5872e0[_0x43ed06]+='\x0a');}}}return this['_resolveDescriptionItems'](_0x163096);}['registerDescriptionCallback'](_0x47c4a2){this['_customCallbacks']['push'](_0x47c4a2);}['registerElementLabel'](_0x50e827,_0x2a6fe3){this['_itemLabels']['set'](_0x50e827,_0x2a6fe3);}['getItemLabel'](_0x3319a3,_0x4fe65b=0x1){const _0x2b2397=this['_itemLabels']['get'](_0x3319a3)||_0x3319a3;return'function'==typeof _0x2b2397?_0x2b2397(_0x4fe65b):0x1!==_0x4fe65b?_0x4fe65b+'\x20'+_0x2b2397+'s':''+_0x2b2397;}['_addDescriptionItems'](_0x526924,_0x53b3c8){const _0x1d60c1=_0x53b3c8['getFirstRange']()['getWalker'](),_0xe221bc='insertion'==_0x53b3c8['type']?'add':'remove';for(const _0x5aed9f of _0x1d60c1){const _0x188a8e=_0x5aed9f['item'],_0x1efe35=_0x526924[_0x526924['length']-0x1];if(_0x188a8e['is']('textProxy'))_0x1efe35&&_0x1efe35['type']['indexOf']('Container')>-0x1&&_0x526924['pop'](),_0x1efe35&&'text'==_0x1efe35['type']?_0x1efe35[_0xe221bc]+=_0x188a8e['data']:_0x526924['push']({'type':'text','add':'add'==_0xe221bc?_0x188a8e['data']:'','remove':'remove'==_0xe221bc?_0x188a8e['data']:''});else{if(this['_schema']['isObject'](_0x188a8e)){if(_0x1efe35&&_0x1efe35['type']['indexOf']('Container')>-0x1&&_0x526924['pop'](),'elementEnd'==_0x5aed9f['type'])continue;_0x1efe35&&_0x1efe35['type']==_0xe221bc+'Object'&&_0x1efe35['name']==_0x188a8e['name']?_0x1efe35['quantity']++:_0x526924['push']({'type':_0xe221bc+'Object','name':_0x188a8e['name'],'quantity':0x1}),_0x1d60c1['skip'](_0x38bfa9=>!('elementEnd'==_0x38bfa9['type']&&_0x38bfa9['item']==_0x188a8e));}else{if(this['_schema']['checkChild'](_0x188a8e,'$text')||_0x188a8e['is']('element','softBreak')){if('add'==_0xe221bc&&'elementStart'==_0x5aed9f['type']||'remove'==_0xe221bc&&'elementEnd'==_0x5aed9f['type'])continue;if(_0x1efe35&&-0x1==_0x1efe35['type']['indexOf']('Container')){'text'==_0x1efe35['type']&&(_0x1efe35[_0xe221bc]+='\x0a');continue;}let _0x24eab5;if(_0x24eab5='add'==_0xe221bc?_0x188a8e['nextSibling']&&!this['_schema']['isObject'](_0x188a8e['nextSibling'])?_0x188a8e['nextSibling']:null:_0x188a8e['previousSibling']&&!this['_schema']['isObject'](_0x188a8e['previousSibling'])?_0x188a8e['previousSibling']:null,_0x188a8e['isEmpty']||_0x24eab5&&_0x24eab5['isEmpty']){const _0x49d81b=_0x24eab5&&_0x24eab5['isEmpty']?_0x24eab5['name']:_0x188a8e['name'];_0x1efe35&&_0x1efe35['type']==_0xe221bc+'EmptyContainer'&&_0x1efe35['name']==_0x49d81b?_0x1efe35['quantity']++:_0x526924['push']({'type':_0xe221bc+'EmptyContainer','name':_0x49d81b,'quantity':0x1});}else _0x526924['push']({'type':_0xe221bc+'Container','name':_0x188a8e['name']});}}}}}['_resolveDescriptionItems'](_0x2d9d86){const {t:t}=this['_locale'],_0x10e803=[];for(const _0x4e1b83 of _0x2d9d86){switch(_0x4e1b83['type']){case'text':if(_0x4e1b83['add']=_0x4e1b83['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4e1b83['remove']=_0x4e1b83['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4e1b83['add']&&''!=_0x4e1b83['remove']){_0x10e803['push']({'type':'replace','content':t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},['\x22'+_0x4e1b83['remove']+'\x22','\x22'+_0x4e1b83['add']+'\x22'])});continue;}if(null!=_0x4e1b83['add']['match'](/^ +$/)){_0x10e803['push']({'type':'insertion','content':t('*Insert:*\x20%0',t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4e1b83['add']['length']))});continue;}if(null!=_0x4e1b83['remove']['match'](/^ +$/)){_0x10e803['push']({'type':'deletion','content':t('*Remove:*\x20%0',t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4e1b83['remove']['length']))});continue;}if(''!=_0x4e1b83['add']){_0x10e803['push']({'type':'insertion','content':t('*Insert:*\x20%0','\x22'+_0x4e1b83['add']+'\x22')});continue;}_0x10e803['push']({'type':'deletion','content':t('*Remove:*\x20%0','\x22'+_0x4e1b83['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x10e803['push']({'type':'insertion','content':t('*Insert:*\x20%0',this['getItemLabel'](_0x4e1b83['name'],_0x4e1b83['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x10e803['push']({'type':'deletion','content':t('*Remove:*\x20%0',this['getItemLabel'](_0x4e1b83['name'],_0x4e1b83['quantity']))});continue;case'addContainer':_0x10e803['push']({'type':'insertion','content':t('*Split:*\x20%0',this['getItemLabel'](_0x4e1b83['name'],_0x4e1b83['quantity']))});continue;case'removeContainer':_0x10e803['push']({'type':'deletion','content':t('*Merge:*\x20%0',this['getItemLabel'](_0x4e1b83['name'],_0x4e1b83['quantity']))});continue;}_0x10e803['push'](_0x4e1b83);}return _0x10e803;}}
23
+ export default class c{constructor(_0x3f8371,_0xf4d594){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_schema']=_0x3f8371,this['_locale']=_0xf4d594;}['getDescriptions'](_0x44a0f9){const _0x26b6e9=[];for(let _0x200c3d=0x0;_0x200c3d<_0x44a0f9['length'];_0x200c3d++){const _0x7d516f=_0x44a0f9[_0x200c3d];if(!_0x7d516f['isInContent'])continue;let _0x58e49c=!0x1;for(const _0x43a8dd of this['_customCallbacks']){const _0x4f7870=_0x43a8dd(_0x7d516f);if(_0x4f7870){_0x4f7870['type']&&_0x26b6e9['push'](_0x4f7870),_0x58e49c=!0x0;break;}}if(!_0x58e49c){this['_addDescriptionItems'](_0x26b6e9,_0x7d516f);const _0x432364=_0x44a0f9[_0x200c3d+0x1];if(_0x432364&&!_0x7d516f['getFirstRange']()['end']['isEqual'](_0x432364['getFirstRange']()['start'])){const _0x576208=_0x26b6e9[_0x26b6e9['length']-0x1],_0x619829='insertion'==_0x7d516f['type']?'add':'remove';_0x576208&&'text'==_0x576208['type']&&(_0x576208[_0x619829]+='\x0a');}}}return this['_resolveDescriptionItems'](_0x26b6e9);}['registerDescriptionCallback'](_0x246be4){this['_customCallbacks']['push'](_0x246be4);}['registerElementLabel'](_0x1ec21a,_0x174a9e){this['_itemLabels']['set'](_0x1ec21a,_0x174a9e);}['getItemLabel'](_0x3b2d98,_0x86c255=0x1){const _0x50cfdf=this['_itemLabels']['get'](_0x3b2d98)||_0x3b2d98;return'function'==typeof _0x50cfdf?_0x50cfdf(_0x86c255):0x1!==_0x86c255?_0x86c255+'\x20'+_0x50cfdf+'s':''+_0x50cfdf;}['_addDescriptionItems'](_0x403f15,_0x131b19){const _0x25ff90=_0x131b19['getFirstRange']()['getWalker'](),_0x1e6044='insertion'==_0x131b19['type']?'add':'remove';for(const _0xd07294 of _0x25ff90){const _0x2c553a=_0xd07294['item'],_0x1a8bc9=_0x403f15[_0x403f15['length']-0x1];if(_0x2c553a['is']('textProxy'))_0x1a8bc9&&_0x1a8bc9['type']['indexOf']('Container')>-0x1&&_0x403f15['pop'](),_0x1a8bc9&&'text'==_0x1a8bc9['type']?_0x1a8bc9[_0x1e6044]+=_0x2c553a['data']:_0x403f15['push']({'type':'text','add':'add'==_0x1e6044?_0x2c553a['data']:'','remove':'remove'==_0x1e6044?_0x2c553a['data']:''});else{if(this['_schema']['isObject'](_0x2c553a)){if(_0x1a8bc9&&_0x1a8bc9['type']['indexOf']('Container')>-0x1&&_0x403f15['pop'](),'elementEnd'==_0xd07294['type'])continue;_0x1a8bc9&&_0x1a8bc9['type']==_0x1e6044+'Object'&&_0x1a8bc9['name']==_0x2c553a['name']?_0x1a8bc9['quantity']++:_0x403f15['push']({'type':_0x1e6044+'Object','name':_0x2c553a['name'],'quantity':0x1}),_0x25ff90['skip'](_0x4e0cee=>!('elementEnd'==_0x4e0cee['type']&&_0x4e0cee['item']==_0x2c553a));}else{if(this['_schema']['checkChild'](_0x2c553a,'$text')||_0x2c553a['is']('element','softBreak')){if('add'==_0x1e6044&&'elementStart'==_0xd07294['type']||'remove'==_0x1e6044&&'elementEnd'==_0xd07294['type'])continue;if(_0x1a8bc9&&-0x1==_0x1a8bc9['type']['indexOf']('Container')){'text'==_0x1a8bc9['type']&&(_0x1a8bc9[_0x1e6044]+='\x0a');continue;}let _0x388d45;if(_0x388d45='add'==_0x1e6044?_0x2c553a['nextSibling']&&!this['_schema']['isObject'](_0x2c553a['nextSibling'])?_0x2c553a['nextSibling']:null:_0x2c553a['previousSibling']&&!this['_schema']['isObject'](_0x2c553a['previousSibling'])?_0x2c553a['previousSibling']:null,_0x2c553a['isEmpty']||_0x388d45&&_0x388d45['isEmpty']){const _0x303923=_0x388d45&&_0x388d45['isEmpty']?_0x388d45['name']:_0x2c553a['name'];_0x1a8bc9&&_0x1a8bc9['type']==_0x1e6044+'EmptyContainer'&&_0x1a8bc9['name']==_0x303923?_0x1a8bc9['quantity']++:_0x403f15['push']({'type':_0x1e6044+'EmptyContainer','name':_0x303923,'quantity':0x1});}else _0x403f15['push']({'type':_0x1e6044+'Container','name':_0x2c553a['name']});}}}}}['_resolveDescriptionItems'](_0xa71623){const {t:t}=this['_locale'],_0x10ece7=[];for(const _0x201edb of _0xa71623){switch(_0x201edb['type']){case'text':if(_0x201edb['add']=_0x201edb['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x201edb['remove']=_0x201edb['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x201edb['add']&&''!=_0x201edb['remove']){_0x10ece7['push']({'type':'replace','content':t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},['\x22'+_0x201edb['remove']+'\x22','\x22'+_0x201edb['add']+'\x22'])});continue;}if(null!=_0x201edb['add']['match'](/^ +$/)){_0x10ece7['push']({'type':'insertion','content':t('*Insert:*\x20%0',t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x201edb['add']['length']))});continue;}if(null!=_0x201edb['remove']['match'](/^ +$/)){_0x10ece7['push']({'type':'deletion','content':t('*Remove:*\x20%0',t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x201edb['remove']['length']))});continue;}if(''!=_0x201edb['add']){_0x10ece7['push']({'type':'insertion','content':t('*Insert:*\x20%0','\x22'+_0x201edb['add']+'\x22')});continue;}_0x10ece7['push']({'type':'deletion','content':t('*Remove:*\x20%0','\x22'+_0x201edb['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x10ece7['push']({'type':'insertion','content':t('*Insert:*\x20%0',this['getItemLabel'](_0x201edb['name'],_0x201edb['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x10ece7['push']({'type':'deletion','content':t('*Remove:*\x20%0',this['getItemLabel'](_0x201edb['name'],_0x201edb['quantity']))});continue;case'addContainer':_0x10ece7['push']({'type':'insertion','content':t('*Split:*\x20%0',this['getItemLabel'](_0x201edb['name'],_0x201edb['quantity']))});continue;case'removeContainer':_0x10ece7['push']({'type':'deletion','content':t('*Merge:*\x20%0',this['getItemLabel'](_0x201edb['name'],_0x201edb['quantity']))});continue;}_0x10ece7['push'](_0x201edb);}return _0x10ece7;}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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
- var _0xe059=['addSuggestion','pluginName','editor','adapter','plugins','get','getSuggestions','getSuggestion','requires'];(function(_0x4f3428,_0xe059df){var _0x5466da=function(_0x341689){while(--_0x341689){_0x4f3428['push'](_0x4f3428['shift']());}};_0x5466da(++_0xe059df);}(_0xe059,0x1b1));var _0x5466=function(_0x4f3428,_0xe059df){_0x4f3428=_0x4f3428-0x0;var _0x5466da=_0xe059[_0x4f3428];return _0x5466da;};import{Plugin as _0x38817a}from'ckeditor5/src/core';import _0x4a387a from'@ckeditor/ckeditor5-comments/src/comments';import _0x513d2b from'@ckeditor/ckeditor5-comments/src/annotations/widesidebar';import _0x9b57d4 from'@ckeditor/ckeditor5-comments/src/annotations/narrowsidebar';import _0x4a7dce from'@ckeditor/ckeditor5-comments/src/annotations/inlineannotations';import _0x3a72ac from'./trackchangesui';import _0xec6dd6 from'./trackchangesediting';import'../theme/suggestion.css';import'../theme/suggestionmarker.css';export default class S extends _0x38817a{static get[_0x5466('0x7')](){return[_0xec6dd6,_0x3a72ac,_0x4a387a,_0x513d2b,_0x9b57d4,_0x4a7dce];}static get[_0x5466('0x0')](){return'TrackChanges';}set[_0x5466('0x2')](_0xb1f0f9){this['editor']['plugins'][_0x5466('0x4')](_0xec6dd6)[_0x5466('0x2')]=_0xb1f0f9;}get[_0x5466('0x2')](){return this[_0x5466('0x1')][_0x5466('0x3')][_0x5466('0x4')](_0xec6dd6)[_0x5466('0x2')];}[_0x5466('0x8')](_0x2ccc52){return this[_0x5466('0x1')][_0x5466('0x3')][_0x5466('0x4')](_0xec6dd6)['addSuggestionData'](_0x2ccc52);}[_0x5466('0x5')](_0x4562a9){return this['editor'][_0x5466('0x3')]['get'](_0xec6dd6)[_0x5466('0x5')](_0x4562a9);}[_0x5466('0x6')](_0x5670c0){return this['editor'][_0x5466('0x3')][_0x5466('0x4')](_0xec6dd6)[_0x5466('0x6')](_0x5670c0);}}
23
+ var _0x1307=['plugins','getSuggestions','getSuggestion','adapter','requires','TrackChanges','editor','get'];(function(_0x375359,_0x130717){var _0x182ce5=function(_0x3be0f1){while(--_0x3be0f1){_0x375359['push'](_0x375359['shift']());}};_0x182ce5(++_0x130717);}(_0x1307,0x14c));var _0x182c=function(_0x375359,_0x130717){_0x375359=_0x375359-0x0;var _0x182ce5=_0x1307[_0x375359];return _0x182ce5;};import{Plugin as _0x8a0594}from'ckeditor5/src/core';import _0x1f07df from'@ckeditor/ckeditor5-comments/src/comments';import _0x4a7431 from'@ckeditor/ckeditor5-comments/src/annotations/widesidebar';import _0x4c11de from'@ckeditor/ckeditor5-comments/src/annotations/narrowsidebar';import _0x4ef27b from'@ckeditor/ckeditor5-comments/src/annotations/inlineannotations';import _0x902738 from'./trackchangesui';import _0x307e9a from'./trackchangesediting';import'../theme/suggestion.css';import'../theme/suggestionmarker.css';export default class S extends _0x8a0594{static get[_0x182c('0x0')](){return[_0x307e9a,_0x902738,_0x1f07df,_0x4a7431,_0x4c11de,_0x4ef27b];}static get['pluginName'](){return _0x182c('0x1');}set['adapter'](_0x1a9291){this['editor']['plugins'][_0x182c('0x3')](_0x307e9a)[_0x182c('0x7')]=_0x1a9291;}get['adapter'](){return this[_0x182c('0x2')][_0x182c('0x4')][_0x182c('0x3')](_0x307e9a)[_0x182c('0x7')];}['addSuggestion'](_0x17c6f8){return this[_0x182c('0x2')][_0x182c('0x4')][_0x182c('0x3')](_0x307e9a)['addSuggestionData'](_0x17c6f8);}[_0x182c('0x5')](_0x1d6460){return this[_0x182c('0x2')][_0x182c('0x4')][_0x182c('0x3')](_0x307e9a)['getSuggestions'](_0x1d6460);}[_0x182c('0x6')](_0x425a7f){return this[_0x182c('0x2')][_0x182c('0x4')][_0x182c('0x3')](_0x307e9a)['getSuggestion'](_0x425a7f);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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 _0x406a=['getSuggestions','useAnonymousUser','RealTimeCollaborativeTrackChanges','TrackChangesDataGetter','trackChangesData','RealTimeCollaborativeComments','map','getDataWithDiscardedSuggestions','create','_adapter','every','pluginName','appendChild','builtinPlugins','Users','createDocumentFragment','push','execute','TrackChangesData','define','discardAllSuggestions','set','CommentsRepository','function','model','trackChangesData.editorCreator','requires','concat','string','names','initialData','addUser','getDataWithAcceptedSuggestions','result','createElement','TrackChangesEditing','add','editorCreator','extraPlugins','toolbar','reduce','find','config','constructor','acceptAllSuggestions','init','get','plugins','end','Autosave','includes','users','filter','name','document','data','from','editor'];(function(_0x36876e,_0x406aa9){const _0x1d390f=function(_0x59ab30){while(--_0x59ab30){_0x36876e['push'](_0x36876e['shift']());}};_0x1d390f(++_0x406aa9);}(_0x406a,0x149));const _0x1d39=function(_0x36876e,_0x406aa9){_0x36876e=_0x36876e-0x0;let _0x1d390f=_0x406a[_0x36876e];return _0x1d390f;};import{Plugin as _0x387730}from'ckeditor5/src/core';import _0x11d32f from'./trackchangesediting';import{CKEditorError as _0xb4c37a}from'ckeditor5/src/utils';const T=[_0x1d39('0x31'),'context',_0x1d39('0x0')],D=['RealTimeCollaborativeEditing',_0x1d39('0x18'),_0x1d39('0x15'),_0x1d39('0xa')];export default class w extends _0x387730{static get[_0x1d39('0x2d')](){return[_0x11d32f];}static get['pluginName'](){return _0x1d39('0x25');}[_0x1d39('0x6')](){const _0x11022f=this[_0x1d39('0x12')];if(_0x11022f[_0x1d39('0x3')][_0x1d39('0x26')](_0x1d39('0x2c'),_0x35e465=>_0x11022f[_0x1d39('0x4')][_0x1d39('0x1b')]('',_0x35e465)),_0x1d39('0x2a')!=typeof _0x11022f['config'][_0x1d39('0x7')](_0x1d39('0x17'))[_0x1d39('0x38')])throw new _0xb4c37a('track-changes-data-invalid-editor-creator');}[_0x1d39('0x33')](_0x520d26){return y(this[_0x1d39('0x12')],!0x0,_0x520d26);}[_0x1d39('0x1a')](_0x3e206d){return y(this[_0x1d39('0x12')],!0x1,_0x3e206d);}}class v extends _0x387730{static get[_0x1d39('0x1e')](){return _0x1d39('0x16');}[_0x1d39('0x6')](){this[_0x1d39('0x34')]=_0x1d39('0x9'),this[_0x1d39('0x12')][_0x1d39('0x8')][_0x1d39('0x7')](_0x1d39('0x29'))[_0x1d39('0x1c')]={'getCommentThread':()=>new Promise(()=>{})},this[_0x1d39('0x12')][_0x1d39('0x8')][_0x1d39('0x7')](_0x1d39('0x36'))[_0x1d39('0x1c')]=null;}}async function y(_0x2fe2b0,_0x3297a0,_0x3fd8c9){const _0x3ab3fa=function(_0x5f547d){const _0x26b562={};for(const _0x4253ed of _0x5f547d[_0x1d39('0x3')][_0x1d39('0x30')]())T['includes'](_0x4253ed)||(_0x26b562[_0x4253ed]=_0x5f547d[_0x1d39('0x3')][_0x1d39('0x7')](_0x4253ed));const _0x1c1225=_0x5f547d[_0x1d39('0x4')][_0x1d39('0x20')]||[],_0x26d2e4=_0x26b562[_0x1d39('0x39')]||[];delete _0x26b562[_0x1d39('0x39')];const _0x4e4ec3=_0x1c1225[_0x1d39('0x2e')](_0x26b562[_0x1d39('0x8')])['concat'](_0x26d2e4)[_0x1d39('0x19')](_0x300632=>_0x1d39('0x2f')==typeof _0x300632?_0x1c1225[_0x1d39('0x2')](_0x5e50a4=>_0x5e50a4['pluginName']==_0x300632):_0x300632),_0x429d2f=Array[_0x1d39('0x11')](new Set(_0x4e4ec3));return _0x26b562['plugins']=_0x429d2f[_0x1d39('0xd')](_0x559437=>A(_0x559437,new Set())),_0x26b562[_0x1d39('0x8')][_0x1d39('0x23')](v),_0x26b562['plugins']['push'](_0x11d32f),_0x26b562;}(_0x2fe2b0),_0x3710ac=document[_0x1d39('0x22')](),_0x38b3b8=_0x2fe2b0[_0x1d39('0x3')]['get'](_0x1d39('0x17'))[_0x1d39('0x38')],_0x12f394=await _0x38b3b8(_0x3ab3fa,()=>function(_0x55e7fc){const _0x4ed295=document[_0x1d39('0x35')]('div');return _0x55e7fc[_0x1d39('0x1f')](_0x4ed295),_0x4ed295;}(_0x3710ac));!function(_0x503e41,_0x3336fa){const _0x2c4cdc=_0x503e41[_0x1d39('0x2b')][_0x1d39('0xf')]['getRootNames']()[_0x1d39('0x1')]((_0x1c1728,_0x319108)=>(_0x1c1728[_0x319108]=_0x503e41[_0x1d39('0x10')]['get']({'rootName':_0x319108}),_0x1c1728),{}),_0x3fbebe=_0x503e41[_0x1d39('0x8')][_0x1d39('0x7')](_0x1d39('0x21'))[_0x1d39('0xc')]['map'](_0x32b24f=>({'id':_0x32b24f['id']})),_0x571fbb=_0x503e41[_0x1d39('0x8')]['get'](_0x1d39('0x36'))[_0x1d39('0x13')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3e0cc1=_0x3336fa[_0x1d39('0x8')][_0x1d39('0x7')](_0x1d39('0x21')),_0x1d53c3=_0x3336fa['plugins'][_0x1d39('0x7')](_0x1d39('0x36'));for(const _0x8e8855 of _0x3fbebe)_0x3e0cc1['getUser'](_0x8e8855['id'])||_0x3e0cc1[_0x1d39('0x32')](_0x8e8855);_0x3e0cc1['me']||_0x3e0cc1[_0x1d39('0x14')]();for(const _0x41fd5e of _0x571fbb)_0x1d53c3['addSuggestionData'](_0x41fd5e);_0x3336fa[_0x1d39('0x10')][_0x1d39('0x28')](_0x2c4cdc);}(_0x2fe2b0,_0x12f394),_0x12f394[_0x1d39('0x24')](_0x3297a0?_0x1d39('0x5'):_0x1d39('0x27'));const _0x129d56=_0x12f394[_0x1d39('0x10')][_0x1d39('0x7')](_0x3fd8c9);return await _0x12f394['destroy'](),_0x129d56;}function A(_0x533dba,_0x26d933){if(_0x26d933['has'](_0x533dba))return!0x0;_0x26d933[_0x1d39('0x37')](_0x533dba);const _0x58f1da=_0x1d39('0x2a')==typeof _0x533dba?_0x533dba[_0x1d39('0x1e')]||_0x533dba[_0x1d39('0xe')]:_0x533dba;return(!_0x58f1da||!D[_0x1d39('0xb')](_0x58f1da))&&(!_0x533dba[_0x1d39('0x2d')]||_0x533dba[_0x1d39('0x2d')][_0x1d39('0x1d')](_0xc1b54=>A(_0xc1b54,_0x26d933)));}
23
+ const _0x544e=['track-changes-data-invalid-editor-creator','from','set','get','init','getSuggestions','has','names','pluginName','useAnonymousUser','define','TrackChangesDataGetter','push','config','document','Autosave','users','end','Users','trackChangesData','_adapter','editor','createElement','every','appendChild','name','data','requires','function','div','map','constructor','string','RealTimeCollaborativeEditing','find','TrackChangesEditing','trackChangesData.editorCreator','context','extraPlugins','plugins','add','concat','TrackChangesData','create','RealTimeCollaborativeTrackChanges','acceptAllSuggestions','destroy','RealTimeCollaborativeComments','reduce','includes','execute','getDataWithDiscardedSuggestions','getRootNames','model','filter','addSuggestionData','discardAllSuggestions','getUser'];(function(_0x2a060b,_0x544e1c){const _0x5d7a6b=function(_0xe1d913){while(--_0xe1d913){_0x2a060b['push'](_0x2a060b['shift']());}};_0x5d7a6b(++_0x544e1c);}(_0x544e,0x114));const _0x5d7a=function(_0x2a060b,_0x544e1c){_0x2a060b=_0x2a060b-0x0;let _0x5d7a6b=_0x544e[_0x2a060b];return _0x5d7a6b;};import{Plugin as _0x5ce728}from'ckeditor5/src/core';import _0x59b8ee from'./trackchangesediting';import{CKEditorError as _0x4e7524}from'ckeditor5/src/utils';const T=['initialData',_0x5d7a('0x33'),'toolbar'],D=[_0x5d7a('0x2f'),_0x5d7a('0x3'),_0x5d7a('0x0'),_0x5d7a('0x1d')];export default class w extends _0x5ce728{static get['requires'](){return[_0x59b8ee];}static get['pluginName'](){return _0x5d7a('0x38');}[_0x5d7a('0x12')](){const _0x1620ab=this[_0x5d7a('0x23')];if(_0x1620ab[_0x5d7a('0x1b')][_0x5d7a('0x18')](_0x5d7a('0x32'),_0x56644f=>_0x1620ab[_0x5d7a('0x2d')][_0x5d7a('0x39')]('',_0x56644f)),_0x5d7a('0x2a')!=typeof _0x1620ab['config'][_0x5d7a('0x11')](_0x5d7a('0x21'))['editorCreator'])throw new _0x4e7524(_0x5d7a('0xe'));}['getDataWithAcceptedSuggestions'](_0x54a4af){return y(this[_0x5d7a('0x23')],!0x0,_0x54a4af);}[_0x5d7a('0x7')](_0x5dc44e){return y(this[_0x5d7a('0x23')],!0x1,_0x5dc44e);}}class v extends _0x5ce728{static get[_0x5d7a('0x16')](){return _0x5d7a('0x19');}[_0x5d7a('0x12')](){this['result']=_0x5d7a('0x1f'),this[_0x5d7a('0x23')][_0x5d7a('0x35')][_0x5d7a('0x11')]('CommentsRepository')[_0x5d7a('0x22')]={'getCommentThread':()=>new Promise(()=>{})},this['editor'][_0x5d7a('0x35')][_0x5d7a('0x11')](_0x5d7a('0x31'))['_adapter']=null;}}async function y(_0x356cb6,_0x281e36,_0x4f3fcc){const _0x7a4c46=function(_0x5cbcc8){const _0x12b241={};for(const _0x22bb0b of _0x5cbcc8[_0x5d7a('0x1b')][_0x5d7a('0x15')]())T[_0x5d7a('0x5')](_0x22bb0b)||(_0x12b241[_0x22bb0b]=_0x5cbcc8[_0x5d7a('0x1b')]['get'](_0x22bb0b));const _0x1db84a=_0x5cbcc8[_0x5d7a('0x2d')]['builtinPlugins']||[],_0xa4c3dd=_0x12b241['extraPlugins']||[];delete _0x12b241[_0x5d7a('0x34')];const _0x254f4f=_0x1db84a[_0x5d7a('0x37')](_0x12b241[_0x5d7a('0x35')])['concat'](_0xa4c3dd)[_0x5d7a('0x2c')](_0x36247c=>_0x5d7a('0x2e')==typeof _0x36247c?_0x1db84a[_0x5d7a('0x30')](_0x4d01cb=>_0x4d01cb[_0x5d7a('0x16')]==_0x36247c):_0x36247c),_0x53ba55=Array[_0x5d7a('0xf')](new Set(_0x254f4f));return _0x12b241['plugins']=_0x53ba55[_0x5d7a('0xa')](_0x255243=>A(_0x255243,new Set())),_0x12b241[_0x5d7a('0x35')][_0x5d7a('0x1a')](v),_0x12b241[_0x5d7a('0x35')][_0x5d7a('0x1a')](_0x59b8ee),_0x12b241;}(_0x356cb6),_0x435a31=document['createDocumentFragment'](),_0x4aef89=_0x356cb6['config']['get'](_0x5d7a('0x21'))['editorCreator'],_0x21937a=await _0x4aef89(_0x7a4c46,()=>function(_0x21115b){const _0x324a80=document[_0x5d7a('0x24')](_0x5d7a('0x2b'));return _0x21115b[_0x5d7a('0x26')](_0x324a80),_0x324a80;}(_0x435a31));!function(_0x5460ad,_0xd8f95e){const _0xdde0=_0x5460ad[_0x5d7a('0x9')][_0x5d7a('0x1c')][_0x5d7a('0x8')]()[_0x5d7a('0x4')]((_0x5451f7,_0x170735)=>(_0x5451f7[_0x170735]=_0x5460ad[_0x5d7a('0x28')][_0x5d7a('0x11')]({'rootName':_0x170735}),_0x5451f7),{}),_0x5938f6=_0x5460ad[_0x5d7a('0x35')][_0x5d7a('0x11')]('Users')[_0x5d7a('0x1e')][_0x5d7a('0x2c')](_0x4b82a0=>({'id':_0x4b82a0['id']})),_0x54829a=_0x5460ad[_0x5d7a('0x35')][_0x5d7a('0x11')](_0x5d7a('0x31'))[_0x5d7a('0x13')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x39c89a=_0xd8f95e['plugins'][_0x5d7a('0x11')](_0x5d7a('0x20')),_0x1f521d=_0xd8f95e[_0x5d7a('0x35')][_0x5d7a('0x11')](_0x5d7a('0x31'));for(const _0x381569 of _0x5938f6)_0x39c89a[_0x5d7a('0xd')](_0x381569['id'])||_0x39c89a['addUser'](_0x381569);_0x39c89a['me']||_0x39c89a[_0x5d7a('0x17')]();for(const _0x5f2ee9 of _0x54829a)_0x1f521d[_0x5d7a('0xb')](_0x5f2ee9);_0xd8f95e[_0x5d7a('0x28')][_0x5d7a('0x10')](_0xdde0);}(_0x356cb6,_0x21937a),_0x21937a[_0x5d7a('0x6')](_0x281e36?_0x5d7a('0x1'):_0x5d7a('0xc'));const _0x5da78a=_0x21937a[_0x5d7a('0x28')][_0x5d7a('0x11')](_0x4f3fcc);return await _0x21937a[_0x5d7a('0x2')](),_0x5da78a;}function A(_0x525f71,_0xfc1390){if(_0xfc1390[_0x5d7a('0x14')](_0x525f71))return!0x0;_0xfc1390[_0x5d7a('0x36')](_0x525f71);const _0x54c13d=_0x5d7a('0x2a')==typeof _0x525f71?_0x525f71[_0x5d7a('0x16')]||_0x525f71[_0x5d7a('0x27')]:_0x525f71;return(!_0x54c13d||!D[_0x5d7a('0x5')](_0x54c13d))&&(!_0x525f71[_0x5d7a('0x29')]||_0x525f71[_0x5d7a('0x29')][_0x5d7a('0x25')](_0x146a16=>A(_0x146a16,_0xfc1390)));}