@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231009.0 → 0.0.0-nightly-20231011.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/aiassistant.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.d.ts +21 -0
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +5 -2
- 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 _0x4e33=['accept','isInContent','_isDataLoaded','authoredAt','isExternal','toJSON','author','markers','nodeAfter','getFirstMarker','start','getContainedElement','discard','getRange','set','get','attributes','getRanges','_markerNames','nodeBefore','push','commentThread','previous','addRange','createdAt','head','map','substr','isMultiRange','subType','decorate','onAccept','getAllAdjacentSuggestions','removeAttribute','_onDiscard','add','getMultiRangeId','isIntersecting','hasComments','removeMarker','addMarkerName','_model','onDiscard','addMarker','getMarkers','length','isIntersectingWithRange','next','type','setAttribute','creator','data','_onAttributesChange','reduce','@external','change','suggestion:','getMarkerNames','_onAccept','removeMarkers','getItems'];(function(_0x1d87d8,_0x4e3324){const _0x1ae05a=function(_0x17d3af){while(--_0x17d3af){_0x1d87d8['push'](_0x1d87d8['shift']());}};_0x1ae05a(++_0x4e3324);}(_0x4e33,0xe0));const _0x1ae0=function(_0x1d87d8,_0x4e3324){_0x1d87d8=_0x1d87d8-0x0;let _0x1ae05a=_0x4e33[_0x1d87d8];return _0x1ae05a;};import{Element as _0x310bbf}from'ckeditor5/src/engine';import{ObservableMixin as _0x542b16,uid as _0x1c82a7}from'ckeditor5/src/utils';import{cloneDeep as _0x126ca6,isEqual as _0xb0ec59,set as _0x38a457,unset as _0x2056d2}from'lodash-es';export default class u extends _0x542b16(){constructor(_0x190ae1,_0xd6a085){super(),this[_0x1ae0('0x16')]=!0x1,this['id']=_0xd6a085['id'],this[_0x1ae0('0x7')]=_0xd6a085[_0x1ae0('0x7')],this[_0x1ae0('0x31')]=_0xd6a085[_0x1ae0('0x31')]||null,this['author']=_0xd6a085[_0x1ae0('0x1a')],this[_0x1ae0('0x9')]=_0xd6a085[_0x1ae0('0x9')]||_0xd6a085[_0x1ae0('0x1a')],this[_0x1ae0('0x18')]=Boolean(_0xd6a085[_0x1ae0('0x24')]&&_0xd6a085[_0x1ae0('0x24')][_0x1ae0('0xd')]),this[_0x1ae0('0xa')]=null,this[_0x1ae0('0x0')]=_0x190ae1,this[_0x1ae0('0x11')]=_0xd6a085[_0x1ae0('0x33')],this[_0x1ae0('0x36')]=_0xd6a085[_0x1ae0('0x1')],this[_0x1ae0('0xb')]=_0xd6a085['onAttributesChange'],this[_0x1ae0('0x26')]=new Set(),this['createdAt']=null,this[_0x1ae0('0x22')](_0x1ae0('0x17'),null),this[_0x1ae0('0x22')]('attributes',_0xd6a085[_0x1ae0('0x24')]||{}),this[_0x1ae0('0x22')](_0x1ae0('0x2a'),null),this[_0x1ae0('0x22')](_0x1ae0('0x6'),null),this[_0x1ae0('0x22')](_0x1ae0('0x29'),null),this[_0x1ae0('0x22')]('_saved',!0x1),this[_0x1ae0('0x32')](_0x1ae0('0x14')),this[_0x1ae0('0x32')](_0x1ae0('0x20'));}get[_0x1ae0('0x2d')](){let _0x44445a=this;for(;_0x44445a[_0x1ae0('0x2a')];)_0x44445a=_0x44445a[_0x1ae0('0x2a')];return _0x44445a;}get['hasComments'](){return!!this[_0x1ae0('0x29')]&&this['commentThread'][_0x1ae0('0x4')]>0x0;}get[_0x1ae0('0x30')](){if(0x0==this[_0x1ae0('0x26')]['size'])return!0x1;return 0x6==Array['from'](this[_0x1ae0('0x26')])[0x0]['split'](':')[_0x1ae0('0x4')];}get[_0x1ae0('0x15')](){return null!==this['getFirstMarker']();}[_0x1ae0('0x3c')](_0x29a54c){this['_markerNames'][_0x1ae0('0x37')](_0x29a54c);}[_0x1ae0('0x10')](){return Array['from'](this[_0x1ae0('0x26')]);}[_0x1ae0('0x3')](){return this[_0x1ae0('0x10')]()[_0x1ae0('0x2e')](_0x9478cb=>this['_model'][_0x1ae0('0x1b')][_0x1ae0('0x23')](_0x9478cb))['filter'](_0x27ab97=>_0x27ab97);}['getFirstMarker'](){return this[_0x1ae0('0x3')]()[0x0]||null;}[_0x1ae0('0x12')](){this[_0x1ae0('0x0')]['change'](_0xab675=>{for(const _0x2152fa of this[_0x1ae0('0x3')]())_0xab675[_0x1ae0('0x3b')](_0x2152fa);}),this[_0x1ae0('0x26')]['clear']();}[_0x1ae0('0x3b')](_0x4087cc){this['_model']['change'](_0x239d8c=>{_0x239d8c[_0x1ae0('0x3b')](_0x4087cc);}),this[_0x1ae0('0x26')]['delete'](_0x4087cc);}[_0x1ae0('0x2b')](_0x231fde){const _0x499856=_0x1ae0('0xf')+this[_0x1ae0('0x7')]+':'+this[_0x1ae0('0x31')]+':'+this['id']+':'+this[_0x1ae0('0x9')]['id']+':'+u[_0x1ae0('0x38')]();this[_0x1ae0('0x3c')](_0x499856),this[_0x1ae0('0x0')][_0x1ae0('0xe')](_0x2cdae5=>{_0x2cdae5[_0x1ae0('0x2')](_0x499856,{'range':_0x231fde,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x1ae0('0x5')](_0x1b7ea0){for(const _0x271828 of this[_0x1ae0('0x25')]())if(_0x271828[_0x1ae0('0x39')](_0x1b7ea0))return!0x0;return!0x1;}[_0x1ae0('0x25')](){return this[_0x1ae0('0x3')]()['map'](_0x21b683=>_0x21b683[_0x1ae0('0x21')]());}[_0x1ae0('0x13')](){return this[_0x1ae0('0x25')]()[_0x1ae0('0xc')]((_0x2e1e28,_0x336013)=>[..._0x2e1e28,..._0x336013[_0x1ae0('0x13')]()],[]);}['getFirstRange'](){var _0x47af09;return(null===(_0x47af09=this[_0x1ae0('0x1d')]())||void 0x0===_0x47af09?void 0x0:_0x47af09[_0x1ae0('0x21')]())||null;}[_0x1ae0('0x1f')](){const _0x4b9578=this[_0x1ae0('0x25')]();if(0x1!=_0x4b9578[_0x1ae0('0x4')])return null;const _0x38cce8=_0x4b9578[0x0],_0x56f0dd=_0x38cce8[_0x1ae0('0x1e')][_0x1ae0('0x1c')],_0x86c750=_0x38cce8['end'][_0x1ae0('0x27')];return _0x56f0dd instanceof _0x310bbf?_0x56f0dd!=_0x86c750?null:_0x56f0dd:null;}['accept'](){this[_0x1ae0('0x11')](this['getRanges'](),this[_0x1ae0('0xa')],this[_0x1ae0('0x24')]),this[_0x1ae0('0x12')]();}[_0x1ae0('0x20')](){this[_0x1ae0('0x36')](this[_0x1ae0('0x25')](),this[_0x1ae0('0xa')],this[_0x1ae0('0x24')]),this['removeMarkers']();}[_0x1ae0('0x34')](){const _0x2b0a66=[];let _0x4f6903=this['head'];for(;_0x4f6903;)_0x2b0a66[_0x1ae0('0x28')](_0x4f6903),_0x4f6903=_0x4f6903['next'];return _0x2b0a66;}[_0x1ae0('0x8')](_0x43a1e3,_0x62c9ac){const _0x6c3e09=_0x126ca6(this[_0x1ae0('0x24')]);_0x38a457(_0x6c3e09,_0x43a1e3,_0x62c9ac),_0xb0ec59(_0x6c3e09,this[_0x1ae0('0x24')])||(this['attributes']=_0x6c3e09,this[_0x1ae0('0xb')](_0x6c3e09));}[_0x1ae0('0x35')](_0x135bec){const _0x522a73=_0x126ca6(this[_0x1ae0('0x24')]);_0x2056d2(_0x522a73,_0x135bec),_0xb0ec59(_0x522a73,this[_0x1ae0('0x24')])||(this[_0x1ae0('0x24')]=_0x522a73,this[_0x1ae0('0xb')](this[_0x1ae0('0x24')]));}[_0x1ae0('0x19')](){return{'id':this['id'],'type':this[_0x1ae0('0x31')]?this[_0x1ae0('0x7')]+':'+this[_0x1ae0('0x31')]:this[_0x1ae0('0x7')],'authorId':this['creator']['id'],'createdAt':this[_0x1ae0('0x2c')],'hasComments':this[_0x1ae0('0x3a')],'data':this['data'],'attributes':this['attributes']};}static[_0x1ae0('0x38')](){return _0x1c82a7()[_0x1ae0('0x2f')](0x1,0x5);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2930=['length','_customCallbacks','remove','ELEMENT_SPACE','*Merge:*\x20%0','previousSibling','push','data','elementEnd','start','match','_itemLabelsCallbacks','checkChild','addContainer','*Insert:*\x20%0','EmptyContainer','removeEmptyContainer','nextSibling','addEmptyContainer','function','isInContent','$1\x20$2','replace','end','_locale','type','deletion','Object','getFirstRange','registerElementLabel','indexOf','normal','_itemLabels','insertion','add','item','REPLACE_TEXT','element','Container','name','softBreak','isObject','label','*Remove:*\x20%0','pop','elementStart','quantity','getItemLabel','$text','$textProxy','registerDescriptionCallback','text','getDescriptions','set','_addDescriptionItems','_schema','isEmpty'];(function(_0x5e60f4,_0x2930be){const _0x381c36=function(_0x4d038b){while(--_0x4d038b){_0x5e60f4['push'](_0x5e60f4['shift']());}};_0x381c36(++_0x2930be);}(_0x2930,0x1f0));const _0x381c=function(_0x5e60f4,_0x2930be){_0x5e60f4=_0x5e60f4-0x0;let _0x381c36=_0x2930[_0x5e60f4];return _0x381c36;};import{getTranslation as _0xde4960}from'./utils/common-translations';import{priorities as _0x112c76,insertToPriorityArray as _0x55db20}from'ckeditor5/src/utils';export default class m{constructor(_0x1d7bf7,_0x42e421){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this[_0x381c('0x1c')]=[],this['_schema']=_0x1d7bf7,this[_0x381c('0x29')]=_0x42e421;}[_0x381c('0xc')](_0x2c44a1){const _0x36a8aa=[];for(let _0x2309bc=0x0;_0x2309bc<_0x2c44a1[_0x381c('0x11')];_0x2309bc++){const _0x529bff=_0x2c44a1[_0x2309bc];if(!_0x529bff[_0x381c('0x25')])continue;let _0x2ee506=!0x1;for(const _0x440d09 of this[_0x381c('0x12')]){const _0x42e832=_0x440d09(_0x529bff);if(_0x42e832){'type'in _0x42e832&&_0x36a8aa['push'](_0x42e832),_0x2ee506=!0x0;break;}}if(!_0x2ee506){this[_0x381c('0xe')](_0x36a8aa,_0x529bff);const _0x44038e=_0x2c44a1[_0x2309bc+0x1];if(_0x44038e&&!_0x529bff[_0x381c('0x2d')]()[_0x381c('0x28')]['isEqual'](_0x44038e[_0x381c('0x2d')]()[_0x381c('0x1a')])){const _0x5f4d24=_0x36a8aa[_0x36a8aa[_0x381c('0x11')]-0x1],_0x165244='insertion'==_0x529bff[_0x381c('0x2a')]?_0x381c('0x33'):_0x381c('0x13');_0x5f4d24&&_0x381c('0xb')==_0x5f4d24['type']&&(_0x5f4d24[_0x165244]+='\x0a');}}}return this['_resolveDescriptionItems'](_0x36a8aa);}[_0x381c('0xa')](_0x889c54){this[_0x381c('0x12')]['push'](_0x889c54);}[_0x381c('0x2e')](_0x3d0803,_0x206fbc,_0x193612=_0x112c76[_0x381c('0x30')]){_0x381c('0x24')==typeof _0x3d0803?_0x55db20(this[_0x381c('0x1c')],{'matchingCallback':_0x3d0803,'label':_0x206fbc,'priority':_0x193612}):this[_0x381c('0x31')][_0x381c('0xd')](_0x3d0803,_0x206fbc);}[_0x381c('0x7')](_0x25d847,_0x47c6cd=0x1){let _0x5c4c40;for(const _0x450a32 of this[_0x381c('0x1c')])if(_0x450a32['matchingCallback'](_0x25d847)){_0x5c4c40=_0x450a32[_0x381c('0x2')];break;}return _0x5c4c40||(_0x5c4c40=this[_0x381c('0x31')]['get'](_0x25d847[_0x381c('0x38')])),_0x5c4c40?_0x5c4c40(_0x47c6cd):0x1!==_0x47c6cd?_0x47c6cd+'\x20'+_0x25d847['name']+'s':''+_0x25d847[_0x381c('0x38')];}[_0x381c('0xe')](_0x1adacf,_0x46351d){const _0x284482=_0x46351d[_0x381c('0x2d')]()['getWalker'](),_0x9ae5b0=_0x381c('0x32')==_0x46351d[_0x381c('0x2a')]?_0x381c('0x33'):_0x381c('0x13');for(const _0x108b66 of _0x284482){const _0x19552e=_0x108b66[_0x381c('0x34')],_0x44cf40=_0x1adacf[_0x1adacf[_0x381c('0x11')]-0x1];if(_0x19552e['is'](_0x381c('0x9')))_0x44cf40&&_0x44cf40[_0x381c('0x2a')][_0x381c('0x2f')](_0x381c('0x37'))>-0x1&&_0x1adacf[_0x381c('0x4')](),_0x44cf40&&_0x381c('0xb')==_0x44cf40[_0x381c('0x2a')]?_0x44cf40[_0x9ae5b0]+=_0x19552e[_0x381c('0x18')]:_0x1adacf['push']({'type':_0x381c('0xb'),'add':_0x381c('0x33')==_0x9ae5b0?_0x19552e['data']:'','remove':'remove'==_0x9ae5b0?_0x19552e[_0x381c('0x18')]:''});else{if(this[_0x381c('0xf')][_0x381c('0x1')](_0x19552e)){const _0x119fca=_0x19552e;if(_0x44cf40&&_0x44cf40[_0x381c('0x2a')][_0x381c('0x2f')]('Container')>-0x1&&_0x1adacf[_0x381c('0x4')](),_0x381c('0x19')==_0x108b66['type'])continue;_0x44cf40&&_0x44cf40['type']==_0x9ae5b0+_0x381c('0x2c')&&_0x44cf40[_0x381c('0x36')][_0x381c('0x38')]==_0x119fca[_0x381c('0x38')]?_0x44cf40[_0x381c('0x6')]++:_0x1adacf[_0x381c('0x17')]({'type':_0x9ae5b0+_0x381c('0x2c'),'element':_0x119fca,'quantity':0x1}),_0x284482['skip'](_0x37833d=>!(_0x381c('0x19')==_0x37833d['type']&&_0x37833d['item']==_0x19552e));}else{if(this[_0x381c('0xf')][_0x381c('0x1d')](_0x19552e,_0x381c('0x8'))||_0x19552e['is'](_0x381c('0x36'),_0x381c('0x0'))){const _0xf68fdb=_0x19552e;if(_0x381c('0x33')==_0x9ae5b0&&_0x381c('0x5')==_0x108b66[_0x381c('0x2a')]||_0x381c('0x13')==_0x9ae5b0&&_0x381c('0x19')==_0x108b66['type'])continue;if(_0x44cf40&&-0x1==_0x44cf40[_0x381c('0x2a')][_0x381c('0x2f')](_0x381c('0x37'))){_0x381c('0xb')==_0x44cf40[_0x381c('0x2a')]&&(_0x44cf40[_0x9ae5b0]+='\x0a');continue;}let _0xe3f442;if(_0xe3f442='add'==_0x9ae5b0?_0xf68fdb[_0x381c('0x22')]&&!this[_0x381c('0xf')][_0x381c('0x1')](_0xf68fdb['nextSibling'])?_0xf68fdb['nextSibling']:null:_0xf68fdb['previousSibling']&&!this[_0x381c('0xf')][_0x381c('0x1')](_0xf68fdb[_0x381c('0x16')])?_0xf68fdb[_0x381c('0x16')]:null,_0xf68fdb[_0x381c('0x10')]||_0xe3f442&&_0xe3f442['isEmpty']){const _0x2856be=_0xe3f442&&_0xe3f442[_0x381c('0x10')]?_0xe3f442:_0xf68fdb;_0x44cf40&&_0x44cf40[_0x381c('0x2a')]==_0x9ae5b0+_0x381c('0x20')&&_0x44cf40['element']['name']==_0x2856be[_0x381c('0x38')]?_0x44cf40[_0x381c('0x6')]++:_0x1adacf[_0x381c('0x17')]({'type':_0x9ae5b0+_0x381c('0x20'),'element':_0x2856be,'quantity':0x1});}else _0x1adacf[_0x381c('0x17')]({'type':_0x9ae5b0+_0x381c('0x37'),'element':_0xf68fdb});}}}}}['_resolveDescriptionItems'](_0x3425a3){const _0x1869cc=this[_0x381c('0x29')],_0x49b5fc=[];for(const _0x8b8a8e of _0x3425a3){switch(_0x8b8a8e[_0x381c('0x2a')]){case _0x381c('0xb'):if(_0x8b8a8e[_0x381c('0x33')]=_0x8b8a8e['add']['replace'](/(\S)\u000A+(\S)/g,_0x381c('0x26'))[_0x381c('0x27')](/\u000A/g,''),_0x8b8a8e[_0x381c('0x13')]=_0x8b8a8e['remove'][_0x381c('0x27')](/(\S)\u000A+(\S)/g,_0x381c('0x26'))[_0x381c('0x27')](/\u000A/g,''),''!=_0x8b8a8e['add']&&''!=_0x8b8a8e[_0x381c('0x13')]){_0x49b5fc['push']({'type':_0x381c('0x27'),'content':_0xde4960(_0x1869cc,_0x381c('0x35'),['\x22'+_0x8b8a8e[_0x381c('0x13')]+'\x22','\x22'+_0x8b8a8e[_0x381c('0x33')]+'\x22'])});continue;}if(null!=_0x8b8a8e[_0x381c('0x33')][_0x381c('0x1b')](/^ +$/)){_0x49b5fc[_0x381c('0x17')]({'type':'insertion','content':_0xde4960(_0x1869cc,_0x381c('0x1f'),_0xde4960(_0x1869cc,_0x381c('0x14'),_0x8b8a8e['add'][_0x381c('0x11')]))});continue;}if(null!=_0x8b8a8e[_0x381c('0x13')][_0x381c('0x1b')](/^ +$/)){_0x49b5fc[_0x381c('0x17')]({'type':'deletion','content':_0xde4960(_0x1869cc,_0x381c('0x3'),_0xde4960(_0x1869cc,_0x381c('0x14'),_0x8b8a8e[_0x381c('0x13')][_0x381c('0x11')]))});continue;}if(''!=_0x8b8a8e[_0x381c('0x33')]){_0x49b5fc[_0x381c('0x17')]({'type':_0x381c('0x32'),'content':_0xde4960(_0x1869cc,_0x381c('0x1f'),'\x22'+_0x8b8a8e[_0x381c('0x33')]+'\x22')});continue;}_0x49b5fc['push']({'type':_0x381c('0x2b'),'content':_0xde4960(_0x1869cc,_0x381c('0x3'),'\x22'+_0x8b8a8e[_0x381c('0x13')]+'\x22')});continue;case _0x381c('0x23'):case'addObject':_0x49b5fc[_0x381c('0x17')]({'type':_0x381c('0x32'),'content':_0xde4960(_0x1869cc,_0x381c('0x1f'),this[_0x381c('0x7')](_0x8b8a8e['element'],_0x8b8a8e[_0x381c('0x6')]))});continue;case _0x381c('0x21'):case'removeObject':_0x49b5fc[_0x381c('0x17')]({'type':'deletion','content':_0xde4960(_0x1869cc,_0x381c('0x3'),this['getItemLabel'](_0x8b8a8e['element'],_0x8b8a8e[_0x381c('0x6')]))});continue;case _0x381c('0x1e'):_0x49b5fc[_0x381c('0x17')]({'type':_0x381c('0x32'),'content':_0xde4960(_0x1869cc,'*Split:*\x20%0',this[_0x381c('0x7')](_0x8b8a8e[_0x381c('0x36')],_0x8b8a8e[_0x381c('0x6')]))});continue;case'removeContainer':_0x49b5fc[_0x381c('0x17')]({'type':_0x381c('0x2b'),'content':_0xde4960(_0x1869cc,_0x381c('0x15'),this[_0x381c('0x7')](_0x8b8a8e[_0x381c('0x36')],_0x8b8a8e[_0x381c('0x6')]))});continue;}_0x49b5fc[_0x381c('0x17')](_0x8b8a8e);}return _0x49b5fc;}}
|
package/src/trackchanges.d.ts
CHANGED
|
@@ -235,9 +235,12 @@ export interface TrackChangesAdapter {
|
|
|
235
235
|
*/
|
|
236
236
|
updateSuggestion(id: string, suggestionData: UpdateSuggestionInput): Promise<void>;
|
|
237
237
|
}
|
|
238
|
-
export
|
|
238
|
+
export interface SuggestionData extends SuggestionJSON {
|
|
239
|
+
/**
|
|
240
|
+
* Original suggestion ID from which the current one was split.
|
|
241
|
+
*/
|
|
239
242
|
originalSuggestionId?: string | null;
|
|
240
|
-
}
|
|
243
|
+
}
|
|
241
244
|
export type AddSuggestionInput = Omit<SuggestionData, 'authorId' | 'createdAt'>;
|
|
242
245
|
export type UpdateSuggestionInput = Partial<Pick<SuggestionJSON, 'hasComments' | 'attributes'>> & {
|
|
243
246
|
state?: 'open' | 'accepted' | 'rejected';
|
package/src/trackchanges.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xb9db=['Comments','pluginName','TrackChanges','addSuggestionData','get','plugins','getSuggestion','addSuggestion','adapter','getSuggestions','editor'];(function(_0x1e6648,_0xb9dbc2){var _0x2d08e8=function(_0x368bac){while(--_0x368bac){_0x1e6648['push'](_0x1e6648['shift']());}};_0x2d08e8(++_0xb9dbc2);}(_0xb9db,0xe3));var _0x2d08=function(_0x1e6648,_0xb9dbc2){_0x1e6648=_0x1e6648-0x0;var _0x2d08e8=_0xb9db[_0x1e6648];return _0x2d08e8;};import{Plugin as _0x3ef21b}from'ckeditor5/src/core';import _0xa208bb from'./trackchangesui';import _0x2144eb from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x3ef21b{static get['requires'](){return[_0x2144eb,_0xa208bb,_0x2d08('0x4')];}static get[_0x2d08('0x5')](){return _0x2d08('0x6');}set[_0x2d08('0x1')](_0x61083a){this[_0x2d08('0x3')][_0x2d08('0x9')][_0x2d08('0x8')](_0x2144eb)['adapter']=_0x61083a;}get[_0x2d08('0x1')](){return this[_0x2d08('0x3')][_0x2d08('0x9')]['get'](_0x2144eb)[_0x2d08('0x1')];}[_0x2d08('0x0')](_0x1c8e2e){return this[_0x2d08('0x3')][_0x2d08('0x9')][_0x2d08('0x8')](_0x2144eb)[_0x2d08('0x7')](_0x1c8e2e);}[_0x2d08('0x2')]({skipNotAttached:_0xfbb39c=!0x1,toJSON:_0x3c3aa5=!0x1}={}){return this['editor'][_0x2d08('0x9')]['get'](_0x2144eb)[_0x2d08('0x2')]({'skipNotAttached':_0xfbb39c,'toJSON':_0x3c3aa5});}[_0x2d08('0xa')](_0x364210){return this[_0x2d08('0x3')][_0x2d08('0x9')][_0x2d08('0x8')](_0x2144eb)[_0x2d08('0xa')](_0x364210);}}
|
package/src/trackchangesdata.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5595=['pluginName','addUser','rootsAttributes','addSuggestionData','execute','appendChild','trackChangesData.editorCreator','trackChangesData','function','Pagination','TrackChangesData','define','TrackChangesDataGetter','document','editorCreator','config','get','init','constructor','getRootNames','discardAllSuggestions','track-changes-data-invalid-editor-creator','users','getDataWithDiscardedSuggestions','plugins','reduce','create','set','model','end','Users','getDataWithAcceptedSuggestions','_adapter','getSuggestions','data','destroy','acceptAllSuggestions','getUser','createElement','TrackChangesEditing','div','editor','useAnonymousUser','getFullData'];(function(_0x291531,_0x5595c0){const _0x257f00=function(_0x33deb0){while(--_0x33deb0){_0x291531['push'](_0x291531['shift']());}};_0x257f00(++_0x5595c0);}(_0x5595,0x110));const _0x257f=function(_0x291531,_0x5595c0){_0x291531=_0x291531-0x0;let _0x257f00=_0x5595[_0x291531];return _0x257f00;};import{Plugin as _0x16d2f1}from'ckeditor5/src/core';import{CKEditorError as _0x2fbe27}from'ckeditor5/src/utils';import _0x56b11b from'./trackchangesediting';import{sanitizeEditorConfig as _0xd57929}from'ckeditor5-collaboration/src/collaboration-core';const w=[_0x257f('0x1')];export default class T extends _0x16d2f1{static get['requires'](){return[_0x56b11b];}static get['pluginName'](){return _0x257f('0x2');}['init'](){const _0x2d7c35=this[_0x257f('0x21')];if(_0x2d7c35[_0x257f('0x7')][_0x257f('0x3')](_0x257f('0x2a'),_0x43b1ca=>{const _0x4312b9=_0x2d7c35[_0x257f('0x14')]['document']['getRootNames']()[_0x257f('0x11')]((_0x3aa930,_0x3f90a0)=>(_0x3aa930[_0x3f90a0]='',_0x3aa930),{});return _0x2d7c35[_0x257f('0xa')][_0x257f('0x12')](_0x4312b9,_0x43b1ca);}),_0x257f('0x0')!=typeof _0x2d7c35[_0x257f('0x7')]['get'](_0x257f('0x2b'))[_0x257f('0x6')])throw new _0x2fbe27(_0x257f('0xd'));}[_0x257f('0x17')](_0x59642){return v(this[_0x257f('0x21')],!0x0,_0x59642);}[_0x257f('0xf')](_0x4cda7b){return v(this[_0x257f('0x21')],!0x1,_0x4cda7b);}}class P extends _0x16d2f1{static get[_0x257f('0x24')](){return _0x257f('0x4');}constructor(_0x385b1a){super(_0x385b1a),this['result']=_0x257f('0x15');}[_0x257f('0x9')](){this[_0x257f('0x21')][_0x257f('0x10')][_0x257f('0x8')]('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[_0x257f('0x21')][_0x257f('0x10')][_0x257f('0x8')]('TrackChangesEditing')[_0x257f('0x18')]=null;}}function D(_0x382590){return void 0x0!==_0x382590['getRootsAttributes'];}async function v(_0xc5d82,_0x5c7901,_0xc5add2){const _0x2e4075=_0xd57929(_0xc5d82,w);_0x2e4075[_0x257f('0x10')]['push'](_0x56b11b,P),_0x2e4075[_0x257f('0x26')]=D(_0xc5d82)?_0xc5d82['getRootsAttributes']():void 0x0;const _0x1791de=document['createDocumentFragment'](),_0x5ef97a=_0xc5d82[_0x257f('0x7')][_0x257f('0x8')](_0x257f('0x2b'))['editorCreator'],_0x242e97=await _0x5ef97a(_0x2e4075,()=>function(_0x493e4c){const _0x4fba55=document[_0x257f('0x1e')](_0x257f('0x20'));return _0x493e4c[_0x257f('0x29')](_0x4fba55),_0x4fba55;}(_0x1791de));!function(_0x2aceda,_0x2c9352){const _0xb13e2d=_0x2aceda[_0x257f('0x14')][_0x257f('0x5')][_0x257f('0xb')]()[_0x257f('0x11')]((_0x580063,_0x94e2aa)=>(_0x580063[_0x94e2aa]=_0x2aceda[_0x257f('0x1a')][_0x257f('0x8')]({'rootName':_0x94e2aa}),_0x580063),{}),_0x28f362=_0x2aceda[_0x257f('0x10')]['get']('Users')[_0x257f('0xe')]['map'](_0x1ba65e=>({'id':_0x1ba65e['id'],'name':_0x1ba65e['name']})),_0x561bb5=_0x2aceda['plugins'][_0x257f('0x8')](_0x257f('0x1f'))[_0x257f('0x19')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x376d8a=_0x2c9352['plugins'][_0x257f('0x8')](_0x257f('0x16')),_0x5d7709=_0x2c9352[_0x257f('0x10')][_0x257f('0x8')](_0x257f('0x1f'));for(const _0x1e7e7b of _0x28f362)_0x376d8a[_0x257f('0x1d')](_0x1e7e7b['id'])||_0x376d8a[_0x257f('0x25')](_0x1e7e7b);_0x376d8a['me']||_0x376d8a[_0x257f('0x22')]();for(const _0x3375fa of _0x561bb5)_0x5d7709[_0x257f('0x27')](_0x3375fa);_0x2c9352[_0x257f('0x1a')][_0x257f('0x13')](_0xb13e2d);}(_0xc5d82,_0x242e97),_0x242e97[_0x257f('0x28')](_0x5c7901?_0x257f('0x1c'):_0x257f('0xc'));const _0xeb2c7d=D(_0x242e97)?_0x242e97[_0x257f('0x23')](_0xc5add2):_0x242e97[_0x257f('0x1a')][_0x257f('0x8')](_0xc5add2);return await _0x242e97[_0x257f('0x1b')](),_0xeb2c7d;}
|