@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230828.0 → 0.0.0-nightly-20230829.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 _0x32c7=['clear','createdAt','_onAccept','discard','getAllAdjacentSuggestions','isIntersectingWithRange','delete','addMarkerName','head','creator','toJSON','removeMarkers','onDiscard','getFirstRange','removeMarker','add','getFirstMarker','getRanges','isInContent','nodeAfter','previous','get','getItems','markers','_markerNames','end','onAccept','getContainedElement','attributes','_onAttributesChange','_onDiscard','filter','data','getMarkers','type','substr','set','getMarkerNames','nodeBefore','_saved','accept','change','length','getRange','isMultiRange','suggestion:','map','hasComments','setAttribute','commentThread','subType','@external','size','onAttributesChange','_model','author','reduce'];(function(_0x2a5f48,_0x32c795){const _0xfa85ea=function(_0x1011c7){while(--_0x1011c7){_0x2a5f48['push'](_0x2a5f48['shift']());}};_0xfa85ea(++_0x32c795);}(_0x32c7,0x116));const _0xfa85=function(_0x2a5f48,_0x32c795){_0x2a5f48=_0x2a5f48-0x0;let _0xfa85ea=_0x32c7[_0x2a5f48];return _0xfa85ea;};import{Element as _0x6db1c2}from'ckeditor5/src/engine';import{ObservableMixin as _0x47d7f3,uid as _0x3d02ca}from'ckeditor5/src/utils';import{cloneDeep as _0x36e126,isEqual as _0xc3a162,set as _0x465da5,unset as _0x2757a3}from'lodash-es';export default class u extends _0x47d7f3(){constructor(_0x4d4a4c,_0x22d28a){super(),this['id']=_0x22d28a['id'],this['type']=_0x22d28a[_0xfa85('0x29')],this[_0xfa85('0x0')]=_0x22d28a['subType']||null,this['author']=_0x22d28a[_0xfa85('0x5')],this[_0xfa85('0x10')]=_0x22d28a[_0xfa85('0x10')]||_0x22d28a[_0xfa85('0x5')],this['isExternal']=Boolean(_0x22d28a['attributes']&&_0x22d28a[_0xfa85('0x23')][_0xfa85('0x1')]),this[_0xfa85('0x27')]=null,this['_model']=_0x4d4a4c,this[_0xfa85('0x9')]=_0x22d28a[_0xfa85('0x21')],this[_0xfa85('0x25')]=_0x22d28a[_0xfa85('0x13')],this['_onAttributesChange']=_0x22d28a[_0xfa85('0x3')],this[_0xfa85('0x1f')]=new Set(),this[_0xfa85('0x8')]=null,this['set']('authoredAt',null),this['set'](_0xfa85('0x23'),_0x22d28a[_0xfa85('0x23')]||{}),this[_0xfa85('0x2b')](_0xfa85('0x1b'),null),this[_0xfa85('0x2b')]('next',null),this[_0xfa85('0x2b')](_0xfa85('0x38'),null),this[_0xfa85('0x2b')](_0xfa85('0x2e'),!0x1),this['decorate'](_0xfa85('0x2f')),this['decorate'](_0xfa85('0xa'));}get[_0xfa85('0xf')](){let _0x34ef15=this;for(;_0x34ef15[_0xfa85('0x1b')];)_0x34ef15=_0x34ef15[_0xfa85('0x1b')];return _0x34ef15;}get['hasComments'](){return!!this['commentThread']&&this[_0xfa85('0x38')][_0xfa85('0x31')]>0x0;}get[_0xfa85('0x33')](){if(0x0==this[_0xfa85('0x1f')][_0xfa85('0x2')])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')[_0xfa85('0x31')];}get[_0xfa85('0x19')](){return null!==this[_0xfa85('0x17')]();}[_0xfa85('0xe')](_0x11cde7){this[_0xfa85('0x1f')][_0xfa85('0x16')](_0x11cde7);}[_0xfa85('0x2c')](){return Array['from'](this[_0xfa85('0x1f')]);}['getMarkers'](){return this[_0xfa85('0x2c')]()[_0xfa85('0x35')](_0x3c9c51=>this[_0xfa85('0x4')][_0xfa85('0x1e')][_0xfa85('0x1c')](_0x3c9c51))[_0xfa85('0x26')](_0xdf1487=>_0xdf1487);}[_0xfa85('0x17')](){return this[_0xfa85('0x28')]()[0x0]||null;}[_0xfa85('0x12')](){this[_0xfa85('0x4')]['change'](_0x3d88d4=>{for(const _0xc4e8c5 of this[_0xfa85('0x28')]())_0x3d88d4[_0xfa85('0x15')](_0xc4e8c5);}),this[_0xfa85('0x1f')][_0xfa85('0x7')]();}[_0xfa85('0x15')](_0x5671b2){this[_0xfa85('0x4')][_0xfa85('0x30')](_0x50f5ca=>{_0x50f5ca[_0xfa85('0x15')](_0x5671b2);}),this[_0xfa85('0x1f')][_0xfa85('0xd')](_0x5671b2);}['addRange'](_0x435f85){const _0x38da3a=_0xfa85('0x34')+this[_0xfa85('0x29')]+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this[_0xfa85('0xe')](_0x38da3a),this[_0xfa85('0x4')]['change'](_0x3f47ad=>{_0x3f47ad['addMarker'](_0x38da3a,{'range':_0x435f85,'usingOperation':!0x0,'affectsData':!0x0});});}[_0xfa85('0xc')](_0x3f4d5c){for(const _0x1e363d of this['getRanges']())if(_0x1e363d['isIntersecting'](_0x3f4d5c))return!0x0;return!0x1;}[_0xfa85('0x18')](){return this[_0xfa85('0x28')]()['map'](_0x552540=>_0x552540['getRange']());}[_0xfa85('0x1d')](){return this[_0xfa85('0x18')]()[_0xfa85('0x6')]((_0x364e02,_0xff18bc)=>[..._0x364e02,..._0xff18bc['getItems']()],[]);}[_0xfa85('0x14')](){var _0x5d8e27;return(null===(_0x5d8e27=this['getFirstMarker']())||void 0x0===_0x5d8e27?void 0x0:_0x5d8e27[_0xfa85('0x32')]())||null;}[_0xfa85('0x22')](){const _0x21bbec=this['getRanges']();if(0x1!=_0x21bbec['length'])return null;const _0x255958=_0x21bbec[0x0],_0x28e485=_0x255958['start'][_0xfa85('0x1a')],_0x375f1b=_0x255958[_0xfa85('0x20')][_0xfa85('0x2d')];return _0x28e485 instanceof _0x6db1c2?_0x28e485!=_0x375f1b?null:_0x28e485:null;}[_0xfa85('0x2f')](){this[_0xfa85('0x9')](this['getRanges'](),this['data'],this[_0xfa85('0x23')]),this[_0xfa85('0x12')]();}[_0xfa85('0xa')](){this[_0xfa85('0x25')](this[_0xfa85('0x18')](),this['data'],this[_0xfa85('0x23')]),this['removeMarkers']();}[_0xfa85('0xb')](){const _0x114f54=[];let _0x2698ed=this[_0xfa85('0xf')];for(;_0x2698ed;)_0x114f54['push'](_0x2698ed),_0x2698ed=_0x2698ed['next'];return _0x114f54;}[_0xfa85('0x37')](_0x425ea4,_0x53a6aa){const _0x4b2cc1=_0x36e126(this[_0xfa85('0x23')]);_0x465da5(_0x4b2cc1,_0x425ea4,_0x53a6aa),_0xc3a162(_0x4b2cc1,this[_0xfa85('0x23')])||(this[_0xfa85('0x23')]=_0x4b2cc1,this[_0xfa85('0x24')](_0x4b2cc1));}['removeAttribute'](_0xdaa2bb){const _0x187a3d=_0x36e126(this[_0xfa85('0x23')]);_0x2757a3(_0x187a3d,_0xdaa2bb),_0xc3a162(_0x187a3d,this[_0xfa85('0x23')])||(this[_0xfa85('0x23')]=_0x187a3d,this['_onAttributesChange'](this[_0xfa85('0x23')]));}[_0xfa85('0x11')](){return{'id':this['id'],'type':this[_0xfa85('0x0')]?this[_0xfa85('0x29')]+':'+this[_0xfa85('0x0')]:this[_0xfa85('0x29')],'authorId':this['creator']['id'],'createdAt':this[_0xfa85('0x8')],'hasComments':this[_0xfa85('0x36')],'data':this[_0xfa85('0x27')],'attributes':this[_0xfa85('0x23')]};}static['getMultiRangeId'](){return _0x3d02ca()[_0xfa85('0x2a')](0x1,0x5);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5ed9=['REPLACE_TEXT','_itemLabels','$1\x20$2','Object','Container','name','type','remove','_resolveDescriptionItems','registerElementLabel','elementStart','isEqual','indexOf','softBreak','text','getItemLabel','push','skip','_customCallbacks','pop','normal','addEmptyContainer','getFirstRange','_locale','insertion','removeEmptyContainer','_schema','add','nextSibling','match','label','addObject','ELEMENT_SPACE','_addDescriptionItems','previousSibling','replace','*Remove:*\x20%0','item','*Insert:*\x20%0','set','quantity','addContainer','*Merge:*\x20%0','data','removeContainer','*Split:*\x20%0','removeObject','isEmpty','checkChild','$textProxy','deletion','element','EmptyContainer','get','_itemLabelsCallbacks','isObject','elementEnd','length'];(function(_0x2e73d8,_0x5ed9ba){const _0x23f6a8=function(_0x383c92){while(--_0x383c92){_0x2e73d8['push'](_0x2e73d8['shift']());}};_0x23f6a8(++_0x5ed9ba);}(_0x5ed9,0x127));const _0x23f6=function(_0x2e73d8,_0x5ed9ba){_0x2e73d8=_0x2e73d8-0x0;let _0x23f6a8=_0x5ed9[_0x2e73d8];return _0x23f6a8;};import{getTranslation as _0x53881e}from'./utils/common-translations';import{priorities as _0x1795e4,insertToPriorityArray as _0x32d43f}from'ckeditor5/src/utils';export default class m{constructor(_0x6887fb,_0x3fcee){this[_0x23f6('0xd')]=[],this[_0x23f6('0x36')]=new Map(),this[_0x23f6('0x31')]=[],this['_schema']=_0x6887fb,this[_0x23f6('0x12')]=_0x3fcee;}['getDescriptions'](_0x4ef510){const _0x2f02eb=[];for(let _0x2b6522=0x0;_0x2b6522<_0x4ef510[_0x23f6('0x34')];_0x2b6522++){const _0x524188=_0x4ef510[_0x2b6522];if(!_0x524188['isInContent'])continue;let _0x1b16b3=!0x1;for(const _0x2b2754 of this[_0x23f6('0xd')]){const _0x35005b=_0x2b2754(_0x524188);if(_0x35005b){'type'in _0x35005b&&_0x2f02eb[_0x23f6('0xb')](_0x35005b),_0x1b16b3=!0x0;break;}}if(!_0x1b16b3){this['_addDescriptionItems'](_0x2f02eb,_0x524188);const _0x3b809a=_0x4ef510[_0x2b6522+0x1];if(_0x3b809a&&!_0x524188[_0x23f6('0x11')]()['end'][_0x23f6('0x6')](_0x3b809a[_0x23f6('0x11')]()['start'])){const _0x37db6e=_0x2f02eb[_0x2f02eb[_0x23f6('0x34')]-0x1],_0x466052=_0x23f6('0x13')==_0x524188[_0x23f6('0x1')]?'add':_0x23f6('0x2');_0x37db6e&&'text'==_0x37db6e[_0x23f6('0x1')]&&(_0x37db6e[_0x466052]+='\x0a');}}}return this[_0x23f6('0x3')](_0x2f02eb);}['registerDescriptionCallback'](_0x2cbea2){this[_0x23f6('0xd')][_0x23f6('0xb')](_0x2cbea2);}[_0x23f6('0x4')](_0x23ca00,_0x3b2d35,_0x15b0b6=_0x1795e4[_0x23f6('0xf')]){'function'==typeof _0x23ca00?_0x32d43f(this[_0x23f6('0x31')],{'matchingCallback':_0x23ca00,'label':_0x3b2d35,'priority':_0x15b0b6}):this[_0x23f6('0x36')][_0x23f6('0x22')](_0x23ca00,_0x3b2d35);}['getItemLabel'](_0x27615d,_0x46641a=0x1){let _0x50f71b;for(const _0x3feff6 of this[_0x23f6('0x31')])if(_0x3feff6['matchingCallback'](_0x27615d)){_0x50f71b=_0x3feff6[_0x23f6('0x19')];break;}return _0x50f71b||(_0x50f71b=this['_itemLabels'][_0x23f6('0x30')](_0x27615d[_0x23f6('0x0')])),_0x50f71b?_0x50f71b(_0x46641a):0x1!==_0x46641a?_0x46641a+'\x20'+_0x27615d[_0x23f6('0x0')]+'s':''+_0x27615d['name'];}[_0x23f6('0x1c')](_0x515d64,_0x3736e4){const _0x1733b1=_0x3736e4[_0x23f6('0x11')]()['getWalker'](),_0x29161f=_0x23f6('0x13')==_0x3736e4[_0x23f6('0x1')]?'add':_0x23f6('0x2');for(const _0xcce29c of _0x1733b1){const _0x5a8c69=_0xcce29c[_0x23f6('0x20')],_0x15f54e=_0x515d64[_0x515d64[_0x23f6('0x34')]-0x1];if(_0x5a8c69['is'](_0x23f6('0x2c')))_0x15f54e&&_0x15f54e[_0x23f6('0x1')][_0x23f6('0x7')](_0x23f6('0x39'))>-0x1&&_0x515d64[_0x23f6('0xe')](),_0x15f54e&&_0x23f6('0x9')==_0x15f54e[_0x23f6('0x1')]?_0x15f54e[_0x29161f]+=_0x5a8c69['data']:_0x515d64[_0x23f6('0xb')]({'type':'text','add':'add'==_0x29161f?_0x5a8c69[_0x23f6('0x26')]:'','remove':'remove'==_0x29161f?_0x5a8c69[_0x23f6('0x26')]:''});else{if(this['_schema'][_0x23f6('0x32')](_0x5a8c69)){const _0x58ba69=_0x5a8c69;if(_0x15f54e&&_0x15f54e[_0x23f6('0x1')]['indexOf'](_0x23f6('0x39'))>-0x1&&_0x515d64[_0x23f6('0xe')](),_0x23f6('0x33')==_0xcce29c['type'])continue;_0x15f54e&&_0x15f54e[_0x23f6('0x1')]==_0x29161f+_0x23f6('0x38')&&_0x15f54e[_0x23f6('0x2e')]['name']==_0x58ba69[_0x23f6('0x0')]?_0x15f54e['quantity']++:_0x515d64[_0x23f6('0xb')]({'type':_0x29161f+_0x23f6('0x38'),'element':_0x58ba69,'quantity':0x1}),_0x1733b1[_0x23f6('0xc')](_0x12b494=>!('elementEnd'==_0x12b494[_0x23f6('0x1')]&&_0x12b494['item']==_0x5a8c69));}else{if(this[_0x23f6('0x15')][_0x23f6('0x2b')](_0x5a8c69,'$text')||_0x5a8c69['is']('element',_0x23f6('0x8'))){const _0x4c3604=_0x5a8c69;if(_0x23f6('0x16')==_0x29161f&&_0x23f6('0x5')==_0xcce29c[_0x23f6('0x1')]||'remove'==_0x29161f&&_0x23f6('0x33')==_0xcce29c[_0x23f6('0x1')])continue;if(_0x15f54e&&-0x1==_0x15f54e[_0x23f6('0x1')][_0x23f6('0x7')](_0x23f6('0x39'))){_0x23f6('0x9')==_0x15f54e[_0x23f6('0x1')]&&(_0x15f54e[_0x29161f]+='\x0a');continue;}let _0x46b08e;if(_0x46b08e='add'==_0x29161f?_0x4c3604[_0x23f6('0x17')]&&!this[_0x23f6('0x15')][_0x23f6('0x32')](_0x4c3604[_0x23f6('0x17')])?_0x4c3604[_0x23f6('0x17')]:null:_0x4c3604[_0x23f6('0x1d')]&&!this[_0x23f6('0x15')][_0x23f6('0x32')](_0x4c3604[_0x23f6('0x1d')])?_0x4c3604[_0x23f6('0x1d')]:null,_0x4c3604[_0x23f6('0x2a')]||_0x46b08e&&_0x46b08e[_0x23f6('0x2a')]){const _0x24df4a=_0x46b08e&&_0x46b08e[_0x23f6('0x2a')]?_0x46b08e:_0x4c3604;_0x15f54e&&_0x15f54e[_0x23f6('0x1')]==_0x29161f+_0x23f6('0x2f')&&_0x15f54e[_0x23f6('0x2e')][_0x23f6('0x0')]==_0x24df4a[_0x23f6('0x0')]?_0x15f54e[_0x23f6('0x23')]++:_0x515d64[_0x23f6('0xb')]({'type':_0x29161f+_0x23f6('0x2f'),'element':_0x24df4a,'quantity':0x1});}else _0x515d64[_0x23f6('0xb')]({'type':_0x29161f+_0x23f6('0x39'),'element':_0x4c3604});}}}}}[_0x23f6('0x3')](_0x1559bc){const _0x4f69be=this[_0x23f6('0x12')],_0xc3df39=[];for(const _0x10c9ef of _0x1559bc){switch(_0x10c9ef[_0x23f6('0x1')]){case'text':if(_0x10c9ef[_0x23f6('0x16')]=_0x10c9ef[_0x23f6('0x16')][_0x23f6('0x1e')](/(\S)\u000A+(\S)/g,_0x23f6('0x37'))[_0x23f6('0x1e')](/\u000A/g,''),_0x10c9ef[_0x23f6('0x2')]=_0x10c9ef[_0x23f6('0x2')][_0x23f6('0x1e')](/(\S)\u000A+(\S)/g,_0x23f6('0x37'))[_0x23f6('0x1e')](/\u000A/g,''),''!=_0x10c9ef[_0x23f6('0x16')]&&''!=_0x10c9ef[_0x23f6('0x2')]){_0xc3df39['push']({'type':_0x23f6('0x1e'),'content':_0x53881e(_0x4f69be,_0x23f6('0x35'),['\x22'+_0x10c9ef[_0x23f6('0x2')]+'\x22','\x22'+_0x10c9ef[_0x23f6('0x16')]+'\x22'])});continue;}if(null!=_0x10c9ef[_0x23f6('0x16')][_0x23f6('0x18')](/^ +$/)){_0xc3df39[_0x23f6('0xb')]({'type':_0x23f6('0x13'),'content':_0x53881e(_0x4f69be,_0x23f6('0x21'),_0x53881e(_0x4f69be,'ELEMENT_SPACE',_0x10c9ef[_0x23f6('0x16')][_0x23f6('0x34')]))});continue;}if(null!=_0x10c9ef[_0x23f6('0x2')][_0x23f6('0x18')](/^ +$/)){_0xc3df39[_0x23f6('0xb')]({'type':_0x23f6('0x2d'),'content':_0x53881e(_0x4f69be,_0x23f6('0x1f'),_0x53881e(_0x4f69be,_0x23f6('0x1b'),_0x10c9ef[_0x23f6('0x2')][_0x23f6('0x34')]))});continue;}if(''!=_0x10c9ef['add']){_0xc3df39[_0x23f6('0xb')]({'type':'insertion','content':_0x53881e(_0x4f69be,'*Insert:*\x20%0','\x22'+_0x10c9ef[_0x23f6('0x16')]+'\x22')});continue;}_0xc3df39['push']({'type':'deletion','content':_0x53881e(_0x4f69be,_0x23f6('0x1f'),'\x22'+_0x10c9ef[_0x23f6('0x2')]+'\x22')});continue;case _0x23f6('0x10'):case _0x23f6('0x1a'):_0xc3df39[_0x23f6('0xb')]({'type':_0x23f6('0x13'),'content':_0x53881e(_0x4f69be,_0x23f6('0x21'),this[_0x23f6('0xa')](_0x10c9ef['element'],_0x10c9ef['quantity']))});continue;case _0x23f6('0x14'):case _0x23f6('0x29'):_0xc3df39[_0x23f6('0xb')]({'type':_0x23f6('0x2d'),'content':_0x53881e(_0x4f69be,'*Remove:*\x20%0',this['getItemLabel'](_0x10c9ef[_0x23f6('0x2e')],_0x10c9ef['quantity']))});continue;case _0x23f6('0x24'):_0xc3df39['push']({'type':_0x23f6('0x13'),'content':_0x53881e(_0x4f69be,_0x23f6('0x28'),this['getItemLabel'](_0x10c9ef[_0x23f6('0x2e')],_0x10c9ef['quantity']))});continue;case _0x23f6('0x27'):_0xc3df39[_0x23f6('0xb')]({'type':_0x23f6('0x2d'),'content':_0x53881e(_0x4f69be,_0x23f6('0x25'),this[_0x23f6('0xa')](_0x10c9ef[_0x23f6('0x2e')],_0x10c9ef[_0x23f6('0x23')]))});continue;}_0xc3df39['push'](_0x10c9ef);}return _0xc3df39;}}
|
package/src/trackchanges.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x41e4=['getSuggestions','plugins','Comments','addSuggestion','TrackChanges','getSuggestion','editor','get','adapter','requires'];(function(_0x29bbca,_0x41e41d){var _0x4a0df0=function(_0x43256f){while(--_0x43256f){_0x29bbca['push'](_0x29bbca['shift']());}};_0x4a0df0(++_0x41e41d);}(_0x41e4,0x6e));var _0x4a0d=function(_0x29bbca,_0x41e41d){_0x29bbca=_0x29bbca-0x0;var _0x4a0df0=_0x41e4[_0x29bbca];return _0x4a0df0;};import{Plugin as _0x46c281}from'ckeditor5/src/core';import _0x42e71f from'./trackchangesui';import _0xdd44d6 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x46c281{static get[_0x4a0d('0x9')](){return[_0xdd44d6,_0x42e71f,_0x4a0d('0x2')];}static get['pluginName'](){return _0x4a0d('0x4');}set['adapter'](_0x2cb44e){this['editor'][_0x4a0d('0x1')][_0x4a0d('0x7')](_0xdd44d6)[_0x4a0d('0x8')]=_0x2cb44e;}get[_0x4a0d('0x8')](){return this['editor'][_0x4a0d('0x1')]['get'](_0xdd44d6)['adapter'];}[_0x4a0d('0x3')](_0x1fa48b){return this[_0x4a0d('0x6')][_0x4a0d('0x1')][_0x4a0d('0x7')](_0xdd44d6)['addSuggestionData'](_0x1fa48b);}[_0x4a0d('0x0')]({skipNotAttached:_0x1b6fa7=!0x1,toJSON:_0x5d03bd=!0x1}={}){return this[_0x4a0d('0x6')][_0x4a0d('0x1')]['get'](_0xdd44d6)['getSuggestions']({'skipNotAttached':_0x1b6fa7,'toJSON':_0x5d03bd});}[_0x4a0d('0x5')](_0xddc2b3){return this[_0x4a0d('0x6')]['plugins'][_0x4a0d('0x7')](_0xdd44d6)['getSuggestion'](_0xddc2b3);}}
|
package/src/trackchangesdata.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x374f=['name','addSuggestionData','editor','destroy','model','function','div','getRootsAttributes','editorCreator','result','users','appendChild','rootsAttributes','end','push','config','map','plugins','TrackChangesData','trackChangesData.editorCreator','reduce','TrackChangesEditing','define','get','addUser','useAnonymousUser','getFullData','discardAllSuggestions','execute','pluginName','CommentsRepository','createDocumentFragment','TrackChangesDataGetter','getSuggestions','data','document','init','set','Users','track-changes-data-invalid-editor-creator','getDataWithAcceptedSuggestions','getRootNames'];(function(_0x5914e9,_0x374fd5){const _0x192fe7=function(_0x101706){while(--_0x101706){_0x5914e9['push'](_0x5914e9['shift']());}};_0x192fe7(++_0x374fd5);}(_0x374f,0x1da));const _0x192f=function(_0x5914e9,_0x374fd5){_0x5914e9=_0x5914e9-0x0;let _0x192fe7=_0x374f[_0x5914e9];return _0x192fe7;};import{Plugin as _0x19f981}from'ckeditor5/src/core';import{CKEditorError as _0xdc1268}from'ckeditor5/src/utils';import _0x5f0345 from'./trackchangesediting';import{sanitizeEditorConfig as _0x102a5d}from'ckeditor5-collaboration/src/collaboration-core';const w=['Pagination'];export default class T extends _0x19f981{static get['requires'](){return[_0x5f0345];}static get[_0x192f('0x11')](){return _0x192f('0x6');}[_0x192f('0x18')](){const _0x290830=this[_0x192f('0x20')];if(_0x290830[_0x192f('0x3')][_0x192f('0xa')](_0x192f('0x7'),_0x3bcedd=>{const _0x400cc0=_0x290830[_0x192f('0x22')][_0x192f('0x17')][_0x192f('0x1d')]()[_0x192f('0x8')]((_0x569caa,_0x5cdda6)=>(_0x569caa[_0x5cdda6]='',_0x569caa),{});return _0x290830['constructor']['create'](_0x400cc0,_0x3bcedd);}),_0x192f('0x23')!=typeof _0x290830[_0x192f('0x3')][_0x192f('0xb')]('trackChangesData')[_0x192f('0x26')])throw new _0xdc1268(_0x192f('0x1b'));}[_0x192f('0x1c')](_0x584c6b){return v(this['editor'],!0x0,_0x584c6b);}['getDataWithDiscardedSuggestions'](_0x55f48c){return v(this[_0x192f('0x20')],!0x1,_0x55f48c);}}class P extends _0x19f981{static get[_0x192f('0x11')](){return _0x192f('0x14');}constructor(_0x43cb3c){super(_0x43cb3c),this[_0x192f('0x27')]=_0x192f('0x1');}['init'](){this['editor']['plugins'][_0x192f('0xb')](_0x192f('0x12'))['_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[_0x192f('0x20')][_0x192f('0x5')][_0x192f('0xb')](_0x192f('0x9'))['_adapter']=null;}}function D(_0x5716eb){return void 0x0!==_0x5716eb[_0x192f('0x25')];}async function v(_0x5891bf,_0x165f06,_0x1827bf){const _0x4a2beb=_0x102a5d(_0x5891bf,w);_0x4a2beb[_0x192f('0x5')][_0x192f('0x2')](_0x5f0345,P),_0x4a2beb[_0x192f('0x0')]=D(_0x5891bf)?_0x5891bf['getRootsAttributes']():void 0x0;const _0x58d68a=document[_0x192f('0x13')](),_0x4c2e77=_0x5891bf['config'][_0x192f('0xb')]('trackChangesData')[_0x192f('0x26')],_0x4d51c6=await _0x4c2e77(_0x4a2beb,()=>function(_0x3ede73){const _0x5bba0f=document['createElement'](_0x192f('0x24'));return _0x3ede73[_0x192f('0x29')](_0x5bba0f),_0x5bba0f;}(_0x58d68a));!function(_0x2e5ecb,_0x3a412b){const _0x14bbfd=_0x2e5ecb[_0x192f('0x22')][_0x192f('0x17')]['getRootNames']()[_0x192f('0x8')]((_0x55177e,_0x2f73a9)=>(_0x55177e[_0x2f73a9]=_0x2e5ecb[_0x192f('0x16')][_0x192f('0xb')]({'rootName':_0x2f73a9}),_0x55177e),{}),_0xc45294=_0x2e5ecb[_0x192f('0x5')][_0x192f('0xb')](_0x192f('0x1a'))[_0x192f('0x28')][_0x192f('0x4')](_0x1f1c9b=>({'id':_0x1f1c9b['id'],'name':_0x1f1c9b[_0x192f('0x1e')]})),_0x4f6ee0=_0x2e5ecb[_0x192f('0x5')][_0x192f('0xb')]('TrackChangesEditing')[_0x192f('0x15')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x340b5b=_0x3a412b['plugins']['get'](_0x192f('0x1a')),_0x28cc5b=_0x3a412b[_0x192f('0x5')]['get'](_0x192f('0x9'));for(const _0x5c5eb0 of _0xc45294)_0x340b5b['getUser'](_0x5c5eb0['id'])||_0x340b5b[_0x192f('0xc')](_0x5c5eb0);_0x340b5b['me']||_0x340b5b[_0x192f('0xd')]();for(const _0x2a3d81 of _0x4f6ee0)_0x28cc5b[_0x192f('0x1f')](_0x2a3d81);_0x3a412b['data'][_0x192f('0x19')](_0x14bbfd);}(_0x5891bf,_0x4d51c6),_0x4d51c6[_0x192f('0x10')](_0x165f06?'acceptAllSuggestions':_0x192f('0xf'));const _0x28b607=D(_0x4d51c6)?_0x4d51c6[_0x192f('0xe')](_0x1827bf):_0x4d51c6['data'][_0x192f('0xb')](_0x1827bf);return await _0x4d51c6[_0x192f('0x21')](),_0x28b607;}
|