@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230914.0 → 0.0.0-nightly-20230915.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 _0x1fb4=['length','markers','isInContent','setAttribute','end','get','from','removeMarker','add','hasComments','getMarkerNames','getFirstMarker','isIntersectingWithRange','previous','createdAt','_onAttributesChange','_isDataLoaded','toJSON','getContainedElement','isExternal','split','set','creator','substr','addMarker','author','attributes','@external','reduce','getRange','clear','onDiscard','decorate','size','suggestion:','isMultiRange','getMultiRangeId','nodeAfter','map','type','_onAccept','change','subType','head','getRanges','onAccept','isIntersecting','addRange','push','next','_onDiscard','removeMarkers','_markerNames','_model','data','start','authoredAt','addMarkerName','commentThread','discard','nodeBefore','getItems','getMarkers'];(function(_0x83158c,_0x1fb4ef){const _0x19314b=function(_0x53f46e){while(--_0x53f46e){_0x83158c['push'](_0x83158c['shift']());}};_0x19314b(++_0x1fb4ef);}(_0x1fb4,0x86));const _0x1931=function(_0x83158c,_0x1fb4ef){_0x83158c=_0x83158c-0x0;let _0x19314b=_0x1fb4[_0x83158c];return _0x19314b;};import{Element as _0x494e28}from'ckeditor5/src/engine';import{ObservableMixin as _0x15b3f0,uid as _0x74a5fe}from'ckeditor5/src/utils';import{cloneDeep as _0x279f99,isEqual as _0x290b9d,set as _0x5c310e,unset as _0x316099}from'lodash-es';export default class u extends _0x15b3f0(){constructor(_0x93af13,_0x12c3cf){super(),this[_0x1931('0x8')]=!0x1,this['id']=_0x12c3cf['id'],this[_0x1931('0x1f')]=_0x12c3cf['type'],this[_0x1931('0x22')]=_0x12c3cf[_0x1931('0x22')]||null,this[_0x1931('0x11')]=_0x12c3cf['author'],this[_0x1931('0xe')]=_0x12c3cf[_0x1931('0xe')]||_0x12c3cf[_0x1931('0x11')],this[_0x1931('0xb')]=Boolean(_0x12c3cf[_0x1931('0x12')]&&_0x12c3cf['attributes'][_0x1931('0x13')]),this['data']=null,this[_0x1931('0x2d')]=_0x93af13,this[_0x1931('0x20')]=_0x12c3cf[_0x1931('0x25')],this['_onDiscard']=_0x12c3cf[_0x1931('0x17')],this[_0x1931('0x7')]=_0x12c3cf['onAttributesChange'],this['_markerNames']=new Set(),this[_0x1931('0x6')]=null,this['set'](_0x1931('0x30'),null),this[_0x1931('0xd')]('attributes',_0x12c3cf[_0x1931('0x12')]||{}),this['set'](_0x1931('0x5'),null),this[_0x1931('0xd')](_0x1931('0x29'),null),this[_0x1931('0xd')](_0x1931('0x32'),null),this[_0x1931('0xd')]('_saved',!0x1),this[_0x1931('0x18')]('accept'),this[_0x1931('0x18')](_0x1931('0x33'));}get[_0x1931('0x23')](){let _0x390ac2=this;for(;_0x390ac2[_0x1931('0x5')];)_0x390ac2=_0x390ac2[_0x1931('0x5')];return _0x390ac2;}get[_0x1931('0x1')](){return!!this[_0x1931('0x32')]&&this['commentThread'][_0x1931('0x37')]>0x0;}get[_0x1931('0x1b')](){if(0x0==this[_0x1931('0x2c')][_0x1931('0x19')])return!0x1;return 0x6==Array[_0x1931('0x3d')](this[_0x1931('0x2c')])[0x0][_0x1931('0xc')](':')[_0x1931('0x37')];}get[_0x1931('0x39')](){return null!==this[_0x1931('0x3')]();}[_0x1931('0x31')](_0x53daaf){this[_0x1931('0x2c')][_0x1931('0x0')](_0x53daaf);}[_0x1931('0x2')](){return Array[_0x1931('0x3d')](this[_0x1931('0x2c')]);}[_0x1931('0x36')](){return this[_0x1931('0x2')]()[_0x1931('0x1e')](_0x66e983=>this[_0x1931('0x2d')][_0x1931('0x38')][_0x1931('0x3c')](_0x66e983))['filter'](_0x14c00f=>_0x14c00f);}[_0x1931('0x3')](){return this[_0x1931('0x36')]()[0x0]||null;}[_0x1931('0x2b')](){this['_model']['change'](_0x150820=>{for(const _0x39c081 of this[_0x1931('0x36')]())_0x150820[_0x1931('0x3e')](_0x39c081);}),this[_0x1931('0x2c')][_0x1931('0x16')]();}[_0x1931('0x3e')](_0x42be5a){this[_0x1931('0x2d')][_0x1931('0x21')](_0x8abe8=>{_0x8abe8[_0x1931('0x3e')](_0x42be5a);}),this['_markerNames']['delete'](_0x42be5a);}[_0x1931('0x27')](_0x9e1319){const _0x3ebe3f=_0x1931('0x1a')+this[_0x1931('0x1f')]+':'+this[_0x1931('0x22')]+':'+this['id']+':'+this[_0x1931('0xe')]['id']+':'+u['getMultiRangeId']();this[_0x1931('0x31')](_0x3ebe3f),this[_0x1931('0x2d')][_0x1931('0x21')](_0x4cbf67=>{_0x4cbf67[_0x1931('0x10')](_0x3ebe3f,{'range':_0x9e1319,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x1931('0x4')](_0x2c61e1){for(const _0x579918 of this[_0x1931('0x24')]())if(_0x579918[_0x1931('0x26')](_0x2c61e1))return!0x0;return!0x1;}['getRanges'](){return this[_0x1931('0x36')]()[_0x1931('0x1e')](_0x4b7e83=>_0x4b7e83[_0x1931('0x15')]());}[_0x1931('0x35')](){return this[_0x1931('0x24')]()[_0x1931('0x14')]((_0x10fc81,_0x38565f)=>[..._0x10fc81,..._0x38565f['getItems']()],[]);}['getFirstRange'](){var _0x26924a;return(null===(_0x26924a=this[_0x1931('0x3')]())||void 0x0===_0x26924a?void 0x0:_0x26924a[_0x1931('0x15')]())||null;}[_0x1931('0xa')](){const _0x289371=this[_0x1931('0x24')]();if(0x1!=_0x289371[_0x1931('0x37')])return null;const _0x1373d0=_0x289371[0x0],_0x5457df=_0x1373d0[_0x1931('0x2f')][_0x1931('0x1d')],_0x2a6e8c=_0x1373d0[_0x1931('0x3b')][_0x1931('0x34')];return _0x5457df instanceof _0x494e28?_0x5457df!=_0x2a6e8c?null:_0x5457df:null;}['accept'](){this['_onAccept'](this[_0x1931('0x24')](),this[_0x1931('0x2e')],this['attributes']),this['removeMarkers']();}[_0x1931('0x33')](){this[_0x1931('0x2a')](this[_0x1931('0x24')](),this[_0x1931('0x2e')],this[_0x1931('0x12')]),this[_0x1931('0x2b')]();}['getAllAdjacentSuggestions'](){const _0x6f6519=[];let _0x157431=this[_0x1931('0x23')];for(;_0x157431;)_0x6f6519[_0x1931('0x28')](_0x157431),_0x157431=_0x157431[_0x1931('0x29')];return _0x6f6519;}[_0x1931('0x3a')](_0x245d2a,_0x4d5fc0){const _0x30e1d7=_0x279f99(this['attributes']);_0x5c310e(_0x30e1d7,_0x245d2a,_0x4d5fc0),_0x290b9d(_0x30e1d7,this[_0x1931('0x12')])||(this[_0x1931('0x12')]=_0x30e1d7,this[_0x1931('0x7')](_0x30e1d7));}['removeAttribute'](_0x45e87c){const _0x1f934b=_0x279f99(this['attributes']);_0x316099(_0x1f934b,_0x45e87c),_0x290b9d(_0x1f934b,this['attributes'])||(this[_0x1931('0x12')]=_0x1f934b,this[_0x1931('0x7')](this[_0x1931('0x12')]));}[_0x1931('0x9')](){return{'id':this['id'],'type':this['subType']?this['type']+':'+this[_0x1931('0x22')]:this['type'],'authorId':this[_0x1931('0xe')]['id'],'createdAt':this[_0x1931('0x6')],'hasComments':this[_0x1931('0x1')],'data':this[_0x1931('0x2e')],'attributes':this['attributes']};}static[_0x1931('0x1c')](){return _0x74a5fe()[_0x1931('0xf')](0x1,0x5);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1fb2=['data','getFirstRange','name','$1\x20$2','_locale','_itemLabels','match','length','isInContent','Object','getItemLabel','add','EmptyContainer','end','registerElementLabel','softBreak','label','element','remove','quantity','addObject','previousSibling','removeContainer','_resolveDescriptionItems','text','ELEMENT_SPACE','registerDescriptionCallback','replace','*Insert:*\x20%0','isEmpty','addEmptyContainer','indexOf','checkChild','nextSibling','matchingCallback','push','_schema','insertion','_customCallbacks','deletion','getDescriptions','REPLACE_TEXT','elementEnd','item','type','$text','_itemLabelsCallbacks','start','*Merge:*\x20%0','$textProxy','_addDescriptionItems','addContainer','pop','*Remove:*\x20%0','isEqual','*Split:*\x20%0','isObject','Container','elementStart','skip'];(function(_0x8d729b,_0x1fb238){const _0x330e0d=function(_0x5390bf){while(--_0x5390bf){_0x8d729b['push'](_0x8d729b['shift']());}};_0x330e0d(++_0x1fb238);}(_0x1fb2,0x89));const _0x330e=function(_0x8d729b,_0x1fb238){_0x8d729b=_0x8d729b-0x0;let _0x330e0d=_0x1fb2[_0x8d729b];return _0x330e0d;};import{getTranslation as _0x12cefd}from'./utils/common-translations';import{priorities as _0x24e292,insertToPriorityArray as _0x547579}from'ckeditor5/src/utils';export default class m{constructor(_0x5deec9,_0x18096b){this['_customCallbacks']=[],this[_0x330e('0x30')]=new Map(),this[_0x330e('0x1d')]=[],this['_schema']=_0x5deec9,this[_0x330e('0x2f')]=_0x18096b;}[_0x330e('0x17')](_0x14c3c3){const _0x43b928=[];for(let _0x13af62=0x0;_0x13af62<_0x14c3c3['length'];_0x13af62++){const _0x4997d7=_0x14c3c3[_0x13af62];if(!_0x4997d7[_0x330e('0x33')])continue;let _0x3a2a4f=!0x1;for(const _0x4a8f28 of this[_0x330e('0x15')]){const _0x304b45=_0x4a8f28(_0x4997d7);if(_0x304b45){_0x330e('0x1b')in _0x304b45&&_0x43b928[_0x330e('0x12')](_0x304b45),_0x3a2a4f=!0x0;break;}}if(!_0x3a2a4f){this[_0x330e('0x21')](_0x43b928,_0x4997d7);const _0x45ef70=_0x14c3c3[_0x13af62+0x1];if(_0x45ef70&&!_0x4997d7[_0x330e('0x2c')]()[_0x330e('0x38')][_0x330e('0x25')](_0x45ef70[_0x330e('0x2c')]()[_0x330e('0x1e')])){const _0x1a34d6=_0x43b928[_0x43b928[_0x330e('0x32')]-0x1],_0x5c62f9=_0x330e('0x14')==_0x4997d7[_0x330e('0x1b')]?_0x330e('0x36'):_0x330e('0x1');_0x1a34d6&&_0x330e('0x7')==_0x1a34d6[_0x330e('0x1b')]&&(_0x1a34d6[_0x5c62f9]+='\x0a');}}}return this[_0x330e('0x6')](_0x43b928);}[_0x330e('0x9')](_0x523187){this[_0x330e('0x15')][_0x330e('0x12')](_0x523187);}[_0x330e('0x39')](_0x5fa197,_0x4285a7,_0x4845b5=_0x24e292['normal']){'function'==typeof _0x5fa197?_0x547579(this[_0x330e('0x1d')],{'matchingCallback':_0x5fa197,'label':_0x4285a7,'priority':_0x4845b5}):this[_0x330e('0x30')]['set'](_0x5fa197,_0x4285a7);}[_0x330e('0x35')](_0x591df4,_0x49c809=0x1){let _0x204c11;for(const _0x3eae54 of this[_0x330e('0x1d')])if(_0x3eae54[_0x330e('0x11')](_0x591df4)){_0x204c11=_0x3eae54[_0x330e('0x3b')];break;}return _0x204c11||(_0x204c11=this[_0x330e('0x30')]['get'](_0x591df4[_0x330e('0x2d')])),_0x204c11?_0x204c11(_0x49c809):0x1!==_0x49c809?_0x49c809+'\x20'+_0x591df4[_0x330e('0x2d')]+'s':''+_0x591df4[_0x330e('0x2d')];}[_0x330e('0x21')](_0x933fe0,_0x4ad055){const _0x21ea38=_0x4ad055[_0x330e('0x2c')]()['getWalker'](),_0x5b33f2=_0x330e('0x14')==_0x4ad055[_0x330e('0x1b')]?_0x330e('0x36'):_0x330e('0x1');for(const _0x2ec653 of _0x21ea38){const _0x3beb29=_0x2ec653[_0x330e('0x1a')],_0x53a574=_0x933fe0[_0x933fe0[_0x330e('0x32')]-0x1];if(_0x3beb29['is'](_0x330e('0x20')))_0x53a574&&_0x53a574['type'][_0x330e('0xe')](_0x330e('0x28'))>-0x1&&_0x933fe0[_0x330e('0x23')](),_0x53a574&&'text'==_0x53a574[_0x330e('0x1b')]?_0x53a574[_0x5b33f2]+=_0x3beb29[_0x330e('0x2b')]:_0x933fe0[_0x330e('0x12')]({'type':'text','add':_0x330e('0x36')==_0x5b33f2?_0x3beb29[_0x330e('0x2b')]:'','remove':_0x330e('0x1')==_0x5b33f2?_0x3beb29[_0x330e('0x2b')]:''});else{if(this['_schema'][_0x330e('0x27')](_0x3beb29)){const _0x1e0a0c=_0x3beb29;if(_0x53a574&&_0x53a574[_0x330e('0x1b')][_0x330e('0xe')](_0x330e('0x28'))>-0x1&&_0x933fe0[_0x330e('0x23')](),_0x330e('0x19')==_0x2ec653[_0x330e('0x1b')])continue;_0x53a574&&_0x53a574['type']==_0x5b33f2+_0x330e('0x34')&&_0x53a574['element'][_0x330e('0x2d')]==_0x1e0a0c['name']?_0x53a574['quantity']++:_0x933fe0[_0x330e('0x12')]({'type':_0x5b33f2+'Object','element':_0x1e0a0c,'quantity':0x1}),_0x21ea38[_0x330e('0x2a')](_0x487c89=>!(_0x330e('0x19')==_0x487c89[_0x330e('0x1b')]&&_0x487c89[_0x330e('0x1a')]==_0x3beb29));}else{if(this[_0x330e('0x13')][_0x330e('0xf')](_0x3beb29,_0x330e('0x1c'))||_0x3beb29['is'](_0x330e('0x0'),_0x330e('0x3a'))){const _0x1bda80=_0x3beb29;if(_0x330e('0x36')==_0x5b33f2&&_0x330e('0x29')==_0x2ec653['type']||_0x330e('0x1')==_0x5b33f2&&'elementEnd'==_0x2ec653['type'])continue;if(_0x53a574&&-0x1==_0x53a574[_0x330e('0x1b')][_0x330e('0xe')](_0x330e('0x28'))){_0x330e('0x7')==_0x53a574[_0x330e('0x1b')]&&(_0x53a574[_0x5b33f2]+='\x0a');continue;}let _0x4fd4b9;if(_0x4fd4b9=_0x330e('0x36')==_0x5b33f2?_0x1bda80['nextSibling']&&!this['_schema']['isObject'](_0x1bda80[_0x330e('0x10')])?_0x1bda80[_0x330e('0x10')]:null:_0x1bda80[_0x330e('0x4')]&&!this[_0x330e('0x13')][_0x330e('0x27')](_0x1bda80[_0x330e('0x4')])?_0x1bda80[_0x330e('0x4')]:null,_0x1bda80['isEmpty']||_0x4fd4b9&&_0x4fd4b9[_0x330e('0xc')]){const _0x261076=_0x4fd4b9&&_0x4fd4b9['isEmpty']?_0x4fd4b9:_0x1bda80;_0x53a574&&_0x53a574['type']==_0x5b33f2+_0x330e('0x37')&&_0x53a574['element']['name']==_0x261076[_0x330e('0x2d')]?_0x53a574[_0x330e('0x2')]++:_0x933fe0[_0x330e('0x12')]({'type':_0x5b33f2+_0x330e('0x37'),'element':_0x261076,'quantity':0x1});}else _0x933fe0[_0x330e('0x12')]({'type':_0x5b33f2+'Container','element':_0x1bda80});}}}}}[_0x330e('0x6')](_0x3b6b26){const _0x36abf4=this['_locale'],_0x53ff5e=[];for(const _0x3e10f1 of _0x3b6b26){switch(_0x3e10f1[_0x330e('0x1b')]){case'text':if(_0x3e10f1[_0x330e('0x36')]=_0x3e10f1['add'][_0x330e('0xa')](/(\S)\u000A+(\S)/g,_0x330e('0x2e'))[_0x330e('0xa')](/\u000A/g,''),_0x3e10f1[_0x330e('0x1')]=_0x3e10f1[_0x330e('0x1')][_0x330e('0xa')](/(\S)\u000A+(\S)/g,_0x330e('0x2e'))['replace'](/\u000A/g,''),''!=_0x3e10f1[_0x330e('0x36')]&&''!=_0x3e10f1[_0x330e('0x1')]){_0x53ff5e['push']({'type':_0x330e('0xa'),'content':_0x12cefd(_0x36abf4,_0x330e('0x18'),['\x22'+_0x3e10f1[_0x330e('0x1')]+'\x22','\x22'+_0x3e10f1[_0x330e('0x36')]+'\x22'])});continue;}if(null!=_0x3e10f1['add'][_0x330e('0x31')](/^ +$/)){_0x53ff5e[_0x330e('0x12')]({'type':_0x330e('0x14'),'content':_0x12cefd(_0x36abf4,_0x330e('0xb'),_0x12cefd(_0x36abf4,'ELEMENT_SPACE',_0x3e10f1[_0x330e('0x36')][_0x330e('0x32')]))});continue;}if(null!=_0x3e10f1[_0x330e('0x1')]['match'](/^ +$/)){_0x53ff5e['push']({'type':_0x330e('0x16'),'content':_0x12cefd(_0x36abf4,_0x330e('0x24'),_0x12cefd(_0x36abf4,_0x330e('0x8'),_0x3e10f1['remove'][_0x330e('0x32')]))});continue;}if(''!=_0x3e10f1['add']){_0x53ff5e[_0x330e('0x12')]({'type':_0x330e('0x14'),'content':_0x12cefd(_0x36abf4,_0x330e('0xb'),'\x22'+_0x3e10f1[_0x330e('0x36')]+'\x22')});continue;}_0x53ff5e[_0x330e('0x12')]({'type':'deletion','content':_0x12cefd(_0x36abf4,'*Remove:*\x20%0','\x22'+_0x3e10f1[_0x330e('0x1')]+'\x22')});continue;case _0x330e('0xd'):case _0x330e('0x3'):_0x53ff5e[_0x330e('0x12')]({'type':_0x330e('0x14'),'content':_0x12cefd(_0x36abf4,_0x330e('0xb'),this[_0x330e('0x35')](_0x3e10f1[_0x330e('0x0')],_0x3e10f1[_0x330e('0x2')]))});continue;case'removeEmptyContainer':case'removeObject':_0x53ff5e['push']({'type':_0x330e('0x16'),'content':_0x12cefd(_0x36abf4,_0x330e('0x24'),this[_0x330e('0x35')](_0x3e10f1[_0x330e('0x0')],_0x3e10f1[_0x330e('0x2')]))});continue;case _0x330e('0x22'):_0x53ff5e['push']({'type':_0x330e('0x14'),'content':_0x12cefd(_0x36abf4,_0x330e('0x26'),this['getItemLabel'](_0x3e10f1[_0x330e('0x0')],_0x3e10f1['quantity']))});continue;case _0x330e('0x5'):_0x53ff5e['push']({'type':_0x330e('0x16'),'content':_0x12cefd(_0x36abf4,_0x330e('0x1f'),this['getItemLabel'](_0x3e10f1[_0x330e('0x0')],_0x3e10f1[_0x330e('0x2')]))});continue;}_0x53ff5e[_0x330e('0x12')](_0x3e10f1);}return _0x53ff5e;}}
|
package/src/trackchanges.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x55b4=['TrackChanges','pluginName','getSuggestions','addSuggestion','Comments','getSuggestion','editor','get','adapter','plugins'];(function(_0x53e7d2,_0x55b4f1){var _0x1329cf=function(_0x102d14){while(--_0x102d14){_0x53e7d2['push'](_0x53e7d2['shift']());}};_0x1329cf(++_0x55b4f1);}(_0x55b4,0x7a));var _0x1329=function(_0x53e7d2,_0x55b4f1){_0x53e7d2=_0x53e7d2-0x0;var _0x1329cf=_0x55b4[_0x53e7d2];return _0x1329cf;};import{Plugin as _0x18e12b}from'ckeditor5/src/core';import _0x342e51 from'./trackchangesui';import _0x4fde37 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x18e12b{static get['requires'](){return[_0x4fde37,_0x342e51,_0x1329('0x2')];}static get[_0x1329('0x9')](){return _0x1329('0x8');}set[_0x1329('0x6')](_0x1a47dd){this[_0x1329('0x4')]['plugins'][_0x1329('0x5')](_0x4fde37)[_0x1329('0x6')]=_0x1a47dd;}get['adapter'](){return this['editor']['plugins'][_0x1329('0x5')](_0x4fde37)[_0x1329('0x6')];}[_0x1329('0x1')](_0x43584e){return this['editor']['plugins'][_0x1329('0x5')](_0x4fde37)['addSuggestionData'](_0x43584e);}[_0x1329('0x0')]({skipNotAttached:_0x33483b=!0x1,toJSON:_0xa88175=!0x1}={}){return this['editor'][_0x1329('0x7')][_0x1329('0x5')](_0x4fde37)[_0x1329('0x0')]({'skipNotAttached':_0x33483b,'toJSON':_0xa88175});}[_0x1329('0x3')](_0x15d8d9){return this[_0x1329('0x4')][_0x1329('0x7')][_0x1329('0x5')](_0x4fde37)[_0x1329('0x3')](_0x15d8d9);}}
|
package/src/trackchangesdata.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2fb2=['trackChangesData','getRootNames','map','createDocumentFragment','init','push','useAnonymousUser','result','end','document','CommentsRepository','get','getFullData','div','constructor','destroy','TrackChangesDataGetter','set','Pagination','function','TrackChangesData','getDataWithDiscardedSuggestions','rootsAttributes','requires','create','data','track-changes-data-invalid-editor-creator','addSuggestionData','getRootsAttributes','getSuggestions','TrackChangesEditing','createElement','model','name','editorCreator','plugins','acceptAllSuggestions','editor','reduce','Users','getUser'];(function(_0x5029f3,_0x2fb22b){const _0x1c0f5b=function(_0x1d0ad4){while(--_0x1d0ad4){_0x5029f3['push'](_0x5029f3['shift']());}};_0x1c0f5b(++_0x2fb22b);}(_0x2fb2,0x1b5));const _0x1c0f=function(_0x5029f3,_0x2fb22b){_0x5029f3=_0x5029f3-0x0;let _0x1c0f5b=_0x2fb2[_0x5029f3];return _0x1c0f5b;};import{Plugin as _0x2d5eb3}from'ckeditor5/src/core';import{CKEditorError as _0x4b29ec}from'ckeditor5/src/utils';import _0x52227a from'./trackchangesediting';import{sanitizeEditorConfig as _0x14e854}from'ckeditor5-collaboration/src/collaboration-core';const w=[_0x1c0f('0x20')];export default class T extends _0x2d5eb3{static get[_0x1c0f('0x25')](){return[_0x52227a];}static get['pluginName'](){return _0x1c0f('0x22');}[_0x1c0f('0x12')](){const _0x4f0e24=this['editor'];if(_0x4f0e24['config']['define']('trackChangesData.editorCreator',_0x4b994d=>{const _0x4a4f70=_0x4f0e24[_0x1c0f('0x5')][_0x1c0f('0x17')][_0x1c0f('0xf')]()['reduce']((_0x3fbe0b,_0x408ee2)=>(_0x3fbe0b[_0x408ee2]='',_0x3fbe0b),{});return _0x4f0e24[_0x1c0f('0x1c')][_0x1c0f('0x26')](_0x4a4f70,_0x4b994d);}),_0x1c0f('0x21')!=typeof _0x4f0e24['config'][_0x1c0f('0x19')](_0x1c0f('0xe'))[_0x1c0f('0x7')])throw new _0x4b29ec(_0x1c0f('0x28'));}['getDataWithAcceptedSuggestions'](_0x4eba45){return v(this['editor'],!0x0,_0x4eba45);}[_0x1c0f('0x23')](_0x2b6960){return v(this[_0x1c0f('0xa')],!0x1,_0x2b6960);}}class P extends _0x2d5eb3{static get['pluginName'](){return _0x1c0f('0x1e');}constructor(_0x5e2e3c){super(_0x5e2e3c),this[_0x1c0f('0x15')]=_0x1c0f('0x16');}['init'](){this[_0x1c0f('0xa')]['plugins'][_0x1c0f('0x19')](_0x1c0f('0x18'))['_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[_0x1c0f('0xa')][_0x1c0f('0x8')][_0x1c0f('0x19')](_0x1c0f('0x3'))['_adapter']=null;}}function D(_0x296792){return void 0x0!==_0x296792[_0x1c0f('0x1')];}async function v(_0x12920c,_0x2e9b24,_0x88fa6d){const _0x3e1d65=_0x14e854(_0x12920c,w);_0x3e1d65[_0x1c0f('0x8')][_0x1c0f('0x13')](_0x52227a,P),_0x3e1d65[_0x1c0f('0x24')]=D(_0x12920c)?_0x12920c[_0x1c0f('0x1')]():void 0x0;const _0xc72049=document[_0x1c0f('0x11')](),_0x353d55=_0x12920c['config'][_0x1c0f('0x19')](_0x1c0f('0xe'))['editorCreator'],_0x186d95=await _0x353d55(_0x3e1d65,()=>function(_0x3addf6){const _0x5ea29b=document[_0x1c0f('0x4')](_0x1c0f('0x1b'));return _0x3addf6['appendChild'](_0x5ea29b),_0x5ea29b;}(_0xc72049));!function(_0x3496a2,_0x11dc87){const _0x2bc5ae=_0x3496a2[_0x1c0f('0x5')][_0x1c0f('0x17')][_0x1c0f('0xf')]()[_0x1c0f('0xb')]((_0x9a2be,_0x53a86b)=>(_0x9a2be[_0x53a86b]=_0x3496a2['data']['get']({'rootName':_0x53a86b}),_0x9a2be),{}),_0x5e16ce=_0x3496a2[_0x1c0f('0x8')]['get'](_0x1c0f('0xc'))['users'][_0x1c0f('0x10')](_0x489ca8=>({'id':_0x489ca8['id'],'name':_0x489ca8[_0x1c0f('0x6')]})),_0x354ec5=_0x3496a2[_0x1c0f('0x8')][_0x1c0f('0x19')]('TrackChangesEditing')[_0x1c0f('0x2')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x507de6=_0x11dc87['plugins']['get']('Users'),_0x3edb6f=_0x11dc87[_0x1c0f('0x8')]['get'](_0x1c0f('0x3'));for(const _0x340f82 of _0x5e16ce)_0x507de6[_0x1c0f('0xd')](_0x340f82['id'])||_0x507de6['addUser'](_0x340f82);_0x507de6['me']||_0x507de6[_0x1c0f('0x14')]();for(const _0x485dd2 of _0x354ec5)_0x3edb6f[_0x1c0f('0x0')](_0x485dd2);_0x11dc87[_0x1c0f('0x27')][_0x1c0f('0x1f')](_0x2bc5ae);}(_0x12920c,_0x186d95),_0x186d95['execute'](_0x2e9b24?_0x1c0f('0x9'):'discardAllSuggestions');const _0x836c1c=D(_0x186d95)?_0x186d95[_0x1c0f('0x1a')](_0x88fa6d):_0x186d95[_0x1c0f('0x27')][_0x1c0f('0x19')](_0x88fa6d);return await _0x186d95[_0x1c0f('0x1d')](),_0x836c1c;}
|