@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231025.0 → 0.0.0-nightly-20231027.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 _0x53ab=['_onAttributesChange','reduce','set','next','attributes','isExternal','end','setAttribute','from','getFirstMarker','getMarkers','isIntersectingWithRange','removeMarkers','addMarkerName','_isDataLoaded','getFirstRange','isMultiRange','suggestion:','previous','_onDiscard','getRanges','isInContent','@external','nodeAfter','accept','onAttributesChange','_markerNames','clear','head','creator','removeAttribute','split','type','onDiscard','nodeBefore','getMarkerNames','markers','decorate','subType','get','createdAt','data','push','addMarker','getItems','_onAccept','_model','change','getMultiRangeId','filter','getRange','map','discard','authoredAt','removeMarker','getAllAdjacentSuggestions','commentThread','substr','add','author','length','toJSON'];(function(_0x3d8d9c,_0x53abfb){const _0x22030b=function(_0x5ac995){while(--_0x5ac995){_0x3d8d9c['push'](_0x3d8d9c['shift']());}};_0x22030b(++_0x53abfb);}(_0x53ab,0x166));const _0x2203=function(_0x3d8d9c,_0x53abfb){_0x3d8d9c=_0x3d8d9c-0x0;let _0x22030b=_0x53ab[_0x3d8d9c];return _0x22030b;};import{Element as _0x5d0497}from'ckeditor5/src/engine';import{ObservableMixin as _0x295993,uid as _0x367251}from'ckeditor5/src/utils';import{cloneDeep as _0x319728,isEqual as _0x5ef186,set as _0x51cd17,unset as _0x277c7c}from'lodash-es';export default class u extends _0x295993(){constructor(_0x1dd8ef,_0x3473ac){super(),this[_0x2203('0x1c')]=!0x1,this['id']=_0x3473ac['id'],this[_0x2203('0x2e')]=_0x3473ac[_0x2203('0x2e')],this[_0x2203('0x34')]=_0x3473ac[_0x2203('0x34')]||null,this[_0x2203('0xb')]=_0x3473ac['author'],this['creator']=_0x3473ac[_0x2203('0x2b')]||_0x3473ac['author'],this[_0x2203('0x13')]=Boolean(_0x3473ac[_0x2203('0x12')]&&_0x3473ac[_0x2203('0x12')][_0x2203('0x24')]),this[_0x2203('0x37')]=null,this[_0x2203('0x3c')]=_0x1dd8ef,this[_0x2203('0x3b')]=_0x3473ac['onAccept'],this[_0x2203('0x21')]=_0x3473ac[_0x2203('0x2f')],this['_onAttributesChange']=_0x3473ac[_0x2203('0x27')],this[_0x2203('0x28')]=new Set(),this[_0x2203('0x36')]=null,this[_0x2203('0x10')](_0x2203('0x5'),null),this['set'](_0x2203('0x12'),_0x3473ac[_0x2203('0x12')]||{}),this['set'](_0x2203('0x20'),null),this[_0x2203('0x10')]('next',null),this[_0x2203('0x10')](_0x2203('0x8'),null),this[_0x2203('0x10')]('_saved',!0x1),this[_0x2203('0x33')]('accept'),this['decorate'](_0x2203('0x4'));}get[_0x2203('0x2a')](){let _0x327952=this;for(;_0x327952[_0x2203('0x20')];)_0x327952=_0x327952['previous'];return _0x327952;}get['hasComments'](){return!!this[_0x2203('0x8')]&&this['commentThread'][_0x2203('0xc')]>0x0;}get[_0x2203('0x1e')](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array[_0x2203('0x16')](this[_0x2203('0x28')])[0x0][_0x2203('0x2d')](':')['length'];}get[_0x2203('0x23')](){return null!==this[_0x2203('0x17')]();}[_0x2203('0x1b')](_0x4a5f6d){this[_0x2203('0x28')][_0x2203('0xa')](_0x4a5f6d);}['getMarkerNames'](){return Array[_0x2203('0x16')](this['_markerNames']);}[_0x2203('0x18')](){return this[_0x2203('0x31')]()[_0x2203('0x3')](_0xea5e89=>this[_0x2203('0x3c')][_0x2203('0x32')][_0x2203('0x35')](_0xea5e89))[_0x2203('0x1')](_0x4e95d6=>_0x4e95d6);}[_0x2203('0x17')](){return this[_0x2203('0x18')]()[0x0]||null;}[_0x2203('0x1a')](){this['_model'][_0x2203('0x3d')](_0x352b9a=>{for(const _0x51b3dd of this[_0x2203('0x18')]())_0x352b9a[_0x2203('0x6')](_0x51b3dd);}),this[_0x2203('0x28')][_0x2203('0x29')]();}['removeMarker'](_0x42cf68){this['_model'][_0x2203('0x3d')](_0x283ee3=>{_0x283ee3[_0x2203('0x6')](_0x42cf68);}),this[_0x2203('0x28')]['delete'](_0x42cf68);}['addRange'](_0x179161){const _0x265ff1=_0x2203('0x1f')+this[_0x2203('0x2e')]+':'+this['subType']+':'+this['id']+':'+this[_0x2203('0x2b')]['id']+':'+u[_0x2203('0x0')]();this[_0x2203('0x1b')](_0x265ff1),this[_0x2203('0x3c')][_0x2203('0x3d')](_0x15c5a1=>{_0x15c5a1[_0x2203('0x39')](_0x265ff1,{'range':_0x179161,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x2203('0x19')](_0x44be44){for(const _0x5547eb of this[_0x2203('0x22')]())if(_0x5547eb['isIntersecting'](_0x44be44))return!0x0;return!0x1;}[_0x2203('0x22')](){return this[_0x2203('0x18')]()[_0x2203('0x3')](_0x3e9a16=>_0x3e9a16['getRange']());}[_0x2203('0x3a')](){return this[_0x2203('0x22')]()[_0x2203('0xf')]((_0x335e58,_0x183be6)=>[..._0x335e58,..._0x183be6[_0x2203('0x3a')]()],[]);}[_0x2203('0x1d')](){var _0x53442c;return(null===(_0x53442c=this[_0x2203('0x17')]())||void 0x0===_0x53442c?void 0x0:_0x53442c[_0x2203('0x2')]())||null;}['getContainedElement'](){const _0x313d66=this[_0x2203('0x22')]();if(0x1!=_0x313d66['length'])return null;const _0x1f309b=_0x313d66[0x0],_0x38c571=_0x1f309b['start'][_0x2203('0x25')],_0x68f467=_0x1f309b[_0x2203('0x14')][_0x2203('0x30')];return _0x38c571 instanceof _0x5d0497?_0x38c571!=_0x68f467?null:_0x38c571:null;}[_0x2203('0x26')](){this[_0x2203('0x3b')](this[_0x2203('0x22')](),this[_0x2203('0x37')],this[_0x2203('0x12')]),this[_0x2203('0x1a')]();}[_0x2203('0x4')](){this[_0x2203('0x21')](this['getRanges'](),this[_0x2203('0x37')],this[_0x2203('0x12')]),this['removeMarkers']();}[_0x2203('0x7')](){const _0x235aa7=[];let _0x2fb8e6=this[_0x2203('0x2a')];for(;_0x2fb8e6;)_0x235aa7[_0x2203('0x38')](_0x2fb8e6),_0x2fb8e6=_0x2fb8e6[_0x2203('0x11')];return _0x235aa7;}[_0x2203('0x15')](_0x300500,_0x46f3dd){const _0x2ea7bf=_0x319728(this[_0x2203('0x12')]);_0x51cd17(_0x2ea7bf,_0x300500,_0x46f3dd),_0x5ef186(_0x2ea7bf,this['attributes'])||(this[_0x2203('0x12')]=_0x2ea7bf,this[_0x2203('0xe')](_0x2ea7bf));}[_0x2203('0x2c')](_0x255a0e){const _0x183bbf=_0x319728(this['attributes']);_0x277c7c(_0x183bbf,_0x255a0e),_0x5ef186(_0x183bbf,this[_0x2203('0x12')])||(this['attributes']=_0x183bbf,this['_onAttributesChange'](this[_0x2203('0x12')]));}[_0x2203('0xd')](){return{'id':this['id'],'type':this[_0x2203('0x34')]?this[_0x2203('0x2e')]+':'+this[_0x2203('0x34')]:this['type'],'authorId':this[_0x2203('0x2b')]['id'],'createdAt':this[_0x2203('0x36')],'hasComments':this['hasComments'],'data':this['data'],'attributes':this[_0x2203('0x12')]};}static[_0x2203('0x0')](){return _0x367251()[_0x2203('0x9')](0x1,0x5);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4a34=['get','getDescriptions','isEqual','_itemLabelsCallbacks','previousSibling','elementEnd','removeObject','function','Container','_schema','*Split:*\x20%0','label','normal','element','softBreak','matchingCallback','REPLACE_TEXT','push','length','text','addEmptyContainer','addContainer','isEmpty','quantity','isInContent','EmptyContainer','nextSibling','registerDescriptionCallback','_addDescriptionItems','removeContainer','type','_itemLabels','skip','addObject','data','*Insert:*\x20%0','$textProxy','add','remove','match','ELEMENT_SPACE','_locale','isObject','deletion','Object','replace','elementStart','*Remove:*\x20%0','_resolveDescriptionItems','end','getFirstRange','pop','insertion','getItemLabel','indexOf','$1\x20$2','name','*Merge:*\x20%0','set'];(function(_0xc50ed7,_0x4a348e){const _0x4955a7=function(_0x1944e3){while(--_0x1944e3){_0xc50ed7['push'](_0xc50ed7['shift']());}};_0x4955a7(++_0x4a348e);}(_0x4a34,0x97));const _0x4955=function(_0xc50ed7,_0x4a348e){_0xc50ed7=_0xc50ed7-0x0;let _0x4955a7=_0x4a34[_0xc50ed7];return _0x4955a7;};import{getTranslation as _0x47bcbb}from'./utils/common-translations';import{priorities as _0x57cde8,insertToPriorityArray as _0x3e2aa1}from'ckeditor5/src/utils';export default class m{constructor(_0x13b440,_0x45c303){this['_customCallbacks']=[],this[_0x4955('0x39')]=new Map(),this[_0x4955('0x1d')]=[],this[_0x4955('0x23')]=_0x13b440,this['_locale']=_0x45c303;}[_0x4955('0x1b')](_0x7df43){const _0x27bf1d=[];for(let _0x235b0b=0x0;_0x235b0b<_0x7df43[_0x4955('0x2c')];_0x235b0b++){const _0xa005c9=_0x7df43[_0x235b0b];if(!_0xa005c9[_0x4955('0x32')])continue;let _0xa46654=!0x1;for(const _0x4f9e92 of this['_customCallbacks']){const _0x3af914=_0x4f9e92(_0xa005c9);if(_0x3af914){_0x4955('0x38')in _0x3af914&&_0x27bf1d[_0x4955('0x2b')](_0x3af914),_0xa46654=!0x0;break;}}if(!_0xa46654){this['_addDescriptionItems'](_0x27bf1d,_0xa005c9);const _0x3b0cac=_0x7df43[_0x235b0b+0x1];if(_0x3b0cac&&!_0xa005c9['getFirstRange']()[_0x4955('0x10')][_0x4955('0x1c')](_0x3b0cac[_0x4955('0x11')]()['start'])){const _0x3e3477=_0x27bf1d[_0x27bf1d[_0x4955('0x2c')]-0x1],_0x2c360f=_0x4955('0x13')==_0xa005c9['type']?_0x4955('0x4'):_0x4955('0x5');_0x3e3477&&'text'==_0x3e3477[_0x4955('0x38')]&&(_0x3e3477[_0x2c360f]+='\x0a');}}}return this[_0x4955('0xf')](_0x27bf1d);}[_0x4955('0x35')](_0x4ef82e){this['_customCallbacks'][_0x4955('0x2b')](_0x4ef82e);}['registerElementLabel'](_0x4ad47f,_0x35dbde,_0x4b306a=_0x57cde8[_0x4955('0x26')]){_0x4955('0x21')==typeof _0x4ad47f?_0x3e2aa1(this[_0x4955('0x1d')],{'matchingCallback':_0x4ad47f,'label':_0x35dbde,'priority':_0x4b306a}):this[_0x4955('0x39')][_0x4955('0x19')](_0x4ad47f,_0x35dbde);}[_0x4955('0x14')](_0x55e718,_0x532cb1=0x1){let _0x448479;for(const _0x2489a1 of this['_itemLabelsCallbacks'])if(_0x2489a1[_0x4955('0x29')](_0x55e718)){_0x448479=_0x2489a1[_0x4955('0x25')];break;}return _0x448479||(_0x448479=this[_0x4955('0x39')][_0x4955('0x1a')](_0x55e718['name'])),_0x448479?_0x448479(_0x532cb1):0x1!==_0x532cb1?_0x532cb1+'\x20'+_0x55e718[_0x4955('0x17')]+'s':''+_0x55e718['name'];}[_0x4955('0x36')](_0x869383,_0x6a3c31){const _0x4834b4=_0x6a3c31[_0x4955('0x11')]()['getWalker'](),_0xa82127='insertion'==_0x6a3c31['type']?_0x4955('0x4'):_0x4955('0x5');for(const _0x1377a8 of _0x4834b4){const _0x479316=_0x1377a8['item'],_0x1a7663=_0x869383[_0x869383['length']-0x1];if(_0x479316['is'](_0x4955('0x3')))_0x1a7663&&_0x1a7663['type'][_0x4955('0x15')](_0x4955('0x22'))>-0x1&&_0x869383['pop'](),_0x1a7663&&_0x4955('0x2d')==_0x1a7663['type']?_0x1a7663[_0xa82127]+=_0x479316[_0x4955('0x1')]:_0x869383[_0x4955('0x2b')]({'type':_0x4955('0x2d'),'add':_0x4955('0x4')==_0xa82127?_0x479316[_0x4955('0x1')]:'','remove':'remove'==_0xa82127?_0x479316[_0x4955('0x1')]:''});else{if(this[_0x4955('0x23')]['isObject'](_0x479316)){const _0x2fb15c=_0x479316;if(_0x1a7663&&_0x1a7663[_0x4955('0x38')][_0x4955('0x15')](_0x4955('0x22'))>-0x1&&_0x869383[_0x4955('0x12')](),_0x4955('0x1f')==_0x1377a8[_0x4955('0x38')])continue;_0x1a7663&&_0x1a7663[_0x4955('0x38')]==_0xa82127+_0x4955('0xb')&&_0x1a7663[_0x4955('0x27')]['name']==_0x2fb15c[_0x4955('0x17')]?_0x1a7663[_0x4955('0x31')]++:_0x869383['push']({'type':_0xa82127+_0x4955('0xb'),'element':_0x2fb15c,'quantity':0x1}),_0x4834b4[_0x4955('0x3a')](_0x1b8b04=>!('elementEnd'==_0x1b8b04['type']&&_0x1b8b04['item']==_0x479316));}else{if(this[_0x4955('0x23')]['checkChild'](_0x479316,'$text')||_0x479316['is'](_0x4955('0x27'),_0x4955('0x28'))){const _0x41d75c=_0x479316;if('add'==_0xa82127&&_0x4955('0xd')==_0x1377a8['type']||'remove'==_0xa82127&&'elementEnd'==_0x1377a8[_0x4955('0x38')])continue;if(_0x1a7663&&-0x1==_0x1a7663[_0x4955('0x38')]['indexOf'](_0x4955('0x22'))){_0x4955('0x2d')==_0x1a7663[_0x4955('0x38')]&&(_0x1a7663[_0xa82127]+='\x0a');continue;}let _0x242974;if(_0x242974=_0x4955('0x4')==_0xa82127?_0x41d75c[_0x4955('0x34')]&&!this['_schema']['isObject'](_0x41d75c[_0x4955('0x34')])?_0x41d75c[_0x4955('0x34')]:null:_0x41d75c['previousSibling']&&!this[_0x4955('0x23')][_0x4955('0x9')](_0x41d75c[_0x4955('0x1e')])?_0x41d75c[_0x4955('0x1e')]:null,_0x41d75c[_0x4955('0x30')]||_0x242974&&_0x242974['isEmpty']){const _0x5609dd=_0x242974&&_0x242974['isEmpty']?_0x242974:_0x41d75c;_0x1a7663&&_0x1a7663['type']==_0xa82127+_0x4955('0x33')&&_0x1a7663[_0x4955('0x27')]['name']==_0x5609dd[_0x4955('0x17')]?_0x1a7663[_0x4955('0x31')]++:_0x869383[_0x4955('0x2b')]({'type':_0xa82127+_0x4955('0x33'),'element':_0x5609dd,'quantity':0x1});}else _0x869383[_0x4955('0x2b')]({'type':_0xa82127+_0x4955('0x22'),'element':_0x41d75c});}}}}}[_0x4955('0xf')](_0x54f438){const _0x54d683=this[_0x4955('0x8')],_0x14d9f8=[];for(const _0x2d0790 of _0x54f438){switch(_0x2d0790[_0x4955('0x38')]){case _0x4955('0x2d'):if(_0x2d0790[_0x4955('0x4')]=_0x2d0790[_0x4955('0x4')]['replace'](/(\S)\u000A+(\S)/g,_0x4955('0x16'))[_0x4955('0xc')](/\u000A/g,''),_0x2d0790[_0x4955('0x5')]=_0x2d0790[_0x4955('0x5')][_0x4955('0xc')](/(\S)\u000A+(\S)/g,_0x4955('0x16'))[_0x4955('0xc')](/\u000A/g,''),''!=_0x2d0790[_0x4955('0x4')]&&''!=_0x2d0790['remove']){_0x14d9f8['push']({'type':_0x4955('0xc'),'content':_0x47bcbb(_0x54d683,_0x4955('0x2a'),['\x22'+_0x2d0790[_0x4955('0x5')]+'\x22','\x22'+_0x2d0790[_0x4955('0x4')]+'\x22'])});continue;}if(null!=_0x2d0790[_0x4955('0x4')][_0x4955('0x6')](/^ +$/)){_0x14d9f8[_0x4955('0x2b')]({'type':'insertion','content':_0x47bcbb(_0x54d683,'*Insert:*\x20%0',_0x47bcbb(_0x54d683,_0x4955('0x7'),_0x2d0790[_0x4955('0x4')][_0x4955('0x2c')]))});continue;}if(null!=_0x2d0790['remove'][_0x4955('0x6')](/^ +$/)){_0x14d9f8[_0x4955('0x2b')]({'type':_0x4955('0xa'),'content':_0x47bcbb(_0x54d683,_0x4955('0xe'),_0x47bcbb(_0x54d683,_0x4955('0x7'),_0x2d0790['remove'][_0x4955('0x2c')]))});continue;}if(''!=_0x2d0790[_0x4955('0x4')]){_0x14d9f8['push']({'type':_0x4955('0x13'),'content':_0x47bcbb(_0x54d683,_0x4955('0x2'),'\x22'+_0x2d0790[_0x4955('0x4')]+'\x22')});continue;}_0x14d9f8[_0x4955('0x2b')]({'type':_0x4955('0xa'),'content':_0x47bcbb(_0x54d683,_0x4955('0xe'),'\x22'+_0x2d0790[_0x4955('0x5')]+'\x22')});continue;case _0x4955('0x2e'):case _0x4955('0x0'):_0x14d9f8[_0x4955('0x2b')]({'type':'insertion','content':_0x47bcbb(_0x54d683,_0x4955('0x2'),this['getItemLabel'](_0x2d0790[_0x4955('0x27')],_0x2d0790[_0x4955('0x31')]))});continue;case'removeEmptyContainer':case _0x4955('0x20'):_0x14d9f8['push']({'type':_0x4955('0xa'),'content':_0x47bcbb(_0x54d683,_0x4955('0xe'),this['getItemLabel'](_0x2d0790['element'],_0x2d0790[_0x4955('0x31')]))});continue;case _0x4955('0x2f'):_0x14d9f8[_0x4955('0x2b')]({'type':_0x4955('0x13'),'content':_0x47bcbb(_0x54d683,_0x4955('0x24'),this[_0x4955('0x14')](_0x2d0790['element'],_0x2d0790['quantity']))});continue;case _0x4955('0x37'):_0x14d9f8[_0x4955('0x2b')]({'type':'deletion','content':_0x47bcbb(_0x54d683,_0x4955('0x18'),this[_0x4955('0x14')](_0x2d0790[_0x4955('0x27')],_0x2d0790[_0x4955('0x31')]))});continue;}_0x14d9f8[_0x4955('0x2b')](_0x2d0790);}return _0x14d9f8;}}
|
package/src/trackchanges.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4787=['getSuggestion','pluginName','plugins','get','TrackChanges','adapter','getSuggestions','Comments','editor'];(function(_0xd6791f,_0x4787a0){var _0x504264=function(_0x3fb162){while(--_0x3fb162){_0xd6791f['push'](_0xd6791f['shift']());}};_0x504264(++_0x4787a0);}(_0x4787,0x9c));var _0x5042=function(_0xd6791f,_0x4787a0){_0xd6791f=_0xd6791f-0x0;var _0x504264=_0x4787[_0xd6791f];return _0x504264;};import{Plugin as _0x36ea3b}from'ckeditor5/src/core';import _0x1123de from'./trackchangesui';import _0x52319e from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x36ea3b{static get['requires'](){return[_0x52319e,_0x1123de,_0x5042('0x4')];}static get[_0x5042('0x7')](){return _0x5042('0x1');}set['adapter'](_0x5159ef){this[_0x5042('0x5')][_0x5042('0x8')]['get'](_0x52319e)[_0x5042('0x2')]=_0x5159ef;}get['adapter'](){return this['editor'][_0x5042('0x8')][_0x5042('0x0')](_0x52319e)[_0x5042('0x2')];}['addSuggestion'](_0x5c2d49){return this[_0x5042('0x5')][_0x5042('0x8')][_0x5042('0x0')](_0x52319e)['addSuggestionData'](_0x5c2d49);}[_0x5042('0x3')]({skipNotAttached:_0x668aa=!0x1,toJSON:_0x46585f=!0x1}={}){return this['editor'][_0x5042('0x8')][_0x5042('0x0')](_0x52319e)[_0x5042('0x3')]({'skipNotAttached':_0x668aa,'toJSON':_0x46585f});}['getSuggestion'](_0x34e496){return this[_0x5042('0x5')]['plugins'][_0x5042('0x0')](_0x52319e)[_0x5042('0x6')](_0x34e496);}}
|
package/src/trackchangesdata.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x55e7=['addUser','rootsAttributes','name','getSuggestions','document','getDataWithDiscardedSuggestions','getRootsAttributes','requires','editorCreator','getDataWithAcceptedSuggestions','plugins','config','getFullData','set','_adapter','destroy','define','execute','constructor','editor','get','function','createDocumentFragment','Pagination','result','end','createElement','users','TrackChangesEditing','Users','pluginName','useAnonymousUser','init','discardAllSuggestions','getUser','create','trackChangesData','TrackChangesDataGetter','map','div','model','data'];(function(_0x6d4e7c,_0x55e77d){const _0x792486=function(_0x364f09){while(--_0x364f09){_0x6d4e7c['push'](_0x6d4e7c['shift']());}};_0x792486(++_0x55e77d);}(_0x55e7,0x80));const _0x7924=function(_0x6d4e7c,_0x55e77d){_0x6d4e7c=_0x6d4e7c-0x0;let _0x792486=_0x55e7[_0x6d4e7c];return _0x792486;};import{Plugin as _0x5bdc93}from'ckeditor5/src/core';import{CKEditorError as _0x411422}from'ckeditor5/src/utils';import _0x18ef58 from'./trackchangesediting';import{sanitizeEditorConfig as _0x19475a}from'ckeditor5-collaboration/src/collaboration-core';const w=[_0x7924('0x15')];export default class T extends _0x5bdc93{static get[_0x7924('0x5')](){return[_0x18ef58];}static get[_0x7924('0x1c')](){return'TrackChangesData';}['init'](){const _0x32a9a8=this[_0x7924('0x11')];if(_0x32a9a8[_0x7924('0x9')][_0x7924('0xe')]('trackChangesData.editorCreator',_0x5d58ab=>{const _0x5299e0=_0x32a9a8[_0x7924('0x26')][_0x7924('0x2')]['getRootNames']()['reduce']((_0x1c35c1,_0x3ae056)=>(_0x1c35c1[_0x3ae056]='',_0x1c35c1),{});return _0x32a9a8[_0x7924('0x10')][_0x7924('0x21')](_0x5299e0,_0x5d58ab);}),_0x7924('0x13')!=typeof _0x32a9a8[_0x7924('0x9')][_0x7924('0x12')](_0x7924('0x22'))[_0x7924('0x6')])throw new _0x411422('track-changes-data-invalid-editor-creator');}[_0x7924('0x7')](_0x5e1ace){return v(this[_0x7924('0x11')],!0x0,_0x5e1ace);}[_0x7924('0x3')](_0x4783b7){return v(this['editor'],!0x1,_0x4783b7);}}class P extends _0x5bdc93{static get['pluginName'](){return _0x7924('0x23');}constructor(_0x93cd20){super(_0x93cd20),this[_0x7924('0x16')]=_0x7924('0x17');}[_0x7924('0x1e')](){this[_0x7924('0x11')][_0x7924('0x8')][_0x7924('0x12')]('CommentsRepository')[_0x7924('0xc')]={'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[_0x7924('0x11')][_0x7924('0x8')][_0x7924('0x12')](_0x7924('0x1a'))[_0x7924('0xc')]=null;}}function D(_0x455d8b){return void 0x0!==_0x455d8b[_0x7924('0x4')];}async function v(_0x135d31,_0x599781,_0x21c8ef){const _0x93688d=_0x19475a(_0x135d31,w);_0x93688d['plugins']['push'](_0x18ef58,P),_0x93688d[_0x7924('0x29')]=D(_0x135d31)?_0x135d31[_0x7924('0x4')]():void 0x0;const _0x2a1441=document[_0x7924('0x14')](),_0x3b4710=_0x135d31[_0x7924('0x9')][_0x7924('0x12')](_0x7924('0x22'))[_0x7924('0x6')],_0x55a2cb=await _0x3b4710(_0x93688d,()=>function(_0x5d8261){const _0x239dda=document[_0x7924('0x18')](_0x7924('0x25'));return _0x5d8261['appendChild'](_0x239dda),_0x239dda;}(_0x2a1441));!function(_0x52eeda,_0x27de88){const _0x2c3248=_0x52eeda[_0x7924('0x26')][_0x7924('0x2')]['getRootNames']()['reduce']((_0x128013,_0x4259e0)=>(_0x128013[_0x4259e0]=_0x52eeda[_0x7924('0x27')][_0x7924('0x12')]({'rootName':_0x4259e0}),_0x128013),{}),_0x51c60c=_0x52eeda[_0x7924('0x8')][_0x7924('0x12')](_0x7924('0x1b'))[_0x7924('0x19')][_0x7924('0x24')](_0xfa2ac=>({'id':_0xfa2ac['id'],'name':_0xfa2ac[_0x7924('0x0')]})),_0x4dba94=_0x52eeda[_0x7924('0x8')][_0x7924('0x12')](_0x7924('0x1a'))[_0x7924('0x1')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3aacda=_0x27de88[_0x7924('0x8')][_0x7924('0x12')](_0x7924('0x1b')),_0x2da21a=_0x27de88[_0x7924('0x8')][_0x7924('0x12')](_0x7924('0x1a'));for(const _0x1b696f of _0x51c60c)_0x3aacda[_0x7924('0x20')](_0x1b696f['id'])||_0x3aacda[_0x7924('0x28')](_0x1b696f);_0x3aacda['me']||_0x3aacda[_0x7924('0x1d')]();for(const _0x6c8807 of _0x4dba94)_0x2da21a['addSuggestionData'](_0x6c8807);_0x27de88[_0x7924('0x27')][_0x7924('0xb')](_0x2c3248);}(_0x135d31,_0x55a2cb),_0x55a2cb[_0x7924('0xf')](_0x599781?'acceptAllSuggestions':_0x7924('0x1f'));const _0x511111=D(_0x55a2cb)?_0x55a2cb[_0x7924('0xa')](_0x21c8ef):_0x55a2cb['data'][_0x7924('0x12')](_0x21c8ef);return await _0x55a2cb[_0x7924('0xd')](),_0x511111;}
|