@ckeditor/ckeditor5-track-changes 38.0.1 → 38.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +10 -8
  3. package/src/commands/acceptsuggestioncommand.js +1 -1
  4. package/src/commands/discardsuggestioncommand.js +1 -1
  5. package/src/commands/executeonallsuggestionscommand.js +1 -1
  6. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  7. package/src/commands/trackchangescommand.js +1 -1
  8. package/src/integrations/alignment.js +1 -1
  9. package/src/integrations/basicstyles.js +1 -1
  10. package/src/integrations/blockquote.js +1 -1
  11. package/src/integrations/ckbox.js +1 -1
  12. package/src/integrations/codeblock.js +1 -1
  13. package/src/integrations/comments.js +1 -1
  14. package/src/integrations/deletecommand.d.ts +3 -2
  15. package/src/integrations/deletecommand.js +1 -1
  16. package/src/integrations/documentlist.js +1 -1
  17. package/src/integrations/documentlistproperties.js +1 -1
  18. package/src/integrations/entercommand.d.ts +3 -2
  19. package/src/integrations/entercommand.js +1 -1
  20. package/src/integrations/findandreplace.js +1 -1
  21. package/src/integrations/font.js +1 -1
  22. package/src/integrations/formatpainter.js +1 -1
  23. package/src/integrations/heading.js +1 -1
  24. package/src/integrations/highlight.js +1 -1
  25. package/src/integrations/horizontalline.js +1 -1
  26. package/src/integrations/htmlembed.js +1 -1
  27. package/src/integrations/image.js +1 -1
  28. package/src/integrations/imagereplace.js +1 -1
  29. package/src/integrations/importword.js +1 -1
  30. package/src/integrations/indent.js +1 -1
  31. package/src/integrations/inputcommand.d.ts +3 -2
  32. package/src/integrations/inputcommand.js +1 -1
  33. package/src/integrations/link.js +1 -1
  34. package/src/integrations/list.js +1 -1
  35. package/src/integrations/listproperties.js +1 -1
  36. package/src/integrations/mediaembed.js +1 -1
  37. package/src/integrations/mention.js +1 -1
  38. package/src/integrations/pagebreak.js +1 -1
  39. package/src/integrations/paragraph.js +1 -1
  40. package/src/integrations/removeformat.js +1 -1
  41. package/src/integrations/restrictededitingmode.js +1 -1
  42. package/src/integrations/shiftentercommand.d.ts +3 -2
  43. package/src/integrations/shiftentercommand.js +1 -1
  44. package/src/integrations/standardeditingmode.js +1 -1
  45. package/src/integrations/style.js +1 -1
  46. package/src/integrations/table.js +1 -1
  47. package/src/integrations/tablecaption.d.ts +3 -2
  48. package/src/integrations/tablecaption.js +1 -1
  49. package/src/integrations/tableclipboard.d.ts +3 -2
  50. package/src/integrations/tableclipboard.js +1 -1
  51. package/src/integrations/tablecolumnresize.js +1 -1
  52. package/src/integrations/tableheadings.d.ts +3 -2
  53. package/src/integrations/tableheadings.js +1 -1
  54. package/src/integrations/tablemergesplit.d.ts +3 -2
  55. package/src/integrations/tablemergesplit.js +1 -1
  56. package/src/integrations/tableofcontents.js +1 -1
  57. package/src/integrations/tableproperties.d.ts +1 -1
  58. package/src/integrations/tableproperties.js +1 -1
  59. package/src/integrations/template.js +1 -1
  60. package/src/integrations/title.js +1 -1
  61. package/src/integrations/undo.js +1 -1
  62. package/src/integrations/utils.js +1 -1
  63. package/src/suggestion.d.ts +1 -1
  64. package/src/suggestion.js +1 -1
  65. package/src/suggestiondescriptionfactory.js +1 -1
  66. package/src/trackchanges.d.ts +5 -5
  67. package/src/trackchanges.js +1 -1
  68. package/src/trackchangesdata.d.ts +4 -5
  69. package/src/trackchangesdata.js +1 -1
  70. package/src/trackchangesediting.d.ts +49 -5
  71. package/src/trackchangesediting.js +1 -1
  72. package/src/trackchangesui.d.ts +5 -5
  73. package/src/trackchangesui.js +1 -1
  74. package/src/ui/suggestioncontroller.js +1 -1
  75. package/src/ui/view/basesuggestionthreadview.js +1 -1
  76. package/src/ui/view/suggestionthreadview.d.ts +0 -2
  77. package/src/ui/view/suggestionthreadview.js +1 -1
  78. package/src/utils/common-translations.js +1 -1
  79. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x28bb=['isLimit','previousPosition','listIndent','parent','push','isContent','consumable','markerRange','nextSibling','bindElementToMarker','start','model','getCustomProperty','addHighlight','type','createRangeOn','isAtEnd','mapper','get','plugins','toViewElement','isBlock','addClass','markerName','writer','span','getWalker','createUIElement','listItem','ck-suggestion-marker--active','name','elementEnd','TrackChangesEditing'];(function(_0x424968,_0x28bbb9){const _0x5334ec=function(_0x34b302){while(--_0x34b302){_0x424968['push'](_0x424968['shift']());}};_0x5334ec(++_0x28bbb9);}(_0x28bb,0x17a));const _0x5334=function(_0x424968,_0x28bbb9){_0x424968=_0x424968-0x0;let _0x5334ec=_0x28bb[_0x424968];return _0x5334ec;};export function getRangesWithAttribute(_0x334f08,_0x54fb1e,_0x693f5c){const _0x32a68d=[];for(const _0x4b7090 of _0x54fb1e['getItems']())_0x4b7090['hasAttribute'](_0x334f08)&&_0x32a68d[_0x5334('0x16')](_0x693f5c[_0x5334('0x0')](_0x4b7090));return _0x32a68d;}export function getElementsAffectedByListItemRename(_0x51d70c){const _0x5bcd5f=[];if(_0x51d70c['is']('element',_0x5334('0xd'))){let _0x210f58=_0x51d70c['nextSibling'];for(;_0x210f58&&_0x210f58['is']('element',_0x5334('0xd'))&&_0x210f58['getAttribute'](_0x5334('0x14'))>0x0;)_0x5bcd5f[_0x5334('0x16')](_0x210f58),_0x210f58=_0x210f58[_0x5334('0x1a')];}return _0x5bcd5f;}export function downcastSplitMergeMarker(_0x6ea1ce,_0x1f934d,{showActiveMarker:_0x53c7d9=!0x0}={}){const _0x110312=_0x6ea1ce[_0x5334('0x4')][_0x5334('0x3')](_0x5334('0x11'));return(_0x944a51,_0x4a862e,_0x2271a9)=>{if(!_0x2271a9[_0x5334('0x18')]['test'](_0x4a862e[_0x5334('0x19')],_0x944a51[_0x5334('0xf')]))return;const _0x16c332=_0x4a862e[_0x5334('0x19')][_0x5334('0xb')](),_0x1b2c49=_0x4a862e[_0x5334('0x19')][_0x5334('0x1c')],_0x4a263f=_0x6ea1ce[_0x5334('0x1d')]['schema'];let _0x52df84=null,_0x34b664=null,_0x25a425=!0x1,_0x5b3236=!0x1;for(const _0x46c258 of _0x16c332){const _0x4899b7=_0x46c258['item'];_0x25a425=_0x25a425||_0x4a263f[_0x5334('0x17')](_0x4899b7);const _0x51b311=_0x2271a9[_0x5334('0x2')][_0x5334('0x5')](_0x4899b7);if(_0x51b311&&_0x51b311[_0x5334('0x1e')](_0x5334('0x1f')))return;_0x5334('0x10')==_0x46c258[_0x5334('0x20')]&&(_0x4a263f[_0x5334('0x6')](_0x4899b7)&&!_0x4a263f[_0x5334('0x12')](_0x4899b7)&&(_0x4899b7[_0x5334('0x1a')]||_0x1b2c49[_0x5334('0x1')]?_0x52df84&&_0x52df84[_0x5334('0x15')]==_0x4899b7||(_0x52df84=_0x4899b7,_0x2ba1c2(_0x46c258['previousPosition']),_0x5b3236=!0x0):_0x34b664=_0x34b664||_0x46c258[_0x5334('0x13')]));}function _0x2ba1c2(_0x3cd776){const _0x2bae1c=_0x2271a9['writer'][_0x5334('0xc')](_0x5334('0xa'),{'class':'ck-suggestion-marker-'+_0x1f934d}),_0x8a7584=_0x2271a9['mapper']['toViewPosition'](_0x3cd776);_0x53c7d9&&_0x110312['activeMarkers']['includes'](_0x4a862e[_0x5334('0x8')])&&_0x2271a9[_0x5334('0x9')][_0x5334('0x7')](_0x5334('0xe'),_0x2bae1c),_0x2271a9[_0x5334('0x9')]['insert'](_0x8a7584,_0x2bae1c),_0x2271a9['mapper'][_0x5334('0x1b')](_0x2bae1c,_0x4a862e[_0x5334('0x8')]);}_0x25a425||_0x5b3236||!_0x34b664||_0x2ba1c2(_0x34b664);};}
23
+ const _0x47a3=['createUIElement','element','addClass','push','activeMarkers','schema','insert','mapper','writer','listItem','isAtEnd','ck-suggestion-marker--active','get','isBlock','elementEnd','previousPosition','test','getAttribute','type','includes','isLimit','markerName','isContent','getCustomProperty','span','ck-suggestion-marker-','createRangeOn','start','item','TrackChangesEditing','nextSibling'];(function(_0xe13f61,_0x47a358){const _0x17e373=function(_0x3f85c9){while(--_0x3f85c9){_0xe13f61['push'](_0xe13f61['shift']());}};_0x17e373(++_0x47a358);}(_0x47a3,0x9f));const _0x17e3=function(_0xe13f61,_0x47a358){_0xe13f61=_0xe13f61-0x0;let _0x17e373=_0x47a3[_0xe13f61];return _0x17e373;};export function getRangesWithAttribute(_0x38d7be,_0x143c85,_0x17a275){const _0x2b0fc9=[];for(const _0x67777 of _0x143c85['getItems']())_0x67777['hasAttribute'](_0x38d7be)&&_0x2b0fc9['push'](_0x17a275[_0x17e3('0x16')](_0x67777));return _0x2b0fc9;}export function getElementsAffectedByListItemRename(_0x16813a){const _0x49f03d=[];if(_0x16813a['is'](_0x17e3('0x1c'),_0x17e3('0x5'))){let _0x4be3a4=_0x16813a['nextSibling'];for(;_0x4be3a4&&_0x4be3a4['is'](_0x17e3('0x1c'),_0x17e3('0x5'))&&_0x4be3a4[_0x17e3('0xd')]('listIndent')>0x0;)_0x49f03d[_0x17e3('0x1e')](_0x4be3a4),_0x4be3a4=_0x4be3a4[_0x17e3('0x1a')];}return _0x49f03d;}export function downcastSplitMergeMarker(_0x48b7ac,_0x1c8e24,{showActiveMarker:_0x58e588=!0x0}={}){const _0x34a723=_0x48b7ac['plugins'][_0x17e3('0x8')](_0x17e3('0x19'));return(_0x51e592,_0x4b3fc1,_0x2dfd53)=>{if(!_0x2dfd53['consumable'][_0x17e3('0xc')](_0x4b3fc1['markerRange'],_0x51e592['name']))return;const _0x966670=_0x4b3fc1['markerRange']['getWalker'](),_0x52584a=_0x4b3fc1['markerRange'][_0x17e3('0x17')],_0x5706a4=_0x48b7ac['model'][_0x17e3('0x1')];let _0x56edf7=null,_0x1c07b0=null,_0x54767d=!0x1,_0x595d2c=!0x1;for(const _0x405edc of _0x966670){const _0x2385fa=_0x405edc[_0x17e3('0x18')];_0x54767d=_0x54767d||_0x5706a4[_0x17e3('0x12')](_0x2385fa);const _0x6920ae=_0x2dfd53[_0x17e3('0x3')]['toViewElement'](_0x2385fa);if(_0x6920ae&&_0x6920ae[_0x17e3('0x13')]('addHighlight'))return;_0x17e3('0xa')==_0x405edc[_0x17e3('0xe')]&&(_0x5706a4[_0x17e3('0x9')](_0x2385fa)&&!_0x5706a4[_0x17e3('0x10')](_0x2385fa)&&(_0x2385fa[_0x17e3('0x1a')]||_0x52584a[_0x17e3('0x6')]?_0x56edf7&&_0x56edf7['parent']==_0x2385fa||(_0x56edf7=_0x2385fa,_0x4a492d(_0x405edc[_0x17e3('0xb')]),_0x595d2c=!0x0):_0x1c07b0=_0x1c07b0||_0x405edc[_0x17e3('0xb')]));}function _0x4a492d(_0x3c8ab8){const _0x1544de=_0x2dfd53[_0x17e3('0x4')][_0x17e3('0x1b')](_0x17e3('0x14'),{'class':_0x17e3('0x15')+_0x1c8e24}),_0x49b05e=_0x2dfd53[_0x17e3('0x3')]['toViewPosition'](_0x3c8ab8);_0x58e588&&_0x34a723[_0x17e3('0x0')][_0x17e3('0xf')](_0x4b3fc1['markerName'])&&_0x2dfd53['writer'][_0x17e3('0x1d')](_0x17e3('0x7'),_0x1544de),_0x2dfd53[_0x17e3('0x4')][_0x17e3('0x2')](_0x49b05e,_0x1544de),_0x2dfd53[_0x17e3('0x3')]['bindElementToMarker'](_0x1544de,_0x4b3fc1[_0x17e3('0x11')]);}_0x54767d||_0x595d2c||!_0x1c07b0||_0x4a492d(_0x1c07b0);};}
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { Element, type Marker, type Model, type Range, type Item } from 'ckeditor5/src/engine';
6
6
  import type { User } from 'ckeditor5-collaboration/src/collaboration-core';
7
- import type { CommentThread } from '@ckeditor/ckeditor5-comments/src/comments/commentsrepository';
7
+ import type { CommentThread } from '@ckeditor/ckeditor5-comments';
8
8
  import type { FormatData } from './trackchangesediting';
9
9
  declare const Suggestion_base: {
10
10
  new (): import("ckeditor5/src/utils").Observable;
package/src/suggestion.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x30e1=['creator','authoredAt','getItems','end','head','next','_onAccept','getMarkers','_onAttributesChange','decorate','size','from','commentThread','_model','getRanges','removeMarkers','nodeAfter','addRange','start','addMarkerName','set','reduce','isIntersecting','subType','markers','length','hasComments','removeMarker','@external','onAccept','getMultiRangeId','onDiscard','isExternal','change','createdAt','attributes','setAttribute','getMarkerNames','map','getRange','getAllAdjacentSuggestions','add','type','isMultiRange','author','_saved','previous','addMarker','delete','getFirstMarker','nodeBefore','suggestion:','clear','push','onAttributesChange','_markerNames','data'];(function(_0xc39538,_0x30e17c){const _0x17c2b9=function(_0x549572){while(--_0x549572){_0xc39538['push'](_0xc39538['shift']());}};_0x17c2b9(++_0x30e17c);}(_0x30e1,0x97));const _0x17c2=function(_0xc39538,_0x30e17c){_0xc39538=_0xc39538-0x0;let _0x17c2b9=_0x30e1[_0xc39538];return _0x17c2b9;};import{Element as _0x42a367}from'ckeditor5/src/engine';import{ObservableMixin as _0x347148,uid as _0x2893c9}from'ckeditor5/src/utils';import{cloneDeep as _0x106ab5,isEqual as _0x17301a,set as _0x2f7bab,unset as _0xc294ef}from'lodash-es';export default class u extends _0x347148(){constructor(_0x5073e4,_0x575566){super(),this['id']=_0x575566['id'],this[_0x17c2('0x5')]=_0x575566[_0x17c2('0x5')],this[_0x17c2('0x2b')]=_0x575566[_0x17c2('0x2b')]||null,this[_0x17c2('0x7')]=_0x575566[_0x17c2('0x7')],this[_0x17c2('0x14')]=_0x575566[_0x17c2('0x14')]||_0x575566[_0x17c2('0x7')],this[_0x17c2('0x34')]=Boolean(_0x575566[_0x17c2('0x37')]&&_0x575566[_0x17c2('0x37')][_0x17c2('0x30')]),this['data']=null,this[_0x17c2('0x21')]=_0x5073e4,this[_0x17c2('0x1a')]=_0x575566[_0x17c2('0x31')],this['_onDiscard']=_0x575566[_0x17c2('0x33')],this[_0x17c2('0x1c')]=_0x575566[_0x17c2('0x11')],this['_markerNames']=new Set(),this[_0x17c2('0x36')]=null,this['set'](_0x17c2('0x15'),null),this[_0x17c2('0x28')](_0x17c2('0x37'),_0x575566[_0x17c2('0x37')]||{}),this['set']('previous',null),this[_0x17c2('0x28')](_0x17c2('0x19'),null),this['set'](_0x17c2('0x20'),null),this[_0x17c2('0x28')](_0x17c2('0x8'),!0x1),this[_0x17c2('0x1d')]('accept'),this[_0x17c2('0x1d')]('discard');}get[_0x17c2('0x18')](){let _0x1c173d=this;for(;_0x1c173d[_0x17c2('0x9')];)_0x1c173d=_0x1c173d[_0x17c2('0x9')];return _0x1c173d;}get[_0x17c2('0x2e')](){return!!this['commentThread']&&this[_0x17c2('0x20')][_0x17c2('0x2d')]>0x0;}get[_0x17c2('0x6')](){if(0x0==this['_markerNames'][_0x17c2('0x1e')])return!0x1;return 0x6==Array[_0x17c2('0x1f')](this[_0x17c2('0x12')])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this[_0x17c2('0xc')]();}[_0x17c2('0x27')](_0x14e5f6){this[_0x17c2('0x12')][_0x17c2('0x4')](_0x14e5f6);}[_0x17c2('0x0')](){return Array[_0x17c2('0x1f')](this[_0x17c2('0x12')]);}[_0x17c2('0x1b')](){return this['getMarkerNames']()[_0x17c2('0x1')](_0x43ce92=>this[_0x17c2('0x21')][_0x17c2('0x2c')]['get'](_0x43ce92))['filter'](_0x46b602=>_0x46b602);}[_0x17c2('0xc')](){return this[_0x17c2('0x1b')]()[0x0]||null;}['removeMarkers'](){this[_0x17c2('0x21')][_0x17c2('0x35')](_0x452b1b=>{for(const _0x4b0798 of this[_0x17c2('0x1b')]())_0x452b1b[_0x17c2('0x2f')](_0x4b0798);}),this[_0x17c2('0x12')][_0x17c2('0xf')]();}[_0x17c2('0x2f')](_0x3f12c2){this[_0x17c2('0x21')]['change'](_0x4c9c68=>{_0x4c9c68[_0x17c2('0x2f')](_0x3f12c2);}),this['_markerNames'][_0x17c2('0xb')](_0x3f12c2);}[_0x17c2('0x25')](_0x61e9b1){const _0x5a9294=_0x17c2('0xe')+this['type']+':'+this[_0x17c2('0x2b')]+':'+this['id']+':'+this[_0x17c2('0x14')]['id']+':'+u[_0x17c2('0x32')]();this[_0x17c2('0x27')](_0x5a9294),this[_0x17c2('0x21')][_0x17c2('0x35')](_0x47d7da=>{_0x47d7da[_0x17c2('0xa')](_0x5a9294,{'range':_0x61e9b1,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3b84d1){for(const _0x5263ff of this[_0x17c2('0x22')]())if(_0x5263ff[_0x17c2('0x2a')](_0x3b84d1))return!0x0;return!0x1;}['getRanges'](){return this[_0x17c2('0x1b')]()[_0x17c2('0x1')](_0x5ede71=>_0x5ede71[_0x17c2('0x2')]());}[_0x17c2('0x16')](){return this[_0x17c2('0x22')]()[_0x17c2('0x29')]((_0x2480d5,_0x50fe35)=>[..._0x2480d5,..._0x50fe35[_0x17c2('0x16')]()],[]);}['getFirstRange'](){var _0x95875;return(null===(_0x95875=this[_0x17c2('0xc')]())||void 0x0===_0x95875?void 0x0:_0x95875[_0x17c2('0x2')]())||null;}['getContainedElement'](){const _0x52b9d0=this['getRanges']();if(0x1!=_0x52b9d0[_0x17c2('0x2d')])return null;const _0x59d542=_0x52b9d0[0x0],_0x17dc64=_0x59d542[_0x17c2('0x26')][_0x17c2('0x24')],_0x215df7=_0x59d542[_0x17c2('0x17')][_0x17c2('0xd')];return _0x17dc64 instanceof _0x42a367?_0x17dc64!=_0x215df7?null:_0x17dc64:null;}['accept'](){this[_0x17c2('0x1a')](this[_0x17c2('0x22')](),this[_0x17c2('0x13')],this[_0x17c2('0x37')]),this[_0x17c2('0x23')]();}['discard'](){this['_onDiscard'](this[_0x17c2('0x22')](),this[_0x17c2('0x13')],this[_0x17c2('0x37')]),this[_0x17c2('0x23')]();}[_0x17c2('0x3')](){const _0x260bf1=[];let _0x183bbd=this[_0x17c2('0x18')];for(;_0x183bbd;)_0x260bf1[_0x17c2('0x10')](_0x183bbd),_0x183bbd=_0x183bbd[_0x17c2('0x19')];return _0x260bf1;}[_0x17c2('0x38')](_0x2ee361,_0x47c6f4){const _0x216dde=_0x106ab5(this[_0x17c2('0x37')]);_0x2f7bab(_0x216dde,_0x2ee361,_0x47c6f4),_0x17301a(_0x216dde,this[_0x17c2('0x37')])||(this[_0x17c2('0x37')]=_0x216dde,this[_0x17c2('0x1c')](_0x216dde));}['removeAttribute'](_0x49a975){const _0xa74115=_0x106ab5(this[_0x17c2('0x37')]);_0xc294ef(_0xa74115,_0x49a975),_0x17301a(_0xa74115,this[_0x17c2('0x37')])||(this[_0x17c2('0x37')]=_0xa74115,this[_0x17c2('0x1c')](this[_0x17c2('0x37')]));}['toJSON'](){return{'id':this['id'],'type':this[_0x17c2('0x2b')]?this[_0x17c2('0x5')]+':'+this['subType']:this[_0x17c2('0x5')],'authorId':this[_0x17c2('0x14')]['id'],'createdAt':this['createdAt'],'hasComments':this[_0x17c2('0x2e')],'data':this[_0x17c2('0x13')],'attributes':this[_0x17c2('0x37')]};}static[_0x17c2('0x32')](){return _0x2893c9()['substr'](0x1,0x5);}}
23
+ const _0x44e7=['size','creator','_onAccept','addRange','onDiscard','from','addMarkerName','length','suggestion:','data','_onDiscard','_model','_saved','add','_onAttributesChange','createdAt','onAttributesChange','set','end','change','isExternal','next','commentThread','getMarkerNames','toJSON','getRanges','getMarkers','type','attributes','previous','setAttribute','removeMarker','author','@external','onAccept','nodeAfter','push','removeMarkers','delete','isIntersectingWithRange','discard','_markerNames','authoredAt','decorate','hasComments','addMarker','getFirstMarker','clear','head','getFirstRange','getItems','isMultiRange','markers','start','nodeBefore','accept','subType'];(function(_0x2e5f57,_0x44e714){const _0x55835f=function(_0x5041ea){while(--_0x5041ea){_0x2e5f57['push'](_0x2e5f57['shift']());}};_0x55835f(++_0x44e714);}(_0x44e7,0x126));const _0x5583=function(_0x2e5f57,_0x44e714){_0x2e5f57=_0x2e5f57-0x0;let _0x55835f=_0x44e7[_0x2e5f57];return _0x55835f;};import{Element as _0x283f50}from'ckeditor5/src/engine';import{ObservableMixin as _0x632a53,uid as _0x4c9e6c}from'ckeditor5/src/utils';import{cloneDeep as _0x2848d0,isEqual as _0xcdb95c,set as _0x28f941,unset as _0x28c836}from'lodash-es';export default class u extends _0x632a53(){constructor(_0x3dbf24,_0xe28de6){super(),this['id']=_0xe28de6['id'],this['type']=_0xe28de6[_0x5583('0x12')],this[_0x5583('0x2f')]=_0xe28de6[_0x5583('0x2f')]||null,this[_0x5583('0x17')]=_0xe28de6[_0x5583('0x17')],this['creator']=_0xe28de6['creator']||_0xe28de6['author'],this[_0x5583('0xb')]=Boolean(_0xe28de6['attributes']&&_0xe28de6[_0x5583('0x13')][_0x5583('0x18')]),this[_0x5583('0x0')]=null,this[_0x5583('0x2')]=_0x3dbf24,this[_0x5583('0x32')]=_0xe28de6[_0x5583('0x19')],this[_0x5583('0x1')]=_0xe28de6[_0x5583('0x34')],this['_onAttributesChange']=_0xe28de6[_0x5583('0x7')],this[_0x5583('0x20')]=new Set(),this[_0x5583('0x6')]=null,this[_0x5583('0x8')](_0x5583('0x21'),null),this[_0x5583('0x8')](_0x5583('0x13'),_0xe28de6[_0x5583('0x13')]||{}),this[_0x5583('0x8')]('previous',null),this[_0x5583('0x8')](_0x5583('0xc'),null),this['set'](_0x5583('0xd'),null),this[_0x5583('0x8')](_0x5583('0x3'),!0x1),this[_0x5583('0x22')]('accept'),this[_0x5583('0x22')](_0x5583('0x1f'));}get['head'](){let _0x31f022=this;for(;_0x31f022[_0x5583('0x14')];)_0x31f022=_0x31f022[_0x5583('0x14')];return _0x31f022;}get[_0x5583('0x23')](){return!!this[_0x5583('0xd')]&&this[_0x5583('0xd')]['length']>0x0;}get[_0x5583('0x2a')](){if(0x0==this[_0x5583('0x20')][_0x5583('0x30')])return!0x1;return 0x6==Array[_0x5583('0x35')](this[_0x5583('0x20')])[0x0]['split'](':')[_0x5583('0x37')];}get['isInContent'](){return null!==this[_0x5583('0x25')]();}[_0x5583('0x36')](_0x493c32){this[_0x5583('0x20')][_0x5583('0x4')](_0x493c32);}['getMarkerNames'](){return Array[_0x5583('0x35')](this[_0x5583('0x20')]);}[_0x5583('0x11')](){return this[_0x5583('0xe')]()['map'](_0x45386f=>this['_model'][_0x5583('0x2b')]['get'](_0x45386f))['filter'](_0x4c5b22=>_0x4c5b22);}['getFirstMarker'](){return this[_0x5583('0x11')]()[0x0]||null;}[_0x5583('0x1c')](){this[_0x5583('0x2')][_0x5583('0xa')](_0x438e57=>{for(const _0x18548e of this['getMarkers']())_0x438e57[_0x5583('0x16')](_0x18548e);}),this[_0x5583('0x20')][_0x5583('0x26')]();}[_0x5583('0x16')](_0x116e44){this[_0x5583('0x2')][_0x5583('0xa')](_0x898457=>{_0x898457[_0x5583('0x16')](_0x116e44);}),this[_0x5583('0x20')][_0x5583('0x1d')](_0x116e44);}[_0x5583('0x33')](_0x5d7228){const _0x387679=_0x5583('0x38')+this[_0x5583('0x12')]+':'+this[_0x5583('0x2f')]+':'+this['id']+':'+this[_0x5583('0x31')]['id']+':'+u['getMultiRangeId']();this[_0x5583('0x36')](_0x387679),this['_model'][_0x5583('0xa')](_0x5c3739=>{_0x5c3739[_0x5583('0x24')](_0x387679,{'range':_0x5d7228,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x5583('0x1e')](_0x3d7ef6){for(const _0x13e15f of this[_0x5583('0x10')]())if(_0x13e15f['isIntersecting'](_0x3d7ef6))return!0x0;return!0x1;}[_0x5583('0x10')](){return this[_0x5583('0x11')]()['map'](_0x353570=>_0x353570['getRange']());}[_0x5583('0x29')](){return this[_0x5583('0x10')]()['reduce']((_0x41b8db,_0x501348)=>[..._0x41b8db,..._0x501348[_0x5583('0x29')]()],[]);}[_0x5583('0x28')](){var _0x21bf72;return(null===(_0x21bf72=this['getFirstMarker']())||void 0x0===_0x21bf72?void 0x0:_0x21bf72['getRange']())||null;}['getContainedElement'](){const _0x3ba31c=this[_0x5583('0x10')]();if(0x1!=_0x3ba31c[_0x5583('0x37')])return null;const _0x524602=_0x3ba31c[0x0],_0x1df34e=_0x524602[_0x5583('0x2c')][_0x5583('0x1a')],_0x2d0b1a=_0x524602[_0x5583('0x9')][_0x5583('0x2d')];return _0x1df34e instanceof _0x283f50?_0x1df34e!=_0x2d0b1a?null:_0x1df34e:null;}[_0x5583('0x2e')](){this['_onAccept'](this[_0x5583('0x10')](),this[_0x5583('0x0')],this['attributes']),this[_0x5583('0x1c')]();}[_0x5583('0x1f')](){this[_0x5583('0x1')](this[_0x5583('0x10')](),this[_0x5583('0x0')],this[_0x5583('0x13')]),this[_0x5583('0x1c')]();}['getAllAdjacentSuggestions'](){const _0x24229a=[];let _0xe3335e=this[_0x5583('0x27')];for(;_0xe3335e;)_0x24229a[_0x5583('0x1b')](_0xe3335e),_0xe3335e=_0xe3335e[_0x5583('0xc')];return _0x24229a;}[_0x5583('0x15')](_0x4e8ce3,_0x423e19){const _0x22a2f5=_0x2848d0(this['attributes']);_0x28f941(_0x22a2f5,_0x4e8ce3,_0x423e19),_0xcdb95c(_0x22a2f5,this['attributes'])||(this[_0x5583('0x13')]=_0x22a2f5,this['_onAttributesChange'](_0x22a2f5));}['removeAttribute'](_0x5683ff){const _0x16365d=_0x2848d0(this[_0x5583('0x13')]);_0x28c836(_0x16365d,_0x5683ff),_0xcdb95c(_0x16365d,this[_0x5583('0x13')])||(this['attributes']=_0x16365d,this[_0x5583('0x5')](this[_0x5583('0x13')]));}[_0x5583('0xf')](){return{'id':this['id'],'type':this[_0x5583('0x2f')]?this[_0x5583('0x12')]+':'+this['subType']:this['type'],'authorId':this[_0x5583('0x31')]['id'],'createdAt':this[_0x5583('0x6')],'hasComments':this['hasComments'],'data':this[_0x5583('0x0')],'attributes':this[_0x5583('0x13')]};}static['getMultiRangeId'](){return _0x4c9e6c()['substr'](0x1,0x5);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4d22=['addContainer','removeContainer','isEmpty','function','isInContent','*Insert:*\x20%0','_schema','Object','_itemLabels','registerElementLabel','ELEMENT_SPACE','get','deletion','$1\x20$2','start','remove','softBreak','element','quantity','elementEnd','isEqual','Container','skip','insertion','indexOf','$text','removeEmptyContainer','type','text','getItemLabel','*Remove:*\x20%0','replace','data','name','getFirstRange','pop','_locale','nextSibling','previousSibling','addEmptyContainer','_resolveDescriptionItems','$textProxy','item','add','set','elementStart','_itemLabelsCallbacks','match','label','length','end','matchingCallback','_addDescriptionItems','_customCallbacks','isObject','getWalker','push'];(function(_0x4e0009,_0x4d2287){const _0x1b1f83=function(_0x21b1e5){while(--_0x21b1e5){_0x4e0009['push'](_0x4e0009['shift']());}};_0x1b1f83(++_0x4d2287);}(_0x4d22,0x1ab));const _0x1b1f=function(_0x4e0009,_0x4d2287){_0x4e0009=_0x4e0009-0x0;let _0x1b1f83=_0x4d22[_0x4e0009];return _0x1b1f83;};import{getTranslation as _0x8ba7a5}from'./utils/common-translations';import{priorities as _0x27b4bb,insertToPriorityArray as _0x4574a9}from'ckeditor5/src/utils';export default class m{constructor(_0x2048c9,_0x2a6531){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this[_0x1b1f('0x12')]=[],this[_0x1b1f('0x23')]=_0x2048c9,this[_0x1b1f('0x8')]=_0x2a6531;}['getDescriptions'](_0x2ffb87){const _0x24556f=[];for(let _0xf74c4e=0x0;_0xf74c4e<_0x2ffb87[_0x1b1f('0x15')];_0xf74c4e++){const _0x70b07a=_0x2ffb87[_0xf74c4e];if(!_0x70b07a[_0x1b1f('0x21')])continue;let _0x3c8b1d=!0x1;for(const _0x1180bf of this[_0x1b1f('0x19')]){const _0x2a7795=_0x1180bf(_0x70b07a);if(_0x2a7795){_0x1b1f('0x38')in _0x2a7795&&_0x24556f[_0x1b1f('0x1c')](_0x2a7795),_0x3c8b1d=!0x0;break;}}if(!_0x3c8b1d){this['_addDescriptionItems'](_0x24556f,_0x70b07a);const _0x596309=_0x2ffb87[_0xf74c4e+0x1];if(_0x596309&&!_0x70b07a['getFirstRange']()[_0x1b1f('0x16')][_0x1b1f('0x31')](_0x596309[_0x1b1f('0x6')]()[_0x1b1f('0x2b')])){const _0x278eb2=_0x24556f[_0x24556f[_0x1b1f('0x15')]-0x1],_0x4d0e08=_0x1b1f('0x34')==_0x70b07a[_0x1b1f('0x38')]?_0x1b1f('0xf'):_0x1b1f('0x2c');_0x278eb2&&_0x1b1f('0x0')==_0x278eb2[_0x1b1f('0x38')]&&(_0x278eb2[_0x4d0e08]+='\x0a');}}}return this['_resolveDescriptionItems'](_0x24556f);}['registerDescriptionCallback'](_0x23ecb2){this[_0x1b1f('0x19')]['push'](_0x23ecb2);}[_0x1b1f('0x26')](_0xba20a5,_0x30c6f3,_0x590167=_0x27b4bb['normal']){_0x1b1f('0x20')==typeof _0xba20a5?_0x4574a9(this[_0x1b1f('0x12')],{'matchingCallback':_0xba20a5,'label':_0x30c6f3,'priority':_0x590167}):this[_0x1b1f('0x25')][_0x1b1f('0x10')](_0xba20a5,_0x30c6f3);}[_0x1b1f('0x1')](_0x524009,_0x12328f=0x1){let _0x1d7ead;for(const _0x1da25f of this[_0x1b1f('0x12')])if(_0x1da25f[_0x1b1f('0x17')](_0x524009)){_0x1d7ead=_0x1da25f[_0x1b1f('0x14')];break;}return _0x1d7ead||(_0x1d7ead=this['_itemLabels'][_0x1b1f('0x28')](_0x524009['name'])),_0x1d7ead?_0x1d7ead(_0x12328f):0x1!==_0x12328f?_0x12328f+'\x20'+_0x524009[_0x1b1f('0x5')]+'s':''+_0x524009[_0x1b1f('0x5')];}[_0x1b1f('0x18')](_0x4999ad,_0x5e0475){const _0x4a74c4=_0x5e0475['getFirstRange']()[_0x1b1f('0x1b')](),_0x4883d8=_0x1b1f('0x34')==_0x5e0475[_0x1b1f('0x38')]?_0x1b1f('0xf'):'remove';for(const _0x4ff1c0 of _0x4a74c4){const _0x6419e9=_0x4ff1c0['item'],_0x21170d=_0x4999ad[_0x4999ad[_0x1b1f('0x15')]-0x1];if(_0x6419e9['is'](_0x1b1f('0xd')))_0x21170d&&_0x21170d[_0x1b1f('0x38')][_0x1b1f('0x35')](_0x1b1f('0x32'))>-0x1&&_0x4999ad[_0x1b1f('0x7')](),_0x21170d&&'text'==_0x21170d[_0x1b1f('0x38')]?_0x21170d[_0x4883d8]+=_0x6419e9['data']:_0x4999ad[_0x1b1f('0x1c')]({'type':'text','add':'add'==_0x4883d8?_0x6419e9['data']:'','remove':_0x1b1f('0x2c')==_0x4883d8?_0x6419e9[_0x1b1f('0x4')]:''});else{if(this[_0x1b1f('0x23')][_0x1b1f('0x1a')](_0x6419e9)){const _0x18bddd=_0x6419e9;if(_0x21170d&&_0x21170d[_0x1b1f('0x38')][_0x1b1f('0x35')](_0x1b1f('0x32'))>-0x1&&_0x4999ad[_0x1b1f('0x7')](),_0x1b1f('0x30')==_0x4ff1c0['type'])continue;_0x21170d&&_0x21170d[_0x1b1f('0x38')]==_0x4883d8+_0x1b1f('0x24')&&_0x21170d[_0x1b1f('0x2e')][_0x1b1f('0x5')]==_0x18bddd[_0x1b1f('0x5')]?_0x21170d[_0x1b1f('0x2f')]++:_0x4999ad[_0x1b1f('0x1c')]({'type':_0x4883d8+_0x1b1f('0x24'),'element':_0x18bddd,'quantity':0x1}),_0x4a74c4[_0x1b1f('0x33')](_0x207580=>!(_0x1b1f('0x30')==_0x207580[_0x1b1f('0x38')]&&_0x207580[_0x1b1f('0xe')]==_0x6419e9));}else{if(this[_0x1b1f('0x23')]['checkChild'](_0x6419e9,_0x1b1f('0x36'))||_0x6419e9['is'](_0x1b1f('0x2e'),_0x1b1f('0x2d'))){const _0x43cb2a=_0x6419e9;if(_0x1b1f('0xf')==_0x4883d8&&_0x1b1f('0x11')==_0x4ff1c0[_0x1b1f('0x38')]||_0x1b1f('0x2c')==_0x4883d8&&_0x1b1f('0x30')==_0x4ff1c0[_0x1b1f('0x38')])continue;if(_0x21170d&&-0x1==_0x21170d[_0x1b1f('0x38')][_0x1b1f('0x35')]('Container')){_0x1b1f('0x0')==_0x21170d[_0x1b1f('0x38')]&&(_0x21170d[_0x4883d8]+='\x0a');continue;}let _0x108285;if(_0x108285=_0x1b1f('0xf')==_0x4883d8?_0x43cb2a['nextSibling']&&!this['_schema'][_0x1b1f('0x1a')](_0x43cb2a['nextSibling'])?_0x43cb2a[_0x1b1f('0x9')]:null:_0x43cb2a['previousSibling']&&!this[_0x1b1f('0x23')][_0x1b1f('0x1a')](_0x43cb2a[_0x1b1f('0xa')])?_0x43cb2a[_0x1b1f('0xa')]:null,_0x43cb2a['isEmpty']||_0x108285&&_0x108285[_0x1b1f('0x1f')]){const _0x587025=_0x108285&&_0x108285['isEmpty']?_0x108285:_0x43cb2a;_0x21170d&&_0x21170d[_0x1b1f('0x38')]==_0x4883d8+'EmptyContainer'&&_0x21170d[_0x1b1f('0x2e')][_0x1b1f('0x5')]==_0x587025[_0x1b1f('0x5')]?_0x21170d[_0x1b1f('0x2f')]++:_0x4999ad[_0x1b1f('0x1c')]({'type':_0x4883d8+'EmptyContainer','element':_0x587025,'quantity':0x1});}else _0x4999ad[_0x1b1f('0x1c')]({'type':_0x4883d8+_0x1b1f('0x32'),'element':_0x43cb2a});}}}}}[_0x1b1f('0xc')](_0x1f008b){const _0x3836ff=this[_0x1b1f('0x8')],_0x59d36d=[];for(const _0x9edc15 of _0x1f008b){switch(_0x9edc15[_0x1b1f('0x38')]){case _0x1b1f('0x0'):if(_0x9edc15['add']=_0x9edc15[_0x1b1f('0xf')][_0x1b1f('0x3')](/(\S)\u000A+(\S)/g,_0x1b1f('0x2a'))[_0x1b1f('0x3')](/\u000A/g,''),_0x9edc15[_0x1b1f('0x2c')]=_0x9edc15[_0x1b1f('0x2c')][_0x1b1f('0x3')](/(\S)\u000A+(\S)/g,_0x1b1f('0x2a'))['replace'](/\u000A/g,''),''!=_0x9edc15[_0x1b1f('0xf')]&&''!=_0x9edc15['remove']){_0x59d36d[_0x1b1f('0x1c')]({'type':_0x1b1f('0x3'),'content':_0x8ba7a5(_0x3836ff,'REPLACE_TEXT',['\x22'+_0x9edc15[_0x1b1f('0x2c')]+'\x22','\x22'+_0x9edc15['add']+'\x22'])});continue;}if(null!=_0x9edc15[_0x1b1f('0xf')][_0x1b1f('0x13')](/^ +$/)){_0x59d36d['push']({'type':_0x1b1f('0x34'),'content':_0x8ba7a5(_0x3836ff,_0x1b1f('0x22'),_0x8ba7a5(_0x3836ff,_0x1b1f('0x27'),_0x9edc15[_0x1b1f('0xf')][_0x1b1f('0x15')]))});continue;}if(null!=_0x9edc15['remove'][_0x1b1f('0x13')](/^ +$/)){_0x59d36d['push']({'type':_0x1b1f('0x29'),'content':_0x8ba7a5(_0x3836ff,'*Remove:*\x20%0',_0x8ba7a5(_0x3836ff,_0x1b1f('0x27'),_0x9edc15[_0x1b1f('0x2c')][_0x1b1f('0x15')]))});continue;}if(''!=_0x9edc15[_0x1b1f('0xf')]){_0x59d36d[_0x1b1f('0x1c')]({'type':'insertion','content':_0x8ba7a5(_0x3836ff,_0x1b1f('0x22'),'\x22'+_0x9edc15['add']+'\x22')});continue;}_0x59d36d[_0x1b1f('0x1c')]({'type':_0x1b1f('0x29'),'content':_0x8ba7a5(_0x3836ff,_0x1b1f('0x2'),'\x22'+_0x9edc15[_0x1b1f('0x2c')]+'\x22')});continue;case _0x1b1f('0xb'):case'addObject':_0x59d36d[_0x1b1f('0x1c')]({'type':'insertion','content':_0x8ba7a5(_0x3836ff,'*Insert:*\x20%0',this['getItemLabel'](_0x9edc15[_0x1b1f('0x2e')],_0x9edc15[_0x1b1f('0x2f')]))});continue;case _0x1b1f('0x37'):case'removeObject':_0x59d36d[_0x1b1f('0x1c')]({'type':_0x1b1f('0x29'),'content':_0x8ba7a5(_0x3836ff,_0x1b1f('0x2'),this[_0x1b1f('0x1')](_0x9edc15[_0x1b1f('0x2e')],_0x9edc15[_0x1b1f('0x2f')]))});continue;case _0x1b1f('0x1d'):_0x59d36d[_0x1b1f('0x1c')]({'type':'insertion','content':_0x8ba7a5(_0x3836ff,'*Split:*\x20%0',this[_0x1b1f('0x1')](_0x9edc15['element'],_0x9edc15[_0x1b1f('0x2f')]))});continue;case _0x1b1f('0x1e'):_0x59d36d[_0x1b1f('0x1c')]({'type':_0x1b1f('0x29'),'content':_0x8ba7a5(_0x3836ff,'*Merge:*\x20%0',this['getItemLabel'](_0x9edc15[_0x1b1f('0x2e')],_0x9edc15[_0x1b1f('0x2f')]))});continue;}_0x59d36d[_0x1b1f('0x1c')](_0x9edc15);}return _0x59d36d;}}
23
+ const _0x2b68=['getWalker','isEqual','$textProxy','type','element','_customCallbacks','set','length','item','*Insert:*\x20%0','_itemLabelsCallbacks','_itemLabels','$text','softBreak','Container','pop','indexOf','elementEnd','EmptyContainer','match','removeEmptyContainer','quantity','getItemLabel','*Split:*\x20%0','nextSibling','_locale','isEmpty','removeContainer','deletion','*Remove:*\x20%0','_resolveDescriptionItems','previousSibling','registerElementLabel','remove','replace','addObject','isInContent','_schema','Object','label','push','add','getFirstRange','*Merge:*\x20%0','data','isObject','start','matchingCallback','addContainer','_addDescriptionItems','$1\x20$2','name','REPLACE_TEXT','text','insertion'];(function(_0x495793,_0x2b6802){const _0xb9987e=function(_0x43be8b){while(--_0x43be8b){_0x495793['push'](_0x495793['shift']());}};_0xb9987e(++_0x2b6802);}(_0x2b68,0x198));const _0xb998=function(_0x495793,_0x2b6802){_0x495793=_0x495793-0x0;let _0xb9987e=_0x2b68[_0x495793];return _0xb9987e;};import{getTranslation as _0x17b8df}from'./utils/common-translations';import{priorities as _0x425242,insertToPriorityArray as _0x1cc2af}from'ckeditor5/src/utils';export default class m{constructor(_0x2929c3,_0x48ba06){this[_0xb998('0x25')]=[],this[_0xb998('0x2b')]=new Map(),this[_0xb998('0x2a')]=[],this[_0xb998('0xe')]=_0x2929c3,this['_locale']=_0x48ba06;}['getDescriptions'](_0x2a4606){const _0x4aa8c0=[];for(let _0x48a8cc=0x0;_0x48a8cc<_0x2a4606[_0xb998('0x27')];_0x48a8cc++){const _0x1a48e3=_0x2a4606[_0x48a8cc];if(!_0x1a48e3[_0xb998('0xd')])continue;let _0x36bd5c=!0x1;for(const _0xba74c9 of this['_customCallbacks']){const _0x933817=_0xba74c9(_0x1a48e3);if(_0x933817){_0xb998('0x23')in _0x933817&&_0x4aa8c0[_0xb998('0x11')](_0x933817),_0x36bd5c=!0x0;break;}}if(!_0x36bd5c){this[_0xb998('0x1a')](_0x4aa8c0,_0x1a48e3);const _0x22f82c=_0x2a4606[_0x48a8cc+0x1];if(_0x22f82c&&!_0x1a48e3[_0xb998('0x13')]()['end'][_0xb998('0x21')](_0x22f82c['getFirstRange']()[_0xb998('0x17')])){const _0x49bd14=_0x4aa8c0[_0x4aa8c0[_0xb998('0x27')]-0x1],_0x53c11c=_0xb998('0x1f')==_0x1a48e3[_0xb998('0x23')]?'add':_0xb998('0xa');_0x49bd14&&'text'==_0x49bd14['type']&&(_0x49bd14[_0x53c11c]+='\x0a');}}}return this[_0xb998('0x7')](_0x4aa8c0);}['registerDescriptionCallback'](_0x3c5c89){this[_0xb998('0x25')]['push'](_0x3c5c89);}[_0xb998('0x9')](_0x3480c2,_0xa66cf1,_0x47544d=_0x425242['normal']){'function'==typeof _0x3480c2?_0x1cc2af(this[_0xb998('0x2a')],{'matchingCallback':_0x3480c2,'label':_0xa66cf1,'priority':_0x47544d}):this[_0xb998('0x2b')][_0xb998('0x26')](_0x3480c2,_0xa66cf1);}[_0xb998('0x36')](_0x36f62e,_0x29a86f=0x1){let _0x32a6f8;for(const _0x335223 of this[_0xb998('0x2a')])if(_0x335223[_0xb998('0x18')](_0x36f62e)){_0x32a6f8=_0x335223[_0xb998('0x10')];break;}return _0x32a6f8||(_0x32a6f8=this[_0xb998('0x2b')]['get'](_0x36f62e[_0xb998('0x1c')])),_0x32a6f8?_0x32a6f8(_0x29a86f):0x1!==_0x29a86f?_0x29a86f+'\x20'+_0x36f62e['name']+'s':''+_0x36f62e[_0xb998('0x1c')];}[_0xb998('0x1a')](_0x4072a0,_0x4ac3fe){const _0x3d3567=_0x4ac3fe[_0xb998('0x13')]()[_0xb998('0x20')](),_0x1ba207=_0xb998('0x1f')==_0x4ac3fe['type']?_0xb998('0x12'):_0xb998('0xa');for(const _0x56671d of _0x3d3567){const _0x589414=_0x56671d[_0xb998('0x28')],_0x4b8f24=_0x4072a0[_0x4072a0['length']-0x1];if(_0x589414['is'](_0xb998('0x22')))_0x4b8f24&&_0x4b8f24['type'][_0xb998('0x30')](_0xb998('0x2e'))>-0x1&&_0x4072a0[_0xb998('0x2f')](),_0x4b8f24&&'text'==_0x4b8f24['type']?_0x4b8f24[_0x1ba207]+=_0x589414['data']:_0x4072a0[_0xb998('0x11')]({'type':_0xb998('0x1e'),'add':'add'==_0x1ba207?_0x589414['data']:'','remove':'remove'==_0x1ba207?_0x589414[_0xb998('0x15')]:''});else{if(this[_0xb998('0xe')][_0xb998('0x16')](_0x589414)){const _0xb4cfb3=_0x589414;if(_0x4b8f24&&_0x4b8f24[_0xb998('0x23')][_0xb998('0x30')](_0xb998('0x2e'))>-0x1&&_0x4072a0[_0xb998('0x2f')](),_0xb998('0x31')==_0x56671d['type'])continue;_0x4b8f24&&_0x4b8f24['type']==_0x1ba207+_0xb998('0xf')&&_0x4b8f24[_0xb998('0x24')]['name']==_0xb4cfb3[_0xb998('0x1c')]?_0x4b8f24['quantity']++:_0x4072a0[_0xb998('0x11')]({'type':_0x1ba207+_0xb998('0xf'),'element':_0xb4cfb3,'quantity':0x1}),_0x3d3567['skip'](_0x343128=>!(_0xb998('0x31')==_0x343128['type']&&_0x343128[_0xb998('0x28')]==_0x589414));}else{if(this[_0xb998('0xe')]['checkChild'](_0x589414,_0xb998('0x2c'))||_0x589414['is'](_0xb998('0x24'),_0xb998('0x2d'))){const _0x59270c=_0x589414;if('add'==_0x1ba207&&'elementStart'==_0x56671d[_0xb998('0x23')]||_0xb998('0xa')==_0x1ba207&&_0xb998('0x31')==_0x56671d[_0xb998('0x23')])continue;if(_0x4b8f24&&-0x1==_0x4b8f24['type'][_0xb998('0x30')](_0xb998('0x2e'))){_0xb998('0x1e')==_0x4b8f24[_0xb998('0x23')]&&(_0x4b8f24[_0x1ba207]+='\x0a');continue;}let _0xf59867;if(_0xf59867=_0xb998('0x12')==_0x1ba207?_0x59270c[_0xb998('0x1')]&&!this[_0xb998('0xe')]['isObject'](_0x59270c[_0xb998('0x1')])?_0x59270c['nextSibling']:null:_0x59270c['previousSibling']&&!this[_0xb998('0xe')][_0xb998('0x16')](_0x59270c[_0xb998('0x8')])?_0x59270c[_0xb998('0x8')]:null,_0x59270c[_0xb998('0x3')]||_0xf59867&&_0xf59867[_0xb998('0x3')]){const _0x55d639=_0xf59867&&_0xf59867[_0xb998('0x3')]?_0xf59867:_0x59270c;_0x4b8f24&&_0x4b8f24[_0xb998('0x23')]==_0x1ba207+'EmptyContainer'&&_0x4b8f24['element'][_0xb998('0x1c')]==_0x55d639['name']?_0x4b8f24[_0xb998('0x35')]++:_0x4072a0[_0xb998('0x11')]({'type':_0x1ba207+_0xb998('0x32'),'element':_0x55d639,'quantity':0x1});}else _0x4072a0[_0xb998('0x11')]({'type':_0x1ba207+'Container','element':_0x59270c});}}}}}[_0xb998('0x7')](_0x27c030){const _0xbb7075=this[_0xb998('0x2')],_0x4dafc8=[];for(const _0x5dfcf2 of _0x27c030){switch(_0x5dfcf2['type']){case'text':if(_0x5dfcf2['add']=_0x5dfcf2[_0xb998('0x12')]['replace'](/(\S)\u000A+(\S)/g,_0xb998('0x1b'))[_0xb998('0xb')](/\u000A/g,''),_0x5dfcf2[_0xb998('0xa')]=_0x5dfcf2[_0xb998('0xa')]['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')[_0xb998('0xb')](/\u000A/g,''),''!=_0x5dfcf2[_0xb998('0x12')]&&''!=_0x5dfcf2[_0xb998('0xa')]){_0x4dafc8[_0xb998('0x11')]({'type':_0xb998('0xb'),'content':_0x17b8df(_0xbb7075,_0xb998('0x1d'),['\x22'+_0x5dfcf2[_0xb998('0xa')]+'\x22','\x22'+_0x5dfcf2[_0xb998('0x12')]+'\x22'])});continue;}if(null!=_0x5dfcf2['add']['match'](/^ +$/)){_0x4dafc8[_0xb998('0x11')]({'type':_0xb998('0x1f'),'content':_0x17b8df(_0xbb7075,_0xb998('0x29'),_0x17b8df(_0xbb7075,'ELEMENT_SPACE',_0x5dfcf2[_0xb998('0x12')][_0xb998('0x27')]))});continue;}if(null!=_0x5dfcf2['remove'][_0xb998('0x33')](/^ +$/)){_0x4dafc8[_0xb998('0x11')]({'type':'deletion','content':_0x17b8df(_0xbb7075,_0xb998('0x6'),_0x17b8df(_0xbb7075,'ELEMENT_SPACE',_0x5dfcf2[_0xb998('0xa')][_0xb998('0x27')]))});continue;}if(''!=_0x5dfcf2[_0xb998('0x12')]){_0x4dafc8['push']({'type':_0xb998('0x1f'),'content':_0x17b8df(_0xbb7075,_0xb998('0x29'),'\x22'+_0x5dfcf2[_0xb998('0x12')]+'\x22')});continue;}_0x4dafc8[_0xb998('0x11')]({'type':_0xb998('0x5'),'content':_0x17b8df(_0xbb7075,_0xb998('0x6'),'\x22'+_0x5dfcf2['remove']+'\x22')});continue;case'addEmptyContainer':case _0xb998('0xc'):_0x4dafc8[_0xb998('0x11')]({'type':'insertion','content':_0x17b8df(_0xbb7075,_0xb998('0x29'),this[_0xb998('0x36')](_0x5dfcf2['element'],_0x5dfcf2['quantity']))});continue;case _0xb998('0x34'):case'removeObject':_0x4dafc8[_0xb998('0x11')]({'type':_0xb998('0x5'),'content':_0x17b8df(_0xbb7075,_0xb998('0x6'),this[_0xb998('0x36')](_0x5dfcf2[_0xb998('0x24')],_0x5dfcf2[_0xb998('0x35')]))});continue;case _0xb998('0x19'):_0x4dafc8[_0xb998('0x11')]({'type':'insertion','content':_0x17b8df(_0xbb7075,_0xb998('0x0'),this[_0xb998('0x36')](_0x5dfcf2[_0xb998('0x24')],_0x5dfcf2[_0xb998('0x35')]))});continue;case _0xb998('0x4'):_0x4dafc8['push']({'type':_0xb998('0x5'),'content':_0x17b8df(_0xbb7075,_0xb998('0x14'),this[_0xb998('0x36')](_0x5dfcf2['element'],_0x5dfcf2[_0xb998('0x35')]))});continue;}_0x4dafc8[_0xb998('0x11')](_0x5dfcf2);}return _0x4dafc8;}}
@@ -2,7 +2,9 @@
2
2
  * @module track-changes/trackchanges
3
3
  * @publicApi
4
4
  */
5
- import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
5
+ import { Plugin } from 'ckeditor5/src/core';
6
+ import TrackChangesUI from './trackchangesui';
7
+ import TrackChangesEditing from './trackchangesediting';
6
8
  import 'ckeditor5-collaboration/src/collaboration-core';
7
9
  import type { default as Suggestion, SuggestionJSON } from './suggestion';
8
10
  import type SuggestionThreadView from './ui/view/suggestionthreadview';
@@ -64,12 +66,10 @@ import type SuggestionThreadView from './ui/view/suggestionthreadview';
64
66
  * // Insert some text. It will be automatically inserted as a suggestion:
65
67
  * editor.execute( 'input', { text: 'foo' } );
66
68
  * ```
67
- *
68
- * @extends module:core/plugin~Plugin
69
69
  */
70
70
  export default class TrackChanges extends Plugin {
71
- static get requires(): PluginDependencies;
72
- static get pluginName(): 'TrackChanges';
71
+ static get requires(): readonly [typeof TrackChangesEditing, typeof TrackChangesUI, "Comments"];
72
+ static get pluginName(): "TrackChanges";
73
73
  /**
74
74
  * An adapter object that should communicate with the data source to fetch or save the suggestion data.
75
75
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x309b=['TrackChanges','requires','editor','addSuggestion','getSuggestions','get','adapter','plugins'];(function(_0x10686c,_0x309b43){var _0x53b56c=function(_0x58d967){while(--_0x58d967){_0x10686c['push'](_0x10686c['shift']());}};_0x53b56c(++_0x309b43);}(_0x309b,0xa8));var _0x53b5=function(_0x10686c,_0x309b43){_0x10686c=_0x10686c-0x0;var _0x53b56c=_0x309b[_0x10686c];return _0x53b56c;};import{Plugin as _0x543014}from'ckeditor5/src/core';import _0x2cd66f from'./trackchangesui';import _0x55c180 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x543014{static get[_0x53b5('0x1')](){return[_0x55c180,_0x2cd66f,'Comments'];}static get['pluginName'](){return _0x53b5('0x0');}set[_0x53b5('0x6')](_0x9c4073){this['editor'][_0x53b5('0x7')]['get'](_0x55c180)[_0x53b5('0x6')]=_0x9c4073;}get['adapter'](){return this[_0x53b5('0x2')][_0x53b5('0x7')][_0x53b5('0x5')](_0x55c180)[_0x53b5('0x6')];}[_0x53b5('0x3')](_0x5202d6){return this[_0x53b5('0x2')][_0x53b5('0x7')][_0x53b5('0x5')](_0x55c180)['addSuggestionData'](_0x5202d6);}[_0x53b5('0x4')]({skipNotAttached:_0x13cc0b=!0x1,toJSON:_0x2eddb5=!0x1}={}){return this[_0x53b5('0x2')][_0x53b5('0x7')]['get'](_0x55c180)[_0x53b5('0x4')]({'skipNotAttached':_0x13cc0b,'toJSON':_0x2eddb5});}['getSuggestion'](_0x315264){return this[_0x53b5('0x2')][_0x53b5('0x7')][_0x53b5('0x5')](_0x55c180)['getSuggestion'](_0x315264);}}
23
+ var _0x32a5=['pluginName','getSuggestion','plugins','requires','addSuggestion','getSuggestions','get','TrackChanges','adapter','editor'];(function(_0x2afac3,_0x32a5fd){var _0x43b55a=function(_0x2dddf9){while(--_0x2dddf9){_0x2afac3['push'](_0x2afac3['shift']());}};_0x43b55a(++_0x32a5fd);}(_0x32a5,0x118));var _0x43b5=function(_0x2afac3,_0x32a5fd){_0x2afac3=_0x2afac3-0x0;var _0x43b55a=_0x32a5[_0x2afac3];return _0x43b55a;};import{Plugin as _0x4af75f}from'ckeditor5/src/core';import _0x346dc1 from'./trackchangesui';import _0x2d2f09 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x4af75f{static get[_0x43b5('0x3')](){return[_0x2d2f09,_0x346dc1,'Comments'];}static get[_0x43b5('0x0')](){return _0x43b5('0x7');}set[_0x43b5('0x8')](_0x5d3bcd){this[_0x43b5('0x9')][_0x43b5('0x2')]['get'](_0x2d2f09)[_0x43b5('0x8')]=_0x5d3bcd;}get[_0x43b5('0x8')](){return this[_0x43b5('0x9')][_0x43b5('0x2')][_0x43b5('0x6')](_0x2d2f09)[_0x43b5('0x8')];}[_0x43b5('0x4')](_0x1dee39){return this[_0x43b5('0x9')][_0x43b5('0x2')][_0x43b5('0x6')](_0x2d2f09)['addSuggestionData'](_0x1dee39);}[_0x43b5('0x5')]({skipNotAttached:_0x10744d=!0x1,toJSON:_0x5c8295=!0x1}={}){return this[_0x43b5('0x9')][_0x43b5('0x2')][_0x43b5('0x6')](_0x2d2f09)[_0x43b5('0x5')]({'skipNotAttached':_0x10744d,'toJSON':_0x5c8295});}[_0x43b5('0x1')](_0xa5c54f){return this[_0x43b5('0x9')][_0x43b5('0x2')][_0x43b5('0x6')](_0x2d2f09)[_0x43b5('0x1')](_0xa5c54f);}}
@@ -2,21 +2,20 @@
2
2
  * @module track-changes/trackchangesdata
3
3
  * @publicApi
4
4
  */
5
- import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
5
+ import { Plugin } from 'ckeditor5/src/core';
6
+ import TrackChangesEditing from './trackchangesediting';
6
7
  /**
7
8
  * This plugin returns the editor data with accepted or discarded suggestions without modifying the editor content.
8
- *
9
- * @extends module:core/plugin~Plugin
10
9
  */
11
10
  export default class TrackChangesData extends Plugin {
12
11
  /**
13
12
  * @inheritDoc
14
13
  */
15
- static get requires(): PluginDependencies;
14
+ static get requires(): readonly [typeof TrackChangesEditing];
16
15
  /**
17
16
  * @inheritDoc
18
17
  */
19
- static get pluginName(): 'TrackChangesData';
18
+ static get pluginName(): "TrackChangesData";
20
19
  /**
21
20
  * @inheritDoc
22
21
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1d74=['set','push','acceptAllSuggestions','extraPlugins','pluginName','getDataWithDiscardedSuggestions','map','constructor','RevisionTracker','addSuggestionData','concat','config','trackChangesData.editorCreator','filter','TrackChangesDataGetter','document','names','track-changes-data-invalid-editor-creator','Pagination','execute','editorCreator','string','Autosave','trackChangesData','appendChild','requires','WordCount','plugins','get','DocumentOutline','every','Users','context','create','includes','result','function','getDataWithAcceptedSuggestions','useAnonymousUser','name','getUser','init','toolbar','TrackChangesEditing','createDocumentFragment','model','data','createElement','find','WebSocketGateway','has','editor','CommentsRepository','initialData'];(function(_0x1a71dc,_0x1d742d){const _0x1ab758=function(_0xedbffd){while(--_0xedbffd){_0x1a71dc['push'](_0x1a71dc['shift']());}};_0x1ab758(++_0x1d742d);}(_0x1d74,0xd3));const _0x1ab7=function(_0x1a71dc,_0x1d742d){_0x1a71dc=_0x1a71dc-0x0;let _0x1ab758=_0x1d74[_0x1a71dc];return _0x1ab758;};import{Plugin as _0x1a3247}from'ckeditor5/src/core';import{CKEditorError as _0x5a81ba}from'ckeditor5/src/utils';import _0xae87f9 from'./trackchangesediting';const C=[_0x1ab7('0x4'),_0x1ab7('0x25'),_0x1ab7('0x2f')],w=[_0x1ab7('0x0'),_0x1ab7('0xd'),_0x1ab7('0x1b'),_0x1ab7('0x1f'),_0x1ab7('0x17'),_0x1ab7('0x22')];export default class T extends _0x1a3247{static get['requires'](){return[_0xae87f9];}static get[_0x1ab7('0x9')](){return'TrackChangesData';}[_0x1ab7('0x2e')](){const _0x2fc7e5=this[_0x1ab7('0x2')];if(_0x2fc7e5[_0x1ab7('0x10')]['define'](_0x1ab7('0x11'),_0x368af5=>_0x2fc7e5[_0x1ab7('0xc')][_0x1ab7('0x26')]('',_0x368af5)),_0x1ab7('0x29')!=typeof _0x2fc7e5['config'][_0x1ab7('0x21')](_0x1ab7('0x1c'))[_0x1ab7('0x19')])throw new _0x5a81ba(_0x1ab7('0x16'));}[_0x1ab7('0x2a')](_0x153c9f){return P(this[_0x1ab7('0x2')],!0x0,_0x153c9f);}[_0x1ab7('0xa')](_0x46a984){return P(this[_0x1ab7('0x2')],!0x1,_0x46a984);}}class D extends _0x1a3247{static get[_0x1ab7('0x9')](){return _0x1ab7('0x13');}constructor(_0x478b68){super(_0x478b68),this[_0x1ab7('0x28')]='end';}[_0x1ab7('0x2e')](){this[_0x1ab7('0x2')]['plugins']['get'](_0x1ab7('0x3'))['adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this[_0x1ab7('0x2')][_0x1ab7('0x20')][_0x1ab7('0x21')](_0x1ab7('0x30'))['_adapter']=null;}}async function P(_0x15eda4,_0x798317,_0xfaa7bd){const _0x32a24e=function(_0x2d0680){const _0x56a384={};for(const _0x2e07a6 of _0x2d0680['config'][_0x1ab7('0x15')]())C[_0x1ab7('0x27')](_0x2e07a6)||(_0x56a384[_0x2e07a6]=_0x2d0680['config']['get'](_0x2e07a6));const _0x21e60d=_0x2d0680['constructor']['builtinPlugins']||[],_0xdf1103=_0x56a384['extraPlugins']||[];delete _0x56a384[_0x1ab7('0x8')];const _0x4dd4fe=_0x21e60d[_0x1ab7('0xf')](_0x56a384[_0x1ab7('0x20')])[_0x1ab7('0xf')](_0xdf1103)['map'](_0x33e3a8=>_0x1ab7('0x1a')==typeof _0x33e3a8?_0x21e60d[_0x1ab7('0x35')](_0x33c71d=>_0x33c71d['pluginName']==_0x33e3a8):_0x33e3a8),_0x8bd31a=Array['from'](new Set(_0x4dd4fe)),_0x288b6e=new Map();return _0x56a384['plugins']=_0x8bd31a[_0x1ab7('0x12')](_0xa99e9e=>v(_0xa99e9e,_0x288b6e)),_0x56a384[_0x1ab7('0x20')][_0x1ab7('0x6')](D),_0x56a384[_0x1ab7('0x20')][_0x1ab7('0x6')](_0xae87f9),_0x56a384;}(_0x15eda4),_0x5f38bf=document[_0x1ab7('0x31')](),_0x11e958=_0x15eda4[_0x1ab7('0x10')][_0x1ab7('0x21')](_0x1ab7('0x1c'))['editorCreator'],_0x3f7a47=await _0x11e958(_0x32a24e,()=>function(_0x25b25c){const _0x1947ed=document[_0x1ab7('0x34')]('div');return _0x25b25c[_0x1ab7('0x1d')](_0x1947ed),_0x1947ed;}(_0x5f38bf));!function(_0x524517,_0x31effc){const _0x48a93c=_0x524517[_0x1ab7('0x32')][_0x1ab7('0x14')]['getRootNames']()['reduce']((_0x38d22b,_0x29178b)=>(_0x38d22b[_0x29178b]=_0x524517['data']['get']({'rootName':_0x29178b}),_0x38d22b),{}),_0x46ea6b=_0x524517['plugins']['get'](_0x1ab7('0x24'))['users'][_0x1ab7('0xb')](_0x275a60=>({'id':_0x275a60['id'],'name':_0x275a60[_0x1ab7('0x2c')]})),_0x9905ec=_0x524517[_0x1ab7('0x20')][_0x1ab7('0x21')](_0x1ab7('0x30'))['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5e1b72=_0x31effc['plugins'][_0x1ab7('0x21')](_0x1ab7('0x24')),_0x3a8e80=_0x31effc[_0x1ab7('0x20')][_0x1ab7('0x21')]('TrackChangesEditing');for(const _0x2356f0 of _0x46ea6b)_0x5e1b72[_0x1ab7('0x2d')](_0x2356f0['id'])||_0x5e1b72['addUser'](_0x2356f0);_0x5e1b72['me']||_0x5e1b72[_0x1ab7('0x2b')]();for(const _0x2b3ed1 of _0x9905ec)_0x3a8e80[_0x1ab7('0xe')](_0x2b3ed1);_0x31effc[_0x1ab7('0x33')]['set'](_0x48a93c);}(_0x15eda4,_0x3f7a47),_0x3f7a47[_0x1ab7('0x18')](_0x798317?_0x1ab7('0x7'):'discardAllSuggestions');const _0x49ad63=_0x3f7a47[_0x1ab7('0x33')][_0x1ab7('0x21')](_0xfaa7bd);return await _0x3f7a47['destroy'](),_0x49ad63;}function v(_0x36f34b,_0x2bcb80){const _0x25a549=_0x1ab7('0x29')==typeof _0x36f34b?_0x36f34b[_0x1ab7('0x9')]||_0x36f34b[_0x1ab7('0x2c')]:_0x36f34b;if(_0x2bcb80[_0x1ab7('0x1')](_0x25a549))return _0x2bcb80[_0x1ab7('0x21')](_0x25a549);if(_0x2bcb80[_0x1ab7('0x5')](_0x25a549,!0x0),_0x25a549&&w[_0x1ab7('0x27')](_0x25a549))return _0x2bcb80['set'](_0x25a549,!0x1),!0x1;if(!_0x36f34b[_0x1ab7('0x1e')])return _0x2bcb80[_0x1ab7('0x5')](_0x25a549,!0x0),!0x0;const _0x173d41=_0x36f34b[_0x1ab7('0x1e')][_0x1ab7('0x23')](_0x3f5c74=>v(_0x3f5c74,_0x2bcb80));return _0x2bcb80[_0x1ab7('0x5')](_0x25a549,_0x173d41),_0x173d41;}
23
+ const _0x4034=['cloudServices','init','plugins','document','WordCount','editor','get','pluginName','tokenUrl','concat','push','requires','Users','config','builtinPlugins','useAnonymousUser','RevisionTracker','editorCreator','createDocumentFragment','function','appendChild','getUser','context','track-changes-data-invalid-editor-creator','define','getDataWithAcceptedSuggestions','from','toolbar','includes','WebSocketGateway','trackChangesData.editorCreator','extraPlugins','execute','set','TrackChangesEditing','getSuggestions','string','data','addUser','initialData','TrackChangesDataGetter','discardAllSuggestions','CommentsRepository','_context','getDataWithDiscardedSuggestions','has','DocumentOutline','acceptAllSuggestions','end','constructor','getRootNames','every','name','create','Pagination','addSuggestionData','_adapter','trackChangesData'];(function(_0x4b3b30,_0x403411){const _0x1dc129=function(_0x5a68ab){while(--_0x5a68ab){_0x4b3b30['push'](_0x4b3b30['shift']());}};_0x1dc129(++_0x403411);}(_0x4034,0x1a0));const _0x1dc1=function(_0x4b3b30,_0x403411){_0x4b3b30=_0x4b3b30-0x0;let _0x1dc129=_0x4034[_0x4b3b30];return _0x1dc129;};import{Plugin as _0x19c0a0}from'ckeditor5/src/core';import{CKEditorError as _0x22b2bf}from'ckeditor5/src/utils';import _0x182f91 from'./trackchangesediting';const C=[_0x1dc1('0x1d'),_0x1dc1('0xc'),_0x1dc1('0x11')],w=[_0x1dc1('0x13'),_0x1dc1('0x6'),'Autosave',_0x1dc1('0x34'),_0x1dc1('0x2c'),_0x1dc1('0x24')];export default class T extends _0x19c0a0{static get[_0x1dc1('0x1')](){return[_0x182f91];}static get[_0x1dc1('0x37')](){return'TrackChangesData';}[_0x1dc1('0x31')](){const _0x4c4a67=this[_0x1dc1('0x35')];if(_0x4c4a67['config'][_0x1dc1('0xe')](_0x1dc1('0x14'),_0x59c83b=>_0x4c4a67[_0x1dc1('0x27')][_0x1dc1('0x2b')]('',_0x59c83b)),'function'!=typeof _0x4c4a67['config'][_0x1dc1('0x36')](_0x1dc1('0x2f'))[_0x1dc1('0x7')])throw new _0x22b2bf(_0x1dc1('0xd'));}[_0x1dc1('0xf')](_0x22bb64){return P(this[_0x1dc1('0x35')],!0x0,_0x22bb64);}[_0x1dc1('0x22')](_0x46dfae){return P(this['editor'],!0x1,_0x46dfae);}}class D extends _0x19c0a0{static get['pluginName'](){return _0x1dc1('0x1e');}constructor(_0x4f70e0){super(_0x4f70e0),this['result']=_0x1dc1('0x26');}[_0x1dc1('0x31')](){this[_0x1dc1('0x35')][_0x1dc1('0x32')][_0x1dc1('0x36')](_0x1dc1('0x20'))[_0x1dc1('0x2e')]={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this[_0x1dc1('0x35')][_0x1dc1('0x32')][_0x1dc1('0x36')](_0x1dc1('0x18'))[_0x1dc1('0x2e')]=null;}}async function P(_0x336cb8,_0x3aa5ca,_0x1cdb41){const _0x54d06e=function(_0x43937a){const _0x3f30a7={};for(const _0xa669fd of _0x43937a['config']['names']())C[_0x1dc1('0x12')](_0xa669fd)||(_0x3f30a7[_0xa669fd]=_0x43937a[_0x1dc1('0x3')]['get'](_0xa669fd));_0x3f30a7[_0x1dc1('0x30')]&&_0x3f30a7[_0x1dc1('0x30')][_0x1dc1('0x38')]&&delete _0x3f30a7[_0x1dc1('0x30')][_0x1dc1('0x38')];const _0x57e7f9=_0x43937a[_0x1dc1('0x27')][_0x1dc1('0x4')]||[],_0x59d07b=_0x3f30a7[_0x1dc1('0x15')]||[];delete _0x3f30a7['extraPlugins'];const _0x40428e=_0x43937a[_0x1dc1('0x21')][_0x1dc1('0x3')][_0x1dc1('0x36')](_0x1dc1('0x32'))||[],_0x39e2a7=_0x57e7f9[_0x1dc1('0x39')](_0x3f30a7['plugins'])[_0x1dc1('0x39')](_0x59d07b)[_0x1dc1('0x39')](_0x40428e)['map'](_0x4530aa=>_0x1dc1('0x1a')==typeof _0x4530aa?_0x57e7f9['find'](_0x42f927=>_0x42f927['pluginName']==_0x4530aa):_0x4530aa),_0x32f51d=Array[_0x1dc1('0x10')](new Set(_0x39e2a7)),_0x49a920=new Map();return _0x3f30a7[_0x1dc1('0x32')]=_0x32f51d['filter'](_0x3a5c8a=>v(_0x3a5c8a,_0x49a920)),_0x3f30a7['plugins'][_0x1dc1('0x0')](_0x182f91),_0x3f30a7['plugins']['push'](D),_0x3f30a7;}(_0x336cb8),_0x5361e8=document[_0x1dc1('0x8')](),_0x5dd05f=_0x336cb8[_0x1dc1('0x3')][_0x1dc1('0x36')](_0x1dc1('0x2f'))['editorCreator'],_0x2fd87f=await _0x5dd05f(_0x54d06e,()=>function(_0x1d310b){const _0x33eda4=document['createElement']('div');return _0x1d310b[_0x1dc1('0xa')](_0x33eda4),_0x33eda4;}(_0x5361e8));!function(_0x58fc44,_0x3a7200){const _0x405c6d=_0x58fc44['model'][_0x1dc1('0x33')][_0x1dc1('0x28')]()['reduce']((_0x14698a,_0xaad6b2)=>(_0x14698a[_0xaad6b2]=_0x58fc44[_0x1dc1('0x1b')][_0x1dc1('0x36')]({'rootName':_0xaad6b2}),_0x14698a),{}),_0x23627a=_0x58fc44[_0x1dc1('0x32')]['get']('Users')['users']['map'](_0x3c3843=>({'id':_0x3c3843['id'],'name':_0x3c3843[_0x1dc1('0x2a')]})),_0x1e450e=_0x58fc44[_0x1dc1('0x32')]['get'](_0x1dc1('0x18'))[_0x1dc1('0x19')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x50ab14=_0x3a7200['plugins'][_0x1dc1('0x36')](_0x1dc1('0x2')),_0x3ec38d=_0x3a7200['plugins'][_0x1dc1('0x36')]('TrackChangesEditing');for(const _0x1f375d of _0x23627a)_0x50ab14[_0x1dc1('0xb')](_0x1f375d['id'])||_0x50ab14[_0x1dc1('0x1c')](_0x1f375d);_0x50ab14['me']||_0x50ab14[_0x1dc1('0x5')]();for(const _0xc7f2f2 of _0x1e450e)_0x3ec38d[_0x1dc1('0x2d')](_0xc7f2f2);_0x3a7200[_0x1dc1('0x1b')][_0x1dc1('0x17')](_0x405c6d);}(_0x336cb8,_0x2fd87f),_0x2fd87f[_0x1dc1('0x16')](_0x3aa5ca?_0x1dc1('0x25'):_0x1dc1('0x1f'));const _0x136f62=_0x2fd87f[_0x1dc1('0x1b')][_0x1dc1('0x36')](_0x1cdb41);return await _0x2fd87f['destroy'](),_0x136f62;}function v(_0x1dd59b,_0x31c47a){const _0x48a9d6=_0x1dc1('0x9')==typeof _0x1dd59b?_0x1dd59b[_0x1dc1('0x37')]||_0x1dd59b[_0x1dc1('0x2a')]:_0x1dd59b;if(_0x31c47a[_0x1dc1('0x23')](_0x48a9d6))return _0x31c47a[_0x1dc1('0x36')](_0x48a9d6);if(_0x31c47a[_0x1dc1('0x17')](_0x48a9d6,!0x0),_0x48a9d6&&w[_0x1dc1('0x12')](_0x48a9d6))return _0x31c47a[_0x1dc1('0x17')](_0x48a9d6,!0x1),!0x1;if(!_0x1dd59b[_0x1dc1('0x1')])return _0x31c47a[_0x1dc1('0x17')](_0x48a9d6,!0x0),!0x0;const _0x4c825e=_0x1dd59b[_0x1dc1('0x1')][_0x1dc1('0x29')](_0x508bed=>v(_0x508bed,_0x31c47a));return _0x31c47a[_0x1dc1('0x17')](_0x48a9d6,_0x4c825e),_0x4c825e;}
@@ -2,15 +2,59 @@
2
2
  * @module track-changes/trackchangesediting
3
3
  * @publicApi
4
4
  */
5
- import { Plugin, type PluginDependencies, type Editor } from 'ckeditor5/src/core';
5
+ import { Plugin, PendingActions, type Editor } from 'ckeditor5/src/core';
6
6
  import { type Element, type Range } from 'ckeditor5/src/engine';
7
+ import { Users } from 'ckeditor5-collaboration/src/collaboration-core';
7
8
  import TrackChangesCommand from './commands/trackchangescommand';
8
9
  import Suggestion, { type SuggestionJSON } from './suggestion';
10
+ import TrackChangesAlignment from './integrations/alignment';
11
+ import TrackChangesBasicStyles from './integrations/basicstyles';
12
+ import TrackChangesBlockQuote from './integrations/blockquote';
13
+ import TrackChangesCKBox from './integrations/ckbox';
14
+ import TrackChangesCodeBlock from './integrations/codeblock';
15
+ import TrackChangesComments from './integrations/comments';
16
+ import TrackChangesDeleteCommand from './integrations/deletecommand';
17
+ import TrackChangesDocumentList from './integrations/documentlist';
18
+ import TrackChangesEnterCommand from './integrations/entercommand';
19
+ import TrackChangesFindAndReplace from './integrations/findandreplace';
20
+ import TrackChangesFont from './integrations/font';
21
+ import TrackChangesFormatPainter from './integrations/formatpainter';
22
+ import TrackChangesHeading from './integrations/heading';
23
+ import TrackChangesHighlight from './integrations/highlight';
24
+ import TrackChangesHorizontalLine from './integrations/horizontalline';
25
+ import TrackChangesHtmlEmbed from './integrations/htmlembed';
26
+ import TrackChangesImage from './integrations/image';
27
+ import TrackChangesImageReplace from './integrations/imagereplace';
28
+ import TrackChangesImportWord from './integrations/importword';
29
+ import TrackChangesIndent from './integrations/indent';
30
+ import TrackChangesInputCommand from './integrations/inputcommand';
31
+ import TrackChangesLink from './integrations/link';
32
+ import TrackChangesList from './integrations/list';
33
+ import TrackChangesListProperties from './integrations/listproperties';
34
+ import TrackChangesMediaEmbed from './integrations/mediaembed';
35
+ import TrackChangesMention from './integrations/mention';
36
+ import TrackChangesPageBreak from './integrations/pagebreak';
37
+ import TrackChangesParagraph from './integrations/paragraph';
38
+ import TrackChangesRemoveFormat from './integrations/removeformat';
39
+ import TrackChangesRestrictedEditingMode from './integrations/restrictededitingmode';
40
+ import TrackChangesShiftEnterCommand from './integrations/shiftentercommand';
41
+ import TrackChangesStandardEditingMode from './integrations/standardeditingmode';
42
+ import TrackChangesStylesDropdown from './integrations/style';
43
+ import TrackChangesTable from './integrations/table';
44
+ import TrackChangesTableMergeSplit from './integrations/tablemergesplit';
45
+ import TrackChangesTableHeadings from './integrations/tableheadings';
46
+ import TrackChangesTableClipboard from './integrations/tableclipboard';
47
+ import TrackChangesTableColumnResize from './integrations/tablecolumnresize';
48
+ import TrackChangesTemplate from './integrations/template';
49
+ import TrackChangesTableOfContents from './integrations/tableofcontents';
50
+ import TrackChangesTitle from './integrations/title';
51
+ import TrackChangesUndo from './integrations/undo';
52
+ import TrackChangesTableCaption from './integrations/tablecaption';
53
+ import TrackChangesDocumentListProperties from './integrations/documentlistproperties';
54
+ import TrackChangesTableProperties from './integrations/tableproperties';
9
55
  import type { SuggestionData, TrackChangesAdapter } from './trackchanges';
10
56
  /**
11
57
  * Provides editing part of the {@link module:track-changes/trackchanges~TrackChanges track changes plugin}.
12
- *
13
- * @extends module:core/plugin~Plugin
14
58
  */
15
59
  export default class TrackChangesEditing extends Plugin {
16
60
  /**
@@ -23,8 +67,8 @@ export default class TrackChangesEditing extends Plugin {
23
67
  * Reference to command that turns the track changes mode on and off.
24
68
  */
25
69
  trackChangesCommand: TrackChangesCommand;
26
- static get requires(): PluginDependencies;
27
- static get pluginName(): 'TrackChangesEditing';
70
+ static get requires(): readonly ["CommentsRepository", typeof Users, typeof PendingActions, typeof TrackChangesAlignment, typeof TrackChangesBasicStyles, typeof TrackChangesBlockQuote, typeof TrackChangesCKBox, typeof TrackChangesCodeBlock, typeof TrackChangesComments, typeof TrackChangesDeleteCommand, typeof TrackChangesDocumentList, typeof TrackChangesDocumentListProperties, typeof TrackChangesEnterCommand, typeof TrackChangesFindAndReplace, typeof TrackChangesFont, typeof TrackChangesFormatPainter, typeof TrackChangesHeading, typeof TrackChangesHighlight, typeof TrackChangesHorizontalLine, typeof TrackChangesHtmlEmbed, typeof TrackChangesImage, typeof TrackChangesImageReplace, typeof TrackChangesImportWord, typeof TrackChangesIndent, typeof TrackChangesInputCommand, typeof TrackChangesLink, typeof TrackChangesList, typeof TrackChangesListProperties, typeof TrackChangesMediaEmbed, typeof TrackChangesMention, typeof TrackChangesPageBreak, typeof TrackChangesParagraph, typeof TrackChangesRemoveFormat, typeof TrackChangesRestrictedEditingMode, typeof TrackChangesShiftEnterCommand, typeof TrackChangesStandardEditingMode, typeof TrackChangesStylesDropdown, typeof TrackChangesTable, typeof TrackChangesTableMergeSplit, typeof TrackChangesTableHeadings, typeof TrackChangesTableCaption, typeof TrackChangesTableClipboard, typeof TrackChangesTableColumnResize, typeof TrackChangesTableOfContents, typeof TrackChangesTableProperties, typeof TrackChangesTemplate, typeof TrackChangesTitle, typeof TrackChangesUndo];
71
+ static get pluginName(): "TrackChangesEditing";
28
72
  /**
29
73
  * @inheritDoc
30
74
  */