@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231009.0 → 0.0.0-nightly-20231010.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/aiassistant.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 _0x1b2c=['next','suggestion:','author','getMarkers','getRanges','authoredAt','filter','getItems','accept','getMultiRangeId','change','isInContent','markers','_onAttributesChange','_onDiscard','hasComments','data','decorate','get','from','onAccept','removeMarkers','getMarkerNames','size','previous','addMarker','getAllAdjacentSuggestions','addMarkerName','length','attributes','subType','substr','commentThread','getContainedElement','removeAttribute','removeMarker','isIntersectingWithRange','getFirstRange','onAttributesChange','nodeAfter','_onAccept','add','delete','map','getFirstMarker','head','_model','isIntersecting','getRange','nodeBefore','creator','split','discard','isMultiRange','type','end','_markerNames','set','createdAt','_saved','toJSON'];(function(_0x18bcdb,_0x1b2cdd){const _0x4db1fd=function(_0x14dc41){while(--_0x14dc41){_0x18bcdb['push'](_0x18bcdb['shift']());}};_0x4db1fd(++_0x1b2cdd);}(_0x1b2c,0xcb));const _0x4db1=function(_0x18bcdb,_0x1b2cdd){_0x18bcdb=_0x18bcdb-0x0;let _0x4db1fd=_0x1b2c[_0x18bcdb];return _0x4db1fd;};import{Element as _0x27ed78}from'ckeditor5/src/engine';import{ObservableMixin as _0x4cfbe3,uid as _0x77096a}from'ckeditor5/src/utils';import{cloneDeep as _0x1a6be9,isEqual as _0x2c553e,set as _0x5bd60c,unset as _0xed89c8}from'lodash-es';export default class u extends _0x4cfbe3(){constructor(_0xf124d6,_0x5ba0db){super(),this['_isDataLoaded']=!0x1,this['id']=_0x5ba0db['id'],this[_0x4db1('0x22')]=_0x5ba0db[_0x4db1('0x22')],this['subType']=_0x5ba0db[_0x4db1('0xa')]||null,this[_0x4db1('0x2b')]=_0x5ba0db[_0x4db1('0x2b')],this[_0x4db1('0x1e')]=_0x5ba0db[_0x4db1('0x1e')]||_0x5ba0db[_0x4db1('0x2b')],this['isExternal']=Boolean(_0x5ba0db['attributes']&&_0x5ba0db['attributes']['@external']),this['data']=null,this['_model']=_0xf124d6,this[_0x4db1('0x14')]=_0x5ba0db[_0x4db1('0x0')],this[_0x4db1('0x37')]=_0x5ba0db['onDiscard'],this[_0x4db1('0x36')]=_0x5ba0db[_0x4db1('0x12')],this[_0x4db1('0x24')]=new Set(),this['createdAt']=null,this[_0x4db1('0x25')](_0x4db1('0x2e'),null),this[_0x4db1('0x25')](_0x4db1('0x9'),_0x5ba0db[_0x4db1('0x9')]||{}),this[_0x4db1('0x25')]('previous',null),this[_0x4db1('0x25')](_0x4db1('0x29'),null),this[_0x4db1('0x25')](_0x4db1('0xc'),null),this['set'](_0x4db1('0x27'),!0x1),this[_0x4db1('0x3a')](_0x4db1('0x31')),this[_0x4db1('0x3a')](_0x4db1('0x20'));}get[_0x4db1('0x19')](){let _0x5d20a5=this;for(;_0x5d20a5[_0x4db1('0x4')];)_0x5d20a5=_0x5d20a5[_0x4db1('0x4')];return _0x5d20a5;}get[_0x4db1('0x38')](){return!!this[_0x4db1('0xc')]&&this[_0x4db1('0xc')]['length']>0x0;}get[_0x4db1('0x21')](){if(0x0==this[_0x4db1('0x24')][_0x4db1('0x3')])return!0x1;return 0x6==Array[_0x4db1('0x3c')](this['_markerNames'])[0x0][_0x4db1('0x1f')](':')['length'];}get[_0x4db1('0x34')](){return null!==this['getFirstMarker']();}[_0x4db1('0x7')](_0x349b71){this[_0x4db1('0x24')][_0x4db1('0x15')](_0x349b71);}[_0x4db1('0x2')](){return Array[_0x4db1('0x3c')](this[_0x4db1('0x24')]);}[_0x4db1('0x2c')](){return this[_0x4db1('0x2')]()[_0x4db1('0x17')](_0x273bd8=>this[_0x4db1('0x1a')][_0x4db1('0x35')][_0x4db1('0x3b')](_0x273bd8))[_0x4db1('0x2f')](_0x299efa=>_0x299efa);}[_0x4db1('0x18')](){return this[_0x4db1('0x2c')]()[0x0]||null;}[_0x4db1('0x1')](){this[_0x4db1('0x1a')][_0x4db1('0x33')](_0x1c4cba=>{for(const _0x18a94e of this[_0x4db1('0x2c')]())_0x1c4cba[_0x4db1('0xf')](_0x18a94e);}),this[_0x4db1('0x24')]['clear']();}[_0x4db1('0xf')](_0x448db3){this['_model'][_0x4db1('0x33')](_0x5f12cb=>{_0x5f12cb[_0x4db1('0xf')](_0x448db3);}),this[_0x4db1('0x24')][_0x4db1('0x16')](_0x448db3);}['addRange'](_0x36f26f){const _0x521c8e=_0x4db1('0x2a')+this['type']+':'+this['subType']+':'+this['id']+':'+this[_0x4db1('0x1e')]['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x521c8e),this[_0x4db1('0x1a')][_0x4db1('0x33')](_0x59468a=>{_0x59468a[_0x4db1('0x5')](_0x521c8e,{'range':_0x36f26f,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4db1('0x10')](_0x28dad5){for(const _0x36a909 of this['getRanges']())if(_0x36a909[_0x4db1('0x1b')](_0x28dad5))return!0x0;return!0x1;}[_0x4db1('0x2d')](){return this['getMarkers']()[_0x4db1('0x17')](_0x442012=>_0x442012['getRange']());}[_0x4db1('0x30')](){return this[_0x4db1('0x2d')]()['reduce']((_0x4402a9,_0x14b1a7)=>[..._0x4402a9,..._0x14b1a7[_0x4db1('0x30')]()],[]);}[_0x4db1('0x11')](){var _0x2bb178;return(null===(_0x2bb178=this[_0x4db1('0x18')]())||void 0x0===_0x2bb178?void 0x0:_0x2bb178[_0x4db1('0x1c')]())||null;}[_0x4db1('0xd')](){const _0x3f73ac=this['getRanges']();if(0x1!=_0x3f73ac[_0x4db1('0x8')])return null;const _0x2cd7c6=_0x3f73ac[0x0],_0x2e5516=_0x2cd7c6['start'][_0x4db1('0x13')],_0x494890=_0x2cd7c6[_0x4db1('0x23')][_0x4db1('0x1d')];return _0x2e5516 instanceof _0x27ed78?_0x2e5516!=_0x494890?null:_0x2e5516:null;}[_0x4db1('0x31')](){this[_0x4db1('0x14')](this[_0x4db1('0x2d')](),this[_0x4db1('0x39')],this[_0x4db1('0x9')]),this[_0x4db1('0x1')]();}[_0x4db1('0x20')](){this['_onDiscard'](this[_0x4db1('0x2d')](),this[_0x4db1('0x39')],this['attributes']),this[_0x4db1('0x1')]();}[_0x4db1('0x6')](){const _0x319c9d=[];let _0xf12041=this['head'];for(;_0xf12041;)_0x319c9d['push'](_0xf12041),_0xf12041=_0xf12041[_0x4db1('0x29')];return _0x319c9d;}['setAttribute'](_0x3ce44f,_0x202405){const _0x3d4ed5=_0x1a6be9(this[_0x4db1('0x9')]);_0x5bd60c(_0x3d4ed5,_0x3ce44f,_0x202405),_0x2c553e(_0x3d4ed5,this[_0x4db1('0x9')])||(this['attributes']=_0x3d4ed5,this[_0x4db1('0x36')](_0x3d4ed5));}[_0x4db1('0xe')](_0x32fe39){const _0x405c80=_0x1a6be9(this[_0x4db1('0x9')]);_0xed89c8(_0x405c80,_0x32fe39),_0x2c553e(_0x405c80,this[_0x4db1('0x9')])||(this[_0x4db1('0x9')]=_0x405c80,this['_onAttributesChange'](this[_0x4db1('0x9')]));}[_0x4db1('0x28')](){return{'id':this['id'],'type':this['subType']?this['type']+':'+this['subType']:this['type'],'authorId':this[_0x4db1('0x1e')]['id'],'createdAt':this[_0x4db1('0x26')],'hasComments':this[_0x4db1('0x38')],'data':this[_0x4db1('0x39')],'attributes':this[_0x4db1('0x9')]};}static[_0x4db1('0x32')](){return _0x77096a()[_0x4db1('0xb')](0x1,0x5);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x61e7=['Container','elementStart','name','matchingCallback','nextSibling','addEmptyContainer','deletion','getDescriptions','isEqual','softBreak','removeContainer','REPLACE_TEXT','$textProxy','text','_locale','Object','match','item','data','skip','function','*Merge:*\x20%0','element','quantity','previousSibling','_itemLabels','_addDescriptionItems','removeObject','end','$text','remove','length','addContainer','_customCallbacks','$1\x20$2','replace','insertion','EmptyContainer','_itemLabelsCallbacks','_schema','getItemLabel','isObject','pop','*Insert:*\x20%0','add','*Remove:*\x20%0','getWalker','ELEMENT_SPACE','_resolveDescriptionItems','get','normal','set','type','push','registerElementLabel','elementEnd','registerDescriptionCallback','label','removeEmptyContainer','getFirstRange','isEmpty'];(function(_0x1e527b,_0x61e767){const _0x129673=function(_0x47dbdf){while(--_0x47dbdf){_0x1e527b['push'](_0x1e527b['shift']());}};_0x129673(++_0x61e767);}(_0x61e7,0xe3));const _0x1296=function(_0x1e527b,_0x61e767){_0x1e527b=_0x1e527b-0x0;let _0x129673=_0x61e7[_0x1e527b];return _0x129673;};import{getTranslation as _0x4168c7}from'./utils/common-translations';import{priorities as _0x100b21,insertToPriorityArray as _0x5be00c}from'ckeditor5/src/utils';export default class m{constructor(_0x5c5c9c,_0x5e86d7){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this[_0x1296('0x37')]=[],this[_0x1296('0x38')]=_0x5c5c9c,this[_0x1296('0x1f')]=_0x5e86d7;}[_0x1296('0x18')](_0x22c9e7){const _0x33a825=[];for(let _0x824d73=0x0;_0x824d73<_0x22c9e7['length'];_0x824d73++){const _0x32db1c=_0x22c9e7[_0x824d73];if(!_0x32db1c['isInContent'])continue;let _0x2c675d=!0x1;for(const _0x56363d of this['_customCallbacks']){const _0x3bc4b4=_0x56363d(_0x32db1c);if(_0x3bc4b4){_0x1296('0x8')in _0x3bc4b4&&_0x33a825[_0x1296('0x9')](_0x3bc4b4),_0x2c675d=!0x0;break;}}if(!_0x2c675d){this[_0x1296('0x2b')](_0x33a825,_0x32db1c);const _0x2bbc40=_0x22c9e7[_0x824d73+0x1];if(_0x2bbc40&&!_0x32db1c[_0x1296('0xf')]()[_0x1296('0x2d')][_0x1296('0x19')](_0x2bbc40[_0x1296('0xf')]()['start'])){const _0x4a7025=_0x33a825[_0x33a825['length']-0x1],_0x1c8ee4=_0x1296('0x35')==_0x32db1c[_0x1296('0x8')]?_0x1296('0x0'):'remove';_0x4a7025&&'text'==_0x4a7025[_0x1296('0x8')]&&(_0x4a7025[_0x1c8ee4]+='\x0a');}}}return this[_0x1296('0x4')](_0x33a825);}[_0x1296('0xc')](_0xb68464){this[_0x1296('0x32')][_0x1296('0x9')](_0xb68464);}[_0x1296('0xa')](_0x36a967,_0x1a1ddb,_0x419265=_0x100b21[_0x1296('0x6')]){_0x1296('0x25')==typeof _0x36a967?_0x5be00c(this[_0x1296('0x37')],{'matchingCallback':_0x36a967,'label':_0x1a1ddb,'priority':_0x419265}):this[_0x1296('0x2a')][_0x1296('0x7')](_0x36a967,_0x1a1ddb);}[_0x1296('0x39')](_0x297e16,_0x164106=0x1){let _0x10a910;for(const _0x678613 of this[_0x1296('0x37')])if(_0x678613[_0x1296('0x14')](_0x297e16)){_0x10a910=_0x678613[_0x1296('0xd')];break;}return _0x10a910||(_0x10a910=this[_0x1296('0x2a')][_0x1296('0x5')](_0x297e16[_0x1296('0x13')])),_0x10a910?_0x10a910(_0x164106):0x1!==_0x164106?_0x164106+'\x20'+_0x297e16[_0x1296('0x13')]+'s':''+_0x297e16[_0x1296('0x13')];}[_0x1296('0x2b')](_0x148c80,_0x251360){const _0x180c55=_0x251360[_0x1296('0xf')]()[_0x1296('0x2')](),_0x15a360=_0x1296('0x35')==_0x251360[_0x1296('0x8')]?_0x1296('0x0'):_0x1296('0x2f');for(const _0x22b1a0 of _0x180c55){const _0x2124bb=_0x22b1a0[_0x1296('0x22')],_0x2b875a=_0x148c80[_0x148c80['length']-0x1];if(_0x2124bb['is'](_0x1296('0x1d')))_0x2b875a&&_0x2b875a[_0x1296('0x8')]['indexOf'](_0x1296('0x11'))>-0x1&&_0x148c80[_0x1296('0x3b')](),_0x2b875a&&'text'==_0x2b875a[_0x1296('0x8')]?_0x2b875a[_0x15a360]+=_0x2124bb[_0x1296('0x23')]:_0x148c80[_0x1296('0x9')]({'type':_0x1296('0x1e'),'add':_0x1296('0x0')==_0x15a360?_0x2124bb[_0x1296('0x23')]:'','remove':_0x1296('0x2f')==_0x15a360?_0x2124bb[_0x1296('0x23')]:''});else{if(this[_0x1296('0x38')]['isObject'](_0x2124bb)){const _0x5b6696=_0x2124bb;if(_0x2b875a&&_0x2b875a[_0x1296('0x8')]['indexOf'](_0x1296('0x11'))>-0x1&&_0x148c80[_0x1296('0x3b')](),_0x1296('0xb')==_0x22b1a0['type'])continue;_0x2b875a&&_0x2b875a[_0x1296('0x8')]==_0x15a360+_0x1296('0x20')&&_0x2b875a[_0x1296('0x27')]['name']==_0x5b6696['name']?_0x2b875a[_0x1296('0x28')]++:_0x148c80['push']({'type':_0x15a360+_0x1296('0x20'),'element':_0x5b6696,'quantity':0x1}),_0x180c55[_0x1296('0x24')](_0x4b6e47=>!(_0x1296('0xb')==_0x4b6e47[_0x1296('0x8')]&&_0x4b6e47['item']==_0x2124bb));}else{if(this[_0x1296('0x38')]['checkChild'](_0x2124bb,_0x1296('0x2e'))||_0x2124bb['is'](_0x1296('0x27'),_0x1296('0x1a'))){const _0x358576=_0x2124bb;if(_0x1296('0x0')==_0x15a360&&_0x1296('0x12')==_0x22b1a0[_0x1296('0x8')]||_0x1296('0x2f')==_0x15a360&&_0x1296('0xb')==_0x22b1a0[_0x1296('0x8')])continue;if(_0x2b875a&&-0x1==_0x2b875a[_0x1296('0x8')]['indexOf'](_0x1296('0x11'))){_0x1296('0x1e')==_0x2b875a['type']&&(_0x2b875a[_0x15a360]+='\x0a');continue;}let _0x3ecaf1;if(_0x3ecaf1=_0x1296('0x0')==_0x15a360?_0x358576[_0x1296('0x15')]&&!this[_0x1296('0x38')]['isObject'](_0x358576[_0x1296('0x15')])?_0x358576['nextSibling']:null:_0x358576['previousSibling']&&!this[_0x1296('0x38')][_0x1296('0x3a')](_0x358576[_0x1296('0x29')])?_0x358576['previousSibling']:null,_0x358576[_0x1296('0x10')]||_0x3ecaf1&&_0x3ecaf1['isEmpty']){const _0x1d4f15=_0x3ecaf1&&_0x3ecaf1[_0x1296('0x10')]?_0x3ecaf1:_0x358576;_0x2b875a&&_0x2b875a[_0x1296('0x8')]==_0x15a360+_0x1296('0x36')&&_0x2b875a[_0x1296('0x27')][_0x1296('0x13')]==_0x1d4f15[_0x1296('0x13')]?_0x2b875a[_0x1296('0x28')]++:_0x148c80[_0x1296('0x9')]({'type':_0x15a360+'EmptyContainer','element':_0x1d4f15,'quantity':0x1});}else _0x148c80[_0x1296('0x9')]({'type':_0x15a360+'Container','element':_0x358576});}}}}}[_0x1296('0x4')](_0x16ce33){const _0x4139d0=this[_0x1296('0x1f')],_0xe67ca1=[];for(const _0x4aeee3 of _0x16ce33){switch(_0x4aeee3['type']){case _0x1296('0x1e'):if(_0x4aeee3[_0x1296('0x0')]=_0x4aeee3[_0x1296('0x0')][_0x1296('0x34')](/(\S)\u000A+(\S)/g,_0x1296('0x33'))[_0x1296('0x34')](/\u000A/g,''),_0x4aeee3['remove']=_0x4aeee3[_0x1296('0x2f')][_0x1296('0x34')](/(\S)\u000A+(\S)/g,_0x1296('0x33'))[_0x1296('0x34')](/\u000A/g,''),''!=_0x4aeee3[_0x1296('0x0')]&&''!=_0x4aeee3['remove']){_0xe67ca1[_0x1296('0x9')]({'type':_0x1296('0x34'),'content':_0x4168c7(_0x4139d0,_0x1296('0x1c'),['\x22'+_0x4aeee3['remove']+'\x22','\x22'+_0x4aeee3[_0x1296('0x0')]+'\x22'])});continue;}if(null!=_0x4aeee3[_0x1296('0x0')][_0x1296('0x21')](/^ +$/)){_0xe67ca1[_0x1296('0x9')]({'type':'insertion','content':_0x4168c7(_0x4139d0,_0x1296('0x3c'),_0x4168c7(_0x4139d0,_0x1296('0x3'),_0x4aeee3[_0x1296('0x0')][_0x1296('0x30')]))});continue;}if(null!=_0x4aeee3[_0x1296('0x2f')][_0x1296('0x21')](/^ +$/)){_0xe67ca1[_0x1296('0x9')]({'type':_0x1296('0x17'),'content':_0x4168c7(_0x4139d0,_0x1296('0x1'),_0x4168c7(_0x4139d0,_0x1296('0x3'),_0x4aeee3[_0x1296('0x2f')][_0x1296('0x30')]))});continue;}if(''!=_0x4aeee3['add']){_0xe67ca1[_0x1296('0x9')]({'type':_0x1296('0x35'),'content':_0x4168c7(_0x4139d0,'*Insert:*\x20%0','\x22'+_0x4aeee3[_0x1296('0x0')]+'\x22')});continue;}_0xe67ca1[_0x1296('0x9')]({'type':'deletion','content':_0x4168c7(_0x4139d0,'*Remove:*\x20%0','\x22'+_0x4aeee3[_0x1296('0x2f')]+'\x22')});continue;case _0x1296('0x16'):case'addObject':_0xe67ca1['push']({'type':_0x1296('0x35'),'content':_0x4168c7(_0x4139d0,_0x1296('0x3c'),this[_0x1296('0x39')](_0x4aeee3[_0x1296('0x27')],_0x4aeee3['quantity']))});continue;case _0x1296('0xe'):case _0x1296('0x2c'):_0xe67ca1['push']({'type':'deletion','content':_0x4168c7(_0x4139d0,_0x1296('0x1'),this[_0x1296('0x39')](_0x4aeee3[_0x1296('0x27')],_0x4aeee3[_0x1296('0x28')]))});continue;case _0x1296('0x31'):_0xe67ca1['push']({'type':_0x1296('0x35'),'content':_0x4168c7(_0x4139d0,'*Split:*\x20%0',this[_0x1296('0x39')](_0x4aeee3['element'],_0x4aeee3[_0x1296('0x28')]))});continue;case _0x1296('0x1b'):_0xe67ca1[_0x1296('0x9')]({'type':'deletion','content':_0x4168c7(_0x4139d0,_0x1296('0x26'),this[_0x1296('0x39')](_0x4aeee3[_0x1296('0x27')],_0x4aeee3[_0x1296('0x28')]))});continue;}_0xe67ca1['push'](_0x4aeee3);}return _0xe67ca1;}}
|
package/src/trackchanges.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2966=['adapter','get','getSuggestions','pluginName','requires','Comments','plugins','editor','addSuggestion'];(function(_0x2e3fc9,_0x29666c){var _0x4d78e8=function(_0x2a4d39){while(--_0x2a4d39){_0x2e3fc9['push'](_0x2e3fc9['shift']());}};_0x4d78e8(++_0x29666c);}(_0x2966,0x126));var _0x4d78=function(_0x2e3fc9,_0x29666c){_0x2e3fc9=_0x2e3fc9-0x0;var _0x4d78e8=_0x2966[_0x2e3fc9];return _0x4d78e8;};import{Plugin as _0x430e91}from'ckeditor5/src/core';import _0x2443a9 from'./trackchangesui';import _0x108089 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x430e91{static get[_0x4d78('0x7')](){return[_0x108089,_0x2443a9,_0x4d78('0x8')];}static get[_0x4d78('0x6')](){return'TrackChanges';}set[_0x4d78('0x3')](_0x5e5690){this[_0x4d78('0x1')][_0x4d78('0x0')][_0x4d78('0x4')](_0x108089)[_0x4d78('0x3')]=_0x5e5690;}get[_0x4d78('0x3')](){return this['editor'][_0x4d78('0x0')][_0x4d78('0x4')](_0x108089)[_0x4d78('0x3')];}[_0x4d78('0x2')](_0x1dbbdb){return this['editor'][_0x4d78('0x0')][_0x4d78('0x4')](_0x108089)['addSuggestionData'](_0x1dbbdb);}[_0x4d78('0x5')]({skipNotAttached:_0x3fe260=!0x1,toJSON:_0x55c974=!0x1}={}){return this['editor'][_0x4d78('0x0')]['get'](_0x108089)[_0x4d78('0x5')]({'skipNotAttached':_0x3fe260,'toJSON':_0x55c974});}['getSuggestion'](_0x13044c){return this[_0x4d78('0x1')][_0x4d78('0x0')][_0x4d78('0x4')](_0x108089)['getSuggestion'](_0x13044c);}}
|
package/src/trackchangesdata.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x27b4=['function','rootsAttributes','editor','config','TrackChangesEditing','acceptAllSuggestions','plugins','getRootsAttributes','createElement','init','div','define','editorCreator','users','constructor','reduce','getUser','discardAllSuggestions','document','addUser','get','destroy','_adapter','model','getFullData','pluginName','appendChild','map','TrackChangesDataGetter','create','addSuggestionData','data','createDocumentFragment','Users','result','trackChangesData','requires','getRootNames','getDataWithAcceptedSuggestions','getDataWithDiscardedSuggestions','set','push','TrackChangesData','Pagination','useAnonymousUser'];(function(_0x4569d9,_0x27b44d){const _0xe1a06f=function(_0x8b5c47){while(--_0x8b5c47){_0x4569d9['push'](_0x4569d9['shift']());}};_0xe1a06f(++_0x27b44d);}(_0x27b4,0x187));const _0xe1a0=function(_0x4569d9,_0x27b44d){_0x4569d9=_0x4569d9-0x0;let _0xe1a06f=_0x27b4[_0x4569d9];return _0xe1a06f;};import{Plugin as _0x1e250b}from'ckeditor5/src/core';import{CKEditorError as _0xed6a9f}from'ckeditor5/src/utils';import _0x411e34 from'./trackchangesediting';import{sanitizeEditorConfig as _0x58be22}from'ckeditor5-collaboration/src/collaboration-core';const w=[_0xe1a0('0xc')];export default class T extends _0x1e250b{static get[_0xe1a0('0x5')](){return[_0x411e34];}static get['pluginName'](){return _0xe1a0('0xb');}[_0xe1a0('0x17')](){const _0x562e35=this[_0xe1a0('0x10')];if(_0x562e35['config'][_0xe1a0('0x19')]('trackChangesData.editorCreator',_0x4b2211=>{const _0xdf960e=_0x562e35[_0xe1a0('0x25')]['document'][_0xe1a0('0x6')]()[_0xe1a0('0x1d')]((_0x5ddf57,_0x2a20ec)=>(_0x5ddf57[_0x2a20ec]='',_0x5ddf57),{});return _0x562e35[_0xe1a0('0x1c')][_0xe1a0('0x2b')](_0xdf960e,_0x4b2211);}),_0xe1a0('0xe')!=typeof _0x562e35[_0xe1a0('0x11')][_0xe1a0('0x22')](_0xe1a0('0x4'))[_0xe1a0('0x1a')])throw new _0xed6a9f('track-changes-data-invalid-editor-creator');}[_0xe1a0('0x7')](_0x3f766e){return v(this[_0xe1a0('0x10')],!0x0,_0x3f766e);}[_0xe1a0('0x8')](_0x384aa7){return v(this[_0xe1a0('0x10')],!0x1,_0x384aa7);}}class P extends _0x1e250b{static get[_0xe1a0('0x27')](){return _0xe1a0('0x2a');}constructor(_0x15bb24){super(_0x15bb24),this[_0xe1a0('0x3')]='end';}[_0xe1a0('0x17')](){this['editor'][_0xe1a0('0x14')][_0xe1a0('0x22')]('CommentsRepository')[_0xe1a0('0x24')]={'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[_0xe1a0('0x10')]['plugins']['get'](_0xe1a0('0x12'))[_0xe1a0('0x24')]=null;}}function D(_0x5a1953){return void 0x0!==_0x5a1953[_0xe1a0('0x15')];}async function v(_0x1fdccc,_0x1ff317,_0x304c6b){const _0x14e02a=_0x58be22(_0x1fdccc,w);_0x14e02a['plugins'][_0xe1a0('0xa')](_0x411e34,P),_0x14e02a[_0xe1a0('0xf')]=D(_0x1fdccc)?_0x1fdccc['getRootsAttributes']():void 0x0;const _0x1e9cf5=document[_0xe1a0('0x1')](),_0x4507b8=_0x1fdccc[_0xe1a0('0x11')]['get'](_0xe1a0('0x4'))['editorCreator'],_0x3fd2a4=await _0x4507b8(_0x14e02a,()=>function(_0x66c1b4){const _0x4d7fd2=document[_0xe1a0('0x16')](_0xe1a0('0x18'));return _0x66c1b4[_0xe1a0('0x28')](_0x4d7fd2),_0x4d7fd2;}(_0x1e9cf5));!function(_0x1be1d9,_0x1195f6){const _0x31735e=_0x1be1d9['model'][_0xe1a0('0x20')][_0xe1a0('0x6')]()['reduce']((_0x92f12e,_0x29b070)=>(_0x92f12e[_0x29b070]=_0x1be1d9[_0xe1a0('0x0')][_0xe1a0('0x22')]({'rootName':_0x29b070}),_0x92f12e),{}),_0x2ff7de=_0x1be1d9[_0xe1a0('0x14')][_0xe1a0('0x22')](_0xe1a0('0x2'))[_0xe1a0('0x1b')][_0xe1a0('0x29')](_0x3eefad=>({'id':_0x3eefad['id'],'name':_0x3eefad['name']})),_0x126ce7=_0x1be1d9[_0xe1a0('0x14')]['get'](_0xe1a0('0x12'))['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2f3921=_0x1195f6['plugins'][_0xe1a0('0x22')]('Users'),_0x59a601=_0x1195f6[_0xe1a0('0x14')][_0xe1a0('0x22')](_0xe1a0('0x12'));for(const _0x4f3b74 of _0x2ff7de)_0x2f3921[_0xe1a0('0x1e')](_0x4f3b74['id'])||_0x2f3921[_0xe1a0('0x21')](_0x4f3b74);_0x2f3921['me']||_0x2f3921[_0xe1a0('0xd')]();for(const _0x1c504 of _0x126ce7)_0x59a601[_0xe1a0('0x2c')](_0x1c504);_0x1195f6[_0xe1a0('0x0')][_0xe1a0('0x9')](_0x31735e);}(_0x1fdccc,_0x3fd2a4),_0x3fd2a4['execute'](_0x1ff317?_0xe1a0('0x13'):_0xe1a0('0x1f'));const _0x462f75=D(_0x3fd2a4)?_0x3fd2a4[_0xe1a0('0x26')](_0x304c6b):_0x3fd2a4['data'][_0xe1a0('0x22')](_0x304c6b);return await _0x3fd2a4[_0xe1a0('0x23')](),_0x462f75;}
|