@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230725.1 → 0.0.0-nightly-20230726.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 _0x4a5e=['previous','markers','end','removeAttribute','_model','getContainedElement','onAccept','_onAccept','change','onDiscard','addMarker','authoredAt','hasComments','addRange','delete','type','getFirstRange','_saved','onAttributesChange','push','createdAt','set','map','decorate','start','from','commentThread','subType','_markerNames','getMarkerNames','_onAttributesChange','getMultiRangeId','isInContent','data','head','addMarkerName','nodeBefore','author','attributes','discard','_onDiscard','substr','split','next','removeMarkers','getRange','getRanges','isExternal','getAllAdjacentSuggestions','isMultiRange','removeMarker','creator','accept','add','getMarkers','length','getItems','getFirstMarker','nodeAfter','isIntersecting','setAttribute','toJSON','reduce','get'];(function(_0x5e98e1,_0x4a5ef0){const _0x1cebce=function(_0x29cc2a){while(--_0x29cc2a){_0x5e98e1['push'](_0x5e98e1['shift']());}};_0x1cebce(++_0x4a5ef0);}(_0x4a5e,0x1f1));const _0x1ceb=function(_0x5e98e1,_0x4a5ef0){_0x5e98e1=_0x5e98e1-0x0;let _0x1cebce=_0x4a5e[_0x5e98e1];return _0x1cebce;};import{Element as _0x54b4f7}from'ckeditor5/src/engine';import{ObservableMixin as _0x1ed85b,uid as _0xe29bd5}from'ckeditor5/src/utils';import{cloneDeep as _0x5aea70,isEqual as _0x5d4241,set as _0x3cf7f7,unset as _0x464aa5}from'lodash-es';export default class u extends _0x1ed85b(){constructor(_0x5e5f0e,_0x3cb7ee){super(),this['id']=_0x3cb7ee['id'],this[_0x1ceb('0x1e')]=_0x3cb7ee['type'],this[_0x1ceb('0x2a')]=_0x3cb7ee[_0x1ceb('0x2a')]||null,this[_0x1ceb('0x34')]=_0x3cb7ee[_0x1ceb('0x34')],this[_0x1ceb('0x2')]=_0x3cb7ee[_0x1ceb('0x2')]||_0x3cb7ee['author'],this[_0x1ceb('0x3e')]=Boolean(_0x3cb7ee[_0x1ceb('0x35')]&&_0x3cb7ee[_0x1ceb('0x35')]['@external']),this['data']=null,this[_0x1ceb('0x13')]=_0x5e5f0e,this[_0x1ceb('0x16')]=_0x3cb7ee[_0x1ceb('0x15')],this[_0x1ceb('0x37')]=_0x3cb7ee[_0x1ceb('0x18')],this[_0x1ceb('0x2d')]=_0x3cb7ee[_0x1ceb('0x21')],this[_0x1ceb('0x2b')]=new Set(),this[_0x1ceb('0x23')]=null,this[_0x1ceb('0x24')](_0x1ceb('0x1a'),null),this[_0x1ceb('0x24')](_0x1ceb('0x35'),_0x3cb7ee['attributes']||{}),this[_0x1ceb('0x24')]('previous',null),this['set'](_0x1ceb('0x3a'),null),this[_0x1ceb('0x24')](_0x1ceb('0x29'),null),this['set'](_0x1ceb('0x20'),!0x1),this[_0x1ceb('0x26')](_0x1ceb('0x3')),this[_0x1ceb('0x26')]('discard');}get[_0x1ceb('0x31')](){let _0x391644=this;for(;_0x391644['previous'];)_0x391644=_0x391644[_0x1ceb('0xf')];return _0x391644;}get[_0x1ceb('0x1b')](){return!!this[_0x1ceb('0x29')]&&this[_0x1ceb('0x29')][_0x1ceb('0x6')]>0x0;}get[_0x1ceb('0x0')](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this[_0x1ceb('0x2b')])[0x0][_0x1ceb('0x39')](':')[_0x1ceb('0x6')];}get[_0x1ceb('0x2f')](){return null!==this[_0x1ceb('0x8')]();}['addMarkerName'](_0x1726f3){this[_0x1ceb('0x2b')][_0x1ceb('0x4')](_0x1726f3);}[_0x1ceb('0x2c')](){return Array[_0x1ceb('0x28')](this[_0x1ceb('0x2b')]);}['getMarkers'](){return this[_0x1ceb('0x2c')]()[_0x1ceb('0x25')](_0x5b11cf=>this[_0x1ceb('0x13')][_0x1ceb('0x10')][_0x1ceb('0xe')](_0x5b11cf))['filter'](_0x383e6=>_0x383e6);}[_0x1ceb('0x8')](){return this[_0x1ceb('0x5')]()[0x0]||null;}[_0x1ceb('0x3b')](){this[_0x1ceb('0x13')][_0x1ceb('0x17')](_0x31ecdb=>{for(const _0xaaf8ce of this[_0x1ceb('0x5')]())_0x31ecdb['removeMarker'](_0xaaf8ce);}),this[_0x1ceb('0x2b')]['clear']();}[_0x1ceb('0x1')](_0x32075e){this[_0x1ceb('0x13')][_0x1ceb('0x17')](_0x24c46a=>{_0x24c46a[_0x1ceb('0x1')](_0x32075e);}),this[_0x1ceb('0x2b')][_0x1ceb('0x1d')](_0x32075e);}[_0x1ceb('0x1c')](_0x28cc87){const _0x80b485='suggestion:'+this[_0x1ceb('0x1e')]+':'+this[_0x1ceb('0x2a')]+':'+this['id']+':'+this[_0x1ceb('0x2')]['id']+':'+u[_0x1ceb('0x2e')]();this[_0x1ceb('0x32')](_0x80b485),this['_model'][_0x1ceb('0x17')](_0x15381f=>{_0x15381f[_0x1ceb('0x19')](_0x80b485,{'range':_0x28cc87,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3e10fe){for(const _0xee933f of this[_0x1ceb('0x3d')]())if(_0xee933f[_0x1ceb('0xa')](_0x3e10fe))return!0x0;return!0x1;}[_0x1ceb('0x3d')](){return this['getMarkers']()[_0x1ceb('0x25')](_0x4997dc=>_0x4997dc[_0x1ceb('0x3c')]());}[_0x1ceb('0x7')](){return this[_0x1ceb('0x3d')]()[_0x1ceb('0xd')]((_0x579a41,_0x2e5f53)=>[..._0x579a41,..._0x2e5f53[_0x1ceb('0x7')]()],[]);}[_0x1ceb('0x1f')](){var _0x1f273b;return(null===(_0x1f273b=this[_0x1ceb('0x8')]())||void 0x0===_0x1f273b?void 0x0:_0x1f273b[_0x1ceb('0x3c')]())||null;}[_0x1ceb('0x14')](){const _0x42c1a6=this['getRanges']();if(0x1!=_0x42c1a6[_0x1ceb('0x6')])return null;const _0x1bf8dd=_0x42c1a6[0x0],_0x905251=_0x1bf8dd[_0x1ceb('0x27')][_0x1ceb('0x9')],_0xf70810=_0x1bf8dd[_0x1ceb('0x11')][_0x1ceb('0x33')];return _0x905251 instanceof _0x54b4f7?_0x905251!=_0xf70810?null:_0x905251:null;}[_0x1ceb('0x3')](){this[_0x1ceb('0x16')](this[_0x1ceb('0x3d')](),this['data'],this['attributes']),this['removeMarkers']();}[_0x1ceb('0x36')](){this[_0x1ceb('0x37')](this[_0x1ceb('0x3d')](),this[_0x1ceb('0x30')],this[_0x1ceb('0x35')]),this[_0x1ceb('0x3b')]();}[_0x1ceb('0x3f')](){const _0xf1ceb7=[];let _0x15f0eb=this[_0x1ceb('0x31')];for(;_0x15f0eb;)_0xf1ceb7[_0x1ceb('0x22')](_0x15f0eb),_0x15f0eb=_0x15f0eb[_0x1ceb('0x3a')];return _0xf1ceb7;}[_0x1ceb('0xb')](_0x5e812f,_0x126785){const _0x370af8=_0x5aea70(this[_0x1ceb('0x35')]);_0x3cf7f7(_0x370af8,_0x5e812f,_0x126785),_0x5d4241(_0x370af8,this[_0x1ceb('0x35')])||(this['attributes']=_0x370af8,this['_onAttributesChange'](_0x370af8));}[_0x1ceb('0x12')](_0x4dac28){const _0x5dbb61=_0x5aea70(this[_0x1ceb('0x35')]);_0x464aa5(_0x5dbb61,_0x4dac28),_0x5d4241(_0x5dbb61,this[_0x1ceb('0x35')])||(this[_0x1ceb('0x35')]=_0x5dbb61,this['_onAttributesChange'](this[_0x1ceb('0x35')]));}[_0x1ceb('0xc')](){return{'id':this['id'],'type':this[_0x1ceb('0x2a')]?this[_0x1ceb('0x1e')]+':'+this[_0x1ceb('0x2a')]:this[_0x1ceb('0x1e')],'authorId':this[_0x1ceb('0x2')]['id'],'createdAt':this[_0x1ceb('0x23')],'hasComments':this[_0x1ceb('0x1b')],'data':this[_0x1ceb('0x30')],'attributes':this['attributes']};}static[_0x1ceb('0x2e')](){return _0xe29bd5()[_0x1ceb('0x38')](0x1,0x5);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x7610=['*Remove:*\x20%0','*Insert:*\x20%0','getItemLabel','skip','_itemLabels','set','removeObject','nextSibling','name','checkChild','indexOf','normal','elementStart','_customCallbacks','_itemLabelsCallbacks','registerDescriptionCallback','insertion','text','addEmptyContainer','isInContent','push','*Split:*\x20%0','removeEmptyContainer','getWalker','length','end','softBreak','isObject','$1\x20$2','get','function','remove','getFirstRange','Container','getDescriptions','registerElementLabel','add','match','pop','matchingCallback','_schema','elementEnd','data','$textProxy','deletion','_addDescriptionItems','_resolveDescriptionItems','addObject','start','previousSibling','type','isEmpty','isEqual','quantity','EmptyContainer','replace','removeContainer','Object','element','addContainer','item','ELEMENT_SPACE'];(function(_0x302a78,_0x7610c8){const _0x31258b=function(_0x32e24e){while(--_0x32e24e){_0x302a78['push'](_0x302a78['shift']());}};_0x31258b(++_0x7610c8);}(_0x7610,0x12e));const _0x3125=function(_0x302a78,_0x7610c8){_0x302a78=_0x302a78-0x0;let _0x31258b=_0x7610[_0x302a78];return _0x31258b;};import{getTranslation as _0x510a96}from'./utils/common-translations';import{priorities as _0x4a3af8,insertToPriorityArray as _0x2ec2e2}from'ckeditor5/src/utils';export default class m{constructor(_0x290583,_0x385d08){this[_0x3125('0x15')]=[],this[_0x3125('0xc')]=new Map(),this[_0x3125('0x16')]=[],this[_0x3125('0x30')]=_0x290583,this['_locale']=_0x385d08;}[_0x3125('0x2a')](_0x55a9e1){const _0x1c0b1a=[];for(let _0x434af3=0x0;_0x434af3<_0x55a9e1['length'];_0x434af3++){const _0x541ddf=_0x55a9e1[_0x434af3];if(!_0x541ddf[_0x3125('0x1b')])continue;let _0xa8630e=!0x1;for(const _0x3e66a9 of this['_customCallbacks']){const _0x3f15c2=_0x3e66a9(_0x541ddf);if(_0x3f15c2){_0x3125('0x3a')in _0x3f15c2&&_0x1c0b1a['push'](_0x3f15c2),_0xa8630e=!0x0;break;}}if(!_0xa8630e){this['_addDescriptionItems'](_0x1c0b1a,_0x541ddf);const _0x3be2df=_0x55a9e1[_0x434af3+0x1];if(_0x3be2df&&!_0x541ddf[_0x3125('0x28')]()[_0x3125('0x21')][_0x3125('0x3c')](_0x3be2df[_0x3125('0x28')]()[_0x3125('0x38')])){const _0x2e1dc1=_0x1c0b1a[_0x1c0b1a[_0x3125('0x20')]-0x1],_0x37d8d3='insertion'==_0x541ddf['type']?'add':'remove';_0x2e1dc1&&_0x3125('0x19')==_0x2e1dc1[_0x3125('0x3a')]&&(_0x2e1dc1[_0x37d8d3]+='\x0a');}}}return this[_0x3125('0x36')](_0x1c0b1a);}[_0x3125('0x17')](_0x38cc9c){this[_0x3125('0x15')]['push'](_0x38cc9c);}[_0x3125('0x2b')](_0x17cb80,_0x11d98d,_0x2dc80c=_0x4a3af8[_0x3125('0x13')]){_0x3125('0x26')==typeof _0x17cb80?_0x2ec2e2(this[_0x3125('0x16')],{'matchingCallback':_0x17cb80,'label':_0x11d98d,'priority':_0x2dc80c}):this[_0x3125('0xc')][_0x3125('0xd')](_0x17cb80,_0x11d98d);}[_0x3125('0xa')](_0x6fe721,_0x43f83a=0x1){let _0x439d63;for(const _0x24e56d of this[_0x3125('0x16')])if(_0x24e56d[_0x3125('0x2f')](_0x6fe721)){_0x439d63=_0x24e56d['label'];break;}return _0x439d63||(_0x439d63=this[_0x3125('0xc')][_0x3125('0x25')](_0x6fe721[_0x3125('0x10')])),_0x439d63?_0x439d63(_0x43f83a):0x1!==_0x43f83a?_0x43f83a+'\x20'+_0x6fe721[_0x3125('0x10')]+'s':''+_0x6fe721[_0x3125('0x10')];}[_0x3125('0x35')](_0x2f0aba,_0x2005b5){const _0x3b122c=_0x2005b5[_0x3125('0x28')]()[_0x3125('0x1f')](),_0xfea63a=_0x3125('0x18')==_0x2005b5[_0x3125('0x3a')]?_0x3125('0x2c'):'remove';for(const _0x39dc41 of _0x3b122c){const _0x319472=_0x39dc41[_0x3125('0x6')],_0x4231d9=_0x2f0aba[_0x2f0aba['length']-0x1];if(_0x319472['is'](_0x3125('0x33')))_0x4231d9&&_0x4231d9[_0x3125('0x3a')][_0x3125('0x12')](_0x3125('0x29'))>-0x1&&_0x2f0aba[_0x3125('0x2e')](),_0x4231d9&&_0x3125('0x19')==_0x4231d9[_0x3125('0x3a')]?_0x4231d9[_0xfea63a]+=_0x319472[_0x3125('0x32')]:_0x2f0aba['push']({'type':_0x3125('0x19'),'add':_0x3125('0x2c')==_0xfea63a?_0x319472['data']:'','remove':_0x3125('0x27')==_0xfea63a?_0x319472[_0x3125('0x32')]:''});else{if(this[_0x3125('0x30')][_0x3125('0x23')](_0x319472)){const _0x12f4cc=_0x319472;if(_0x4231d9&&_0x4231d9[_0x3125('0x3a')][_0x3125('0x12')](_0x3125('0x29'))>-0x1&&_0x2f0aba[_0x3125('0x2e')](),_0x3125('0x31')==_0x39dc41[_0x3125('0x3a')])continue;_0x4231d9&&_0x4231d9['type']==_0xfea63a+_0x3125('0x3')&&_0x4231d9[_0x3125('0x4')]['name']==_0x12f4cc[_0x3125('0x10')]?_0x4231d9[_0x3125('0x3d')]++:_0x2f0aba[_0x3125('0x1c')]({'type':_0xfea63a+_0x3125('0x3'),'element':_0x12f4cc,'quantity':0x1}),_0x3b122c[_0x3125('0xb')](_0x155dd2=>!(_0x3125('0x31')==_0x155dd2[_0x3125('0x3a')]&&_0x155dd2[_0x3125('0x6')]==_0x319472));}else{if(this[_0x3125('0x30')][_0x3125('0x11')](_0x319472,'$text')||_0x319472['is']('element',_0x3125('0x22'))){const _0x4166de=_0x319472;if(_0x3125('0x2c')==_0xfea63a&&_0x3125('0x14')==_0x39dc41[_0x3125('0x3a')]||'remove'==_0xfea63a&&'elementEnd'==_0x39dc41[_0x3125('0x3a')])continue;if(_0x4231d9&&-0x1==_0x4231d9[_0x3125('0x3a')][_0x3125('0x12')](_0x3125('0x29'))){_0x3125('0x19')==_0x4231d9[_0x3125('0x3a')]&&(_0x4231d9[_0xfea63a]+='\x0a');continue;}let _0x291b4b;if(_0x291b4b=_0x3125('0x2c')==_0xfea63a?_0x4166de[_0x3125('0xf')]&&!this[_0x3125('0x30')][_0x3125('0x23')](_0x4166de[_0x3125('0xf')])?_0x4166de[_0x3125('0xf')]:null:_0x4166de[_0x3125('0x39')]&&!this[_0x3125('0x30')][_0x3125('0x23')](_0x4166de[_0x3125('0x39')])?_0x4166de[_0x3125('0x39')]:null,_0x4166de[_0x3125('0x3b')]||_0x291b4b&&_0x291b4b[_0x3125('0x3b')]){const _0x4e0bd5=_0x291b4b&&_0x291b4b[_0x3125('0x3b')]?_0x291b4b:_0x4166de;_0x4231d9&&_0x4231d9[_0x3125('0x3a')]==_0xfea63a+_0x3125('0x0')&&_0x4231d9[_0x3125('0x4')][_0x3125('0x10')]==_0x4e0bd5['name']?_0x4231d9['quantity']++:_0x2f0aba[_0x3125('0x1c')]({'type':_0xfea63a+_0x3125('0x0'),'element':_0x4e0bd5,'quantity':0x1});}else _0x2f0aba[_0x3125('0x1c')]({'type':_0xfea63a+_0x3125('0x29'),'element':_0x4166de});}}}}}['_resolveDescriptionItems'](_0x2d4526){const _0xc76407=this['_locale'],_0x56ec13=[];for(const _0x3fa78f of _0x2d4526){switch(_0x3fa78f[_0x3125('0x3a')]){case _0x3125('0x19'):if(_0x3fa78f[_0x3125('0x2c')]=_0x3fa78f[_0x3125('0x2c')]['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')[_0x3125('0x1')](/\u000A/g,''),_0x3fa78f[_0x3125('0x27')]=_0x3fa78f[_0x3125('0x27')]['replace'](/(\S)\u000A+(\S)/g,_0x3125('0x24'))[_0x3125('0x1')](/\u000A/g,''),''!=_0x3fa78f['add']&&''!=_0x3fa78f[_0x3125('0x27')]){_0x56ec13['push']({'type':_0x3125('0x1'),'content':_0x510a96(_0xc76407,'REPLACE_TEXT',['\x22'+_0x3fa78f[_0x3125('0x27')]+'\x22','\x22'+_0x3fa78f[_0x3125('0x2c')]+'\x22'])});continue;}if(null!=_0x3fa78f['add'][_0x3125('0x2d')](/^ +$/)){_0x56ec13[_0x3125('0x1c')]({'type':'insertion','content':_0x510a96(_0xc76407,'*Insert:*\x20%0',_0x510a96(_0xc76407,_0x3125('0x7'),_0x3fa78f[_0x3125('0x2c')][_0x3125('0x20')]))});continue;}if(null!=_0x3fa78f[_0x3125('0x27')]['match'](/^ +$/)){_0x56ec13[_0x3125('0x1c')]({'type':_0x3125('0x34'),'content':_0x510a96(_0xc76407,_0x3125('0x8'),_0x510a96(_0xc76407,'ELEMENT_SPACE',_0x3fa78f['remove']['length']))});continue;}if(''!=_0x3fa78f[_0x3125('0x2c')]){_0x56ec13[_0x3125('0x1c')]({'type':'insertion','content':_0x510a96(_0xc76407,_0x3125('0x9'),'\x22'+_0x3fa78f['add']+'\x22')});continue;}_0x56ec13['push']({'type':'deletion','content':_0x510a96(_0xc76407,'*Remove:*\x20%0','\x22'+_0x3fa78f[_0x3125('0x27')]+'\x22')});continue;case _0x3125('0x1a'):case _0x3125('0x37'):_0x56ec13[_0x3125('0x1c')]({'type':'insertion','content':_0x510a96(_0xc76407,_0x3125('0x9'),this[_0x3125('0xa')](_0x3fa78f[_0x3125('0x4')],_0x3fa78f['quantity']))});continue;case _0x3125('0x1e'):case _0x3125('0xe'):_0x56ec13[_0x3125('0x1c')]({'type':_0x3125('0x34'),'content':_0x510a96(_0xc76407,'*Remove:*\x20%0',this['getItemLabel'](_0x3fa78f['element'],_0x3fa78f[_0x3125('0x3d')]))});continue;case _0x3125('0x5'):_0x56ec13[_0x3125('0x1c')]({'type':_0x3125('0x18'),'content':_0x510a96(_0xc76407,_0x3125('0x1d'),this[_0x3125('0xa')](_0x3fa78f[_0x3125('0x4')],_0x3fa78f[_0x3125('0x3d')]))});continue;case _0x3125('0x2'):_0x56ec13[_0x3125('0x1c')]({'type':_0x3125('0x34'),'content':_0x510a96(_0xc76407,'*Merge:*\x20%0',this[_0x3125('0xa')](_0x3fa78f[_0x3125('0x4')],_0x3fa78f[_0x3125('0x3d')]))});continue;}_0x56ec13[_0x3125('0x1c')](_0x3fa78f);}return _0x56ec13;}}
|
package/src/trackchanges.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5a1f=['addSuggestionData','plugins','get','getSuggestion','TrackChanges','pluginName','editor','getSuggestions','adapter'];(function(_0x279858,_0x5a1fbe){var _0x441d00=function(_0x4a3dec){while(--_0x4a3dec){_0x279858['push'](_0x279858['shift']());}};_0x441d00(++_0x5a1fbe);}(_0x5a1f,0x10a));var _0x441d=function(_0x279858,_0x5a1fbe){_0x279858=_0x279858-0x0;var _0x441d00=_0x5a1f[_0x279858];return _0x441d00;};import{Plugin as _0x257656}from'ckeditor5/src/core';import _0x2e0f9b from'./trackchangesui';import _0x2afc5b from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x257656{static get['requires'](){return[_0x2afc5b,_0x2e0f9b,'Comments'];}static get[_0x441d('0x0')](){return _0x441d('0x8');}set[_0x441d('0x3')](_0x25e0ce){this[_0x441d('0x1')][_0x441d('0x5')][_0x441d('0x6')](_0x2afc5b)[_0x441d('0x3')]=_0x25e0ce;}get[_0x441d('0x3')](){return this[_0x441d('0x1')][_0x441d('0x5')][_0x441d('0x6')](_0x2afc5b)['adapter'];}['addSuggestion'](_0x539a0b){return this[_0x441d('0x1')][_0x441d('0x5')][_0x441d('0x6')](_0x2afc5b)[_0x441d('0x4')](_0x539a0b);}[_0x441d('0x2')]({skipNotAttached:_0x461869=!0x1,toJSON:_0x4f3934=!0x1}={}){return this[_0x441d('0x1')][_0x441d('0x5')][_0x441d('0x6')](_0x2afc5b)[_0x441d('0x2')]({'skipNotAttached':_0x461869,'toJSON':_0x4f3934});}[_0x441d('0x7')](_0x12292a){return this[_0x441d('0x1')][_0x441d('0x5')][_0x441d('0x6')](_0x2afc5b)[_0x441d('0x7')](_0x12292a);}}
|
package/src/trackchangesdata.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a98=['function','trackChangesData','getUser','getRootNames','push','getDataWithDiscardedSuggestions','CommentsRepository','_adapter','define','constructor','getFullData','name','users','destroy','TrackChangesDataGetter','init','reduce','pluginName','data','document','editor','createElement','div','Pagination','addUser','createDocumentFragment','model','editorCreator','result','set','config','Users','map','get','plugins','execute','getSuggestions','discardAllSuggestions','TrackChangesEditing'];(function(_0x13d985,_0x1a98d3){const _0x580c97=function(_0x59ff96){while(--_0x59ff96){_0x13d985['push'](_0x13d985['shift']());}};_0x580c97(++_0x1a98d3);}(_0x1a98,0x69));const _0x580c=function(_0x13d985,_0x1a98d3){_0x13d985=_0x13d985-0x0;let _0x580c97=_0x1a98[_0x13d985];return _0x580c97;};import{Plugin as _0x45de2a}from'ckeditor5/src/core';import{CKEditorError as _0xd27c22}from'ckeditor5/src/utils';import _0x546c14 from'./trackchangesediting';import{sanitizeEditorConfig as _0x379c8a}from'ckeditor5-collaboration/src/collaboration-core';const w=[_0x580c('0x23')];export default class T extends _0x45de2a{static get['requires'](){return[_0x546c14];}static get[_0x580c('0x1d')](){return'TrackChangesData';}[_0x580c('0x1b')](){const _0x5b6599=this['editor'];if(_0x5b6599[_0x580c('0x3')][_0x580c('0x14')]('trackChangesData.editorCreator',_0x5e56c8=>{const _0x2ed542=_0x5b6599[_0x580c('0x26')][_0x580c('0x1f')][_0x580c('0xf')]()[_0x580c('0x1c')]((_0x24df20,_0x18465f)=>(_0x24df20[_0x18465f]='',_0x24df20),{});return _0x5b6599[_0x580c('0x15')]['create'](_0x2ed542,_0x5e56c8);}),_0x580c('0xc')!=typeof _0x5b6599[_0x580c('0x3')][_0x580c('0x6')](_0x580c('0xd'))[_0x580c('0x0')])throw new _0xd27c22('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x57000a){return v(this[_0x580c('0x20')],!0x0,_0x57000a);}[_0x580c('0x11')](_0x411e34){return v(this[_0x580c('0x20')],!0x1,_0x411e34);}}class P extends _0x45de2a{static get['pluginName'](){return _0x580c('0x1a');}constructor(_0x46b8e5){super(_0x46b8e5),this[_0x580c('0x1')]='end';}[_0x580c('0x1b')](){this[_0x580c('0x20')]['plugins'][_0x580c('0x6')](_0x580c('0x12'))[_0x580c('0x13')]={'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['editor'][_0x580c('0x7')][_0x580c('0x6')](_0x580c('0xb'))[_0x580c('0x13')]=null;}}function D(_0x1c4a41){return void 0x0!==_0x1c4a41['getRootsAttributes'];}async function v(_0x38e16d,_0x180373,_0x1e656e){const _0x4ff6cc=_0x379c8a(_0x38e16d,w);_0x4ff6cc['plugins'][_0x580c('0x10')](_0x546c14,P),_0x4ff6cc['rootsAttributes']=D(_0x38e16d)?_0x38e16d['getRootsAttributes']():void 0x0;const _0x5006b4=document[_0x580c('0x25')](),_0x6cf072=_0x38e16d[_0x580c('0x3')][_0x580c('0x6')]('trackChangesData')[_0x580c('0x0')],_0x996c01=await _0x6cf072(_0x4ff6cc,()=>function(_0x2bc026){const _0x375e46=document[_0x580c('0x21')](_0x580c('0x22'));return _0x2bc026['appendChild'](_0x375e46),_0x375e46;}(_0x5006b4));!function(_0x12f695,_0x411015){const _0x282fc5=_0x12f695['model'][_0x580c('0x1f')]['getRootNames']()[_0x580c('0x1c')]((_0x20b783,_0xf8ed1a)=>(_0x20b783[_0xf8ed1a]=_0x12f695[_0x580c('0x1e')]['get']({'rootName':_0xf8ed1a}),_0x20b783),{}),_0x212a23=_0x12f695[_0x580c('0x7')]['get']('Users')[_0x580c('0x18')][_0x580c('0x5')](_0x2c1408=>({'id':_0x2c1408['id'],'name':_0x2c1408[_0x580c('0x17')]})),_0x3b7f86=_0x12f695['plugins'][_0x580c('0x6')](_0x580c('0xb'))[_0x580c('0x9')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x43bdff=_0x411015[_0x580c('0x7')][_0x580c('0x6')](_0x580c('0x4')),_0x802be6=_0x411015[_0x580c('0x7')][_0x580c('0x6')]('TrackChangesEditing');for(const _0x5aea2f of _0x212a23)_0x43bdff[_0x580c('0xe')](_0x5aea2f['id'])||_0x43bdff[_0x580c('0x24')](_0x5aea2f);_0x43bdff['me']||_0x43bdff['useAnonymousUser']();for(const _0x5725f1 of _0x3b7f86)_0x802be6['addSuggestionData'](_0x5725f1);_0x411015[_0x580c('0x1e')][_0x580c('0x2')](_0x282fc5);}(_0x38e16d,_0x996c01),_0x996c01[_0x580c('0x8')](_0x180373?'acceptAllSuggestions':_0x580c('0xa'));const _0x2e741d=D(_0x996c01)?_0x996c01[_0x580c('0x16')](_0x1e656e):_0x996c01['data'][_0x580c('0x6')](_0x1e656e);return await _0x996c01[_0x580c('0x19')](),_0x2e741d;}
|