@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230707.0 → 0.0.0-nightly-20230709.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 _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);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
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;}}
|
package/src/trackchanges.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
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);}}
|
package/src/trackchangesdata.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
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;}
|