@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230710.1 → 0.0.0-nightly-20230712.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.d.ts +12 -0
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.d.ts +2 -2
- 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 _0x373b=['substr','clear','reduce','_model','isInContent','head','creator','getRanges','from','size','push','setAttribute','addMarkerName','change','_onAccept','author','getMultiRangeId','set','nodeBefore','decorate','next','getFirstMarker','getItems','_onDiscard','removeMarkers','onAttributesChange','addMarker','nodeAfter','previous','subType','removeMarker','_markerNames','discard','end','delete','commentThread','data','type','hasComments','_onAttributesChange','map','createdAt','getAllAdjacentSuggestions','suggestion:','length','getMarkerNames','isIntersecting','start','getFirstRange','attributes','authoredAt','isExternal','onAccept','markers','get','split','removeAttribute','isMultiRange','getMarkers','accept','toJSON'];(function(_0x55109e,_0x373b69){const _0x52f229=function(_0xcceb34){while(--_0xcceb34){_0x55109e['push'](_0x55109e['shift']());}};_0x52f229(++_0x373b69);}(_0x373b,0x7a));const _0x52f2=function(_0x55109e,_0x373b69){_0x55109e=_0x55109e-0x0;let _0x52f229=_0x373b[_0x55109e];return _0x52f229;};import{Element as _0x508f60}from'ckeditor5/src/engine';import{ObservableMixin as _0x1019d8,uid as _0x3594db}from'ckeditor5/src/utils';import{cloneDeep as _0x22f0d2,isEqual as _0x54955b,set as _0x53f616,unset as _0x838fe5}from'lodash-es';export default class u extends _0x1019d8(){constructor(_0xf2547e,_0x1c36d2){super(),this['id']=_0x1c36d2['id'],this[_0x52f2('0x25')]=_0x1c36d2[_0x52f2('0x25')],this[_0x52f2('0x1d')]=_0x1c36d2[_0x52f2('0x1d')]||null,this['author']=_0x1c36d2[_0x52f2('0xf')],this[_0x52f2('0x6')]=_0x1c36d2[_0x52f2('0x6')]||_0x1c36d2[_0x52f2('0xf')],this[_0x52f2('0x33')]=Boolean(_0x1c36d2[_0x52f2('0x31')]&&_0x1c36d2['attributes']['@external']),this[_0x52f2('0x24')]=null,this[_0x52f2('0x3')]=_0xf2547e,this['_onAccept']=_0x1c36d2[_0x52f2('0x34')],this[_0x52f2('0x17')]=_0x1c36d2['onDiscard'],this[_0x52f2('0x27')]=_0x1c36d2[_0x52f2('0x19')],this['_markerNames']=new Set(),this[_0x52f2('0x29')]=null,this[_0x52f2('0x11')](_0x52f2('0x32'),null),this[_0x52f2('0x11')](_0x52f2('0x31'),_0x1c36d2['attributes']||{}),this['set'](_0x52f2('0x1c'),null),this[_0x52f2('0x11')](_0x52f2('0x14'),null),this[_0x52f2('0x11')](_0x52f2('0x23'),null),this[_0x52f2('0x11')]('_saved',!0x1),this[_0x52f2('0x13')](_0x52f2('0x3b')),this[_0x52f2('0x13')](_0x52f2('0x20'));}get[_0x52f2('0x5')](){let _0x6a1a0e=this;for(;_0x6a1a0e['previous'];)_0x6a1a0e=_0x6a1a0e['previous'];return _0x6a1a0e;}get['hasComments'](){return!!this[_0x52f2('0x23')]&&this[_0x52f2('0x23')]['length']>0x0;}get[_0x52f2('0x39')](){if(0x0==this[_0x52f2('0x1f')][_0x52f2('0x9')])return!0x1;return 0x6==Array[_0x52f2('0x8')](this[_0x52f2('0x1f')])[0x0][_0x52f2('0x37')](':')[_0x52f2('0x2c')];}get[_0x52f2('0x4')](){return null!==this['getFirstMarker']();}[_0x52f2('0xc')](_0x4297a1){this[_0x52f2('0x1f')]['add'](_0x4297a1);}[_0x52f2('0x2d')](){return Array[_0x52f2('0x8')](this['_markerNames']);}[_0x52f2('0x3a')](){return this[_0x52f2('0x2d')]()[_0x52f2('0x28')](_0x50a11b=>this['_model'][_0x52f2('0x35')][_0x52f2('0x36')](_0x50a11b))['filter'](_0x46602b=>_0x46602b);}[_0x52f2('0x15')](){return this['getMarkers']()[0x0]||null;}[_0x52f2('0x18')](){this['_model'][_0x52f2('0xd')](_0x173d0d=>{for(const _0x3b6f2e of this[_0x52f2('0x3a')]())_0x173d0d[_0x52f2('0x1e')](_0x3b6f2e);}),this[_0x52f2('0x1f')][_0x52f2('0x1')]();}[_0x52f2('0x1e')](_0x8de1f7){this[_0x52f2('0x3')]['change'](_0x39ad92=>{_0x39ad92[_0x52f2('0x1e')](_0x8de1f7);}),this[_0x52f2('0x1f')][_0x52f2('0x22')](_0x8de1f7);}['addRange'](_0x38a945){const _0x40d90f=_0x52f2('0x2b')+this['type']+':'+this[_0x52f2('0x1d')]+':'+this['id']+':'+this[_0x52f2('0x6')]['id']+':'+u[_0x52f2('0x10')]();this[_0x52f2('0xc')](_0x40d90f),this['_model'][_0x52f2('0xd')](_0x3bdc5a=>{_0x3bdc5a[_0x52f2('0x1a')](_0x40d90f,{'range':_0x38a945,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3c39f3){for(const _0x320b21 of this[_0x52f2('0x7')]())if(_0x320b21[_0x52f2('0x2e')](_0x3c39f3))return!0x0;return!0x1;}[_0x52f2('0x7')](){return this['getMarkers']()[_0x52f2('0x28')](_0x95e371=>_0x95e371['getRange']());}[_0x52f2('0x16')](){return this['getRanges']()[_0x52f2('0x2')]((_0x1633bd,_0x1818c3)=>[..._0x1633bd,..._0x1818c3[_0x52f2('0x16')]()],[]);}[_0x52f2('0x30')](){var _0x31f197;return(null===(_0x31f197=this['getFirstMarker']())||void 0x0===_0x31f197?void 0x0:_0x31f197['getRange']())||null;}['getContainedElement'](){const _0xde4878=this[_0x52f2('0x7')]();if(0x1!=_0xde4878[_0x52f2('0x2c')])return null;const _0x59a5b8=_0xde4878[0x0],_0x1a28ab=_0x59a5b8[_0x52f2('0x2f')][_0x52f2('0x1b')],_0x18f3b7=_0x59a5b8[_0x52f2('0x21')][_0x52f2('0x12')];return _0x1a28ab instanceof _0x508f60?_0x1a28ab!=_0x18f3b7?null:_0x1a28ab:null;}[_0x52f2('0x3b')](){this[_0x52f2('0xe')](this['getRanges'](),this[_0x52f2('0x24')],this[_0x52f2('0x31')]),this['removeMarkers']();}[_0x52f2('0x20')](){this['_onDiscard'](this[_0x52f2('0x7')](),this[_0x52f2('0x24')],this[_0x52f2('0x31')]),this['removeMarkers']();}[_0x52f2('0x2a')](){const _0x2eae17=[];let _0x30116d=this[_0x52f2('0x5')];for(;_0x30116d;)_0x2eae17[_0x52f2('0xa')](_0x30116d),_0x30116d=_0x30116d[_0x52f2('0x14')];return _0x2eae17;}[_0x52f2('0xb')](_0xb14e0,_0x508496){const _0x43fe7c=_0x22f0d2(this[_0x52f2('0x31')]);_0x53f616(_0x43fe7c,_0xb14e0,_0x508496),_0x54955b(_0x43fe7c,this[_0x52f2('0x31')])||(this[_0x52f2('0x31')]=_0x43fe7c,this['_onAttributesChange'](_0x43fe7c));}[_0x52f2('0x38')](_0x265eaf){const _0x41c36a=_0x22f0d2(this[_0x52f2('0x31')]);_0x838fe5(_0x41c36a,_0x265eaf),_0x54955b(_0x41c36a,this['attributes'])||(this[_0x52f2('0x31')]=_0x41c36a,this[_0x52f2('0x27')](this['attributes']));}[_0x52f2('0x3c')](){return{'id':this['id'],'type':this[_0x52f2('0x1d')]?this[_0x52f2('0x25')]+':'+this[_0x52f2('0x1d')]:this['type'],'authorId':this[_0x52f2('0x6')]['id'],'createdAt':this[_0x52f2('0x29')],'hasComments':this[_0x52f2('0x26')],'data':this[_0x52f2('0x24')],'attributes':this['attributes']};}static[_0x52f2('0x10')](){return _0x3594db()[_0x52f2('0x0')](0x1,0x5);}}
|
|
@@ -149,3 +149,15 @@ export interface LabelCallbackObject {
|
|
|
149
149
|
label: LabelCallback;
|
|
150
150
|
priority: PriorityString;
|
|
151
151
|
}
|
|
152
|
+
/**
|
|
153
|
+
* An intermediate state which is easier to operate on when consecutive suggestion
|
|
154
|
+
* ranges are traversed.
|
|
155
|
+
*/
|
|
156
|
+
interface DescriptionItem {
|
|
157
|
+
type: 'text' | 'addEmptyContainer' | 'addObject' | 'removeEmptyContainer' | 'removeObject' | 'addContainer' | 'removeContainer';
|
|
158
|
+
add?: string;
|
|
159
|
+
remove?: string;
|
|
160
|
+
element?: Element;
|
|
161
|
+
quantity?: number;
|
|
162
|
+
}
|
|
163
|
+
export {};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5ab9=['$textProxy','text','deletion','end','_addDescriptionItems','quantity','data','_customCallbacks','isEmpty','addContainer','normal','elementStart','Container','function','_locale','replace','getItemLabel','Object','push','_schema','type','ELEMENT_SPACE','start','element','addObject','isObject','$1\x20$2','pop','*Insert:*\x20%0','get','removeEmptyContainer','remove','indexOf','*Merge:*\x20%0','skip','*Split:*\x20%0','previousSibling','match','*Remove:*\x20%0','_resolveDescriptionItems','name','isInContent','nextSibling','removeObject','_itemLabels','getFirstRange','length','softBreak','add','isEqual','getWalker','matchingCallback','elementEnd','set','insertion','EmptyContainer','_itemLabelsCallbacks'];(function(_0x594cbf,_0x5ab9b1){const _0x4c02bb=function(_0x5a134c){while(--_0x5a134c){_0x594cbf['push'](_0x594cbf['shift']());}};_0x4c02bb(++_0x5ab9b1);}(_0x5ab9,0x1db));const _0x4c02=function(_0x594cbf,_0x5ab9b1){_0x594cbf=_0x594cbf-0x0;let _0x4c02bb=_0x5ab9[_0x594cbf];return _0x4c02bb;};import{getTranslation as _0x5d2428}from'./utils/common-translations';import{priorities as _0x1be099,insertToPriorityArray as _0x8cbe45}from'ckeditor5/src/utils';export default class m{constructor(_0x1672d6,_0x120ae9){this[_0x4c02('0x2d')]=[],this[_0x4c02('0x19')]=new Map(),this[_0x4c02('0x25')]=[],this['_schema']=_0x1672d6,this['_locale']=_0x120ae9;}['getDescriptions'](_0xfa7781){const _0x464e23=[];for(let _0x366488=0x0;_0x366488<_0xfa7781[_0x4c02('0x1b')];_0x366488++){const _0x171681=_0xfa7781[_0x366488];if(!_0x171681[_0x4c02('0x16')])continue;let _0x5ada70=!0x1;for(const _0x3887e4 of this['_customCallbacks']){const _0x4c337f=_0x3887e4(_0x171681);if(_0x4c337f){_0x4c02('0x1')in _0x4c337f&&_0x464e23['push'](_0x4c337f),_0x5ada70=!0x0;break;}}if(!_0x5ada70){this[_0x4c02('0x2a')](_0x464e23,_0x171681);const _0x597555=_0xfa7781[_0x366488+0x1];if(_0x597555&&!_0x171681[_0x4c02('0x1a')]()[_0x4c02('0x29')][_0x4c02('0x1e')](_0x597555[_0x4c02('0x1a')]()[_0x4c02('0x3')])){const _0x1c8963=_0x464e23[_0x464e23['length']-0x1],_0x1168c4='insertion'==_0x171681['type']?_0x4c02('0x1d'):_0x4c02('0xc');_0x1c8963&&_0x4c02('0x27')==_0x1c8963[_0x4c02('0x1')]&&(_0x1c8963[_0x1168c4]+='\x0a');}}}return this['_resolveDescriptionItems'](_0x464e23);}['registerDescriptionCallback'](_0x3c7f84){this[_0x4c02('0x2d')][_0x4c02('0x38')](_0x3c7f84);}['registerElementLabel'](_0x4c229d,_0x44fff9,_0x36b3e1=_0x1be099[_0x4c02('0x30')]){_0x4c02('0x33')==typeof _0x4c229d?_0x8cbe45(this[_0x4c02('0x25')],{'matchingCallback':_0x4c229d,'label':_0x44fff9,'priority':_0x36b3e1}):this[_0x4c02('0x19')][_0x4c02('0x22')](_0x4c229d,_0x44fff9);}['getItemLabel'](_0x4c1039,_0x42b747=0x1){let _0x2d4708;for(const _0x8bf80a of this[_0x4c02('0x25')])if(_0x8bf80a[_0x4c02('0x20')](_0x4c1039)){_0x2d4708=_0x8bf80a['label'];break;}return _0x2d4708||(_0x2d4708=this['_itemLabels'][_0x4c02('0xa')](_0x4c1039['name'])),_0x2d4708?_0x2d4708(_0x42b747):0x1!==_0x42b747?_0x42b747+'\x20'+_0x4c1039['name']+'s':''+_0x4c1039[_0x4c02('0x15')];}[_0x4c02('0x2a')](_0x502514,_0x5211f1){const _0x17b4d8=_0x5211f1[_0x4c02('0x1a')]()[_0x4c02('0x1f')](),_0x4c063e=_0x4c02('0x23')==_0x5211f1['type']?_0x4c02('0x1d'):_0x4c02('0xc');for(const _0x19ac98 of _0x17b4d8){const _0x35b263=_0x19ac98['item'],_0x3cc0a9=_0x502514[_0x502514[_0x4c02('0x1b')]-0x1];if(_0x35b263['is'](_0x4c02('0x26')))_0x3cc0a9&&_0x3cc0a9[_0x4c02('0x1')][_0x4c02('0xd')](_0x4c02('0x32'))>-0x1&&_0x502514[_0x4c02('0x8')](),_0x3cc0a9&&_0x4c02('0x27')==_0x3cc0a9[_0x4c02('0x1')]?_0x3cc0a9[_0x4c063e]+=_0x35b263[_0x4c02('0x2c')]:_0x502514['push']({'type':_0x4c02('0x27'),'add':_0x4c02('0x1d')==_0x4c063e?_0x35b263[_0x4c02('0x2c')]:'','remove':_0x4c02('0xc')==_0x4c063e?_0x35b263[_0x4c02('0x2c')]:''});else{if(this[_0x4c02('0x0')]['isObject'](_0x35b263)){const _0x1e70ce=_0x35b263;if(_0x3cc0a9&&_0x3cc0a9[_0x4c02('0x1')][_0x4c02('0xd')](_0x4c02('0x32'))>-0x1&&_0x502514['pop'](),_0x4c02('0x21')==_0x19ac98[_0x4c02('0x1')])continue;_0x3cc0a9&&_0x3cc0a9[_0x4c02('0x1')]==_0x4c063e+'Object'&&_0x3cc0a9[_0x4c02('0x4')][_0x4c02('0x15')]==_0x1e70ce[_0x4c02('0x15')]?_0x3cc0a9['quantity']++:_0x502514['push']({'type':_0x4c063e+_0x4c02('0x37'),'element':_0x1e70ce,'quantity':0x1}),_0x17b4d8[_0x4c02('0xf')](_0x14d626=>!(_0x4c02('0x21')==_0x14d626[_0x4c02('0x1')]&&_0x14d626['item']==_0x35b263));}else{if(this[_0x4c02('0x0')]['checkChild'](_0x35b263,'$text')||_0x35b263['is'](_0x4c02('0x4'),_0x4c02('0x1c'))){const _0x21c02a=_0x35b263;if(_0x4c02('0x1d')==_0x4c063e&&_0x4c02('0x31')==_0x19ac98[_0x4c02('0x1')]||_0x4c02('0xc')==_0x4c063e&&_0x4c02('0x21')==_0x19ac98[_0x4c02('0x1')])continue;if(_0x3cc0a9&&-0x1==_0x3cc0a9[_0x4c02('0x1')][_0x4c02('0xd')]('Container')){_0x4c02('0x27')==_0x3cc0a9[_0x4c02('0x1')]&&(_0x3cc0a9[_0x4c063e]+='\x0a');continue;}let _0x865de7;if(_0x865de7=_0x4c02('0x1d')==_0x4c063e?_0x21c02a['nextSibling']&&!this['_schema']['isObject'](_0x21c02a[_0x4c02('0x17')])?_0x21c02a[_0x4c02('0x17')]:null:_0x21c02a[_0x4c02('0x11')]&&!this[_0x4c02('0x0')][_0x4c02('0x6')](_0x21c02a[_0x4c02('0x11')])?_0x21c02a[_0x4c02('0x11')]:null,_0x21c02a[_0x4c02('0x2e')]||_0x865de7&&_0x865de7[_0x4c02('0x2e')]){const _0x36a935=_0x865de7&&_0x865de7[_0x4c02('0x2e')]?_0x865de7:_0x21c02a;_0x3cc0a9&&_0x3cc0a9[_0x4c02('0x1')]==_0x4c063e+_0x4c02('0x24')&&_0x3cc0a9[_0x4c02('0x4')][_0x4c02('0x15')]==_0x36a935['name']?_0x3cc0a9[_0x4c02('0x2b')]++:_0x502514[_0x4c02('0x38')]({'type':_0x4c063e+_0x4c02('0x24'),'element':_0x36a935,'quantity':0x1});}else _0x502514[_0x4c02('0x38')]({'type':_0x4c063e+_0x4c02('0x32'),'element':_0x21c02a});}}}}}[_0x4c02('0x14')](_0x59bd1a){const _0x223d92=this[_0x4c02('0x34')],_0x5bbbe0=[];for(const _0x541c94 of _0x59bd1a){switch(_0x541c94['type']){case _0x4c02('0x27'):if(_0x541c94[_0x4c02('0x1d')]=_0x541c94[_0x4c02('0x1d')][_0x4c02('0x35')](/(\S)\u000A+(\S)/g,'$1\x20$2')[_0x4c02('0x35')](/\u000A/g,''),_0x541c94[_0x4c02('0xc')]=_0x541c94[_0x4c02('0xc')][_0x4c02('0x35')](/(\S)\u000A+(\S)/g,_0x4c02('0x7'))[_0x4c02('0x35')](/\u000A/g,''),''!=_0x541c94[_0x4c02('0x1d')]&&''!=_0x541c94['remove']){_0x5bbbe0[_0x4c02('0x38')]({'type':'replace','content':_0x5d2428(_0x223d92,'REPLACE_TEXT',['\x22'+_0x541c94[_0x4c02('0xc')]+'\x22','\x22'+_0x541c94[_0x4c02('0x1d')]+'\x22'])});continue;}if(null!=_0x541c94['add'][_0x4c02('0x12')](/^ +$/)){_0x5bbbe0[_0x4c02('0x38')]({'type':_0x4c02('0x23'),'content':_0x5d2428(_0x223d92,_0x4c02('0x9'),_0x5d2428(_0x223d92,_0x4c02('0x2'),_0x541c94[_0x4c02('0x1d')]['length']))});continue;}if(null!=_0x541c94[_0x4c02('0xc')][_0x4c02('0x12')](/^ +$/)){_0x5bbbe0['push']({'type':_0x4c02('0x28'),'content':_0x5d2428(_0x223d92,'*Remove:*\x20%0',_0x5d2428(_0x223d92,_0x4c02('0x2'),_0x541c94[_0x4c02('0xc')][_0x4c02('0x1b')]))});continue;}if(''!=_0x541c94[_0x4c02('0x1d')]){_0x5bbbe0[_0x4c02('0x38')]({'type':_0x4c02('0x23'),'content':_0x5d2428(_0x223d92,_0x4c02('0x9'),'\x22'+_0x541c94[_0x4c02('0x1d')]+'\x22')});continue;}_0x5bbbe0['push']({'type':_0x4c02('0x28'),'content':_0x5d2428(_0x223d92,_0x4c02('0x13'),'\x22'+_0x541c94[_0x4c02('0xc')]+'\x22')});continue;case'addEmptyContainer':case _0x4c02('0x5'):_0x5bbbe0[_0x4c02('0x38')]({'type':_0x4c02('0x23'),'content':_0x5d2428(_0x223d92,_0x4c02('0x9'),this['getItemLabel'](_0x541c94[_0x4c02('0x4')],_0x541c94['quantity']))});continue;case _0x4c02('0xb'):case _0x4c02('0x18'):_0x5bbbe0[_0x4c02('0x38')]({'type':_0x4c02('0x28'),'content':_0x5d2428(_0x223d92,_0x4c02('0x13'),this[_0x4c02('0x36')](_0x541c94['element'],_0x541c94[_0x4c02('0x2b')]))});continue;case _0x4c02('0x2f'):_0x5bbbe0['push']({'type':_0x4c02('0x23'),'content':_0x5d2428(_0x223d92,_0x4c02('0x10'),this[_0x4c02('0x36')](_0x541c94[_0x4c02('0x4')],_0x541c94[_0x4c02('0x2b')]))});continue;case'removeContainer':_0x5bbbe0[_0x4c02('0x38')]({'type':'deletion','content':_0x5d2428(_0x223d92,_0x4c02('0xe'),this[_0x4c02('0x36')](_0x541c94[_0x4c02('0x4')],_0x541c94[_0x4c02('0x2b')]))});continue;}_0x5bbbe0[_0x4c02('0x38')](_0x541c94);}return _0x5bbbe0;}}
|
package/src/trackchanges.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x56e4=['addSuggestionData','addSuggestion','getSuggestion','TrackChanges','editor','get','getSuggestions','plugins','requires','Comments','adapter','pluginName'];(function(_0x4157d7,_0x56e408){var _0x15b437=function(_0x4dbaea){while(--_0x4dbaea){_0x4157d7['push'](_0x4157d7['shift']());}};_0x15b437(++_0x56e408);}(_0x56e4,0x176));var _0x15b4=function(_0x4157d7,_0x56e408){_0x4157d7=_0x4157d7-0x0;var _0x15b437=_0x56e4[_0x4157d7];return _0x15b437;};import{Plugin as _0x3b7864}from'ckeditor5/src/core';import _0x21fc7e from'./trackchangesui';import _0x396787 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x3b7864{static get[_0x15b4('0x6')](){return[_0x396787,_0x21fc7e,_0x15b4('0x7')];}static get[_0x15b4('0x9')](){return _0x15b4('0x1');}set[_0x15b4('0x8')](_0xe1a3b4){this['editor'][_0x15b4('0x5')][_0x15b4('0x3')](_0x396787)['adapter']=_0xe1a3b4;}get[_0x15b4('0x8')](){return this[_0x15b4('0x2')][_0x15b4('0x5')][_0x15b4('0x3')](_0x396787)['adapter'];}[_0x15b4('0xb')](_0x19adc9){return this['editor'][_0x15b4('0x5')]['get'](_0x396787)[_0x15b4('0xa')](_0x19adc9);}[_0x15b4('0x4')]({skipNotAttached:_0x515965=!0x1,toJSON:_0xc88655=!0x1}={}){return this['editor']['plugins'][_0x15b4('0x3')](_0x396787)[_0x15b4('0x4')]({'skipNotAttached':_0x515965,'toJSON':_0xc88655});}[_0x15b4('0x0')](_0x4987b4){return this[_0x15b4('0x2')][_0x15b4('0x5')][_0x15b4('0x3')](_0x396787)[_0x15b4('0x0')](_0x4987b4);}}
|
|
@@ -26,12 +26,12 @@ export default class TrackChangesData extends Plugin {
|
|
|
26
26
|
* @param options Options for {@link module:engine/controller/datacontroller~DataController#get}.
|
|
27
27
|
* @returns A promise which resolves with the output data.
|
|
28
28
|
*/
|
|
29
|
-
getDataWithAcceptedSuggestions(options: Record<string, unknown>): Promise<string
|
|
29
|
+
getDataWithAcceptedSuggestions(options: Record<string, unknown>): Promise<string | Record<string, string>>;
|
|
30
30
|
/**
|
|
31
31
|
* Returns the editor data with all the suggestions discarded.
|
|
32
32
|
*
|
|
33
33
|
* @param options Options for {@link module:engine/controller/datacontroller~DataController#get}.
|
|
34
34
|
* @returns A promise which resolves with the output data.
|
|
35
35
|
*/
|
|
36
|
-
getDataWithDiscardedSuggestions(options: Record<string, unknown>): Promise<string
|
|
36
|
+
getDataWithDiscardedSuggestions(options: Record<string, unknown>): Promise<string | Record<string, string>>;
|
|
37
37
|
}
|
package/src/trackchangesdata.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5773=['model','plugins','Pagination','TrackChangesEditing','useAnonymousUser','trackChangesData','getFullData','_adapter','div','addUser','result','rootsAttributes','getRootsAttributes','function','requires','editor','getRootNames','getSuggestions','data','getUser','execute','set','createElement','createDocumentFragment','Users','config','pluginName','get','editorCreator','acceptAllSuggestions','track-changes-data-invalid-editor-creator','appendChild','addSuggestionData','document','end','reduce','trackChangesData.editorCreator','users','init','create','TrackChangesDataGetter'];(function(_0x216f51,_0x5773d7){const _0x5dfb6b=function(_0x362068){while(--_0x362068){_0x216f51['push'](_0x216f51['shift']());}};_0x5dfb6b(++_0x5773d7);}(_0x5773,0xf0));const _0x5dfb=function(_0x216f51,_0x5773d7){_0x216f51=_0x216f51-0x0;let _0x5dfb6b=_0x5773[_0x216f51];return _0x5dfb6b;};import{Plugin as _0x187b28}from'ckeditor5/src/core';import{CKEditorError as _0x1f775b}from'ckeditor5/src/utils';import _0x285b94 from'./trackchangesediting';import{sanitizeEditorConfig as _0x219541}from'ckeditor5-collaboration/src/collaboration-core';const w=[_0x5dfb('0x8')];export default class T extends _0x187b28{static get[_0x5dfb('0x14')](){return[_0x285b94];}static get[_0x5dfb('0x20')](){return'TrackChangesData';}[_0x5dfb('0x3')](){const _0x21c5ee=this[_0x5dfb('0x15')];if(_0x21c5ee[_0x5dfb('0x1f')]['define'](_0x5dfb('0x1'),_0x5217ae=>{const _0x45da08=_0x21c5ee[_0x5dfb('0x6')][_0x5dfb('0x27')]['getRootNames']()[_0x5dfb('0x0')]((_0x2a7a8f,_0x5c94f3)=>(_0x2a7a8f[_0x5c94f3]='',_0x2a7a8f),{});return _0x21c5ee['constructor'][_0x5dfb('0x4')](_0x45da08,_0x5217ae);}),_0x5dfb('0x13')!=typeof _0x21c5ee[_0x5dfb('0x1f')][_0x5dfb('0x21')](_0x5dfb('0xb'))[_0x5dfb('0x22')])throw new _0x1f775b(_0x5dfb('0x24'));}['getDataWithAcceptedSuggestions'](_0x569746){return v(this['editor'],!0x0,_0x569746);}['getDataWithDiscardedSuggestions'](_0x53a330){return v(this[_0x5dfb('0x15')],!0x1,_0x53a330);}}class P extends _0x187b28{static get[_0x5dfb('0x20')](){return _0x5dfb('0x5');}constructor(_0x3d28a9){super(_0x3d28a9),this[_0x5dfb('0x10')]=_0x5dfb('0x28');}[_0x5dfb('0x3')](){this[_0x5dfb('0x15')][_0x5dfb('0x7')][_0x5dfb('0x21')]('CommentsRepository')[_0x5dfb('0xd')]={'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[_0x5dfb('0x15')]['plugins']['get'](_0x5dfb('0x9'))[_0x5dfb('0xd')]=null;}}function D(_0x4521ed){return void 0x0!==_0x4521ed[_0x5dfb('0x12')];}async function v(_0x5c379f,_0x2e9030,_0x4b3e72){const _0x3273ce=_0x219541(_0x5c379f,w);_0x3273ce[_0x5dfb('0x7')]['push'](_0x285b94,P),_0x3273ce[_0x5dfb('0x11')]=D(_0x5c379f)?_0x5c379f[_0x5dfb('0x12')]():void 0x0;const _0x1149ae=document[_0x5dfb('0x1d')](),_0x51db20=_0x5c379f[_0x5dfb('0x1f')]['get'](_0x5dfb('0xb'))[_0x5dfb('0x22')],_0x5687b7=await _0x51db20(_0x3273ce,()=>function(_0x58c5e5){const _0x4e9591=document[_0x5dfb('0x1c')](_0x5dfb('0xe'));return _0x58c5e5[_0x5dfb('0x25')](_0x4e9591),_0x4e9591;}(_0x1149ae));!function(_0x270a9c,_0x300e54){const _0x3b4e5a=_0x270a9c[_0x5dfb('0x6')][_0x5dfb('0x27')][_0x5dfb('0x16')]()[_0x5dfb('0x0')]((_0x200bd9,_0x246b46)=>(_0x200bd9[_0x246b46]=_0x270a9c[_0x5dfb('0x18')]['get']({'rootName':_0x246b46}),_0x200bd9),{}),_0x4eac5b=_0x270a9c[_0x5dfb('0x7')][_0x5dfb('0x21')](_0x5dfb('0x1e'))[_0x5dfb('0x2')]['map'](_0x40640d=>({'id':_0x40640d['id'],'name':_0x40640d['name']})),_0xe63bf8=_0x270a9c[_0x5dfb('0x7')][_0x5dfb('0x21')](_0x5dfb('0x9'))[_0x5dfb('0x17')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x499112=_0x300e54['plugins'][_0x5dfb('0x21')](_0x5dfb('0x1e')),_0x127e79=_0x300e54[_0x5dfb('0x7')]['get'](_0x5dfb('0x9'));for(const _0x43cb0a of _0x4eac5b)_0x499112[_0x5dfb('0x19')](_0x43cb0a['id'])||_0x499112[_0x5dfb('0xf')](_0x43cb0a);_0x499112['me']||_0x499112[_0x5dfb('0xa')]();for(const _0x999beb of _0xe63bf8)_0x127e79[_0x5dfb('0x26')](_0x999beb);_0x300e54[_0x5dfb('0x18')][_0x5dfb('0x1b')](_0x3b4e5a);}(_0x5c379f,_0x5687b7),_0x5687b7[_0x5dfb('0x1a')](_0x2e9030?_0x5dfb('0x23'):'discardAllSuggestions');const _0x245c66=D(_0x5687b7)?_0x5687b7[_0x5dfb('0xc')](_0x4b3e72):_0x5687b7[_0x5dfb('0x18')]['get'](_0x4b3e72);return await _0x5687b7['destroy'](),_0x245c66;}
|