@ckeditor/ckeditor5-track-changes 38.2.0-alpha.0 → 39.0.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/README.md +0 -1
- package/build/track-changes.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/sq.js +1 -0
- package/lang/translations/gl.po +23 -23
- package/lang/translations/sq.po +487 -0
- package/package.json +4 -5
- package/src/augmentation.d.ts +4 -0
- package/src/augmentation.js +1 -1
- package/src/commands/acceptsuggestioncommand.d.ts +4 -0
- package/src/commands/acceptsuggestioncommand.js +2 -2
- package/src/commands/discardsuggestioncommand.d.ts +4 -0
- package/src/commands/discardsuggestioncommand.js +2 -2
- package/src/commands/executeonallsuggestionscommand.d.ts +4 -0
- package/src/commands/executeonallsuggestionscommand.js +2 -2
- package/src/commands/executeonselectedsuggestionscommand.d.ts +4 -0
- package/src/commands/executeonselectedsuggestionscommand.js +2 -2
- package/src/commands/trackchangescommand.d.ts +4 -0
- package/src/commands/trackchangescommand.js +2 -2
- package/src/index.d.ts +4 -0
- package/src/index.js +1 -1
- package/src/integrations/alignment.d.ts +4 -0
- package/src/integrations/alignment.js +2 -2
- package/src/integrations/basicstyles.d.ts +4 -0
- package/src/integrations/basicstyles.js +2 -2
- package/src/integrations/blockquote.d.ts +4 -0
- package/src/integrations/blockquote.js +2 -2
- package/src/integrations/ckbox.d.ts +4 -0
- package/src/integrations/ckbox.js +2 -2
- package/src/integrations/codeblock.d.ts +4 -0
- package/src/integrations/codeblock.js +2 -2
- package/src/integrations/comments.d.ts +4 -0
- package/src/integrations/comments.js +2 -2
- package/src/integrations/deletecommand.d.ts +4 -0
- package/src/integrations/deletecommand.js +2 -2
- package/src/integrations/documentlist.d.ts +4 -0
- package/src/integrations/documentlist.js +2 -2
- package/src/integrations/documentlistproperties.d.ts +4 -0
- package/src/integrations/documentlistproperties.js +2 -2
- package/src/integrations/entercommand.d.ts +4 -0
- package/src/integrations/entercommand.js +2 -2
- package/src/integrations/findandreplace.d.ts +4 -0
- package/src/integrations/findandreplace.js +2 -2
- package/src/integrations/font.d.ts +4 -0
- package/src/integrations/font.js +2 -2
- package/src/integrations/formatpainter.d.ts +4 -0
- package/src/integrations/formatpainter.js +2 -2
- package/src/integrations/heading.d.ts +4 -0
- package/src/integrations/heading.js +2 -2
- package/src/integrations/highlight.d.ts +4 -0
- package/src/integrations/highlight.js +2 -2
- package/src/integrations/horizontalline.d.ts +4 -0
- package/src/integrations/horizontalline.js +2 -2
- package/src/integrations/htmlembed.d.ts +4 -0
- package/src/integrations/htmlembed.js +2 -2
- package/src/integrations/image.d.ts +4 -0
- package/src/integrations/image.js +2 -2
- package/src/integrations/imagereplace.d.ts +4 -0
- package/src/integrations/imagereplace.js +2 -2
- package/src/integrations/importword.d.ts +4 -0
- package/src/integrations/importword.js +2 -2
- package/src/integrations/indent.d.ts +4 -0
- package/src/integrations/indent.js +2 -2
- package/src/integrations/inputcommand.d.ts +4 -0
- package/src/integrations/inputcommand.js +2 -2
- package/src/integrations/link.d.ts +4 -0
- package/src/integrations/link.js +2 -2
- package/src/integrations/list.d.ts +4 -0
- package/src/integrations/list.js +2 -2
- package/src/integrations/listproperties.d.ts +4 -0
- package/src/integrations/listproperties.js +2 -2
- package/src/integrations/mediaembed.d.ts +4 -0
- package/src/integrations/mediaembed.js +2 -2
- package/src/integrations/mention.d.ts +4 -0
- package/src/integrations/mention.js +2 -2
- package/src/integrations/pagebreak.d.ts +4 -0
- package/src/integrations/pagebreak.js +2 -2
- package/src/integrations/paragraph.d.ts +4 -0
- package/src/integrations/paragraph.js +2 -2
- package/src/integrations/removeformat.d.ts +4 -0
- package/src/integrations/removeformat.js +2 -2
- package/src/integrations/restrictededitingmode.d.ts +4 -0
- package/src/integrations/restrictededitingmode.js +2 -2
- package/src/integrations/shiftentercommand.d.ts +4 -0
- package/src/integrations/shiftentercommand.js +2 -2
- package/src/integrations/standardeditingmode.d.ts +4 -0
- package/src/integrations/standardeditingmode.js +2 -2
- package/src/integrations/style.d.ts +4 -0
- package/src/integrations/style.js +2 -2
- package/src/integrations/table.d.ts +4 -0
- package/src/integrations/table.js +2 -2
- package/src/integrations/tablecaption.d.ts +4 -0
- package/src/integrations/tablecaption.js +2 -2
- package/src/integrations/tableclipboard.d.ts +2 -1
- package/src/integrations/tableclipboard.js +2 -2
- package/src/integrations/tablecolumnresize.d.ts +4 -0
- package/src/integrations/tablecolumnresize.js +2 -2
- package/src/integrations/tableheadings.d.ts +4 -0
- package/src/integrations/tableheadings.js +2 -2
- package/src/integrations/tablemergesplit.d.ts +4 -0
- package/src/integrations/tablemergesplit.js +2 -2
- package/src/integrations/tableofcontents.d.ts +4 -0
- package/src/integrations/tableofcontents.js +2 -2
- package/src/integrations/tableproperties.d.ts +4 -0
- package/src/integrations/tableproperties.js +2 -2
- package/src/integrations/template.d.ts +4 -0
- package/src/integrations/template.js +2 -2
- package/src/integrations/title.d.ts +4 -0
- package/src/integrations/title.js +2 -2
- package/src/integrations/undo.d.ts +4 -0
- package/src/integrations/undo.js +2 -2
- package/src/integrations/utils.d.ts +4 -0
- package/src/integrations/utils.js +2 -2
- package/src/suggestion.d.ts +11 -1
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.d.ts +14 -2
- package/src/suggestiondescriptionfactory.js +2 -2
- package/src/trackchanges.d.ts +4 -0
- package/src/trackchanges.js +2 -2
- package/src/trackchangesconfig.d.ts +4 -0
- package/src/trackchangesconfig.js +1 -1
- package/src/trackchangesdata.d.ts +6 -2
- package/src/trackchangesdata.js +2 -2
- package/src/trackchangesediting.d.ts +4 -0
- package/src/trackchangesediting.js +2 -2
- package/src/trackchangesui.d.ts +4 -0
- package/src/trackchangesui.js +2 -2
- package/src/ui/suggestioncontroller.d.ts +2 -1
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.d.ts +4 -0
- package/src/ui/view/basesuggestionthreadview.js +2 -2
- package/src/ui/view/suggestionthreadview.d.ts +2 -2
- package/src/ui/view/suggestionthreadview.js +2 -2
- package/src/utils/common-translations.d.ts +4 -0
- package/src/utils/common-translations.js +2 -2
- package/src/utils/utils.d.ts +4 -0
- package/src/utils/utils.js +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-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 _0x375e=['title-content','isCollapsed','removeMarker','differ','isEqual','start','plugins','nodeBefore','from','locale','Title','getChangedMarkers','_descriptionFactory','TrackChangesEditing','has','getNearestSelectionRange','newRange','afterInit','model','document','end','ELEMENT_TITLE','updateMarker','element','get','editor','createRange','suggestion'];(function(_0x59f51a,_0x375e0b){const _0x1701b7=function(_0x26974d){while(--_0x26974d){_0x59f51a['push'](_0x59f51a['shift']());}};_0x1701b7(++_0x375e0b);}(_0x375e,0x1de));const _0x1701=function(_0x59f51a,_0x375e0b){_0x59f51a=_0x59f51a-0x0;let _0x1701b7=_0x375e[_0x59f51a];return _0x1701b7;};import{Plugin as _0x26b2e0}from'ckeditor5/src/core';import{getTranslation as _0x30334d}from'../utils/common-translations';export default class St extends _0x26b2e0{[_0x1701('0xf')](){const _0x4b9041=this[_0x1701('0x17')];if(!_0x4b9041['plugins'][_0x1701('0xc')](_0x1701('0x8')))return;const _0x1752e0=_0x4b9041[_0x1701('0x4')][_0x1701('0x16')](_0x1701('0xb'));_0x1752e0[_0x1701('0xa')]['registerElementLabel']('title-content',()=>_0x30334d(_0x4b9041[_0x1701('0x7')],_0x1701('0x13'))),_0x4b9041[_0x1701('0x10')][_0x1701('0x11')]['registerPostFixer'](_0x126219=>{let _0x4b1055=!0x1;const _0x2d8aba=Array[_0x1701('0x6')](_0x4b9041[_0x1701('0x10')][_0x1701('0x11')][_0x1701('0x1')][_0x1701('0x9')]());for(const {name:_0x16c1db,data:_0xeab9f2}of _0x2d8aba){const {group:_0x1517b0}=_0x1752e0['_splitMarkerName'](_0x16c1db);if(_0x1701('0x19')!==_0x1517b0||!_0xeab9f2['newRange'])continue;const _0x9b8314=_0xeab9f2[_0x1701('0xe')],_0x5c1537=_0x9b8314[_0x1701('0x12')][_0x1701('0x5')];if(!_0x5c1537||!_0x5c1537['is'](_0x1701('0x15'),_0x1701('0x1a')))continue;if(!_0x9b8314['start']['isTouching'](_0x9b8314[_0x1701('0x12')]))continue;const _0x17fe05=_0x4b9041[_0x1701('0x10')]['schema'][_0x1701('0xd')](_0x9b8314[_0x1701('0x12')],'forward');if(_0x17fe05&&_0x17fe05[_0x1701('0x1b')]){const _0x433320=_0x126219[_0x1701('0x18')](_0x9b8314[_0x1701('0x3')],_0x17fe05[_0x1701('0x3')]);_0x433320[_0x1701('0x2')](_0x9b8314)||(_0x126219[_0x1701('0x14')](_0x16c1db,{'range':_0x433320}),_0x4b1055=!0x0);}_0x4b1055||(_0x126219[_0x1701('0x0')](_0x16c1db),_0x4b1055=!0x0);}return _0x4b1055;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-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 _0x313f=['undo','redo','get','plugins','editor','enableCommand'];(function(_0x35e011,_0x313f21){const _0x47b6ea=function(_0x2ba9ff){while(--_0x2ba9ff){_0x35e011['push'](_0x35e011['shift']());}};_0x47b6ea(++_0x313f21);}(_0x313f,0x146));const _0x47b6=function(_0x35e011,_0x313f21){_0x35e011=_0x35e011-0x0;let _0x47b6ea=_0x313f[_0x35e011];return _0x47b6ea;};import{Plugin as _0x44babe}from'ckeditor5/src/core';export default class It extends _0x44babe{['afterInit'](){const _0x4521ea=this[_0x47b6('0x2')],_0x1bb8dc=_0x4521ea[_0x47b6('0x1')][_0x47b6('0x0')]('TrackChangesEditing');_0x4521ea[_0x47b6('0x1')]['has']('UndoEditing')&&(_0x1bb8dc[_0x47b6('0x3')](_0x47b6('0x4')),_0x1bb8dc['enableCommand'](_0x47b6('0x5')));}}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
import type { Editor } from 'ckeditor5/src/core';
|
|
2
6
|
import type { Range, Model, Element, DowncastAddMarkerEvent } from 'ckeditor5/src/engine';
|
|
3
7
|
import type { GetCallback } from 'ckeditor5/src/utils';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-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 _0x4289=['isAtEnd','test','markerName','markerRange','mapper','hasAttribute','element','ck-suggestion-marker-','includes','listItem','model','push','item','toViewPosition','isBlock','activeMarkers','plugins','getWalker','getCustomProperty','getAttribute','parent','bindElementToMarker','start','listIndent','writer','nextSibling','schema','getItems','isLimit','name','consumable','ck-suggestion-marker--active','createRangeOn','previousPosition','isContent'];(function(_0x34e364,_0x4289a4){const _0x66c2b=function(_0x38da51){while(--_0x38da51){_0x34e364['push'](_0x34e364['shift']());}};_0x66c2b(++_0x4289a4);}(_0x4289,0x142));const _0x66c2=function(_0x34e364,_0x4289a4){_0x34e364=_0x34e364-0x0;let _0x66c2b=_0x4289[_0x34e364];return _0x66c2b;};export function getRangesWithAttribute(_0x35fae0,_0x1db88d,_0x570ce4){const _0x544429=[];for(const _0x72f457 of _0x1db88d[_0x66c2('0x14')]())_0x72f457[_0x66c2('0x21')](_0x35fae0)&&_0x544429[_0x66c2('0x4')](_0x570ce4[_0x66c2('0x19')](_0x72f457));return _0x544429;}export function getElementsAffectedByListItemRename(_0x22bb69){const _0x3cdc3d=[];if(_0x22bb69['is'](_0x66c2('0x22'),'listItem')){let _0x133b7e=_0x22bb69['nextSibling'];for(;_0x133b7e&&_0x133b7e['is'](_0x66c2('0x22'),_0x66c2('0x2'))&&_0x133b7e[_0x66c2('0xc')](_0x66c2('0x10'))>0x0;)_0x3cdc3d[_0x66c2('0x4')](_0x133b7e),_0x133b7e=_0x133b7e['nextSibling'];}return _0x3cdc3d;}export function downcastSplitMergeMarker(_0xde3d26,_0x6d7bb5,{showActiveMarker:_0x4f01f4=!0x0}={}){const _0x389e05=_0xde3d26[_0x66c2('0x9')]['get']('TrackChangesEditing');return(_0xc36558,_0xf073ad,_0x534d7f)=>{if(!_0x534d7f[_0x66c2('0x17')][_0x66c2('0x1d')](_0xf073ad[_0x66c2('0x1f')],_0xc36558[_0x66c2('0x16')]))return;const _0x3720e1=_0xf073ad[_0x66c2('0x1f')][_0x66c2('0xa')](),_0x53a043=_0xf073ad[_0x66c2('0x1f')][_0x66c2('0xf')],_0x1714c9=_0xde3d26[_0x66c2('0x3')][_0x66c2('0x13')];let _0x1022ea=null,_0x22ce3e=null,_0x1b928b=!0x1,_0x3727c7=!0x1;for(const _0x28db81 of _0x3720e1){const _0x5eb45f=_0x28db81[_0x66c2('0x5')];_0x1b928b=_0x1b928b||_0x1714c9[_0x66c2('0x1b')](_0x5eb45f);const _0x302f61=_0x534d7f[_0x66c2('0x20')]['toViewElement'](_0x5eb45f);if(_0x302f61&&_0x302f61[_0x66c2('0xb')]('addHighlight'))return;'elementEnd'==_0x28db81['type']&&(_0x1714c9[_0x66c2('0x7')](_0x5eb45f)&&!_0x1714c9[_0x66c2('0x15')](_0x5eb45f)&&(_0x5eb45f[_0x66c2('0x12')]||_0x53a043[_0x66c2('0x1c')]?_0x1022ea&&_0x1022ea[_0x66c2('0xd')]==_0x5eb45f||(_0x1022ea=_0x5eb45f,_0x1fcd49(_0x28db81['previousPosition']),_0x3727c7=!0x0):_0x22ce3e=_0x22ce3e||_0x28db81[_0x66c2('0x1a')]));}function _0x1fcd49(_0x12a0a0){const _0x1f8e81=_0x534d7f[_0x66c2('0x11')]['createUIElement']('span',{'class':_0x66c2('0x0')+_0x6d7bb5}),_0x275890=_0x534d7f['mapper'][_0x66c2('0x6')](_0x12a0a0);_0x4f01f4&&_0x389e05[_0x66c2('0x8')][_0x66c2('0x1')](_0xf073ad['markerName'])&&_0x534d7f[_0x66c2('0x11')]['addClass'](_0x66c2('0x18'),_0x1f8e81),_0x534d7f['writer']['insert'](_0x275890,_0x1f8e81),_0x534d7f[_0x66c2('0x20')][_0x66c2('0xe')](_0x1f8e81,_0xf073ad[_0x66c2('0x1e')]);}_0x1b928b||_0x3727c7||!_0x22ce3e||_0x1fcd49(_0x22ce3e);};}
|
package/src/suggestion.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module track-changes/suggestion
|
|
3
7
|
* @publicApi
|
|
@@ -8,7 +12,13 @@ import type { CommentThread } from '@ckeditor/ckeditor5-comments';
|
|
|
8
12
|
import type { FormatData } from './trackchangesediting';
|
|
9
13
|
declare const Suggestion_base: {
|
|
10
14
|
new (): import("ckeditor5/src/utils").Observable;
|
|
11
|
-
prototype: import("ckeditor5/src/utils").Observable;
|
|
15
|
+
prototype: import("ckeditor5/src/utils").Observable; /**
|
|
16
|
+
* Previous suggestion in suggestions chain.
|
|
17
|
+
*
|
|
18
|
+
* Chained suggestions should be handled as one entity.
|
|
19
|
+
*
|
|
20
|
+
* @observable
|
|
21
|
+
*/
|
|
12
22
|
};
|
|
13
23
|
/**
|
|
14
24
|
* Represents a singular suggestion that is tracked by track changes plugin.
|
package/src/suggestion.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-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 _0x1c06=['getRange','addMarker','subType','head','decorate','createdAt','setAttribute','_markerNames','removeAttribute','getItems','removeMarker','removeMarkers','markers','previous','clear','next','discard','length','getMarkers','substr','_onDiscard','getRanges','suggestion:','isMultiRange','accept','onDiscard','nodeBefore','isIntersecting','data','getMarkerNames','getFirstMarker','commentThread','start','set','creator','change','reduce','_onAccept','hasComments','get','authoredAt','filter','from','size','getAllAdjacentSuggestions','type','end','getMultiRangeId','onAttributesChange','addRange','_saved','push','add','isIntersectingWithRange','_onAttributesChange','author','delete','_model','addMarkerName','isInContent','isExternal','nodeAfter','@external','attributes'];(function(_0x2aca96,_0x1c063d){const _0x53ca83=function(_0x30951d){while(--_0x30951d){_0x2aca96['push'](_0x2aca96['shift']());}};_0x53ca83(++_0x1c063d);}(_0x1c06,0x117));const _0x53ca=function(_0x2aca96,_0x1c063d){_0x2aca96=_0x2aca96-0x0;let _0x53ca83=_0x1c06[_0x2aca96];return _0x53ca83;};import{Element as _0x47430e}from'ckeditor5/src/engine';import{ObservableMixin as _0x361ecc,uid as _0x38a428}from'ckeditor5/src/utils';import{cloneDeep as _0x4a2893,isEqual as _0x4c63b5,set as _0x2a11a3,unset as _0xaf0b80}from'lodash-es';export default class u extends _0x361ecc(){constructor(_0x59b1f0,_0x1883b6){super(),this['id']=_0x1883b6['id'],this[_0x53ca('0x16')]=_0x1883b6[_0x53ca('0x16')],this[_0x53ca('0x2b')]=_0x1883b6[_0x53ca('0x2b')]||null,this[_0x53ca('0x20')]=_0x1883b6[_0x53ca('0x20')],this['creator']=_0x1883b6[_0x53ca('0xb')]||_0x1883b6[_0x53ca('0x20')],this[_0x53ca('0x25')]=Boolean(_0x1883b6['attributes']&&_0x1883b6[_0x53ca('0x28')][_0x53ca('0x27')]),this[_0x53ca('0x5')]=null,this[_0x53ca('0x22')]=_0x59b1f0,this[_0x53ca('0xe')]=_0x1883b6['onAccept'],this[_0x53ca('0x3d')]=_0x1883b6[_0x53ca('0x2')],this[_0x53ca('0x1f')]=_0x1883b6[_0x53ca('0x19')],this[_0x53ca('0x30')]=new Set(),this[_0x53ca('0x2e')]=null,this['set'](_0x53ca('0x11'),null),this[_0x53ca('0xa')](_0x53ca('0x28'),_0x1883b6[_0x53ca('0x28')]||{}),this[_0x53ca('0xa')](_0x53ca('0x36'),null),this[_0x53ca('0xa')](_0x53ca('0x38'),null),this[_0x53ca('0xa')](_0x53ca('0x8'),null),this[_0x53ca('0xa')](_0x53ca('0x1b'),!0x1),this[_0x53ca('0x2d')](_0x53ca('0x1')),this[_0x53ca('0x2d')](_0x53ca('0x39'));}get[_0x53ca('0x2c')](){let _0x1c2396=this;for(;_0x1c2396[_0x53ca('0x36')];)_0x1c2396=_0x1c2396[_0x53ca('0x36')];return _0x1c2396;}get[_0x53ca('0xf')](){return!!this[_0x53ca('0x8')]&&this[_0x53ca('0x8')][_0x53ca('0x3a')]>0x0;}get[_0x53ca('0x0')](){if(0x0==this[_0x53ca('0x30')][_0x53ca('0x14')])return!0x1;return 0x6==Array['from'](this[_0x53ca('0x30')])[0x0]['split'](':')[_0x53ca('0x3a')];}get[_0x53ca('0x24')](){return null!==this[_0x53ca('0x7')]();}[_0x53ca('0x23')](_0x22ea62){this['_markerNames'][_0x53ca('0x1d')](_0x22ea62);}['getMarkerNames'](){return Array[_0x53ca('0x13')](this[_0x53ca('0x30')]);}['getMarkers'](){return this[_0x53ca('0x6')]()['map'](_0x42b9c8=>this[_0x53ca('0x22')][_0x53ca('0x35')][_0x53ca('0x10')](_0x42b9c8))[_0x53ca('0x12')](_0x283c33=>_0x283c33);}[_0x53ca('0x7')](){return this[_0x53ca('0x3b')]()[0x0]||null;}['removeMarkers'](){this[_0x53ca('0x22')][_0x53ca('0xc')](_0x3f7102=>{for(const _0x30e042 of this[_0x53ca('0x3b')]())_0x3f7102[_0x53ca('0x33')](_0x30e042);}),this[_0x53ca('0x30')][_0x53ca('0x37')]();}[_0x53ca('0x33')](_0x20c8b0){this[_0x53ca('0x22')][_0x53ca('0xc')](_0xf970a9=>{_0xf970a9[_0x53ca('0x33')](_0x20c8b0);}),this[_0x53ca('0x30')][_0x53ca('0x21')](_0x20c8b0);}[_0x53ca('0x1a')](_0x4d271d){const _0x356533=_0x53ca('0x3f')+this[_0x53ca('0x16')]+':'+this['subType']+':'+this['id']+':'+this[_0x53ca('0xb')]['id']+':'+u[_0x53ca('0x18')]();this[_0x53ca('0x23')](_0x356533),this[_0x53ca('0x22')][_0x53ca('0xc')](_0x31e20e=>{_0x31e20e[_0x53ca('0x2a')](_0x356533,{'range':_0x4d271d,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x53ca('0x1e')](_0x29b616){for(const _0x5de822 of this[_0x53ca('0x3e')]())if(_0x5de822[_0x53ca('0x4')](_0x29b616))return!0x0;return!0x1;}[_0x53ca('0x3e')](){return this['getMarkers']()['map'](_0x54078a=>_0x54078a[_0x53ca('0x29')]());}[_0x53ca('0x32')](){return this[_0x53ca('0x3e')]()[_0x53ca('0xd')]((_0x42a4ab,_0x551c0d)=>[..._0x42a4ab,..._0x551c0d[_0x53ca('0x32')]()],[]);}['getFirstRange'](){var _0xaa54e2;return(null===(_0xaa54e2=this[_0x53ca('0x7')]())||void 0x0===_0xaa54e2?void 0x0:_0xaa54e2[_0x53ca('0x29')]())||null;}['getContainedElement'](){const _0x2420be=this[_0x53ca('0x3e')]();if(0x1!=_0x2420be[_0x53ca('0x3a')])return null;const _0x3af658=_0x2420be[0x0],_0x14cbf4=_0x3af658[_0x53ca('0x9')][_0x53ca('0x26')],_0x33e57f=_0x3af658[_0x53ca('0x17')][_0x53ca('0x3')];return _0x14cbf4 instanceof _0x47430e?_0x14cbf4!=_0x33e57f?null:_0x14cbf4:null;}[_0x53ca('0x1')](){this[_0x53ca('0xe')](this['getRanges'](),this[_0x53ca('0x5')],this[_0x53ca('0x28')]),this['removeMarkers']();}['discard'](){this[_0x53ca('0x3d')](this[_0x53ca('0x3e')](),this[_0x53ca('0x5')],this['attributes']),this[_0x53ca('0x34')]();}[_0x53ca('0x15')](){const _0x11688f=[];let _0x4974ec=this[_0x53ca('0x2c')];for(;_0x4974ec;)_0x11688f[_0x53ca('0x1c')](_0x4974ec),_0x4974ec=_0x4974ec[_0x53ca('0x38')];return _0x11688f;}[_0x53ca('0x2f')](_0xaf0ab1,_0x55da48){const _0x276e62=_0x4a2893(this['attributes']);_0x2a11a3(_0x276e62,_0xaf0ab1,_0x55da48),_0x4c63b5(_0x276e62,this['attributes'])||(this[_0x53ca('0x28')]=_0x276e62,this[_0x53ca('0x1f')](_0x276e62));}[_0x53ca('0x31')](_0x1b00a0){const _0x32e940=_0x4a2893(this[_0x53ca('0x28')]);_0xaf0b80(_0x32e940,_0x1b00a0),_0x4c63b5(_0x32e940,this[_0x53ca('0x28')])||(this[_0x53ca('0x28')]=_0x32e940,this[_0x53ca('0x1f')](this[_0x53ca('0x28')]));}['toJSON'](){return{'id':this['id'],'type':this[_0x53ca('0x2b')]?this['type']+':'+this[_0x53ca('0x2b')]:this[_0x53ca('0x16')],'authorId':this[_0x53ca('0xb')]['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this['data'],'attributes':this[_0x53ca('0x28')]};}static[_0x53ca('0x18')](){return _0x38a428()[_0x53ca('0x3c')](0x1,0x5);}}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @
|
|
3
|
-
*
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
import { type Locale, type PriorityString } from 'ckeditor5/src/utils';
|
|
6
6
|
import type { Schema, Element } from 'ckeditor5/src/engine';
|
|
@@ -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 {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-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 _0x13eb=['softBreak','getFirstRange','addObject','insertion','quantity','checkChild','type','REPLACE_TEXT','matchingCallback','getDescriptions','Container','data','_customCallbacks','skip','_itemLabels','pop','_locale','text','removeContainer','EmptyContainer','remove','isEqual','normal','end','indexOf','replace','get','push','element','$textProxy','$text','item','elementEnd','_schema','function','match','removeObject','start','_itemLabelsCallbacks','nextSibling','elementStart','isEmpty','getItemLabel','set','getWalker','_addDescriptionItems','name','_resolveDescriptionItems','removeEmptyContainer','deletion','isObject','*Insert:*\x20%0','add','label','addContainer','$1\x20$2','addEmptyContainer','previousSibling','length','*Remove:*\x20%0'];(function(_0x1b4d6b,_0x13eb70){const _0x22b95b=function(_0x2b8908){while(--_0x2b8908){_0x1b4d6b['push'](_0x1b4d6b['shift']());}};_0x22b95b(++_0x13eb70);}(_0x13eb,0xd6));const _0x22b9=function(_0x1b4d6b,_0x13eb70){_0x1b4d6b=_0x1b4d6b-0x0;let _0x22b95b=_0x13eb[_0x1b4d6b];return _0x22b95b;};import{getTranslation as _0xc80be1}from'./utils/common-translations';import{priorities as _0x172f6c,insertToPriorityArray as _0x29964d}from'ckeditor5/src/utils';export default class m{constructor(_0x176283,_0x201fd4){this['_customCallbacks']=[],this[_0x22b9('0x28')]=new Map(),this[_0x22b9('0x4')]=[],this['_schema']=_0x176283,this[_0x22b9('0x2a')]=_0x201fd4;}[_0x22b9('0x23')](_0x2be0d5){const _0x5842cf=[];for(let _0x425d46=0x0;_0x425d46<_0x2be0d5[_0x22b9('0x18')];_0x425d46++){const _0xc9757d=_0x2be0d5[_0x425d46];if(!_0xc9757d['isInContent'])continue;let _0x2b4c91=!0x1;for(const _0x58e059 of this[_0x22b9('0x26')]){const _0x4d8fa9=_0x58e059(_0xc9757d);if(_0x4d8fa9){'type'in _0x4d8fa9&&_0x5842cf[_0x22b9('0x35')](_0x4d8fa9),_0x2b4c91=!0x0;break;}}if(!_0x2b4c91){this[_0x22b9('0xb')](_0x5842cf,_0xc9757d);const _0x324a37=_0x2be0d5[_0x425d46+0x1];if(_0x324a37&&!_0xc9757d[_0x22b9('0x1b')]()[_0x22b9('0x31')][_0x22b9('0x2f')](_0x324a37[_0x22b9('0x1b')]()[_0x22b9('0x3')])){const _0x1a1214=_0x5842cf[_0x5842cf[_0x22b9('0x18')]-0x1],_0x2337f6=_0x22b9('0x1d')==_0xc9757d[_0x22b9('0x20')]?_0x22b9('0x12'):'remove';_0x1a1214&&'text'==_0x1a1214[_0x22b9('0x20')]&&(_0x1a1214[_0x2337f6]+='\x0a');}}}return this[_0x22b9('0xd')](_0x5842cf);}['registerDescriptionCallback'](_0x1a2e13){this[_0x22b9('0x26')][_0x22b9('0x35')](_0x1a2e13);}['registerElementLabel'](_0x119c31,_0x16039d,_0x66c711=_0x172f6c[_0x22b9('0x30')]){_0x22b9('0x0')==typeof _0x119c31?_0x29964d(this[_0x22b9('0x4')],{'matchingCallback':_0x119c31,'label':_0x16039d,'priority':_0x66c711}):this[_0x22b9('0x28')][_0x22b9('0x9')](_0x119c31,_0x16039d);}[_0x22b9('0x8')](_0x123cb9,_0x5e481a=0x1){let _0x5413e4;for(const _0x54577a of this[_0x22b9('0x4')])if(_0x54577a[_0x22b9('0x22')](_0x123cb9)){_0x5413e4=_0x54577a[_0x22b9('0x13')];break;}return _0x5413e4||(_0x5413e4=this[_0x22b9('0x28')][_0x22b9('0x34')](_0x123cb9[_0x22b9('0xc')])),_0x5413e4?_0x5413e4(_0x5e481a):0x1!==_0x5e481a?_0x5e481a+'\x20'+_0x123cb9[_0x22b9('0xc')]+'s':''+_0x123cb9[_0x22b9('0xc')];}[_0x22b9('0xb')](_0x312f2d,_0x5302fd){const _0x2df4d8=_0x5302fd[_0x22b9('0x1b')]()[_0x22b9('0xa')](),_0x332a12='insertion'==_0x5302fd[_0x22b9('0x20')]?_0x22b9('0x12'):'remove';for(const _0x4df153 of _0x2df4d8){const _0x2257b1=_0x4df153[_0x22b9('0x39')],_0x293c36=_0x312f2d[_0x312f2d[_0x22b9('0x18')]-0x1];if(_0x2257b1['is'](_0x22b9('0x37')))_0x293c36&&_0x293c36[_0x22b9('0x20')][_0x22b9('0x32')](_0x22b9('0x24'))>-0x1&&_0x312f2d[_0x22b9('0x29')](),_0x293c36&&'text'==_0x293c36['type']?_0x293c36[_0x332a12]+=_0x2257b1['data']:_0x312f2d[_0x22b9('0x35')]({'type':'text','add':_0x22b9('0x12')==_0x332a12?_0x2257b1[_0x22b9('0x25')]:'','remove':_0x22b9('0x2e')==_0x332a12?_0x2257b1[_0x22b9('0x25')]:''});else{if(this['_schema'][_0x22b9('0x10')](_0x2257b1)){const _0x14ca36=_0x2257b1;if(_0x293c36&&_0x293c36[_0x22b9('0x20')]['indexOf'](_0x22b9('0x24'))>-0x1&&_0x312f2d[_0x22b9('0x29')](),'elementEnd'==_0x4df153[_0x22b9('0x20')])continue;_0x293c36&&_0x293c36[_0x22b9('0x20')]==_0x332a12+'Object'&&_0x293c36['element'][_0x22b9('0xc')]==_0x14ca36[_0x22b9('0xc')]?_0x293c36['quantity']++:_0x312f2d[_0x22b9('0x35')]({'type':_0x332a12+'Object','element':_0x14ca36,'quantity':0x1}),_0x2df4d8[_0x22b9('0x27')](_0x5318a6=>!(_0x22b9('0x3a')==_0x5318a6[_0x22b9('0x20')]&&_0x5318a6[_0x22b9('0x39')]==_0x2257b1));}else{if(this[_0x22b9('0x3b')][_0x22b9('0x1f')](_0x2257b1,_0x22b9('0x38'))||_0x2257b1['is']('element',_0x22b9('0x1a'))){const _0x112aa3=_0x2257b1;if(_0x22b9('0x12')==_0x332a12&&_0x22b9('0x6')==_0x4df153['type']||_0x22b9('0x2e')==_0x332a12&&_0x22b9('0x3a')==_0x4df153[_0x22b9('0x20')])continue;if(_0x293c36&&-0x1==_0x293c36[_0x22b9('0x20')]['indexOf'](_0x22b9('0x24'))){_0x22b9('0x2b')==_0x293c36[_0x22b9('0x20')]&&(_0x293c36[_0x332a12]+='\x0a');continue;}let _0x1b6238;if(_0x1b6238=_0x22b9('0x12')==_0x332a12?_0x112aa3['nextSibling']&&!this[_0x22b9('0x3b')][_0x22b9('0x10')](_0x112aa3[_0x22b9('0x5')])?_0x112aa3[_0x22b9('0x5')]:null:_0x112aa3['previousSibling']&&!this[_0x22b9('0x3b')][_0x22b9('0x10')](_0x112aa3[_0x22b9('0x17')])?_0x112aa3[_0x22b9('0x17')]:null,_0x112aa3[_0x22b9('0x7')]||_0x1b6238&&_0x1b6238[_0x22b9('0x7')]){const _0x1bfb37=_0x1b6238&&_0x1b6238[_0x22b9('0x7')]?_0x1b6238:_0x112aa3;_0x293c36&&_0x293c36['type']==_0x332a12+_0x22b9('0x2d')&&_0x293c36[_0x22b9('0x36')][_0x22b9('0xc')]==_0x1bfb37[_0x22b9('0xc')]?_0x293c36['quantity']++:_0x312f2d[_0x22b9('0x35')]({'type':_0x332a12+_0x22b9('0x2d'),'element':_0x1bfb37,'quantity':0x1});}else _0x312f2d[_0x22b9('0x35')]({'type':_0x332a12+'Container','element':_0x112aa3});}}}}}[_0x22b9('0xd')](_0x161390){const _0x449c0d=this[_0x22b9('0x2a')],_0x5ce354=[];for(const _0x2f8b70 of _0x161390){switch(_0x2f8b70['type']){case _0x22b9('0x2b'):if(_0x2f8b70[_0x22b9('0x12')]=_0x2f8b70['add'][_0x22b9('0x33')](/(\S)\u000A+(\S)/g,_0x22b9('0x15'))[_0x22b9('0x33')](/\u000A/g,''),_0x2f8b70[_0x22b9('0x2e')]=_0x2f8b70[_0x22b9('0x2e')]['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')[_0x22b9('0x33')](/\u000A/g,''),''!=_0x2f8b70[_0x22b9('0x12')]&&''!=_0x2f8b70[_0x22b9('0x2e')]){_0x5ce354[_0x22b9('0x35')]({'type':'replace','content':_0xc80be1(_0x449c0d,_0x22b9('0x21'),['\x22'+_0x2f8b70['remove']+'\x22','\x22'+_0x2f8b70[_0x22b9('0x12')]+'\x22'])});continue;}if(null!=_0x2f8b70[_0x22b9('0x12')][_0x22b9('0x1')](/^ +$/)){_0x5ce354['push']({'type':_0x22b9('0x1d'),'content':_0xc80be1(_0x449c0d,_0x22b9('0x11'),_0xc80be1(_0x449c0d,'ELEMENT_SPACE',_0x2f8b70['add'][_0x22b9('0x18')]))});continue;}if(null!=_0x2f8b70[_0x22b9('0x2e')]['match'](/^ +$/)){_0x5ce354['push']({'type':_0x22b9('0xf'),'content':_0xc80be1(_0x449c0d,_0x22b9('0x19'),_0xc80be1(_0x449c0d,'ELEMENT_SPACE',_0x2f8b70[_0x22b9('0x2e')]['length']))});continue;}if(''!=_0x2f8b70['add']){_0x5ce354[_0x22b9('0x35')]({'type':_0x22b9('0x1d'),'content':_0xc80be1(_0x449c0d,'*Insert:*\x20%0','\x22'+_0x2f8b70[_0x22b9('0x12')]+'\x22')});continue;}_0x5ce354[_0x22b9('0x35')]({'type':_0x22b9('0xf'),'content':_0xc80be1(_0x449c0d,'*Remove:*\x20%0','\x22'+_0x2f8b70['remove']+'\x22')});continue;case _0x22b9('0x16'):case _0x22b9('0x1c'):_0x5ce354[_0x22b9('0x35')]({'type':_0x22b9('0x1d'),'content':_0xc80be1(_0x449c0d,_0x22b9('0x11'),this['getItemLabel'](_0x2f8b70[_0x22b9('0x36')],_0x2f8b70[_0x22b9('0x1e')]))});continue;case _0x22b9('0xe'):case _0x22b9('0x2'):_0x5ce354[_0x22b9('0x35')]({'type':_0x22b9('0xf'),'content':_0xc80be1(_0x449c0d,'*Remove:*\x20%0',this[_0x22b9('0x8')](_0x2f8b70[_0x22b9('0x36')],_0x2f8b70[_0x22b9('0x1e')]))});continue;case _0x22b9('0x14'):_0x5ce354['push']({'type':_0x22b9('0x1d'),'content':_0xc80be1(_0x449c0d,'*Split:*\x20%0',this[_0x22b9('0x8')](_0x2f8b70[_0x22b9('0x36')],_0x2f8b70[_0x22b9('0x1e')]))});continue;case _0x22b9('0x2c'):_0x5ce354[_0x22b9('0x35')]({'type':'deletion','content':_0xc80be1(_0x449c0d,'*Merge:*\x20%0',this[_0x22b9('0x8')](_0x2f8b70[_0x22b9('0x36')],_0x2f8b70[_0x22b9('0x1e')]))});continue;}_0x5ce354[_0x22b9('0x35')](_0x2f8b70);}return _0x5ce354;}}
|
package/src/trackchanges.d.ts
CHANGED
package/src/trackchanges.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-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 _0x5b7f=['pluginName','get','TrackChanges','getSuggestions','getSuggestion','plugins','editor','Comments','requires','adapter','addSuggestionData','addSuggestion'];(function(_0x4daa4c,_0x5b7faf){var _0xe82806=function(_0xd25933){while(--_0xd25933){_0x4daa4c['push'](_0x4daa4c['shift']());}};_0xe82806(++_0x5b7faf);}(_0x5b7f,0x1aa));var _0xe828=function(_0x4daa4c,_0x5b7faf){_0x4daa4c=_0x4daa4c-0x0;var _0xe82806=_0x5b7f[_0x4daa4c];return _0xe82806;};import{Plugin as _0x3ed5fa}from'ckeditor5/src/core';import _0x2dfe86 from'./trackchangesui';import _0x1c7fe4 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x3ed5fa{static get[_0xe828('0x2')](){return[_0x1c7fe4,_0x2dfe86,_0xe828('0x1')];}static get[_0xe828('0x6')](){return _0xe828('0x8');}set[_0xe828('0x3')](_0x4b2c7f){this[_0xe828('0x0')]['plugins']['get'](_0x1c7fe4)[_0xe828('0x3')]=_0x4b2c7f;}get['adapter'](){return this[_0xe828('0x0')]['plugins']['get'](_0x1c7fe4)[_0xe828('0x3')];}[_0xe828('0x5')](_0x141b1b){return this[_0xe828('0x0')][_0xe828('0xb')][_0xe828('0x7')](_0x1c7fe4)[_0xe828('0x4')](_0x141b1b);}[_0xe828('0x9')]({skipNotAttached:_0x20446c=!0x1,toJSON:_0x36bb9f=!0x1}={}){return this[_0xe828('0x0')][_0xe828('0xb')]['get'](_0x1c7fe4)[_0xe828('0x9')]({'skipNotAttached':_0x20446c,'toJSON':_0x36bb9f});}[_0xe828('0xa')](_0x350305){return this[_0xe828('0x0')][_0xe828('0xb')][_0xe828('0x7')](_0x1c7fe4)[_0xe828('0xa')](_0x350305);}}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module track-changes/trackchangesdata
|
|
3
7
|
* @publicApi
|
|
@@ -26,12 +30,12 @@ export default class TrackChangesData extends Plugin {
|
|
|
26
30
|
* @param options Options for {@link module:engine/controller/datacontroller~DataController#get}.
|
|
27
31
|
* @returns A promise which resolves with the output data.
|
|
28
32
|
*/
|
|
29
|
-
getDataWithAcceptedSuggestions(options: Record<string, unknown>): Promise<string
|
|
33
|
+
getDataWithAcceptedSuggestions(options: Record<string, unknown>): Promise<string | Record<string, string>>;
|
|
30
34
|
/**
|
|
31
35
|
* Returns the editor data with all the suggestions discarded.
|
|
32
36
|
*
|
|
33
37
|
* @param options Options for {@link module:engine/controller/datacontroller~DataController#get}.
|
|
34
38
|
* @returns A promise which resolves with the output data.
|
|
35
39
|
*/
|
|
36
|
-
getDataWithDiscardedSuggestions(options: Record<string, unknown>): Promise<string
|
|
40
|
+
getDataWithDiscardedSuggestions(options: Record<string, unknown>): Promise<string | Record<string, string>>;
|
|
37
41
|
}
|
package/src/trackchangesdata.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-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 _0xdda6=['init','config','constructor','getUser','document','acceptAllSuggestions','rootsAttributes','destroy','get','div','createDocumentFragment','set','getRootNames','data','pluginName','define','push','createElement','getFullData','reduce','Users','editorCreator','getSuggestions','plugins','appendChild','model','addSuggestionData','TrackChangesEditing','track-changes-data-invalid-editor-creator','TrackChangesDataGetter','function','editor','getDataWithAcceptedSuggestions','CommentsRepository','trackChangesData','requires','useAnonymousUser','getDataWithDiscardedSuggestions','TrackChangesData','trackChangesData.editorCreator','map','getRootsAttributes','discardAllSuggestions','addUser'];(function(_0x4b261b,_0xdda69d){const _0x2e818d=function(_0x5416f4){while(--_0x5416f4){_0x4b261b['push'](_0x4b261b['shift']());}};_0x2e818d(++_0xdda69d);}(_0xdda6,0x19f));const _0x2e81=function(_0x4b261b,_0xdda69d){_0x4b261b=_0x4b261b-0x0;let _0x2e818d=_0xdda6[_0x4b261b];return _0x2e818d;};import{Plugin as _0x137d7c}from'ckeditor5/src/core';import{CKEditorError as _0x3aa2bf}from'ckeditor5/src/utils';import _0x59f3da from'./trackchangesediting';import{sanitizeEditorConfig as _0x3395b4}from'ckeditor5-collaboration/src/collaboration-core';const w=['Pagination'];export default class T extends _0x137d7c{static get[_0x2e81('0x10')](){return[_0x59f3da];}static get[_0x2e81('0x27')](){return _0x2e81('0x13');}['init'](){const _0x5c2b7d=this['editor'];if(_0x5c2b7d[_0x2e81('0x1a')][_0x2e81('0x28')](_0x2e81('0x14'),_0x1b349a=>{const _0x39641f=_0x5c2b7d[_0x2e81('0x6')]['document'][_0x2e81('0x25')]()[_0x2e81('0x0')]((_0x3f0a0f,_0x1a2ac9)=>(_0x3f0a0f[_0x1a2ac9]='',_0x3f0a0f),{});return _0x5c2b7d[_0x2e81('0x1b')]['create'](_0x39641f,_0x1b349a);}),_0x2e81('0xb')!=typeof _0x5c2b7d[_0x2e81('0x1a')][_0x2e81('0x21')](_0x2e81('0xf'))[_0x2e81('0x2')])throw new _0x3aa2bf(_0x2e81('0x9'));}[_0x2e81('0xd')](_0x20dd11){return v(this[_0x2e81('0xc')],!0x0,_0x20dd11);}[_0x2e81('0x12')](_0x5105c9){return v(this[_0x2e81('0xc')],!0x1,_0x5105c9);}}class P extends _0x137d7c{static get[_0x2e81('0x27')](){return _0x2e81('0xa');}constructor(_0x5e4ce8){super(_0x5e4ce8),this['result']='end';}[_0x2e81('0x19')](){this[_0x2e81('0xc')]['plugins']['get'](_0x2e81('0xe'))['_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[_0x2e81('0xc')]['plugins'][_0x2e81('0x21')](_0x2e81('0x8'))['_adapter']=null;}}function D(_0x51c150){return void 0x0!==_0x51c150[_0x2e81('0x16')];}async function v(_0x494e29,_0x5a7ff9,_0x5370dd){const _0x495944=_0x3395b4(_0x494e29,w);_0x495944[_0x2e81('0x4')][_0x2e81('0x29')](_0x59f3da,P),_0x495944[_0x2e81('0x1f')]=D(_0x494e29)?_0x494e29['getRootsAttributes']():void 0x0;const _0x12db01=document[_0x2e81('0x23')](),_0xb515ae=_0x494e29[_0x2e81('0x1a')][_0x2e81('0x21')](_0x2e81('0xf'))[_0x2e81('0x2')],_0x3a54b9=await _0xb515ae(_0x495944,()=>function(_0x1a1d72){const _0x4e930f=document[_0x2e81('0x2a')](_0x2e81('0x22'));return _0x1a1d72[_0x2e81('0x5')](_0x4e930f),_0x4e930f;}(_0x12db01));!function(_0x5d7560,_0x13aae7){const _0x50e5d0=_0x5d7560[_0x2e81('0x6')][_0x2e81('0x1d')][_0x2e81('0x25')]()[_0x2e81('0x0')]((_0x157910,_0x2a562f)=>(_0x157910[_0x2a562f]=_0x5d7560[_0x2e81('0x26')][_0x2e81('0x21')]({'rootName':_0x2a562f}),_0x157910),{}),_0x19a484=_0x5d7560[_0x2e81('0x4')][_0x2e81('0x21')](_0x2e81('0x1'))['users'][_0x2e81('0x15')](_0x5a1823=>({'id':_0x5a1823['id'],'name':_0x5a1823['name']})),_0x5e6710=_0x5d7560[_0x2e81('0x4')]['get']('TrackChangesEditing')[_0x2e81('0x3')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x28a6d=_0x13aae7[_0x2e81('0x4')][_0x2e81('0x21')](_0x2e81('0x1')),_0x428185=_0x13aae7[_0x2e81('0x4')][_0x2e81('0x21')](_0x2e81('0x8'));for(const _0x4a636e of _0x19a484)_0x28a6d[_0x2e81('0x1c')](_0x4a636e['id'])||_0x28a6d[_0x2e81('0x18')](_0x4a636e);_0x28a6d['me']||_0x28a6d[_0x2e81('0x11')]();for(const _0x2fa1a0 of _0x5e6710)_0x428185[_0x2e81('0x7')](_0x2fa1a0);_0x13aae7[_0x2e81('0x26')][_0x2e81('0x24')](_0x50e5d0);}(_0x494e29,_0x3a54b9),_0x3a54b9['execute'](_0x5a7ff9?_0x2e81('0x1e'):_0x2e81('0x17'));const _0x3019a8=D(_0x3a54b9)?_0x3a54b9[_0x2e81('0x2b')](_0x5370dd):_0x3a54b9[_0x2e81('0x26')][_0x2e81('0x21')](_0x5370dd);return await _0x3a54b9[_0x2e81('0x20')](),_0x3019a8;}
|