@ckeditor/ckeditor5-track-changes 39.0.0 → 39.0.1
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 _0x9808=['_model','getRanges','discard','split','head','getItems','reduce','add','toJSON','nodeAfter','getMarkers','getRange','addRange','commentThread','_onDiscard','getMultiRangeId','createdAt','subType','getFirstMarker','onAttributesChange','accept','addMarker','push','get','getFirstRange','onAccept','getContainedElement','next','markers','attributes','decorate','data','author','start','_markerNames','clear','suggestion:','_onAttributesChange','nodeBefore','type','set','onDiscard','map','removeAttribute','isIntersecting','length','_onAccept','isMultiRange','end','hasComments','creator','@external','change','isIntersectingWithRange','isInContent','removeMarker','from','getMarkerNames','authoredAt','setAttribute','previous','removeMarkers'];(function(_0x3cae3e,_0x9808dc){const _0x4ec64f=function(_0x4c17b0){while(--_0x4c17b0){_0x3cae3e['push'](_0x3cae3e['shift']());}};_0x4ec64f(++_0x9808dc);}(_0x9808,0x163));const _0x4ec6=function(_0x3cae3e,_0x9808dc){_0x3cae3e=_0x3cae3e-0x0;let _0x4ec64f=_0x9808[_0x3cae3e];return _0x4ec64f;};import{Element as _0x20afd1}from'ckeditor5/src/engine';import{ObservableMixin as _0x1c9a60,uid as _0x4b2b9d}from'ckeditor5/src/utils';import{cloneDeep as _0x18cef9,isEqual as _0x163eab,set as _0x1c5797,unset as _0x42ca37}from'lodash-es';export default class u extends _0x1c9a60(){constructor(_0x32e0cb,_0xe666){super(),this['id']=_0xe666['id'],this[_0x4ec6('0x38')]=_0xe666[_0x4ec6('0x38')],this[_0x4ec6('0x22')]=_0xe666['subType']||null,this[_0x4ec6('0x31')]=_0xe666[_0x4ec6('0x31')],this[_0x4ec6('0x5')]=_0xe666[_0x4ec6('0x5')]||_0xe666[_0x4ec6('0x31')],this['isExternal']=Boolean(_0xe666['attributes']&&_0xe666[_0x4ec6('0x2e')][_0x4ec6('0x6')]),this[_0x4ec6('0x30')]=null,this[_0x4ec6('0x11')]=_0x32e0cb,this[_0x4ec6('0x1')]=_0xe666[_0x4ec6('0x2a')],this[_0x4ec6('0x1f')]=_0xe666[_0x4ec6('0x3a')],this['_onAttributesChange']=_0xe666[_0x4ec6('0x24')],this['_markerNames']=new Set(),this[_0x4ec6('0x21')]=null,this[_0x4ec6('0x39')](_0x4ec6('0xd'),null),this['set'](_0x4ec6('0x2e'),_0xe666[_0x4ec6('0x2e')]||{}),this['set'](_0x4ec6('0xf'),null),this['set'](_0x4ec6('0x2c'),null),this[_0x4ec6('0x39')](_0x4ec6('0x1e'),null),this[_0x4ec6('0x39')]('_saved',!0x1),this['decorate'](_0x4ec6('0x25')),this[_0x4ec6('0x2f')](_0x4ec6('0x13'));}get[_0x4ec6('0x15')](){let _0x4349c4=this;for(;_0x4349c4[_0x4ec6('0xf')];)_0x4349c4=_0x4349c4[_0x4ec6('0xf')];return _0x4349c4;}get[_0x4ec6('0x4')](){return!!this[_0x4ec6('0x1e')]&&this['commentThread'][_0x4ec6('0x0')]>0x0;}get[_0x4ec6('0x2')](){if(0x0==this[_0x4ec6('0x33')]['size'])return!0x1;return 0x6==Array[_0x4ec6('0xb')](this[_0x4ec6('0x33')])[0x0][_0x4ec6('0x14')](':')['length'];}get[_0x4ec6('0x9')](){return null!==this[_0x4ec6('0x23')]();}['addMarkerName'](_0x197dce){this['_markerNames'][_0x4ec6('0x18')](_0x197dce);}['getMarkerNames'](){return Array[_0x4ec6('0xb')](this[_0x4ec6('0x33')]);}[_0x4ec6('0x1b')](){return this[_0x4ec6('0xc')]()[_0x4ec6('0x3b')](_0x27f148=>this[_0x4ec6('0x11')][_0x4ec6('0x2d')][_0x4ec6('0x28')](_0x27f148))['filter'](_0x46be26=>_0x46be26);}[_0x4ec6('0x23')](){return this[_0x4ec6('0x1b')]()[0x0]||null;}[_0x4ec6('0x10')](){this[_0x4ec6('0x11')]['change'](_0x17d2c3=>{for(const _0x76b15 of this[_0x4ec6('0x1b')]())_0x17d2c3[_0x4ec6('0xa')](_0x76b15);}),this['_markerNames'][_0x4ec6('0x34')]();}[_0x4ec6('0xa')](_0x24707d){this[_0x4ec6('0x11')][_0x4ec6('0x7')](_0x4c5a1a=>{_0x4c5a1a[_0x4ec6('0xa')](_0x24707d);}),this[_0x4ec6('0x33')]['delete'](_0x24707d);}[_0x4ec6('0x1d')](_0x142056){const _0x17ea84=_0x4ec6('0x35')+this[_0x4ec6('0x38')]+':'+this[_0x4ec6('0x22')]+':'+this['id']+':'+this[_0x4ec6('0x5')]['id']+':'+u[_0x4ec6('0x20')]();this['addMarkerName'](_0x17ea84),this[_0x4ec6('0x11')][_0x4ec6('0x7')](_0xd7de07=>{_0xd7de07[_0x4ec6('0x26')](_0x17ea84,{'range':_0x142056,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4ec6('0x8')](_0x43660c){for(const _0xc51c94 of this[_0x4ec6('0x12')]())if(_0xc51c94[_0x4ec6('0x3d')](_0x43660c))return!0x0;return!0x1;}[_0x4ec6('0x12')](){return this[_0x4ec6('0x1b')]()[_0x4ec6('0x3b')](_0x53412e=>_0x53412e[_0x4ec6('0x1c')]());}[_0x4ec6('0x16')](){return this[_0x4ec6('0x12')]()[_0x4ec6('0x17')]((_0x3fdbac,_0x48058b)=>[..._0x3fdbac,..._0x48058b['getItems']()],[]);}[_0x4ec6('0x29')](){var _0x25247b;return(null===(_0x25247b=this[_0x4ec6('0x23')]())||void 0x0===_0x25247b?void 0x0:_0x25247b[_0x4ec6('0x1c')]())||null;}[_0x4ec6('0x2b')](){const _0x872b8f=this[_0x4ec6('0x12')]();if(0x1!=_0x872b8f[_0x4ec6('0x0')])return null;const _0x5b2052=_0x872b8f[0x0],_0x42205e=_0x5b2052[_0x4ec6('0x32')][_0x4ec6('0x1a')],_0x4a3e22=_0x5b2052[_0x4ec6('0x3')][_0x4ec6('0x37')];return _0x42205e instanceof _0x20afd1?_0x42205e!=_0x4a3e22?null:_0x42205e:null;}[_0x4ec6('0x25')](){this[_0x4ec6('0x1')](this['getRanges'](),this['data'],this['attributes']),this[_0x4ec6('0x10')]();}[_0x4ec6('0x13')](){this['_onDiscard'](this[_0x4ec6('0x12')](),this['data'],this[_0x4ec6('0x2e')]),this[_0x4ec6('0x10')]();}['getAllAdjacentSuggestions'](){const _0x39afee=[];let _0x42c74f=this['head'];for(;_0x42c74f;)_0x39afee[_0x4ec6('0x27')](_0x42c74f),_0x42c74f=_0x42c74f[_0x4ec6('0x2c')];return _0x39afee;}[_0x4ec6('0xe')](_0x300ec6,_0x57e64f){const _0xae42ba=_0x18cef9(this[_0x4ec6('0x2e')]);_0x1c5797(_0xae42ba,_0x300ec6,_0x57e64f),_0x163eab(_0xae42ba,this['attributes'])||(this[_0x4ec6('0x2e')]=_0xae42ba,this['_onAttributesChange'](_0xae42ba));}[_0x4ec6('0x3c')](_0x4b1eb9){const _0x4f54a6=_0x18cef9(this['attributes']);_0x42ca37(_0x4f54a6,_0x4b1eb9),_0x163eab(_0x4f54a6,this[_0x4ec6('0x2e')])||(this[_0x4ec6('0x2e')]=_0x4f54a6,this[_0x4ec6('0x36')](this[_0x4ec6('0x2e')]));}[_0x4ec6('0x19')](){return{'id':this['id'],'type':this[_0x4ec6('0x22')]?this[_0x4ec6('0x38')]+':'+this[_0x4ec6('0x22')]:this['type'],'authorId':this['creator']['id'],'createdAt':this[_0x4ec6('0x21')],'hasComments':this[_0x4ec6('0x4')],'data':this[_0x4ec6('0x30')],'attributes':this['attributes']};}static[_0x4ec6('0x20')](){return _0x4b2b9d()['substr'](0x1,0x5);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a6f=['getDescriptions','_itemLabels','start','match','Container','*Split:*\x20%0','registerDescriptionCallback','isObject','label','$1\x20$2','add','registerElementLabel','getWalker','isEmpty','isInContent','removeContainer','checkChild','end','data','removeEmptyContainer','*Remove:*\x20%0','*Insert:*\x20%0','addContainer','isEqual','function','removeObject','replace','EmptyContainer','skip','elementEnd','quantity','_resolveDescriptionItems','_customCallbacks','remove','indexOf','element','$text','deletion','getItemLabel','ELEMENT_SPACE','nextSibling','item','type','getFirstRange','name','addEmptyContainer','*Merge:*\x20%0','_itemLabelsCallbacks','_schema','pop','Object','normal','text','insertion','addObject','length','push','softBreak','elementStart'];(function(_0x251928,_0x2a6f21){const _0x485ff4=function(_0x24000a){while(--_0x24000a){_0x251928['push'](_0x251928['shift']());}};_0x485ff4(++_0x2a6f21);}(_0x2a6f,0xff));const _0x485f=function(_0x251928,_0x2a6f21){_0x251928=_0x251928-0x0;let _0x485ff4=_0x2a6f[_0x251928];return _0x485ff4;};import{getTranslation as _0x3b975c}from'./utils/common-translations';import{priorities as _0x5195fb,insertToPriorityArray as _0x28a632}from'ckeditor5/src/utils';export default class m{constructor(_0x5d7199,_0x247a9b){this['_customCallbacks']=[],this[_0x485f('0x29')]=new Map(),this[_0x485f('0x1c')]=[],this['_schema']=_0x5d7199,this['_locale']=_0x247a9b;}[_0x485f('0x28')](_0x2ac4bb){const _0x1f24f0=[];for(let _0x2d6688=0x0;_0x2d6688<_0x2ac4bb[_0x485f('0x24')];_0x2d6688++){const _0x379c2e=_0x2ac4bb[_0x2d6688];if(!_0x379c2e[_0x485f('0x36')])continue;let _0x17af96=!0x1;for(const _0x81e8bf of this['_customCallbacks']){const _0x30dcd8=_0x81e8bf(_0x379c2e);if(_0x30dcd8){_0x485f('0x17')in _0x30dcd8&&_0x1f24f0[_0x485f('0x25')](_0x30dcd8),_0x17af96=!0x0;break;}}if(!_0x17af96){this['_addDescriptionItems'](_0x1f24f0,_0x379c2e);const _0x47b28f=_0x2ac4bb[_0x2d6688+0x1];if(_0x47b28f&&!_0x379c2e[_0x485f('0x18')]()[_0x485f('0x39')][_0x485f('0x4')](_0x47b28f['getFirstRange']()[_0x485f('0x2a')])){const _0x1a8006=_0x1f24f0[_0x1f24f0[_0x485f('0x24')]-0x1],_0x3208b1='insertion'==_0x379c2e[_0x485f('0x17')]?_0x485f('0x32'):_0x485f('0xe');_0x1a8006&&'text'==_0x1a8006[_0x485f('0x17')]&&(_0x1a8006[_0x3208b1]+='\x0a');}}}return this[_0x485f('0xc')](_0x1f24f0);}[_0x485f('0x2e')](_0x2fb47b){this[_0x485f('0xd')]['push'](_0x2fb47b);}[_0x485f('0x33')](_0x4a02ec,_0x1b946b,_0x24e22b=_0x5195fb[_0x485f('0x20')]){_0x485f('0x5')==typeof _0x4a02ec?_0x28a632(this[_0x485f('0x1c')],{'matchingCallback':_0x4a02ec,'label':_0x1b946b,'priority':_0x24e22b}):this[_0x485f('0x29')]['set'](_0x4a02ec,_0x1b946b);}[_0x485f('0x13')](_0x5b836e,_0x302c98=0x1){let _0x164daf;for(const _0x3ae36c of this[_0x485f('0x1c')])if(_0x3ae36c['matchingCallback'](_0x5b836e)){_0x164daf=_0x3ae36c[_0x485f('0x30')];break;}return _0x164daf||(_0x164daf=this['_itemLabels']['get'](_0x5b836e[_0x485f('0x19')])),_0x164daf?_0x164daf(_0x302c98):0x1!==_0x302c98?_0x302c98+'\x20'+_0x5b836e['name']+'s':''+_0x5b836e[_0x485f('0x19')];}['_addDescriptionItems'](_0x1f6cbd,_0x430b9f){const _0x1d33c1=_0x430b9f['getFirstRange']()[_0x485f('0x34')](),_0x53ebe5=_0x485f('0x22')==_0x430b9f[_0x485f('0x17')]?_0x485f('0x32'):_0x485f('0xe');for(const _0x27c5ae of _0x1d33c1){const _0xd92007=_0x27c5ae[_0x485f('0x16')],_0x1ce816=_0x1f6cbd[_0x1f6cbd['length']-0x1];if(_0xd92007['is']('$textProxy'))_0x1ce816&&_0x1ce816[_0x485f('0x17')][_0x485f('0xf')](_0x485f('0x2c'))>-0x1&&_0x1f6cbd['pop'](),_0x1ce816&&'text'==_0x1ce816[_0x485f('0x17')]?_0x1ce816[_0x53ebe5]+=_0xd92007[_0x485f('0x3a')]:_0x1f6cbd[_0x485f('0x25')]({'type':_0x485f('0x21'),'add':_0x485f('0x32')==_0x53ebe5?_0xd92007['data']:'','remove':'remove'==_0x53ebe5?_0xd92007[_0x485f('0x3a')]:''});else{if(this[_0x485f('0x1d')][_0x485f('0x2f')](_0xd92007)){const _0x4a2506=_0xd92007;if(_0x1ce816&&_0x1ce816['type'][_0x485f('0xf')](_0x485f('0x2c'))>-0x1&&_0x1f6cbd[_0x485f('0x1e')](),_0x485f('0xa')==_0x27c5ae[_0x485f('0x17')])continue;_0x1ce816&&_0x1ce816['type']==_0x53ebe5+'Object'&&_0x1ce816[_0x485f('0x10')][_0x485f('0x19')]==_0x4a2506[_0x485f('0x19')]?_0x1ce816['quantity']++:_0x1f6cbd[_0x485f('0x25')]({'type':_0x53ebe5+_0x485f('0x1f'),'element':_0x4a2506,'quantity':0x1}),_0x1d33c1[_0x485f('0x9')](_0x5a8336=>!(_0x485f('0xa')==_0x5a8336['type']&&_0x5a8336[_0x485f('0x16')]==_0xd92007));}else{if(this[_0x485f('0x1d')][_0x485f('0x38')](_0xd92007,_0x485f('0x11'))||_0xd92007['is'](_0x485f('0x10'),_0x485f('0x26'))){const _0x41ec2a=_0xd92007;if(_0x485f('0x32')==_0x53ebe5&&_0x485f('0x27')==_0x27c5ae[_0x485f('0x17')]||_0x485f('0xe')==_0x53ebe5&&_0x485f('0xa')==_0x27c5ae[_0x485f('0x17')])continue;if(_0x1ce816&&-0x1==_0x1ce816[_0x485f('0x17')][_0x485f('0xf')]('Container')){_0x485f('0x21')==_0x1ce816[_0x485f('0x17')]&&(_0x1ce816[_0x53ebe5]+='\x0a');continue;}let _0x17cb12;if(_0x17cb12=_0x485f('0x32')==_0x53ebe5?_0x41ec2a[_0x485f('0x15')]&&!this[_0x485f('0x1d')][_0x485f('0x2f')](_0x41ec2a[_0x485f('0x15')])?_0x41ec2a['nextSibling']:null:_0x41ec2a['previousSibling']&&!this[_0x485f('0x1d')][_0x485f('0x2f')](_0x41ec2a['previousSibling'])?_0x41ec2a['previousSibling']:null,_0x41ec2a[_0x485f('0x35')]||_0x17cb12&&_0x17cb12[_0x485f('0x35')]){const _0x3895af=_0x17cb12&&_0x17cb12[_0x485f('0x35')]?_0x17cb12:_0x41ec2a;_0x1ce816&&_0x1ce816[_0x485f('0x17')]==_0x53ebe5+'EmptyContainer'&&_0x1ce816['element']['name']==_0x3895af[_0x485f('0x19')]?_0x1ce816[_0x485f('0xb')]++:_0x1f6cbd[_0x485f('0x25')]({'type':_0x53ebe5+_0x485f('0x8'),'element':_0x3895af,'quantity':0x1});}else _0x1f6cbd[_0x485f('0x25')]({'type':_0x53ebe5+_0x485f('0x2c'),'element':_0x41ec2a});}}}}}[_0x485f('0xc')](_0x223d43){const _0xc0c7b6=this['_locale'],_0x5b2f12=[];for(const _0x5cf436 of _0x223d43){switch(_0x5cf436['type']){case _0x485f('0x21'):if(_0x5cf436[_0x485f('0x32')]=_0x5cf436[_0x485f('0x32')]['replace'](/(\S)\u000A+(\S)/g,_0x485f('0x31'))[_0x485f('0x7')](/\u000A/g,''),_0x5cf436[_0x485f('0xe')]=_0x5cf436[_0x485f('0xe')][_0x485f('0x7')](/(\S)\u000A+(\S)/g,_0x485f('0x31'))[_0x485f('0x7')](/\u000A/g,''),''!=_0x5cf436['add']&&''!=_0x5cf436[_0x485f('0xe')]){_0x5b2f12[_0x485f('0x25')]({'type':_0x485f('0x7'),'content':_0x3b975c(_0xc0c7b6,'REPLACE_TEXT',['\x22'+_0x5cf436[_0x485f('0xe')]+'\x22','\x22'+_0x5cf436['add']+'\x22'])});continue;}if(null!=_0x5cf436[_0x485f('0x32')][_0x485f('0x2b')](/^ +$/)){_0x5b2f12['push']({'type':'insertion','content':_0x3b975c(_0xc0c7b6,_0x485f('0x2'),_0x3b975c(_0xc0c7b6,_0x485f('0x14'),_0x5cf436[_0x485f('0x32')][_0x485f('0x24')]))});continue;}if(null!=_0x5cf436[_0x485f('0xe')]['match'](/^ +$/)){_0x5b2f12['push']({'type':_0x485f('0x12'),'content':_0x3b975c(_0xc0c7b6,_0x485f('0x1'),_0x3b975c(_0xc0c7b6,_0x485f('0x14'),_0x5cf436[_0x485f('0xe')][_0x485f('0x24')]))});continue;}if(''!=_0x5cf436[_0x485f('0x32')]){_0x5b2f12[_0x485f('0x25')]({'type':_0x485f('0x22'),'content':_0x3b975c(_0xc0c7b6,_0x485f('0x2'),'\x22'+_0x5cf436['add']+'\x22')});continue;}_0x5b2f12[_0x485f('0x25')]({'type':_0x485f('0x12'),'content':_0x3b975c(_0xc0c7b6,_0x485f('0x1'),'\x22'+_0x5cf436[_0x485f('0xe')]+'\x22')});continue;case _0x485f('0x1a'):case _0x485f('0x23'):_0x5b2f12['push']({'type':_0x485f('0x22'),'content':_0x3b975c(_0xc0c7b6,_0x485f('0x2'),this[_0x485f('0x13')](_0x5cf436[_0x485f('0x10')],_0x5cf436[_0x485f('0xb')]))});continue;case _0x485f('0x0'):case _0x485f('0x6'):_0x5b2f12['push']({'type':_0x485f('0x12'),'content':_0x3b975c(_0xc0c7b6,_0x485f('0x1'),this[_0x485f('0x13')](_0x5cf436[_0x485f('0x10')],_0x5cf436[_0x485f('0xb')]))});continue;case _0x485f('0x3'):_0x5b2f12[_0x485f('0x25')]({'type':_0x485f('0x22'),'content':_0x3b975c(_0xc0c7b6,_0x485f('0x2d'),this['getItemLabel'](_0x5cf436[_0x485f('0x10')],_0x5cf436[_0x485f('0xb')]))});continue;case _0x485f('0x37'):_0x5b2f12['push']({'type':_0x485f('0x12'),'content':_0x3b975c(_0xc0c7b6,_0x485f('0x1b'),this[_0x485f('0x13')](_0x5cf436[_0x485f('0x10')],_0x5cf436['quantity']))});continue;}_0x5b2f12[_0x485f('0x25')](_0x5cf436);}return _0x5b2f12;}}
|
package/src/trackchanges.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4b97=['get','pluginName','editor','adapter','addSuggestion','getSuggestions','getSuggestion','plugins','Comments'];(function(_0x486aeb,_0x4b975e){var _0x173b99=function(_0x57374c){while(--_0x57374c){_0x486aeb['push'](_0x486aeb['shift']());}};_0x173b99(++_0x4b975e);}(_0x4b97,0x194));var _0x173b=function(_0x486aeb,_0x4b975e){_0x486aeb=_0x486aeb-0x0;var _0x173b99=_0x4b97[_0x486aeb];return _0x173b99;};import{Plugin as _0x128501}from'ckeditor5/src/core';import _0x386ba3 from'./trackchangesui';import _0x5e1272 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x128501{static get['requires'](){return[_0x5e1272,_0x386ba3,_0x173b('0x0')];}static get[_0x173b('0x2')](){return'TrackChanges';}set['adapter'](_0x4825aa){this[_0x173b('0x3')]['plugins']['get'](_0x5e1272)[_0x173b('0x4')]=_0x4825aa;}get[_0x173b('0x4')](){return this['editor']['plugins'][_0x173b('0x1')](_0x5e1272)['adapter'];}[_0x173b('0x5')](_0xe7c402){return this[_0x173b('0x3')]['plugins'][_0x173b('0x1')](_0x5e1272)['addSuggestionData'](_0xe7c402);}[_0x173b('0x6')]({skipNotAttached:_0x5b6bbf=!0x1,toJSON:_0x5a03ea=!0x1}={}){return this[_0x173b('0x3')][_0x173b('0x8')][_0x173b('0x1')](_0x5e1272)[_0x173b('0x6')]({'skipNotAttached':_0x5b6bbf,'toJSON':_0x5a03ea});}['getSuggestion'](_0x4ca603){return this['editor'][_0x173b('0x8')][_0x173b('0x1')](_0x5e1272)[_0x173b('0x7')](_0x4ca603);}}
|
package/src/trackchangesdata.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2fff=['discardAllSuggestions','init','config','getRootNames','function','appendChild','addSuggestionData','model','getDataWithAcceptedSuggestions','users','Users','TrackChangesData','end','execute','track-changes-data-invalid-editor-creator','div','editorCreator','getSuggestions','editor','CommentsRepository','_adapter','getRootsAttributes','result','pluginName','name','define','data','createElement','map','trackChangesData.editorCreator','acceptAllSuggestions','get','TrackChangesEditing','reduce','createDocumentFragment','rootsAttributes','plugins','document','trackChangesData','getDataWithDiscardedSuggestions','Pagination','addUser','constructor','useAnonymousUser','create'];(function(_0x947522,_0x2fff63){const _0x5f0e7a=function(_0x1353dd){while(--_0x1353dd){_0x947522['push'](_0x947522['shift']());}};_0x5f0e7a(++_0x2fff63);}(_0x2fff,0x8a));const _0x5f0e=function(_0x947522,_0x2fff63){_0x947522=_0x947522-0x0;let _0x5f0e7a=_0x2fff[_0x947522];return _0x5f0e7a;};import{Plugin as _0x8c753b}from'ckeditor5/src/core';import{CKEditorError as _0x31772c}from'ckeditor5/src/utils';import _0x195396 from'./trackchangesediting';import{sanitizeEditorConfig as _0x4601b6}from'ckeditor5-collaboration/src/collaboration-core';const w=[_0x5f0e('0x25')];export default class T extends _0x8c753b{static get['requires'](){return[_0x195396];}static get[_0x5f0e('0x14')](){return _0x5f0e('0x8');}[_0x5f0e('0x2b')](){const _0x1ed47b=this[_0x5f0e('0xf')];if(_0x1ed47b[_0x5f0e('0x2c')][_0x5f0e('0x16')](_0x5f0e('0x1a'),_0x88ea4c=>{const _0x112004=_0x1ed47b[_0x5f0e('0x4')]['document']['getRootNames']()[_0x5f0e('0x1e')]((_0x237103,_0x50e9fa)=>(_0x237103[_0x50e9fa]='',_0x237103),{});return _0x1ed47b[_0x5f0e('0x27')][_0x5f0e('0x29')](_0x112004,_0x88ea4c);}),_0x5f0e('0x1')!=typeof _0x1ed47b[_0x5f0e('0x2c')][_0x5f0e('0x1c')]('trackChangesData')[_0x5f0e('0xd')])throw new _0x31772c(_0x5f0e('0xb'));}[_0x5f0e('0x5')](_0x5cc0e3){return v(this[_0x5f0e('0xf')],!0x0,_0x5cc0e3);}[_0x5f0e('0x24')](_0x5146a1){return v(this['editor'],!0x1,_0x5146a1);}}class P extends _0x8c753b{static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x4bef33){super(_0x4bef33),this[_0x5f0e('0x13')]=_0x5f0e('0x9');}[_0x5f0e('0x2b')](){this[_0x5f0e('0xf')]['plugins'][_0x5f0e('0x1c')](_0x5f0e('0x10'))[_0x5f0e('0x11')]={'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[_0x5f0e('0xf')]['plugins'][_0x5f0e('0x1c')](_0x5f0e('0x1d'))[_0x5f0e('0x11')]=null;}}function D(_0xc7eb02){return void 0x0!==_0xc7eb02[_0x5f0e('0x12')];}async function v(_0x1e2659,_0x212da0,_0x367038){const _0x359d8a=_0x4601b6(_0x1e2659,w);_0x359d8a['plugins']['push'](_0x195396,P),_0x359d8a[_0x5f0e('0x20')]=D(_0x1e2659)?_0x1e2659[_0x5f0e('0x12')]():void 0x0;const _0x21cfa9=document[_0x5f0e('0x1f')](),_0x103820=_0x1e2659[_0x5f0e('0x2c')][_0x5f0e('0x1c')](_0x5f0e('0x23'))['editorCreator'],_0x1fe448=await _0x103820(_0x359d8a,()=>function(_0x20d495){const _0x10a9e2=document[_0x5f0e('0x18')](_0x5f0e('0xc'));return _0x20d495[_0x5f0e('0x2')](_0x10a9e2),_0x10a9e2;}(_0x21cfa9));!function(_0x4d2f2a,_0x54382a){const _0x553bc3=_0x4d2f2a['model'][_0x5f0e('0x22')][_0x5f0e('0x0')]()[_0x5f0e('0x1e')]((_0x3b0bc2,_0x349b70)=>(_0x3b0bc2[_0x349b70]=_0x4d2f2a[_0x5f0e('0x17')][_0x5f0e('0x1c')]({'rootName':_0x349b70}),_0x3b0bc2),{}),_0x106f79=_0x4d2f2a[_0x5f0e('0x21')][_0x5f0e('0x1c')](_0x5f0e('0x7'))[_0x5f0e('0x6')][_0x5f0e('0x19')](_0x2f50bd=>({'id':_0x2f50bd['id'],'name':_0x2f50bd[_0x5f0e('0x15')]})),_0x359907=_0x4d2f2a['plugins'][_0x5f0e('0x1c')]('TrackChangesEditing')[_0x5f0e('0xe')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x45126c=_0x54382a[_0x5f0e('0x21')][_0x5f0e('0x1c')](_0x5f0e('0x7')),_0x1c428e=_0x54382a['plugins']['get'](_0x5f0e('0x1d'));for(const _0x51f7bd of _0x106f79)_0x45126c['getUser'](_0x51f7bd['id'])||_0x45126c[_0x5f0e('0x26')](_0x51f7bd);_0x45126c['me']||_0x45126c[_0x5f0e('0x28')]();for(const _0x47d6d4 of _0x359907)_0x1c428e[_0x5f0e('0x3')](_0x47d6d4);_0x54382a[_0x5f0e('0x17')]['set'](_0x553bc3);}(_0x1e2659,_0x1fe448),_0x1fe448[_0x5f0e('0xa')](_0x212da0?_0x5f0e('0x1b'):_0x5f0e('0x2a'));const _0x5b6e93=D(_0x1fe448)?_0x1fe448['getFullData'](_0x367038):_0x1fe448[_0x5f0e('0x17')][_0x5f0e('0x1c')](_0x367038);return await _0x1fe448['destroy'](),_0x5b6e93;}
|