@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230710.1 → 0.0.0-nightly-20230712.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 (66) 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.d.ts +12 -0
  56. package/src/suggestiondescriptionfactory.js +1 -1
  57. package/src/trackchanges.js +1 -1
  58. package/src/trackchangesdata.d.ts +2 -2
  59. package/src/trackchangesdata.js +1 -1
  60. package/src/trackchangesediting.js +1 -1
  61. package/src/trackchangesui.js +1 -1
  62. package/src/ui/suggestioncontroller.js +1 -1
  63. package/src/ui/view/basesuggestionthreadview.js +1 -1
  64. package/src/ui/view/suggestionthreadview.js +1 -1
  65. package/src/utils/common-translations.js +1 -1
  66. package/src/utils/utils.js +1 -1
package/src/suggestion.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x52a7=['nodeBefore','decorate','_markerNames','removeAttribute','addMarkerName','accept','getMultiRangeId','next','@external','previous','getItems','getMarkerNames','_saved','getFirstRange','removeMarker','attributes','subType','data','get','type','change','isIntersectingWithRange','isExternal','getMarkers','map','head','size','substr','delete','filter','length','set','addRange','_model','onAccept','toJSON','onAttributesChange','_onDiscard','reduce','_onAccept','hasComments','start','isInContent','from','_onAttributesChange','getRanges','getRange','add','createdAt','markers','removeMarkers','getContainedElement','commentThread','discard','getFirstMarker','setAttribute','creator','author','isIntersecting'];(function(_0x4b40b5,_0x52a7be){const _0x4f608f=function(_0x2832fc){while(--_0x2832fc){_0x4b40b5['push'](_0x4b40b5['shift']());}};_0x4f608f(++_0x52a7be);}(_0x52a7,0x1a0));const _0x4f60=function(_0x4b40b5,_0x52a7be){_0x4b40b5=_0x4b40b5-0x0;let _0x4f608f=_0x52a7[_0x4b40b5];return _0x4f608f;};import{Element as _0x14f692}from'ckeditor5/src/engine';import{ObservableMixin as _0x565a7b,uid as _0x3325b6}from'ckeditor5/src/utils';import{cloneDeep as _0xe7ed31,isEqual as _0x5c9230,set as _0xa5bb23,unset as _0xff05fe}from'lodash-es';export default class u extends _0x565a7b(){constructor(_0x47c142,_0x203afe){super(),this['id']=_0x203afe['id'],this[_0x4f60('0x10')]=_0x203afe[_0x4f60('0x10')],this[_0x4f60('0xd')]=_0x203afe[_0x4f60('0xd')]||null,this[_0x4f60('0x36')]=_0x203afe[_0x4f60('0x36')],this['creator']=_0x203afe[_0x4f60('0x35')]||_0x203afe[_0x4f60('0x36')],this[_0x4f60('0x13')]=Boolean(_0x203afe[_0x4f60('0xc')]&&_0x203afe[_0x4f60('0xc')][_0x4f60('0x5')]),this[_0x4f60('0xe')]=null,this[_0x4f60('0x1e')]=_0x47c142,this['_onAccept']=_0x203afe[_0x4f60('0x1f')],this[_0x4f60('0x22')]=_0x203afe['onDiscard'],this[_0x4f60('0x29')]=_0x203afe[_0x4f60('0x21')],this[_0x4f60('0x3a')]=new Set(),this['createdAt']=null,this[_0x4f60('0x1c')]('authoredAt',null),this[_0x4f60('0x1c')](_0x4f60('0xc'),_0x203afe['attributes']||{}),this[_0x4f60('0x1c')](_0x4f60('0x6'),null),this[_0x4f60('0x1c')]('next',null),this['set']('commentThread',null),this[_0x4f60('0x1c')](_0x4f60('0x9'),!0x1),this[_0x4f60('0x39')](_0x4f60('0x2')),this['decorate'](_0x4f60('0x32'));}get[_0x4f60('0x16')](){let _0x2fd75d=this;for(;_0x2fd75d['previous'];)_0x2fd75d=_0x2fd75d[_0x4f60('0x6')];return _0x2fd75d;}get[_0x4f60('0x25')](){return!!this[_0x4f60('0x31')]&&this[_0x4f60('0x31')]['length']>0x0;}get['isMultiRange'](){if(0x0==this[_0x4f60('0x3a')][_0x4f60('0x17')])return!0x1;return 0x6==Array[_0x4f60('0x28')](this[_0x4f60('0x3a')])[0x0]['split'](':')['length'];}get[_0x4f60('0x27')](){return null!==this[_0x4f60('0x33')]();}[_0x4f60('0x1')](_0xa60128){this['_markerNames'][_0x4f60('0x2c')](_0xa60128);}[_0x4f60('0x8')](){return Array['from'](this['_markerNames']);}[_0x4f60('0x14')](){return this[_0x4f60('0x8')]()[_0x4f60('0x15')](_0xab3aae=>this['_model'][_0x4f60('0x2e')][_0x4f60('0xf')](_0xab3aae))[_0x4f60('0x1a')](_0x1120b0=>_0x1120b0);}[_0x4f60('0x33')](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this[_0x4f60('0x1e')][_0x4f60('0x11')](_0x113468=>{for(const _0x49c9c4 of this['getMarkers']())_0x113468[_0x4f60('0xb')](_0x49c9c4);}),this[_0x4f60('0x3a')]['clear']();}[_0x4f60('0xb')](_0x56175a){this['_model'][_0x4f60('0x11')](_0x508d81=>{_0x508d81[_0x4f60('0xb')](_0x56175a);}),this[_0x4f60('0x3a')][_0x4f60('0x19')](_0x56175a);}[_0x4f60('0x1d')](_0x4ed61c){const _0x54f110='suggestion:'+this[_0x4f60('0x10')]+':'+this[_0x4f60('0xd')]+':'+this['id']+':'+this[_0x4f60('0x35')]['id']+':'+u[_0x4f60('0x3')]();this[_0x4f60('0x1')](_0x54f110),this[_0x4f60('0x1e')]['change'](_0x5f351d=>{_0x5f351d['addMarker'](_0x54f110,{'range':_0x4ed61c,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4f60('0x12')](_0xb65d21){for(const _0x46f195 of this[_0x4f60('0x2a')]())if(_0x46f195[_0x4f60('0x37')](_0xb65d21))return!0x0;return!0x1;}[_0x4f60('0x2a')](){return this[_0x4f60('0x14')]()['map'](_0xe8bb2=>_0xe8bb2[_0x4f60('0x2b')]());}['getItems'](){return this[_0x4f60('0x2a')]()[_0x4f60('0x23')]((_0x43636a,_0x3456fe)=>[..._0x43636a,..._0x3456fe[_0x4f60('0x7')]()],[]);}[_0x4f60('0xa')](){var _0x597279;return(null===(_0x597279=this[_0x4f60('0x33')]())||void 0x0===_0x597279?void 0x0:_0x597279['getRange']())||null;}[_0x4f60('0x30')](){const _0xea5cd9=this[_0x4f60('0x2a')]();if(0x1!=_0xea5cd9[_0x4f60('0x1b')])return null;const _0x5886ab=_0xea5cd9[0x0],_0x1bd32e=_0x5886ab[_0x4f60('0x26')]['nodeAfter'],_0x5d1e6a=_0x5886ab['end'][_0x4f60('0x38')];return _0x1bd32e instanceof _0x14f692?_0x1bd32e!=_0x5d1e6a?null:_0x1bd32e:null;}[_0x4f60('0x2')](){this[_0x4f60('0x24')](this[_0x4f60('0x2a')](),this['data'],this[_0x4f60('0xc')]),this[_0x4f60('0x2f')]();}[_0x4f60('0x32')](){this[_0x4f60('0x22')](this['getRanges'](),this[_0x4f60('0xe')],this['attributes']),this[_0x4f60('0x2f')]();}['getAllAdjacentSuggestions'](){const _0x5a5ed0=[];let _0x122c07=this[_0x4f60('0x16')];for(;_0x122c07;)_0x5a5ed0['push'](_0x122c07),_0x122c07=_0x122c07[_0x4f60('0x4')];return _0x5a5ed0;}[_0x4f60('0x34')](_0x10e11a,_0x468280){const _0x10d8ef=_0xe7ed31(this[_0x4f60('0xc')]);_0xa5bb23(_0x10d8ef,_0x10e11a,_0x468280),_0x5c9230(_0x10d8ef,this[_0x4f60('0xc')])||(this[_0x4f60('0xc')]=_0x10d8ef,this[_0x4f60('0x29')](_0x10d8ef));}[_0x4f60('0x0')](_0x44dcea){const _0x304f40=_0xe7ed31(this['attributes']);_0xff05fe(_0x304f40,_0x44dcea),_0x5c9230(_0x304f40,this[_0x4f60('0xc')])||(this[_0x4f60('0xc')]=_0x304f40,this[_0x4f60('0x29')](this['attributes']));}[_0x4f60('0x20')](){return{'id':this['id'],'type':this[_0x4f60('0xd')]?this['type']+':'+this['subType']:this[_0x4f60('0x10')],'authorId':this['creator']['id'],'createdAt':this[_0x4f60('0x2d')],'hasComments':this['hasComments'],'data':this[_0x4f60('0xe')],'attributes':this[_0x4f60('0xc')]};}static[_0x4f60('0x3')](){return _0x3325b6()[_0x4f60('0x18')](0x1,0x5);}}
23
+ const _0x373b=['substr','clear','reduce','_model','isInContent','head','creator','getRanges','from','size','push','setAttribute','addMarkerName','change','_onAccept','author','getMultiRangeId','set','nodeBefore','decorate','next','getFirstMarker','getItems','_onDiscard','removeMarkers','onAttributesChange','addMarker','nodeAfter','previous','subType','removeMarker','_markerNames','discard','end','delete','commentThread','data','type','hasComments','_onAttributesChange','map','createdAt','getAllAdjacentSuggestions','suggestion:','length','getMarkerNames','isIntersecting','start','getFirstRange','attributes','authoredAt','isExternal','onAccept','markers','get','split','removeAttribute','isMultiRange','getMarkers','accept','toJSON'];(function(_0x55109e,_0x373b69){const _0x52f229=function(_0xcceb34){while(--_0xcceb34){_0x55109e['push'](_0x55109e['shift']());}};_0x52f229(++_0x373b69);}(_0x373b,0x7a));const _0x52f2=function(_0x55109e,_0x373b69){_0x55109e=_0x55109e-0x0;let _0x52f229=_0x373b[_0x55109e];return _0x52f229;};import{Element as _0x508f60}from'ckeditor5/src/engine';import{ObservableMixin as _0x1019d8,uid as _0x3594db}from'ckeditor5/src/utils';import{cloneDeep as _0x22f0d2,isEqual as _0x54955b,set as _0x53f616,unset as _0x838fe5}from'lodash-es';export default class u extends _0x1019d8(){constructor(_0xf2547e,_0x1c36d2){super(),this['id']=_0x1c36d2['id'],this[_0x52f2('0x25')]=_0x1c36d2[_0x52f2('0x25')],this[_0x52f2('0x1d')]=_0x1c36d2[_0x52f2('0x1d')]||null,this['author']=_0x1c36d2[_0x52f2('0xf')],this[_0x52f2('0x6')]=_0x1c36d2[_0x52f2('0x6')]||_0x1c36d2[_0x52f2('0xf')],this[_0x52f2('0x33')]=Boolean(_0x1c36d2[_0x52f2('0x31')]&&_0x1c36d2['attributes']['@external']),this[_0x52f2('0x24')]=null,this[_0x52f2('0x3')]=_0xf2547e,this['_onAccept']=_0x1c36d2[_0x52f2('0x34')],this[_0x52f2('0x17')]=_0x1c36d2['onDiscard'],this[_0x52f2('0x27')]=_0x1c36d2[_0x52f2('0x19')],this['_markerNames']=new Set(),this[_0x52f2('0x29')]=null,this[_0x52f2('0x11')](_0x52f2('0x32'),null),this[_0x52f2('0x11')](_0x52f2('0x31'),_0x1c36d2['attributes']||{}),this['set'](_0x52f2('0x1c'),null),this[_0x52f2('0x11')](_0x52f2('0x14'),null),this[_0x52f2('0x11')](_0x52f2('0x23'),null),this[_0x52f2('0x11')]('_saved',!0x1),this[_0x52f2('0x13')](_0x52f2('0x3b')),this[_0x52f2('0x13')](_0x52f2('0x20'));}get[_0x52f2('0x5')](){let _0x6a1a0e=this;for(;_0x6a1a0e['previous'];)_0x6a1a0e=_0x6a1a0e['previous'];return _0x6a1a0e;}get['hasComments'](){return!!this[_0x52f2('0x23')]&&this[_0x52f2('0x23')]['length']>0x0;}get[_0x52f2('0x39')](){if(0x0==this[_0x52f2('0x1f')][_0x52f2('0x9')])return!0x1;return 0x6==Array[_0x52f2('0x8')](this[_0x52f2('0x1f')])[0x0][_0x52f2('0x37')](':')[_0x52f2('0x2c')];}get[_0x52f2('0x4')](){return null!==this['getFirstMarker']();}[_0x52f2('0xc')](_0x4297a1){this[_0x52f2('0x1f')]['add'](_0x4297a1);}[_0x52f2('0x2d')](){return Array[_0x52f2('0x8')](this['_markerNames']);}[_0x52f2('0x3a')](){return this[_0x52f2('0x2d')]()[_0x52f2('0x28')](_0x50a11b=>this['_model'][_0x52f2('0x35')][_0x52f2('0x36')](_0x50a11b))['filter'](_0x46602b=>_0x46602b);}[_0x52f2('0x15')](){return this['getMarkers']()[0x0]||null;}[_0x52f2('0x18')](){this['_model'][_0x52f2('0xd')](_0x173d0d=>{for(const _0x3b6f2e of this[_0x52f2('0x3a')]())_0x173d0d[_0x52f2('0x1e')](_0x3b6f2e);}),this[_0x52f2('0x1f')][_0x52f2('0x1')]();}[_0x52f2('0x1e')](_0x8de1f7){this[_0x52f2('0x3')]['change'](_0x39ad92=>{_0x39ad92[_0x52f2('0x1e')](_0x8de1f7);}),this[_0x52f2('0x1f')][_0x52f2('0x22')](_0x8de1f7);}['addRange'](_0x38a945){const _0x40d90f=_0x52f2('0x2b')+this['type']+':'+this[_0x52f2('0x1d')]+':'+this['id']+':'+this[_0x52f2('0x6')]['id']+':'+u[_0x52f2('0x10')]();this[_0x52f2('0xc')](_0x40d90f),this['_model'][_0x52f2('0xd')](_0x3bdc5a=>{_0x3bdc5a[_0x52f2('0x1a')](_0x40d90f,{'range':_0x38a945,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3c39f3){for(const _0x320b21 of this[_0x52f2('0x7')]())if(_0x320b21[_0x52f2('0x2e')](_0x3c39f3))return!0x0;return!0x1;}[_0x52f2('0x7')](){return this['getMarkers']()[_0x52f2('0x28')](_0x95e371=>_0x95e371['getRange']());}[_0x52f2('0x16')](){return this['getRanges']()[_0x52f2('0x2')]((_0x1633bd,_0x1818c3)=>[..._0x1633bd,..._0x1818c3[_0x52f2('0x16')]()],[]);}[_0x52f2('0x30')](){var _0x31f197;return(null===(_0x31f197=this['getFirstMarker']())||void 0x0===_0x31f197?void 0x0:_0x31f197['getRange']())||null;}['getContainedElement'](){const _0xde4878=this[_0x52f2('0x7')]();if(0x1!=_0xde4878[_0x52f2('0x2c')])return null;const _0x59a5b8=_0xde4878[0x0],_0x1a28ab=_0x59a5b8[_0x52f2('0x2f')][_0x52f2('0x1b')],_0x18f3b7=_0x59a5b8[_0x52f2('0x21')][_0x52f2('0x12')];return _0x1a28ab instanceof _0x508f60?_0x1a28ab!=_0x18f3b7?null:_0x1a28ab:null;}[_0x52f2('0x3b')](){this[_0x52f2('0xe')](this['getRanges'](),this[_0x52f2('0x24')],this[_0x52f2('0x31')]),this['removeMarkers']();}[_0x52f2('0x20')](){this['_onDiscard'](this[_0x52f2('0x7')](),this[_0x52f2('0x24')],this[_0x52f2('0x31')]),this['removeMarkers']();}[_0x52f2('0x2a')](){const _0x2eae17=[];let _0x30116d=this[_0x52f2('0x5')];for(;_0x30116d;)_0x2eae17[_0x52f2('0xa')](_0x30116d),_0x30116d=_0x30116d[_0x52f2('0x14')];return _0x2eae17;}[_0x52f2('0xb')](_0xb14e0,_0x508496){const _0x43fe7c=_0x22f0d2(this[_0x52f2('0x31')]);_0x53f616(_0x43fe7c,_0xb14e0,_0x508496),_0x54955b(_0x43fe7c,this[_0x52f2('0x31')])||(this[_0x52f2('0x31')]=_0x43fe7c,this['_onAttributesChange'](_0x43fe7c));}[_0x52f2('0x38')](_0x265eaf){const _0x41c36a=_0x22f0d2(this[_0x52f2('0x31')]);_0x838fe5(_0x41c36a,_0x265eaf),_0x54955b(_0x41c36a,this['attributes'])||(this[_0x52f2('0x31')]=_0x41c36a,this[_0x52f2('0x27')](this['attributes']));}[_0x52f2('0x3c')](){return{'id':this['id'],'type':this[_0x52f2('0x1d')]?this[_0x52f2('0x25')]+':'+this[_0x52f2('0x1d')]:this['type'],'authorId':this[_0x52f2('0x6')]['id'],'createdAt':this[_0x52f2('0x29')],'hasComments':this[_0x52f2('0x26')],'data':this[_0x52f2('0x24')],'attributes':this['attributes']};}static[_0x52f2('0x10')](){return _0x3594db()[_0x52f2('0x0')](0x1,0x5);}}
@@ -149,3 +149,15 @@ export interface LabelCallbackObject {
149
149
  label: LabelCallback;
150
150
  priority: PriorityString;
151
151
  }
152
+ /**
153
+ * An intermediate state which is easier to operate on when consecutive suggestion
154
+ * ranges are traversed.
155
+ */
156
+ interface DescriptionItem {
157
+ type: 'text' | 'addEmptyContainer' | 'addObject' | 'removeEmptyContainer' | 'removeObject' | 'addContainer' | 'removeContainer';
158
+ add?: string;
159
+ remove?: string;
160
+ element?: Element;
161
+ quantity?: number;
162
+ }
163
+ export {};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3794=['skip','get','*Merge:*\x20%0','$text','*Remove:*\x20%0','isInContent','$textProxy','item','previousSibling','replace','_locale','name','elementEnd','deletion','Container','type','indexOf','_addDescriptionItems','isObject','checkChild','ELEMENT_SPACE','Object','text','normal','_resolveDescriptionItems','data','*Insert:*\x20%0','nextSibling','match','remove','length','_customCallbacks','removeContainer','insertion','getFirstRange','function','_schema','EmptyContainer','pop','_itemLabelsCallbacks','isEmpty','start','$1\x20$2','_itemLabels','getDescriptions','registerDescriptionCallback','add','removeObject','push','getItemLabel','*Split:*\x20%0','quantity','element'];(function(_0x127101,_0x3794eb){const _0x50eba4=function(_0x2dcace){while(--_0x2dcace){_0x127101['push'](_0x127101['shift']());}};_0x50eba4(++_0x3794eb);}(_0x3794,0xb1));const _0x50eb=function(_0x127101,_0x3794eb){_0x127101=_0x127101-0x0;let _0x50eba4=_0x3794[_0x127101];return _0x50eba4;};import{getTranslation as _0x5675e8}from'./utils/common-translations';import{priorities as _0x3c26d6,insertToPriorityArray as _0x2d4495}from'ckeditor5/src/utils';export default class m{constructor(_0x4bcc02,_0x57e010){this[_0x50eb('0xd')]=[],this[_0x50eb('0x19')]=new Map(),this[_0x50eb('0x15')]=[],this[_0x50eb('0x12')]=_0x4bcc02,this[_0x50eb('0x2d')]=_0x57e010;}[_0x50eb('0x1a')](_0x585602){const _0x23c605=[];for(let _0x588cdd=0x0;_0x588cdd<_0x585602['length'];_0x588cdd++){const _0xd03616=_0x585602[_0x588cdd];if(!_0xd03616[_0x50eb('0x28')])continue;let _0x187b9c=!0x1;for(const _0x5e4ca1 of this['_customCallbacks']){const _0x202b67=_0x5e4ca1(_0xd03616);if(_0x202b67){_0x50eb('0x32')in _0x202b67&&_0x23c605['push'](_0x202b67),_0x187b9c=!0x0;break;}}if(!_0x187b9c){this['_addDescriptionItems'](_0x23c605,_0xd03616);const _0x42bd4d=_0x585602[_0x588cdd+0x1];if(_0x42bd4d&&!_0xd03616[_0x50eb('0x10')]()['end']['isEqual'](_0x42bd4d[_0x50eb('0x10')]()[_0x50eb('0x17')])){const _0x357660=_0x23c605[_0x23c605[_0x50eb('0xc')]-0x1],_0x594950=_0x50eb('0xf')==_0xd03616['type']?_0x50eb('0x1c'):_0x50eb('0xb');_0x357660&&_0x50eb('0x4')==_0x357660[_0x50eb('0x32')]&&(_0x357660[_0x594950]+='\x0a');}}}return this['_resolveDescriptionItems'](_0x23c605);}[_0x50eb('0x1b')](_0x1ea6b0){this[_0x50eb('0xd')][_0x50eb('0x1e')](_0x1ea6b0);}['registerElementLabel'](_0x1c40f3,_0x3ead3b,_0x2f099c=_0x3c26d6[_0x50eb('0x5')]){_0x50eb('0x11')==typeof _0x1c40f3?_0x2d4495(this[_0x50eb('0x15')],{'matchingCallback':_0x1c40f3,'label':_0x3ead3b,'priority':_0x2f099c}):this['_itemLabels']['set'](_0x1c40f3,_0x3ead3b);}[_0x50eb('0x1f')](_0x5a254e,_0x464908=0x1){let _0x4c57a1;for(const _0x835d9e of this['_itemLabelsCallbacks'])if(_0x835d9e['matchingCallback'](_0x5a254e)){_0x4c57a1=_0x835d9e['label'];break;}return _0x4c57a1||(_0x4c57a1=this[_0x50eb('0x19')][_0x50eb('0x24')](_0x5a254e[_0x50eb('0x2e')])),_0x4c57a1?_0x4c57a1(_0x464908):0x1!==_0x464908?_0x464908+'\x20'+_0x5a254e[_0x50eb('0x2e')]+'s':''+_0x5a254e[_0x50eb('0x2e')];}[_0x50eb('0x34')](_0x47f6c7,_0x419494){const _0x30f1ba=_0x419494['getFirstRange']()['getWalker'](),_0x579515='insertion'==_0x419494[_0x50eb('0x32')]?_0x50eb('0x1c'):'remove';for(const _0x239a7e of _0x30f1ba){const _0x341708=_0x239a7e[_0x50eb('0x2a')],_0x47dc90=_0x47f6c7[_0x47f6c7[_0x50eb('0xc')]-0x1];if(_0x341708['is'](_0x50eb('0x29')))_0x47dc90&&_0x47dc90[_0x50eb('0x32')][_0x50eb('0x33')](_0x50eb('0x31'))>-0x1&&_0x47f6c7[_0x50eb('0x14')](),_0x47dc90&&_0x50eb('0x4')==_0x47dc90['type']?_0x47dc90[_0x579515]+=_0x341708[_0x50eb('0x7')]:_0x47f6c7[_0x50eb('0x1e')]({'type':_0x50eb('0x4'),'add':_0x50eb('0x1c')==_0x579515?_0x341708[_0x50eb('0x7')]:'','remove':_0x50eb('0xb')==_0x579515?_0x341708['data']:''});else{if(this[_0x50eb('0x12')][_0x50eb('0x0')](_0x341708)){const _0x3325f7=_0x341708;if(_0x47dc90&&_0x47dc90[_0x50eb('0x32')][_0x50eb('0x33')](_0x50eb('0x31'))>-0x1&&_0x47f6c7[_0x50eb('0x14')](),_0x50eb('0x2f')==_0x239a7e[_0x50eb('0x32')])continue;_0x47dc90&&_0x47dc90['type']==_0x579515+_0x50eb('0x3')&&_0x47dc90[_0x50eb('0x22')][_0x50eb('0x2e')]==_0x3325f7['name']?_0x47dc90['quantity']++:_0x47f6c7['push']({'type':_0x579515+_0x50eb('0x3'),'element':_0x3325f7,'quantity':0x1}),_0x30f1ba[_0x50eb('0x23')](_0x444906=>!('elementEnd'==_0x444906[_0x50eb('0x32')]&&_0x444906[_0x50eb('0x2a')]==_0x341708));}else{if(this[_0x50eb('0x12')][_0x50eb('0x1')](_0x341708,_0x50eb('0x26'))||_0x341708['is'](_0x50eb('0x22'),'softBreak')){const _0x488574=_0x341708;if('add'==_0x579515&&'elementStart'==_0x239a7e[_0x50eb('0x32')]||'remove'==_0x579515&&_0x50eb('0x2f')==_0x239a7e[_0x50eb('0x32')])continue;if(_0x47dc90&&-0x1==_0x47dc90['type'][_0x50eb('0x33')](_0x50eb('0x31'))){_0x50eb('0x4')==_0x47dc90[_0x50eb('0x32')]&&(_0x47dc90[_0x579515]+='\x0a');continue;}let _0x850d90;if(_0x850d90=_0x50eb('0x1c')==_0x579515?_0x488574[_0x50eb('0x9')]&&!this[_0x50eb('0x12')]['isObject'](_0x488574['nextSibling'])?_0x488574[_0x50eb('0x9')]:null:_0x488574[_0x50eb('0x2b')]&&!this[_0x50eb('0x12')][_0x50eb('0x0')](_0x488574[_0x50eb('0x2b')])?_0x488574[_0x50eb('0x2b')]:null,_0x488574['isEmpty']||_0x850d90&&_0x850d90[_0x50eb('0x16')]){const _0x3f3740=_0x850d90&&_0x850d90[_0x50eb('0x16')]?_0x850d90:_0x488574;_0x47dc90&&_0x47dc90[_0x50eb('0x32')]==_0x579515+_0x50eb('0x13')&&_0x47dc90[_0x50eb('0x22')][_0x50eb('0x2e')]==_0x3f3740['name']?_0x47dc90['quantity']++:_0x47f6c7[_0x50eb('0x1e')]({'type':_0x579515+_0x50eb('0x13'),'element':_0x3f3740,'quantity':0x1});}else _0x47f6c7['push']({'type':_0x579515+'Container','element':_0x488574});}}}}}[_0x50eb('0x6')](_0x489fe8){const _0x34d782=this[_0x50eb('0x2d')],_0x46d5f1=[];for(const _0x171736 of _0x489fe8){switch(_0x171736[_0x50eb('0x32')]){case'text':if(_0x171736['add']=_0x171736[_0x50eb('0x1c')][_0x50eb('0x2c')](/(\S)\u000A+(\S)/g,_0x50eb('0x18'))[_0x50eb('0x2c')](/\u000A/g,''),_0x171736[_0x50eb('0xb')]=_0x171736[_0x50eb('0xb')]['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')[_0x50eb('0x2c')](/\u000A/g,''),''!=_0x171736[_0x50eb('0x1c')]&&''!=_0x171736[_0x50eb('0xb')]){_0x46d5f1['push']({'type':_0x50eb('0x2c'),'content':_0x5675e8(_0x34d782,'REPLACE_TEXT',['\x22'+_0x171736[_0x50eb('0xb')]+'\x22','\x22'+_0x171736[_0x50eb('0x1c')]+'\x22'])});continue;}if(null!=_0x171736[_0x50eb('0x1c')][_0x50eb('0xa')](/^ +$/)){_0x46d5f1[_0x50eb('0x1e')]({'type':_0x50eb('0xf'),'content':_0x5675e8(_0x34d782,_0x50eb('0x8'),_0x5675e8(_0x34d782,'ELEMENT_SPACE',_0x171736['add']['length']))});continue;}if(null!=_0x171736[_0x50eb('0xb')][_0x50eb('0xa')](/^ +$/)){_0x46d5f1['push']({'type':_0x50eb('0x30'),'content':_0x5675e8(_0x34d782,_0x50eb('0x27'),_0x5675e8(_0x34d782,_0x50eb('0x2'),_0x171736[_0x50eb('0xb')]['length']))});continue;}if(''!=_0x171736[_0x50eb('0x1c')]){_0x46d5f1['push']({'type':'insertion','content':_0x5675e8(_0x34d782,_0x50eb('0x8'),'\x22'+_0x171736['add']+'\x22')});continue;}_0x46d5f1[_0x50eb('0x1e')]({'type':'deletion','content':_0x5675e8(_0x34d782,_0x50eb('0x27'),'\x22'+_0x171736[_0x50eb('0xb')]+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x46d5f1[_0x50eb('0x1e')]({'type':'insertion','content':_0x5675e8(_0x34d782,_0x50eb('0x8'),this['getItemLabel'](_0x171736['element'],_0x171736[_0x50eb('0x21')]))});continue;case'removeEmptyContainer':case _0x50eb('0x1d'):_0x46d5f1[_0x50eb('0x1e')]({'type':_0x50eb('0x30'),'content':_0x5675e8(_0x34d782,_0x50eb('0x27'),this['getItemLabel'](_0x171736['element'],_0x171736[_0x50eb('0x21')]))});continue;case'addContainer':_0x46d5f1[_0x50eb('0x1e')]({'type':_0x50eb('0xf'),'content':_0x5675e8(_0x34d782,_0x50eb('0x20'),this[_0x50eb('0x1f')](_0x171736[_0x50eb('0x22')],_0x171736[_0x50eb('0x21')]))});continue;case _0x50eb('0xe'):_0x46d5f1['push']({'type':_0x50eb('0x30'),'content':_0x5675e8(_0x34d782,_0x50eb('0x25'),this[_0x50eb('0x1f')](_0x171736['element'],_0x171736['quantity']))});continue;}_0x46d5f1['push'](_0x171736);}return _0x46d5f1;}}
23
+ const _0x5ab9=['$textProxy','text','deletion','end','_addDescriptionItems','quantity','data','_customCallbacks','isEmpty','addContainer','normal','elementStart','Container','function','_locale','replace','getItemLabel','Object','push','_schema','type','ELEMENT_SPACE','start','element','addObject','isObject','$1\x20$2','pop','*Insert:*\x20%0','get','removeEmptyContainer','remove','indexOf','*Merge:*\x20%0','skip','*Split:*\x20%0','previousSibling','match','*Remove:*\x20%0','_resolveDescriptionItems','name','isInContent','nextSibling','removeObject','_itemLabels','getFirstRange','length','softBreak','add','isEqual','getWalker','matchingCallback','elementEnd','set','insertion','EmptyContainer','_itemLabelsCallbacks'];(function(_0x594cbf,_0x5ab9b1){const _0x4c02bb=function(_0x5a134c){while(--_0x5a134c){_0x594cbf['push'](_0x594cbf['shift']());}};_0x4c02bb(++_0x5ab9b1);}(_0x5ab9,0x1db));const _0x4c02=function(_0x594cbf,_0x5ab9b1){_0x594cbf=_0x594cbf-0x0;let _0x4c02bb=_0x5ab9[_0x594cbf];return _0x4c02bb;};import{getTranslation as _0x5d2428}from'./utils/common-translations';import{priorities as _0x1be099,insertToPriorityArray as _0x8cbe45}from'ckeditor5/src/utils';export default class m{constructor(_0x1672d6,_0x120ae9){this[_0x4c02('0x2d')]=[],this[_0x4c02('0x19')]=new Map(),this[_0x4c02('0x25')]=[],this['_schema']=_0x1672d6,this['_locale']=_0x120ae9;}['getDescriptions'](_0xfa7781){const _0x464e23=[];for(let _0x366488=0x0;_0x366488<_0xfa7781[_0x4c02('0x1b')];_0x366488++){const _0x171681=_0xfa7781[_0x366488];if(!_0x171681[_0x4c02('0x16')])continue;let _0x5ada70=!0x1;for(const _0x3887e4 of this['_customCallbacks']){const _0x4c337f=_0x3887e4(_0x171681);if(_0x4c337f){_0x4c02('0x1')in _0x4c337f&&_0x464e23['push'](_0x4c337f),_0x5ada70=!0x0;break;}}if(!_0x5ada70){this[_0x4c02('0x2a')](_0x464e23,_0x171681);const _0x597555=_0xfa7781[_0x366488+0x1];if(_0x597555&&!_0x171681[_0x4c02('0x1a')]()[_0x4c02('0x29')][_0x4c02('0x1e')](_0x597555[_0x4c02('0x1a')]()[_0x4c02('0x3')])){const _0x1c8963=_0x464e23[_0x464e23['length']-0x1],_0x1168c4='insertion'==_0x171681['type']?_0x4c02('0x1d'):_0x4c02('0xc');_0x1c8963&&_0x4c02('0x27')==_0x1c8963[_0x4c02('0x1')]&&(_0x1c8963[_0x1168c4]+='\x0a');}}}return this['_resolveDescriptionItems'](_0x464e23);}['registerDescriptionCallback'](_0x3c7f84){this[_0x4c02('0x2d')][_0x4c02('0x38')](_0x3c7f84);}['registerElementLabel'](_0x4c229d,_0x44fff9,_0x36b3e1=_0x1be099[_0x4c02('0x30')]){_0x4c02('0x33')==typeof _0x4c229d?_0x8cbe45(this[_0x4c02('0x25')],{'matchingCallback':_0x4c229d,'label':_0x44fff9,'priority':_0x36b3e1}):this[_0x4c02('0x19')][_0x4c02('0x22')](_0x4c229d,_0x44fff9);}['getItemLabel'](_0x4c1039,_0x42b747=0x1){let _0x2d4708;for(const _0x8bf80a of this[_0x4c02('0x25')])if(_0x8bf80a[_0x4c02('0x20')](_0x4c1039)){_0x2d4708=_0x8bf80a['label'];break;}return _0x2d4708||(_0x2d4708=this['_itemLabels'][_0x4c02('0xa')](_0x4c1039['name'])),_0x2d4708?_0x2d4708(_0x42b747):0x1!==_0x42b747?_0x42b747+'\x20'+_0x4c1039['name']+'s':''+_0x4c1039[_0x4c02('0x15')];}[_0x4c02('0x2a')](_0x502514,_0x5211f1){const _0x17b4d8=_0x5211f1[_0x4c02('0x1a')]()[_0x4c02('0x1f')](),_0x4c063e=_0x4c02('0x23')==_0x5211f1['type']?_0x4c02('0x1d'):_0x4c02('0xc');for(const _0x19ac98 of _0x17b4d8){const _0x35b263=_0x19ac98['item'],_0x3cc0a9=_0x502514[_0x502514[_0x4c02('0x1b')]-0x1];if(_0x35b263['is'](_0x4c02('0x26')))_0x3cc0a9&&_0x3cc0a9[_0x4c02('0x1')][_0x4c02('0xd')](_0x4c02('0x32'))>-0x1&&_0x502514[_0x4c02('0x8')](),_0x3cc0a9&&_0x4c02('0x27')==_0x3cc0a9[_0x4c02('0x1')]?_0x3cc0a9[_0x4c063e]+=_0x35b263[_0x4c02('0x2c')]:_0x502514['push']({'type':_0x4c02('0x27'),'add':_0x4c02('0x1d')==_0x4c063e?_0x35b263[_0x4c02('0x2c')]:'','remove':_0x4c02('0xc')==_0x4c063e?_0x35b263[_0x4c02('0x2c')]:''});else{if(this[_0x4c02('0x0')]['isObject'](_0x35b263)){const _0x1e70ce=_0x35b263;if(_0x3cc0a9&&_0x3cc0a9[_0x4c02('0x1')][_0x4c02('0xd')](_0x4c02('0x32'))>-0x1&&_0x502514['pop'](),_0x4c02('0x21')==_0x19ac98[_0x4c02('0x1')])continue;_0x3cc0a9&&_0x3cc0a9[_0x4c02('0x1')]==_0x4c063e+'Object'&&_0x3cc0a9[_0x4c02('0x4')][_0x4c02('0x15')]==_0x1e70ce[_0x4c02('0x15')]?_0x3cc0a9['quantity']++:_0x502514['push']({'type':_0x4c063e+_0x4c02('0x37'),'element':_0x1e70ce,'quantity':0x1}),_0x17b4d8[_0x4c02('0xf')](_0x14d626=>!(_0x4c02('0x21')==_0x14d626[_0x4c02('0x1')]&&_0x14d626['item']==_0x35b263));}else{if(this[_0x4c02('0x0')]['checkChild'](_0x35b263,'$text')||_0x35b263['is'](_0x4c02('0x4'),_0x4c02('0x1c'))){const _0x21c02a=_0x35b263;if(_0x4c02('0x1d')==_0x4c063e&&_0x4c02('0x31')==_0x19ac98[_0x4c02('0x1')]||_0x4c02('0xc')==_0x4c063e&&_0x4c02('0x21')==_0x19ac98[_0x4c02('0x1')])continue;if(_0x3cc0a9&&-0x1==_0x3cc0a9[_0x4c02('0x1')][_0x4c02('0xd')]('Container')){_0x4c02('0x27')==_0x3cc0a9[_0x4c02('0x1')]&&(_0x3cc0a9[_0x4c063e]+='\x0a');continue;}let _0x865de7;if(_0x865de7=_0x4c02('0x1d')==_0x4c063e?_0x21c02a['nextSibling']&&!this['_schema']['isObject'](_0x21c02a[_0x4c02('0x17')])?_0x21c02a[_0x4c02('0x17')]:null:_0x21c02a[_0x4c02('0x11')]&&!this[_0x4c02('0x0')][_0x4c02('0x6')](_0x21c02a[_0x4c02('0x11')])?_0x21c02a[_0x4c02('0x11')]:null,_0x21c02a[_0x4c02('0x2e')]||_0x865de7&&_0x865de7[_0x4c02('0x2e')]){const _0x36a935=_0x865de7&&_0x865de7[_0x4c02('0x2e')]?_0x865de7:_0x21c02a;_0x3cc0a9&&_0x3cc0a9[_0x4c02('0x1')]==_0x4c063e+_0x4c02('0x24')&&_0x3cc0a9[_0x4c02('0x4')][_0x4c02('0x15')]==_0x36a935['name']?_0x3cc0a9[_0x4c02('0x2b')]++:_0x502514[_0x4c02('0x38')]({'type':_0x4c063e+_0x4c02('0x24'),'element':_0x36a935,'quantity':0x1});}else _0x502514[_0x4c02('0x38')]({'type':_0x4c063e+_0x4c02('0x32'),'element':_0x21c02a});}}}}}[_0x4c02('0x14')](_0x59bd1a){const _0x223d92=this[_0x4c02('0x34')],_0x5bbbe0=[];for(const _0x541c94 of _0x59bd1a){switch(_0x541c94['type']){case _0x4c02('0x27'):if(_0x541c94[_0x4c02('0x1d')]=_0x541c94[_0x4c02('0x1d')][_0x4c02('0x35')](/(\S)\u000A+(\S)/g,'$1\x20$2')[_0x4c02('0x35')](/\u000A/g,''),_0x541c94[_0x4c02('0xc')]=_0x541c94[_0x4c02('0xc')][_0x4c02('0x35')](/(\S)\u000A+(\S)/g,_0x4c02('0x7'))[_0x4c02('0x35')](/\u000A/g,''),''!=_0x541c94[_0x4c02('0x1d')]&&''!=_0x541c94['remove']){_0x5bbbe0[_0x4c02('0x38')]({'type':'replace','content':_0x5d2428(_0x223d92,'REPLACE_TEXT',['\x22'+_0x541c94[_0x4c02('0xc')]+'\x22','\x22'+_0x541c94[_0x4c02('0x1d')]+'\x22'])});continue;}if(null!=_0x541c94['add'][_0x4c02('0x12')](/^ +$/)){_0x5bbbe0[_0x4c02('0x38')]({'type':_0x4c02('0x23'),'content':_0x5d2428(_0x223d92,_0x4c02('0x9'),_0x5d2428(_0x223d92,_0x4c02('0x2'),_0x541c94[_0x4c02('0x1d')]['length']))});continue;}if(null!=_0x541c94[_0x4c02('0xc')][_0x4c02('0x12')](/^ +$/)){_0x5bbbe0['push']({'type':_0x4c02('0x28'),'content':_0x5d2428(_0x223d92,'*Remove:*\x20%0',_0x5d2428(_0x223d92,_0x4c02('0x2'),_0x541c94[_0x4c02('0xc')][_0x4c02('0x1b')]))});continue;}if(''!=_0x541c94[_0x4c02('0x1d')]){_0x5bbbe0[_0x4c02('0x38')]({'type':_0x4c02('0x23'),'content':_0x5d2428(_0x223d92,_0x4c02('0x9'),'\x22'+_0x541c94[_0x4c02('0x1d')]+'\x22')});continue;}_0x5bbbe0['push']({'type':_0x4c02('0x28'),'content':_0x5d2428(_0x223d92,_0x4c02('0x13'),'\x22'+_0x541c94[_0x4c02('0xc')]+'\x22')});continue;case'addEmptyContainer':case _0x4c02('0x5'):_0x5bbbe0[_0x4c02('0x38')]({'type':_0x4c02('0x23'),'content':_0x5d2428(_0x223d92,_0x4c02('0x9'),this['getItemLabel'](_0x541c94[_0x4c02('0x4')],_0x541c94['quantity']))});continue;case _0x4c02('0xb'):case _0x4c02('0x18'):_0x5bbbe0[_0x4c02('0x38')]({'type':_0x4c02('0x28'),'content':_0x5d2428(_0x223d92,_0x4c02('0x13'),this[_0x4c02('0x36')](_0x541c94['element'],_0x541c94[_0x4c02('0x2b')]))});continue;case _0x4c02('0x2f'):_0x5bbbe0['push']({'type':_0x4c02('0x23'),'content':_0x5d2428(_0x223d92,_0x4c02('0x10'),this[_0x4c02('0x36')](_0x541c94[_0x4c02('0x4')],_0x541c94[_0x4c02('0x2b')]))});continue;case'removeContainer':_0x5bbbe0[_0x4c02('0x38')]({'type':'deletion','content':_0x5d2428(_0x223d92,_0x4c02('0xe'),this[_0x4c02('0x36')](_0x541c94[_0x4c02('0x4')],_0x541c94[_0x4c02('0x2b')]))});continue;}_0x5bbbe0[_0x4c02('0x38')](_0x541c94);}return _0x5bbbe0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x415e=['addSuggestion','pluginName','Comments','addSuggestionData','adapter','editor','get','plugins'];(function(_0x5f3a43,_0x415e93){var _0x179539=function(_0x205320){while(--_0x205320){_0x5f3a43['push'](_0x5f3a43['shift']());}};_0x179539(++_0x415e93);}(_0x415e,0x1f4));var _0x1795=function(_0x5f3a43,_0x415e93){_0x5f3a43=_0x5f3a43-0x0;var _0x179539=_0x415e[_0x5f3a43];return _0x179539;};import{Plugin as _0x3f1bbf}from'ckeditor5/src/core';import _0x59d3f4 from'./trackchangesui';import _0x187a8 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x3f1bbf{static get['requires'](){return[_0x187a8,_0x59d3f4,_0x1795('0x6')];}static get[_0x1795('0x5')](){return'TrackChanges';}set[_0x1795('0x0')](_0x1a5ef4){this['editor'][_0x1795('0x3')]['get'](_0x187a8)['adapter']=_0x1a5ef4;}get[_0x1795('0x0')](){return this[_0x1795('0x1')][_0x1795('0x3')][_0x1795('0x2')](_0x187a8)['adapter'];}[_0x1795('0x4')](_0x1ad97c){return this[_0x1795('0x1')][_0x1795('0x3')][_0x1795('0x2')](_0x187a8)[_0x1795('0x7')](_0x1ad97c);}['getSuggestions']({skipNotAttached:_0x1ac849=!0x1,toJSON:_0x225368=!0x1}={}){return this[_0x1795('0x1')]['plugins'][_0x1795('0x2')](_0x187a8)['getSuggestions']({'skipNotAttached':_0x1ac849,'toJSON':_0x225368});}['getSuggestion'](_0x5b2f48){return this[_0x1795('0x1')][_0x1795('0x3')][_0x1795('0x2')](_0x187a8)['getSuggestion'](_0x5b2f48);}}
23
+ var _0x56e4=['addSuggestionData','addSuggestion','getSuggestion','TrackChanges','editor','get','getSuggestions','plugins','requires','Comments','adapter','pluginName'];(function(_0x4157d7,_0x56e408){var _0x15b437=function(_0x4dbaea){while(--_0x4dbaea){_0x4157d7['push'](_0x4157d7['shift']());}};_0x15b437(++_0x56e408);}(_0x56e4,0x176));var _0x15b4=function(_0x4157d7,_0x56e408){_0x4157d7=_0x4157d7-0x0;var _0x15b437=_0x56e4[_0x4157d7];return _0x15b437;};import{Plugin as _0x3b7864}from'ckeditor5/src/core';import _0x21fc7e from'./trackchangesui';import _0x396787 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x3b7864{static get[_0x15b4('0x6')](){return[_0x396787,_0x21fc7e,_0x15b4('0x7')];}static get[_0x15b4('0x9')](){return _0x15b4('0x1');}set[_0x15b4('0x8')](_0xe1a3b4){this['editor'][_0x15b4('0x5')][_0x15b4('0x3')](_0x396787)['adapter']=_0xe1a3b4;}get[_0x15b4('0x8')](){return this[_0x15b4('0x2')][_0x15b4('0x5')][_0x15b4('0x3')](_0x396787)['adapter'];}[_0x15b4('0xb')](_0x19adc9){return this['editor'][_0x15b4('0x5')]['get'](_0x396787)[_0x15b4('0xa')](_0x19adc9);}[_0x15b4('0x4')]({skipNotAttached:_0x515965=!0x1,toJSON:_0xc88655=!0x1}={}){return this['editor']['plugins'][_0x15b4('0x3')](_0x396787)[_0x15b4('0x4')]({'skipNotAttached':_0x515965,'toJSON':_0xc88655});}[_0x15b4('0x0')](_0x4987b4){return this[_0x15b4('0x2')][_0x15b4('0x5')][_0x15b4('0x3')](_0x396787)[_0x15b4('0x0')](_0x4987b4);}}
@@ -26,12 +26,12 @@ export default class TrackChangesData extends Plugin {
26
26
  * @param options Options for {@link module:engine/controller/datacontroller~DataController#get}.
27
27
  * @returns A promise which resolves with the output data.
28
28
  */
29
- getDataWithAcceptedSuggestions(options: Record<string, unknown>): Promise<string>;
29
+ getDataWithAcceptedSuggestions(options: Record<string, unknown>): Promise<string | Record<string, string>>;
30
30
  /**
31
31
  * Returns the editor data with all the suggestions discarded.
32
32
  *
33
33
  * @param options Options for {@link module:engine/controller/datacontroller~DataController#get}.
34
34
  * @returns A promise which resolves with the output data.
35
35
  */
36
- getDataWithDiscardedSuggestions(options: Record<string, unknown>): Promise<string>;
36
+ getDataWithDiscardedSuggestions(options: Record<string, unknown>): Promise<string | Record<string, string>>;
37
37
  }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1ea6=['WebSocketGateway','getSuggestions','builtinPlugins','context','result','execute','requires','model','toolbar','includes','DocumentOutline','track-changes-data-invalid-editor-creator','WordCount','editorCreator','_context','addUser','config','has','filter','init','appendChild','div','TrackChangesEditing','Autosave','extraPlugins','string','plugins','end','pluginName','constructor','CommentsRepository','find','every','Pagination','map','get','destroy','from','acceptAllSuggestions','trackChangesData.editorCreator','editor','create','names','set','trackChangesData','data','users','RevisionTracker','addSuggestionData','tokenUrl','concat','push','initialData','getDataWithDiscardedSuggestions','discardAllSuggestions','getRootNames','useAnonymousUser','getUser','cloudServices','TrackChangesDataGetter'];(function(_0x3e30bd,_0x1ea6dc){const _0x3a0706=function(_0x56d66c){while(--_0x56d66c){_0x3e30bd['push'](_0x3e30bd['shift']());}};_0x3a0706(++_0x1ea6dc);}(_0x1ea6,0x169));const _0x3a07=function(_0x3e30bd,_0x1ea6dc){_0x3e30bd=_0x3e30bd-0x0;let _0x3a0706=_0x1ea6[_0x3e30bd];return _0x3a0706;};import{Plugin as _0x1c3ff8}from'ckeditor5/src/core';import{CKEditorError as _0x3ab1b2}from'ckeditor5/src/utils';import _0x15a69c from'./trackchangesediting';const C=[_0x3a07('0x33'),_0x3a07('0x2'),_0x3a07('0x7')],w=[_0x3a07('0x3b'),_0x3a07('0x2e'),_0x3a07('0x16'),_0x3a07('0xb'),_0x3a07('0x20'),_0x3a07('0x9')];export default class T extends _0x1c3ff8{static get['requires'](){return[_0x15a69c];}static get[_0x3a07('0x1b')](){return'TrackChangesData';}[_0x3a07('0x12')](){const _0x57d425=this[_0x3a07('0x27')];if(_0x57d425[_0x3a07('0xf')]['define'](_0x3a07('0x26'),_0x38e6b2=>_0x57d425[_0x3a07('0x1c')][_0x3a07('0x28')]('',_0x38e6b2)),'function'!=typeof _0x57d425[_0x3a07('0xf')][_0x3a07('0x22')](_0x3a07('0x2b'))['editorCreator'])throw new _0x3ab1b2(_0x3a07('0xa'));}['getDataWithAcceptedSuggestions'](_0x457354){return P(this[_0x3a07('0x27')],!0x0,_0x457354);}[_0x3a07('0x34')](_0x42a5c2){return P(this['editor'],!0x1,_0x42a5c2);}}class D extends _0x1c3ff8{static get[_0x3a07('0x1b')](){return _0x3a07('0x3a');}constructor(_0x70c1){super(_0x70c1),this[_0x3a07('0x3')]=_0x3a07('0x1a');}[_0x3a07('0x12')](){this['editor'][_0x3a07('0x19')][_0x3a07('0x22')](_0x3a07('0x1d'))['_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[_0x3a07('0x27')][_0x3a07('0x19')][_0x3a07('0x22')](_0x3a07('0x15'))['_adapter']=null;}}async function P(_0x98272d,_0xdd82ce,_0x43c61c){const _0x2982f4=function(_0x58288b){const _0x227f9d={};for(const _0x143ff2 of _0x58288b[_0x3a07('0xf')][_0x3a07('0x29')]())C['includes'](_0x143ff2)||(_0x227f9d[_0x143ff2]=_0x58288b[_0x3a07('0xf')][_0x3a07('0x22')](_0x143ff2));_0x227f9d[_0x3a07('0x39')]&&_0x227f9d[_0x3a07('0x39')]['tokenUrl']&&delete _0x227f9d[_0x3a07('0x39')][_0x3a07('0x30')];const _0x3ac8d2=_0x58288b[_0x3a07('0x1c')][_0x3a07('0x1')]||[],_0x484bc2=_0x227f9d['extraPlugins']||[];delete _0x227f9d[_0x3a07('0x17')];const _0x3dbcde=_0x58288b[_0x3a07('0xd')][_0x3a07('0xf')]['get'](_0x3a07('0x19'))||[],_0x555a99=_0x3ac8d2[_0x3a07('0x31')](_0x227f9d[_0x3a07('0x19')])['concat'](_0x484bc2)[_0x3a07('0x31')](_0x3dbcde)[_0x3a07('0x21')](_0x29aa8b=>_0x3a07('0x18')==typeof _0x29aa8b?_0x3ac8d2[_0x3a07('0x1e')](_0x2b8138=>_0x2b8138[_0x3a07('0x1b')]==_0x29aa8b):_0x29aa8b),_0x330321=Array[_0x3a07('0x24')](new Set(_0x555a99)),_0x597c80=new Map();return _0x227f9d[_0x3a07('0x19')]=_0x330321[_0x3a07('0x11')](_0x29d7d9=>v(_0x29d7d9,_0x597c80)),_0x227f9d[_0x3a07('0x19')]['push'](_0x15a69c),_0x227f9d[_0x3a07('0x19')][_0x3a07('0x32')](D),_0x227f9d;}(_0x98272d),_0x148e73=document['createDocumentFragment'](),_0x1d03ea=_0x98272d['config'][_0x3a07('0x22')]('trackChangesData')[_0x3a07('0xc')],_0xac95f1=await _0x1d03ea(_0x2982f4,()=>function(_0x177f5){const _0x8ccdbe=document['createElement'](_0x3a07('0x14'));return _0x177f5[_0x3a07('0x13')](_0x8ccdbe),_0x8ccdbe;}(_0x148e73));!function(_0x5621c6,_0x1694e4){const _0x50c835=_0x5621c6[_0x3a07('0x6')]['document'][_0x3a07('0x36')]()['reduce']((_0x28b3d2,_0x75dcee)=>(_0x28b3d2[_0x75dcee]=_0x5621c6[_0x3a07('0x2c')][_0x3a07('0x22')]({'rootName':_0x75dcee}),_0x28b3d2),{}),_0x456ec7=_0x5621c6['plugins']['get']('Users')[_0x3a07('0x2d')][_0x3a07('0x21')](_0xf169cf=>({'id':_0xf169cf['id'],'name':_0xf169cf['name']})),_0x2ce9d4=_0x5621c6[_0x3a07('0x19')][_0x3a07('0x22')]('TrackChangesEditing')[_0x3a07('0x0')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x43ed0f=_0x1694e4[_0x3a07('0x19')][_0x3a07('0x22')]('Users'),_0x39d4fc=_0x1694e4[_0x3a07('0x19')][_0x3a07('0x22')](_0x3a07('0x15'));for(const _0x375466 of _0x456ec7)_0x43ed0f[_0x3a07('0x38')](_0x375466['id'])||_0x43ed0f[_0x3a07('0xe')](_0x375466);_0x43ed0f['me']||_0x43ed0f[_0x3a07('0x37')]();for(const _0x1b0270 of _0x2ce9d4)_0x39d4fc[_0x3a07('0x2f')](_0x1b0270);_0x1694e4[_0x3a07('0x2c')][_0x3a07('0x2a')](_0x50c835);}(_0x98272d,_0xac95f1),_0xac95f1[_0x3a07('0x4')](_0xdd82ce?_0x3a07('0x25'):_0x3a07('0x35'));const _0x4e84c7=_0xac95f1['data'][_0x3a07('0x22')](_0x43c61c);return await _0xac95f1[_0x3a07('0x23')](),_0x4e84c7;}function v(_0x58d0ab,_0x528485){const _0x47a982='function'==typeof _0x58d0ab?_0x58d0ab[_0x3a07('0x1b')]||_0x58d0ab['name']:_0x58d0ab;if(_0x528485[_0x3a07('0x10')](_0x47a982))return _0x528485[_0x3a07('0x22')](_0x47a982);if(_0x528485[_0x3a07('0x2a')](_0x47a982,!0x0),_0x47a982&&w[_0x3a07('0x8')](_0x47a982))return _0x528485[_0x3a07('0x2a')](_0x47a982,!0x1),!0x1;if(!_0x58d0ab[_0x3a07('0x5')])return _0x528485[_0x3a07('0x2a')](_0x47a982,!0x0),!0x0;const _0xda82ff=_0x58d0ab['requires'][_0x3a07('0x1f')](_0x3a812e=>v(_0x3a812e,_0x528485));return _0x528485[_0x3a07('0x2a')](_0x47a982,_0xda82ff),_0xda82ff;}
23
+ const _0x5773=['model','plugins','Pagination','TrackChangesEditing','useAnonymousUser','trackChangesData','getFullData','_adapter','div','addUser','result','rootsAttributes','getRootsAttributes','function','requires','editor','getRootNames','getSuggestions','data','getUser','execute','set','createElement','createDocumentFragment','Users','config','pluginName','get','editorCreator','acceptAllSuggestions','track-changes-data-invalid-editor-creator','appendChild','addSuggestionData','document','end','reduce','trackChangesData.editorCreator','users','init','create','TrackChangesDataGetter'];(function(_0x216f51,_0x5773d7){const _0x5dfb6b=function(_0x362068){while(--_0x362068){_0x216f51['push'](_0x216f51['shift']());}};_0x5dfb6b(++_0x5773d7);}(_0x5773,0xf0));const _0x5dfb=function(_0x216f51,_0x5773d7){_0x216f51=_0x216f51-0x0;let _0x5dfb6b=_0x5773[_0x216f51];return _0x5dfb6b;};import{Plugin as _0x187b28}from'ckeditor5/src/core';import{CKEditorError as _0x1f775b}from'ckeditor5/src/utils';import _0x285b94 from'./trackchangesediting';import{sanitizeEditorConfig as _0x219541}from'ckeditor5-collaboration/src/collaboration-core';const w=[_0x5dfb('0x8')];export default class T extends _0x187b28{static get[_0x5dfb('0x14')](){return[_0x285b94];}static get[_0x5dfb('0x20')](){return'TrackChangesData';}[_0x5dfb('0x3')](){const _0x21c5ee=this[_0x5dfb('0x15')];if(_0x21c5ee[_0x5dfb('0x1f')]['define'](_0x5dfb('0x1'),_0x5217ae=>{const _0x45da08=_0x21c5ee[_0x5dfb('0x6')][_0x5dfb('0x27')]['getRootNames']()[_0x5dfb('0x0')]((_0x2a7a8f,_0x5c94f3)=>(_0x2a7a8f[_0x5c94f3]='',_0x2a7a8f),{});return _0x21c5ee['constructor'][_0x5dfb('0x4')](_0x45da08,_0x5217ae);}),_0x5dfb('0x13')!=typeof _0x21c5ee[_0x5dfb('0x1f')][_0x5dfb('0x21')](_0x5dfb('0xb'))[_0x5dfb('0x22')])throw new _0x1f775b(_0x5dfb('0x24'));}['getDataWithAcceptedSuggestions'](_0x569746){return v(this['editor'],!0x0,_0x569746);}['getDataWithDiscardedSuggestions'](_0x53a330){return v(this[_0x5dfb('0x15')],!0x1,_0x53a330);}}class P extends _0x187b28{static get[_0x5dfb('0x20')](){return _0x5dfb('0x5');}constructor(_0x3d28a9){super(_0x3d28a9),this[_0x5dfb('0x10')]=_0x5dfb('0x28');}[_0x5dfb('0x3')](){this[_0x5dfb('0x15')][_0x5dfb('0x7')][_0x5dfb('0x21')]('CommentsRepository')[_0x5dfb('0xd')]={'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[_0x5dfb('0x15')]['plugins']['get'](_0x5dfb('0x9'))[_0x5dfb('0xd')]=null;}}function D(_0x4521ed){return void 0x0!==_0x4521ed[_0x5dfb('0x12')];}async function v(_0x5c379f,_0x2e9030,_0x4b3e72){const _0x3273ce=_0x219541(_0x5c379f,w);_0x3273ce[_0x5dfb('0x7')]['push'](_0x285b94,P),_0x3273ce[_0x5dfb('0x11')]=D(_0x5c379f)?_0x5c379f[_0x5dfb('0x12')]():void 0x0;const _0x1149ae=document[_0x5dfb('0x1d')](),_0x51db20=_0x5c379f[_0x5dfb('0x1f')]['get'](_0x5dfb('0xb'))[_0x5dfb('0x22')],_0x5687b7=await _0x51db20(_0x3273ce,()=>function(_0x58c5e5){const _0x4e9591=document[_0x5dfb('0x1c')](_0x5dfb('0xe'));return _0x58c5e5[_0x5dfb('0x25')](_0x4e9591),_0x4e9591;}(_0x1149ae));!function(_0x270a9c,_0x300e54){const _0x3b4e5a=_0x270a9c[_0x5dfb('0x6')][_0x5dfb('0x27')][_0x5dfb('0x16')]()[_0x5dfb('0x0')]((_0x200bd9,_0x246b46)=>(_0x200bd9[_0x246b46]=_0x270a9c[_0x5dfb('0x18')]['get']({'rootName':_0x246b46}),_0x200bd9),{}),_0x4eac5b=_0x270a9c[_0x5dfb('0x7')][_0x5dfb('0x21')](_0x5dfb('0x1e'))[_0x5dfb('0x2')]['map'](_0x40640d=>({'id':_0x40640d['id'],'name':_0x40640d['name']})),_0xe63bf8=_0x270a9c[_0x5dfb('0x7')][_0x5dfb('0x21')](_0x5dfb('0x9'))[_0x5dfb('0x17')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x499112=_0x300e54['plugins'][_0x5dfb('0x21')](_0x5dfb('0x1e')),_0x127e79=_0x300e54[_0x5dfb('0x7')]['get'](_0x5dfb('0x9'));for(const _0x43cb0a of _0x4eac5b)_0x499112[_0x5dfb('0x19')](_0x43cb0a['id'])||_0x499112[_0x5dfb('0xf')](_0x43cb0a);_0x499112['me']||_0x499112[_0x5dfb('0xa')]();for(const _0x999beb of _0xe63bf8)_0x127e79[_0x5dfb('0x26')](_0x999beb);_0x300e54[_0x5dfb('0x18')][_0x5dfb('0x1b')](_0x3b4e5a);}(_0x5c379f,_0x5687b7),_0x5687b7[_0x5dfb('0x1a')](_0x2e9030?_0x5dfb('0x23'):'discardAllSuggestions');const _0x245c66=D(_0x5687b7)?_0x5687b7[_0x5dfb('0xc')](_0x4b3e72):_0x5687b7[_0x5dfb('0x18')]['get'](_0x4b3e72);return await _0x5687b7['destroy'](),_0x245c66;}