@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240131.0 → 0.0.0-nightly-20240202.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/build/translations/ro.js +1 -1
- package/lang/translations/ro.po +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/casechange.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/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/imagestyle.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/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.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 _0xa994=['getMultiRangeId','onAccept','data','size','@external','split','substr','_model','removeMarker','from','decorate','_onAttributesChange','authoredAt','getRanges','markers','createdAt','author','head','getRange','length','_markerNames','_isDataLoaded','next','toJSON','isIntersectingWithRange','removeMarkers','previous','hasComments','discard','_onAccept','getMarkerNames','filter','addMarker','_saved','onAttributesChange','creator','push','start','onDiscard','set','subType','getItems','change','removeAttribute','getFirstMarker','setAttribute','_onDiscard','get','accept','type','commentThread','isIntersecting','add','attributes','getAllAdjacentSuggestions','isMultiRange','nodeBefore','getMarkers','map','addRange'];(function(_0x18d9e7,_0xa99499){const _0x2f7fa9=function(_0x2d55c7){while(--_0x2d55c7){_0x18d9e7['push'](_0x18d9e7['shift']());}};_0x2f7fa9(++_0xa99499);}(_0xa994,0xcc));const _0x2f7f=function(_0x18d9e7,_0xa99499){_0x18d9e7=_0x18d9e7-0x0;let _0x2f7fa9=_0xa994[_0x18d9e7];return _0x2f7fa9;};import{Element as _0x2a92f5}from'ckeditor5/src/engine.js';import{ObservableMixin as _0x30aa6d,uid as _0x1ba0ad}from'ckeditor5/src/utils.js';import{cloneDeep as _0x21c524,isEqual as _0x23a907,set as _0x5d2c27,unset as _0x56d4c7}from'lodash-es';export default class u extends _0x30aa6d(){constructor(_0x16dad5,_0x644fae){super(),this[_0x2f7f('0x39')]=!0x1,this['id']=_0x644fae['id'],this[_0x2f7f('0x19')]=_0x644fae['type'],this[_0x2f7f('0x10')]=_0x644fae[_0x2f7f('0x10')]||null,this['author']=_0x644fae[_0x2f7f('0x34')],this[_0x2f7f('0xb')]=_0x644fae[_0x2f7f('0xb')]||_0x644fae[_0x2f7f('0x34')],this['isExternal']=Boolean(_0x644fae[_0x2f7f('0x1d')]&&_0x644fae[_0x2f7f('0x1d')][_0x2f7f('0x28')]),this['data']=null,this[_0x2f7f('0x2b')]=_0x16dad5,this[_0x2f7f('0x5')]=_0x644fae[_0x2f7f('0x25')],this[_0x2f7f('0x16')]=_0x644fae[_0x2f7f('0xe')],this[_0x2f7f('0x2f')]=_0x644fae[_0x2f7f('0xa')],this[_0x2f7f('0x38')]=new Set(),this[_0x2f7f('0x33')]=null,this['set'](_0x2f7f('0x30'),null),this[_0x2f7f('0xf')](_0x2f7f('0x1d'),_0x644fae['attributes']||{}),this[_0x2f7f('0xf')]('previous',null),this['set']('next',null),this[_0x2f7f('0xf')](_0x2f7f('0x1a'),null),this[_0x2f7f('0xf')](_0x2f7f('0x9'),!0x1),this['decorate'](_0x2f7f('0x18')),this[_0x2f7f('0x2e')](_0x2f7f('0x4'));}get[_0x2f7f('0x35')](){let _0x17a26c=this;for(;_0x17a26c[_0x2f7f('0x2')];)_0x17a26c=_0x17a26c['previous'];return _0x17a26c;}get[_0x2f7f('0x3')](){return!!this[_0x2f7f('0x1a')]&&this[_0x2f7f('0x1a')]['length']>0x0;}get[_0x2f7f('0x1f')](){if(0x0==this[_0x2f7f('0x38')][_0x2f7f('0x27')])return!0x1;return 0x6==Array[_0x2f7f('0x2d')](this[_0x2f7f('0x38')])[0x0][_0x2f7f('0x29')](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x15711d){this[_0x2f7f('0x38')][_0x2f7f('0x1c')](_0x15711d);}[_0x2f7f('0x6')](){return Array[_0x2f7f('0x2d')](this[_0x2f7f('0x38')]);}['getMarkers'](){return this[_0x2f7f('0x6')]()[_0x2f7f('0x22')](_0x4bdc22=>this['_model'][_0x2f7f('0x32')][_0x2f7f('0x17')](_0x4bdc22))[_0x2f7f('0x7')](_0x41c068=>_0x41c068);}[_0x2f7f('0x14')](){return this[_0x2f7f('0x21')]()[0x0]||null;}[_0x2f7f('0x1')](){this[_0x2f7f('0x2b')]['change'](_0x5c726c=>{for(const _0x2ecff3 of this[_0x2f7f('0x21')]())_0x5c726c['removeMarker'](_0x2ecff3);}),this[_0x2f7f('0x38')]['clear']();}[_0x2f7f('0x2c')](_0x15ca74){this[_0x2f7f('0x2b')][_0x2f7f('0x12')](_0x2ee102=>{_0x2ee102[_0x2f7f('0x2c')](_0x15ca74);}),this['_markerNames']['delete'](_0x15ca74);}[_0x2f7f('0x23')](_0x9e94ed){const _0x577383='suggestion:'+this[_0x2f7f('0x19')]+':'+this[_0x2f7f('0x10')]+':'+this['id']+':'+this[_0x2f7f('0xb')]['id']+':'+u[_0x2f7f('0x24')]();this['addMarkerName'](_0x577383),this[_0x2f7f('0x2b')][_0x2f7f('0x12')](_0x11bdfe=>{_0x11bdfe[_0x2f7f('0x8')](_0x577383,{'range':_0x9e94ed,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x2f7f('0x0')](_0x301f9c){for(const _0x11271f of this[_0x2f7f('0x31')]())if(_0x11271f[_0x2f7f('0x1b')](_0x301f9c))return!0x0;return!0x1;}[_0x2f7f('0x31')](){return this[_0x2f7f('0x21')]()[_0x2f7f('0x22')](_0xfa2a5c=>_0xfa2a5c[_0x2f7f('0x36')]());}['getItems'](){return this['getRanges']()['reduce']((_0x7051cc,_0xbabd14)=>[..._0x7051cc,..._0xbabd14[_0x2f7f('0x11')]()],[]);}['getFirstRange'](){var _0x12beea;return(null===(_0x12beea=this['getFirstMarker']())||void 0x0===_0x12beea?void 0x0:_0x12beea[_0x2f7f('0x36')]())||null;}['getContainedElement'](){const _0x12c72a=this[_0x2f7f('0x31')]();if(0x1!=_0x12c72a[_0x2f7f('0x37')])return null;const _0x22a4d3=_0x12c72a[0x0],_0x26e6f7=_0x22a4d3[_0x2f7f('0xd')]['nodeAfter'],_0x259c67=_0x22a4d3['end'][_0x2f7f('0x20')];return _0x26e6f7 instanceof _0x2a92f5?_0x26e6f7!=_0x259c67?null:_0x26e6f7:null;}[_0x2f7f('0x18')](){this[_0x2f7f('0x5')](this[_0x2f7f('0x31')](),this['data'],this['attributes']),this[_0x2f7f('0x1')]();}[_0x2f7f('0x4')](){this[_0x2f7f('0x16')](this[_0x2f7f('0x31')](),this[_0x2f7f('0x26')],this[_0x2f7f('0x1d')]),this['removeMarkers']();}[_0x2f7f('0x1e')](){const _0x20daea=[];let _0x4b0571=this['head'];for(;_0x4b0571;)_0x20daea[_0x2f7f('0xc')](_0x4b0571),_0x4b0571=_0x4b0571[_0x2f7f('0x3a')];return _0x20daea;}[_0x2f7f('0x15')](_0x4d4a37,_0xe7f90e){const _0x20f7b0=_0x21c524(this[_0x2f7f('0x1d')]);_0x5d2c27(_0x20f7b0,_0x4d4a37,_0xe7f90e),_0x23a907(_0x20f7b0,this[_0x2f7f('0x1d')])||(this[_0x2f7f('0x1d')]=_0x20f7b0,this[_0x2f7f('0x2f')](_0x20f7b0));}[_0x2f7f('0x13')](_0x3e38b4){const _0x394eda=_0x21c524(this[_0x2f7f('0x1d')]);_0x56d4c7(_0x394eda,_0x3e38b4),_0x23a907(_0x394eda,this[_0x2f7f('0x1d')])||(this['attributes']=_0x394eda,this['_onAttributesChange'](this[_0x2f7f('0x1d')]));}[_0x2f7f('0x3b')](){return{'id':this['id'],'type':this[_0x2f7f('0x10')]?this[_0x2f7f('0x19')]+':'+this[_0x2f7f('0x10')]:this[_0x2f7f('0x19')],'authorId':this[_0x2f7f('0xb')]['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this[_0x2f7f('0x26')],'attributes':this[_0x2f7f('0x1d')]};}static[_0x2f7f('0x24')](){return _0x1ba0ad()[_0x2f7f('0x2a')](0x1,0x5);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x51ac=['deletion','label','registerDescriptionCallback','set','addFormat','newValue','element','key','has','$textProxy','*Remove\x20format:*\x20%0','nextSibling','indexOf','registerElementLabel','remove','quantity','format','end','previousSibling','addEmptyContainer','get','data','add','removeContainer','isInContent','_customCallbacks','Object','type','Container','push','_schema','function','_attributeLabels','checkChild','insertion','$1\x20$2','ELEMENT_SPACE','elementEnd','_handleRenameSuggestionDescription','normal','addObject','*Remove:*\x20%0','map','*Merge:*\x20%0','$text','_itemLabels','_handleCustomCallbackDescription','nodeAfter','_resolveDescriptionItems','_handleInsertRemoveSuggestionDescription','match','name','join','registerAttributeLabel','skip','replace','item','*Split:*\x20%0','removeFormat','start','removeEmptyContainer','pop','*Change\x20to:*\x20%0','_handleAttributeSuggestionDescription','getItemLabel','_itemLabelsCallbacks','getFirstRange','isEqual','isObject','*Insert:*\x20%0','removeObject','length','isEmpty','subType','_locale','text','EmptyContainer','REPLACE_TEXT'];(function(_0x3a522c,_0x51ac75){const _0x4bc42b=function(_0x4a53f5){while(--_0x4a53f5){_0x3a522c['push'](_0x3a522c['shift']());}};_0x4bc42b(++_0x51ac75);}(_0x51ac,0x159));const _0x4bc4=function(_0x3a522c,_0x51ac75){_0x3a522c=_0x3a522c-0x0;let _0x4bc42b=_0x51ac[_0x3a522c];return _0x4bc42b;};import{getTranslation as _0x219bd4}from'./utils/common-translations.js';import{priorities as _0x287d91,insertToPriorityArray as _0x56978c}from'ckeditor5/src/utils.js';import{renameAttributeKey as _0x25e830}from'./trackchangesediting.js';export default class f{constructor(_0x4b0b00,_0x45ad95){this[_0x4bc4('0x46')]=[],this[_0x4bc4('0xc')]=new Map(),this[_0x4bc4('0x20')]=[],this['_attributeLabels']=new Map(),this[_0x4bc4('0x4b')]=_0x4b0b00,this[_0x4bc4('0x29')]=_0x45ad95;}['getDescriptions'](_0xb2a025){const _0x4f925f=[],_0x47ede2=new Set(),_0x1a8f36=new Set();for(let _0x451717=0x0;_0x451717<_0xb2a025[_0x4bc4('0x26')];_0x451717++){const _0x3f5404=_0xb2a025[_0x451717];if(!_0x3f5404[_0x4bc4('0x45')])continue;const _0x40cbd5=this[_0x4bc4('0xd')](_0x3f5404);if(_0x40cbd5){if(null!=_0x3f5404[_0x4bc4('0x28')]){if(_0x47ede2[_0x4bc4('0x35')](_0x3f5404[_0x4bc4('0x28')]))continue;_0x47ede2[_0x4bc4('0x43')](_0x3f5404[_0x4bc4('0x28')]);}_0x4f925f[_0x4bc4('0x4a')](_0x40cbd5);}else{if('attribute'!=_0x3f5404[_0x4bc4('0x48')])_0x4bc4('0x1')!=_0x3f5404[_0x4bc4('0x48')]&&'deletion'!=_0x3f5404[_0x4bc4('0x48')]||this[_0x4bc4('0x10')](_0x4f925f,_0x3f5404,_0xb2a025[_0x451717+0x1]);else{const _0x416f4a=_0x3f5404[_0x4bc4('0x42')][_0x4bc4('0x34')];if(_0x1a8f36[_0x4bc4('0x35')](_0x416f4a))continue;_0x1a8f36[_0x4bc4('0x43')](_0x3f5404[_0x4bc4('0x42')][_0x4bc4('0x34')]),_0x416f4a==_0x25e830?this[_0x4bc4('0x5')](_0x4f925f,_0x3f5404):this[_0x4bc4('0x1e')](_0x4f925f,_0x3f5404);}}}return this['_resolveDescriptionItems'](_0x4f925f);}[_0x4bc4('0x2f')](_0x43df29){this[_0x4bc4('0x46')][_0x4bc4('0x4a')](_0x43df29);}[_0x4bc4('0x3a')](_0x5c2c18,_0x50ab8,_0x4c0be3=_0x287d91[_0x4bc4('0x6')]){_0x4bc4('0x4c')==typeof _0x5c2c18?_0x56978c(this[_0x4bc4('0x20')],{'matchingCallback':_0x5c2c18,'label':_0x50ab8,'priority':_0x4c0be3}):this['_itemLabels'][_0x4bc4('0x30')](_0x5c2c18,_0x50ab8);}[_0x4bc4('0x14')](_0x4eb76f,_0x35620f){this[_0x4bc4('0x4d')]['set'](_0x4eb76f,_0x35620f);}['getItemLabel'](_0x38c53d,_0x15631e=0x1){let _0x9f8e04;for(const _0x113ae of this[_0x4bc4('0x20')])if(_0x113ae['matchingCallback'](_0x38c53d)){_0x9f8e04=_0x113ae[_0x4bc4('0x2e')];break;}return _0x9f8e04||(_0x9f8e04=this[_0x4bc4('0xc')][_0x4bc4('0x41')](_0x38c53d[_0x4bc4('0x12')])),_0x9f8e04?_0x9f8e04(_0x15631e):0x1!==_0x15631e?_0x15631e+'\x20'+_0x38c53d[_0x4bc4('0x12')]+'s':''+_0x38c53d['name'];}['_addDescriptionItems'](_0x14755b,_0x357f89){const _0x1304a5=_0x357f89[_0x4bc4('0x21')]()['getWalker'](),_0x317fda=_0x4bc4('0x1')==_0x357f89[_0x4bc4('0x48')]?_0x4bc4('0x43'):_0x4bc4('0x3b');for(const _0x2e924d of _0x1304a5){const _0x455c2d=_0x2e924d[_0x4bc4('0x17')],_0x3ce3a8=_0x14755b[_0x14755b['length']-0x1];if(_0x455c2d['is'](_0x4bc4('0x36')))_0x3ce3a8&&_0x3ce3a8[_0x4bc4('0x48')][_0x4bc4('0x39')]('Container')>-0x1&&_0x14755b[_0x4bc4('0x1c')](),_0x3ce3a8&&'text'==_0x3ce3a8[_0x4bc4('0x48')]?_0x3ce3a8[_0x317fda]+=_0x455c2d['data']:_0x14755b[_0x4bc4('0x4a')]({'type':_0x4bc4('0x2a'),'add':_0x4bc4('0x43')==_0x317fda?_0x455c2d[_0x4bc4('0x42')]:'','remove':_0x4bc4('0x3b')==_0x317fda?_0x455c2d[_0x4bc4('0x42')]:''});else{if(this['_schema'][_0x4bc4('0x23')](_0x455c2d)){const _0x10873b=_0x455c2d;if(_0x3ce3a8&&_0x3ce3a8[_0x4bc4('0x48')][_0x4bc4('0x39')](_0x4bc4('0x49'))>-0x1&&_0x14755b[_0x4bc4('0x1c')](),_0x4bc4('0x4')==_0x2e924d[_0x4bc4('0x48')])continue;_0x3ce3a8&&_0x3ce3a8[_0x4bc4('0x48')]==_0x317fda+'Object'&&_0x3ce3a8[_0x4bc4('0x33')][_0x4bc4('0x12')]==_0x10873b[_0x4bc4('0x12')]?_0x3ce3a8[_0x4bc4('0x3c')]++:_0x14755b[_0x4bc4('0x4a')]({'type':_0x317fda+_0x4bc4('0x47'),'element':_0x10873b,'quantity':0x1}),_0x1304a5[_0x4bc4('0x15')](_0x34d295=>!(_0x4bc4('0x4')==_0x34d295[_0x4bc4('0x48')]&&_0x34d295[_0x4bc4('0x17')]==_0x455c2d));}else{if(this[_0x4bc4('0x4b')][_0x4bc4('0x0')](_0x455c2d,_0x4bc4('0xb'))||_0x455c2d['is'](_0x4bc4('0x33'),'softBreak')){const _0x24eb6d=_0x455c2d;if(_0x4bc4('0x43')==_0x317fda&&'elementStart'==_0x2e924d[_0x4bc4('0x48')]||'remove'==_0x317fda&&_0x4bc4('0x4')==_0x2e924d[_0x4bc4('0x48')])continue;if(_0x3ce3a8&&-0x1==_0x3ce3a8['type'][_0x4bc4('0x39')](_0x4bc4('0x49'))){_0x4bc4('0x2a')==_0x3ce3a8[_0x4bc4('0x48')]&&(_0x3ce3a8[_0x317fda]+='\x0a');continue;}let _0x18db68;if(_0x18db68=_0x4bc4('0x43')==_0x317fda?_0x24eb6d[_0x4bc4('0x38')]&&!this['_schema'][_0x4bc4('0x23')](_0x24eb6d[_0x4bc4('0x38')])?_0x24eb6d[_0x4bc4('0x38')]:null:_0x24eb6d[_0x4bc4('0x3f')]&&!this[_0x4bc4('0x4b')]['isObject'](_0x24eb6d[_0x4bc4('0x3f')])?_0x24eb6d[_0x4bc4('0x3f')]:null,_0x24eb6d[_0x4bc4('0x27')]||_0x18db68&&_0x18db68['isEmpty']){const _0x29e8bb=_0x18db68&&_0x18db68[_0x4bc4('0x27')]?_0x18db68:_0x24eb6d;_0x3ce3a8&&_0x3ce3a8[_0x4bc4('0x48')]==_0x317fda+_0x4bc4('0x2b')&&_0x3ce3a8[_0x4bc4('0x33')][_0x4bc4('0x12')]==_0x29e8bb[_0x4bc4('0x12')]?_0x3ce3a8[_0x4bc4('0x3c')]++:_0x14755b[_0x4bc4('0x4a')]({'type':_0x317fda+'EmptyContainer','element':_0x29e8bb,'quantity':0x1});}else _0x14755b[_0x4bc4('0x4a')]({'type':_0x317fda+_0x4bc4('0x49'),'element':_0x24eb6d});}}}}}[_0x4bc4('0xf')](_0x26cbdd){const _0x36d70c=this['_locale'],_0x1f7ae4=[],_0x57ec08=[],_0x44de7e=[];for(const _0x468f9b of _0x26cbdd)switch(_0x468f9b[_0x4bc4('0x48')]){case _0x4bc4('0x2a'):if(_0x468f9b['add']=_0x468f9b[_0x4bc4('0x43')]['replace'](/(\S)\u000A+(\S)/g,_0x4bc4('0x2'))[_0x4bc4('0x16')](/\u000A/g,''),_0x468f9b[_0x4bc4('0x3b')]=_0x468f9b[_0x4bc4('0x3b')][_0x4bc4('0x16')](/(\S)\u000A+(\S)/g,_0x4bc4('0x2'))[_0x4bc4('0x16')](/\u000A/g,''),''!=_0x468f9b['add']&&''!=_0x468f9b['remove']){_0x1f7ae4[_0x4bc4('0x4a')]({'type':_0x4bc4('0x16'),'content':_0x219bd4(_0x36d70c,_0x4bc4('0x2c'),['\x22'+_0x468f9b[_0x4bc4('0x3b')]+'\x22','\x22'+_0x468f9b[_0x4bc4('0x43')]+'\x22'])});continue;}if(null!=_0x468f9b[_0x4bc4('0x43')][_0x4bc4('0x11')](/^ +$/)){_0x1f7ae4[_0x4bc4('0x4a')]({'type':'insertion','content':_0x219bd4(_0x36d70c,_0x4bc4('0x24'),_0x219bd4(_0x36d70c,_0x4bc4('0x3'),_0x468f9b['add'][_0x4bc4('0x26')]))});continue;}if(null!=_0x468f9b[_0x4bc4('0x3b')][_0x4bc4('0x11')](/^ +$/)){_0x1f7ae4[_0x4bc4('0x4a')]({'type':_0x4bc4('0x2d'),'content':_0x219bd4(_0x36d70c,'*Remove:*\x20%0',_0x219bd4(_0x36d70c,_0x4bc4('0x3'),_0x468f9b[_0x4bc4('0x3b')]['length']))});continue;}if(''!=_0x468f9b[_0x4bc4('0x43')]){_0x1f7ae4[_0x4bc4('0x4a')]({'type':_0x4bc4('0x1'),'content':_0x219bd4(_0x36d70c,_0x4bc4('0x24'),'\x22'+_0x468f9b[_0x4bc4('0x43')]+'\x22')});continue;}_0x1f7ae4['push']({'type':_0x4bc4('0x2d'),'content':_0x219bd4(_0x36d70c,_0x4bc4('0x8'),'\x22'+_0x468f9b[_0x4bc4('0x3b')]+'\x22')});continue;case _0x4bc4('0x40'):case _0x4bc4('0x7'):_0x1f7ae4[_0x4bc4('0x4a')]({'type':'insertion','content':_0x219bd4(_0x36d70c,'*Insert:*\x20%0',this[_0x4bc4('0x1f')](_0x468f9b[_0x4bc4('0x33')],_0x468f9b['quantity']))});continue;case _0x4bc4('0x1b'):case _0x4bc4('0x25'):_0x1f7ae4[_0x4bc4('0x4a')]({'type':_0x4bc4('0x2d'),'content':_0x219bd4(_0x36d70c,'*Remove:*\x20%0',this[_0x4bc4('0x1f')](_0x468f9b['element'],_0x468f9b[_0x4bc4('0x3c')]))});continue;case'addContainer':_0x1f7ae4['push']({'type':_0x4bc4('0x1'),'content':_0x219bd4(_0x36d70c,_0x4bc4('0x18'),this['getItemLabel'](_0x468f9b[_0x4bc4('0x33')],_0x468f9b[_0x4bc4('0x3c')]))});continue;case _0x4bc4('0x44'):_0x1f7ae4[_0x4bc4('0x4a')]({'type':_0x4bc4('0x2d'),'content':_0x219bd4(_0x36d70c,_0x4bc4('0xa'),this[_0x4bc4('0x1f')](_0x468f9b[_0x4bc4('0x33')],_0x468f9b[_0x4bc4('0x3c')]))});continue;case'addFormat':_0x57ec08[_0x4bc4('0x4a')](_0x468f9b[_0x4bc4('0x34')]);continue;case _0x4bc4('0x19'):_0x44de7e[_0x4bc4('0x4a')](_0x468f9b[_0x4bc4('0x34')]);continue;default:_0x1f7ae4[_0x4bc4('0x4a')](_0x468f9b);}if(_0x57ec08[_0x4bc4('0x26')]){const _0x33eea8=_0x57ec08[_0x4bc4('0x9')](_0x2fc1a0=>this[_0x4bc4('0x4d')][_0x4bc4('0x35')](_0x2fc1a0)?this[_0x4bc4('0x4d')][_0x4bc4('0x41')](_0x2fc1a0):_0x2fc1a0)[_0x4bc4('0x13')](',\x20');_0x1f7ae4[_0x4bc4('0x4a')]({'type':_0x4bc4('0x3d'),'content':_0x219bd4(this['_locale'],'*Set\x20format:*\x20%0',_0x33eea8)});}if(_0x44de7e[_0x4bc4('0x26')]){const _0x1127e9=_0x44de7e[_0x4bc4('0x9')](_0x262bd4=>this[_0x4bc4('0x4d')][_0x4bc4('0x35')](_0x262bd4)?this[_0x4bc4('0x4d')][_0x4bc4('0x41')](_0x262bd4):_0x262bd4)[_0x4bc4('0x13')](',\x20');_0x1f7ae4[_0x4bc4('0x4a')]({'type':_0x4bc4('0x3d'),'content':_0x219bd4(this['_locale'],_0x4bc4('0x37'),_0x1127e9)});}return _0x1f7ae4;}[_0x4bc4('0xd')](_0x59a51c){for(const _0x44bb48 of this[_0x4bc4('0x46')]){const _0x1f7e35=_0x44bb48(_0x59a51c);if(_0x1f7e35&&'type'in _0x1f7e35)return _0x1f7e35;}}['_handleAttributeSuggestionDescription'](_0x467c15,_0x53a81e){const _0x28c2cc=_0x53a81e[_0x4bc4('0x42')],_0x38e88a=void 0x0===_0x28c2cc[_0x4bc4('0x32')]?_0x4bc4('0x19'):_0x4bc4('0x31');_0x467c15[_0x4bc4('0x4a')]({'type':_0x38e88a,'key':_0x28c2cc[_0x4bc4('0x34')]});}[_0x4bc4('0x5')](_0x7b388d,_0x21b9a1){_0x7b388d[_0x4bc4('0x4a')]({'type':_0x4bc4('0x3d'),'content':_0x219bd4(this['_locale'],_0x4bc4('0x1d'),this[_0x4bc4('0x1f')](_0x21b9a1[_0x4bc4('0x21')]()['start'][_0x4bc4('0xe')],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1d619b,_0x38e54e,_0x59d2bd){if(this['_addDescriptionItems'](_0x1d619b,_0x38e54e),_0x59d2bd&&_0x59d2bd[_0x4bc4('0x21')]()&&!_0x38e54e[_0x4bc4('0x21')]()[_0x4bc4('0x3e')][_0x4bc4('0x22')](_0x59d2bd[_0x4bc4('0x21')]()[_0x4bc4('0x1a')])){const _0x4af04d=_0x1d619b[_0x1d619b[_0x4bc4('0x26')]-0x1],_0x4c2c01='insertion'==_0x38e54e['type']?_0x4bc4('0x43'):_0x4bc4('0x3b');_0x4af04d&&_0x4bc4('0x2a')==_0x4af04d[_0x4bc4('0x48')]&&(_0x4af04d[_0x4c2c01]+='\x0a');}}}
|
|
23
|
+
const _0xe027=['format','end','elementEnd','registerDescriptionCallback','deletion','key','has','_attributeLabels','_itemLabels','$text','EmptyContainer','attribute','name','start','_handleInsertRemoveSuggestionDescription','type','removeEmptyContainer','add','addEmptyContainer','removeContainer','isObject','removeObject','subType','_locale','softBreak','addContainer','_handleAttributeSuggestionDescription','addFormat','getItemLabel','set','data','_itemLabelsCallbacks','quantity','length','getDescriptions','Object','*Split:*\x20%0','*Remove\x20format:*\x20%0','indexOf','get','_schema','isEmpty','_handleRenameSuggestionDescription','label','*Change\x20to:*\x20%0','insertion','elementStart','join','_addDescriptionItems','element','text','remove','*Remove:*\x20%0','$1\x20$2','getWalker','getFirstRange','nextSibling','_customCallbacks','_handleCustomCallbackDescription','registerAttributeLabel','pop','*Set\x20format:*\x20%0','$textProxy','isInContent','push','ELEMENT_SPACE','nodeAfter','item','map','*Insert:*\x20%0','previousSibling','Container','match'];(function(_0x13ce9b,_0xe027ee){const _0x38ebbf=function(_0x55a0d1){while(--_0x55a0d1){_0x13ce9b['push'](_0x13ce9b['shift']());}};_0x38ebbf(++_0xe027ee);}(_0xe027,0xb7));const _0x38eb=function(_0x13ce9b,_0xe027ee){_0x13ce9b=_0x13ce9b-0x0;let _0x38ebbf=_0xe027[_0x13ce9b];return _0x38ebbf;};import{getTranslation as _0x257448}from'./utils/common-translations.js';import{priorities as _0x412b99,insertToPriorityArray as _0x426b83}from'ckeditor5/src/utils.js';import{renameAttributeKey as _0x639ef0}from'./trackchangesediting.js';export default class f{constructor(_0x317297,_0x2a81fe){this[_0x38eb('0x14')]=[],this[_0x38eb('0x2c')]=new Map(),this[_0x38eb('0x43')]=[],this[_0x38eb('0x2b')]=new Map(),this[_0x38eb('0x3')]=_0x317297,this[_0x38eb('0x3b')]=_0x2a81fe;}[_0x38eb('0x46')](_0x3003b2){const _0xd71abe=[],_0x487b37=new Set(),_0x409f03=new Set();for(let _0x13b5eb=0x0;_0x13b5eb<_0x3003b2[_0x38eb('0x45')];_0x13b5eb++){const _0x2de91d=_0x3003b2[_0x13b5eb];if(!_0x2de91d[_0x38eb('0x1a')])continue;const _0x59f202=this[_0x38eb('0x15')](_0x2de91d);if(_0x59f202){if(null!=_0x2de91d['subType']){if(_0x487b37[_0x38eb('0x2a')](_0x2de91d[_0x38eb('0x3a')]))continue;_0x487b37[_0x38eb('0x35')](_0x2de91d[_0x38eb('0x3a')]);}_0xd71abe[_0x38eb('0x1b')](_0x59f202);}else{if(_0x38eb('0x2f')!=_0x2de91d[_0x38eb('0x33')])'insertion'!=_0x2de91d[_0x38eb('0x33')]&&_0x38eb('0x28')!=_0x2de91d['type']||this[_0x38eb('0x32')](_0xd71abe,_0x2de91d,_0x3003b2[_0x13b5eb+0x1]);else{const _0x3e39ae=_0x2de91d[_0x38eb('0x42')]['key'];if(_0x409f03['has'](_0x3e39ae))continue;_0x409f03['add'](_0x2de91d[_0x38eb('0x42')][_0x38eb('0x29')]),_0x3e39ae==_0x639ef0?this[_0x38eb('0x5')](_0xd71abe,_0x2de91d):this[_0x38eb('0x3e')](_0xd71abe,_0x2de91d);}}}return this['_resolveDescriptionItems'](_0xd71abe);}[_0x38eb('0x27')](_0x3d069f){this[_0x38eb('0x14')]['push'](_0x3d069f);}['registerElementLabel'](_0x5008b2,_0x10d42b,_0x451f87=_0x412b99['normal']){'function'==typeof _0x5008b2?_0x426b83(this[_0x38eb('0x43')],{'matchingCallback':_0x5008b2,'label':_0x10d42b,'priority':_0x451f87}):this[_0x38eb('0x2c')]['set'](_0x5008b2,_0x10d42b);}[_0x38eb('0x16')](_0x24bcd3,_0x3e7c75){this[_0x38eb('0x2b')][_0x38eb('0x41')](_0x24bcd3,_0x3e7c75);}[_0x38eb('0x40')](_0x38525b,_0x1b5499=0x1){let _0xf6d1ad;for(const _0x1cfb0a of this['_itemLabelsCallbacks'])if(_0x1cfb0a['matchingCallback'](_0x38525b)){_0xf6d1ad=_0x1cfb0a[_0x38eb('0x6')];break;}return _0xf6d1ad||(_0xf6d1ad=this['_itemLabels'][_0x38eb('0x2')](_0x38525b[_0x38eb('0x30')])),_0xf6d1ad?_0xf6d1ad(_0x1b5499):0x1!==_0x1b5499?_0x1b5499+'\x20'+_0x38525b['name']+'s':''+_0x38525b[_0x38eb('0x30')];}['_addDescriptionItems'](_0x3f6fef,_0x3cf4da){const _0x56c68e=_0x3cf4da[_0x38eb('0x12')]()[_0x38eb('0x11')](),_0x4d3857=_0x38eb('0x8')==_0x3cf4da['type']?_0x38eb('0x35'):_0x38eb('0xe');for(const _0x4ceb58 of _0x56c68e){const _0x90977a=_0x4ceb58[_0x38eb('0x1e')],_0x165630=_0x3f6fef[_0x3f6fef['length']-0x1];if(_0x90977a['is'](_0x38eb('0x19')))_0x165630&&_0x165630[_0x38eb('0x33')]['indexOf'](_0x38eb('0x22'))>-0x1&&_0x3f6fef[_0x38eb('0x17')](),_0x165630&&_0x38eb('0xd')==_0x165630[_0x38eb('0x33')]?_0x165630[_0x4d3857]+=_0x90977a[_0x38eb('0x42')]:_0x3f6fef[_0x38eb('0x1b')]({'type':_0x38eb('0xd'),'add':'add'==_0x4d3857?_0x90977a[_0x38eb('0x42')]:'','remove':_0x38eb('0xe')==_0x4d3857?_0x90977a[_0x38eb('0x42')]:''});else{if(this[_0x38eb('0x3')][_0x38eb('0x38')](_0x90977a)){const _0xebac80=_0x90977a;if(_0x165630&&_0x165630[_0x38eb('0x33')][_0x38eb('0x1')]('Container')>-0x1&&_0x3f6fef[_0x38eb('0x17')](),_0x38eb('0x26')==_0x4ceb58[_0x38eb('0x33')])continue;_0x165630&&_0x165630[_0x38eb('0x33')]==_0x4d3857+_0x38eb('0x47')&&_0x165630[_0x38eb('0xc')][_0x38eb('0x30')]==_0xebac80[_0x38eb('0x30')]?_0x165630[_0x38eb('0x44')]++:_0x3f6fef[_0x38eb('0x1b')]({'type':_0x4d3857+_0x38eb('0x47'),'element':_0xebac80,'quantity':0x1}),_0x56c68e['skip'](_0x16ded5=>!(_0x38eb('0x26')==_0x16ded5[_0x38eb('0x33')]&&_0x16ded5[_0x38eb('0x1e')]==_0x90977a));}else{if(this['_schema']['checkChild'](_0x90977a,_0x38eb('0x2d'))||_0x90977a['is'](_0x38eb('0xc'),_0x38eb('0x3c'))){const _0x2dd136=_0x90977a;if(_0x38eb('0x35')==_0x4d3857&&_0x38eb('0x9')==_0x4ceb58[_0x38eb('0x33')]||_0x38eb('0xe')==_0x4d3857&&_0x38eb('0x26')==_0x4ceb58[_0x38eb('0x33')])continue;if(_0x165630&&-0x1==_0x165630[_0x38eb('0x33')]['indexOf'](_0x38eb('0x22'))){_0x38eb('0xd')==_0x165630['type']&&(_0x165630[_0x4d3857]+='\x0a');continue;}let _0x3ef87a;if(_0x3ef87a=_0x38eb('0x35')==_0x4d3857?_0x2dd136[_0x38eb('0x13')]&&!this[_0x38eb('0x3')][_0x38eb('0x38')](_0x2dd136[_0x38eb('0x13')])?_0x2dd136[_0x38eb('0x13')]:null:_0x2dd136[_0x38eb('0x21')]&&!this[_0x38eb('0x3')][_0x38eb('0x38')](_0x2dd136['previousSibling'])?_0x2dd136[_0x38eb('0x21')]:null,_0x2dd136[_0x38eb('0x4')]||_0x3ef87a&&_0x3ef87a[_0x38eb('0x4')]){const _0x38978c=_0x3ef87a&&_0x3ef87a[_0x38eb('0x4')]?_0x3ef87a:_0x2dd136;_0x165630&&_0x165630[_0x38eb('0x33')]==_0x4d3857+_0x38eb('0x2e')&&_0x165630[_0x38eb('0xc')][_0x38eb('0x30')]==_0x38978c[_0x38eb('0x30')]?_0x165630[_0x38eb('0x44')]++:_0x3f6fef[_0x38eb('0x1b')]({'type':_0x4d3857+_0x38eb('0x2e'),'element':_0x38978c,'quantity':0x1});}else _0x3f6fef[_0x38eb('0x1b')]({'type':_0x4d3857+_0x38eb('0x22'),'element':_0x2dd136});}}}}}['_resolveDescriptionItems'](_0xe74435){const _0x287b22=this[_0x38eb('0x3b')],_0x2eba1f=[],_0x52155c=[],_0x2b8aa0=[];for(const _0x520ae5 of _0xe74435)switch(_0x520ae5[_0x38eb('0x33')]){case _0x38eb('0xd'):if(_0x520ae5[_0x38eb('0x35')]=_0x520ae5[_0x38eb('0x35')]['replace'](/(\S)\u000A+(\S)/g,_0x38eb('0x10'))['replace'](/\u000A/g,''),_0x520ae5['remove']=_0x520ae5[_0x38eb('0xe')]['replace'](/(\S)\u000A+(\S)/g,_0x38eb('0x10'))['replace'](/\u000A/g,''),''!=_0x520ae5[_0x38eb('0x35')]&&''!=_0x520ae5[_0x38eb('0xe')]){_0x2eba1f['push']({'type':'replace','content':_0x257448(_0x287b22,'REPLACE_TEXT',['\x22'+_0x520ae5[_0x38eb('0xe')]+'\x22','\x22'+_0x520ae5[_0x38eb('0x35')]+'\x22'])});continue;}if(null!=_0x520ae5[_0x38eb('0x35')]['match'](/^ +$/)){_0x2eba1f[_0x38eb('0x1b')]({'type':_0x38eb('0x8'),'content':_0x257448(_0x287b22,_0x38eb('0x20'),_0x257448(_0x287b22,_0x38eb('0x1c'),_0x520ae5[_0x38eb('0x35')]['length']))});continue;}if(null!=_0x520ae5[_0x38eb('0xe')][_0x38eb('0x23')](/^ +$/)){_0x2eba1f[_0x38eb('0x1b')]({'type':'deletion','content':_0x257448(_0x287b22,_0x38eb('0xf'),_0x257448(_0x287b22,_0x38eb('0x1c'),_0x520ae5[_0x38eb('0xe')][_0x38eb('0x45')]))});continue;}if(''!=_0x520ae5[_0x38eb('0x35')]){_0x2eba1f[_0x38eb('0x1b')]({'type':_0x38eb('0x8'),'content':_0x257448(_0x287b22,_0x38eb('0x20'),'\x22'+_0x520ae5[_0x38eb('0x35')]+'\x22')});continue;}_0x2eba1f[_0x38eb('0x1b')]({'type':_0x38eb('0x28'),'content':_0x257448(_0x287b22,_0x38eb('0xf'),'\x22'+_0x520ae5[_0x38eb('0xe')]+'\x22')});continue;case _0x38eb('0x36'):case'addObject':_0x2eba1f['push']({'type':_0x38eb('0x8'),'content':_0x257448(_0x287b22,_0x38eb('0x20'),this['getItemLabel'](_0x520ae5[_0x38eb('0xc')],_0x520ae5[_0x38eb('0x44')]))});continue;case _0x38eb('0x34'):case _0x38eb('0x39'):_0x2eba1f['push']({'type':'deletion','content':_0x257448(_0x287b22,_0x38eb('0xf'),this['getItemLabel'](_0x520ae5[_0x38eb('0xc')],_0x520ae5[_0x38eb('0x44')]))});continue;case _0x38eb('0x3d'):_0x2eba1f['push']({'type':_0x38eb('0x8'),'content':_0x257448(_0x287b22,_0x38eb('0x48'),this[_0x38eb('0x40')](_0x520ae5[_0x38eb('0xc')],_0x520ae5[_0x38eb('0x44')]))});continue;case _0x38eb('0x37'):_0x2eba1f[_0x38eb('0x1b')]({'type':_0x38eb('0x28'),'content':_0x257448(_0x287b22,'*Merge:*\x20%0',this[_0x38eb('0x40')](_0x520ae5[_0x38eb('0xc')],_0x520ae5['quantity']))});continue;case _0x38eb('0x3f'):_0x52155c[_0x38eb('0x1b')](_0x520ae5[_0x38eb('0x29')]);continue;case'removeFormat':_0x2b8aa0['push'](_0x520ae5[_0x38eb('0x29')]);continue;default:_0x2eba1f[_0x38eb('0x1b')](_0x520ae5);}if(_0x52155c[_0x38eb('0x45')]){const _0x354d99=_0x52155c[_0x38eb('0x1f')](_0x281b4b=>this[_0x38eb('0x2b')][_0x38eb('0x2a')](_0x281b4b)?this[_0x38eb('0x2b')][_0x38eb('0x2')](_0x281b4b):_0x281b4b)[_0x38eb('0xa')](',\x20');_0x2eba1f['push']({'type':_0x38eb('0x24'),'content':_0x257448(this[_0x38eb('0x3b')],_0x38eb('0x18'),_0x354d99)});}if(_0x2b8aa0[_0x38eb('0x45')]){const _0xdfe01e=_0x2b8aa0[_0x38eb('0x1f')](_0x5f55ca=>this[_0x38eb('0x2b')][_0x38eb('0x2a')](_0x5f55ca)?this[_0x38eb('0x2b')]['get'](_0x5f55ca):_0x5f55ca)['join'](',\x20');_0x2eba1f[_0x38eb('0x1b')]({'type':_0x38eb('0x24'),'content':_0x257448(this[_0x38eb('0x3b')],_0x38eb('0x0'),_0xdfe01e)});}return _0x2eba1f;}[_0x38eb('0x15')](_0x47aae5){for(const _0x3460b5 of this[_0x38eb('0x14')]){const _0x238212=_0x3460b5(_0x47aae5);if(_0x238212&&_0x38eb('0x33')in _0x238212)return _0x238212;}}[_0x38eb('0x3e')](_0x3df484,_0x116cda){const _0x37be7c=_0x116cda[_0x38eb('0x42')],_0x592da0=void 0x0===_0x37be7c['newValue']?'removeFormat':_0x38eb('0x3f');_0x3df484[_0x38eb('0x1b')]({'type':_0x592da0,'key':_0x37be7c[_0x38eb('0x29')]});}[_0x38eb('0x5')](_0x5b0b7d,_0x4e8c30){_0x5b0b7d[_0x38eb('0x1b')]({'type':'format','content':_0x257448(this[_0x38eb('0x3b')],_0x38eb('0x7'),this[_0x38eb('0x40')](_0x4e8c30['getFirstRange']()[_0x38eb('0x31')][_0x38eb('0x1d')],0x1))});}[_0x38eb('0x32')](_0x16a53b,_0x17288a,_0xef978f){if(this[_0x38eb('0xb')](_0x16a53b,_0x17288a),_0xef978f&&_0xef978f['getFirstRange']()&&!_0x17288a[_0x38eb('0x12')]()[_0x38eb('0x25')]['isEqual'](_0xef978f[_0x38eb('0x12')]()[_0x38eb('0x31')])){const _0x31e809=_0x16a53b[_0x16a53b[_0x38eb('0x45')]-0x1],_0x4b4001=_0x38eb('0x8')==_0x17288a[_0x38eb('0x33')]?_0x38eb('0x35'):_0x38eb('0xe');_0x31e809&&_0x38eb('0xd')==_0x31e809['type']&&(_0x31e809[_0x4b4001]+='\x0a');}}}
|
package/src/trackchanges.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3a5f=['requires','TrackChanges','adapter','addSuggestion','editor','pluginName','getSuggestion','addSuggestionData','get','plugins','getSuggestions'];(function(_0x76b929,_0x3a5fb1){var _0x159ef7=function(_0x3f62f0){while(--_0x3f62f0){_0x76b929['push'](_0x76b929['shift']());}};_0x159ef7(++_0x3a5fb1);}(_0x3a5f,0x83));var _0x159e=function(_0x76b929,_0x3a5fb1){_0x76b929=_0x76b929-0x0;var _0x159ef7=_0x3a5f[_0x76b929];return _0x159ef7;};import{Plugin as _0x5a08b7}from'ckeditor5/src/core.js';import _0x4a3741 from'./trackchangesui.js';import _0x2ffa0c from'./trackchangesediting.js';import'ckeditor5-collaboration/src/collaboration-core.js';export default class k extends _0x5a08b7{static get[_0x159e('0x1')](){return[_0x2ffa0c,_0x4a3741,'Comments'];}static get[_0x159e('0x6')](){return _0x159e('0x2');}set[_0x159e('0x3')](_0x4b7e90){this['editor'][_0x159e('0xa')]['get'](_0x2ffa0c)[_0x159e('0x3')]=_0x4b7e90;}get[_0x159e('0x3')](){return this['editor'][_0x159e('0xa')][_0x159e('0x9')](_0x2ffa0c)['adapter'];}[_0x159e('0x4')](_0x59d738){return this[_0x159e('0x5')][_0x159e('0xa')][_0x159e('0x9')](_0x2ffa0c)[_0x159e('0x8')](_0x59d738);}[_0x159e('0x0')]({skipNotAttached:_0xb52673=!0x1,toJSON:_0x235446=!0x1}={}){return this[_0x159e('0x5')]['plugins']['get'](_0x2ffa0c)[_0x159e('0x0')]({'skipNotAttached':_0xb52673,'toJSON':_0x235446});}[_0x159e('0x7')](_0x126060){return this[_0x159e('0x5')][_0x159e('0xa')][_0x159e('0x9')](_0x2ffa0c)['getSuggestion'](_0x126060);}}
|
package/src/trackchangesdata.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x518a=['addUser','getRootsAttributes','getUser','createDocumentFragment','useAnonymousUser','rootsAttributes','getDataWithAcceptedSuggestions','getRootNames','model','pluginName','getSuggestions','Users','trackChangesData.editorCreator','init','trackChangesData','div','reduce','createElement','constructor','create','config','get','TrackChangesData','name','execute','define','Pagination','acceptAllSuggestions','CommentsRepository','result','push','plugins','editorCreator','track-changes-data-invalid-editor-creator','discardAllSuggestions','function','set','TrackChangesEditing','_adapter','users','appendChild','data','getDataWithDiscardedSuggestions','requires','editor'];(function(_0x30688d,_0x518a99){const _0x2791bb=function(_0x3a0333){while(--_0x3a0333){_0x30688d['push'](_0x30688d['shift']());}};_0x2791bb(++_0x518a99);}(_0x518a,0x12f));const _0x2791=function(_0x30688d,_0x518a99){_0x30688d=_0x30688d-0x0;let _0x2791bb=_0x518a[_0x30688d];return _0x2791bb;};import{Plugin as _0x1d4325}from'ckeditor5/src/core.js';import{CKEditorError as _0x113bdc}from'ckeditor5/src/utils.js';import _0x200e6c from'./trackchangesediting.js';import{sanitizeEditorConfig as _0xa704c1}from'ckeditor5-collaboration/src/collaboration-core.js';const T=[_0x2791('0x26')];export default class P extends _0x1d4325{static get[_0x2791('0xa')](){return[_0x200e6c];}static get[_0x2791('0x15')](){return _0x2791('0x22');}['init'](){const _0x459713=this[_0x2791('0xb')];if(_0x459713[_0x2791('0x20')][_0x2791('0x25')](_0x2791('0x18'),_0x2f5d0d=>{const _0x13b871=_0x459713[_0x2791('0x14')]['document'][_0x2791('0x13')]()['reduce']((_0x1b9ac2,_0x3c3c76)=>(_0x1b9ac2[_0x3c3c76]='',_0x1b9ac2),{});return _0x459713[_0x2791('0x1e')][_0x2791('0x1f')](_0x13b871,_0x2f5d0d);}),_0x2791('0x2')!=typeof _0x459713[_0x2791('0x20')][_0x2791('0x21')](_0x2791('0x1a'))['editorCreator'])throw new _0x113bdc(_0x2791('0x0'));}[_0x2791('0x12')](_0x3a2bac){return N(this[_0x2791('0xb')],!0x0,_0x3a2bac);}[_0x2791('0x9')](_0xcdd0df){return N(this[_0x2791('0xb')],!0x1,_0xcdd0df);}}class D extends _0x1d4325{static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x3a353d){super(_0x3a353d),this[_0x2791('0x29')]='end';}[_0x2791('0x19')](){this[_0x2791('0xb')]['plugins'][_0x2791('0x21')](_0x2791('0x28'))['_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[_0x2791('0xb')][_0x2791('0x2b')][_0x2791('0x21')](_0x2791('0x4'))[_0x2791('0x5')]=null;}}function v(_0x50ecc5){return void 0x0!==_0x50ecc5['getRootsAttributes'];}async function N(_0xe50267,_0x32df0f,_0x214897){const _0x4e319d=_0xa704c1(_0xe50267,T);_0x4e319d[_0x2791('0x2b')][_0x2791('0x2a')](_0x200e6c,D),_0x4e319d[_0x2791('0x11')]=v(_0xe50267)?_0xe50267[_0x2791('0xd')]():void 0x0;const _0x206757=document[_0x2791('0xf')](),_0x46b74b=_0xe50267[_0x2791('0x20')][_0x2791('0x21')](_0x2791('0x1a'))[_0x2791('0x2c')],_0x1acd64=await _0x46b74b(_0x4e319d,()=>function(_0x299bce){const _0x557674=document[_0x2791('0x1d')](_0x2791('0x1b'));return _0x299bce[_0x2791('0x7')](_0x557674),_0x557674;}(_0x206757));!function(_0x113b71,_0xde5e8b){const _0x1bc56a=_0x113b71[_0x2791('0x14')]['document'][_0x2791('0x13')]()[_0x2791('0x1c')]((_0x41159f,_0x5305a0)=>(_0x41159f[_0x5305a0]=_0x113b71[_0x2791('0x8')]['get']({'rootName':_0x5305a0}),_0x41159f),{}),_0x50e369=_0x113b71[_0x2791('0x2b')]['get'](_0x2791('0x17'))[_0x2791('0x6')]['map'](_0x1613b9=>({'id':_0x1613b9['id'],'name':_0x1613b9[_0x2791('0x23')]})),_0x7dde30=_0x113b71[_0x2791('0x2b')][_0x2791('0x21')](_0x2791('0x4'))[_0x2791('0x16')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xfee312=_0xde5e8b[_0x2791('0x2b')][_0x2791('0x21')](_0x2791('0x17')),_0x1c2f75=_0xde5e8b[_0x2791('0x2b')][_0x2791('0x21')](_0x2791('0x4'));for(const _0x3b0927 of _0x50e369)_0xfee312[_0x2791('0xe')](_0x3b0927['id'])||_0xfee312[_0x2791('0xc')](_0x3b0927);_0xfee312['me']||_0xfee312[_0x2791('0x10')]();for(const _0xca382a of _0x7dde30)_0x1c2f75['addSuggestionData'](_0xca382a);_0xde5e8b[_0x2791('0x8')][_0x2791('0x3')](_0x1bc56a);}(_0xe50267,_0x1acd64),_0x1acd64[_0x2791('0x24')](_0x32df0f?_0x2791('0x27'):_0x2791('0x1'));const _0x361aed=v(_0x1acd64)?_0x1acd64['getFullData'](_0x214897):_0x1acd64[_0x2791('0x8')][_0x2791('0x21')](_0x214897);return await _0x1acd64['destroy'](),_0x361aed;}
|