@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230816.0 → 0.0.0-nightly-20230817.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 _0x3883=['hasComments','isIntersectingWithRange','size','getItems','getFirstRange','createdAt','getMarkers','author','commentThread','start','isIntersecting','getMultiRangeId','add','getContainedElement','isMultiRange','next','_model','head','removeAttribute','_saved','split','onAttributesChange','addMarkerName','data','push','from','_onAttributesChange','removeMarkers','decorate','map','suggestion:','creator','isInContent','change','length','getRange','attributes','get','addMarker','_onDiscard','getMarkerNames','end','removeMarker','@external','getRanges','_onAccept','accept','getAllAdjacentSuggestions','getFirstMarker','toJSON','discard','previous','_markerNames','onDiscard','subType','type','set','delete','clear','nodeBefore','reduce'];(function(_0x48ea2d,_0x3883b0){const _0x16c7a4=function(_0x4d738e){while(--_0x4d738e){_0x48ea2d['push'](_0x48ea2d['shift']());}};_0x16c7a4(++_0x3883b0);}(_0x3883,0x196));const _0x16c7=function(_0x48ea2d,_0x3883b0){_0x48ea2d=_0x48ea2d-0x0;let _0x16c7a4=_0x3883[_0x48ea2d];return _0x16c7a4;};import{Element as _0x3eb65d}from'ckeditor5/src/engine';import{ObservableMixin as _0x511785,uid as _0x1b8a24}from'ckeditor5/src/utils';import{cloneDeep as _0x4392ca,isEqual as _0x4dc4ae,set as _0x1bddf8,unset as _0x5782de}from'lodash-es';export default class u extends _0x511785(){constructor(_0x2f14e8,_0x372de2){super(),this['id']=_0x372de2['id'],this[_0x16c7('0xf')]=_0x372de2[_0x16c7('0xf')],this[_0x16c7('0xe')]=_0x372de2['subType']||null,this[_0x16c7('0x1c')]=_0x372de2[_0x16c7('0x1c')],this[_0x16c7('0x34')]=_0x372de2[_0x16c7('0x34')]||_0x372de2['author'],this['isExternal']=Boolean(_0x372de2[_0x16c7('0x39')]&&_0x372de2[_0x16c7('0x39')][_0x16c7('0x3')]),this[_0x16c7('0x2c')]=null,this[_0x16c7('0x25')]=_0x2f14e8,this['_onAccept']=_0x372de2['onAccept'],this[_0x16c7('0x3c')]=_0x372de2[_0x16c7('0xd')],this[_0x16c7('0x2f')]=_0x372de2[_0x16c7('0x2a')],this['_markerNames']=new Set(),this['createdAt']=null,this[_0x16c7('0x10')]('authoredAt',null),this[_0x16c7('0x10')](_0x16c7('0x39'),_0x372de2['attributes']||{}),this[_0x16c7('0x10')](_0x16c7('0xb'),null),this[_0x16c7('0x10')](_0x16c7('0x24'),null),this[_0x16c7('0x10')](_0x16c7('0x1d'),null),this[_0x16c7('0x10')](_0x16c7('0x28'),!0x1),this[_0x16c7('0x31')]('accept'),this[_0x16c7('0x31')]('discard');}get[_0x16c7('0x26')](){let _0x5640b6=this;for(;_0x5640b6['previous'];)_0x5640b6=_0x5640b6[_0x16c7('0xb')];return _0x5640b6;}get['hasComments'](){return!!this[_0x16c7('0x1d')]&&this['commentThread']['length']>0x0;}get[_0x16c7('0x23')](){if(0x0==this[_0x16c7('0xc')][_0x16c7('0x17')])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0][_0x16c7('0x29')](':')[_0x16c7('0x37')];}get[_0x16c7('0x35')](){return null!==this[_0x16c7('0x8')]();}['addMarkerName'](_0x2638ab){this['_markerNames'][_0x16c7('0x21')](_0x2638ab);}[_0x16c7('0x0')](){return Array[_0x16c7('0x2e')](this[_0x16c7('0xc')]);}[_0x16c7('0x1b')](){return this[_0x16c7('0x0')]()['map'](_0x278680=>this[_0x16c7('0x25')]['markers'][_0x16c7('0x3a')](_0x278680))['filter'](_0x4d5bd5=>_0x4d5bd5);}['getFirstMarker'](){return this[_0x16c7('0x1b')]()[0x0]||null;}[_0x16c7('0x30')](){this[_0x16c7('0x25')]['change'](_0x981dc6=>{for(const _0x7b3a5e of this[_0x16c7('0x1b')]())_0x981dc6[_0x16c7('0x2')](_0x7b3a5e);}),this[_0x16c7('0xc')][_0x16c7('0x12')]();}[_0x16c7('0x2')](_0x40d535){this[_0x16c7('0x25')][_0x16c7('0x36')](_0x5c2ff1=>{_0x5c2ff1['removeMarker'](_0x40d535);}),this['_markerNames'][_0x16c7('0x11')](_0x40d535);}['addRange'](_0x4ed4a2){const _0x47c881=_0x16c7('0x33')+this['type']+':'+this[_0x16c7('0xe')]+':'+this['id']+':'+this[_0x16c7('0x34')]['id']+':'+u[_0x16c7('0x20')]();this[_0x16c7('0x2b')](_0x47c881),this[_0x16c7('0x25')]['change'](_0x1ddec9=>{_0x1ddec9[_0x16c7('0x3b')](_0x47c881,{'range':_0x4ed4a2,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x16c7('0x16')](_0x4159b7){for(const _0x1fe924 of this[_0x16c7('0x4')]())if(_0x1fe924[_0x16c7('0x1f')](_0x4159b7))return!0x0;return!0x1;}[_0x16c7('0x4')](){return this[_0x16c7('0x1b')]()[_0x16c7('0x32')](_0x2e3e07=>_0x2e3e07[_0x16c7('0x38')]());}['getItems'](){return this[_0x16c7('0x4')]()[_0x16c7('0x14')]((_0x369cd0,_0x4fc94a)=>[..._0x369cd0,..._0x4fc94a[_0x16c7('0x18')]()],[]);}[_0x16c7('0x19')](){var _0xf48d2e;return(null===(_0xf48d2e=this[_0x16c7('0x8')]())||void 0x0===_0xf48d2e?void 0x0:_0xf48d2e[_0x16c7('0x38')]())||null;}[_0x16c7('0x22')](){const _0x5a2cfb=this['getRanges']();if(0x1!=_0x5a2cfb[_0x16c7('0x37')])return null;const _0x21cc0e=_0x5a2cfb[0x0],_0x21ea6f=_0x21cc0e[_0x16c7('0x1e')]['nodeAfter'],_0x73dfa1=_0x21cc0e[_0x16c7('0x1')][_0x16c7('0x13')];return _0x21ea6f instanceof _0x3eb65d?_0x21ea6f!=_0x73dfa1?null:_0x21ea6f:null;}[_0x16c7('0x6')](){this[_0x16c7('0x5')](this[_0x16c7('0x4')](),this['data'],this[_0x16c7('0x39')]),this[_0x16c7('0x30')]();}[_0x16c7('0xa')](){this['_onDiscard'](this['getRanges'](),this[_0x16c7('0x2c')],this[_0x16c7('0x39')]),this[_0x16c7('0x30')]();}[_0x16c7('0x7')](){const _0x5b8ef3=[];let _0x16f03a=this[_0x16c7('0x26')];for(;_0x16f03a;)_0x5b8ef3[_0x16c7('0x2d')](_0x16f03a),_0x16f03a=_0x16f03a[_0x16c7('0x24')];return _0x5b8ef3;}['setAttribute'](_0x3e4c92,_0x3cc851){const _0x3eb380=_0x4392ca(this[_0x16c7('0x39')]);_0x1bddf8(_0x3eb380,_0x3e4c92,_0x3cc851),_0x4dc4ae(_0x3eb380,this[_0x16c7('0x39')])||(this[_0x16c7('0x39')]=_0x3eb380,this[_0x16c7('0x2f')](_0x3eb380));}[_0x16c7('0x27')](_0x53a6fc){const _0x1d4302=_0x4392ca(this[_0x16c7('0x39')]);_0x5782de(_0x1d4302,_0x53a6fc),_0x4dc4ae(_0x1d4302,this[_0x16c7('0x39')])||(this[_0x16c7('0x39')]=_0x1d4302,this[_0x16c7('0x2f')](this[_0x16c7('0x39')]));}[_0x16c7('0x9')](){return{'id':this['id'],'type':this[_0x16c7('0xe')]?this[_0x16c7('0xf')]+':'+this[_0x16c7('0xe')]:this[_0x16c7('0xf')],'authorId':this[_0x16c7('0x34')]['id'],'createdAt':this[_0x16c7('0x1a')],'hasComments':this[_0x16c7('0x15')],'data':this['data'],'attributes':this[_0x16c7('0x39')]};}static[_0x16c7('0x20')](){return _0x1b8a24()['substr'](0x1,0x5);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ea7=['$text','skip','REPLACE_TEXT','end','*Merge:*\x20%0','name','checkChild','match','_itemLabelsCallbacks','nextSibling','softBreak','$1\x20$2','_addDescriptionItems','*Split:*\x20%0','_schema','*Insert:*\x20%0','addEmptyContainer','isObject','_locale','insertion','removeEmptyContainer','registerElementLabel','elementEnd','text','isEqual','_itemLabels','getDescriptions','Container','remove','matchingCallback','previousSibling','_resolveDescriptionItems','deletion','quantity','getWalker','getFirstRange','pop','push','removeObject','registerDescriptionCallback','_customCallbacks','*Remove:*\x20%0','indexOf','addObject','ELEMENT_SPACE','elementStart','normal','length','type','addContainer','getItemLabel','data','get','EmptyContainer','$textProxy','add','item','element','replace','Object','isEmpty'];(function(_0x3c3665,_0x2ea784){const _0x5077fb=function(_0x51a0eb){while(--_0x51a0eb){_0x3c3665['push'](_0x3c3665['shift']());}};_0x5077fb(++_0x2ea784);}(_0x2ea7,0x161));const _0x5077=function(_0x3c3665,_0x2ea784){_0x3c3665=_0x3c3665-0x0;let _0x5077fb=_0x2ea7[_0x3c3665];return _0x5077fb;};import{getTranslation as _0x2689c3}from'./utils/common-translations';import{priorities as _0x565ba4,insertToPriorityArray as _0x485182}from'ckeditor5/src/utils';export default class m{constructor(_0x426e97,_0x4fb270){this[_0x5077('0x35')]=[],this[_0x5077('0x26')]=new Map(),this[_0x5077('0x15')]=[],this[_0x5077('0x1b')]=_0x426e97,this[_0x5077('0x1f')]=_0x4fb270;}[_0x5077('0x27')](_0x3bd4f2){const _0x49728f=[];for(let _0x4ac268=0x0;_0x4ac268<_0x3bd4f2['length'];_0x4ac268++){const _0x5fbd04=_0x3bd4f2[_0x4ac268];if(!_0x5fbd04['isInContent'])continue;let _0x4cd246=!0x1;for(const _0x142c45 of this['_customCallbacks']){const _0x1e8880=_0x142c45(_0x5fbd04);if(_0x1e8880){_0x5077('0x0')in _0x1e8880&&_0x49728f[_0x5077('0x32')](_0x1e8880),_0x4cd246=!0x0;break;}}if(!_0x4cd246){this[_0x5077('0x19')](_0x49728f,_0x5fbd04);const _0x10b2d9=_0x3bd4f2[_0x4ac268+0x1];if(_0x10b2d9&&!_0x5fbd04[_0x5077('0x30')]()[_0x5077('0x10')][_0x5077('0x25')](_0x10b2d9[_0x5077('0x30')]()['start'])){const _0x520eb9=_0x49728f[_0x49728f['length']-0x1],_0x4964fe='insertion'==_0x5fbd04[_0x5077('0x0')]?_0x5077('0x7'):_0x5077('0x29');_0x520eb9&&_0x5077('0x24')==_0x520eb9[_0x5077('0x0')]&&(_0x520eb9[_0x4964fe]+='\x0a');}}}return this[_0x5077('0x2c')](_0x49728f);}[_0x5077('0x34')](_0x35c424){this['_customCallbacks'][_0x5077('0x32')](_0x35c424);}[_0x5077('0x22')](_0x4c9870,_0xeccc2b,_0xd3d059=_0x565ba4[_0x5077('0x3b')]){'function'==typeof _0x4c9870?_0x485182(this[_0x5077('0x15')],{'matchingCallback':_0x4c9870,'label':_0xeccc2b,'priority':_0xd3d059}):this['_itemLabels']['set'](_0x4c9870,_0xeccc2b);}[_0x5077('0x2')](_0x564e8d,_0x5267a0=0x1){let _0x496bed;for(const _0x3b7a7f of this[_0x5077('0x15')])if(_0x3b7a7f[_0x5077('0x2a')](_0x564e8d)){_0x496bed=_0x3b7a7f['label'];break;}return _0x496bed||(_0x496bed=this[_0x5077('0x26')][_0x5077('0x4')](_0x564e8d['name'])),_0x496bed?_0x496bed(_0x5267a0):0x1!==_0x5267a0?_0x5267a0+'\x20'+_0x564e8d[_0x5077('0x12')]+'s':''+_0x564e8d[_0x5077('0x12')];}[_0x5077('0x19')](_0x1b6276,_0x30b4b4){const _0x4c9111=_0x30b4b4[_0x5077('0x30')]()[_0x5077('0x2f')](),_0x376ee9='insertion'==_0x30b4b4['type']?_0x5077('0x7'):_0x5077('0x29');for(const _0x2bd355 of _0x4c9111){const _0x5b45b1=_0x2bd355[_0x5077('0x8')],_0x5724f8=_0x1b6276[_0x1b6276[_0x5077('0x3c')]-0x1];if(_0x5b45b1['is'](_0x5077('0x6')))_0x5724f8&&_0x5724f8[_0x5077('0x0')][_0x5077('0x37')](_0x5077('0x28'))>-0x1&&_0x1b6276[_0x5077('0x31')](),_0x5724f8&&_0x5077('0x24')==_0x5724f8['type']?_0x5724f8[_0x376ee9]+=_0x5b45b1[_0x5077('0x3')]:_0x1b6276[_0x5077('0x32')]({'type':_0x5077('0x24'),'add':_0x5077('0x7')==_0x376ee9?_0x5b45b1[_0x5077('0x3')]:'','remove':'remove'==_0x376ee9?_0x5b45b1[_0x5077('0x3')]:''});else{if(this[_0x5077('0x1b')][_0x5077('0x1e')](_0x5b45b1)){const _0x3081ee=_0x5b45b1;if(_0x5724f8&&_0x5724f8[_0x5077('0x0')][_0x5077('0x37')]('Container')>-0x1&&_0x1b6276['pop'](),'elementEnd'==_0x2bd355['type'])continue;_0x5724f8&&_0x5724f8[_0x5077('0x0')]==_0x376ee9+_0x5077('0xb')&&_0x5724f8[_0x5077('0x9')][_0x5077('0x12')]==_0x3081ee[_0x5077('0x12')]?_0x5724f8[_0x5077('0x2e')]++:_0x1b6276['push']({'type':_0x376ee9+_0x5077('0xb'),'element':_0x3081ee,'quantity':0x1}),_0x4c9111[_0x5077('0xe')](_0x14dd6f=>!(_0x5077('0x23')==_0x14dd6f[_0x5077('0x0')]&&_0x14dd6f['item']==_0x5b45b1));}else{if(this[_0x5077('0x1b')][_0x5077('0x13')](_0x5b45b1,_0x5077('0xd'))||_0x5b45b1['is']('element',_0x5077('0x17'))){const _0x13cc35=_0x5b45b1;if('add'==_0x376ee9&&_0x5077('0x3a')==_0x2bd355[_0x5077('0x0')]||_0x5077('0x29')==_0x376ee9&&_0x5077('0x23')==_0x2bd355[_0x5077('0x0')])continue;if(_0x5724f8&&-0x1==_0x5724f8[_0x5077('0x0')][_0x5077('0x37')](_0x5077('0x28'))){_0x5077('0x24')==_0x5724f8[_0x5077('0x0')]&&(_0x5724f8[_0x376ee9]+='\x0a');continue;}let _0x4b47fc;if(_0x4b47fc=_0x5077('0x7')==_0x376ee9?_0x13cc35['nextSibling']&&!this[_0x5077('0x1b')][_0x5077('0x1e')](_0x13cc35[_0x5077('0x16')])?_0x13cc35[_0x5077('0x16')]:null:_0x13cc35[_0x5077('0x2b')]&&!this['_schema'][_0x5077('0x1e')](_0x13cc35[_0x5077('0x2b')])?_0x13cc35[_0x5077('0x2b')]:null,_0x13cc35[_0x5077('0xc')]||_0x4b47fc&&_0x4b47fc[_0x5077('0xc')]){const _0x184b46=_0x4b47fc&&_0x4b47fc[_0x5077('0xc')]?_0x4b47fc:_0x13cc35;_0x5724f8&&_0x5724f8['type']==_0x376ee9+_0x5077('0x5')&&_0x5724f8[_0x5077('0x9')][_0x5077('0x12')]==_0x184b46['name']?_0x5724f8['quantity']++:_0x1b6276['push']({'type':_0x376ee9+_0x5077('0x5'),'element':_0x184b46,'quantity':0x1});}else _0x1b6276['push']({'type':_0x376ee9+_0x5077('0x28'),'element':_0x13cc35});}}}}}[_0x5077('0x2c')](_0x176df1){const _0x1f56a9=this[_0x5077('0x1f')],_0x253332=[];for(const _0x2b1d45 of _0x176df1){switch(_0x2b1d45['type']){case _0x5077('0x24'):if(_0x2b1d45[_0x5077('0x7')]=_0x2b1d45['add']['replace'](/(\S)\u000A+(\S)/g,_0x5077('0x18'))['replace'](/\u000A/g,''),_0x2b1d45['remove']=_0x2b1d45[_0x5077('0x29')][_0x5077('0xa')](/(\S)\u000A+(\S)/g,_0x5077('0x18'))[_0x5077('0xa')](/\u000A/g,''),''!=_0x2b1d45['add']&&''!=_0x2b1d45['remove']){_0x253332[_0x5077('0x32')]({'type':_0x5077('0xa'),'content':_0x2689c3(_0x1f56a9,_0x5077('0xf'),['\x22'+_0x2b1d45[_0x5077('0x29')]+'\x22','\x22'+_0x2b1d45['add']+'\x22'])});continue;}if(null!=_0x2b1d45[_0x5077('0x7')][_0x5077('0x14')](/^ +$/)){_0x253332[_0x5077('0x32')]({'type':_0x5077('0x20'),'content':_0x2689c3(_0x1f56a9,_0x5077('0x1c'),_0x2689c3(_0x1f56a9,_0x5077('0x39'),_0x2b1d45['add']['length']))});continue;}if(null!=_0x2b1d45['remove'][_0x5077('0x14')](/^ +$/)){_0x253332[_0x5077('0x32')]({'type':_0x5077('0x2d'),'content':_0x2689c3(_0x1f56a9,_0x5077('0x36'),_0x2689c3(_0x1f56a9,_0x5077('0x39'),_0x2b1d45[_0x5077('0x29')]['length']))});continue;}if(''!=_0x2b1d45['add']){_0x253332[_0x5077('0x32')]({'type':_0x5077('0x20'),'content':_0x2689c3(_0x1f56a9,_0x5077('0x1c'),'\x22'+_0x2b1d45['add']+'\x22')});continue;}_0x253332[_0x5077('0x32')]({'type':_0x5077('0x2d'),'content':_0x2689c3(_0x1f56a9,_0x5077('0x36'),'\x22'+_0x2b1d45[_0x5077('0x29')]+'\x22')});continue;case _0x5077('0x1d'):case _0x5077('0x38'):_0x253332[_0x5077('0x32')]({'type':_0x5077('0x20'),'content':_0x2689c3(_0x1f56a9,_0x5077('0x1c'),this[_0x5077('0x2')](_0x2b1d45[_0x5077('0x9')],_0x2b1d45[_0x5077('0x2e')]))});continue;case _0x5077('0x21'):case _0x5077('0x33'):_0x253332[_0x5077('0x32')]({'type':_0x5077('0x2d'),'content':_0x2689c3(_0x1f56a9,_0x5077('0x36'),this[_0x5077('0x2')](_0x2b1d45[_0x5077('0x9')],_0x2b1d45[_0x5077('0x2e')]))});continue;case _0x5077('0x1'):_0x253332[_0x5077('0x32')]({'type':'insertion','content':_0x2689c3(_0x1f56a9,_0x5077('0x1a'),this[_0x5077('0x2')](_0x2b1d45[_0x5077('0x9')],_0x2b1d45[_0x5077('0x2e')]))});continue;case'removeContainer':_0x253332['push']({'type':'deletion','content':_0x2689c3(_0x1f56a9,_0x5077('0x11'),this[_0x5077('0x2')](_0x2b1d45['element'],_0x2b1d45[_0x5077('0x2e')]))});continue;}_0x253332[_0x5077('0x32')](_0x2b1d45);}return _0x253332;}}
|
package/src/trackchanges.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5299=['plugins','pluginName','Comments','getSuggestion','editor','getSuggestions','TrackChanges','get','adapter'];(function(_0xb5ec28,_0x5299fd){var _0x5e95e1=function(_0x3c1d63){while(--_0x3c1d63){_0xb5ec28['push'](_0xb5ec28['shift']());}};_0x5e95e1(++_0x5299fd);}(_0x5299,0x93));var _0x5e95=function(_0xb5ec28,_0x5299fd){_0xb5ec28=_0xb5ec28-0x0;var _0x5e95e1=_0x5299[_0xb5ec28];return _0x5e95e1;};import{Plugin as _0x250aa1}from'ckeditor5/src/core';import _0x1d6589 from'./trackchangesui';import _0x4e7112 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x250aa1{static get['requires'](){return[_0x4e7112,_0x1d6589,_0x5e95('0x8')];}static get[_0x5e95('0x7')](){return _0x5e95('0x3');}set[_0x5e95('0x5')](_0xff8a09){this[_0x5e95('0x1')]['plugins'][_0x5e95('0x4')](_0x4e7112)[_0x5e95('0x5')]=_0xff8a09;}get[_0x5e95('0x5')](){return this['editor'][_0x5e95('0x6')][_0x5e95('0x4')](_0x4e7112)['adapter'];}['addSuggestion'](_0x4c5911){return this[_0x5e95('0x1')][_0x5e95('0x6')]['get'](_0x4e7112)['addSuggestionData'](_0x4c5911);}[_0x5e95('0x2')]({skipNotAttached:_0x21832b=!0x1,toJSON:_0x4915a5=!0x1}={}){return this[_0x5e95('0x1')][_0x5e95('0x6')][_0x5e95('0x4')](_0x4e7112)['getSuggestions']({'skipNotAttached':_0x21832b,'toJSON':_0x4915a5});}[_0x5e95('0x0')](_0x3489ca){return this[_0x5e95('0x1')][_0x5e95('0x6')][_0x5e95('0x4')](_0x4e7112)[_0x5e95('0x0')](_0x3489ca);}}
|
package/src/trackchangesdata.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1bb3=['getDataWithAcceptedSuggestions','getRootNames','end','constructor','getSuggestions','set','users','TrackChangesDataGetter','config','getRootsAttributes','CommentsRepository','data','editorCreator','TrackChangesData','editor','init','result','get','useAnonymousUser','create','Users','document','function','_adapter','appendChild','name','acceptAllSuggestions','pluginName','getUser','trackChangesData.editorCreator','requires','reduce','TrackChangesEditing','destroy','execute','plugins','trackChangesData','div','map'];(function(_0x52369a,_0x1bb3a0){const _0x5521ae=function(_0xd6ee05){while(--_0xd6ee05){_0x52369a['push'](_0x52369a['shift']());}};_0x5521ae(++_0x1bb3a0);}(_0x1bb3,0x1bd));const _0x5521=function(_0x52369a,_0x1bb3a0){_0x52369a=_0x52369a-0x0;let _0x5521ae=_0x1bb3[_0x52369a];return _0x5521ae;};import{Plugin as _0x157cbf}from'ckeditor5/src/core';import{CKEditorError as _0x34e3c3}from'ckeditor5/src/utils';import _0x1e4347 from'./trackchangesediting';import{sanitizeEditorConfig as _0xae5071}from'ckeditor5-collaboration/src/collaboration-core';const w=['Pagination'];export default class T extends _0x157cbf{static get[_0x5521('0xe')](){return[_0x1e4347];}static get[_0x5521('0xb')](){return _0x5521('0x24');}[_0x5521('0x26')](){const _0x11e014=this['editor'];if(_0x11e014[_0x5521('0x1f')]['define'](_0x5521('0xd'),_0x1fa42d=>{const _0x1952f1=_0x11e014['model'][_0x5521('0x5')][_0x5521('0x18')]()[_0x5521('0xf')]((_0x1977ab,_0x1d0ebe)=>(_0x1977ab[_0x1d0ebe]='',_0x1977ab),{});return _0x11e014[_0x5521('0x1a')][_0x5521('0x3')](_0x1952f1,_0x1fa42d);}),_0x5521('0x6')!=typeof _0x11e014[_0x5521('0x1f')][_0x5521('0x1')]('trackChangesData')['editorCreator'])throw new _0x34e3c3('track-changes-data-invalid-editor-creator');}[_0x5521('0x17')](_0x2f4221){return v(this['editor'],!0x0,_0x2f4221);}['getDataWithDiscardedSuggestions'](_0x535b5b){return v(this[_0x5521('0x25')],!0x1,_0x535b5b);}}class P extends _0x157cbf{static get[_0x5521('0xb')](){return _0x5521('0x1e');}constructor(_0x4b8c32){super(_0x4b8c32),this[_0x5521('0x0')]=_0x5521('0x19');}['init'](){this['editor'][_0x5521('0x13')][_0x5521('0x1')](_0x5521('0x21'))['_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[_0x5521('0x25')][_0x5521('0x13')][_0x5521('0x1')](_0x5521('0x10'))[_0x5521('0x7')]=null;}}function D(_0x191d5a){return void 0x0!==_0x191d5a[_0x5521('0x20')];}async function v(_0x2dd623,_0x1d5cab,_0x439c85){const _0x31d929=_0xae5071(_0x2dd623,w);_0x31d929[_0x5521('0x13')]['push'](_0x1e4347,P),_0x31d929['rootsAttributes']=D(_0x2dd623)?_0x2dd623[_0x5521('0x20')]():void 0x0;const _0x2d4df5=document['createDocumentFragment'](),_0x3af7ba=_0x2dd623[_0x5521('0x1f')][_0x5521('0x1')](_0x5521('0x14'))[_0x5521('0x23')],_0x58f84f=await _0x3af7ba(_0x31d929,()=>function(_0x7bdb7b){const _0x36fed5=document['createElement'](_0x5521('0x15'));return _0x7bdb7b[_0x5521('0x8')](_0x36fed5),_0x36fed5;}(_0x2d4df5));!function(_0x1e40db,_0x29b1a6){const _0x3d8a9c=_0x1e40db['model'][_0x5521('0x5')][_0x5521('0x18')]()[_0x5521('0xf')]((_0x382ee1,_0x6bd4af)=>(_0x382ee1[_0x6bd4af]=_0x1e40db[_0x5521('0x22')]['get']({'rootName':_0x6bd4af}),_0x382ee1),{}),_0x1353b5=_0x1e40db['plugins'][_0x5521('0x1')](_0x5521('0x4'))[_0x5521('0x1d')][_0x5521('0x16')](_0xbd7691=>({'id':_0xbd7691['id'],'name':_0xbd7691[_0x5521('0x9')]})),_0x4b2ed3=_0x1e40db[_0x5521('0x13')][_0x5521('0x1')](_0x5521('0x10'))[_0x5521('0x1b')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x329c5e=_0x29b1a6[_0x5521('0x13')]['get'](_0x5521('0x4')),_0x4a41b4=_0x29b1a6[_0x5521('0x13')][_0x5521('0x1')]('TrackChangesEditing');for(const _0x149578 of _0x1353b5)_0x329c5e[_0x5521('0xc')](_0x149578['id'])||_0x329c5e['addUser'](_0x149578);_0x329c5e['me']||_0x329c5e[_0x5521('0x2')]();for(const _0x3b09a3 of _0x4b2ed3)_0x4a41b4['addSuggestionData'](_0x3b09a3);_0x29b1a6[_0x5521('0x22')][_0x5521('0x1c')](_0x3d8a9c);}(_0x2dd623,_0x58f84f),_0x58f84f[_0x5521('0x12')](_0x1d5cab?_0x5521('0xa'):'discardAllSuggestions');const _0x39af6e=D(_0x58f84f)?_0x58f84f['getFullData'](_0x439c85):_0x58f84f['data'][_0x5521('0x1')](_0x439c85);return await _0x58f84f[_0x5521('0x11')](),_0x39af6e;}
|