@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230726.0 → 0.0.0-nightly-20230727.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.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/src/suggestion.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d4c=['discard','subType','_onDiscard','data','_saved','createdAt','get','filter','setAttribute','map','removeAttribute','start','accept','isIntersectingWithRange','change','getFirstRange','substr','getContainedElement','removeMarkers','getAllAdjacentSuggestions','isIntersecting','onAttributesChange','from','addMarkerName','authoredAt','nodeAfter','@external','_onAttributesChange','next','_model','getMultiRangeId','getMarkerNames','clear','_onAccept','getMarkers','hasComments','length','getFirstMarker','set','author','getItems','toJSON','type','previous','markers','commentThread','isExternal','getRange','onDiscard','split','onAccept','removeMarker','_markerNames','creator','getRanges','add','end','decorate','addRange','attributes','head'];(function(_0x125670,_0x3d4cd0){const _0xae3725=function(_0x222f48){while(--_0x222f48){_0x125670['push'](_0x125670['shift']());}};_0xae3725(++_0x3d4cd0);}(_0x3d4c,0xb1));const _0xae37=function(_0x125670,_0x3d4cd0){_0x125670=_0x125670-0x0;let _0xae3725=_0x3d4c[_0x125670];return _0xae3725;};import{Element as _0x419332}from'ckeditor5/src/engine';import{ObservableMixin as _0x3c5691,uid as _0x492a2f}from'ckeditor5/src/utils';import{cloneDeep as _0x3bfeea,isEqual as _0x10f4b5,set as _0x49b8f5,unset as _0xfad003}from'lodash-es';export default class u extends _0x3c5691(){constructor(_0x4bb824,_0x3490dd){super(),this['id']=_0x3490dd['id'],this[_0xae37('0x30')]=_0x3490dd[_0xae37('0x30')],this[_0xae37('0x7')]=_0x3490dd[_0xae37('0x7')]||null,this['author']=_0x3490dd[_0xae37('0x2d')],this['creator']=_0x3490dd[_0xae37('0x3b')]||_0x3490dd[_0xae37('0x2d')],this[_0xae37('0x34')]=Boolean(_0x3490dd[_0xae37('0x4')]&&_0x3490dd[_0xae37('0x4')][_0xae37('0x20')]),this[_0xae37('0x9')]=null,this[_0xae37('0x23')]=_0x4bb824,this[_0xae37('0x27')]=_0x3490dd[_0xae37('0x38')],this[_0xae37('0x8')]=_0x3490dd[_0xae37('0x36')],this['_onAttributesChange']=_0x3490dd[_0xae37('0x1b')],this['_markerNames']=new Set(),this[_0xae37('0xb')]=null,this[_0xae37('0x2c')](_0xae37('0x1e'),null),this[_0xae37('0x2c')]('attributes',_0x3490dd[_0xae37('0x4')]||{}),this[_0xae37('0x2c')](_0xae37('0x31'),null),this['set'](_0xae37('0x22'),null),this[_0xae37('0x2c')](_0xae37('0x33'),null),this['set'](_0xae37('0xa'),!0x1),this[_0xae37('0x2')]('accept'),this['decorate']('discard');}get[_0xae37('0x5')](){let _0xdcb861=this;for(;_0xdcb861[_0xae37('0x31')];)_0xdcb861=_0xdcb861['previous'];return _0xdcb861;}get[_0xae37('0x29')](){return!!this[_0xae37('0x33')]&&this[_0xae37('0x33')][_0xae37('0x2a')]>0x0;}get['isMultiRange'](){if(0x0==this[_0xae37('0x3a')]['size'])return!0x1;return 0x6==Array[_0xae37('0x1c')](this['_markerNames'])[0x0][_0xae37('0x37')](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}[_0xae37('0x1d')](_0x211862){this[_0xae37('0x3a')][_0xae37('0x0')](_0x211862);}[_0xae37('0x25')](){return Array['from'](this[_0xae37('0x3a')]);}[_0xae37('0x28')](){return this[_0xae37('0x25')]()[_0xae37('0xf')](_0x3b9f76=>this[_0xae37('0x23')][_0xae37('0x32')][_0xae37('0xc')](_0x3b9f76))[_0xae37('0xd')](_0x3e5ea9=>_0x3e5ea9);}[_0xae37('0x2b')](){return this[_0xae37('0x28')]()[0x0]||null;}['removeMarkers'](){this[_0xae37('0x23')][_0xae37('0x14')](_0xea2386=>{for(const _0x550b77 of this[_0xae37('0x28')]())_0xea2386['removeMarker'](_0x550b77);}),this['_markerNames'][_0xae37('0x26')]();}[_0xae37('0x39')](_0x27dbdb){this[_0xae37('0x23')][_0xae37('0x14')](_0x3dcbb8=>{_0x3dcbb8['removeMarker'](_0x27dbdb);}),this[_0xae37('0x3a')]['delete'](_0x27dbdb);}[_0xae37('0x3')](_0x44badd){const _0x1a2936='suggestion:'+this[_0xae37('0x30')]+':'+this[_0xae37('0x7')]+':'+this['id']+':'+this[_0xae37('0x3b')]['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x1a2936),this['_model'][_0xae37('0x14')](_0x25529c=>{_0x25529c['addMarker'](_0x1a2936,{'range':_0x44badd,'usingOperation':!0x0,'affectsData':!0x0});});}[_0xae37('0x13')](_0x42811c){for(const _0x343797 of this['getRanges']())if(_0x343797[_0xae37('0x1a')](_0x42811c))return!0x0;return!0x1;}[_0xae37('0x3c')](){return this['getMarkers']()['map'](_0xa3df0=>_0xa3df0[_0xae37('0x35')]());}['getItems'](){return this[_0xae37('0x3c')]()['reduce']((_0x469cbb,_0x43adee)=>[..._0x469cbb,..._0x43adee[_0xae37('0x2e')]()],[]);}[_0xae37('0x15')](){var _0x3a5eaf;return(null===(_0x3a5eaf=this[_0xae37('0x2b')]())||void 0x0===_0x3a5eaf?void 0x0:_0x3a5eaf[_0xae37('0x35')]())||null;}[_0xae37('0x17')](){const _0x184dd1=this['getRanges']();if(0x1!=_0x184dd1['length'])return null;const _0x1b963c=_0x184dd1[0x0],_0x4a114f=_0x1b963c[_0xae37('0x11')][_0xae37('0x1f')],_0x391659=_0x1b963c[_0xae37('0x1')]['nodeBefore'];return _0x4a114f instanceof _0x419332?_0x4a114f!=_0x391659?null:_0x4a114f:null;}[_0xae37('0x12')](){this[_0xae37('0x27')](this[_0xae37('0x3c')](),this['data'],this[_0xae37('0x4')]),this['removeMarkers']();}[_0xae37('0x6')](){this[_0xae37('0x8')](this[_0xae37('0x3c')](),this[_0xae37('0x9')],this['attributes']),this[_0xae37('0x18')]();}[_0xae37('0x19')](){const _0xb4f284=[];let _0x358452=this['head'];for(;_0x358452;)_0xb4f284['push'](_0x358452),_0x358452=_0x358452['next'];return _0xb4f284;}[_0xae37('0xe')](_0x7607fe,_0x1a8474){const _0x6bf1a=_0x3bfeea(this[_0xae37('0x4')]);_0x49b8f5(_0x6bf1a,_0x7607fe,_0x1a8474),_0x10f4b5(_0x6bf1a,this['attributes'])||(this[_0xae37('0x4')]=_0x6bf1a,this[_0xae37('0x21')](_0x6bf1a));}[_0xae37('0x10')](_0x492aaf){const _0x527cda=_0x3bfeea(this[_0xae37('0x4')]);_0xfad003(_0x527cda,_0x492aaf),_0x10f4b5(_0x527cda,this[_0xae37('0x4')])||(this['attributes']=_0x527cda,this[_0xae37('0x21')](this[_0xae37('0x4')]));}[_0xae37('0x2f')](){return{'id':this['id'],'type':this[_0xae37('0x7')]?this[_0xae37('0x30')]+':'+this[_0xae37('0x7')]:this['type'],'authorId':this['creator']['id'],'createdAt':this[_0xae37('0xb')],'hasComments':this['hasComments'],'data':this[_0xae37('0x9')],'attributes':this[_0xae37('0x4')]};}static[_0xae37('0x24')](){return _0x492a2f()[_0xae37('0x16')](0x1,0x5);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a68=['_addDescriptionItems','elementEnd','addEmptyContainer','function','end','getItemLabel','indexOf','ELEMENT_SPACE','$text','name','addObject','*Insert:*\x20%0','$1\x20$2','skip','push','deletion','EmptyContainer','_itemLabelsCallbacks','length','getFirstRange','Container','add','label','isEqual','_itemLabels','type','pop','set','data','previousSibling','quantity','get','_locale','removeObject','text','element','isObject','removeContainer','match','*Remove:*\x20%0','getWalker','isEmpty','replace','*Merge:*\x20%0','_schema','Object','normal','_customCallbacks','*Split:*\x20%0','_resolveDescriptionItems','remove','REPLACE_TEXT','insertion','nextSibling'];(function(_0x558688,_0x2a68c0){const _0xacbc44=function(_0x3479a3){while(--_0x3479a3){_0x558688['push'](_0x558688['shift']());}};_0xacbc44(++_0x2a68c0);}(_0x2a68,0x7a));const _0xacbc=function(_0x558688,_0x2a68c0){_0x558688=_0x558688-0x0;let _0xacbc44=_0x2a68[_0x558688];return _0xacbc44;};import{getTranslation as _0x28e4c7}from'./utils/common-translations';import{priorities as _0x1a8061,insertToPriorityArray as _0x322984}from'ckeditor5/src/utils';export default class m{constructor(_0x33f5ed,_0x14f485){this['_customCallbacks']=[],this[_0xacbc('0xa')]=new Map(),this['_itemLabelsCallbacks']=[],this[_0xacbc('0x1e')]=_0x33f5ed,this[_0xacbc('0x12')]=_0x14f485;}['getDescriptions'](_0x29cb22){const _0x28cb96=[];for(let _0x4066e4=0x0;_0x4066e4<_0x29cb22['length'];_0x4066e4++){const _0x1552b8=_0x29cb22[_0x4066e4];if(!_0x1552b8['isInContent'])continue;let _0x4ab250=!0x1;for(const _0x495a5f of this[_0xacbc('0x21')]){const _0xf59c70=_0x495a5f(_0x1552b8);if(_0xf59c70){_0xacbc('0xb')in _0xf59c70&&_0x28cb96['push'](_0xf59c70),_0x4ab250=!0x0;break;}}if(!_0x4ab250){this[_0xacbc('0x28')](_0x28cb96,_0x1552b8);const _0x4fcf86=_0x29cb22[_0x4066e4+0x1];if(_0x4fcf86&&!_0x1552b8['getFirstRange']()[_0xacbc('0x2c')][_0xacbc('0x9')](_0x4fcf86[_0xacbc('0x5')]()['start'])){const _0x28c5d4=_0x28cb96[_0x28cb96[_0xacbc('0x4')]-0x1],_0x4a448a='insertion'==_0x1552b8['type']?'add':_0xacbc('0x24');_0x28c5d4&&_0xacbc('0x14')==_0x28c5d4[_0xacbc('0xb')]&&(_0x28c5d4[_0x4a448a]+='\x0a');}}}return this[_0xacbc('0x23')](_0x28cb96);}['registerDescriptionCallback'](_0x39bd0e){this[_0xacbc('0x21')][_0xacbc('0x0')](_0x39bd0e);}['registerElementLabel'](_0x114977,_0x29defa,_0x3aca2e=_0x1a8061[_0xacbc('0x20')]){_0xacbc('0x2b')==typeof _0x114977?_0x322984(this[_0xacbc('0x3')],{'matchingCallback':_0x114977,'label':_0x29defa,'priority':_0x3aca2e}):this[_0xacbc('0xa')][_0xacbc('0xd')](_0x114977,_0x29defa);}['getItemLabel'](_0xb5c98e,_0x3b2efd=0x1){let _0x432a09;for(const _0x2f1398 of this[_0xacbc('0x3')])if(_0x2f1398['matchingCallback'](_0xb5c98e)){_0x432a09=_0x2f1398[_0xacbc('0x8')];break;}return _0x432a09||(_0x432a09=this['_itemLabels'][_0xacbc('0x11')](_0xb5c98e[_0xacbc('0x31')])),_0x432a09?_0x432a09(_0x3b2efd):0x1!==_0x3b2efd?_0x3b2efd+'\x20'+_0xb5c98e[_0xacbc('0x31')]+'s':''+_0xb5c98e['name'];}[_0xacbc('0x28')](_0x262e4a,_0x4289d8){const _0x5d67f1=_0x4289d8[_0xacbc('0x5')]()[_0xacbc('0x1a')](),_0xf13dd6=_0xacbc('0x26')==_0x4289d8[_0xacbc('0xb')]?_0xacbc('0x7'):'remove';for(const _0x24980 of _0x5d67f1){const _0x41a6b0=_0x24980['item'],_0x2afcbe=_0x262e4a[_0x262e4a[_0xacbc('0x4')]-0x1];if(_0x41a6b0['is']('$textProxy'))_0x2afcbe&&_0x2afcbe['type'][_0xacbc('0x2e')](_0xacbc('0x6'))>-0x1&&_0x262e4a[_0xacbc('0xc')](),_0x2afcbe&&_0xacbc('0x14')==_0x2afcbe[_0xacbc('0xb')]?_0x2afcbe[_0xf13dd6]+=_0x41a6b0[_0xacbc('0xe')]:_0x262e4a['push']({'type':_0xacbc('0x14'),'add':_0xacbc('0x7')==_0xf13dd6?_0x41a6b0[_0xacbc('0xe')]:'','remove':_0xacbc('0x24')==_0xf13dd6?_0x41a6b0['data']:''});else{if(this[_0xacbc('0x1e')]['isObject'](_0x41a6b0)){const _0x54cbe7=_0x41a6b0;if(_0x2afcbe&&_0x2afcbe[_0xacbc('0xb')][_0xacbc('0x2e')](_0xacbc('0x6'))>-0x1&&_0x262e4a[_0xacbc('0xc')](),_0xacbc('0x29')==_0x24980[_0xacbc('0xb')])continue;_0x2afcbe&&_0x2afcbe['type']==_0xf13dd6+'Object'&&_0x2afcbe[_0xacbc('0x15')]['name']==_0x54cbe7['name']?_0x2afcbe['quantity']++:_0x262e4a['push']({'type':_0xf13dd6+_0xacbc('0x1f'),'element':_0x54cbe7,'quantity':0x1}),_0x5d67f1[_0xacbc('0x35')](_0x224a7d=>!(_0xacbc('0x29')==_0x224a7d[_0xacbc('0xb')]&&_0x224a7d['item']==_0x41a6b0));}else{if(this[_0xacbc('0x1e')]['checkChild'](_0x41a6b0,_0xacbc('0x30'))||_0x41a6b0['is'](_0xacbc('0x15'),'softBreak')){const _0xa19c3a=_0x41a6b0;if(_0xacbc('0x7')==_0xf13dd6&&'elementStart'==_0x24980['type']||_0xacbc('0x24')==_0xf13dd6&&_0xacbc('0x29')==_0x24980[_0xacbc('0xb')])continue;if(_0x2afcbe&&-0x1==_0x2afcbe['type'][_0xacbc('0x2e')](_0xacbc('0x6'))){'text'==_0x2afcbe[_0xacbc('0xb')]&&(_0x2afcbe[_0xf13dd6]+='\x0a');continue;}let _0x122cc3;if(_0x122cc3=_0xacbc('0x7')==_0xf13dd6?_0xa19c3a[_0xacbc('0x27')]&&!this[_0xacbc('0x1e')][_0xacbc('0x16')](_0xa19c3a[_0xacbc('0x27')])?_0xa19c3a[_0xacbc('0x27')]:null:_0xa19c3a[_0xacbc('0xf')]&&!this[_0xacbc('0x1e')][_0xacbc('0x16')](_0xa19c3a[_0xacbc('0xf')])?_0xa19c3a[_0xacbc('0xf')]:null,_0xa19c3a['isEmpty']||_0x122cc3&&_0x122cc3[_0xacbc('0x1b')]){const _0x3c74bf=_0x122cc3&&_0x122cc3[_0xacbc('0x1b')]?_0x122cc3:_0xa19c3a;_0x2afcbe&&_0x2afcbe[_0xacbc('0xb')]==_0xf13dd6+_0xacbc('0x2')&&_0x2afcbe[_0xacbc('0x15')][_0xacbc('0x31')]==_0x3c74bf[_0xacbc('0x31')]?_0x2afcbe[_0xacbc('0x10')]++:_0x262e4a[_0xacbc('0x0')]({'type':_0xf13dd6+_0xacbc('0x2'),'element':_0x3c74bf,'quantity':0x1});}else _0x262e4a['push']({'type':_0xf13dd6+_0xacbc('0x6'),'element':_0xa19c3a});}}}}}['_resolveDescriptionItems'](_0x4b7939){const _0x5a7292=this[_0xacbc('0x12')],_0x59583f=[];for(const _0x1b2075 of _0x4b7939){switch(_0x1b2075[_0xacbc('0xb')]){case _0xacbc('0x14'):if(_0x1b2075[_0xacbc('0x7')]=_0x1b2075['add']['replace'](/(\S)\u000A+(\S)/g,_0xacbc('0x34'))['replace'](/\u000A/g,''),_0x1b2075[_0xacbc('0x24')]=_0x1b2075[_0xacbc('0x24')]['replace'](/(\S)\u000A+(\S)/g,_0xacbc('0x34'))[_0xacbc('0x1c')](/\u000A/g,''),''!=_0x1b2075[_0xacbc('0x7')]&&''!=_0x1b2075['remove']){_0x59583f[_0xacbc('0x0')]({'type':'replace','content':_0x28e4c7(_0x5a7292,_0xacbc('0x25'),['\x22'+_0x1b2075[_0xacbc('0x24')]+'\x22','\x22'+_0x1b2075[_0xacbc('0x7')]+'\x22'])});continue;}if(null!=_0x1b2075['add'][_0xacbc('0x18')](/^ +$/)){_0x59583f[_0xacbc('0x0')]({'type':_0xacbc('0x26'),'content':_0x28e4c7(_0x5a7292,_0xacbc('0x33'),_0x28e4c7(_0x5a7292,_0xacbc('0x2f'),_0x1b2075[_0xacbc('0x7')][_0xacbc('0x4')]))});continue;}if(null!=_0x1b2075[_0xacbc('0x24')][_0xacbc('0x18')](/^ +$/)){_0x59583f['push']({'type':'deletion','content':_0x28e4c7(_0x5a7292,_0xacbc('0x19'),_0x28e4c7(_0x5a7292,'ELEMENT_SPACE',_0x1b2075[_0xacbc('0x24')][_0xacbc('0x4')]))});continue;}if(''!=_0x1b2075[_0xacbc('0x7')]){_0x59583f[_0xacbc('0x0')]({'type':_0xacbc('0x26'),'content':_0x28e4c7(_0x5a7292,'*Insert:*\x20%0','\x22'+_0x1b2075[_0xacbc('0x7')]+'\x22')});continue;}_0x59583f[_0xacbc('0x0')]({'type':'deletion','content':_0x28e4c7(_0x5a7292,_0xacbc('0x19'),'\x22'+_0x1b2075['remove']+'\x22')});continue;case _0xacbc('0x2a'):case _0xacbc('0x32'):_0x59583f['push']({'type':_0xacbc('0x26'),'content':_0x28e4c7(_0x5a7292,_0xacbc('0x33'),this['getItemLabel'](_0x1b2075['element'],_0x1b2075[_0xacbc('0x10')]))});continue;case'removeEmptyContainer':case _0xacbc('0x13'):_0x59583f[_0xacbc('0x0')]({'type':'deletion','content':_0x28e4c7(_0x5a7292,_0xacbc('0x19'),this['getItemLabel'](_0x1b2075[_0xacbc('0x15')],_0x1b2075[_0xacbc('0x10')]))});continue;case'addContainer':_0x59583f[_0xacbc('0x0')]({'type':_0xacbc('0x26'),'content':_0x28e4c7(_0x5a7292,_0xacbc('0x22'),this[_0xacbc('0x2d')](_0x1b2075[_0xacbc('0x15')],_0x1b2075[_0xacbc('0x10')]))});continue;case _0xacbc('0x17'):_0x59583f[_0xacbc('0x0')]({'type':_0xacbc('0x1'),'content':_0x28e4c7(_0x5a7292,_0xacbc('0x1d'),this[_0xacbc('0x2d')](_0x1b2075['element'],_0x1b2075[_0xacbc('0x10')]))});continue;}_0x59583f[_0xacbc('0x0')](_0x1b2075);}return _0x59583f;}}
|
package/src/trackchanges.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3032=['adapter','plugins','getSuggestion','getSuggestions','pluginName','addSuggestion','TrackChanges','get','addSuggestionData','Comments','editor'];(function(_0x48b535,_0x30325f){var _0x3d7027=function(_0x7ae271){while(--_0x7ae271){_0x48b535['push'](_0x48b535['shift']());}};_0x3d7027(++_0x30325f);}(_0x3032,0x195));var _0x3d70=function(_0x48b535,_0x30325f){_0x48b535=_0x48b535-0x0;var _0x3d7027=_0x3032[_0x48b535];return _0x3d7027;};import{Plugin as _0x941afe}from'ckeditor5/src/core';import _0x42968f from'./trackchangesui';import _0x50a62b from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x941afe{static get['requires'](){return[_0x50a62b,_0x42968f,_0x3d70('0x0')];}static get[_0x3d70('0x6')](){return _0x3d70('0x8');}set[_0x3d70('0x2')](_0x16141a){this[_0x3d70('0x1')]['plugins'][_0x3d70('0x9')](_0x50a62b)['adapter']=_0x16141a;}get[_0x3d70('0x2')](){return this[_0x3d70('0x1')][_0x3d70('0x3')]['get'](_0x50a62b)[_0x3d70('0x2')];}[_0x3d70('0x7')](_0x3c411f){return this[_0x3d70('0x1')][_0x3d70('0x3')]['get'](_0x50a62b)[_0x3d70('0xa')](_0x3c411f);}[_0x3d70('0x5')]({skipNotAttached:_0x55b3aa=!0x1,toJSON:_0xffab1a=!0x1}={}){return this[_0x3d70('0x1')]['plugins'][_0x3d70('0x9')](_0x50a62b)[_0x3d70('0x5')]({'skipNotAttached':_0x55b3aa,'toJSON':_0xffab1a});}[_0x3d70('0x4')](_0x2d3a5d){return this[_0x3d70('0x1')][_0x3d70('0x3')][_0x3d70('0x9')](_0x50a62b)[_0x3d70('0x4')](_0x2d3a5d);}}
|
package/src/trackchangesdata.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x9e95=['getDataWithAcceptedSuggestions','data','getUser','addSuggestionData','addUser','TrackChangesEditing','plugins','trackChangesData','execute','getRootNames','end','config','createElement','name','function','set','get','editorCreator','CommentsRepository','map','result','getRootsAttributes','define','create','Pagination','appendChild','trackChangesData.editorCreator','reduce','_adapter','getFullData','destroy','pluginName','document','requires','getDataWithDiscardedSuggestions','TrackChangesData','init','editor','users','TrackChangesDataGetter','track-changes-data-invalid-editor-creator','model','Users'];(function(_0x13cf27,_0x9e957d){const _0x2d0a9b=function(_0x24b5a2){while(--_0x24b5a2){_0x13cf27['push'](_0x13cf27['shift']());}};_0x2d0a9b(++_0x9e957d);}(_0x9e95,0xb7));const _0x2d0a=function(_0x13cf27,_0x9e957d){_0x13cf27=_0x13cf27-0x0;let _0x2d0a9b=_0x9e95[_0x13cf27];return _0x2d0a9b;};import{Plugin as _0x56d4a0}from'ckeditor5/src/core';import{CKEditorError as _0xfd9f6b}from'ckeditor5/src/utils';import _0x43d57f from'./trackchangesediting';import{sanitizeEditorConfig as _0x5c0334}from'ckeditor5-collaboration/src/collaboration-core';const w=[_0x2d0a('0xd')];export default class T extends _0x56d4a0{static get[_0x2d0a('0x16')](){return[_0x43d57f];}static get[_0x2d0a('0x14')](){return _0x2d0a('0x18');}[_0x2d0a('0x19')](){const _0x4983f8=this[_0x2d0a('0x1a')];if(_0x4983f8['config'][_0x2d0a('0xb')](_0x2d0a('0xf'),_0x5ead4a=>{const _0x520e1f=_0x4983f8[_0x2d0a('0x1e')][_0x2d0a('0x15')][_0x2d0a('0x29')]()[_0x2d0a('0x10')]((_0x343542,_0x54b236)=>(_0x343542[_0x54b236]='',_0x343542),{});return _0x4983f8['constructor'][_0x2d0a('0xc')](_0x520e1f,_0x5ead4a);}),_0x2d0a('0x3')!=typeof _0x4983f8['config']['get'](_0x2d0a('0x27'))['editorCreator'])throw new _0xfd9f6b(_0x2d0a('0x1d'));}[_0x2d0a('0x20')](_0x3214b3){return v(this['editor'],!0x0,_0x3214b3);}[_0x2d0a('0x17')](_0x2726cc){return v(this[_0x2d0a('0x1a')],!0x1,_0x2726cc);}}class P extends _0x56d4a0{static get[_0x2d0a('0x14')](){return _0x2d0a('0x1c');}constructor(_0x4fee36){super(_0x4fee36),this[_0x2d0a('0x9')]=_0x2d0a('0x2a');}[_0x2d0a('0x19')](){this['editor'][_0x2d0a('0x26')]['get'](_0x2d0a('0x7'))[_0x2d0a('0x11')]={'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[_0x2d0a('0x1a')][_0x2d0a('0x26')]['get'](_0x2d0a('0x25'))[_0x2d0a('0x11')]=null;}}function D(_0x1975ba){return void 0x0!==_0x1975ba[_0x2d0a('0xa')];}async function v(_0x5237fa,_0x5ed726,_0x43c176){const _0x35a711=_0x5c0334(_0x5237fa,w);_0x35a711[_0x2d0a('0x26')]['push'](_0x43d57f,P),_0x35a711['rootsAttributes']=D(_0x5237fa)?_0x5237fa[_0x2d0a('0xa')]():void 0x0;const _0x1dec52=document['createDocumentFragment'](),_0x1eff91=_0x5237fa[_0x2d0a('0x0')][_0x2d0a('0x5')](_0x2d0a('0x27'))[_0x2d0a('0x6')],_0x48dedf=await _0x1eff91(_0x35a711,()=>function(_0x5acc26){const _0x47d31f=document[_0x2d0a('0x1')]('div');return _0x5acc26[_0x2d0a('0xe')](_0x47d31f),_0x47d31f;}(_0x1dec52));!function(_0x4a2b58,_0x3267f4){const _0x1d10d2=_0x4a2b58[_0x2d0a('0x1e')][_0x2d0a('0x15')]['getRootNames']()[_0x2d0a('0x10')]((_0x1d3264,_0x5bc65e)=>(_0x1d3264[_0x5bc65e]=_0x4a2b58[_0x2d0a('0x21')][_0x2d0a('0x5')]({'rootName':_0x5bc65e}),_0x1d3264),{}),_0x4ae7ce=_0x4a2b58['plugins'][_0x2d0a('0x5')]('Users')[_0x2d0a('0x1b')][_0x2d0a('0x8')](_0x441750=>({'id':_0x441750['id'],'name':_0x441750[_0x2d0a('0x2')]})),_0x4f9302=_0x4a2b58['plugins'][_0x2d0a('0x5')](_0x2d0a('0x25'))['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xe62da5=_0x3267f4['plugins']['get'](_0x2d0a('0x1f')),_0x4305d7=_0x3267f4[_0x2d0a('0x26')]['get'](_0x2d0a('0x25'));for(const _0x40e483 of _0x4ae7ce)_0xe62da5[_0x2d0a('0x22')](_0x40e483['id'])||_0xe62da5[_0x2d0a('0x24')](_0x40e483);_0xe62da5['me']||_0xe62da5['useAnonymousUser']();for(const _0x3b913e of _0x4f9302)_0x4305d7[_0x2d0a('0x23')](_0x3b913e);_0x3267f4[_0x2d0a('0x21')][_0x2d0a('0x4')](_0x1d10d2);}(_0x5237fa,_0x48dedf),_0x48dedf[_0x2d0a('0x28')](_0x5ed726?'acceptAllSuggestions':'discardAllSuggestions');const _0x12d33c=D(_0x48dedf)?_0x48dedf[_0x2d0a('0x12')](_0x43c176):_0x48dedf['data'][_0x2d0a('0x5')](_0x43c176);return await _0x48dedf[_0x2d0a('0x13')](),_0x12d33c;}
|