@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231129.0 → 0.0.0-nightly-20231130.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/CHANGELOG.md +15 -15
- package/README.md +1 -1
- 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/imagestyle.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
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x43c3=['_handleCustomCallbackDescription','label','$textProxy','match','registerAttributeLabel','removeFormat','replace','deletion','*Merge:*\x20%0','*Remove\x20format:*\x20%0','_addDescriptionItems','data','isEmpty','nextSibling','registerElementLabel','*Insert:*\x20%0','previousSibling','_schema','Container','addContainer','newValue','get','*Split:*\x20%0','element','_handleInsertRemoveSuggestionDescription','_handleAttributeSuggestionDescription','$1\x20$2','_handleRenameSuggestionDescription','getWalker','subType','join','add','set','softBreak','_itemLabelsCallbacks','removeEmptyContainer','attribute','addFormat','remove','EmptyContainer','end','start','push','*Change\x20to:*\x20%0','*Remove:*\x20%0','_locale','insertion','key','isObject','removeContainer','name','getDescriptions','isEqual','elementEnd','_attributeLabels','indexOf','isInContent','text','$text','has','map','_itemLabels','removeObject','getItemLabel','_resolveDescriptionItems','addEmptyContainer','length','ELEMENT_SPACE','quantity','normal','type','elementStart','format','Object','_customCallbacks','getFirstRange','function','pop'];(function(_0x5e1dd3,_0x43c3c0){const _0x188696=function(_0x34eb97){while(--_0x34eb97){_0x5e1dd3['push'](_0x5e1dd3['shift']());}};_0x188696(++_0x43c3c0);}(_0x43c3,0x1ef));const _0x1886=function(_0x5e1dd3,_0x43c3c0){_0x5e1dd3=_0x5e1dd3-0x0;let _0x188696=_0x43c3[_0x5e1dd3];return _0x188696;};import{getTranslation as _0xfc87cf}from'./utils/common-translations';import{priorities as _0x3e4fd7,insertToPriorityArray as _0x21090b}from'ckeditor5/src/utils';import{renameAttributeKey as _0x32153e}from'./trackchangesediting';export default class f{constructor(_0x419079,_0x5659f0){this[_0x1886('0x2f')]=[],this[_0x1886('0x22')]=new Map(),this[_0x1886('0x7')]=[],this[_0x1886('0x1b')]=new Map(),this[_0x1886('0x44')]=_0x419079,this['_locale']=_0x5659f0;}[_0x1886('0x18')](_0x8144d1){const _0x23b143=[],_0x17603=new Set(),_0x33e1b=new Set();for(let _0x5e11a9=0x0;_0x5e11a9<_0x8144d1['length'];_0x5e11a9++){const _0x26c36e=_0x8144d1[_0x5e11a9];if(!_0x26c36e[_0x1886('0x1d')])continue;const _0x10ce60=this[_0x1886('0x33')](_0x26c36e);if(_0x10ce60){if(null!=_0x26c36e[_0x1886('0x2')]){if(_0x17603[_0x1886('0x20')](_0x26c36e[_0x1886('0x2')]))continue;_0x17603['add'](_0x26c36e[_0x1886('0x2')]);}_0x23b143['push'](_0x10ce60);}else{if(_0x1886('0x9')!=_0x26c36e[_0x1886('0x2b')])_0x1886('0x13')!=_0x26c36e[_0x1886('0x2b')]&&_0x1886('0x3a')!=_0x26c36e['type']||this['_handleInsertRemoveSuggestionDescription'](_0x23b143,_0x26c36e,_0x8144d1[_0x5e11a9+0x1]);else{const _0x39a6c5=_0x26c36e[_0x1886('0x3e')][_0x1886('0x14')];if(_0x33e1b[_0x1886('0x20')](_0x39a6c5))continue;_0x33e1b['add'](_0x26c36e[_0x1886('0x3e')]['key']),_0x39a6c5==_0x32153e?this[_0x1886('0x0')](_0x23b143,_0x26c36e):this['_handleAttributeSuggestionDescription'](_0x23b143,_0x26c36e);}}}return this[_0x1886('0x25')](_0x23b143);}['registerDescriptionCallback'](_0x1bb9a8){this[_0x1886('0x2f')][_0x1886('0xf')](_0x1bb9a8);}[_0x1886('0x41')](_0x4b6ea2,_0x272bcb,_0x199997=_0x3e4fd7[_0x1886('0x2a')]){_0x1886('0x31')==typeof _0x4b6ea2?_0x21090b(this[_0x1886('0x7')],{'matchingCallback':_0x4b6ea2,'label':_0x272bcb,'priority':_0x199997}):this[_0x1886('0x22')][_0x1886('0x5')](_0x4b6ea2,_0x272bcb);}[_0x1886('0x37')](_0x5bbae1,_0x524f62){this['_attributeLabels'][_0x1886('0x5')](_0x5bbae1,_0x524f62);}[_0x1886('0x24')](_0x313af8,_0x1d883=0x1){let _0x4cadce;for(const _0x2e0f87 of this[_0x1886('0x7')])if(_0x2e0f87['matchingCallback'](_0x313af8)){_0x4cadce=_0x2e0f87[_0x1886('0x34')];break;}return _0x4cadce||(_0x4cadce=this[_0x1886('0x22')][_0x1886('0x48')](_0x313af8['name'])),_0x4cadce?_0x4cadce(_0x1d883):0x1!==_0x1d883?_0x1d883+'\x20'+_0x313af8[_0x1886('0x17')]+'s':''+_0x313af8[_0x1886('0x17')];}[_0x1886('0x3d')](_0x41b13a,_0x1ff001){const _0x3df0fc=_0x1ff001[_0x1886('0x30')]()[_0x1886('0x1')](),_0x5b4c51='insertion'==_0x1ff001['type']?_0x1886('0x4'):_0x1886('0xb');for(const _0x35afb3 of _0x3df0fc){const _0x374566=_0x35afb3['item'],_0x4b38eb=_0x41b13a[_0x41b13a[_0x1886('0x27')]-0x1];if(_0x374566['is'](_0x1886('0x35')))_0x4b38eb&&_0x4b38eb[_0x1886('0x2b')][_0x1886('0x1c')]('Container')>-0x1&&_0x41b13a[_0x1886('0x32')](),_0x4b38eb&&_0x1886('0x1e')==_0x4b38eb[_0x1886('0x2b')]?_0x4b38eb[_0x5b4c51]+=_0x374566[_0x1886('0x3e')]:_0x41b13a['push']({'type':_0x1886('0x1e'),'add':_0x1886('0x4')==_0x5b4c51?_0x374566[_0x1886('0x3e')]:'','remove':_0x1886('0xb')==_0x5b4c51?_0x374566[_0x1886('0x3e')]:''});else{if(this[_0x1886('0x44')][_0x1886('0x15')](_0x374566)){const _0xa361b8=_0x374566;if(_0x4b38eb&&_0x4b38eb[_0x1886('0x2b')][_0x1886('0x1c')]('Container')>-0x1&&_0x41b13a['pop'](),_0x1886('0x1a')==_0x35afb3[_0x1886('0x2b')])continue;_0x4b38eb&&_0x4b38eb[_0x1886('0x2b')]==_0x5b4c51+_0x1886('0x2e')&&_0x4b38eb[_0x1886('0x4a')][_0x1886('0x17')]==_0xa361b8[_0x1886('0x17')]?_0x4b38eb[_0x1886('0x29')]++:_0x41b13a['push']({'type':_0x5b4c51+_0x1886('0x2e'),'element':_0xa361b8,'quantity':0x1}),_0x3df0fc['skip'](_0x32f022=>!(_0x1886('0x1a')==_0x32f022[_0x1886('0x2b')]&&_0x32f022['item']==_0x374566));}else{if(this[_0x1886('0x44')]['checkChild'](_0x374566,_0x1886('0x1f'))||_0x374566['is']('element',_0x1886('0x6'))){const _0x53998e=_0x374566;if('add'==_0x5b4c51&&_0x1886('0x2c')==_0x35afb3[_0x1886('0x2b')]||'remove'==_0x5b4c51&&_0x1886('0x1a')==_0x35afb3[_0x1886('0x2b')])continue;if(_0x4b38eb&&-0x1==_0x4b38eb[_0x1886('0x2b')]['indexOf'](_0x1886('0x45'))){'text'==_0x4b38eb['type']&&(_0x4b38eb[_0x5b4c51]+='\x0a');continue;}let _0x5ab94f;if(_0x5ab94f=_0x1886('0x4')==_0x5b4c51?_0x53998e[_0x1886('0x40')]&&!this[_0x1886('0x44')][_0x1886('0x15')](_0x53998e[_0x1886('0x40')])?_0x53998e[_0x1886('0x40')]:null:_0x53998e['previousSibling']&&!this['_schema']['isObject'](_0x53998e['previousSibling'])?_0x53998e[_0x1886('0x43')]:null,_0x53998e[_0x1886('0x3f')]||_0x5ab94f&&_0x5ab94f[_0x1886('0x3f')]){const _0x290ae5=_0x5ab94f&&_0x5ab94f[_0x1886('0x3f')]?_0x5ab94f:_0x53998e;_0x4b38eb&&_0x4b38eb['type']==_0x5b4c51+_0x1886('0xc')&&_0x4b38eb[_0x1886('0x4a')]['name']==_0x290ae5['name']?_0x4b38eb[_0x1886('0x29')]++:_0x41b13a[_0x1886('0xf')]({'type':_0x5b4c51+_0x1886('0xc'),'element':_0x290ae5,'quantity':0x1});}else _0x41b13a[_0x1886('0xf')]({'type':_0x5b4c51+_0x1886('0x45'),'element':_0x53998e});}}}}}[_0x1886('0x25')](_0x3f1a13){const _0x1dd7eb=this[_0x1886('0x12')],_0x3e9dc4=[],_0x325e3f=[],_0x12cc0d=[];for(const _0x4f56d5 of _0x3f1a13)switch(_0x4f56d5[_0x1886('0x2b')]){case _0x1886('0x1e'):if(_0x4f56d5[_0x1886('0x4')]=_0x4f56d5['add']['replace'](/(\S)\u000A+(\S)/g,_0x1886('0x4d'))[_0x1886('0x39')](/\u000A/g,''),_0x4f56d5[_0x1886('0xb')]=_0x4f56d5[_0x1886('0xb')][_0x1886('0x39')](/(\S)\u000A+(\S)/g,'$1\x20$2')[_0x1886('0x39')](/\u000A/g,''),''!=_0x4f56d5[_0x1886('0x4')]&&''!=_0x4f56d5[_0x1886('0xb')]){_0x3e9dc4['push']({'type':_0x1886('0x39'),'content':_0xfc87cf(_0x1dd7eb,'REPLACE_TEXT',['\x22'+_0x4f56d5[_0x1886('0xb')]+'\x22','\x22'+_0x4f56d5[_0x1886('0x4')]+'\x22'])});continue;}if(null!=_0x4f56d5['add']['match'](/^ +$/)){_0x3e9dc4[_0x1886('0xf')]({'type':'insertion','content':_0xfc87cf(_0x1dd7eb,_0x1886('0x42'),_0xfc87cf(_0x1dd7eb,_0x1886('0x28'),_0x4f56d5[_0x1886('0x4')][_0x1886('0x27')]))});continue;}if(null!=_0x4f56d5['remove'][_0x1886('0x36')](/^ +$/)){_0x3e9dc4[_0x1886('0xf')]({'type':_0x1886('0x3a'),'content':_0xfc87cf(_0x1dd7eb,_0x1886('0x11'),_0xfc87cf(_0x1dd7eb,_0x1886('0x28'),_0x4f56d5[_0x1886('0xb')][_0x1886('0x27')]))});continue;}if(''!=_0x4f56d5[_0x1886('0x4')]){_0x3e9dc4[_0x1886('0xf')]({'type':_0x1886('0x13'),'content':_0xfc87cf(_0x1dd7eb,_0x1886('0x42'),'\x22'+_0x4f56d5['add']+'\x22')});continue;}_0x3e9dc4[_0x1886('0xf')]({'type':_0x1886('0x3a'),'content':_0xfc87cf(_0x1dd7eb,'*Remove:*\x20%0','\x22'+_0x4f56d5['remove']+'\x22')});continue;case _0x1886('0x26'):case'addObject':_0x3e9dc4[_0x1886('0xf')]({'type':'insertion','content':_0xfc87cf(_0x1dd7eb,'*Insert:*\x20%0',this[_0x1886('0x24')](_0x4f56d5[_0x1886('0x4a')],_0x4f56d5[_0x1886('0x29')]))});continue;case _0x1886('0x8'):case _0x1886('0x23'):_0x3e9dc4['push']({'type':_0x1886('0x3a'),'content':_0xfc87cf(_0x1dd7eb,_0x1886('0x11'),this[_0x1886('0x24')](_0x4f56d5[_0x1886('0x4a')],_0x4f56d5[_0x1886('0x29')]))});continue;case _0x1886('0x46'):_0x3e9dc4[_0x1886('0xf')]({'type':_0x1886('0x13'),'content':_0xfc87cf(_0x1dd7eb,_0x1886('0x49'),this[_0x1886('0x24')](_0x4f56d5[_0x1886('0x4a')],_0x4f56d5[_0x1886('0x29')]))});continue;case _0x1886('0x16'):_0x3e9dc4['push']({'type':_0x1886('0x3a'),'content':_0xfc87cf(_0x1dd7eb,_0x1886('0x3b'),this['getItemLabel'](_0x4f56d5[_0x1886('0x4a')],_0x4f56d5[_0x1886('0x29')]))});continue;case'addFormat':_0x325e3f[_0x1886('0xf')](_0x4f56d5[_0x1886('0x14')]);continue;case _0x1886('0x38'):_0x12cc0d[_0x1886('0xf')](_0x4f56d5[_0x1886('0x14')]);continue;default:_0x3e9dc4[_0x1886('0xf')](_0x4f56d5);}if(_0x325e3f[_0x1886('0x27')]){const _0x9083f1=_0x325e3f[_0x1886('0x21')](_0x5bb4de=>this[_0x1886('0x1b')][_0x1886('0x20')](_0x5bb4de)?this[_0x1886('0x1b')]['get'](_0x5bb4de):_0x5bb4de)[_0x1886('0x3')](',\x20');_0x3e9dc4[_0x1886('0xf')]({'type':_0x1886('0x2d'),'content':_0xfc87cf(this[_0x1886('0x12')],'*Set\x20format:*\x20%0',_0x9083f1)});}if(_0x12cc0d[_0x1886('0x27')]){const _0x288830=_0x12cc0d[_0x1886('0x21')](_0x3bff2b=>this[_0x1886('0x1b')]['has'](_0x3bff2b)?this[_0x1886('0x1b')]['get'](_0x3bff2b):_0x3bff2b)[_0x1886('0x3')](',\x20');_0x3e9dc4[_0x1886('0xf')]({'type':'format','content':_0xfc87cf(this[_0x1886('0x12')],_0x1886('0x3c'),_0x288830)});}return _0x3e9dc4;}['_handleCustomCallbackDescription'](_0x586059){for(const _0x3eb89c of this[_0x1886('0x2f')]){const _0x270688=_0x3eb89c(_0x586059);if(_0x270688&&_0x1886('0x2b')in _0x270688)return _0x270688;}}[_0x1886('0x4c')](_0x143a96,_0x45d4ed){const _0x36604f=_0x45d4ed[_0x1886('0x3e')],_0x3c3ab1=void 0x0===_0x36604f[_0x1886('0x47')]?'removeFormat':_0x1886('0xa');_0x143a96[_0x1886('0xf')]({'type':_0x3c3ab1,'key':_0x36604f['key']});}['_handleRenameSuggestionDescription'](_0x155227,_0x293495){_0x155227['push']({'type':_0x1886('0x2d'),'content':_0xfc87cf(this['_locale'],_0x1886('0x10'),this[_0x1886('0x24')](_0x293495[_0x1886('0x30')]()[_0x1886('0xe')]['nodeAfter'],0x1))});}[_0x1886('0x4b')](_0x2fd1a3,_0x35dd68,_0x394abb){if(this[_0x1886('0x3d')](_0x2fd1a3,_0x35dd68),_0x394abb&&_0x394abb['getFirstRange']()&&!_0x35dd68[_0x1886('0x30')]()[_0x1886('0xd')][_0x1886('0x19')](_0x394abb[_0x1886('0x30')]()['start'])){const _0x1c07de=_0x2fd1a3[_0x2fd1a3[_0x1886('0x27')]-0x1],_0x17f668=_0x1886('0x13')==_0x35dd68[_0x1886('0x2b')]?_0x1886('0x4'):_0x1886('0xb');_0x1c07de&&'text'==_0x1c07de[_0x1886('0x2b')]&&(_0x1c07de[_0x17f668]+='\x0a');}}}
|
|
23
|
+
const _0x3f31=['isEqual','indexOf','elementEnd','isEmpty','name','insertion','addEmptyContainer','start','set','subType','_handleRenameSuggestionDescription','_locale','match','end','key','label','text','getWalker','has','Container','*Split:*\x20%0','type','skip','_addDescriptionItems','registerAttributeLabel','_itemLabelsCallbacks','_resolveDescriptionItems','format','remove','item','ELEMENT_SPACE','_handleAttributeSuggestionDescription','deletion','addObject','EmptyContainer','normal','removeContainer','previousSibling','isObject','_itemLabels','*Change\x20to:*\x20%0','removeFormat','matchingCallback','element','quantity','get','$text','pop','join','getDescriptions','checkChild','add','getFirstRange','newValue','removeEmptyContainer','push','_schema','_customCallbacks','$1\x20$2','_handleCustomCallbackDescription','*Remove:*\x20%0','data','*Merge:*\x20%0','nodeAfter','Object','removeObject','map','nextSibling','_attributeLabels','*Set\x20format:*\x20%0','REPLACE_TEXT','attribute','*Insert:*\x20%0','softBreak','replace','registerElementLabel','length','_handleInsertRemoveSuggestionDescription','addFormat','function','$textProxy','getItemLabel'];(function(_0xfbf4b2,_0x3f3110){const _0x54e9bf=function(_0x2a8b06){while(--_0x2a8b06){_0xfbf4b2['push'](_0xfbf4b2['shift']());}};_0x54e9bf(++_0x3f3110);}(_0x3f31,0xa6));const _0x54e9=function(_0xfbf4b2,_0x3f3110){_0xfbf4b2=_0xfbf4b2-0x0;let _0x54e9bf=_0x3f31[_0xfbf4b2];return _0x54e9bf;};import{getTranslation as _0x4468d1}from'./utils/common-translations';import{priorities as _0x344f6f,insertToPriorityArray as _0x4c301b}from'ckeditor5/src/utils';import{renameAttributeKey as _0x69412e}from'./trackchangesediting';export default class f{constructor(_0x6868d7,_0x438c76){this[_0x54e9('0x37')]=[],this[_0x54e9('0x25')]=new Map(),this[_0x54e9('0x17')]=[],this['_attributeLabels']=new Map(),this[_0x54e9('0x36')]=_0x6868d7,this[_0x54e9('0x9')]=_0x438c76;}[_0x54e9('0x2f')](_0x22ecd9){const _0x3eaad8=[],_0x58d941=new Set(),_0x419f28=new Set();for(let _0x56d013=0x0;_0x56d013<_0x22ecd9[_0x54e9('0x4a')];_0x56d013++){const _0x9c82c5=_0x22ecd9[_0x56d013];if(!_0x9c82c5['isInContent'])continue;const _0x4eca2c=this[_0x54e9('0x39')](_0x9c82c5);if(_0x4eca2c){if(null!=_0x9c82c5[_0x54e9('0x7')]){if(_0x58d941[_0x54e9('0x10')](_0x9c82c5['subType']))continue;_0x58d941[_0x54e9('0x31')](_0x9c82c5[_0x54e9('0x7')]);}_0x3eaad8[_0x54e9('0x35')](_0x4eca2c);}else{if(_0x54e9('0x45')!=_0x9c82c5['type'])_0x54e9('0x3')!=_0x9c82c5[_0x54e9('0x13')]&&'deletion'!=_0x9c82c5[_0x54e9('0x13')]||this[_0x54e9('0x4b')](_0x3eaad8,_0x9c82c5,_0x22ecd9[_0x56d013+0x1]);else{const _0x37cd97=_0x9c82c5[_0x54e9('0x3b')][_0x54e9('0xc')];if(_0x419f28[_0x54e9('0x10')](_0x37cd97))continue;_0x419f28[_0x54e9('0x31')](_0x9c82c5['data'][_0x54e9('0xc')]),_0x37cd97==_0x69412e?this[_0x54e9('0x8')](_0x3eaad8,_0x9c82c5):this[_0x54e9('0x1d')](_0x3eaad8,_0x9c82c5);}}}return this['_resolveDescriptionItems'](_0x3eaad8);}['registerDescriptionCallback'](_0x2894b4){this[_0x54e9('0x37')]['push'](_0x2894b4);}[_0x54e9('0x49')](_0x2b1a97,_0x22653b,_0x2bd0fd=_0x344f6f[_0x54e9('0x21')]){_0x54e9('0x4d')==typeof _0x2b1a97?_0x4c301b(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2b1a97,'label':_0x22653b,'priority':_0x2bd0fd}):this[_0x54e9('0x25')][_0x54e9('0x6')](_0x2b1a97,_0x22653b);}[_0x54e9('0x16')](_0x146e0d,_0x2c5e1d){this['_attributeLabels'][_0x54e9('0x6')](_0x146e0d,_0x2c5e1d);}[_0x54e9('0x4f')](_0x25f4d4,_0x1a3cc7=0x1){let _0x5156ea;for(const _0x409a6a of this[_0x54e9('0x17')])if(_0x409a6a[_0x54e9('0x28')](_0x25f4d4)){_0x5156ea=_0x409a6a[_0x54e9('0xd')];break;}return _0x5156ea||(_0x5156ea=this['_itemLabels'][_0x54e9('0x2b')](_0x25f4d4[_0x54e9('0x2')])),_0x5156ea?_0x5156ea(_0x1a3cc7):0x1!==_0x1a3cc7?_0x1a3cc7+'\x20'+_0x25f4d4['name']+'s':''+_0x25f4d4['name'];}[_0x54e9('0x15')](_0x566447,_0x344945){const _0x46eb46=_0x344945[_0x54e9('0x32')]()[_0x54e9('0xf')](),_0xabd13a=_0x54e9('0x3')==_0x344945['type']?_0x54e9('0x31'):'remove';for(const _0x43e697 of _0x46eb46){const _0x913d80=_0x43e697['item'],_0x6973d6=_0x566447[_0x566447[_0x54e9('0x4a')]-0x1];if(_0x913d80['is'](_0x54e9('0x4e')))_0x6973d6&&_0x6973d6[_0x54e9('0x13')]['indexOf']('Container')>-0x1&&_0x566447[_0x54e9('0x2d')](),_0x6973d6&&_0x54e9('0xe')==_0x6973d6[_0x54e9('0x13')]?_0x6973d6[_0xabd13a]+=_0x913d80[_0x54e9('0x3b')]:_0x566447[_0x54e9('0x35')]({'type':_0x54e9('0xe'),'add':_0x54e9('0x31')==_0xabd13a?_0x913d80['data']:'','remove':'remove'==_0xabd13a?_0x913d80['data']:''});else{if(this[_0x54e9('0x36')][_0x54e9('0x24')](_0x913d80)){const _0x5db255=_0x913d80;if(_0x6973d6&&_0x6973d6[_0x54e9('0x13')][_0x54e9('0x51')](_0x54e9('0x11'))>-0x1&&_0x566447['pop'](),_0x54e9('0x0')==_0x43e697[_0x54e9('0x13')])continue;_0x6973d6&&_0x6973d6['type']==_0xabd13a+'Object'&&_0x6973d6[_0x54e9('0x29')][_0x54e9('0x2')]==_0x5db255[_0x54e9('0x2')]?_0x6973d6[_0x54e9('0x2a')]++:_0x566447[_0x54e9('0x35')]({'type':_0xabd13a+_0x54e9('0x3e'),'element':_0x5db255,'quantity':0x1}),_0x46eb46[_0x54e9('0x14')](_0x369607=>!(_0x54e9('0x0')==_0x369607['type']&&_0x369607[_0x54e9('0x1b')]==_0x913d80));}else{if(this[_0x54e9('0x36')][_0x54e9('0x30')](_0x913d80,_0x54e9('0x2c'))||_0x913d80['is'](_0x54e9('0x29'),_0x54e9('0x47'))){const _0x34879c=_0x913d80;if(_0x54e9('0x31')==_0xabd13a&&'elementStart'==_0x43e697[_0x54e9('0x13')]||'remove'==_0xabd13a&&_0x54e9('0x0')==_0x43e697[_0x54e9('0x13')])continue;if(_0x6973d6&&-0x1==_0x6973d6['type']['indexOf'](_0x54e9('0x11'))){_0x54e9('0xe')==_0x6973d6['type']&&(_0x6973d6[_0xabd13a]+='\x0a');continue;}let _0x201946;if(_0x201946='add'==_0xabd13a?_0x34879c[_0x54e9('0x41')]&&!this[_0x54e9('0x36')][_0x54e9('0x24')](_0x34879c[_0x54e9('0x41')])?_0x34879c['nextSibling']:null:_0x34879c[_0x54e9('0x23')]&&!this[_0x54e9('0x36')][_0x54e9('0x24')](_0x34879c['previousSibling'])?_0x34879c['previousSibling']:null,_0x34879c[_0x54e9('0x1')]||_0x201946&&_0x201946['isEmpty']){const _0x310ef2=_0x201946&&_0x201946[_0x54e9('0x1')]?_0x201946:_0x34879c;_0x6973d6&&_0x6973d6[_0x54e9('0x13')]==_0xabd13a+'EmptyContainer'&&_0x6973d6[_0x54e9('0x29')][_0x54e9('0x2')]==_0x310ef2['name']?_0x6973d6[_0x54e9('0x2a')]++:_0x566447[_0x54e9('0x35')]({'type':_0xabd13a+_0x54e9('0x20'),'element':_0x310ef2,'quantity':0x1});}else _0x566447['push']({'type':_0xabd13a+_0x54e9('0x11'),'element':_0x34879c});}}}}}[_0x54e9('0x18')](_0x315939){const _0x283b53=this[_0x54e9('0x9')],_0x4aee5b=[],_0x47c9ce=[],_0x3471f6=[];for(const _0x30ade3 of _0x315939)switch(_0x30ade3[_0x54e9('0x13')]){case _0x54e9('0xe'):if(_0x30ade3[_0x54e9('0x31')]=_0x30ade3[_0x54e9('0x31')][_0x54e9('0x48')](/(\S)\u000A+(\S)/g,_0x54e9('0x38'))[_0x54e9('0x48')](/\u000A/g,''),_0x30ade3[_0x54e9('0x1a')]=_0x30ade3[_0x54e9('0x1a')][_0x54e9('0x48')](/(\S)\u000A+(\S)/g,_0x54e9('0x38'))[_0x54e9('0x48')](/\u000A/g,''),''!=_0x30ade3[_0x54e9('0x31')]&&''!=_0x30ade3[_0x54e9('0x1a')]){_0x4aee5b[_0x54e9('0x35')]({'type':'replace','content':_0x4468d1(_0x283b53,_0x54e9('0x44'),['\x22'+_0x30ade3[_0x54e9('0x1a')]+'\x22','\x22'+_0x30ade3[_0x54e9('0x31')]+'\x22'])});continue;}if(null!=_0x30ade3[_0x54e9('0x31')][_0x54e9('0xa')](/^ +$/)){_0x4aee5b['push']({'type':_0x54e9('0x3'),'content':_0x4468d1(_0x283b53,_0x54e9('0x46'),_0x4468d1(_0x283b53,_0x54e9('0x1c'),_0x30ade3['add'][_0x54e9('0x4a')]))});continue;}if(null!=_0x30ade3['remove'][_0x54e9('0xa')](/^ +$/)){_0x4aee5b[_0x54e9('0x35')]({'type':_0x54e9('0x1e'),'content':_0x4468d1(_0x283b53,_0x54e9('0x3a'),_0x4468d1(_0x283b53,_0x54e9('0x1c'),_0x30ade3[_0x54e9('0x1a')][_0x54e9('0x4a')]))});continue;}if(''!=_0x30ade3[_0x54e9('0x31')]){_0x4aee5b[_0x54e9('0x35')]({'type':_0x54e9('0x3'),'content':_0x4468d1(_0x283b53,'*Insert:*\x20%0','\x22'+_0x30ade3[_0x54e9('0x31')]+'\x22')});continue;}_0x4aee5b[_0x54e9('0x35')]({'type':_0x54e9('0x1e'),'content':_0x4468d1(_0x283b53,_0x54e9('0x3a'),'\x22'+_0x30ade3[_0x54e9('0x1a')]+'\x22')});continue;case _0x54e9('0x4'):case _0x54e9('0x1f'):_0x4aee5b[_0x54e9('0x35')]({'type':_0x54e9('0x3'),'content':_0x4468d1(_0x283b53,'*Insert:*\x20%0',this[_0x54e9('0x4f')](_0x30ade3[_0x54e9('0x29')],_0x30ade3['quantity']))});continue;case _0x54e9('0x34'):case _0x54e9('0x3f'):_0x4aee5b[_0x54e9('0x35')]({'type':_0x54e9('0x1e'),'content':_0x4468d1(_0x283b53,_0x54e9('0x3a'),this[_0x54e9('0x4f')](_0x30ade3[_0x54e9('0x29')],_0x30ade3[_0x54e9('0x2a')]))});continue;case'addContainer':_0x4aee5b[_0x54e9('0x35')]({'type':_0x54e9('0x3'),'content':_0x4468d1(_0x283b53,_0x54e9('0x12'),this[_0x54e9('0x4f')](_0x30ade3[_0x54e9('0x29')],_0x30ade3['quantity']))});continue;case _0x54e9('0x22'):_0x4aee5b[_0x54e9('0x35')]({'type':_0x54e9('0x1e'),'content':_0x4468d1(_0x283b53,_0x54e9('0x3c'),this[_0x54e9('0x4f')](_0x30ade3[_0x54e9('0x29')],_0x30ade3[_0x54e9('0x2a')]))});continue;case _0x54e9('0x4c'):_0x47c9ce[_0x54e9('0x35')](_0x30ade3[_0x54e9('0xc')]);continue;case _0x54e9('0x27'):_0x3471f6['push'](_0x30ade3[_0x54e9('0xc')]);continue;default:_0x4aee5b[_0x54e9('0x35')](_0x30ade3);}if(_0x47c9ce[_0x54e9('0x4a')]){const _0x14725e=_0x47c9ce[_0x54e9('0x40')](_0x566cd4=>this[_0x54e9('0x42')][_0x54e9('0x10')](_0x566cd4)?this[_0x54e9('0x42')][_0x54e9('0x2b')](_0x566cd4):_0x566cd4)[_0x54e9('0x2e')](',\x20');_0x4aee5b[_0x54e9('0x35')]({'type':_0x54e9('0x19'),'content':_0x4468d1(this[_0x54e9('0x9')],_0x54e9('0x43'),_0x14725e)});}if(_0x3471f6[_0x54e9('0x4a')]){const _0x42361e=_0x3471f6[_0x54e9('0x40')](_0x377538=>this['_attributeLabels'][_0x54e9('0x10')](_0x377538)?this['_attributeLabels'][_0x54e9('0x2b')](_0x377538):_0x377538)[_0x54e9('0x2e')](',\x20');_0x4aee5b['push']({'type':_0x54e9('0x19'),'content':_0x4468d1(this['_locale'],'*Remove\x20format:*\x20%0',_0x42361e)});}return _0x4aee5b;}[_0x54e9('0x39')](_0x43cff5){for(const _0x49f5a6 of this['_customCallbacks']){const _0x4227a1=_0x49f5a6(_0x43cff5);if(_0x4227a1&&_0x54e9('0x13')in _0x4227a1)return _0x4227a1;}}[_0x54e9('0x1d')](_0x18d249,_0x517d10){const _0xf05a73=_0x517d10[_0x54e9('0x3b')],_0x4eea8a=void 0x0===_0xf05a73[_0x54e9('0x33')]?_0x54e9('0x27'):_0x54e9('0x4c');_0x18d249['push']({'type':_0x4eea8a,'key':_0xf05a73[_0x54e9('0xc')]});}['_handleRenameSuggestionDescription'](_0x1757b5,_0x2016a0){_0x1757b5[_0x54e9('0x35')]({'type':'format','content':_0x4468d1(this[_0x54e9('0x9')],_0x54e9('0x26'),this['getItemLabel'](_0x2016a0[_0x54e9('0x32')]()[_0x54e9('0x5')][_0x54e9('0x3d')],0x1))});}[_0x54e9('0x4b')](_0x36a3ba,_0x57ab83,_0x411ce8){if(this[_0x54e9('0x15')](_0x36a3ba,_0x57ab83),_0x411ce8&&_0x411ce8[_0x54e9('0x32')]()&&!_0x57ab83['getFirstRange']()[_0x54e9('0xb')][_0x54e9('0x50')](_0x411ce8['getFirstRange']()['start'])){const _0x245954=_0x36a3ba[_0x36a3ba['length']-0x1],_0x583fe7=_0x54e9('0x3')==_0x57ab83[_0x54e9('0x13')]?'add':_0x54e9('0x1a');_0x245954&&_0x54e9('0xe')==_0x245954['type']&&(_0x245954[_0x583fe7]+='\x0a');}}}
|
package/src/trackchanges.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3368=['getSuggestion','TrackChanges','Comments','plugins','editor','adapter','getSuggestions','get','pluginName','addSuggestionData','addSuggestion'];(function(_0x5acccd,_0x3368a1){var _0x35d1c8=function(_0x1b0147){while(--_0x1b0147){_0x5acccd['push'](_0x5acccd['shift']());}};_0x35d1c8(++_0x3368a1);}(_0x3368,0x1e1));var _0x35d1=function(_0x5acccd,_0x3368a1){_0x5acccd=_0x5acccd-0x0;var _0x35d1c8=_0x3368[_0x5acccd];return _0x35d1c8;};import{Plugin as _0x1581de}from'ckeditor5/src/core';import _0x220412 from'./trackchangesui';import _0x1d3ff1 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x1581de{static get['requires'](){return[_0x1d3ff1,_0x220412,_0x35d1('0x5')];}static get[_0x35d1('0x0')](){return _0x35d1('0x4');}set[_0x35d1('0x8')](_0x34b083){this[_0x35d1('0x7')]['plugins']['get'](_0x1d3ff1)[_0x35d1('0x8')]=_0x34b083;}get[_0x35d1('0x8')](){return this[_0x35d1('0x7')]['plugins'][_0x35d1('0xa')](_0x1d3ff1)[_0x35d1('0x8')];}[_0x35d1('0x2')](_0x58fe1c){return this['editor'][_0x35d1('0x6')][_0x35d1('0xa')](_0x1d3ff1)[_0x35d1('0x1')](_0x58fe1c);}[_0x35d1('0x9')]({skipNotAttached:_0x12e628=!0x1,toJSON:_0xa115b2=!0x1}={}){return this[_0x35d1('0x7')][_0x35d1('0x6')][_0x35d1('0xa')](_0x1d3ff1)[_0x35d1('0x9')]({'skipNotAttached':_0x12e628,'toJSON':_0xa115b2});}['getSuggestion'](_0x3dd8da){return this[_0x35d1('0x7')][_0x35d1('0x6')][_0x35d1('0xa')](_0x1d3ff1)[_0x35d1('0x3')](_0x3dd8da);}}
|
package/src/trackchangesdata.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f62=['config','get','TrackChangesDataGetter','editorCreator','trackChangesData.editorCreator','model','CommentsRepository','getSuggestions','_adapter','rootsAttributes','end','Pagination','map','trackChangesData','useAnonymousUser','plugins','getUser','data','Users','reduce','editor','getDataWithDiscardedSuggestions','function','getRootsAttributes','requires','document','div','getRootNames','result','track-changes-data-invalid-editor-creator','name','init','TrackChangesEditing','define','appendChild','pluginName','create','getDataWithAcceptedSuggestions'];(function(_0x1041af,_0x2f6295){const _0x42bf9b=function(_0x50659d){while(--_0x50659d){_0x1041af['push'](_0x1041af['shift']());}};_0x42bf9b(++_0x2f6295);}(_0x2f62,0xa8));const _0x42bf=function(_0x1041af,_0x2f6295){_0x1041af=_0x1041af-0x0;let _0x42bf9b=_0x2f62[_0x1041af];return _0x42bf9b;};import{Plugin as _0x1057f7}from'ckeditor5/src/core';import{CKEditorError as _0x4f8de8}from'ckeditor5/src/utils';import _0x1da17e from'./trackchangesediting';import{sanitizeEditorConfig as _0x5dd084}from'ckeditor5-collaboration/src/collaboration-core';const T=[_0x42bf('0x21')];export default class P extends _0x1057f7{static get[_0x42bf('0x8')](){return[_0x1da17e];}static get[_0x42bf('0x13')](){return'TrackChangesData';}['init'](){const _0x571622=this[_0x42bf('0x4')];if(_0x571622[_0x42bf('0x16')][_0x42bf('0x11')](_0x42bf('0x1a'),_0x1a4aba=>{const _0x27a785=_0x571622[_0x42bf('0x1b')][_0x42bf('0x9')]['getRootNames']()[_0x42bf('0x3')]((_0x227040,_0x206646)=>(_0x227040[_0x206646]='',_0x227040),{});return _0x571622['constructor'][_0x42bf('0x14')](_0x27a785,_0x1a4aba);}),_0x42bf('0x6')!=typeof _0x571622[_0x42bf('0x16')][_0x42bf('0x17')]('trackChangesData')['editorCreator'])throw new _0x4f8de8(_0x42bf('0xd'));}[_0x42bf('0x15')](_0x535b23){return N(this['editor'],!0x0,_0x535b23);}[_0x42bf('0x5')](_0x1b2ea7){return N(this['editor'],!0x1,_0x1b2ea7);}}class D extends _0x1057f7{static get[_0x42bf('0x13')](){return _0x42bf('0x18');}constructor(_0xc9da3d){super(_0xc9da3d),this[_0x42bf('0xc')]=_0x42bf('0x20');}[_0x42bf('0xf')](){this[_0x42bf('0x4')][_0x42bf('0x25')][_0x42bf('0x17')](_0x42bf('0x1c'))[_0x42bf('0x1e')]={'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[_0x42bf('0x4')][_0x42bf('0x25')][_0x42bf('0x17')](_0x42bf('0x10'))[_0x42bf('0x1e')]=null;}}function v(_0x4aaf08){return void 0x0!==_0x4aaf08['getRootsAttributes'];}async function N(_0x4ae6ba,_0x503647,_0x359302){const _0x3e9931=_0x5dd084(_0x4ae6ba,T);_0x3e9931[_0x42bf('0x25')]['push'](_0x1da17e,D),_0x3e9931[_0x42bf('0x1f')]=v(_0x4ae6ba)?_0x4ae6ba[_0x42bf('0x7')]():void 0x0;const _0x58307b=document['createDocumentFragment'](),_0x4dc0de=_0x4ae6ba['config']['get'](_0x42bf('0x23'))[_0x42bf('0x19')],_0x4fe3dd=await _0x4dc0de(_0x3e9931,()=>function(_0x357ef3){const _0x2db206=document['createElement'](_0x42bf('0xa'));return _0x357ef3[_0x42bf('0x12')](_0x2db206),_0x2db206;}(_0x58307b));!function(_0x24ff16,_0x514f6a){const _0x31489f=_0x24ff16[_0x42bf('0x1b')][_0x42bf('0x9')][_0x42bf('0xb')]()['reduce']((_0x29d3d3,_0x1978ae)=>(_0x29d3d3[_0x1978ae]=_0x24ff16['data'][_0x42bf('0x17')]({'rootName':_0x1978ae}),_0x29d3d3),{}),_0x59d505=_0x24ff16['plugins']['get'](_0x42bf('0x2'))['users'][_0x42bf('0x22')](_0x2df68b=>({'id':_0x2df68b['id'],'name':_0x2df68b[_0x42bf('0xe')]})),_0x1d5d0e=_0x24ff16[_0x42bf('0x25')]['get'](_0x42bf('0x10'))[_0x42bf('0x1d')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xf80a8a=_0x514f6a['plugins']['get'](_0x42bf('0x2')),_0x1188e7=_0x514f6a[_0x42bf('0x25')][_0x42bf('0x17')](_0x42bf('0x10'));for(const _0x5c9823 of _0x59d505)_0xf80a8a[_0x42bf('0x0')](_0x5c9823['id'])||_0xf80a8a['addUser'](_0x5c9823);_0xf80a8a['me']||_0xf80a8a[_0x42bf('0x24')]();for(const _0x17b75c of _0x1d5d0e)_0x1188e7['addSuggestionData'](_0x17b75c);_0x514f6a[_0x42bf('0x1')]['set'](_0x31489f);}(_0x4ae6ba,_0x4fe3dd),_0x4fe3dd['execute'](_0x503647?'acceptAllSuggestions':'discardAllSuggestions');const _0x99ad4c=v(_0x4fe3dd)?_0x4fe3dd['getFullData'](_0x359302):_0x4fe3dd[_0x42bf('0x1')][_0x42bf('0x17')](_0x359302);return await _0x4fe3dd['destroy'](),_0x99ad4c;}
|