@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230829.0 → 0.0.0-nightly-20230830.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 (65) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +3 -3
  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.js +1 -1
  15. package/src/integrations/documentlist.js +1 -1
  16. package/src/integrations/documentlistproperties.js +1 -1
  17. package/src/integrations/entercommand.js +1 -1
  18. package/src/integrations/findandreplace.js +1 -1
  19. package/src/integrations/font.js +1 -1
  20. package/src/integrations/formatpainter.js +1 -1
  21. package/src/integrations/heading.js +1 -1
  22. package/src/integrations/highlight.js +1 -1
  23. package/src/integrations/horizontalline.js +1 -1
  24. package/src/integrations/htmlembed.js +1 -1
  25. package/src/integrations/image.js +1 -1
  26. package/src/integrations/imagereplace.js +1 -1
  27. package/src/integrations/importword.js +1 -1
  28. package/src/integrations/indent.js +1 -1
  29. package/src/integrations/inputcommand.js +1 -1
  30. package/src/integrations/link.js +1 -1
  31. package/src/integrations/list.js +1 -1
  32. package/src/integrations/listproperties.js +1 -1
  33. package/src/integrations/mediaembed.js +1 -1
  34. package/src/integrations/mention.js +1 -1
  35. package/src/integrations/pagebreak.js +1 -1
  36. package/src/integrations/paragraph.js +1 -1
  37. package/src/integrations/removeformat.js +1 -1
  38. package/src/integrations/restrictededitingmode.js +1 -1
  39. package/src/integrations/shiftentercommand.js +1 -1
  40. package/src/integrations/standardeditingmode.js +1 -1
  41. package/src/integrations/style.js +1 -1
  42. package/src/integrations/table.js +1 -1
  43. package/src/integrations/tablecaption.js +1 -1
  44. package/src/integrations/tableclipboard.js +1 -1
  45. package/src/integrations/tablecolumnresize.js +1 -1
  46. package/src/integrations/tableheadings.js +1 -1
  47. package/src/integrations/tablemergesplit.js +1 -1
  48. package/src/integrations/tableofcontents.js +1 -1
  49. package/src/integrations/tableproperties.js +1 -1
  50. package/src/integrations/template.js +1 -1
  51. package/src/integrations/title.js +1 -1
  52. package/src/integrations/undo.js +1 -1
  53. package/src/integrations/utils.js +1 -1
  54. package/src/suggestion.js +1 -1
  55. package/src/suggestiondescriptionfactory.js +1 -1
  56. package/src/trackchanges.js +1 -1
  57. package/src/trackchangesdata.js +1 -1
  58. package/src/trackchangesediting.d.ts +29 -1
  59. package/src/trackchangesediting.js +1 -1
  60. package/src/trackchangesui.js +1 -1
  61. package/src/ui/suggestioncontroller.js +1 -1
  62. package/src/ui/view/basesuggestionthreadview.js +1 -1
  63. package/src/ui/view/suggestionthreadview.js +1 -1
  64. package/src/utils/common-translations.js +1 -1
  65. package/src/utils/utils.js +1 -1
package/src/suggestion.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x32c7=['clear','createdAt','_onAccept','discard','getAllAdjacentSuggestions','isIntersectingWithRange','delete','addMarkerName','head','creator','toJSON','removeMarkers','onDiscard','getFirstRange','removeMarker','add','getFirstMarker','getRanges','isInContent','nodeAfter','previous','get','getItems','markers','_markerNames','end','onAccept','getContainedElement','attributes','_onAttributesChange','_onDiscard','filter','data','getMarkers','type','substr','set','getMarkerNames','nodeBefore','_saved','accept','change','length','getRange','isMultiRange','suggestion:','map','hasComments','setAttribute','commentThread','subType','@external','size','onAttributesChange','_model','author','reduce'];(function(_0x2a5f48,_0x32c795){const _0xfa85ea=function(_0x1011c7){while(--_0x1011c7){_0x2a5f48['push'](_0x2a5f48['shift']());}};_0xfa85ea(++_0x32c795);}(_0x32c7,0x116));const _0xfa85=function(_0x2a5f48,_0x32c795){_0x2a5f48=_0x2a5f48-0x0;let _0xfa85ea=_0x32c7[_0x2a5f48];return _0xfa85ea;};import{Element as _0x6db1c2}from'ckeditor5/src/engine';import{ObservableMixin as _0x47d7f3,uid as _0x3d02ca}from'ckeditor5/src/utils';import{cloneDeep as _0x36e126,isEqual as _0xc3a162,set as _0x465da5,unset as _0x2757a3}from'lodash-es';export default class u extends _0x47d7f3(){constructor(_0x4d4a4c,_0x22d28a){super(),this['id']=_0x22d28a['id'],this['type']=_0x22d28a[_0xfa85('0x29')],this[_0xfa85('0x0')]=_0x22d28a['subType']||null,this['author']=_0x22d28a[_0xfa85('0x5')],this[_0xfa85('0x10')]=_0x22d28a[_0xfa85('0x10')]||_0x22d28a[_0xfa85('0x5')],this['isExternal']=Boolean(_0x22d28a['attributes']&&_0x22d28a[_0xfa85('0x23')][_0xfa85('0x1')]),this[_0xfa85('0x27')]=null,this['_model']=_0x4d4a4c,this[_0xfa85('0x9')]=_0x22d28a[_0xfa85('0x21')],this[_0xfa85('0x25')]=_0x22d28a[_0xfa85('0x13')],this['_onAttributesChange']=_0x22d28a[_0xfa85('0x3')],this[_0xfa85('0x1f')]=new Set(),this[_0xfa85('0x8')]=null,this['set']('authoredAt',null),this['set'](_0xfa85('0x23'),_0x22d28a[_0xfa85('0x23')]||{}),this[_0xfa85('0x2b')](_0xfa85('0x1b'),null),this[_0xfa85('0x2b')]('next',null),this[_0xfa85('0x2b')](_0xfa85('0x38'),null),this[_0xfa85('0x2b')](_0xfa85('0x2e'),!0x1),this['decorate'](_0xfa85('0x2f')),this['decorate'](_0xfa85('0xa'));}get[_0xfa85('0xf')](){let _0x34ef15=this;for(;_0x34ef15[_0xfa85('0x1b')];)_0x34ef15=_0x34ef15[_0xfa85('0x1b')];return _0x34ef15;}get['hasComments'](){return!!this['commentThread']&&this[_0xfa85('0x38')][_0xfa85('0x31')]>0x0;}get[_0xfa85('0x33')](){if(0x0==this[_0xfa85('0x1f')][_0xfa85('0x2')])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')[_0xfa85('0x31')];}get[_0xfa85('0x19')](){return null!==this[_0xfa85('0x17')]();}[_0xfa85('0xe')](_0x11cde7){this[_0xfa85('0x1f')][_0xfa85('0x16')](_0x11cde7);}[_0xfa85('0x2c')](){return Array['from'](this[_0xfa85('0x1f')]);}['getMarkers'](){return this[_0xfa85('0x2c')]()[_0xfa85('0x35')](_0x3c9c51=>this[_0xfa85('0x4')][_0xfa85('0x1e')][_0xfa85('0x1c')](_0x3c9c51))[_0xfa85('0x26')](_0xdf1487=>_0xdf1487);}[_0xfa85('0x17')](){return this[_0xfa85('0x28')]()[0x0]||null;}[_0xfa85('0x12')](){this[_0xfa85('0x4')]['change'](_0x3d88d4=>{for(const _0xc4e8c5 of this[_0xfa85('0x28')]())_0x3d88d4[_0xfa85('0x15')](_0xc4e8c5);}),this[_0xfa85('0x1f')][_0xfa85('0x7')]();}[_0xfa85('0x15')](_0x5671b2){this[_0xfa85('0x4')][_0xfa85('0x30')](_0x50f5ca=>{_0x50f5ca[_0xfa85('0x15')](_0x5671b2);}),this[_0xfa85('0x1f')][_0xfa85('0xd')](_0x5671b2);}['addRange'](_0x435f85){const _0x38da3a=_0xfa85('0x34')+this[_0xfa85('0x29')]+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this[_0xfa85('0xe')](_0x38da3a),this[_0xfa85('0x4')]['change'](_0x3f47ad=>{_0x3f47ad['addMarker'](_0x38da3a,{'range':_0x435f85,'usingOperation':!0x0,'affectsData':!0x0});});}[_0xfa85('0xc')](_0x3f4d5c){for(const _0x1e363d of this['getRanges']())if(_0x1e363d['isIntersecting'](_0x3f4d5c))return!0x0;return!0x1;}[_0xfa85('0x18')](){return this[_0xfa85('0x28')]()['map'](_0x552540=>_0x552540['getRange']());}[_0xfa85('0x1d')](){return this[_0xfa85('0x18')]()[_0xfa85('0x6')]((_0x364e02,_0xff18bc)=>[..._0x364e02,..._0xff18bc['getItems']()],[]);}[_0xfa85('0x14')](){var _0x5d8e27;return(null===(_0x5d8e27=this['getFirstMarker']())||void 0x0===_0x5d8e27?void 0x0:_0x5d8e27[_0xfa85('0x32')]())||null;}[_0xfa85('0x22')](){const _0x21bbec=this['getRanges']();if(0x1!=_0x21bbec['length'])return null;const _0x255958=_0x21bbec[0x0],_0x28e485=_0x255958['start'][_0xfa85('0x1a')],_0x375f1b=_0x255958[_0xfa85('0x20')][_0xfa85('0x2d')];return _0x28e485 instanceof _0x6db1c2?_0x28e485!=_0x375f1b?null:_0x28e485:null;}[_0xfa85('0x2f')](){this[_0xfa85('0x9')](this['getRanges'](),this['data'],this[_0xfa85('0x23')]),this[_0xfa85('0x12')]();}[_0xfa85('0xa')](){this[_0xfa85('0x25')](this[_0xfa85('0x18')](),this['data'],this[_0xfa85('0x23')]),this['removeMarkers']();}[_0xfa85('0xb')](){const _0x114f54=[];let _0x2698ed=this[_0xfa85('0xf')];for(;_0x2698ed;)_0x114f54['push'](_0x2698ed),_0x2698ed=_0x2698ed['next'];return _0x114f54;}[_0xfa85('0x37')](_0x425ea4,_0x53a6aa){const _0x4b2cc1=_0x36e126(this[_0xfa85('0x23')]);_0x465da5(_0x4b2cc1,_0x425ea4,_0x53a6aa),_0xc3a162(_0x4b2cc1,this[_0xfa85('0x23')])||(this[_0xfa85('0x23')]=_0x4b2cc1,this[_0xfa85('0x24')](_0x4b2cc1));}['removeAttribute'](_0xdaa2bb){const _0x187a3d=_0x36e126(this[_0xfa85('0x23')]);_0x2757a3(_0x187a3d,_0xdaa2bb),_0xc3a162(_0x187a3d,this[_0xfa85('0x23')])||(this[_0xfa85('0x23')]=_0x187a3d,this['_onAttributesChange'](this[_0xfa85('0x23')]));}[_0xfa85('0x11')](){return{'id':this['id'],'type':this[_0xfa85('0x0')]?this[_0xfa85('0x29')]+':'+this[_0xfa85('0x0')]:this[_0xfa85('0x29')],'authorId':this['creator']['id'],'createdAt':this[_0xfa85('0x8')],'hasComments':this[_0xfa85('0x36')],'data':this[_0xfa85('0x27')],'attributes':this[_0xfa85('0x23')]};}static['getMultiRangeId'](){return _0x3d02ca()[_0xfa85('0x2a')](0x1,0x5);}}
23
+ const _0x4a75=['accept','getRanges','end','delete','next','set','markers','addMarkerName','onAttributesChange','getRange','map','@external','_onAttributesChange','isIntersecting','addMarker','addRange','_markerNames','getAllAdjacentSuggestions','attributes','_onDiscard','data','hasComments','removeMarker','onAccept','removeAttribute','start','add','isIntersectingWithRange','createdAt','filter','getFirstRange','authoredAt','getItems','setAttribute','push','getFirstMarker','creator','author','commentThread','isInContent','nodeBefore','getMarkers','length','from','previous','discard','toJSON','suggestion:','change','head','clear','nodeAfter','subType','isMultiRange','_onAccept','getContainedElement','getMarkerNames','split','size','_isDataLoaded','_model','_saved','substr','type','getMultiRangeId','removeMarkers'];(function(_0x33cdda,_0x4a754c){const _0x146e11=function(_0x2dba0e){while(--_0x2dba0e){_0x33cdda['push'](_0x33cdda['shift']());}};_0x146e11(++_0x4a754c);}(_0x4a75,0x13d));const _0x146e=function(_0x33cdda,_0x4a754c){_0x33cdda=_0x33cdda-0x0;let _0x146e11=_0x4a75[_0x33cdda];return _0x146e11;};import{Element as _0x3b0c7f}from'ckeditor5/src/engine';import{ObservableMixin as _0x3e01ad,uid as _0x1783d0}from'ckeditor5/src/utils';import{cloneDeep as _0x2d19b5,isEqual as _0x4cd50d,set as _0x367a99,unset as _0xf9133e}from'lodash-es';export default class u extends _0x3e01ad(){constructor(_0x36cbc4,_0x27993a){super(),this[_0x146e('0x6')]=!0x1,this['id']=_0x27993a['id'],this['type']=_0x27993a['type'],this[_0x146e('0x41')]=_0x27993a[_0x146e('0x41')]||null,this['author']=_0x27993a[_0x146e('0x32')],this[_0x146e('0x31')]=_0x27993a[_0x146e('0x31')]||_0x27993a[_0x146e('0x32')],this['isExternal']=Boolean(_0x27993a[_0x146e('0x1f')]&&_0x27993a[_0x146e('0x1f')][_0x146e('0x18')]),this[_0x146e('0x21')]=null,this[_0x146e('0x7')]=_0x36cbc4,this[_0x146e('0x1')]=_0x27993a[_0x146e('0x24')],this[_0x146e('0x20')]=_0x27993a['onDiscard'],this['_onAttributesChange']=_0x27993a[_0x146e('0x15')],this[_0x146e('0x1d')]=new Set(),this['createdAt']=null,this[_0x146e('0x12')](_0x146e('0x2c'),null),this['set'](_0x146e('0x1f'),_0x27993a['attributes']||{}),this[_0x146e('0x12')](_0x146e('0x39'),null),this[_0x146e('0x12')](_0x146e('0x11'),null),this['set']('commentThread',null),this[_0x146e('0x12')](_0x146e('0x8'),!0x1),this['decorate'](_0x146e('0xd')),this['decorate'](_0x146e('0x3a'));}get['head'](){let _0x1c102e=this;for(;_0x1c102e[_0x146e('0x39')];)_0x1c102e=_0x1c102e[_0x146e('0x39')];return _0x1c102e;}get[_0x146e('0x22')](){return!!this['commentThread']&&this[_0x146e('0x33')]['length']>0x0;}get[_0x146e('0x0')](){if(0x0==this[_0x146e('0x1d')][_0x146e('0x5')])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0][_0x146e('0x4')](':')[_0x146e('0x37')];}get[_0x146e('0x34')](){return null!==this[_0x146e('0x30')]();}['addMarkerName'](_0x5ac08d){this[_0x146e('0x1d')][_0x146e('0x27')](_0x5ac08d);}['getMarkerNames'](){return Array[_0x146e('0x38')](this[_0x146e('0x1d')]);}[_0x146e('0x36')](){return this[_0x146e('0x3')]()[_0x146e('0x17')](_0x4f8642=>this[_0x146e('0x7')][_0x146e('0x13')]['get'](_0x4f8642))[_0x146e('0x2a')](_0x29fe2c=>_0x29fe2c);}[_0x146e('0x30')](){return this[_0x146e('0x36')]()[0x0]||null;}[_0x146e('0xc')](){this[_0x146e('0x7')]['change'](_0x391d91=>{for(const _0xb5ec40 of this[_0x146e('0x36')]())_0x391d91['removeMarker'](_0xb5ec40);}),this[_0x146e('0x1d')][_0x146e('0x3f')]();}[_0x146e('0x23')](_0x3cbbd7){this['_model'][_0x146e('0x3d')](_0x4a2193=>{_0x4a2193[_0x146e('0x23')](_0x3cbbd7);}),this[_0x146e('0x1d')][_0x146e('0x10')](_0x3cbbd7);}[_0x146e('0x1c')](_0x3a8db4){const _0x684990=_0x146e('0x3c')+this[_0x146e('0xa')]+':'+this[_0x146e('0x41')]+':'+this['id']+':'+this[_0x146e('0x31')]['id']+':'+u[_0x146e('0xb')]();this[_0x146e('0x14')](_0x684990),this[_0x146e('0x7')][_0x146e('0x3d')](_0xfef311=>{_0xfef311[_0x146e('0x1b')](_0x684990,{'range':_0x3a8db4,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x146e('0x28')](_0x15b0f7){for(const _0x1cee8a of this[_0x146e('0xe')]())if(_0x1cee8a[_0x146e('0x1a')](_0x15b0f7))return!0x0;return!0x1;}[_0x146e('0xe')](){return this[_0x146e('0x36')]()[_0x146e('0x17')](_0x125fb3=>_0x125fb3[_0x146e('0x16')]());}[_0x146e('0x2d')](){return this[_0x146e('0xe')]()['reduce']((_0x5b71f5,_0x317bd4)=>[..._0x5b71f5,..._0x317bd4[_0x146e('0x2d')]()],[]);}[_0x146e('0x2b')](){var _0x35834a;return(null===(_0x35834a=this[_0x146e('0x30')]())||void 0x0===_0x35834a?void 0x0:_0x35834a[_0x146e('0x16')]())||null;}[_0x146e('0x2')](){const _0x19609f=this[_0x146e('0xe')]();if(0x1!=_0x19609f['length'])return null;const _0x3473ca=_0x19609f[0x0],_0xe6dd01=_0x3473ca[_0x146e('0x26')][_0x146e('0x40')],_0x4f56f1=_0x3473ca[_0x146e('0xf')][_0x146e('0x35')];return _0xe6dd01 instanceof _0x3b0c7f?_0xe6dd01!=_0x4f56f1?null:_0xe6dd01:null;}[_0x146e('0xd')](){this['_onAccept'](this[_0x146e('0xe')](),this[_0x146e('0x21')],this[_0x146e('0x1f')]),this[_0x146e('0xc')]();}[_0x146e('0x3a')](){this['_onDiscard'](this[_0x146e('0xe')](),this['data'],this['attributes']),this[_0x146e('0xc')]();}[_0x146e('0x1e')](){const _0x5d3083=[];let _0x280e7e=this[_0x146e('0x3e')];for(;_0x280e7e;)_0x5d3083[_0x146e('0x2f')](_0x280e7e),_0x280e7e=_0x280e7e[_0x146e('0x11')];return _0x5d3083;}[_0x146e('0x2e')](_0x5d4c07,_0x37fe80){const _0x40da1d=_0x2d19b5(this[_0x146e('0x1f')]);_0x367a99(_0x40da1d,_0x5d4c07,_0x37fe80),_0x4cd50d(_0x40da1d,this[_0x146e('0x1f')])||(this[_0x146e('0x1f')]=_0x40da1d,this['_onAttributesChange'](_0x40da1d));}[_0x146e('0x25')](_0x40ecdd){const _0xc357a2=_0x2d19b5(this['attributes']);_0xf9133e(_0xc357a2,_0x40ecdd),_0x4cd50d(_0xc357a2,this[_0x146e('0x1f')])||(this['attributes']=_0xc357a2,this[_0x146e('0x19')](this[_0x146e('0x1f')]));}[_0x146e('0x3b')](){return{'id':this['id'],'type':this[_0x146e('0x41')]?this[_0x146e('0xa')]+':'+this[_0x146e('0x41')]:this[_0x146e('0xa')],'authorId':this['creator']['id'],'createdAt':this[_0x146e('0x29')],'hasComments':this[_0x146e('0x22')],'data':this[_0x146e('0x21')],'attributes':this['attributes']};}static[_0x146e('0xb')](){return _0x1783d0()[_0x146e('0x9')](0x1,0x5);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ed9=['REPLACE_TEXT','_itemLabels','$1\x20$2','Object','Container','name','type','remove','_resolveDescriptionItems','registerElementLabel','elementStart','isEqual','indexOf','softBreak','text','getItemLabel','push','skip','_customCallbacks','pop','normal','addEmptyContainer','getFirstRange','_locale','insertion','removeEmptyContainer','_schema','add','nextSibling','match','label','addObject','ELEMENT_SPACE','_addDescriptionItems','previousSibling','replace','*Remove:*\x20%0','item','*Insert:*\x20%0','set','quantity','addContainer','*Merge:*\x20%0','data','removeContainer','*Split:*\x20%0','removeObject','isEmpty','checkChild','$textProxy','deletion','element','EmptyContainer','get','_itemLabelsCallbacks','isObject','elementEnd','length'];(function(_0x2e73d8,_0x5ed9ba){const _0x23f6a8=function(_0x383c92){while(--_0x383c92){_0x2e73d8['push'](_0x2e73d8['shift']());}};_0x23f6a8(++_0x5ed9ba);}(_0x5ed9,0x127));const _0x23f6=function(_0x2e73d8,_0x5ed9ba){_0x2e73d8=_0x2e73d8-0x0;let _0x23f6a8=_0x5ed9[_0x2e73d8];return _0x23f6a8;};import{getTranslation as _0x53881e}from'./utils/common-translations';import{priorities as _0x1795e4,insertToPriorityArray as _0x32d43f}from'ckeditor5/src/utils';export default class m{constructor(_0x6887fb,_0x3fcee){this[_0x23f6('0xd')]=[],this[_0x23f6('0x36')]=new Map(),this[_0x23f6('0x31')]=[],this['_schema']=_0x6887fb,this[_0x23f6('0x12')]=_0x3fcee;}['getDescriptions'](_0x4ef510){const _0x2f02eb=[];for(let _0x2b6522=0x0;_0x2b6522<_0x4ef510[_0x23f6('0x34')];_0x2b6522++){const _0x524188=_0x4ef510[_0x2b6522];if(!_0x524188['isInContent'])continue;let _0x1b16b3=!0x1;for(const _0x2b2754 of this[_0x23f6('0xd')]){const _0x35005b=_0x2b2754(_0x524188);if(_0x35005b){'type'in _0x35005b&&_0x2f02eb[_0x23f6('0xb')](_0x35005b),_0x1b16b3=!0x0;break;}}if(!_0x1b16b3){this['_addDescriptionItems'](_0x2f02eb,_0x524188);const _0x3b809a=_0x4ef510[_0x2b6522+0x1];if(_0x3b809a&&!_0x524188[_0x23f6('0x11')]()['end'][_0x23f6('0x6')](_0x3b809a[_0x23f6('0x11')]()['start'])){const _0x37db6e=_0x2f02eb[_0x2f02eb[_0x23f6('0x34')]-0x1],_0x466052=_0x23f6('0x13')==_0x524188[_0x23f6('0x1')]?'add':_0x23f6('0x2');_0x37db6e&&'text'==_0x37db6e[_0x23f6('0x1')]&&(_0x37db6e[_0x466052]+='\x0a');}}}return this[_0x23f6('0x3')](_0x2f02eb);}['registerDescriptionCallback'](_0x2cbea2){this[_0x23f6('0xd')][_0x23f6('0xb')](_0x2cbea2);}[_0x23f6('0x4')](_0x23ca00,_0x3b2d35,_0x15b0b6=_0x1795e4[_0x23f6('0xf')]){'function'==typeof _0x23ca00?_0x32d43f(this[_0x23f6('0x31')],{'matchingCallback':_0x23ca00,'label':_0x3b2d35,'priority':_0x15b0b6}):this[_0x23f6('0x36')][_0x23f6('0x22')](_0x23ca00,_0x3b2d35);}['getItemLabel'](_0x27615d,_0x46641a=0x1){let _0x50f71b;for(const _0x3feff6 of this[_0x23f6('0x31')])if(_0x3feff6['matchingCallback'](_0x27615d)){_0x50f71b=_0x3feff6[_0x23f6('0x19')];break;}return _0x50f71b||(_0x50f71b=this['_itemLabels'][_0x23f6('0x30')](_0x27615d[_0x23f6('0x0')])),_0x50f71b?_0x50f71b(_0x46641a):0x1!==_0x46641a?_0x46641a+'\x20'+_0x27615d[_0x23f6('0x0')]+'s':''+_0x27615d['name'];}[_0x23f6('0x1c')](_0x515d64,_0x3736e4){const _0x1733b1=_0x3736e4[_0x23f6('0x11')]()['getWalker'](),_0x29161f=_0x23f6('0x13')==_0x3736e4[_0x23f6('0x1')]?'add':_0x23f6('0x2');for(const _0xcce29c of _0x1733b1){const _0x5a8c69=_0xcce29c[_0x23f6('0x20')],_0x15f54e=_0x515d64[_0x515d64[_0x23f6('0x34')]-0x1];if(_0x5a8c69['is'](_0x23f6('0x2c')))_0x15f54e&&_0x15f54e[_0x23f6('0x1')][_0x23f6('0x7')](_0x23f6('0x39'))>-0x1&&_0x515d64[_0x23f6('0xe')](),_0x15f54e&&_0x23f6('0x9')==_0x15f54e[_0x23f6('0x1')]?_0x15f54e[_0x29161f]+=_0x5a8c69['data']:_0x515d64[_0x23f6('0xb')]({'type':'text','add':'add'==_0x29161f?_0x5a8c69[_0x23f6('0x26')]:'','remove':'remove'==_0x29161f?_0x5a8c69[_0x23f6('0x26')]:''});else{if(this['_schema'][_0x23f6('0x32')](_0x5a8c69)){const _0x58ba69=_0x5a8c69;if(_0x15f54e&&_0x15f54e[_0x23f6('0x1')]['indexOf'](_0x23f6('0x39'))>-0x1&&_0x515d64[_0x23f6('0xe')](),_0x23f6('0x33')==_0xcce29c['type'])continue;_0x15f54e&&_0x15f54e[_0x23f6('0x1')]==_0x29161f+_0x23f6('0x38')&&_0x15f54e[_0x23f6('0x2e')]['name']==_0x58ba69[_0x23f6('0x0')]?_0x15f54e['quantity']++:_0x515d64[_0x23f6('0xb')]({'type':_0x29161f+_0x23f6('0x38'),'element':_0x58ba69,'quantity':0x1}),_0x1733b1[_0x23f6('0xc')](_0x12b494=>!('elementEnd'==_0x12b494[_0x23f6('0x1')]&&_0x12b494['item']==_0x5a8c69));}else{if(this[_0x23f6('0x15')][_0x23f6('0x2b')](_0x5a8c69,'$text')||_0x5a8c69['is']('element',_0x23f6('0x8'))){const _0x4c3604=_0x5a8c69;if(_0x23f6('0x16')==_0x29161f&&_0x23f6('0x5')==_0xcce29c[_0x23f6('0x1')]||'remove'==_0x29161f&&_0x23f6('0x33')==_0xcce29c[_0x23f6('0x1')])continue;if(_0x15f54e&&-0x1==_0x15f54e[_0x23f6('0x1')][_0x23f6('0x7')](_0x23f6('0x39'))){_0x23f6('0x9')==_0x15f54e[_0x23f6('0x1')]&&(_0x15f54e[_0x29161f]+='\x0a');continue;}let _0x46b08e;if(_0x46b08e='add'==_0x29161f?_0x4c3604[_0x23f6('0x17')]&&!this[_0x23f6('0x15')][_0x23f6('0x32')](_0x4c3604[_0x23f6('0x17')])?_0x4c3604[_0x23f6('0x17')]:null:_0x4c3604[_0x23f6('0x1d')]&&!this[_0x23f6('0x15')][_0x23f6('0x32')](_0x4c3604[_0x23f6('0x1d')])?_0x4c3604[_0x23f6('0x1d')]:null,_0x4c3604[_0x23f6('0x2a')]||_0x46b08e&&_0x46b08e[_0x23f6('0x2a')]){const _0x24df4a=_0x46b08e&&_0x46b08e[_0x23f6('0x2a')]?_0x46b08e:_0x4c3604;_0x15f54e&&_0x15f54e[_0x23f6('0x1')]==_0x29161f+_0x23f6('0x2f')&&_0x15f54e[_0x23f6('0x2e')][_0x23f6('0x0')]==_0x24df4a[_0x23f6('0x0')]?_0x15f54e[_0x23f6('0x23')]++:_0x515d64[_0x23f6('0xb')]({'type':_0x29161f+_0x23f6('0x2f'),'element':_0x24df4a,'quantity':0x1});}else _0x515d64[_0x23f6('0xb')]({'type':_0x29161f+_0x23f6('0x39'),'element':_0x4c3604});}}}}}[_0x23f6('0x3')](_0x1559bc){const _0x4f69be=this[_0x23f6('0x12')],_0xc3df39=[];for(const _0x10c9ef of _0x1559bc){switch(_0x10c9ef[_0x23f6('0x1')]){case'text':if(_0x10c9ef[_0x23f6('0x16')]=_0x10c9ef[_0x23f6('0x16')][_0x23f6('0x1e')](/(\S)\u000A+(\S)/g,_0x23f6('0x37'))[_0x23f6('0x1e')](/\u000A/g,''),_0x10c9ef[_0x23f6('0x2')]=_0x10c9ef[_0x23f6('0x2')][_0x23f6('0x1e')](/(\S)\u000A+(\S)/g,_0x23f6('0x37'))[_0x23f6('0x1e')](/\u000A/g,''),''!=_0x10c9ef[_0x23f6('0x16')]&&''!=_0x10c9ef[_0x23f6('0x2')]){_0xc3df39['push']({'type':_0x23f6('0x1e'),'content':_0x53881e(_0x4f69be,_0x23f6('0x35'),['\x22'+_0x10c9ef[_0x23f6('0x2')]+'\x22','\x22'+_0x10c9ef[_0x23f6('0x16')]+'\x22'])});continue;}if(null!=_0x10c9ef[_0x23f6('0x16')][_0x23f6('0x18')](/^ +$/)){_0xc3df39[_0x23f6('0xb')]({'type':_0x23f6('0x13'),'content':_0x53881e(_0x4f69be,_0x23f6('0x21'),_0x53881e(_0x4f69be,'ELEMENT_SPACE',_0x10c9ef[_0x23f6('0x16')][_0x23f6('0x34')]))});continue;}if(null!=_0x10c9ef[_0x23f6('0x2')][_0x23f6('0x18')](/^ +$/)){_0xc3df39[_0x23f6('0xb')]({'type':_0x23f6('0x2d'),'content':_0x53881e(_0x4f69be,_0x23f6('0x1f'),_0x53881e(_0x4f69be,_0x23f6('0x1b'),_0x10c9ef[_0x23f6('0x2')][_0x23f6('0x34')]))});continue;}if(''!=_0x10c9ef['add']){_0xc3df39[_0x23f6('0xb')]({'type':'insertion','content':_0x53881e(_0x4f69be,'*Insert:*\x20%0','\x22'+_0x10c9ef[_0x23f6('0x16')]+'\x22')});continue;}_0xc3df39['push']({'type':'deletion','content':_0x53881e(_0x4f69be,_0x23f6('0x1f'),'\x22'+_0x10c9ef[_0x23f6('0x2')]+'\x22')});continue;case _0x23f6('0x10'):case _0x23f6('0x1a'):_0xc3df39[_0x23f6('0xb')]({'type':_0x23f6('0x13'),'content':_0x53881e(_0x4f69be,_0x23f6('0x21'),this[_0x23f6('0xa')](_0x10c9ef['element'],_0x10c9ef['quantity']))});continue;case _0x23f6('0x14'):case _0x23f6('0x29'):_0xc3df39[_0x23f6('0xb')]({'type':_0x23f6('0x2d'),'content':_0x53881e(_0x4f69be,'*Remove:*\x20%0',this['getItemLabel'](_0x10c9ef[_0x23f6('0x2e')],_0x10c9ef['quantity']))});continue;case _0x23f6('0x24'):_0xc3df39['push']({'type':_0x23f6('0x13'),'content':_0x53881e(_0x4f69be,_0x23f6('0x28'),this['getItemLabel'](_0x10c9ef[_0x23f6('0x2e')],_0x10c9ef['quantity']))});continue;case _0x23f6('0x27'):_0xc3df39[_0x23f6('0xb')]({'type':_0x23f6('0x2d'),'content':_0x53881e(_0x4f69be,_0x23f6('0x25'),this[_0x23f6('0xa')](_0x10c9ef[_0x23f6('0x2e')],_0x10c9ef[_0x23f6('0x23')]))});continue;}_0xc3df39['push'](_0x10c9ef);}return _0xc3df39;}}
23
+ const _0x1fcc=['data','skip','remove','matchingCallback','_schema','_locale','*Remove:*\x20%0','indexOf','_addDescriptionItems','item','isObject','isInContent','element','getDescriptions','_customCallbacks','ELEMENT_SPACE','_itemLabelsCallbacks','match','_itemLabels','$1\x20$2','label','text','REPLACE_TEXT','softBreak','registerElementLabel','add','addObject','isEqual','end','deletion','getFirstRange','$textProxy','start','replace','Object','previousSibling','isEmpty','length','removeEmptyContainer','getItemLabel','nextSibling','insertion','_resolveDescriptionItems','name','EmptyContainer','normal','quantity','registerDescriptionCallback','pop','elementStart','type','elementEnd','*Insert:*\x20%0','Container','function','push'];(function(_0x4925ff,_0x1fccb9){const _0x3bf85c=function(_0x3daede){while(--_0x3daede){_0x4925ff['push'](_0x4925ff['shift']());}};_0x3bf85c(++_0x1fccb9);}(_0x1fcc,0x197));const _0x3bf8=function(_0x4925ff,_0x1fccb9){_0x4925ff=_0x4925ff-0x0;let _0x3bf85c=_0x1fcc[_0x4925ff];return _0x3bf85c;};import{getTranslation as _0x263dc3}from'./utils/common-translations';import{priorities as _0x25a766,insertToPriorityArray as _0x3017b7}from'ckeditor5/src/utils';export default class m{constructor(_0x4a08c9,_0x58bd7a){this[_0x3bf8('0x37')]=[],this[_0x3bf8('0x3')]=new Map(),this[_0x3bf8('0x1')]=[],this['_schema']=_0x4a08c9,this[_0x3bf8('0x2e')]=_0x58bd7a;}[_0x3bf8('0x36')](_0x6c1682){const _0x400e2c=[];for(let _0x17c679=0x0;_0x17c679<_0x6c1682['length'];_0x17c679++){const _0x7765f8=_0x6c1682[_0x17c679];if(!_0x7765f8[_0x3bf8('0x34')])continue;let _0xb8a2fa=!0x1;for(const _0xf081e4 of this['_customCallbacks']){const _0x50b912=_0xf081e4(_0x7765f8);if(_0x50b912){_0x3bf8('0x23')in _0x50b912&&_0x400e2c[_0x3bf8('0x28')](_0x50b912),_0xb8a2fa=!0x0;break;}}if(!_0xb8a2fa){this[_0x3bf8('0x31')](_0x400e2c,_0x7765f8);const _0xd7bf2a=_0x6c1682[_0x17c679+0x1];if(_0xd7bf2a&&!_0x7765f8['getFirstRange']()[_0x3bf8('0xd')][_0x3bf8('0xc')](_0xd7bf2a['getFirstRange']()[_0x3bf8('0x11')])){const _0x287e71=_0x400e2c[_0x400e2c[_0x3bf8('0x16')]-0x1],_0x25520c=_0x3bf8('0x1a')==_0x7765f8[_0x3bf8('0x23')]?'add':_0x3bf8('0x2b');_0x287e71&&_0x3bf8('0x6')==_0x287e71[_0x3bf8('0x23')]&&(_0x287e71[_0x25520c]+='\x0a');}}}return this[_0x3bf8('0x1b')](_0x400e2c);}[_0x3bf8('0x20')](_0x2d4ec3){this['_customCallbacks'][_0x3bf8('0x28')](_0x2d4ec3);}[_0x3bf8('0x9')](_0x323598,_0x302b4e,_0x4086b9=_0x25a766[_0x3bf8('0x1e')]){_0x3bf8('0x27')==typeof _0x323598?_0x3017b7(this[_0x3bf8('0x1')],{'matchingCallback':_0x323598,'label':_0x302b4e,'priority':_0x4086b9}):this['_itemLabels']['set'](_0x323598,_0x302b4e);}[_0x3bf8('0x18')](_0x367d95,_0x32e0ec=0x1){let _0x38e912;for(const _0x331ae3 of this[_0x3bf8('0x1')])if(_0x331ae3[_0x3bf8('0x2c')](_0x367d95)){_0x38e912=_0x331ae3[_0x3bf8('0x5')];break;}return _0x38e912||(_0x38e912=this['_itemLabels']['get'](_0x367d95[_0x3bf8('0x1c')])),_0x38e912?_0x38e912(_0x32e0ec):0x1!==_0x32e0ec?_0x32e0ec+'\x20'+_0x367d95['name']+'s':''+_0x367d95[_0x3bf8('0x1c')];}['_addDescriptionItems'](_0x3a593c,_0x24be98){const _0x3ef00b=_0x24be98[_0x3bf8('0xf')]()['getWalker'](),_0x3ae1d1=_0x3bf8('0x1a')==_0x24be98[_0x3bf8('0x23')]?'add':_0x3bf8('0x2b');for(const _0x15bf84 of _0x3ef00b){const _0x145fd3=_0x15bf84[_0x3bf8('0x32')],_0x3723ce=_0x3a593c[_0x3a593c[_0x3bf8('0x16')]-0x1];if(_0x145fd3['is'](_0x3bf8('0x10')))_0x3723ce&&_0x3723ce[_0x3bf8('0x23')][_0x3bf8('0x30')](_0x3bf8('0x26'))>-0x1&&_0x3a593c[_0x3bf8('0x21')](),_0x3723ce&&_0x3bf8('0x6')==_0x3723ce['type']?_0x3723ce[_0x3ae1d1]+=_0x145fd3[_0x3bf8('0x29')]:_0x3a593c[_0x3bf8('0x28')]({'type':_0x3bf8('0x6'),'add':'add'==_0x3ae1d1?_0x145fd3[_0x3bf8('0x29')]:'','remove':_0x3bf8('0x2b')==_0x3ae1d1?_0x145fd3[_0x3bf8('0x29')]:''});else{if(this[_0x3bf8('0x2d')][_0x3bf8('0x33')](_0x145fd3)){const _0x20c5d2=_0x145fd3;if(_0x3723ce&&_0x3723ce[_0x3bf8('0x23')][_0x3bf8('0x30')](_0x3bf8('0x26'))>-0x1&&_0x3a593c[_0x3bf8('0x21')](),'elementEnd'==_0x15bf84[_0x3bf8('0x23')])continue;_0x3723ce&&_0x3723ce[_0x3bf8('0x23')]==_0x3ae1d1+_0x3bf8('0x13')&&_0x3723ce[_0x3bf8('0x35')][_0x3bf8('0x1c')]==_0x20c5d2[_0x3bf8('0x1c')]?_0x3723ce['quantity']++:_0x3a593c[_0x3bf8('0x28')]({'type':_0x3ae1d1+'Object','element':_0x20c5d2,'quantity':0x1}),_0x3ef00b[_0x3bf8('0x2a')](_0x3a16db=>!('elementEnd'==_0x3a16db['type']&&_0x3a16db[_0x3bf8('0x32')]==_0x145fd3));}else{if(this[_0x3bf8('0x2d')]['checkChild'](_0x145fd3,'$text')||_0x145fd3['is'](_0x3bf8('0x35'),_0x3bf8('0x8'))){const _0x35c5d3=_0x145fd3;if(_0x3bf8('0xa')==_0x3ae1d1&&_0x3bf8('0x22')==_0x15bf84[_0x3bf8('0x23')]||_0x3bf8('0x2b')==_0x3ae1d1&&_0x3bf8('0x24')==_0x15bf84[_0x3bf8('0x23')])continue;if(_0x3723ce&&-0x1==_0x3723ce[_0x3bf8('0x23')]['indexOf'](_0x3bf8('0x26'))){_0x3bf8('0x6')==_0x3723ce['type']&&(_0x3723ce[_0x3ae1d1]+='\x0a');continue;}let _0x25da29;if(_0x25da29='add'==_0x3ae1d1?_0x35c5d3[_0x3bf8('0x19')]&&!this[_0x3bf8('0x2d')][_0x3bf8('0x33')](_0x35c5d3[_0x3bf8('0x19')])?_0x35c5d3[_0x3bf8('0x19')]:null:_0x35c5d3['previousSibling']&&!this[_0x3bf8('0x2d')][_0x3bf8('0x33')](_0x35c5d3[_0x3bf8('0x14')])?_0x35c5d3[_0x3bf8('0x14')]:null,_0x35c5d3[_0x3bf8('0x15')]||_0x25da29&&_0x25da29[_0x3bf8('0x15')]){const _0x47537f=_0x25da29&&_0x25da29['isEmpty']?_0x25da29:_0x35c5d3;_0x3723ce&&_0x3723ce[_0x3bf8('0x23')]==_0x3ae1d1+_0x3bf8('0x1d')&&_0x3723ce[_0x3bf8('0x35')]['name']==_0x47537f[_0x3bf8('0x1c')]?_0x3723ce[_0x3bf8('0x1f')]++:_0x3a593c[_0x3bf8('0x28')]({'type':_0x3ae1d1+'EmptyContainer','element':_0x47537f,'quantity':0x1});}else _0x3a593c['push']({'type':_0x3ae1d1+'Container','element':_0x35c5d3});}}}}}[_0x3bf8('0x1b')](_0x21c5ab){const _0x317b4a=this['_locale'],_0x5ade0d=[];for(const _0x1ec861 of _0x21c5ab){switch(_0x1ec861[_0x3bf8('0x23')]){case _0x3bf8('0x6'):if(_0x1ec861[_0x3bf8('0xa')]=_0x1ec861[_0x3bf8('0xa')][_0x3bf8('0x12')](/(\S)\u000A+(\S)/g,_0x3bf8('0x4'))[_0x3bf8('0x12')](/\u000A/g,''),_0x1ec861['remove']=_0x1ec861[_0x3bf8('0x2b')][_0x3bf8('0x12')](/(\S)\u000A+(\S)/g,_0x3bf8('0x4'))['replace'](/\u000A/g,''),''!=_0x1ec861['add']&&''!=_0x1ec861['remove']){_0x5ade0d[_0x3bf8('0x28')]({'type':_0x3bf8('0x12'),'content':_0x263dc3(_0x317b4a,_0x3bf8('0x7'),['\x22'+_0x1ec861['remove']+'\x22','\x22'+_0x1ec861[_0x3bf8('0xa')]+'\x22'])});continue;}if(null!=_0x1ec861[_0x3bf8('0xa')][_0x3bf8('0x2')](/^ +$/)){_0x5ade0d[_0x3bf8('0x28')]({'type':_0x3bf8('0x1a'),'content':_0x263dc3(_0x317b4a,_0x3bf8('0x25'),_0x263dc3(_0x317b4a,_0x3bf8('0x0'),_0x1ec861[_0x3bf8('0xa')][_0x3bf8('0x16')]))});continue;}if(null!=_0x1ec861[_0x3bf8('0x2b')]['match'](/^ +$/)){_0x5ade0d[_0x3bf8('0x28')]({'type':_0x3bf8('0xe'),'content':_0x263dc3(_0x317b4a,_0x3bf8('0x2f'),_0x263dc3(_0x317b4a,_0x3bf8('0x0'),_0x1ec861[_0x3bf8('0x2b')]['length']))});continue;}if(''!=_0x1ec861[_0x3bf8('0xa')]){_0x5ade0d[_0x3bf8('0x28')]({'type':_0x3bf8('0x1a'),'content':_0x263dc3(_0x317b4a,_0x3bf8('0x25'),'\x22'+_0x1ec861[_0x3bf8('0xa')]+'\x22')});continue;}_0x5ade0d[_0x3bf8('0x28')]({'type':_0x3bf8('0xe'),'content':_0x263dc3(_0x317b4a,'*Remove:*\x20%0','\x22'+_0x1ec861[_0x3bf8('0x2b')]+'\x22')});continue;case'addEmptyContainer':case _0x3bf8('0xb'):_0x5ade0d[_0x3bf8('0x28')]({'type':_0x3bf8('0x1a'),'content':_0x263dc3(_0x317b4a,'*Insert:*\x20%0',this[_0x3bf8('0x18')](_0x1ec861[_0x3bf8('0x35')],_0x1ec861['quantity']))});continue;case _0x3bf8('0x17'):case'removeObject':_0x5ade0d[_0x3bf8('0x28')]({'type':_0x3bf8('0xe'),'content':_0x263dc3(_0x317b4a,_0x3bf8('0x2f'),this[_0x3bf8('0x18')](_0x1ec861[_0x3bf8('0x35')],_0x1ec861['quantity']))});continue;case'addContainer':_0x5ade0d[_0x3bf8('0x28')]({'type':_0x3bf8('0x1a'),'content':_0x263dc3(_0x317b4a,'*Split:*\x20%0',this[_0x3bf8('0x18')](_0x1ec861['element'],_0x1ec861[_0x3bf8('0x1f')]))});continue;case'removeContainer':_0x5ade0d[_0x3bf8('0x28')]({'type':_0x3bf8('0xe'),'content':_0x263dc3(_0x317b4a,'*Merge:*\x20%0',this[_0x3bf8('0x18')](_0x1ec861[_0x3bf8('0x35')],_0x1ec861[_0x3bf8('0x1f')]))});continue;}_0x5ade0d['push'](_0x1ec861);}return _0x5ade0d;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x41e4=['getSuggestions','plugins','Comments','addSuggestion','TrackChanges','getSuggestion','editor','get','adapter','requires'];(function(_0x29bbca,_0x41e41d){var _0x4a0df0=function(_0x43256f){while(--_0x43256f){_0x29bbca['push'](_0x29bbca['shift']());}};_0x4a0df0(++_0x41e41d);}(_0x41e4,0x6e));var _0x4a0d=function(_0x29bbca,_0x41e41d){_0x29bbca=_0x29bbca-0x0;var _0x4a0df0=_0x41e4[_0x29bbca];return _0x4a0df0;};import{Plugin as _0x46c281}from'ckeditor5/src/core';import _0x42e71f from'./trackchangesui';import _0xdd44d6 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x46c281{static get[_0x4a0d('0x9')](){return[_0xdd44d6,_0x42e71f,_0x4a0d('0x2')];}static get['pluginName'](){return _0x4a0d('0x4');}set['adapter'](_0x2cb44e){this['editor'][_0x4a0d('0x1')][_0x4a0d('0x7')](_0xdd44d6)[_0x4a0d('0x8')]=_0x2cb44e;}get[_0x4a0d('0x8')](){return this['editor'][_0x4a0d('0x1')]['get'](_0xdd44d6)['adapter'];}[_0x4a0d('0x3')](_0x1fa48b){return this[_0x4a0d('0x6')][_0x4a0d('0x1')][_0x4a0d('0x7')](_0xdd44d6)['addSuggestionData'](_0x1fa48b);}[_0x4a0d('0x0')]({skipNotAttached:_0x1b6fa7=!0x1,toJSON:_0x5d03bd=!0x1}={}){return this[_0x4a0d('0x6')][_0x4a0d('0x1')]['get'](_0xdd44d6)['getSuggestions']({'skipNotAttached':_0x1b6fa7,'toJSON':_0x5d03bd});}[_0x4a0d('0x5')](_0xddc2b3){return this[_0x4a0d('0x6')]['plugins'][_0x4a0d('0x7')](_0xdd44d6)['getSuggestion'](_0xddc2b3);}}
23
+ var _0x1e73=['getSuggestions','TrackChanges','plugins','addSuggestionData','adapter','get','getSuggestion','editor','Comments','requires','addSuggestion','pluginName'];(function(_0x2dc8b4,_0x1e73ca){var _0x487fe8=function(_0x453d9a){while(--_0x453d9a){_0x2dc8b4['push'](_0x2dc8b4['shift']());}};_0x487fe8(++_0x1e73ca);}(_0x1e73,0x124));var _0x487f=function(_0x2dc8b4,_0x1e73ca){_0x2dc8b4=_0x2dc8b4-0x0;var _0x487fe8=_0x1e73[_0x2dc8b4];return _0x487fe8;};import{Plugin as _0x44cf21}from'ckeditor5/src/core';import _0x2c0692 from'./trackchangesui';import _0x583cb0 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x44cf21{static get[_0x487f('0x5')](){return[_0x583cb0,_0x2c0692,_0x487f('0x4')];}static get[_0x487f('0x7')](){return _0x487f('0x9');}set[_0x487f('0x0')](_0x2c410e){this['editor']['plugins'][_0x487f('0x1')](_0x583cb0)[_0x487f('0x0')]=_0x2c410e;}get[_0x487f('0x0')](){return this[_0x487f('0x3')][_0x487f('0xa')][_0x487f('0x1')](_0x583cb0)[_0x487f('0x0')];}[_0x487f('0x6')](_0x469d59){return this['editor'][_0x487f('0xa')][_0x487f('0x1')](_0x583cb0)[_0x487f('0xb')](_0x469d59);}[_0x487f('0x8')]({skipNotAttached:_0xe0d294=!0x1,toJSON:_0xb79a05=!0x1}={}){return this[_0x487f('0x3')]['plugins'][_0x487f('0x1')](_0x583cb0)[_0x487f('0x8')]({'skipNotAttached':_0xe0d294,'toJSON':_0xb79a05});}[_0x487f('0x2')](_0x13339d){return this['editor'][_0x487f('0xa')][_0x487f('0x1')](_0x583cb0)[_0x487f('0x2')](_0x13339d);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x374f=['name','addSuggestionData','editor','destroy','model','function','div','getRootsAttributes','editorCreator','result','users','appendChild','rootsAttributes','end','push','config','map','plugins','TrackChangesData','trackChangesData.editorCreator','reduce','TrackChangesEditing','define','get','addUser','useAnonymousUser','getFullData','discardAllSuggestions','execute','pluginName','CommentsRepository','createDocumentFragment','TrackChangesDataGetter','getSuggestions','data','document','init','set','Users','track-changes-data-invalid-editor-creator','getDataWithAcceptedSuggestions','getRootNames'];(function(_0x5914e9,_0x374fd5){const _0x192fe7=function(_0x101706){while(--_0x101706){_0x5914e9['push'](_0x5914e9['shift']());}};_0x192fe7(++_0x374fd5);}(_0x374f,0x1da));const _0x192f=function(_0x5914e9,_0x374fd5){_0x5914e9=_0x5914e9-0x0;let _0x192fe7=_0x374f[_0x5914e9];return _0x192fe7;};import{Plugin as _0x19f981}from'ckeditor5/src/core';import{CKEditorError as _0xdc1268}from'ckeditor5/src/utils';import _0x5f0345 from'./trackchangesediting';import{sanitizeEditorConfig as _0x102a5d}from'ckeditor5-collaboration/src/collaboration-core';const w=['Pagination'];export default class T extends _0x19f981{static get['requires'](){return[_0x5f0345];}static get[_0x192f('0x11')](){return _0x192f('0x6');}[_0x192f('0x18')](){const _0x290830=this[_0x192f('0x20')];if(_0x290830[_0x192f('0x3')][_0x192f('0xa')](_0x192f('0x7'),_0x3bcedd=>{const _0x400cc0=_0x290830[_0x192f('0x22')][_0x192f('0x17')][_0x192f('0x1d')]()[_0x192f('0x8')]((_0x569caa,_0x5cdda6)=>(_0x569caa[_0x5cdda6]='',_0x569caa),{});return _0x290830['constructor']['create'](_0x400cc0,_0x3bcedd);}),_0x192f('0x23')!=typeof _0x290830[_0x192f('0x3')][_0x192f('0xb')]('trackChangesData')[_0x192f('0x26')])throw new _0xdc1268(_0x192f('0x1b'));}[_0x192f('0x1c')](_0x584c6b){return v(this['editor'],!0x0,_0x584c6b);}['getDataWithDiscardedSuggestions'](_0x55f48c){return v(this[_0x192f('0x20')],!0x1,_0x55f48c);}}class P extends _0x19f981{static get[_0x192f('0x11')](){return _0x192f('0x14');}constructor(_0x43cb3c){super(_0x43cb3c),this[_0x192f('0x27')]=_0x192f('0x1');}['init'](){this['editor']['plugins'][_0x192f('0xb')](_0x192f('0x12'))['_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[_0x192f('0x20')][_0x192f('0x5')][_0x192f('0xb')](_0x192f('0x9'))['_adapter']=null;}}function D(_0x5716eb){return void 0x0!==_0x5716eb[_0x192f('0x25')];}async function v(_0x5891bf,_0x165f06,_0x1827bf){const _0x4a2beb=_0x102a5d(_0x5891bf,w);_0x4a2beb[_0x192f('0x5')][_0x192f('0x2')](_0x5f0345,P),_0x4a2beb[_0x192f('0x0')]=D(_0x5891bf)?_0x5891bf['getRootsAttributes']():void 0x0;const _0x58d68a=document[_0x192f('0x13')](),_0x4c2e77=_0x5891bf['config'][_0x192f('0xb')]('trackChangesData')[_0x192f('0x26')],_0x4d51c6=await _0x4c2e77(_0x4a2beb,()=>function(_0x3ede73){const _0x5bba0f=document['createElement'](_0x192f('0x24'));return _0x3ede73[_0x192f('0x29')](_0x5bba0f),_0x5bba0f;}(_0x58d68a));!function(_0x2e5ecb,_0x3a412b){const _0x14bbfd=_0x2e5ecb[_0x192f('0x22')][_0x192f('0x17')]['getRootNames']()[_0x192f('0x8')]((_0x55177e,_0x2f73a9)=>(_0x55177e[_0x2f73a9]=_0x2e5ecb[_0x192f('0x16')][_0x192f('0xb')]({'rootName':_0x2f73a9}),_0x55177e),{}),_0xc45294=_0x2e5ecb[_0x192f('0x5')][_0x192f('0xb')](_0x192f('0x1a'))[_0x192f('0x28')][_0x192f('0x4')](_0x1f1c9b=>({'id':_0x1f1c9b['id'],'name':_0x1f1c9b[_0x192f('0x1e')]})),_0x4f6ee0=_0x2e5ecb[_0x192f('0x5')][_0x192f('0xb')]('TrackChangesEditing')[_0x192f('0x15')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x340b5b=_0x3a412b['plugins']['get'](_0x192f('0x1a')),_0x28cc5b=_0x3a412b[_0x192f('0x5')]['get'](_0x192f('0x9'));for(const _0x5c5eb0 of _0xc45294)_0x340b5b['getUser'](_0x5c5eb0['id'])||_0x340b5b[_0x192f('0xc')](_0x5c5eb0);_0x340b5b['me']||_0x340b5b[_0x192f('0xd')]();for(const _0x2a3d81 of _0x4f6ee0)_0x28cc5b[_0x192f('0x1f')](_0x2a3d81);_0x3a412b['data'][_0x192f('0x19')](_0x14bbfd);}(_0x5891bf,_0x4d51c6),_0x4d51c6[_0x192f('0x10')](_0x165f06?'acceptAllSuggestions':_0x192f('0xf'));const _0x28b607=D(_0x4d51c6)?_0x4d51c6[_0x192f('0xe')](_0x1827bf):_0x4d51c6['data'][_0x192f('0xb')](_0x1827bf);return await _0x4d51c6[_0x192f('0x21')](),_0x28b607;}
23
+ const _0x3600=['Users','requires','end','plugins','getRootNames','addSuggestionData','getRootsAttributes','trackChangesData','discardAllSuggestions','addUser','getSuggestions','CommentsRepository','document','div','constructor','users','set','createDocumentFragment','result','pluginName','rootsAttributes','reduce','editor','get','map','define','track-changes-data-invalid-editor-creator','execute','function','useAnonymousUser','TrackChangesEditing','acceptAllSuggestions','create','_adapter','appendChild','data','model','config','trackChangesData.editorCreator','init','push','createElement','Pagination','editorCreator'];(function(_0x13a75c,_0x3600ca){const _0x26018b=function(_0x29f980){while(--_0x29f980){_0x13a75c['push'](_0x13a75c['shift']());}};_0x26018b(++_0x3600ca);}(_0x3600,0xb6));const _0x2601=function(_0x13a75c,_0x3600ca){_0x13a75c=_0x13a75c-0x0;let _0x26018b=_0x3600[_0x13a75c];return _0x26018b;};import{Plugin as _0x249dd3}from'ckeditor5/src/core';import{CKEditorError as _0x22c5ca}from'ckeditor5/src/utils';import _0x38aefa from'./trackchangesediting';import{sanitizeEditorConfig as _0x452fe3}from'ckeditor5-collaboration/src/collaboration-core';const w=[_0x2601('0x24')];export default class T extends _0x249dd3{static get[_0x2601('0x27')](){return[_0x38aefa];}static get['pluginName'](){return'TrackChangesData';}[_0x2601('0x21')](){const _0x2c0021=this[_0x2601('0x10')];if(_0x2c0021[_0x2601('0x1f')][_0x2601('0x13')](_0x2601('0x20'),_0x11ece7=>{const _0xb5cfe9=_0x2c0021[_0x2601('0x1e')]['document'][_0x2601('0x2a')]()[_0x2601('0xf')]((_0x3a191a,_0x3a4dcf)=>(_0x3a191a[_0x3a4dcf]='',_0x3a191a),{});return _0x2c0021[_0x2601('0x8')][_0x2601('0x1a')](_0xb5cfe9,_0x11ece7);}),_0x2601('0x16')!=typeof _0x2c0021['config'][_0x2601('0x11')](_0x2601('0x1'))['editorCreator'])throw new _0x22c5ca(_0x2601('0x14'));}['getDataWithAcceptedSuggestions'](_0x4370c0){return v(this[_0x2601('0x10')],!0x0,_0x4370c0);}['getDataWithDiscardedSuggestions'](_0x248140){return v(this[_0x2601('0x10')],!0x1,_0x248140);}}class P extends _0x249dd3{static get[_0x2601('0xd')](){return'TrackChangesDataGetter';}constructor(_0x5950d3){super(_0x5950d3),this[_0x2601('0xc')]=_0x2601('0x28');}[_0x2601('0x21')](){this[_0x2601('0x10')][_0x2601('0x29')][_0x2601('0x11')](_0x2601('0x5'))[_0x2601('0x1b')]={'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['editor'][_0x2601('0x29')][_0x2601('0x11')]('TrackChangesEditing')[_0x2601('0x1b')]=null;}}function D(_0x3749fd){return void 0x0!==_0x3749fd[_0x2601('0x0')];}async function v(_0x32c256,_0x43a395,_0x204377){const _0x31ab53=_0x452fe3(_0x32c256,w);_0x31ab53[_0x2601('0x29')][_0x2601('0x22')](_0x38aefa,P),_0x31ab53[_0x2601('0xe')]=D(_0x32c256)?_0x32c256['getRootsAttributes']():void 0x0;const _0x40ebb6=document[_0x2601('0xb')](),_0x2fc37b=_0x32c256['config']['get']('trackChangesData')[_0x2601('0x25')],_0x6f89b8=await _0x2fc37b(_0x31ab53,()=>function(_0x46c53d){const _0x1a81f6=document[_0x2601('0x23')](_0x2601('0x7'));return _0x46c53d[_0x2601('0x1c')](_0x1a81f6),_0x1a81f6;}(_0x40ebb6));!function(_0x56cc4a,_0x2a2f75){const _0x5cb6ad=_0x56cc4a[_0x2601('0x1e')][_0x2601('0x6')][_0x2601('0x2a')]()[_0x2601('0xf')]((_0x9025cf,_0x12a74a)=>(_0x9025cf[_0x12a74a]=_0x56cc4a['data'][_0x2601('0x11')]({'rootName':_0x12a74a}),_0x9025cf),{}),_0x44ac51=_0x56cc4a['plugins']['get'](_0x2601('0x26'))[_0x2601('0x9')][_0x2601('0x12')](_0x1a4fa7=>({'id':_0x1a4fa7['id'],'name':_0x1a4fa7['name']})),_0xc385a=_0x56cc4a['plugins']['get'](_0x2601('0x18'))[_0x2601('0x4')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x56cc3b=_0x2a2f75[_0x2601('0x29')]['get'](_0x2601('0x26')),_0x34b4c1=_0x2a2f75['plugins'][_0x2601('0x11')](_0x2601('0x18'));for(const _0x19ee14 of _0x44ac51)_0x56cc3b['getUser'](_0x19ee14['id'])||_0x56cc3b[_0x2601('0x3')](_0x19ee14);_0x56cc3b['me']||_0x56cc3b[_0x2601('0x17')]();for(const _0x4d295d of _0xc385a)_0x34b4c1[_0x2601('0x2b')](_0x4d295d);_0x2a2f75[_0x2601('0x1d')][_0x2601('0xa')](_0x5cb6ad);}(_0x32c256,_0x6f89b8),_0x6f89b8[_0x2601('0x15')](_0x43a395?_0x2601('0x19'):_0x2601('0x2'));const _0x39ff3c=D(_0x6f89b8)?_0x6f89b8['getFullData'](_0x204377):_0x6f89b8[_0x2601('0x1d')][_0x2601('0x11')](_0x204377);return await _0x6f89b8['destroy'](),_0x39ff3c;}
@@ -159,6 +159,10 @@ export default class TrackChangesEditing extends Plugin {
159
159
  * Always call this method inside `model.change()` or `model.enqueueChange()` block to ensure that all operations performed by
160
160
  * this method are bound with one undo step.
161
161
  *
162
+ * If possible, the new suggestion will be joined with an existing suggestion (of the same type). This happens only if
163
+ * the suggestions are created by the same user and have similar attributes (i.e. passed `attributes` do not conflict with
164
+ * the existing suggestion).
165
+ *
162
166
  * See {@glink features/collaboration/track-changes/track-changes-custom-features Integrating track changes with custom
163
167
  * features guide} to learn more about enabling your feature in the suggestion mode.
164
168
  *
@@ -189,12 +193,16 @@ export default class TrackChangesEditing extends Plugin {
189
193
  * Always call this method inside `model.change()` or `model.enqueueChange()` block to ensure that all operations performed by
190
194
  * this method are bound with one undo step.
191
195
  *
196
+ * If possible, the new suggestion will be joined with an existing suggestion (of the same type). This happens only if
197
+ * the suggestions are created by the same user and have similar attributes (i.e. passed `attributes` do not conflict with
198
+ * the existing suggestion).
199
+ *
192
200
  * See the {@glink features/collaboration/track-changes/track-changes-custom-features Integrating track changes with custom
193
201
  * features} guide to learn more about enabling your feature in the suggestion mode.
194
202
  *
195
203
  * @param ranges Ranges which got inserted.
196
204
  * @param subType Suggestion {@link module:track-changes/suggestion~Suggestion#subType} to set. Only suggestions
197
- * with the same sub type will be joined.
205
+ * with the same subtype will be joined.
198
206
  * @param attributes Custom suggestion attributes.
199
207
  * @returns {module:track-changes/suggestion~Suggestion} Suggestion created or expanded as a result of execution of this method.
200
208
  */
@@ -228,6 +236,10 @@ export default class TrackChangesEditing extends Plugin {
228
236
  * If an inline format suggestion is marked inside the local user's insertion suggestion, the change is applied directly
229
237
  * and no suggestion is created. This supports partial intersections with insertion suggestions.
230
238
  *
239
+ * If possible, the new suggestion will be joined with an existing suggestion (of the same type). This happens only if
240
+ * the suggestions are created by the same user and have similar attributes (i.e. passed `attributes` do not conflict with
241
+ * the existing suggestion).
242
+ *
231
243
  * See the {@glink features/collaboration/track-changes/track-changes-custom-features Integrating track changes with custom
232
244
  * features} guide to learn more about enabling your feature in the suggestion mode.
233
245
  *
@@ -301,6 +313,10 @@ export default class TrackChangesEditing extends Plugin {
301
313
  * and no suggestion is created. Note that this does not support partial intersections with insertion suggestions
302
314
  * (as opposed to inline format suggestions).
303
315
  *
316
+ * If possible, the new suggestion will be joined with an existing suggestion (of the same type). This happens only if
317
+ * the suggestions are created by the same user and have similar attributes (i.e. passed `attributes` do not conflict with
318
+ * the existing suggestion).
319
+ *
304
320
  * See the {@glink features/collaboration/track-changes/track-changes-custom-features Integrating track changes with custom
305
321
  * features} guide to learn more about enabling your feature in the suggestion mode.
306
322
  *
@@ -336,6 +352,10 @@ export default class TrackChangesEditing extends Plugin {
336
352
  * and no suggestion is created. Note that this does not support partial intersections with insertion suggestions
337
353
  * (as opposed to inline format suggestions).
338
354
  *
355
+ * If possible, the new suggestion will be joined with an existing suggestion (of the same type). This happens only if
356
+ * the suggestions are created by the same user and have similar attributes (i.e. passed `attributes` do not conflict with
357
+ * the existing suggestion).
358
+ *
339
359
  * See the {@glink features/collaboration/track-changes/track-changes-custom-features Integrating track changes with custom
340
360
  * features} guide to learn more about enabling your feature in the suggestion mode.
341
361
  *
@@ -369,6 +389,10 @@ export default class TrackChangesEditing extends Plugin {
369
389
  * Always call this method inside `model.change()` or `model.enqueueChange()` block to ensure that all operations performed by
370
390
  * this method are bound with one undo step.
371
391
  *
392
+ * If possible, the new suggestion will be joined with an existing suggestion (of the same type). This happens only if
393
+ * the suggestions are created by the same user and have similar attributes (i.e. passed `attributes` do not conflict with
394
+ * the existing suggestion).
395
+ *
372
396
  * See {@glink features/collaboration/track-changes/track-changes-custom-features Integrating track changes with custom
373
397
  * features guide} to learn more about enabling your feature in the suggestion mode.
374
398
  *
@@ -400,6 +424,10 @@ export default class TrackChangesEditing extends Plugin {
400
424
  * Always call this method inside `model.change()` or `model.enqueueChange()` block to ensure that all operations performed by
401
425
  * this method are bound with one undo step.
402
426
  *
427
+ * If possible, the new suggestion will be joined with an existing suggestion (of the same type). This happens only if
428
+ * the suggestions are created by the same user and have similar attributes (i.e. passed `attributes` do not conflict with
429
+ * the existing suggestion).
430
+ *
403
431
  * See the {@glink features/collaboration/track-changes/track-changes-custom-features Integrating track changes with custom
404
432
  * features} guide to learn more about enabling your feature in the suggestion mode.
405
433
  *