@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230906.0 → 0.0.0-nightly-20230907.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 _0x446d=['add','onDiscard','getRanges','length','toJSON','_onAccept','onAttributesChange','author','_onDiscard','suggestion:','head','createdAt','_saved','getFirstRange','previous','from','getFirstMarker','removeMarker','_model','nodeBefore','getMultiRangeId','split','filter','type','set','setAttribute','next','_markerNames','push','commentThread','getItems','removeAttribute','isExternal','addMarker','isMultiRange','@external','isInContent','data','creator','getMarkerNames','authoredAt','attributes','_onAttributesChange','markers','change','delete','accept','getMarkers','addMarkerName','map','decorate','getRange','start','addRange','isIntersectingWithRange','subType'];(function(_0x3a3dce,_0x446d12){const _0x577c1e=function(_0x3c0cc7){while(--_0x3c0cc7){_0x3a3dce['push'](_0x3a3dce['shift']());}};_0x577c1e(++_0x446d12);}(_0x446d,0x158));const _0x577c=function(_0x3a3dce,_0x446d12){_0x3a3dce=_0x3a3dce-0x0;let _0x577c1e=_0x446d[_0x3a3dce];return _0x577c1e;};import{Element as _0x2b3906}from'ckeditor5/src/engine';import{ObservableMixin as _0xfa8cf7,uid as _0x158358}from'ckeditor5/src/utils';import{cloneDeep as _0x5eb10f,isEqual as _0x215fb8,set as _0x14480f,unset as _0x130f51}from'lodash-es';export default class u extends _0xfa8cf7(){constructor(_0x2bd4c8,_0x2a2086){super(),this['_isDataLoaded']=!0x1,this['id']=_0x2a2086['id'],this[_0x577c('0xf')]=_0x2a2086[_0x577c('0xf')],this[_0x577c('0x2f')]=_0x2a2086['subType']||null,this['author']=_0x2a2086[_0x577c('0x37')],this[_0x577c('0x1e')]=_0x2a2086['creator']||_0x2a2086[_0x577c('0x37')],this[_0x577c('0x18')]=Boolean(_0x2a2086[_0x577c('0x21')]&&_0x2a2086[_0x577c('0x21')][_0x577c('0x1b')]),this[_0x577c('0x1d')]=null,this[_0x577c('0xa')]=_0x2bd4c8,this[_0x577c('0x35')]=_0x2a2086['onAccept'],this[_0x577c('0x0')]=_0x2a2086[_0x577c('0x31')],this[_0x577c('0x22')]=_0x2a2086[_0x577c('0x36')],this[_0x577c('0x13')]=new Set(),this[_0x577c('0x3')]=null,this[_0x577c('0x10')](_0x577c('0x20'),null),this['set'](_0x577c('0x21'),_0x2a2086[_0x577c('0x21')]||{}),this[_0x577c('0x10')](_0x577c('0x6'),null),this[_0x577c('0x10')](_0x577c('0x12'),null),this[_0x577c('0x10')](_0x577c('0x15'),null),this['set'](_0x577c('0x4'),!0x1),this[_0x577c('0x2a')](_0x577c('0x26')),this[_0x577c('0x2a')]('discard');}get['head'](){let _0x30a29d=this;for(;_0x30a29d[_0x577c('0x6')];)_0x30a29d=_0x30a29d[_0x577c('0x6')];return _0x30a29d;}get['hasComments'](){return!!this[_0x577c('0x15')]&&this[_0x577c('0x15')][_0x577c('0x33')]>0x0;}get[_0x577c('0x1a')](){if(0x0==this[_0x577c('0x13')]['size'])return!0x1;return 0x6==Array[_0x577c('0x7')](this[_0x577c('0x13')])[0x0][_0x577c('0xd')](':')[_0x577c('0x33')];}get[_0x577c('0x1c')](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x4ffd88){this['_markerNames'][_0x577c('0x30')](_0x4ffd88);}[_0x577c('0x1f')](){return Array['from'](this[_0x577c('0x13')]);}['getMarkers'](){return this[_0x577c('0x1f')]()[_0x577c('0x29')](_0x325cd3=>this['_model'][_0x577c('0x23')]['get'](_0x325cd3))[_0x577c('0xe')](_0x2ec680=>_0x2ec680);}['getFirstMarker'](){return this[_0x577c('0x27')]()[0x0]||null;}['removeMarkers'](){this[_0x577c('0xa')][_0x577c('0x24')](_0x4a0afd=>{for(const _0x233f47 of this[_0x577c('0x27')]())_0x4a0afd[_0x577c('0x9')](_0x233f47);}),this['_markerNames']['clear']();}[_0x577c('0x9')](_0x2423f3){this['_model'][_0x577c('0x24')](_0x47102b=>{_0x47102b['removeMarker'](_0x2423f3);}),this[_0x577c('0x13')][_0x577c('0x25')](_0x2423f3);}[_0x577c('0x2d')](_0x3b8fdb){const _0x185c5b=_0x577c('0x1')+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u[_0x577c('0xc')]();this[_0x577c('0x28')](_0x185c5b),this[_0x577c('0xa')]['change'](_0x38e5f3=>{_0x38e5f3[_0x577c('0x19')](_0x185c5b,{'range':_0x3b8fdb,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x577c('0x2e')](_0x17cdc7){for(const _0x43d66d of this[_0x577c('0x32')]())if(_0x43d66d['isIntersecting'](_0x17cdc7))return!0x0;return!0x1;}[_0x577c('0x32')](){return this['getMarkers']()['map'](_0x2a6b33=>_0x2a6b33[_0x577c('0x2b')]());}[_0x577c('0x16')](){return this[_0x577c('0x32')]()['reduce']((_0x5bfdf9,_0x3abea3)=>[..._0x5bfdf9,..._0x3abea3[_0x577c('0x16')]()],[]);}[_0x577c('0x5')](){var _0x386886;return(null===(_0x386886=this[_0x577c('0x8')]())||void 0x0===_0x386886?void 0x0:_0x386886[_0x577c('0x2b')]())||null;}['getContainedElement'](){const _0x47fb3a=this['getRanges']();if(0x1!=_0x47fb3a['length'])return null;const _0x41af47=_0x47fb3a[0x0],_0x22616d=_0x41af47[_0x577c('0x2c')]['nodeAfter'],_0x112c61=_0x41af47['end'][_0x577c('0xb')];return _0x22616d instanceof _0x2b3906?_0x22616d!=_0x112c61?null:_0x22616d:null;}[_0x577c('0x26')](){this[_0x577c('0x35')](this[_0x577c('0x32')](),this['data'],this[_0x577c('0x21')]),this['removeMarkers']();}['discard'](){this[_0x577c('0x0')](this[_0x577c('0x32')](),this[_0x577c('0x1d')],this[_0x577c('0x21')]),this['removeMarkers']();}['getAllAdjacentSuggestions'](){const _0xeaf26d=[];let _0x1bd42c=this[_0x577c('0x2')];for(;_0x1bd42c;)_0xeaf26d[_0x577c('0x14')](_0x1bd42c),_0x1bd42c=_0x1bd42c[_0x577c('0x12')];return _0xeaf26d;}[_0x577c('0x11')](_0x1da0c9,_0x4b6102){const _0x1dedb7=_0x5eb10f(this[_0x577c('0x21')]);_0x14480f(_0x1dedb7,_0x1da0c9,_0x4b6102),_0x215fb8(_0x1dedb7,this[_0x577c('0x21')])||(this['attributes']=_0x1dedb7,this[_0x577c('0x22')](_0x1dedb7));}[_0x577c('0x17')](_0x2f7d1a){const _0x481e8d=_0x5eb10f(this[_0x577c('0x21')]);_0x130f51(_0x481e8d,_0x2f7d1a),_0x215fb8(_0x481e8d,this[_0x577c('0x21')])||(this[_0x577c('0x21')]=_0x481e8d,this[_0x577c('0x22')](this['attributes']));}[_0x577c('0x34')](){return{'id':this['id'],'type':this[_0x577c('0x2f')]?this[_0x577c('0xf')]+':'+this[_0x577c('0x2f')]:this['type'],'authorId':this['creator']['id'],'createdAt':this[_0x577c('0x3')],'hasComments':this['hasComments'],'data':this[_0x577c('0x1d')],'attributes':this[_0x577c('0x21')]};}static[_0x577c('0xc')](){return _0x158358()['substr'](0x1,0x5);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3ec9=['_locale','length','EmptyContainer','type','removeEmptyContainer','*Remove:*\x20%0','set','ELEMENT_SPACE','data','$1\x20$2','Object','_customCallbacks','elementEnd','isEmpty','replace','start','insertion','addEmptyContainer','*Split:*\x20%0','skip','registerDescriptionCallback','_addDescriptionItems','name','previousSibling','normal','checkChild','elementStart','end','*Merge:*\x20%0','isObject','add','addContainer','getFirstRange','softBreak','pop','*Insert:*\x20%0','nextSibling','removeObject','Container','text','push','remove','isInContent','_itemLabels','get','isEqual','_resolveDescriptionItems','_itemLabelsCallbacks','deletion','addObject','label','_schema','indexOf','function','getItemLabel','quantity','element','removeContainer','registerElementLabel'];(function(_0x5cb3c6,_0x3ec99d){const _0x52844e=function(_0x4a584d){while(--_0x4a584d){_0x5cb3c6['push'](_0x5cb3c6['shift']());}};_0x52844e(++_0x3ec99d);}(_0x3ec9,0x1e9));const _0x5284=function(_0x5cb3c6,_0x3ec99d){_0x5cb3c6=_0x5cb3c6-0x0;let _0x52844e=_0x3ec9[_0x5cb3c6];return _0x52844e;};import{getTranslation as _0x31d3f5}from'./utils/common-translations';import{priorities as _0x2b8080,insertToPriorityArray as _0x1024c8}from'ckeditor5/src/utils';export default class m{constructor(_0x4e6186,_0x45c61){this[_0x5284('0x35')]=[],this['_itemLabels']=new Map(),this[_0x5284('0x1e')]=[],this[_0x5284('0x22')]=_0x4e6186,this[_0x5284('0x2a')]=_0x45c61;}['getDescriptions'](_0x65cf2f){const _0x14e4e9=[];for(let _0x3c2abe=0x0;_0x3c2abe<_0x65cf2f[_0x5284('0x2b')];_0x3c2abe++){const _0x1ec294=_0x65cf2f[_0x3c2abe];if(!_0x1ec294[_0x5284('0x19')])continue;let _0x50391c=!0x1;for(const _0x40b53b of this['_customCallbacks']){const _0x1aae52=_0x40b53b(_0x1ec294);if(_0x1aae52){_0x5284('0x2d')in _0x1aae52&&_0x14e4e9['push'](_0x1aae52),_0x50391c=!0x0;break;}}if(!_0x50391c){this['_addDescriptionItems'](_0x14e4e9,_0x1ec294);const _0x423b8a=_0x65cf2f[_0x3c2abe+0x1];if(_0x423b8a&&!_0x1ec294[_0x5284('0xf')]()[_0x5284('0xa')][_0x5284('0x1c')](_0x423b8a[_0x5284('0xf')]()[_0x5284('0x39')])){const _0x3db9e5=_0x14e4e9[_0x14e4e9['length']-0x1],_0x9f484d='insertion'==_0x1ec294[_0x5284('0x2d')]?_0x5284('0xd'):_0x5284('0x18');_0x3db9e5&&_0x5284('0x16')==_0x3db9e5['type']&&(_0x3db9e5[_0x9f484d]+='\x0a');}}}return this[_0x5284('0x1d')](_0x14e4e9);}[_0x5284('0x3')](_0x10ba3e){this[_0x5284('0x35')][_0x5284('0x17')](_0x10ba3e);}[_0x5284('0x29')](_0x24b385,_0x3106d4,_0x1e3c4a=_0x2b8080[_0x5284('0x7')]){_0x5284('0x24')==typeof _0x24b385?_0x1024c8(this['_itemLabelsCallbacks'],{'matchingCallback':_0x24b385,'label':_0x3106d4,'priority':_0x1e3c4a}):this[_0x5284('0x1a')][_0x5284('0x30')](_0x24b385,_0x3106d4);}[_0x5284('0x25')](_0x58e59a,_0x38814f=0x1){let _0x2e7493;for(const _0xab345d of this[_0x5284('0x1e')])if(_0xab345d['matchingCallback'](_0x58e59a)){_0x2e7493=_0xab345d[_0x5284('0x21')];break;}return _0x2e7493||(_0x2e7493=this['_itemLabels'][_0x5284('0x1b')](_0x58e59a['name'])),_0x2e7493?_0x2e7493(_0x38814f):0x1!==_0x38814f?_0x38814f+'\x20'+_0x58e59a['name']+'s':''+_0x58e59a[_0x5284('0x5')];}[_0x5284('0x4')](_0x27710e,_0x318f0b){const _0x431185=_0x318f0b[_0x5284('0xf')]()['getWalker'](),_0x1780e1='insertion'==_0x318f0b['type']?_0x5284('0xd'):'remove';for(const _0x232516 of _0x431185){const _0x204983=_0x232516['item'],_0x40ed48=_0x27710e[_0x27710e[_0x5284('0x2b')]-0x1];if(_0x204983['is']('$textProxy'))_0x40ed48&&_0x40ed48[_0x5284('0x2d')][_0x5284('0x23')](_0x5284('0x15'))>-0x1&&_0x27710e[_0x5284('0x11')](),_0x40ed48&&_0x5284('0x16')==_0x40ed48['type']?_0x40ed48[_0x1780e1]+=_0x204983[_0x5284('0x32')]:_0x27710e[_0x5284('0x17')]({'type':'text','add':'add'==_0x1780e1?_0x204983[_0x5284('0x32')]:'','remove':_0x5284('0x18')==_0x1780e1?_0x204983[_0x5284('0x32')]:''});else{if(this['_schema'][_0x5284('0xc')](_0x204983)){const _0x2dd9bb=_0x204983;if(_0x40ed48&&_0x40ed48[_0x5284('0x2d')][_0x5284('0x23')]('Container')>-0x1&&_0x27710e['pop'](),_0x5284('0x36')==_0x232516['type'])continue;_0x40ed48&&_0x40ed48[_0x5284('0x2d')]==_0x1780e1+_0x5284('0x34')&&_0x40ed48[_0x5284('0x27')][_0x5284('0x5')]==_0x2dd9bb[_0x5284('0x5')]?_0x40ed48[_0x5284('0x26')]++:_0x27710e[_0x5284('0x17')]({'type':_0x1780e1+_0x5284('0x34'),'element':_0x2dd9bb,'quantity':0x1}),_0x431185[_0x5284('0x2')](_0x3c7db0=>!(_0x5284('0x36')==_0x3c7db0[_0x5284('0x2d')]&&_0x3c7db0['item']==_0x204983));}else{if(this['_schema'][_0x5284('0x8')](_0x204983,'$text')||_0x204983['is'](_0x5284('0x27'),_0x5284('0x10'))){const _0x5b90e2=_0x204983;if('add'==_0x1780e1&&_0x5284('0x9')==_0x232516[_0x5284('0x2d')]||_0x5284('0x18')==_0x1780e1&&_0x5284('0x36')==_0x232516[_0x5284('0x2d')])continue;if(_0x40ed48&&-0x1==_0x40ed48[_0x5284('0x2d')][_0x5284('0x23')](_0x5284('0x15'))){_0x5284('0x16')==_0x40ed48[_0x5284('0x2d')]&&(_0x40ed48[_0x1780e1]+='\x0a');continue;}let _0x37926e;if(_0x37926e=_0x5284('0xd')==_0x1780e1?_0x5b90e2[_0x5284('0x13')]&&!this[_0x5284('0x22')]['isObject'](_0x5b90e2[_0x5284('0x13')])?_0x5b90e2[_0x5284('0x13')]:null:_0x5b90e2[_0x5284('0x6')]&&!this[_0x5284('0x22')][_0x5284('0xc')](_0x5b90e2[_0x5284('0x6')])?_0x5b90e2[_0x5284('0x6')]:null,_0x5b90e2[_0x5284('0x37')]||_0x37926e&&_0x37926e[_0x5284('0x37')]){const _0x473810=_0x37926e&&_0x37926e['isEmpty']?_0x37926e:_0x5b90e2;_0x40ed48&&_0x40ed48['type']==_0x1780e1+'EmptyContainer'&&_0x40ed48[_0x5284('0x27')][_0x5284('0x5')]==_0x473810[_0x5284('0x5')]?_0x40ed48[_0x5284('0x26')]++:_0x27710e['push']({'type':_0x1780e1+_0x5284('0x2c'),'element':_0x473810,'quantity':0x1});}else _0x27710e[_0x5284('0x17')]({'type':_0x1780e1+'Container','element':_0x5b90e2});}}}}}[_0x5284('0x1d')](_0x1f8b2e){const _0x3c6444=this[_0x5284('0x2a')],_0x3fcc55=[];for(const _0x25920a of _0x1f8b2e){switch(_0x25920a[_0x5284('0x2d')]){case _0x5284('0x16'):if(_0x25920a['add']=_0x25920a['add'][_0x5284('0x38')](/(\S)\u000A+(\S)/g,_0x5284('0x33'))['replace'](/\u000A/g,''),_0x25920a['remove']=_0x25920a[_0x5284('0x18')][_0x5284('0x38')](/(\S)\u000A+(\S)/g,_0x5284('0x33'))[_0x5284('0x38')](/\u000A/g,''),''!=_0x25920a[_0x5284('0xd')]&&''!=_0x25920a['remove']){_0x3fcc55['push']({'type':'replace','content':_0x31d3f5(_0x3c6444,'REPLACE_TEXT',['\x22'+_0x25920a[_0x5284('0x18')]+'\x22','\x22'+_0x25920a['add']+'\x22'])});continue;}if(null!=_0x25920a['add']['match'](/^ +$/)){_0x3fcc55[_0x5284('0x17')]({'type':_0x5284('0x3a'),'content':_0x31d3f5(_0x3c6444,'*Insert:*\x20%0',_0x31d3f5(_0x3c6444,_0x5284('0x31'),_0x25920a['add'][_0x5284('0x2b')]))});continue;}if(null!=_0x25920a['remove']['match'](/^ +$/)){_0x3fcc55[_0x5284('0x17')]({'type':_0x5284('0x1f'),'content':_0x31d3f5(_0x3c6444,'*Remove:*\x20%0',_0x31d3f5(_0x3c6444,_0x5284('0x31'),_0x25920a['remove'][_0x5284('0x2b')]))});continue;}if(''!=_0x25920a[_0x5284('0xd')]){_0x3fcc55[_0x5284('0x17')]({'type':_0x5284('0x3a'),'content':_0x31d3f5(_0x3c6444,_0x5284('0x12'),'\x22'+_0x25920a[_0x5284('0xd')]+'\x22')});continue;}_0x3fcc55[_0x5284('0x17')]({'type':_0x5284('0x1f'),'content':_0x31d3f5(_0x3c6444,_0x5284('0x2f'),'\x22'+_0x25920a['remove']+'\x22')});continue;case _0x5284('0x0'):case _0x5284('0x20'):_0x3fcc55[_0x5284('0x17')]({'type':_0x5284('0x3a'),'content':_0x31d3f5(_0x3c6444,_0x5284('0x12'),this[_0x5284('0x25')](_0x25920a[_0x5284('0x27')],_0x25920a[_0x5284('0x26')]))});continue;case _0x5284('0x2e'):case _0x5284('0x14'):_0x3fcc55[_0x5284('0x17')]({'type':'deletion','content':_0x31d3f5(_0x3c6444,_0x5284('0x2f'),this['getItemLabel'](_0x25920a[_0x5284('0x27')],_0x25920a['quantity']))});continue;case _0x5284('0xe'):_0x3fcc55[_0x5284('0x17')]({'type':_0x5284('0x3a'),'content':_0x31d3f5(_0x3c6444,_0x5284('0x1'),this[_0x5284('0x25')](_0x25920a['element'],_0x25920a[_0x5284('0x26')]))});continue;case _0x5284('0x28'):_0x3fcc55[_0x5284('0x17')]({'type':'deletion','content':_0x31d3f5(_0x3c6444,_0x5284('0xb'),this[_0x5284('0x25')](_0x25920a[_0x5284('0x27')],_0x25920a[_0x5284('0x26')]))});continue;}_0x3fcc55['push'](_0x25920a);}return _0x3fcc55;}}
|
package/src/trackchanges.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1861=['editor','getSuggestions','getSuggestion','TrackChanges','Comments','adapter','get','plugins','addSuggestion'];(function(_0x4f0a2c,_0x186150){var _0x50b33e=function(_0xb26b69){while(--_0xb26b69){_0x4f0a2c['push'](_0x4f0a2c['shift']());}};_0x50b33e(++_0x186150);}(_0x1861,0x1b0));var _0x50b3=function(_0x4f0a2c,_0x186150){_0x4f0a2c=_0x4f0a2c-0x0;var _0x50b33e=_0x1861[_0x4f0a2c];return _0x50b33e;};import{Plugin as _0xc50333}from'ckeditor5/src/core';import _0x103192 from'./trackchangesui';import _0x3620c6 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0xc50333{static get['requires'](){return[_0x3620c6,_0x103192,_0x50b3('0x4')];}static get['pluginName'](){return _0x50b3('0x3');}set[_0x50b3('0x5')](_0x5386d1){this[_0x50b3('0x0')][_0x50b3('0x7')][_0x50b3('0x6')](_0x3620c6)['adapter']=_0x5386d1;}get[_0x50b3('0x5')](){return this[_0x50b3('0x0')][_0x50b3('0x7')]['get'](_0x3620c6)[_0x50b3('0x5')];}[_0x50b3('0x8')](_0x47bb2e){return this['editor'][_0x50b3('0x7')]['get'](_0x3620c6)['addSuggestionData'](_0x47bb2e);}[_0x50b3('0x1')]({skipNotAttached:_0x2506c3=!0x1,toJSON:_0x26dbec=!0x1}={}){return this[_0x50b3('0x0')][_0x50b3('0x7')]['get'](_0x3620c6)['getSuggestions']({'skipNotAttached':_0x2506c3,'toJSON':_0x26dbec});}[_0x50b3('0x2')](_0x4af7d3){return this['editor'][_0x50b3('0x7')][_0x50b3('0x6')](_0x3620c6)[_0x50b3('0x2')](_0x4af7d3);}}
|
package/src/trackchangesdata.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e4a=['function','model','TrackChangesDataGetter','CommentsRepository','pluginName','trackChangesData.editorCreator','init','addUser','name','data','destroy','reduce','define','trackChangesData','Users','editor','create','plugins','execute','createElement','requires','TrackChangesEditing','_adapter','useAnonymousUser','getDataWithAcceptedSuggestions','rootsAttributes','editorCreator','Pagination','getFullData','discardAllSuggestions','appendChild','document','acceptAllSuggestions','constructor','users','getRootsAttributes','config','track-changes-data-invalid-editor-creator','createDocumentFragment','get'];(function(_0x3eb0cd,_0x4e4aac){const _0x29d8b0=function(_0x135fe4){while(--_0x135fe4){_0x3eb0cd['push'](_0x3eb0cd['shift']());}};_0x29d8b0(++_0x4e4aac);}(_0x4e4a,0x74));const _0x29d8=function(_0x3eb0cd,_0x4e4aac){_0x3eb0cd=_0x3eb0cd-0x0;let _0x29d8b0=_0x4e4a[_0x3eb0cd];return _0x29d8b0;};import{Plugin as _0xfcafa6}from'ckeditor5/src/core';import{CKEditorError as _0x2b3933}from'ckeditor5/src/utils';import _0x214701 from'./trackchangesediting';import{sanitizeEditorConfig as _0x271a76}from'ckeditor5-collaboration/src/collaboration-core';const w=[_0x29d8('0x1f')];export default class T extends _0xfcafa6{static get[_0x29d8('0x18')](){return[_0x214701];}static get[_0x29d8('0x8')](){return'TrackChangesData';}[_0x29d8('0xa')](){const _0x11cbdd=this[_0x29d8('0x13')];if(_0x11cbdd[_0x29d8('0x0')][_0x29d8('0x10')](_0x29d8('0x9'),_0x2626a6=>{const _0xe3af63=_0x11cbdd['model']['document']['getRootNames']()[_0x29d8('0xf')]((_0x2f1257,_0x42541e)=>(_0x2f1257[_0x42541e]='',_0x2f1257),{});return _0x11cbdd[_0x29d8('0x25')][_0x29d8('0x14')](_0xe3af63,_0x2626a6);}),_0x29d8('0x4')!=typeof _0x11cbdd['config'][_0x29d8('0x3')](_0x29d8('0x11'))[_0x29d8('0x1e')])throw new _0x2b3933(_0x29d8('0x1'));}[_0x29d8('0x1c')](_0x365ad0){return v(this[_0x29d8('0x13')],!0x0,_0x365ad0);}['getDataWithDiscardedSuggestions'](_0x4253b8){return v(this[_0x29d8('0x13')],!0x1,_0x4253b8);}}class P extends _0xfcafa6{static get[_0x29d8('0x8')](){return _0x29d8('0x6');}constructor(_0x22b14a){super(_0x22b14a),this['result']='end';}[_0x29d8('0xa')](){this[_0x29d8('0x13')][_0x29d8('0x15')][_0x29d8('0x3')](_0x29d8('0x7'))[_0x29d8('0x1a')]={'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[_0x29d8('0x13')][_0x29d8('0x15')]['get'](_0x29d8('0x19'))[_0x29d8('0x1a')]=null;}}function D(_0x5c5115){return void 0x0!==_0x5c5115[_0x29d8('0x27')];}async function v(_0x66dd30,_0x5b6545,_0x5449a0){const _0x126fcf=_0x271a76(_0x66dd30,w);_0x126fcf[_0x29d8('0x15')]['push'](_0x214701,P),_0x126fcf[_0x29d8('0x1d')]=D(_0x66dd30)?_0x66dd30[_0x29d8('0x27')]():void 0x0;const _0x181509=document[_0x29d8('0x2')](),_0x70cdc6=_0x66dd30[_0x29d8('0x0')][_0x29d8('0x3')](_0x29d8('0x11'))[_0x29d8('0x1e')],_0x3b9e0d=await _0x70cdc6(_0x126fcf,()=>function(_0x30e4ff){const _0x59202f=document[_0x29d8('0x17')]('div');return _0x30e4ff[_0x29d8('0x22')](_0x59202f),_0x59202f;}(_0x181509));!function(_0xc63277,_0x360cce){const _0x4612e4=_0xc63277[_0x29d8('0x5')][_0x29d8('0x23')]['getRootNames']()[_0x29d8('0xf')]((_0x550ec8,_0x3a86c1)=>(_0x550ec8[_0x3a86c1]=_0xc63277[_0x29d8('0xd')][_0x29d8('0x3')]({'rootName':_0x3a86c1}),_0x550ec8),{}),_0x41fa2b=_0xc63277[_0x29d8('0x15')][_0x29d8('0x3')]('Users')[_0x29d8('0x26')]['map'](_0x4e3196=>({'id':_0x4e3196['id'],'name':_0x4e3196[_0x29d8('0xc')]})),_0x1dcf77=_0xc63277['plugins'][_0x29d8('0x3')](_0x29d8('0x19'))['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x363832=_0x360cce['plugins'][_0x29d8('0x3')](_0x29d8('0x12')),_0x4ae39d=_0x360cce[_0x29d8('0x15')][_0x29d8('0x3')](_0x29d8('0x19'));for(const _0x380c27 of _0x41fa2b)_0x363832['getUser'](_0x380c27['id'])||_0x363832[_0x29d8('0xb')](_0x380c27);_0x363832['me']||_0x363832[_0x29d8('0x1b')]();for(const _0x49ddaf of _0x1dcf77)_0x4ae39d['addSuggestionData'](_0x49ddaf);_0x360cce[_0x29d8('0xd')]['set'](_0x4612e4);}(_0x66dd30,_0x3b9e0d),_0x3b9e0d[_0x29d8('0x16')](_0x5b6545?_0x29d8('0x24'):_0x29d8('0x21'));const _0x1befc8=D(_0x3b9e0d)?_0x3b9e0d[_0x29d8('0x20')](_0x5449a0):_0x3b9e0d['data'][_0x29d8('0x3')](_0x5449a0);return await _0x3b9e0d[_0x29d8('0xe')](),_0x1befc8;}
|