@ckeditor/ckeditor5-track-changes 35.4.0 → 36.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 +3 -3
- package/build/translations/ar.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/contexts.json +6 -3
- package/lang/translations/ar.po +16 -4
- package/lang/translations/az.po +16 -4
- package/lang/translations/bg.po +16 -4
- package/lang/translations/bn.po +16 -4
- package/lang/translations/ca.po +16 -4
- package/lang/translations/cs.po +16 -4
- package/lang/translations/da.po +16 -4
- package/lang/translations/de.po +16 -4
- package/lang/translations/el.po +16 -4
- package/lang/translations/en-au.po +16 -4
- package/lang/translations/en.po +16 -4
- package/lang/translations/es.po +16 -4
- package/lang/translations/et.po +16 -4
- package/lang/translations/fi.po +16 -4
- package/lang/translations/fr.po +16 -4
- package/lang/translations/gl.po +16 -4
- package/lang/translations/he.po +16 -4
- package/lang/translations/hi.po +16 -4
- package/lang/translations/hr.po +16 -4
- package/lang/translations/hu.po +16 -4
- package/lang/translations/id.po +16 -4
- package/lang/translations/it.po +16 -4
- package/lang/translations/ja.po +16 -4
- package/lang/translations/ko.po +16 -4
- package/lang/translations/lt.po +16 -4
- package/lang/translations/lv.po +16 -4
- package/lang/translations/ms.po +16 -4
- package/lang/translations/nl.po +16 -4
- package/lang/translations/no.po +16 -4
- package/lang/translations/pl.po +16 -4
- package/lang/translations/pt-br.po +16 -4
- package/lang/translations/pt.po +16 -4
- package/lang/translations/ro.po +16 -4
- package/lang/translations/ru.po +16 -4
- package/lang/translations/sk.po +16 -4
- package/lang/translations/sr-latn.po +32 -20
- package/lang/translations/sr.po +33 -21
- package/lang/translations/sv.po +16 -4
- package/lang/translations/th.po +16 -4
- package/lang/translations/tk.po +16 -4
- package/lang/translations/tr.po +16 -4
- package/lang/translations/tt.po +16 -4
- package/lang/translations/uk.po +16 -4
- package/lang/translations/ur.po +16 -4
- package/lang/translations/vi.po +16 -4
- package/lang/translations/zh-cn.po +16 -4
- package/lang/translations/zh.po +16 -4
- package/package.json +4 -4
- package/src/commands/acceptsuggestioncommand.js +2 -2
- package/src/commands/discardsuggestioncommand.js +2 -2
- package/src/commands/executeonallsuggestionscommand.js +2 -2
- package/src/commands/executeonselectedsuggestionscommand.js +2 -2
- package/src/commands/trackchangescommand.js +2 -2
- package/src/index.js +1 -1
- package/src/integrations/alignment.js +2 -2
- package/src/integrations/basicstyles.js +2 -2
- package/src/integrations/blockquote.js +2 -2
- package/src/integrations/ckbox.js +2 -2
- package/src/integrations/codeblock.js +2 -2
- package/src/integrations/comments.js +2 -2
- package/src/integrations/deletecommand.js +2 -2
- package/src/integrations/documentlist.js +2 -2
- package/src/integrations/documentlistproperties.js +2 -2
- package/src/integrations/entercommand.js +2 -2
- package/src/integrations/findandreplace.js +23 -0
- package/src/integrations/font.js +2 -2
- package/src/integrations/heading.js +2 -2
- package/src/integrations/highlight.js +2 -2
- package/src/integrations/horizontalline.js +2 -2
- package/src/integrations/htmlembed.js +2 -2
- package/src/integrations/image.js +2 -2
- package/src/integrations/imagereplace.js +23 -0
- package/src/integrations/importword.js +2 -2
- package/src/integrations/indent.js +2 -2
- package/src/integrations/inputcommand.js +2 -2
- package/src/integrations/link.js +2 -2
- package/src/integrations/list.js +2 -2
- package/src/integrations/listproperties.js +2 -2
- package/src/integrations/mediaembed.js +2 -2
- package/src/integrations/mention.js +2 -2
- package/src/integrations/pagebreak.js +2 -2
- package/src/integrations/paragraph.js +2 -2
- package/src/integrations/removeformat.js +2 -2
- package/src/integrations/restrictededitingmode.js +2 -2
- package/src/integrations/shiftentercommand.js +2 -2
- package/src/integrations/standardeditingmode.js +2 -2
- package/src/integrations/style.js +2 -2
- package/src/integrations/table.js +2 -2
- package/src/integrations/tablecaption.js +2 -2
- package/src/integrations/tableclipboard.js +2 -2
- package/src/integrations/tablecolumnresize.js +2 -2
- package/src/integrations/tableheadings.js +2 -2
- package/src/integrations/tablemergesplit.js +2 -2
- package/src/integrations/tableproperties.js +23 -0
- package/src/integrations/title.js +2 -2
- package/src/integrations/undo.js +2 -2
- package/src/integrations/utils.js +2 -2
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.js +2 -2
- package/src/trackchanges.js +2 -2
- package/src/trackchangesdata.js +2 -2
- package/src/trackchangesediting.js +2 -2
- package/src/trackchangesui.js +2 -2
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.js +2 -2
- package/src/ui/view/suggestionthreadview.js +2 -2
- package/src/utils/common-translations.js +2 -2
- package/src/utils/utils.js +2 -2
package/src/suggestion.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3209=['isIntersecting','size','getMultiRangeId','head','end','decorate','map','getRanges','add','_onAccept','subType','removeMarker','getMarkers','nodeBefore','getItems','_saved','@external','getMarkerNames','author','isMultiRange','commentThread','from','removeAttribute','getAllAdjacentSuggestions','start','change','_model','getFirstMarker','data','setAttribute','next','delete','get','discard','isIntersectingWithRange','getRange','filter','attributes','removeMarkers','createdAt','set','split','previous','clear','_onAttributesChange','nodeAfter','creator','onAttributesChange','hasComments','isInContent','onAccept','_markerNames','push','_onDiscard','type','getFirstRange','substr','authoredAt','addMarkerName','accept'];(function(_0x289cc0,_0x320919){const _0x3ef90a=function(_0x45c2e5){while(--_0x45c2e5){_0x289cc0['push'](_0x289cc0['shift']());}};_0x3ef90a(++_0x320919);}(_0x3209,0x6e));const _0x3ef9=function(_0x289cc0,_0x320919){_0x289cc0=_0x289cc0-0x0;let _0x3ef90a=_0x3209[_0x289cc0];return _0x3ef90a;};import{Element as _0x73cfc3}from'ckeditor5/src/engine';import{ObservableMixin as _0x5ca108,mix as _0x63632,uid as _0x1adafa}from'ckeditor5/src/utils';import{cloneDeep as _0x255cac,isEqual as _0x1ce58c,set as _0x2aeae1,unset as _0x50b38e}from'lodash-es';export default class o{constructor(_0x351fbc,_0xe08bdb){this['id']=_0xe08bdb['id'],this[_0x3ef9('0x4')]=_0xe08bdb[_0x3ef9('0x4')],this[_0x3ef9('0x14')]=_0xe08bdb[_0x3ef9('0x14')]||null,this[_0x3ef9('0x1c')]=_0xe08bdb[_0x3ef9('0x1c')],this[_0x3ef9('0x38')]=_0xe08bdb[_0x3ef9('0x38')]||_0xe08bdb['author'],this['isExternal']=Boolean(_0xe08bdb[_0x3ef9('0x2f')]&&_0xe08bdb[_0x3ef9('0x2f')][_0x3ef9('0x1a')]),this[_0x3ef9('0x26')]=null,this[_0x3ef9('0x24')]=_0x351fbc,this[_0x3ef9('0x13')]=_0xe08bdb[_0x3ef9('0x0')],this[_0x3ef9('0x3')]=_0xe08bdb['onDiscard'],this[_0x3ef9('0x36')]=_0xe08bdb[_0x3ef9('0x39')],this['_markerNames']=new Set(),this[_0x3ef9('0x31')]=null,this[_0x3ef9('0x32')](_0x3ef9('0x7'),null),this[_0x3ef9('0x32')](_0x3ef9('0x2f'),_0xe08bdb[_0x3ef9('0x2f')]||{}),this[_0x3ef9('0x32')](_0x3ef9('0x34'),null),this[_0x3ef9('0x32')](_0x3ef9('0x28'),null),this[_0x3ef9('0x32')](_0x3ef9('0x1e'),null),this['set'](_0x3ef9('0x19'),!0x1),this[_0x3ef9('0xf')](_0x3ef9('0x9')),this[_0x3ef9('0xf')]('discard');}get[_0x3ef9('0xd')](){let _0x53a211=this;for(;_0x53a211[_0x3ef9('0x34')];)_0x53a211=_0x53a211[_0x3ef9('0x34')];return _0x53a211;}get[_0x3ef9('0x3a')](){return!!this['commentThread']&&this[_0x3ef9('0x1e')]['length']>0x0;}get[_0x3ef9('0x1d')](){if(0x0==this[_0x3ef9('0x1')][_0x3ef9('0xb')])return!0x1;return 0x6==Array[_0x3ef9('0x1f')](this[_0x3ef9('0x1')])[0x0][_0x3ef9('0x33')](':')['length'];}get[_0x3ef9('0x3b')](){return null!==this[_0x3ef9('0x25')]();}[_0x3ef9('0x8')](_0xc64907){this[_0x3ef9('0x1')][_0x3ef9('0x12')](_0xc64907);}[_0x3ef9('0x1b')](){return Array[_0x3ef9('0x1f')](this['_markerNames']);}[_0x3ef9('0x16')](){return this['getMarkerNames']()['map'](_0x4c9856=>this[_0x3ef9('0x24')]['markers'][_0x3ef9('0x2a')](_0x4c9856))[_0x3ef9('0x2e')](_0x75c6e2=>_0x75c6e2);}['getFirstMarker'](){return this[_0x3ef9('0x16')]()[0x0]||null;}[_0x3ef9('0x30')](){this[_0x3ef9('0x24')][_0x3ef9('0x23')](_0x4c9699=>{for(const _0xfea378 of this['getMarkers']())_0x4c9699['removeMarker'](_0xfea378);}),this[_0x3ef9('0x1')][_0x3ef9('0x35')]();}[_0x3ef9('0x15')](_0x40a733){this[_0x3ef9('0x24')][_0x3ef9('0x23')](_0x4ad4f7=>{_0x4ad4f7[_0x3ef9('0x15')](_0x40a733);}),this['_markerNames'][_0x3ef9('0x29')](_0x40a733);}['addRange'](_0x135d0a){const _0x48a71b='suggestion:'+this[_0x3ef9('0x4')]+':'+this['subType']+':'+this['id']+':'+this[_0x3ef9('0x38')]['id']+':'+o[_0x3ef9('0xc')]();this[_0x3ef9('0x8')](_0x48a71b),this['_model'][_0x3ef9('0x23')](_0xf4fd43=>{_0xf4fd43['addMarker'](_0x48a71b,{'range':_0x135d0a,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x3ef9('0x2c')](_0x5b4e3d){for(const _0x106506 of this['getRanges']())if(_0x106506[_0x3ef9('0xa')](_0x5b4e3d))return!0x0;return!0x1;}[_0x3ef9('0x11')](){return this['getMarkers']()[_0x3ef9('0x10')](_0xa6ba9a=>_0xa6ba9a[_0x3ef9('0x2d')]());}['getItems'](){return this[_0x3ef9('0x11')]()['reduce']((_0x1a77b7,_0x3cc473)=>[..._0x1a77b7,..._0x3cc473[_0x3ef9('0x18')]()],[]);}[_0x3ef9('0x5')](){return this[_0x3ef9('0x25')]()[_0x3ef9('0x2d')]();}['getContainedElement'](){const _0x3bcefd=this['getRanges']();if(0x1!=_0x3bcefd['length'])return null;const _0x51d73a=_0x3bcefd[0x0],_0x28eb66=_0x51d73a[_0x3ef9('0x22')][_0x3ef9('0x37')],_0x4d1e33=_0x51d73a[_0x3ef9('0xe')][_0x3ef9('0x17')];return _0x28eb66 instanceof _0x73cfc3?_0x28eb66!=_0x4d1e33?null:_0x28eb66:null;}[_0x3ef9('0x9')](){this[_0x3ef9('0x13')](this[_0x3ef9('0x11')](),this[_0x3ef9('0x26')],this[_0x3ef9('0x2f')]),this[_0x3ef9('0x30')]();}[_0x3ef9('0x2b')](){this[_0x3ef9('0x3')](this[_0x3ef9('0x11')](),this[_0x3ef9('0x26')],this[_0x3ef9('0x2f')]),this[_0x3ef9('0x30')]();}[_0x3ef9('0x21')](){const _0x25063d=[];let _0x29bad8=this[_0x3ef9('0xd')];for(;_0x29bad8;)_0x25063d[_0x3ef9('0x2')](_0x29bad8),_0x29bad8=_0x29bad8[_0x3ef9('0x28')];return _0x25063d;}[_0x3ef9('0x27')](_0x16f2e2,_0xd30006){const _0x29b8d9=_0x255cac(this[_0x3ef9('0x2f')]);_0x2aeae1(_0x29b8d9,_0x16f2e2,_0xd30006),_0x1ce58c(_0x29b8d9,this[_0x3ef9('0x2f')])||(this[_0x3ef9('0x2f')]=_0x29b8d9,this[_0x3ef9('0x36')](_0x29b8d9));}[_0x3ef9('0x20')](_0x59a2b3){const _0x3db005=_0x255cac(this['attributes']);_0x50b38e(_0x3db005,_0x59a2b3),_0x1ce58c(_0x3db005,this[_0x3ef9('0x2f')])||(this[_0x3ef9('0x2f')]=_0x3db005,this[_0x3ef9('0x36')](this[_0x3ef9('0x2f')]));}['toJSON'](){return{'id':this['id'],'type':this[_0x3ef9('0x14')]?this['type']+':'+this[_0x3ef9('0x14')]:this[_0x3ef9('0x4')],'authorId':this['creator']['id'],'createdAt':this[_0x3ef9('0x31')],'hasComments':this[_0x3ef9('0x3a')],'data':this[_0x3ef9('0x26')],'attributes':this[_0x3ef9('0x2f')]};}static['getMultiRangeId'](){return _0x1adafa()[_0x3ef9('0x6')](0x1,0x5);}}_0x63632(o,_0x5ca108);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5d89=['$1\x20$2','registerDescriptionCallback','push','*Split:*\x20%0','textProxy','Container','isEmpty','start','addObject','_resolveDescriptionItems','elementEnd','get','_customCallbacks','checkChild','getFirstRange','getItemLabel','data','ELEMENT_SPACE','name','_schema','REPLACE_TEXT','match','insertion','function','*Remove:*\x20%0','length','elementStart','removeContainer','Object','getDescriptions','element','text','isEqual','isObject','_itemLabels','end','item','remove','removeEmptyContainer','*Merge:*\x20%0','EmptyContainer','*Insert:*\x20%0','type','softBreak','indexOf','removeObject','quantity','registerElementLabel','_locale','nextSibling','add','_addDescriptionItems','addEmptyContainer','getWalker','matchingCallback','replace','previousSibling','_itemLabelsCallbacks','deletion','$text'];(function(_0x308abe,_0x5d8932){const _0x1610dc=function(_0x51e90a){while(--_0x51e90a){_0x308abe['push'](_0x308abe['shift']());}};_0x1610dc(++_0x5d8932);}(_0x5d89,0x130));const _0x1610=function(_0x308abe,_0x5d8932){_0x308abe=_0x308abe-0x0;let _0x1610dc=_0x5d89[_0x308abe];return _0x1610dc;};import{getTranslation as _0x26adf6}from'./utils/common-translations';import{priorities as _0x272fb0,insertToPriorityArray as _0x16b162}from'ckeditor5/src/utils';export default class f{constructor(_0x5313c2,_0x1871d5){this[_0x1610('0x8')]=[],this[_0x1610('0x1e')]=new Map(),this['_itemLabelsCallbacks']=[],this[_0x1610('0xf')]=_0x5313c2,this['_locale']=_0x1871d5;}[_0x1610('0x19')](_0x4f6e08){const _0x153de1=[];for(let _0x1f3bec=0x0;_0x1f3bec<_0x4f6e08[_0x1610('0x15')];_0x1f3bec++){const _0x3bdd8c=_0x4f6e08[_0x1f3bec];if(!_0x3bdd8c['isInContent'])continue;let _0x743f5e=!0x1;for(const _0x2324e7 of this[_0x1610('0x8')]){const _0x3685fe=_0x2324e7(_0x3bdd8c);if(_0x3685fe){_0x3685fe[_0x1610('0x26')]&&_0x153de1[_0x1610('0x3a')](_0x3685fe),_0x743f5e=!0x0;break;}}if(!_0x743f5e){this[_0x1610('0x2f')](_0x153de1,_0x3bdd8c);const _0x265c0f=_0x4f6e08[_0x1f3bec+0x1];if(_0x265c0f&&!_0x3bdd8c[_0x1610('0xa')]()[_0x1610('0x1f')][_0x1610('0x1c')](_0x265c0f[_0x1610('0xa')]()[_0x1610('0x3')])){const _0x4aaf97=_0x153de1[_0x153de1[_0x1610('0x15')]-0x1],_0x4dc529=_0x1610('0x12')==_0x3bdd8c[_0x1610('0x26')]?_0x1610('0x2e'):'remove';_0x4aaf97&&'text'==_0x4aaf97[_0x1610('0x26')]&&(_0x4aaf97[_0x4dc529]+='\x0a');}}}return this['_resolveDescriptionItems'](_0x153de1);}[_0x1610('0x39')](_0x57424b){this[_0x1610('0x8')][_0x1610('0x3a')](_0x57424b);}[_0x1610('0x2b')](_0x30491e,_0x54386a,_0x2eaae9=_0x272fb0['normal']){_0x1610('0x13')==typeof _0x30491e?_0x16b162(this[_0x1610('0x35')],{'matchingCallback':_0x30491e,'label':_0x54386a,'priority':_0x2eaae9}):this[_0x1610('0x1e')]['set'](_0x30491e,_0x54386a);}[_0x1610('0xb')](_0x5bf834,_0x10643d=0x1){let _0x57c73e;for(const _0x4b0abd of this[_0x1610('0x35')])if(_0x4b0abd[_0x1610('0x32')](_0x5bf834)){_0x57c73e=_0x4b0abd['label'];break;}return _0x57c73e||(_0x57c73e=this[_0x1610('0x1e')][_0x1610('0x7')](_0x5bf834[_0x1610('0xe')])),_0x57c73e?_0x57c73e(_0x10643d):0x1!==_0x10643d?_0x10643d+'\x20'+_0x5bf834[_0x1610('0xe')]+'s':''+_0x5bf834[_0x1610('0xe')];}['_addDescriptionItems'](_0x5141d6,_0x12abf3){const _0x3f270c=_0x12abf3[_0x1610('0xa')]()[_0x1610('0x31')](),_0x23841d=_0x1610('0x12')==_0x12abf3[_0x1610('0x26')]?_0x1610('0x2e'):'remove';for(const _0x309a33 of _0x3f270c){const _0x1e9bea=_0x309a33['item'],_0x1b1e35=_0x5141d6[_0x5141d6[_0x1610('0x15')]-0x1];if(_0x1e9bea['is'](_0x1610('0x0')))_0x1b1e35&&_0x1b1e35[_0x1610('0x26')]['indexOf']('Container')>-0x1&&_0x5141d6['pop'](),_0x1b1e35&&_0x1610('0x1b')==_0x1b1e35[_0x1610('0x26')]?_0x1b1e35[_0x23841d]+=_0x1e9bea[_0x1610('0xc')]:_0x5141d6[_0x1610('0x3a')]({'type':_0x1610('0x1b'),'add':_0x1610('0x2e')==_0x23841d?_0x1e9bea[_0x1610('0xc')]:'','remove':_0x1610('0x21')==_0x23841d?_0x1e9bea['data']:''});else{if(this['_schema']['isObject'](_0x1e9bea)){if(_0x1b1e35&&_0x1b1e35['type'][_0x1610('0x28')](_0x1610('0x1'))>-0x1&&_0x5141d6['pop'](),_0x1610('0x6')==_0x309a33[_0x1610('0x26')])continue;_0x1b1e35&&_0x1b1e35[_0x1610('0x26')]==_0x23841d+_0x1610('0x18')&&_0x1b1e35[_0x1610('0x1a')]['name']==_0x1e9bea[_0x1610('0xe')]?_0x1b1e35[_0x1610('0x2a')]++:_0x5141d6[_0x1610('0x3a')]({'type':_0x23841d+_0x1610('0x18'),'element':_0x1e9bea,'quantity':0x1}),_0x3f270c['skip'](_0x3961cf=>!(_0x1610('0x6')==_0x3961cf[_0x1610('0x26')]&&_0x3961cf[_0x1610('0x20')]==_0x1e9bea));}else{if(this['_schema'][_0x1610('0x9')](_0x1e9bea,_0x1610('0x37'))||_0x1e9bea['is']('element',_0x1610('0x27'))){if(_0x1610('0x2e')==_0x23841d&&_0x1610('0x16')==_0x309a33[_0x1610('0x26')]||_0x1610('0x21')==_0x23841d&&'elementEnd'==_0x309a33[_0x1610('0x26')])continue;if(_0x1b1e35&&-0x1==_0x1b1e35[_0x1610('0x26')][_0x1610('0x28')](_0x1610('0x1'))){_0x1610('0x1b')==_0x1b1e35[_0x1610('0x26')]&&(_0x1b1e35[_0x23841d]+='\x0a');continue;}let _0x53b9a2;if(_0x53b9a2=_0x1610('0x2e')==_0x23841d?_0x1e9bea[_0x1610('0x2d')]&&!this['_schema']['isObject'](_0x1e9bea['nextSibling'])?_0x1e9bea['nextSibling']:null:_0x1e9bea[_0x1610('0x34')]&&!this[_0x1610('0xf')][_0x1610('0x1d')](_0x1e9bea[_0x1610('0x34')])?_0x1e9bea[_0x1610('0x34')]:null,_0x1e9bea[_0x1610('0x2')]||_0x53b9a2&&_0x53b9a2['isEmpty']){const _0x2cb29d=_0x53b9a2&&_0x53b9a2['isEmpty']?_0x53b9a2:_0x1e9bea;_0x1b1e35&&_0x1b1e35[_0x1610('0x26')]==_0x23841d+_0x1610('0x24')&&_0x1b1e35[_0x1610('0x1a')][_0x1610('0xe')]==_0x2cb29d['name']?_0x1b1e35['quantity']++:_0x5141d6[_0x1610('0x3a')]({'type':_0x23841d+_0x1610('0x24'),'element':_0x2cb29d,'quantity':0x1});}else _0x5141d6[_0x1610('0x3a')]({'type':_0x23841d+_0x1610('0x1'),'element':_0x1e9bea});}}}}}[_0x1610('0x5')](_0x707ccb){const _0x4530e7=this[_0x1610('0x2c')],_0x40e093=[];for(const _0x1b3ea of _0x707ccb){switch(_0x1b3ea[_0x1610('0x26')]){case _0x1610('0x1b'):if(_0x1b3ea[_0x1610('0x2e')]=_0x1b3ea['add'][_0x1610('0x33')](/(\S)\u000A+(\S)/g,_0x1610('0x38'))[_0x1610('0x33')](/\u000A/g,''),_0x1b3ea[_0x1610('0x21')]=_0x1b3ea[_0x1610('0x21')][_0x1610('0x33')](/(\S)\u000A+(\S)/g,_0x1610('0x38'))['replace'](/\u000A/g,''),''!=_0x1b3ea[_0x1610('0x2e')]&&''!=_0x1b3ea['remove']){_0x40e093[_0x1610('0x3a')]({'type':_0x1610('0x33'),'content':_0x26adf6(_0x4530e7,_0x1610('0x10'),['\x22'+_0x1b3ea[_0x1610('0x21')]+'\x22','\x22'+_0x1b3ea[_0x1610('0x2e')]+'\x22'])});continue;}if(null!=_0x1b3ea[_0x1610('0x2e')][_0x1610('0x11')](/^ +$/)){_0x40e093[_0x1610('0x3a')]({'type':_0x1610('0x12'),'content':_0x26adf6(_0x4530e7,_0x1610('0x25'),_0x26adf6(_0x4530e7,_0x1610('0xd'),_0x1b3ea[_0x1610('0x2e')][_0x1610('0x15')]))});continue;}if(null!=_0x1b3ea['remove'][_0x1610('0x11')](/^ +$/)){_0x40e093[_0x1610('0x3a')]({'type':_0x1610('0x36'),'content':_0x26adf6(_0x4530e7,'*Remove:*\x20%0',_0x26adf6(_0x4530e7,'ELEMENT_SPACE',_0x1b3ea[_0x1610('0x21')][_0x1610('0x15')]))});continue;}if(''!=_0x1b3ea['add']){_0x40e093['push']({'type':_0x1610('0x12'),'content':_0x26adf6(_0x4530e7,_0x1610('0x25'),'\x22'+_0x1b3ea[_0x1610('0x2e')]+'\x22')});continue;}_0x40e093['push']({'type':'deletion','content':_0x26adf6(_0x4530e7,'*Remove:*\x20%0','\x22'+_0x1b3ea[_0x1610('0x21')]+'\x22')});continue;case _0x1610('0x30'):case _0x1610('0x4'):_0x40e093[_0x1610('0x3a')]({'type':'insertion','content':_0x26adf6(_0x4530e7,_0x1610('0x25'),this[_0x1610('0xb')](_0x1b3ea[_0x1610('0x1a')],_0x1b3ea['quantity']))});continue;case _0x1610('0x22'):case _0x1610('0x29'):_0x40e093[_0x1610('0x3a')]({'type':_0x1610('0x36'),'content':_0x26adf6(_0x4530e7,_0x1610('0x14'),this[_0x1610('0xb')](_0x1b3ea[_0x1610('0x1a')],_0x1b3ea[_0x1610('0x2a')]))});continue;case'addContainer':_0x40e093[_0x1610('0x3a')]({'type':_0x1610('0x12'),'content':_0x26adf6(_0x4530e7,_0x1610('0x3b'),this[_0x1610('0xb')](_0x1b3ea['element'],_0x1b3ea[_0x1610('0x2a')]))});continue;case _0x1610('0x17'):_0x40e093[_0x1610('0x3a')]({'type':_0x1610('0x36'),'content':_0x26adf6(_0x4530e7,_0x1610('0x23'),this[_0x1610('0xb')](_0x1b3ea['element'],_0x1b3ea[_0x1610('0x2a')]))});continue;}_0x40e093['push'](_0x1b3ea);}return _0x40e093;}}
|
package/src/trackchanges.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3401=['getSuggestions','getSuggestion','Comments','get','pluginName','addSuggestionData','addSuggestion','adapter','plugins','editor'];(function(_0x3bb1b8,_0x3401ae){var _0x3bab64=function(_0x404868){while(--_0x404868){_0x3bb1b8['push'](_0x3bb1b8['shift']());}};_0x3bab64(++_0x3401ae);}(_0x3401,0x15e));var _0x3bab=function(_0x3bb1b8,_0x3401ae){_0x3bb1b8=_0x3bb1b8-0x0;var _0x3bab64=_0x3401[_0x3bb1b8];return _0x3bab64;};import{Plugin as _0x124aff}from'ckeditor5/src/core';import _0x4d11d2 from'./trackchangesui';import _0x5176dc from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x124aff{static get['requires'](){return[_0x5176dc,_0x4d11d2,_0x3bab('0x2')];}static get[_0x3bab('0x4')](){return'TrackChanges';}set[_0x3bab('0x7')](_0xc716fc){this[_0x3bab('0x9')]['plugins'][_0x3bab('0x3')](_0x5176dc)[_0x3bab('0x7')]=_0xc716fc;}get[_0x3bab('0x7')](){return this[_0x3bab('0x9')]['plugins']['get'](_0x5176dc)[_0x3bab('0x7')];}[_0x3bab('0x6')](_0x50421d){return this[_0x3bab('0x9')][_0x3bab('0x8')][_0x3bab('0x3')](_0x5176dc)[_0x3bab('0x5')](_0x50421d);}['getSuggestions'](_0x137c0b){return this[_0x3bab('0x9')][_0x3bab('0x8')][_0x3bab('0x3')](_0x5176dc)[_0x3bab('0x0')](_0x137c0b);}[_0x3bab('0x1')](_0x1b667a){return this[_0x3bab('0x9')][_0x3bab('0x8')][_0x3bab('0x3')](_0x5176dc)[_0x3bab('0x1')](_0x1b667a);}}
|
package/src/trackchangesdata.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf511=['TrackChangesData','discardAllSuggestions','requires','acceptAllSuggestions','CommentsRepository','string','_adapter','config','appendChild','from','TrackChangesEditing','filter','WebSocketGateway','get','trackChangesData','plugins','addUser','every','getUser','WordCount','create','map','data','has','find','context','includes','reduce','result','pluginName','useAnonymousUser','editorCreator','addSuggestionData','Autosave','editor','Pagination','execute','track-changes-data-invalid-editor-creator','concat','constructor','function','users','name','extraPlugins','TrackChangesDataGetter','createDocumentFragment','model','set','Users','destroy'];(function(_0x8ec17b,_0xf511ab){const _0x54db7c=function(_0x1a8d53){while(--_0x1a8d53){_0x8ec17b['push'](_0x8ec17b['shift']());}};_0x54db7c(++_0xf511ab);}(_0xf511,0x89));const _0x54db=function(_0x8ec17b,_0xf511ab){_0x8ec17b=_0x8ec17b-0x0;let _0x54db7c=_0xf511[_0x8ec17b];return _0x54db7c;};import{Plugin as _0x320580}from'ckeditor5/src/core';import{CKEditorError as _0x1c27c4}from'ckeditor5/src/utils';import _0x4945ad from'./trackchangesediting';const D=['initialData',_0x54db('0x26'),'toolbar'],w=[_0x54db('0x19'),'RevisionTracker',_0x54db('0x2e'),_0x54db('0x20'),_0x54db('0x30')];export default class y extends _0x320580{static get[_0x54db('0xf')](){return[_0x4945ad];}static get[_0x54db('0x2a')](){return _0x54db('0xd');}['init'](){const _0x4723c7=this['editor'];if(_0x4723c7[_0x54db('0x14')]['define']('trackChangesData.editorCreator',_0x453200=>_0x4723c7[_0x54db('0x2')][_0x54db('0x21')]('',_0x453200)),_0x54db('0x3')!=typeof _0x4723c7[_0x54db('0x14')][_0x54db('0x1a')](_0x54db('0x1b'))[_0x54db('0x2c')])throw new _0x1c27c4(_0x54db('0x0'));}['getDataWithAcceptedSuggestions'](_0x762390){return T(this[_0x54db('0x2f')],!0x0,_0x762390);}['getDataWithDiscardedSuggestions'](_0x69f9d2){return T(this[_0x54db('0x2f')],!0x1,_0x69f9d2);}}class S extends _0x320580{static get[_0x54db('0x2a')](){return _0x54db('0x7');}['init'](){this[_0x54db('0x29')]='end',this['editor']['plugins']['get'](_0x54db('0x11'))['_adapter']={'getCommentThread':()=>new Promise(()=>{})},this['editor'][_0x54db('0x1c')][_0x54db('0x1a')](_0x54db('0x17'))[_0x54db('0x13')]=null;}}async function T(_0x4ad6e1,_0x2b5529,_0x4b05b3){const _0x25641d=function(_0x3cecb3){const _0x55b307={};for(const _0x280b30 of _0x3cecb3[_0x54db('0x14')]['names']())D[_0x54db('0x27')](_0x280b30)||(_0x55b307[_0x280b30]=_0x3cecb3[_0x54db('0x14')]['get'](_0x280b30));const _0x2c2918=_0x3cecb3[_0x54db('0x2')]['builtinPlugins']||[],_0x17449e=_0x55b307[_0x54db('0x6')]||[];delete _0x55b307[_0x54db('0x6')];const _0x33ac38=_0x2c2918['concat'](_0x55b307['plugins'])[_0x54db('0x1')](_0x17449e)[_0x54db('0x22')](_0x25f5dc=>_0x54db('0x12')==typeof _0x25f5dc?_0x2c2918[_0x54db('0x25')](_0x222157=>_0x222157[_0x54db('0x2a')]==_0x25f5dc):_0x25f5dc),_0x1e51f0=Array[_0x54db('0x16')](new Set(_0x33ac38)),_0x10928b=new Map();return _0x55b307[_0x54db('0x1c')]=_0x1e51f0[_0x54db('0x18')](_0x35b005=>A(_0x35b005,_0x10928b)),_0x55b307[_0x54db('0x1c')]['push'](S),_0x55b307[_0x54db('0x1c')]['push'](_0x4945ad),_0x55b307;}(_0x4ad6e1),_0x64854=document[_0x54db('0x8')](),_0x1e385d=_0x4ad6e1[_0x54db('0x14')][_0x54db('0x1a')](_0x54db('0x1b'))['editorCreator'],_0x29c268=await _0x1e385d(_0x25641d,()=>function(_0x31ebfb){const _0x363502=document['createElement']('div');return _0x31ebfb[_0x54db('0x15')](_0x363502),_0x363502;}(_0x64854));!function(_0x4d446c,_0x1729da){const _0x225d72=_0x4d446c[_0x54db('0x9')]['document']['getRootNames']()[_0x54db('0x28')]((_0x399952,_0x5c5740)=>(_0x399952[_0x5c5740]=_0x4d446c['data'][_0x54db('0x1a')]({'rootName':_0x5c5740}),_0x399952),{}),_0x46988f=_0x4d446c[_0x54db('0x1c')][_0x54db('0x1a')]('Users')[_0x54db('0x4')]['map'](_0x393f6d=>({'id':_0x393f6d['id']})),_0x36639a=_0x4d446c[_0x54db('0x1c')][_0x54db('0x1a')](_0x54db('0x17'))['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x24ff73=_0x1729da[_0x54db('0x1c')]['get'](_0x54db('0xb')),_0x23dca6=_0x1729da[_0x54db('0x1c')][_0x54db('0x1a')]('TrackChangesEditing');for(const _0x566d66 of _0x46988f)_0x24ff73[_0x54db('0x1f')](_0x566d66['id'])||_0x24ff73[_0x54db('0x1d')](_0x566d66);_0x24ff73['me']||_0x24ff73[_0x54db('0x2b')]();for(const _0xd9a01 of _0x36639a)_0x23dca6[_0x54db('0x2d')](_0xd9a01);_0x1729da['data'][_0x54db('0xa')](_0x225d72);}(_0x4ad6e1,_0x29c268),_0x29c268[_0x54db('0x31')](_0x2b5529?_0x54db('0x10'):_0x54db('0xe'));const _0x340e84=_0x29c268[_0x54db('0x23')][_0x54db('0x1a')](_0x4b05b3);return await _0x29c268[_0x54db('0xc')](),_0x340e84;}function A(_0x7b2a16,_0x2ec9ee){const _0x34d999=_0x54db('0x3')==typeof _0x7b2a16?_0x7b2a16[_0x54db('0x2a')]||_0x7b2a16[_0x54db('0x5')]:_0x7b2a16;if(_0x2ec9ee[_0x54db('0x24')](_0x34d999))return _0x2ec9ee[_0x54db('0x1a')](_0x34d999);if(_0x2ec9ee['set'](_0x34d999,!0x0),_0x34d999&&w[_0x54db('0x27')](_0x34d999))return _0x2ec9ee[_0x54db('0xa')](_0x34d999,!0x1),!0x1;if(!_0x7b2a16[_0x54db('0xf')])return _0x2ec9ee[_0x54db('0xa')](_0x34d999,!0x0),!0x0;const _0x4d1b7d=_0x7b2a16[_0x54db('0xf')][_0x54db('0x1e')](_0x251bc6=>A(_0x251bc6,_0x2ec9ee));return _0x2ec9ee[_0x54db('0xa')](_0x34d999,_0x4d1b7d),_0x4d1b7d;}
|