@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230720.0 → 0.0.0-nightly-20230722.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 _0x200c=['isInContent','from','end','split','author','substr','clear','onAccept','set','start','size','suggestion:','_onAttributesChange','reduce','_onDiscard','commentThread','createdAt','accept','decorate','next','getMarkerNames','discard','getMarkers','creator','isExternal','@external','getRanges','_onAccept','delete','attributes','_saved','onAttributesChange','length','change','_markerNames','filter','type','push','onDiscard','toJSON','setAttribute','addRange','removeMarker','getMultiRangeId','removeMarkers','head','getFirstRange','data','getFirstMarker','addMarkerName','_model','previous','subType','addMarker','hasComments','getRange','map'];(function(_0x3484fb,_0x200c4d){const _0x59f11c=function(_0x31dd2e){while(--_0x31dd2e){_0x3484fb['push'](_0x3484fb['shift']());}};_0x59f11c(++_0x200c4d);}(_0x200c,0x140));const _0x59f1=function(_0x3484fb,_0x200c4d){_0x3484fb=_0x3484fb-0x0;let _0x59f11c=_0x200c[_0x3484fb];return _0x59f11c;};import{Element as _0x218365}from'ckeditor5/src/engine';import{ObservableMixin as _0x528874,uid as _0x23d720}from'ckeditor5/src/utils';import{cloneDeep as _0x1f8aca,isEqual as _0x4954f7,set as _0x91b29e,unset as _0x54591d}from'lodash-es';export default class u extends _0x528874(){constructor(_0x368e02,_0x428feb){super(),this['id']=_0x428feb['id'],this['type']=_0x428feb[_0x59f1('0x1')],this[_0x59f1('0x11')]=_0x428feb[_0x59f1('0x11')]||null,this['author']=_0x428feb[_0x59f1('0x1a')],this[_0x59f1('0x2d')]=_0x428feb[_0x59f1('0x2d')]||_0x428feb[_0x59f1('0x1a')],this[_0x59f1('0x2e')]=Boolean(_0x428feb[_0x59f1('0x33')]&&_0x428feb[_0x59f1('0x33')][_0x59f1('0x2f')]),this[_0x59f1('0xc')]=null,this[_0x59f1('0xf')]=_0x368e02,this[_0x59f1('0x31')]=_0x428feb[_0x59f1('0x1d')],this[_0x59f1('0x24')]=_0x428feb[_0x59f1('0x3')],this[_0x59f1('0x22')]=_0x428feb[_0x59f1('0x35')],this[_0x59f1('0x38')]=new Set(),this[_0x59f1('0x26')]=null,this['set']('authoredAt',null),this[_0x59f1('0x1e')](_0x59f1('0x33'),_0x428feb[_0x59f1('0x33')]||{}),this[_0x59f1('0x1e')](_0x59f1('0x10'),null),this[_0x59f1('0x1e')](_0x59f1('0x29'),null),this[_0x59f1('0x1e')](_0x59f1('0x25'),null),this[_0x59f1('0x1e')](_0x59f1('0x34'),!0x1),this['decorate'](_0x59f1('0x27')),this[_0x59f1('0x28')](_0x59f1('0x2b'));}get[_0x59f1('0xa')](){let _0x5c727c=this;for(;_0x5c727c[_0x59f1('0x10')];)_0x5c727c=_0x5c727c['previous'];return _0x5c727c;}get[_0x59f1('0x13')](){return!!this[_0x59f1('0x25')]&&this[_0x59f1('0x25')]['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames'][_0x59f1('0x20')])return!0x1;return 0x6==Array[_0x59f1('0x17')](this[_0x59f1('0x38')])[0x0][_0x59f1('0x19')](':')[_0x59f1('0x36')];}get[_0x59f1('0x16')](){return null!==this['getFirstMarker']();}[_0x59f1('0xe')](_0x2ecb67){this[_0x59f1('0x38')]['add'](_0x2ecb67);}[_0x59f1('0x2a')](){return Array[_0x59f1('0x17')](this[_0x59f1('0x38')]);}[_0x59f1('0x2c')](){return this[_0x59f1('0x2a')]()[_0x59f1('0x15')](_0x19b91f=>this[_0x59f1('0xf')]['markers']['get'](_0x19b91f))[_0x59f1('0x0')](_0x3a5884=>_0x3a5884);}['getFirstMarker'](){return this[_0x59f1('0x2c')]()[0x0]||null;}['removeMarkers'](){this[_0x59f1('0xf')]['change'](_0x2be8e0=>{for(const _0x13dba9 of this[_0x59f1('0x2c')]())_0x2be8e0[_0x59f1('0x7')](_0x13dba9);}),this[_0x59f1('0x38')][_0x59f1('0x1c')]();}[_0x59f1('0x7')](_0x45b0ac){this[_0x59f1('0xf')][_0x59f1('0x37')](_0x2f5967=>{_0x2f5967[_0x59f1('0x7')](_0x45b0ac);}),this[_0x59f1('0x38')][_0x59f1('0x32')](_0x45b0ac);}[_0x59f1('0x6')](_0x29eaf6){const _0x5e8056=_0x59f1('0x21')+this[_0x59f1('0x1')]+':'+this[_0x59f1('0x11')]+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this[_0x59f1('0xe')](_0x5e8056),this[_0x59f1('0xf')][_0x59f1('0x37')](_0x9e6a4a=>{_0x9e6a4a[_0x59f1('0x12')](_0x5e8056,{'range':_0x29eaf6,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3a703e){for(const _0x48e578 of this['getRanges']())if(_0x48e578['isIntersecting'](_0x3a703e))return!0x0;return!0x1;}[_0x59f1('0x30')](){return this[_0x59f1('0x2c')]()[_0x59f1('0x15')](_0x5d36b7=>_0x5d36b7['getRange']());}['getItems'](){return this[_0x59f1('0x30')]()[_0x59f1('0x23')]((_0x41b453,_0x2a462a)=>[..._0x41b453,..._0x2a462a['getItems']()],[]);}[_0x59f1('0xb')](){var _0x3266e8;return(null===(_0x3266e8=this[_0x59f1('0xd')]())||void 0x0===_0x3266e8?void 0x0:_0x3266e8[_0x59f1('0x14')]())||null;}['getContainedElement'](){const _0x5ce0d8=this[_0x59f1('0x30')]();if(0x1!=_0x5ce0d8['length'])return null;const _0x798e60=_0x5ce0d8[0x0],_0x2e3fee=_0x798e60[_0x59f1('0x1f')]['nodeAfter'],_0x5c9ec8=_0x798e60[_0x59f1('0x18')]['nodeBefore'];return _0x2e3fee instanceof _0x218365?_0x2e3fee!=_0x5c9ec8?null:_0x2e3fee:null;}[_0x59f1('0x27')](){this[_0x59f1('0x31')](this[_0x59f1('0x30')](),this[_0x59f1('0xc')],this['attributes']),this[_0x59f1('0x9')]();}[_0x59f1('0x2b')](){this['_onDiscard'](this[_0x59f1('0x30')](),this[_0x59f1('0xc')],this['attributes']),this[_0x59f1('0x9')]();}['getAllAdjacentSuggestions'](){const _0x42b074=[];let _0x3326e8=this[_0x59f1('0xa')];for(;_0x3326e8;)_0x42b074[_0x59f1('0x2')](_0x3326e8),_0x3326e8=_0x3326e8['next'];return _0x42b074;}[_0x59f1('0x5')](_0x4b5a88,_0x3ee6e4){const _0x3b3903=_0x1f8aca(this[_0x59f1('0x33')]);_0x91b29e(_0x3b3903,_0x4b5a88,_0x3ee6e4),_0x4954f7(_0x3b3903,this['attributes'])||(this[_0x59f1('0x33')]=_0x3b3903,this['_onAttributesChange'](_0x3b3903));}['removeAttribute'](_0x3a599f){const _0x28c796=_0x1f8aca(this[_0x59f1('0x33')]);_0x54591d(_0x28c796,_0x3a599f),_0x4954f7(_0x28c796,this['attributes'])||(this[_0x59f1('0x33')]=_0x28c796,this[_0x59f1('0x22')](this[_0x59f1('0x33')]));}[_0x59f1('0x4')](){return{'id':this['id'],'type':this[_0x59f1('0x11')]?this[_0x59f1('0x1')]+':'+this[_0x59f1('0x11')]:this[_0x59f1('0x1')],'authorId':this['creator']['id'],'createdAt':this['createdAt'],'hasComments':this[_0x59f1('0x13')],'data':this['data'],'attributes':this[_0x59f1('0x33')]};}static[_0x59f1('0x8')](){return _0x23d720()[_0x59f1('0x1b')](0x1,0x5);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2774=['previousSibling','pop','item','removeContainer','removeObject','getWalker','_customCallbacks','ELEMENT_SPACE','removeEmptyContainer','*Split:*\x20%0','EmptyContainer','$textProxy','remove','_locale','addEmptyContainer','match','deletion','insertion','addObject','*Merge:*\x20%0','text','elementEnd','$1\x20$2','getFirstRange','get','set','Object','getDescriptions','type','add','matchingCallback','name','function','*Remove:*\x20%0','checkChild','quantity','_itemLabels','isObject','_addDescriptionItems','isEqual','Container','skip','data','_itemLabelsCallbacks','_resolveDescriptionItems','replace','$text','label','start','indexOf','nextSibling','push','REPLACE_TEXT','_schema','length','element','getItemLabel','elementStart','*Insert:*\x20%0','isEmpty','addContainer'];(function(_0x4bd53a,_0x277422){const _0x2652a8=function(_0x47fef2){while(--_0x47fef2){_0x4bd53a['push'](_0x4bd53a['shift']());}};_0x2652a8(++_0x277422);}(_0x2774,0x1a2));const _0x2652=function(_0x4bd53a,_0x277422){_0x4bd53a=_0x4bd53a-0x0;let _0x2652a8=_0x2774[_0x4bd53a];return _0x2652a8;};import{getTranslation as _0xbf4356}from'./utils/common-translations';import{priorities as _0x58b9ef,insertToPriorityArray as _0x2d78a7}from'ckeditor5/src/utils';export default class m{constructor(_0x4e7d0e,_0x1d05e1){this[_0x2652('0xf')]=[],this[_0x2652('0x2d')]=new Map(),this[_0x2652('0x34')]=[],this[_0x2652('0x1')]=_0x4e7d0e,this[_0x2652('0x16')]=_0x1d05e1;}[_0x2652('0x24')](_0x349331){const _0x18181a=[];for(let _0xd4c7d1=0x0;_0xd4c7d1<_0x349331[_0x2652('0x2')];_0xd4c7d1++){const _0x119730=_0x349331[_0xd4c7d1];if(!_0x119730['isInContent'])continue;let _0x57be0c=!0x1;for(const _0x5302d6 of this[_0x2652('0xf')]){const _0x56b17b=_0x5302d6(_0x119730);if(_0x56b17b){_0x2652('0x25')in _0x56b17b&&_0x18181a['push'](_0x56b17b),_0x57be0c=!0x0;break;}}if(!_0x57be0c){this[_0x2652('0x2f')](_0x18181a,_0x119730);const _0x2d4876=_0x349331[_0xd4c7d1+0x1];if(_0x2d4876&&!_0x119730[_0x2652('0x20')]()['end'][_0x2652('0x30')](_0x2d4876['getFirstRange']()[_0x2652('0x39')])){const _0x3ca0e0=_0x18181a[_0x18181a[_0x2652('0x2')]-0x1],_0x4ba374=_0x2652('0x1a')==_0x119730[_0x2652('0x25')]?_0x2652('0x26'):_0x2652('0x15');_0x3ca0e0&&'text'==_0x3ca0e0[_0x2652('0x25')]&&(_0x3ca0e0[_0x4ba374]+='\x0a');}}}return this[_0x2652('0x35')](_0x18181a);}['registerDescriptionCallback'](_0x95f0b2){this[_0x2652('0xf')]['push'](_0x95f0b2);}['registerElementLabel'](_0x3e8dcc,_0x458d65,_0x324974=_0x58b9ef['normal']){_0x2652('0x29')==typeof _0x3e8dcc?_0x2d78a7(this[_0x2652('0x34')],{'matchingCallback':_0x3e8dcc,'label':_0x458d65,'priority':_0x324974}):this[_0x2652('0x2d')][_0x2652('0x22')](_0x3e8dcc,_0x458d65);}[_0x2652('0x4')](_0x547a99,_0xe3fd4a=0x1){let _0x1cbd9d;for(const _0x4e6b1d of this[_0x2652('0x34')])if(_0x4e6b1d[_0x2652('0x27')](_0x547a99)){_0x1cbd9d=_0x4e6b1d[_0x2652('0x38')];break;}return _0x1cbd9d||(_0x1cbd9d=this['_itemLabels'][_0x2652('0x21')](_0x547a99[_0x2652('0x28')])),_0x1cbd9d?_0x1cbd9d(_0xe3fd4a):0x1!==_0xe3fd4a?_0xe3fd4a+'\x20'+_0x547a99['name']+'s':''+_0x547a99[_0x2652('0x28')];}[_0x2652('0x2f')](_0x1af2a1,_0x4f2f3b){const _0x42fbf6=_0x4f2f3b[_0x2652('0x20')]()[_0x2652('0xe')](),_0xcd4cd0=_0x2652('0x1a')==_0x4f2f3b[_0x2652('0x25')]?'add':_0x2652('0x15');for(const _0x1450cd of _0x42fbf6){const _0x4b865c=_0x1450cd[_0x2652('0xb')],_0x389479=_0x1af2a1[_0x1af2a1[_0x2652('0x2')]-0x1];if(_0x4b865c['is'](_0x2652('0x14')))_0x389479&&_0x389479[_0x2652('0x25')]['indexOf']('Container')>-0x1&&_0x1af2a1[_0x2652('0xa')](),_0x389479&&_0x2652('0x1d')==_0x389479['type']?_0x389479[_0xcd4cd0]+=_0x4b865c[_0x2652('0x33')]:_0x1af2a1[_0x2652('0x3c')]({'type':'text','add':_0x2652('0x26')==_0xcd4cd0?_0x4b865c[_0x2652('0x33')]:'','remove':_0x2652('0x15')==_0xcd4cd0?_0x4b865c[_0x2652('0x33')]:''});else{if(this[_0x2652('0x1')][_0x2652('0x2e')](_0x4b865c)){const _0xb97f57=_0x4b865c;if(_0x389479&&_0x389479[_0x2652('0x25')]['indexOf'](_0x2652('0x31'))>-0x1&&_0x1af2a1[_0x2652('0xa')](),_0x2652('0x1e')==_0x1450cd[_0x2652('0x25')])continue;_0x389479&&_0x389479[_0x2652('0x25')]==_0xcd4cd0+_0x2652('0x23')&&_0x389479['element']['name']==_0xb97f57[_0x2652('0x28')]?_0x389479['quantity']++:_0x1af2a1[_0x2652('0x3c')]({'type':_0xcd4cd0+_0x2652('0x23'),'element':_0xb97f57,'quantity':0x1}),_0x42fbf6[_0x2652('0x32')](_0x35ff91=>!(_0x2652('0x1e')==_0x35ff91['type']&&_0x35ff91[_0x2652('0xb')]==_0x4b865c));}else{if(this[_0x2652('0x1')][_0x2652('0x2b')](_0x4b865c,_0x2652('0x37'))||_0x4b865c['is'](_0x2652('0x3'),'softBreak')){const _0x9f8b28=_0x4b865c;if(_0x2652('0x26')==_0xcd4cd0&&_0x2652('0x5')==_0x1450cd[_0x2652('0x25')]||_0x2652('0x15')==_0xcd4cd0&&_0x2652('0x1e')==_0x1450cd['type'])continue;if(_0x389479&&-0x1==_0x389479['type'][_0x2652('0x3a')](_0x2652('0x31'))){_0x2652('0x1d')==_0x389479['type']&&(_0x389479[_0xcd4cd0]+='\x0a');continue;}let _0x312ebd;if(_0x312ebd=_0x2652('0x26')==_0xcd4cd0?_0x9f8b28[_0x2652('0x3b')]&&!this[_0x2652('0x1')][_0x2652('0x2e')](_0x9f8b28['nextSibling'])?_0x9f8b28[_0x2652('0x3b')]:null:_0x9f8b28[_0x2652('0x9')]&&!this[_0x2652('0x1')][_0x2652('0x2e')](_0x9f8b28[_0x2652('0x9')])?_0x9f8b28[_0x2652('0x9')]:null,_0x9f8b28[_0x2652('0x7')]||_0x312ebd&&_0x312ebd[_0x2652('0x7')]){const _0x383718=_0x312ebd&&_0x312ebd['isEmpty']?_0x312ebd:_0x9f8b28;_0x389479&&_0x389479[_0x2652('0x25')]==_0xcd4cd0+_0x2652('0x13')&&_0x389479[_0x2652('0x3')][_0x2652('0x28')]==_0x383718[_0x2652('0x28')]?_0x389479[_0x2652('0x2c')]++:_0x1af2a1[_0x2652('0x3c')]({'type':_0xcd4cd0+_0x2652('0x13'),'element':_0x383718,'quantity':0x1});}else _0x1af2a1['push']({'type':_0xcd4cd0+_0x2652('0x31'),'element':_0x9f8b28});}}}}}[_0x2652('0x35')](_0x16fb0c){const _0x4dcac1=this['_locale'],_0x2f24a8=[];for(const _0x3f2397 of _0x16fb0c){switch(_0x3f2397[_0x2652('0x25')]){case _0x2652('0x1d'):if(_0x3f2397[_0x2652('0x26')]=_0x3f2397[_0x2652('0x26')][_0x2652('0x36')](/(\S)\u000A+(\S)/g,_0x2652('0x1f'))['replace'](/\u000A/g,''),_0x3f2397[_0x2652('0x15')]=_0x3f2397['remove'][_0x2652('0x36')](/(\S)\u000A+(\S)/g,_0x2652('0x1f'))[_0x2652('0x36')](/\u000A/g,''),''!=_0x3f2397[_0x2652('0x26')]&&''!=_0x3f2397[_0x2652('0x15')]){_0x2f24a8[_0x2652('0x3c')]({'type':_0x2652('0x36'),'content':_0xbf4356(_0x4dcac1,_0x2652('0x0'),['\x22'+_0x3f2397['remove']+'\x22','\x22'+_0x3f2397[_0x2652('0x26')]+'\x22'])});continue;}if(null!=_0x3f2397[_0x2652('0x26')][_0x2652('0x18')](/^ +$/)){_0x2f24a8[_0x2652('0x3c')]({'type':'insertion','content':_0xbf4356(_0x4dcac1,_0x2652('0x6'),_0xbf4356(_0x4dcac1,_0x2652('0x10'),_0x3f2397[_0x2652('0x26')][_0x2652('0x2')]))});continue;}if(null!=_0x3f2397[_0x2652('0x15')][_0x2652('0x18')](/^ +$/)){_0x2f24a8[_0x2652('0x3c')]({'type':_0x2652('0x19'),'content':_0xbf4356(_0x4dcac1,_0x2652('0x2a'),_0xbf4356(_0x4dcac1,_0x2652('0x10'),_0x3f2397[_0x2652('0x15')]['length']))});continue;}if(''!=_0x3f2397['add']){_0x2f24a8[_0x2652('0x3c')]({'type':'insertion','content':_0xbf4356(_0x4dcac1,_0x2652('0x6'),'\x22'+_0x3f2397[_0x2652('0x26')]+'\x22')});continue;}_0x2f24a8['push']({'type':_0x2652('0x19'),'content':_0xbf4356(_0x4dcac1,_0x2652('0x2a'),'\x22'+_0x3f2397[_0x2652('0x15')]+'\x22')});continue;case _0x2652('0x17'):case _0x2652('0x1b'):_0x2f24a8[_0x2652('0x3c')]({'type':_0x2652('0x1a'),'content':_0xbf4356(_0x4dcac1,_0x2652('0x6'),this[_0x2652('0x4')](_0x3f2397['element'],_0x3f2397[_0x2652('0x2c')]))});continue;case _0x2652('0x11'):case _0x2652('0xd'):_0x2f24a8['push']({'type':_0x2652('0x19'),'content':_0xbf4356(_0x4dcac1,_0x2652('0x2a'),this[_0x2652('0x4')](_0x3f2397['element'],_0x3f2397[_0x2652('0x2c')]))});continue;case _0x2652('0x8'):_0x2f24a8['push']({'type':_0x2652('0x1a'),'content':_0xbf4356(_0x4dcac1,_0x2652('0x12'),this['getItemLabel'](_0x3f2397[_0x2652('0x3')],_0x3f2397[_0x2652('0x2c')]))});continue;case _0x2652('0xc'):_0x2f24a8[_0x2652('0x3c')]({'type':_0x2652('0x19'),'content':_0xbf4356(_0x4dcac1,_0x2652('0x1c'),this[_0x2652('0x4')](_0x3f2397['element'],_0x3f2397[_0x2652('0x2c')]))});continue;}_0x2f24a8[_0x2652('0x3c')](_0x3f2397);}return _0x2f24a8;}}
|
package/src/trackchanges.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3cc8=['addSuggestion','editor','TrackChanges','get','addSuggestionData','getSuggestion','getSuggestions','adapter','pluginName','plugins'];(function(_0x1e6193,_0x3cc828){var _0x53d083=function(_0x270eb5){while(--_0x270eb5){_0x1e6193['push'](_0x1e6193['shift']());}};_0x53d083(++_0x3cc828);}(_0x3cc8,0xe3));var _0x53d0=function(_0x1e6193,_0x3cc828){_0x1e6193=_0x1e6193-0x0;var _0x53d083=_0x3cc8[_0x1e6193];return _0x53d083;};import{Plugin as _0x22d8b2}from'ckeditor5/src/core';import _0x16c325 from'./trackchangesui';import _0x485193 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x22d8b2{static get['requires'](){return[_0x485193,_0x16c325,'Comments'];}static get[_0x53d0('0x1')](){return _0x53d0('0x5');}set[_0x53d0('0x0')](_0x22d12e){this[_0x53d0('0x4')][_0x53d0('0x2')][_0x53d0('0x6')](_0x485193)[_0x53d0('0x0')]=_0x22d12e;}get[_0x53d0('0x0')](){return this[_0x53d0('0x4')][_0x53d0('0x2')][_0x53d0('0x6')](_0x485193)[_0x53d0('0x0')];}[_0x53d0('0x3')](_0x19561e){return this[_0x53d0('0x4')][_0x53d0('0x2')][_0x53d0('0x6')](_0x485193)[_0x53d0('0x7')](_0x19561e);}[_0x53d0('0x9')]({skipNotAttached:_0x387c40=!0x1,toJSON:_0x578d69=!0x1}={}){return this[_0x53d0('0x4')][_0x53d0('0x2')][_0x53d0('0x6')](_0x485193)['getSuggestions']({'skipNotAttached':_0x387c40,'toJSON':_0x578d69});}[_0x53d0('0x8')](_0x2862c8){return this[_0x53d0('0x4')][_0x53d0('0x2')][_0x53d0('0x6')](_0x485193)['getSuggestion'](_0x2862c8);}}
|
package/src/trackchangesdata.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x171d=['editorCreator','TrackChangesDataGetter','end','function','discardAllSuggestions','plugins','pluginName','TrackChangesEditing','trackChangesData.editorCreator','data','TrackChangesData','getDataWithDiscardedSuggestions','getRootsAttributes','push','config','document','editor','rootsAttributes','reduce','div','_adapter','addSuggestionData','trackChangesData','init','model','getUser','set','getFullData','map','constructor','define','result','createElement','track-changes-data-invalid-editor-creator','createDocumentFragment','get','getRootNames','requires','name','addUser','Users'];(function(_0x353f2b,_0x171d91){const _0xcbb22=function(_0xb49e17){while(--_0xb49e17){_0x353f2b['push'](_0x353f2b['shift']());}};_0xcbb22(++_0x171d91);}(_0x171d,0x143));const _0xcbb2=function(_0x353f2b,_0x171d91){_0x353f2b=_0x353f2b-0x0;let _0xcbb22=_0x171d[_0x353f2b];return _0xcbb22;};import{Plugin as _0x3be48e}from'ckeditor5/src/core';import{CKEditorError as _0x1c6261}from'ckeditor5/src/utils';import _0x3b050d from'./trackchangesediting';import{sanitizeEditorConfig as _0x1e38dd}from'ckeditor5-collaboration/src/collaboration-core';const w=['Pagination'];export default class T extends _0x3be48e{static get[_0xcbb2('0x1')](){return[_0x3b050d];}static get[_0xcbb2('0xb')](){return _0xcbb2('0xf');}[_0xcbb2('0x1c')](){const _0x3edc8c=this['editor'];if(_0x3edc8c[_0xcbb2('0x13')][_0xcbb2('0x23')](_0xcbb2('0xd'),_0x5875d0=>{const _0x5781f4=_0x3edc8c[_0xcbb2('0x1d')][_0xcbb2('0x14')][_0xcbb2('0x0')]()['reduce']((_0x442a19,_0x4be345)=>(_0x442a19[_0x4be345]='',_0x442a19),{});return _0x3edc8c[_0xcbb2('0x22')]['create'](_0x5781f4,_0x5875d0);}),_0xcbb2('0x8')!=typeof _0x3edc8c[_0xcbb2('0x13')][_0xcbb2('0x28')]('trackChangesData')[_0xcbb2('0x5')])throw new _0x1c6261(_0xcbb2('0x26'));}['getDataWithAcceptedSuggestions'](_0x33ea3c){return v(this[_0xcbb2('0x15')],!0x0,_0x33ea3c);}[_0xcbb2('0x10')](_0x272781){return v(this[_0xcbb2('0x15')],!0x1,_0x272781);}}class P extends _0x3be48e{static get[_0xcbb2('0xb')](){return _0xcbb2('0x6');}constructor(_0x205f44){super(_0x205f44),this[_0xcbb2('0x24')]=_0xcbb2('0x7');}[_0xcbb2('0x1c')](){this[_0xcbb2('0x15')]['plugins']['get']('CommentsRepository')['_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['editor'][_0xcbb2('0xa')][_0xcbb2('0x28')](_0xcbb2('0xc'))[_0xcbb2('0x19')]=null;}}function D(_0x24b2b8){return void 0x0!==_0x24b2b8['getRootsAttributes'];}async function v(_0x172067,_0x29a093,_0x37935c){const _0x537c2f=_0x1e38dd(_0x172067,w);_0x537c2f[_0xcbb2('0xa')][_0xcbb2('0x12')](_0x3b050d,P),_0x537c2f[_0xcbb2('0x16')]=D(_0x172067)?_0x172067[_0xcbb2('0x11')]():void 0x0;const _0x307286=document[_0xcbb2('0x27')](),_0x2525fe=_0x172067[_0xcbb2('0x13')][_0xcbb2('0x28')](_0xcbb2('0x1b'))[_0xcbb2('0x5')],_0x54566b=await _0x2525fe(_0x537c2f,()=>function(_0x10b9f1){const _0x357f1e=document[_0xcbb2('0x25')](_0xcbb2('0x18'));return _0x10b9f1['appendChild'](_0x357f1e),_0x357f1e;}(_0x307286));!function(_0xb10de1,_0x64afd4){const _0x4bbad5=_0xb10de1['model'][_0xcbb2('0x14')]['getRootNames']()[_0xcbb2('0x17')]((_0x1b0f15,_0x3c1930)=>(_0x1b0f15[_0x3c1930]=_0xb10de1[_0xcbb2('0xe')][_0xcbb2('0x28')]({'rootName':_0x3c1930}),_0x1b0f15),{}),_0x1731f5=_0xb10de1['plugins']['get']('Users')['users'][_0xcbb2('0x21')](_0x325099=>({'id':_0x325099['id'],'name':_0x325099[_0xcbb2('0x2')]})),_0x5db72a=_0xb10de1[_0xcbb2('0xa')][_0xcbb2('0x28')](_0xcbb2('0xc'))['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4aaf66=_0x64afd4[_0xcbb2('0xa')]['get'](_0xcbb2('0x4')),_0x565c85=_0x64afd4[_0xcbb2('0xa')][_0xcbb2('0x28')](_0xcbb2('0xc'));for(const _0x112afe of _0x1731f5)_0x4aaf66[_0xcbb2('0x1e')](_0x112afe['id'])||_0x4aaf66[_0xcbb2('0x3')](_0x112afe);_0x4aaf66['me']||_0x4aaf66['useAnonymousUser']();for(const _0x1a3cc8 of _0x5db72a)_0x565c85[_0xcbb2('0x1a')](_0x1a3cc8);_0x64afd4[_0xcbb2('0xe')][_0xcbb2('0x1f')](_0x4bbad5);}(_0x172067,_0x54566b),_0x54566b['execute'](_0x29a093?'acceptAllSuggestions':_0xcbb2('0x9'));const _0x155a41=D(_0x54566b)?_0x54566b[_0xcbb2('0x20')](_0x37935c):_0x54566b['data']['get'](_0x37935c);return await _0x54566b['destroy'](),_0x155a41;}
|