@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231215.0 → 0.0.0-nightly-20231217.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/build/track-changes.js +1 -1
- package/package.json +4 -3
- package/src/augmentation.d.ts +2 -2
- package/src/commands/acceptsuggestioncommand.d.ts +2 -2
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.d.ts +2 -2
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.d.ts +2 -2
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.d.ts +2 -2
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.d.ts +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.d.ts +12 -12
- package/src/index.js +1 -1
- package/src/integrations/aiassistant.d.ts +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.d.ts +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.d.ts +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.d.ts +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.d.ts +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.d.ts +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.d.ts +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.d.ts +2 -2
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.d.ts +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.d.ts +3 -3
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.d.ts +2 -2
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.d.ts +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.d.ts +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.d.ts +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.d.ts +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.d.ts +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.d.ts +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.d.ts +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.d.ts +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.d.ts +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.d.ts +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.d.ts +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.d.ts +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.d.ts +2 -2
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.d.ts +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.d.ts +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.d.ts +3 -3
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.d.ts +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.d.ts +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.d.ts +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.d.ts +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.d.ts +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.d.ts +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.d.ts +2 -2
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.d.ts +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.d.ts +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.d.ts +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.d.ts +2 -2
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.d.ts +2 -2
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.d.ts +4 -4
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.d.ts +2 -2
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.d.ts +2 -2
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.d.ts +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.d.ts +4 -4
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.d.ts +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.d.ts +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.d.ts +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.d.ts +3 -3
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.d.ts +5 -5
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.d.ts +3 -3
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +5 -5
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +1 -1
- package/src/trackchangesdata.d.ts +2 -2
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +53 -53
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.d.ts +3 -3
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.d.ts +5 -5
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.d.ts +6 -6
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.d.ts +5 -5
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.d.ts +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.d.ts +4 -4
- package/src/utils/utils.js +1 -1
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
|
-
import type { Editor } from 'ckeditor5/src/core';
|
|
6
|
-
import type { Range, Model, Element, DowncastAddMarkerEvent } from 'ckeditor5/src/engine';
|
|
7
|
-
import type { GetCallback } from 'ckeditor5/src/utils';
|
|
5
|
+
import type { Editor } from 'ckeditor5/src/core.js';
|
|
6
|
+
import type { Range, Model, Element, DowncastAddMarkerEvent } from 'ckeditor5/src/engine.js';
|
|
7
|
+
import type { GetCallback } from 'ckeditor5/src/utils.js';
|
|
8
8
|
/**
|
|
9
9
|
* Searches given `range` and returns all sub-ranges containing items with given `attributeKey`.
|
|
10
10
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3f60=['TrackChangesEditing','ck-suggestion-marker-','isAtEnd','name','toViewElement','test','isContent','isBlock','writer','listItem','schema','elementEnd','createRangeOn','getWalker','span','get','consumable','markerName','element','mapper','push','previousPosition','model','activeMarkers','item','getCustomProperty','bindElementToMarker','ck-suggestion-marker--active','listIndent','start','isLimit','getAttribute','toViewPosition','markerRange','hasAttribute','plugins','type','createUIElement','nextSibling','addClass','insert'];(function(_0x3d6075,_0x3f60a3){const _0x328fab=function(_0x36576e){while(--_0x36576e){_0x3d6075['push'](_0x3d6075['shift']());}};_0x328fab(++_0x3f60a3);}(_0x3f60,0x166));const _0x328f=function(_0x3d6075,_0x3f60a3){_0x3d6075=_0x3d6075-0x0;let _0x328fab=_0x3f60[_0x3d6075];return _0x328fab;};export function getRangesWithAttribute(_0x28ce62,_0xc2190,_0x51e808){const _0x5d7dcd=[];for(const _0x2527df of _0xc2190['getItems']())_0x2527df[_0x328f('0x4')](_0x28ce62)&&_0x5d7dcd[_0x328f('0x1f')](_0x51e808[_0x328f('0x17')](_0x2527df));return _0x5d7dcd;}export function getElementsAffectedByListItemRename(_0x44da24){const _0x4811a2=[];if(_0x44da24['is'](_0x328f('0x1d'),_0x328f('0x14'))){let _0x261445=_0x44da24[_0x328f('0x8')];for(;_0x261445&&_0x261445['is']('element','listItem')&&_0x261445[_0x328f('0x1')](_0x328f('0x27'))>0x0;)_0x4811a2[_0x328f('0x1f')](_0x261445),_0x261445=_0x261445[_0x328f('0x8')];}return _0x4811a2;}export function downcastSplitMergeMarker(_0x549f1f,_0xf3753a,{showActiveMarker:_0x1428ef=!0x0}={}){const _0x3fb0fe=_0x549f1f[_0x328f('0x5')][_0x328f('0x1a')](_0x328f('0xb'));return(_0x15d927,_0x2357d8,_0x1da32b)=>{if(!_0x1da32b[_0x328f('0x1b')][_0x328f('0x10')](_0x2357d8[_0x328f('0x3')],_0x15d927[_0x328f('0xe')]))return;const _0x369d90=_0x2357d8['markerRange'][_0x328f('0x18')](),_0x3e3f40=_0x2357d8[_0x328f('0x3')][_0x328f('0x28')],_0x225553=_0x549f1f[_0x328f('0x21')][_0x328f('0x15')];let _0xe57083=null,_0xe0bf5d=null,_0x5c8c11=!0x1,_0x267148=!0x1;for(const _0x41693f of _0x369d90){const _0x910cce=_0x41693f[_0x328f('0x23')];_0x5c8c11=_0x5c8c11||_0x225553[_0x328f('0x11')](_0x910cce);const _0x418a96=_0x1da32b['mapper'][_0x328f('0xf')](_0x910cce);if(_0x418a96&&_0x418a96[_0x328f('0x24')]('addHighlight'))return;_0x328f('0x16')==_0x41693f[_0x328f('0x6')]&&(_0x225553[_0x328f('0x12')](_0x910cce)&&!_0x225553[_0x328f('0x0')](_0x910cce)&&(_0x910cce[_0x328f('0x8')]||_0x3e3f40[_0x328f('0xd')]?_0xe57083&&_0xe57083['parent']==_0x910cce||(_0xe57083=_0x910cce,_0x553666(_0x41693f[_0x328f('0x20')]),_0x267148=!0x0):_0xe0bf5d=_0xe0bf5d||_0x41693f['previousPosition']));}function _0x553666(_0x91aed8){const _0x305d58=_0x1da32b['writer'][_0x328f('0x7')](_0x328f('0x19'),{'class':_0x328f('0xc')+_0xf3753a}),_0x1f97ba=_0x1da32b[_0x328f('0x1e')][_0x328f('0x2')](_0x91aed8);_0x1428ef&&_0x3fb0fe[_0x328f('0x22')]['includes'](_0x2357d8[_0x328f('0x1c')])&&_0x1da32b[_0x328f('0x13')][_0x328f('0x9')](_0x328f('0x26'),_0x305d58),_0x1da32b['writer'][_0x328f('0xa')](_0x1f97ba,_0x305d58),_0x1da32b[_0x328f('0x1e')][_0x328f('0x25')](_0x305d58,_0x2357d8[_0x328f('0x1c')]);}_0x5c8c11||_0x267148||!_0xe0bf5d||_0x553666(_0xe0bf5d);};}
|
package/src/suggestion.d.ts
CHANGED
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
* @module track-changes/suggestion
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Element, type Marker, type Model, type Range, type Item } from 'ckeditor5/src/engine';
|
|
10
|
-
import type { User } from 'ckeditor5-collaboration/src/collaboration-core';
|
|
9
|
+
import { Element, type Marker, type Model, type Range, type Item } from 'ckeditor5/src/engine.js';
|
|
10
|
+
import type { User } from 'ckeditor5-collaboration/src/collaboration-core.js';
|
|
11
11
|
import type { CommentThread } from '@ckeditor/ckeditor5-comments';
|
|
12
|
-
import type { FormatData, AttributeData } from './trackchangesediting';
|
|
12
|
+
import type { FormatData, AttributeData } from './trackchangesediting.js';
|
|
13
13
|
declare const Suggestion_base: {
|
|
14
|
-
new (): import("ckeditor5/src/utils").Observable;
|
|
15
|
-
prototype: import("ckeditor5/src/utils").Observable;
|
|
14
|
+
new (): import("ckeditor5/src/utils.js").Observable;
|
|
15
|
+
prototype: import("ckeditor5/src/utils.js").Observable;
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
18
18
|
* Represents a singular suggestion that is tracked by track changes plugin.
|
package/src/suggestion.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x17f8=['_isDataLoaded','data','attributes','markers','next','getMarkers','map','hasComments','subType','_onAccept','removeAttribute','change','set','clear','removeMarkers','getFirstMarker','from','author','filter','split','createdAt','substr','_model','nodeAfter','nodeBefore','isIntersecting','length','addMarkerName','getRange','push','toJSON','end','removeMarker','addMarker','_onAttributesChange','commentThread','getMarkerNames','_markerNames','creator','isExternal','isIntersectingWithRange','accept','get','@external','getFirstRange','getRanges','isMultiRange','getItems','head','authoredAt','previous','_saved','getMultiRangeId','discard','suggestion:','size','addRange','type'];(function(_0x2f960d,_0x17f8ec){const _0x191912=function(_0x4dccdb){while(--_0x4dccdb){_0x2f960d['push'](_0x2f960d['shift']());}};_0x191912(++_0x17f8ec);}(_0x17f8,0x12c));const _0x1919=function(_0x2f960d,_0x17f8ec){_0x2f960d=_0x2f960d-0x0;let _0x191912=_0x17f8[_0x2f960d];return _0x191912;};import{Element as _0x19bb55}from'ckeditor5/src/engine.js';import{ObservableMixin as _0x59e4de,uid as _0x14778f}from'ckeditor5/src/utils.js';import{cloneDeep as _0x28ed89,isEqual as _0xdbe7e,set as _0x32c908,unset as _0x5d0db8}from'lodash-es';export default class u extends _0x59e4de(){constructor(_0x5dd326,_0x3e661a){super(),this[_0x1919('0x30')]=!0x1,this['id']=_0x3e661a['id'],this['type']=_0x3e661a['type'],this[_0x1919('0x38')]=_0x3e661a[_0x1919('0x38')]||null,this[_0x1919('0x7')]=_0x3e661a[_0x1919('0x7')],this[_0x1919('0x1c')]=_0x3e661a[_0x1919('0x1c')]||_0x3e661a[_0x1919('0x7')],this[_0x1919('0x1d')]=Boolean(_0x3e661a[_0x1919('0x32')]&&_0x3e661a[_0x1919('0x32')][_0x1919('0x21')]),this[_0x1919('0x31')]=null,this[_0x1919('0xc')]=_0x5dd326,this['_onAccept']=_0x3e661a['onAccept'],this['_onDiscard']=_0x3e661a['onDiscard'],this[_0x1919('0x18')]=_0x3e661a['onAttributesChange'],this[_0x1919('0x1b')]=new Set(),this[_0x1919('0xa')]=null,this['set'](_0x1919('0x27'),null),this[_0x1919('0x2')](_0x1919('0x32'),_0x3e661a[_0x1919('0x32')]||{}),this['set']('previous',null),this['set']('next',null),this[_0x1919('0x2')](_0x1919('0x19'),null),this['set'](_0x1919('0x29'),!0x1),this['decorate']('accept'),this['decorate']('discard');}get[_0x1919('0x26')](){let _0x106f7e=this;for(;_0x106f7e[_0x1919('0x28')];)_0x106f7e=_0x106f7e['previous'];return _0x106f7e;}get[_0x1919('0x37')](){return!!this[_0x1919('0x19')]&&this[_0x1919('0x19')][_0x1919('0x10')]>0x0;}get[_0x1919('0x24')](){if(0x0==this[_0x1919('0x1b')][_0x1919('0x2d')])return!0x1;return 0x6==Array[_0x1919('0x6')](this[_0x1919('0x1b')])[0x0][_0x1919('0x9')](':')[_0x1919('0x10')];}get['isInContent'](){return null!==this[_0x1919('0x5')]();}[_0x1919('0x11')](_0x9b7bf){this['_markerNames']['add'](_0x9b7bf);}['getMarkerNames'](){return Array[_0x1919('0x6')](this[_0x1919('0x1b')]);}[_0x1919('0x35')](){return this[_0x1919('0x1a')]()[_0x1919('0x36')](_0x1ab2bf=>this['_model'][_0x1919('0x33')][_0x1919('0x20')](_0x1ab2bf))[_0x1919('0x8')](_0x388b69=>_0x388b69);}['getFirstMarker'](){return this[_0x1919('0x35')]()[0x0]||null;}[_0x1919('0x4')](){this[_0x1919('0xc')][_0x1919('0x1')](_0x53d081=>{for(const _0x1e62ce of this[_0x1919('0x35')]())_0x53d081[_0x1919('0x16')](_0x1e62ce);}),this[_0x1919('0x1b')][_0x1919('0x3')]();}['removeMarker'](_0x2ed5e1){this[_0x1919('0xc')]['change'](_0xf3e99d=>{_0xf3e99d[_0x1919('0x16')](_0x2ed5e1);}),this['_markerNames']['delete'](_0x2ed5e1);}[_0x1919('0x2e')](_0x41983d){const _0x1df1b2=_0x1919('0x2c')+this['type']+':'+this[_0x1919('0x38')]+':'+this['id']+':'+this[_0x1919('0x1c')]['id']+':'+u[_0x1919('0x2a')]();this[_0x1919('0x11')](_0x1df1b2),this[_0x1919('0xc')][_0x1919('0x1')](_0x594c17=>{_0x594c17[_0x1919('0x17')](_0x1df1b2,{'range':_0x41983d,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x1919('0x1e')](_0x4af2f5){for(const _0x4d992d of this[_0x1919('0x23')]())if(_0x4d992d[_0x1919('0xf')](_0x4af2f5))return!0x0;return!0x1;}['getRanges'](){return this[_0x1919('0x35')]()[_0x1919('0x36')](_0x53ec94=>_0x53ec94[_0x1919('0x12')]());}[_0x1919('0x25')](){return this[_0x1919('0x23')]()['reduce']((_0x3354b7,_0x5096de)=>[..._0x3354b7,..._0x5096de[_0x1919('0x25')]()],[]);}[_0x1919('0x22')](){var _0x475ac2;return(null===(_0x475ac2=this[_0x1919('0x5')]())||void 0x0===_0x475ac2?void 0x0:_0x475ac2[_0x1919('0x12')]())||null;}['getContainedElement'](){const _0xa82182=this[_0x1919('0x23')]();if(0x1!=_0xa82182[_0x1919('0x10')])return null;const _0x28bdb6=_0xa82182[0x0],_0xe80ad=_0x28bdb6['start'][_0x1919('0xd')],_0x51449d=_0x28bdb6[_0x1919('0x15')][_0x1919('0xe')];return _0xe80ad instanceof _0x19bb55?_0xe80ad!=_0x51449d?null:_0xe80ad:null;}[_0x1919('0x1f')](){this[_0x1919('0x39')](this['getRanges'](),this[_0x1919('0x31')],this['attributes']),this[_0x1919('0x4')]();}[_0x1919('0x2b')](){this['_onDiscard'](this[_0x1919('0x23')](),this[_0x1919('0x31')],this[_0x1919('0x32')]),this[_0x1919('0x4')]();}['getAllAdjacentSuggestions'](){const _0x2b10eb=[];let _0x5f3890=this[_0x1919('0x26')];for(;_0x5f3890;)_0x2b10eb[_0x1919('0x13')](_0x5f3890),_0x5f3890=_0x5f3890[_0x1919('0x34')];return _0x2b10eb;}['setAttribute'](_0x36bb13,_0x5997d2){const _0xdf4f33=_0x28ed89(this[_0x1919('0x32')]);_0x32c908(_0xdf4f33,_0x36bb13,_0x5997d2),_0xdbe7e(_0xdf4f33,this['attributes'])||(this['attributes']=_0xdf4f33,this[_0x1919('0x18')](_0xdf4f33));}[_0x1919('0x0')](_0x3c6bfb){const _0x35e184=_0x28ed89(this[_0x1919('0x32')]);_0x5d0db8(_0x35e184,_0x3c6bfb),_0xdbe7e(_0x35e184,this['attributes'])||(this[_0x1919('0x32')]=_0x35e184,this['_onAttributesChange'](this[_0x1919('0x32')]));}[_0x1919('0x14')](){return{'id':this['id'],'type':this[_0x1919('0x38')]?this[_0x1919('0x2f')]+':'+this['subType']:this[_0x1919('0x2f')],'authorId':this[_0x1919('0x1c')]['id'],'createdAt':this[_0x1919('0xa')],'hasComments':this[_0x1919('0x37')],'data':this['data'],'attributes':this[_0x1919('0x32')]};}static[_0x1919('0x2a')](){return _0x14778f()[_0x1919('0xb')](0x1,0x5);}}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
|
-
import { type Locale, type PriorityString } from 'ckeditor5/src/utils';
|
|
6
|
-
import type { Schema, Element } from 'ckeditor5/src/engine';
|
|
7
|
-
import type Suggestion from './suggestion';
|
|
5
|
+
import { type Locale, type PriorityString } from 'ckeditor5/src/utils.js';
|
|
6
|
+
import type { Schema, Element } from 'ckeditor5/src/engine.js';
|
|
7
|
+
import type Suggestion from './suggestion.js';
|
|
8
8
|
/**
|
|
9
9
|
* Creates descriptions for suggestions and suggestions chains.
|
|
10
10
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1fbf=['isEqual','get','_customCallbacks','match','map','getWalker','insertion','data','name','$1\x20$2','getDescriptions','element','replace','isEmpty','skip','*Change\x20to:*\x20%0','_itemLabelsCallbacks','*Remove:*\x20%0','pop','type','addObject','removeFormat','push','deletion','addContainer','attribute','_handleAttributeSuggestionDescription','softBreak','add','checkChild','_handleInsertRemoveSuggestionDescription','EmptyContainer','has','$textProxy','isInContent','text','removeObject','set','ELEMENT_SPACE','removeEmptyContainer','end','_locale','_handleCustomCallbackDescription','_handleRenameSuggestionDescription','_addDescriptionItems','length','getFirstRange','matchingCallback','addFormat','_itemLabels','indexOf','$text','subType','*Insert:*\x20%0','newValue','getItemLabel','item','Container','remove','*Set\x20format:*\x20%0','_resolveDescriptionItems','_attributeLabels','Object','_schema','addEmptyContainer','*Remove\x20format:*\x20%0','join','elementEnd','*Split:*\x20%0','quantity','previousSibling','start','isObject','key','nodeAfter','format'];(function(_0x219eea,_0x1fbf66){const _0x2c4dd9=function(_0x497c13){while(--_0x497c13){_0x219eea['push'](_0x219eea['shift']());}};_0x2c4dd9(++_0x1fbf66);}(_0x1fbf,0xf1));const _0x2c4d=function(_0x219eea,_0x1fbf66){_0x219eea=_0x219eea-0x0;let _0x2c4dd9=_0x1fbf[_0x219eea];return _0x2c4dd9;};import{getTranslation as _0x755bbf}from'./utils/common-translations';import{priorities as _0x52e178,insertToPriorityArray as _0x3b1d8d}from'ckeditor5/src/utils';import{renameAttributeKey as _0x9329ab}from'./trackchangesediting';export default class f{constructor(_0x3536eb,_0x315774){this[_0x2c4d('0x41')]=[],this[_0x2c4d('0x24')]=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3536eb,this['_locale']=_0x315774;}[_0x2c4d('0x49')](_0x444cfb){const _0x525323=[],_0x120ce5=new Set(),_0xf8e89e=new Set();for(let _0x40596e=0x0;_0x40596e<_0x444cfb[_0x2c4d('0x20')];_0x40596e++){const _0x16b75c=_0x444cfb[_0x40596e];if(!_0x16b75c[_0x2c4d('0x15')])continue;const _0xd34174=this[_0x2c4d('0x1d')](_0x16b75c);if(_0xd34174){if(null!=_0x16b75c[_0x2c4d('0x27')]){if(_0x120ce5['has'](_0x16b75c[_0x2c4d('0x27')]))continue;_0x120ce5[_0x2c4d('0xf')](_0x16b75c[_0x2c4d('0x27')]);}_0x525323[_0x2c4d('0x9')](_0xd34174);}else{if(_0x2c4d('0xc')!=_0x16b75c[_0x2c4d('0x6')])_0x2c4d('0x45')!=_0x16b75c['type']&&_0x2c4d('0xa')!=_0x16b75c[_0x2c4d('0x6')]||this[_0x2c4d('0x11')](_0x525323,_0x16b75c,_0x444cfb[_0x40596e+0x1]);else{const _0x4476dc=_0x16b75c[_0x2c4d('0x46')][_0x2c4d('0x3c')];if(_0xf8e89e['has'](_0x4476dc))continue;_0xf8e89e[_0x2c4d('0xf')](_0x16b75c[_0x2c4d('0x46')][_0x2c4d('0x3c')]),_0x4476dc==_0x9329ab?this[_0x2c4d('0x1e')](_0x525323,_0x16b75c):this[_0x2c4d('0xd')](_0x525323,_0x16b75c);}}}return this['_resolveDescriptionItems'](_0x525323);}['registerDescriptionCallback'](_0x554b75){this[_0x2c4d('0x41')][_0x2c4d('0x9')](_0x554b75);}['registerElementLabel'](_0x5ac8a6,_0x46cb99,_0x145229=_0x52e178['normal']){'function'==typeof _0x5ac8a6?_0x3b1d8d(this[_0x2c4d('0x3')],{'matchingCallback':_0x5ac8a6,'label':_0x46cb99,'priority':_0x145229}):this[_0x2c4d('0x24')][_0x2c4d('0x18')](_0x5ac8a6,_0x46cb99);}['registerAttributeLabel'](_0x37e00a,_0x5e552d){this[_0x2c4d('0x30')]['set'](_0x37e00a,_0x5e552d);}[_0x2c4d('0x2a')](_0x4073b0,_0x58d878=0x1){let _0x247973;for(const _0x2370fa of this[_0x2c4d('0x3')])if(_0x2370fa[_0x2c4d('0x22')](_0x4073b0)){_0x247973=_0x2370fa['label'];break;}return _0x247973||(_0x247973=this[_0x2c4d('0x24')]['get'](_0x4073b0[_0x2c4d('0x47')])),_0x247973?_0x247973(_0x58d878):0x1!==_0x58d878?_0x58d878+'\x20'+_0x4073b0['name']+'s':''+_0x4073b0[_0x2c4d('0x47')];}[_0x2c4d('0x1f')](_0x38db44,_0x366b0f){const _0x522a19=_0x366b0f[_0x2c4d('0x21')]()[_0x2c4d('0x44')](),_0x41f609=_0x2c4d('0x45')==_0x366b0f[_0x2c4d('0x6')]?_0x2c4d('0xf'):'remove';for(const _0x370d0f of _0x522a19){const _0x1837c4=_0x370d0f['item'],_0x207ed1=_0x38db44[_0x38db44[_0x2c4d('0x20')]-0x1];if(_0x1837c4['is'](_0x2c4d('0x14')))_0x207ed1&&_0x207ed1['type'][_0x2c4d('0x25')](_0x2c4d('0x2c'))>-0x1&&_0x38db44[_0x2c4d('0x5')](),_0x207ed1&&_0x2c4d('0x16')==_0x207ed1[_0x2c4d('0x6')]?_0x207ed1[_0x41f609]+=_0x1837c4[_0x2c4d('0x46')]:_0x38db44['push']({'type':_0x2c4d('0x16'),'add':_0x2c4d('0xf')==_0x41f609?_0x1837c4[_0x2c4d('0x46')]:'','remove':_0x2c4d('0x2d')==_0x41f609?_0x1837c4['data']:''});else{if(this[_0x2c4d('0x32')][_0x2c4d('0x3b')](_0x1837c4)){const _0x48527e=_0x1837c4;if(_0x207ed1&&_0x207ed1[_0x2c4d('0x6')][_0x2c4d('0x25')](_0x2c4d('0x2c'))>-0x1&&_0x38db44[_0x2c4d('0x5')](),'elementEnd'==_0x370d0f[_0x2c4d('0x6')])continue;_0x207ed1&&_0x207ed1['type']==_0x41f609+_0x2c4d('0x31')&&_0x207ed1[_0x2c4d('0x4a')]['name']==_0x48527e['name']?_0x207ed1[_0x2c4d('0x38')]++:_0x38db44['push']({'type':_0x41f609+_0x2c4d('0x31'),'element':_0x48527e,'quantity':0x1}),_0x522a19[_0x2c4d('0x1')](_0x3c19d4=>!('elementEnd'==_0x3c19d4[_0x2c4d('0x6')]&&_0x3c19d4[_0x2c4d('0x2b')]==_0x1837c4));}else{if(this[_0x2c4d('0x32')][_0x2c4d('0x10')](_0x1837c4,_0x2c4d('0x26'))||_0x1837c4['is'](_0x2c4d('0x4a'),_0x2c4d('0xe'))){const _0x2489b5=_0x1837c4;if(_0x2c4d('0xf')==_0x41f609&&'elementStart'==_0x370d0f['type']||_0x2c4d('0x2d')==_0x41f609&&_0x2c4d('0x36')==_0x370d0f[_0x2c4d('0x6')])continue;if(_0x207ed1&&-0x1==_0x207ed1[_0x2c4d('0x6')][_0x2c4d('0x25')]('Container')){_0x2c4d('0x16')==_0x207ed1['type']&&(_0x207ed1[_0x41f609]+='\x0a');continue;}let _0xfa803a;if(_0xfa803a=_0x2c4d('0xf')==_0x41f609?_0x2489b5['nextSibling']&&!this['_schema'][_0x2c4d('0x3b')](_0x2489b5['nextSibling'])?_0x2489b5['nextSibling']:null:_0x2489b5[_0x2c4d('0x39')]&&!this[_0x2c4d('0x32')][_0x2c4d('0x3b')](_0x2489b5[_0x2c4d('0x39')])?_0x2489b5[_0x2c4d('0x39')]:null,_0x2489b5['isEmpty']||_0xfa803a&&_0xfa803a[_0x2c4d('0x0')]){const _0x38a696=_0xfa803a&&_0xfa803a[_0x2c4d('0x0')]?_0xfa803a:_0x2489b5;_0x207ed1&&_0x207ed1[_0x2c4d('0x6')]==_0x41f609+_0x2c4d('0x12')&&_0x207ed1[_0x2c4d('0x4a')][_0x2c4d('0x47')]==_0x38a696['name']?_0x207ed1[_0x2c4d('0x38')]++:_0x38db44[_0x2c4d('0x9')]({'type':_0x41f609+'EmptyContainer','element':_0x38a696,'quantity':0x1});}else _0x38db44[_0x2c4d('0x9')]({'type':_0x41f609+_0x2c4d('0x2c'),'element':_0x2489b5});}}}}}[_0x2c4d('0x2f')](_0x1bf576){const _0x2a1697=this[_0x2c4d('0x1c')],_0x2832bb=[],_0x5592a7=[],_0x45e205=[];for(const _0xbb2680 of _0x1bf576)switch(_0xbb2680[_0x2c4d('0x6')]){case'text':if(_0xbb2680['add']=_0xbb2680[_0x2c4d('0xf')][_0x2c4d('0x4b')](/(\S)\u000A+(\S)/g,_0x2c4d('0x48'))[_0x2c4d('0x4b')](/\u000A/g,''),_0xbb2680['remove']=_0xbb2680[_0x2c4d('0x2d')][_0x2c4d('0x4b')](/(\S)\u000A+(\S)/g,_0x2c4d('0x48'))[_0x2c4d('0x4b')](/\u000A/g,''),''!=_0xbb2680['add']&&''!=_0xbb2680[_0x2c4d('0x2d')]){_0x2832bb[_0x2c4d('0x9')]({'type':_0x2c4d('0x4b'),'content':_0x755bbf(_0x2a1697,'REPLACE_TEXT',['\x22'+_0xbb2680['remove']+'\x22','\x22'+_0xbb2680[_0x2c4d('0xf')]+'\x22'])});continue;}if(null!=_0xbb2680[_0x2c4d('0xf')][_0x2c4d('0x42')](/^ +$/)){_0x2832bb[_0x2c4d('0x9')]({'type':_0x2c4d('0x45'),'content':_0x755bbf(_0x2a1697,_0x2c4d('0x28'),_0x755bbf(_0x2a1697,'ELEMENT_SPACE',_0xbb2680[_0x2c4d('0xf')][_0x2c4d('0x20')]))});continue;}if(null!=_0xbb2680[_0x2c4d('0x2d')][_0x2c4d('0x42')](/^ +$/)){_0x2832bb['push']({'type':_0x2c4d('0xa'),'content':_0x755bbf(_0x2a1697,_0x2c4d('0x4'),_0x755bbf(_0x2a1697,_0x2c4d('0x19'),_0xbb2680['remove'][_0x2c4d('0x20')]))});continue;}if(''!=_0xbb2680[_0x2c4d('0xf')]){_0x2832bb[_0x2c4d('0x9')]({'type':_0x2c4d('0x45'),'content':_0x755bbf(_0x2a1697,_0x2c4d('0x28'),'\x22'+_0xbb2680[_0x2c4d('0xf')]+'\x22')});continue;}_0x2832bb[_0x2c4d('0x9')]({'type':_0x2c4d('0xa'),'content':_0x755bbf(_0x2a1697,_0x2c4d('0x4'),'\x22'+_0xbb2680['remove']+'\x22')});continue;case _0x2c4d('0x33'):case _0x2c4d('0x7'):_0x2832bb['push']({'type':_0x2c4d('0x45'),'content':_0x755bbf(_0x2a1697,'*Insert:*\x20%0',this[_0x2c4d('0x2a')](_0xbb2680[_0x2c4d('0x4a')],_0xbb2680[_0x2c4d('0x38')]))});continue;case _0x2c4d('0x1a'):case _0x2c4d('0x17'):_0x2832bb['push']({'type':_0x2c4d('0xa'),'content':_0x755bbf(_0x2a1697,_0x2c4d('0x4'),this[_0x2c4d('0x2a')](_0xbb2680['element'],_0xbb2680[_0x2c4d('0x38')]))});continue;case _0x2c4d('0xb'):_0x2832bb['push']({'type':'insertion','content':_0x755bbf(_0x2a1697,_0x2c4d('0x37'),this[_0x2c4d('0x2a')](_0xbb2680['element'],_0xbb2680[_0x2c4d('0x38')]))});continue;case'removeContainer':_0x2832bb[_0x2c4d('0x9')]({'type':_0x2c4d('0xa'),'content':_0x755bbf(_0x2a1697,'*Merge:*\x20%0',this[_0x2c4d('0x2a')](_0xbb2680[_0x2c4d('0x4a')],_0xbb2680[_0x2c4d('0x38')]))});continue;case _0x2c4d('0x23'):_0x5592a7[_0x2c4d('0x9')](_0xbb2680['key']);continue;case'removeFormat':_0x45e205[_0x2c4d('0x9')](_0xbb2680[_0x2c4d('0x3c')]);continue;default:_0x2832bb['push'](_0xbb2680);}if(_0x5592a7[_0x2c4d('0x20')]){const _0x246e1d=_0x5592a7[_0x2c4d('0x43')](_0x2f3b8b=>this[_0x2c4d('0x30')][_0x2c4d('0x13')](_0x2f3b8b)?this[_0x2c4d('0x30')][_0x2c4d('0x40')](_0x2f3b8b):_0x2f3b8b)[_0x2c4d('0x35')](',\x20');_0x2832bb[_0x2c4d('0x9')]({'type':_0x2c4d('0x3e'),'content':_0x755bbf(this[_0x2c4d('0x1c')],_0x2c4d('0x2e'),_0x246e1d)});}if(_0x45e205[_0x2c4d('0x20')]){const _0x49b4a9=_0x45e205[_0x2c4d('0x43')](_0x110eff=>this[_0x2c4d('0x30')][_0x2c4d('0x13')](_0x110eff)?this[_0x2c4d('0x30')]['get'](_0x110eff):_0x110eff)['join'](',\x20');_0x2832bb[_0x2c4d('0x9')]({'type':_0x2c4d('0x3e'),'content':_0x755bbf(this['_locale'],_0x2c4d('0x34'),_0x49b4a9)});}return _0x2832bb;}['_handleCustomCallbackDescription'](_0x4debcb){for(const _0xc071b1 of this[_0x2c4d('0x41')]){const _0x40c0b9=_0xc071b1(_0x4debcb);if(_0x40c0b9&&_0x2c4d('0x6')in _0x40c0b9)return _0x40c0b9;}}[_0x2c4d('0xd')](_0x232bdf,_0x46d775){const _0x4527ee=_0x46d775[_0x2c4d('0x46')],_0x340ee8=void 0x0===_0x4527ee[_0x2c4d('0x29')]?_0x2c4d('0x8'):_0x2c4d('0x23');_0x232bdf[_0x2c4d('0x9')]({'type':_0x340ee8,'key':_0x4527ee[_0x2c4d('0x3c')]});}[_0x2c4d('0x1e')](_0x26bf1e,_0x2a29dd){_0x26bf1e['push']({'type':_0x2c4d('0x3e'),'content':_0x755bbf(this[_0x2c4d('0x1c')],_0x2c4d('0x2'),this[_0x2c4d('0x2a')](_0x2a29dd[_0x2c4d('0x21')]()[_0x2c4d('0x3a')][_0x2c4d('0x3d')],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1ddedb,_0x38a194,_0x5adac1){if(this[_0x2c4d('0x1f')](_0x1ddedb,_0x38a194),_0x5adac1&&_0x5adac1[_0x2c4d('0x21')]()&&!_0x38a194[_0x2c4d('0x21')]()[_0x2c4d('0x1b')][_0x2c4d('0x3f')](_0x5adac1['getFirstRange']()[_0x2c4d('0x3a')])){const _0x505aa0=_0x1ddedb[_0x1ddedb[_0x2c4d('0x20')]-0x1],_0x46c250=_0x2c4d('0x45')==_0x38a194['type']?'add':_0x2c4d('0x2d');_0x505aa0&&_0x2c4d('0x16')==_0x505aa0[_0x2c4d('0x6')]&&(_0x505aa0[_0x46c250]+='\x0a');}}}
|
|
23
|
+
const _0x10fa=['elementEnd','add','name','softBreak','*Merge:*\x20%0','_handleAttributeSuggestionDescription','getItemLabel','isEqual','_handleRenameSuggestionDescription','matchingCallback','addFormat','*Split:*\x20%0','deletion','_customCallbacks','has','type','nodeAfter','remove','_locale','*Set\x20format:*\x20%0','key','*Remove:*\x20%0','getDescriptions','_attributeLabels','element','attribute','data','Object','_addDescriptionItems','*Remove\x20format:*\x20%0','format','label','ELEMENT_SPACE','text','pop','replace','*Insert:*\x20%0','isObject','Container','insertion','checkChild','addContainer','isEmpty','_schema','map','previousSibling','getWalker','push','length','get','REPLACE_TEXT','isInContent','set','subType','EmptyContainer','_itemLabels','removeObject','_handleCustomCallbackDescription','removeEmptyContainer','quantity','registerDescriptionCallback','match','start','addObject','nextSibling','item','_itemLabelsCallbacks','$1\x20$2','removeFormat','registerAttributeLabel','join','getFirstRange','indexOf','skip','registerElementLabel'];(function(_0x39583b,_0x10fa0f){const _0x2b74c3=function(_0x258c57){while(--_0x258c57){_0x39583b['push'](_0x39583b['shift']());}};_0x2b74c3(++_0x10fa0f);}(_0x10fa,0x73));const _0x2b74=function(_0x39583b,_0x10fa0f){_0x39583b=_0x39583b-0x0;let _0x2b74c3=_0x10fa[_0x39583b];return _0x2b74c3;};import{getTranslation as _0x514121}from'./utils/common-translations.js';import{priorities as _0x591abd,insertToPriorityArray as _0x10d9fc}from'ckeditor5/src/utils.js';import{renameAttributeKey as _0x4cbeac}from'./trackchangesediting.js';export default class f{constructor(_0x527d00,_0x404127){this[_0x2b74('0x30')]=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x527d00,this[_0x2b74('0x35')]=_0x404127;}[_0x2b74('0x39')](_0x2367a0){const _0x401eb1=[],_0x417db7=new Set(),_0x45b3fc=new Set();for(let _0x40e07d=0x0;_0x40e07d<_0x2367a0['length'];_0x40e07d++){const _0x2e13e1=_0x2367a0[_0x40e07d];if(!_0x2e13e1[_0x2b74('0xb')])continue;const _0x127740=this[_0x2b74('0x11')](_0x2e13e1);if(_0x127740){if(null!=_0x2e13e1[_0x2b74('0xd')]){if(_0x417db7['has'](_0x2e13e1['subType']))continue;_0x417db7[_0x2b74('0x24')](_0x2e13e1[_0x2b74('0xd')]);}_0x401eb1[_0x2b74('0x7')](_0x127740);}else{if(_0x2b74('0x3c')!=_0x2e13e1[_0x2b74('0x32')])'insertion'!=_0x2e13e1[_0x2b74('0x32')]&&_0x2b74('0x2f')!=_0x2e13e1[_0x2b74('0x32')]||this['_handleInsertRemoveSuggestionDescription'](_0x401eb1,_0x2e13e1,_0x2367a0[_0x40e07d+0x1]);else{const _0x10a244=_0x2e13e1['data'][_0x2b74('0x37')];if(_0x45b3fc['has'](_0x10a244))continue;_0x45b3fc[_0x2b74('0x24')](_0x2e13e1[_0x2b74('0x3d')][_0x2b74('0x37')]),_0x10a244==_0x4cbeac?this[_0x2b74('0x2b')](_0x401eb1,_0x2e13e1):this[_0x2b74('0x28')](_0x401eb1,_0x2e13e1);}}}return this['_resolveDescriptionItems'](_0x401eb1);}[_0x2b74('0x14')](_0x400af8){this[_0x2b74('0x30')][_0x2b74('0x7')](_0x400af8);}[_0x2b74('0x22')](_0x3270f2,_0x21a9dc,_0x479b5b=_0x591abd['normal']){'function'==typeof _0x3270f2?_0x10d9fc(this[_0x2b74('0x1a')],{'matchingCallback':_0x3270f2,'label':_0x21a9dc,'priority':_0x479b5b}):this[_0x2b74('0xf')]['set'](_0x3270f2,_0x21a9dc);}[_0x2b74('0x1d')](_0x15161b,_0x4f347c){this['_attributeLabels'][_0x2b74('0xc')](_0x15161b,_0x4f347c);}[_0x2b74('0x29')](_0x194049,_0x372afa=0x1){let _0x399a11;for(const _0x37ee05 of this[_0x2b74('0x1a')])if(_0x37ee05[_0x2b74('0x2c')](_0x194049)){_0x399a11=_0x37ee05[_0x2b74('0x42')];break;}return _0x399a11||(_0x399a11=this['_itemLabels'][_0x2b74('0x9')](_0x194049['name'])),_0x399a11?_0x399a11(_0x372afa):0x1!==_0x372afa?_0x372afa+'\x20'+_0x194049[_0x2b74('0x25')]+'s':''+_0x194049[_0x2b74('0x25')];}['_addDescriptionItems'](_0x47e3bc,_0x25da14){const _0x4860fc=_0x25da14[_0x2b74('0x1f')]()[_0x2b74('0x6')](),_0x1bac41=_0x2b74('0x4a')==_0x25da14[_0x2b74('0x32')]?_0x2b74('0x24'):_0x2b74('0x34');for(const _0x2ae05f of _0x4860fc){const _0x375f5c=_0x2ae05f[_0x2b74('0x19')],_0x57bf36=_0x47e3bc[_0x47e3bc[_0x2b74('0x8')]-0x1];if(_0x375f5c['is']('$textProxy'))_0x57bf36&&_0x57bf36[_0x2b74('0x32')][_0x2b74('0x20')](_0x2b74('0x49'))>-0x1&&_0x47e3bc[_0x2b74('0x45')](),_0x57bf36&&_0x2b74('0x44')==_0x57bf36[_0x2b74('0x32')]?_0x57bf36[_0x1bac41]+=_0x375f5c[_0x2b74('0x3d')]:_0x47e3bc['push']({'type':'text','add':_0x2b74('0x24')==_0x1bac41?_0x375f5c[_0x2b74('0x3d')]:'','remove':_0x2b74('0x34')==_0x1bac41?_0x375f5c[_0x2b74('0x3d')]:''});else{if(this[_0x2b74('0x3')][_0x2b74('0x48')](_0x375f5c)){const _0x16a603=_0x375f5c;if(_0x57bf36&&_0x57bf36['type'][_0x2b74('0x20')](_0x2b74('0x49'))>-0x1&&_0x47e3bc[_0x2b74('0x45')](),_0x2b74('0x23')==_0x2ae05f[_0x2b74('0x32')])continue;_0x57bf36&&_0x57bf36[_0x2b74('0x32')]==_0x1bac41+_0x2b74('0x3e')&&_0x57bf36['element'][_0x2b74('0x25')]==_0x16a603[_0x2b74('0x25')]?_0x57bf36[_0x2b74('0x13')]++:_0x47e3bc[_0x2b74('0x7')]({'type':_0x1bac41+_0x2b74('0x3e'),'element':_0x16a603,'quantity':0x1}),_0x4860fc[_0x2b74('0x21')](_0x27ff42=>!('elementEnd'==_0x27ff42[_0x2b74('0x32')]&&_0x27ff42[_0x2b74('0x19')]==_0x375f5c));}else{if(this[_0x2b74('0x3')][_0x2b74('0x0')](_0x375f5c,'$text')||_0x375f5c['is'](_0x2b74('0x3b'),_0x2b74('0x26'))){const _0x328671=_0x375f5c;if(_0x2b74('0x24')==_0x1bac41&&'elementStart'==_0x2ae05f['type']||_0x2b74('0x34')==_0x1bac41&&_0x2b74('0x23')==_0x2ae05f[_0x2b74('0x32')])continue;if(_0x57bf36&&-0x1==_0x57bf36[_0x2b74('0x32')][_0x2b74('0x20')](_0x2b74('0x49'))){_0x2b74('0x44')==_0x57bf36[_0x2b74('0x32')]&&(_0x57bf36[_0x1bac41]+='\x0a');continue;}let _0x320ba7;if(_0x320ba7=_0x2b74('0x24')==_0x1bac41?_0x328671[_0x2b74('0x18')]&&!this[_0x2b74('0x3')]['isObject'](_0x328671[_0x2b74('0x18')])?_0x328671[_0x2b74('0x18')]:null:_0x328671['previousSibling']&&!this[_0x2b74('0x3')][_0x2b74('0x48')](_0x328671[_0x2b74('0x5')])?_0x328671['previousSibling']:null,_0x328671[_0x2b74('0x2')]||_0x320ba7&&_0x320ba7[_0x2b74('0x2')]){const _0x530817=_0x320ba7&&_0x320ba7[_0x2b74('0x2')]?_0x320ba7:_0x328671;_0x57bf36&&_0x57bf36['type']==_0x1bac41+_0x2b74('0xe')&&_0x57bf36[_0x2b74('0x3b')][_0x2b74('0x25')]==_0x530817['name']?_0x57bf36['quantity']++:_0x47e3bc[_0x2b74('0x7')]({'type':_0x1bac41+_0x2b74('0xe'),'element':_0x530817,'quantity':0x1});}else _0x47e3bc[_0x2b74('0x7')]({'type':_0x1bac41+_0x2b74('0x49'),'element':_0x328671});}}}}}['_resolveDescriptionItems'](_0x2bb9e7){const _0x1ea92e=this[_0x2b74('0x35')],_0x2ed628=[],_0x12abd9=[],_0x5919cc=[];for(const _0x4e5c7f of _0x2bb9e7)switch(_0x4e5c7f[_0x2b74('0x32')]){case _0x2b74('0x44'):if(_0x4e5c7f[_0x2b74('0x24')]=_0x4e5c7f[_0x2b74('0x24')][_0x2b74('0x46')](/(\S)\u000A+(\S)/g,_0x2b74('0x1b'))['replace'](/\u000A/g,''),_0x4e5c7f[_0x2b74('0x34')]=_0x4e5c7f[_0x2b74('0x34')][_0x2b74('0x46')](/(\S)\u000A+(\S)/g,'$1\x20$2')[_0x2b74('0x46')](/\u000A/g,''),''!=_0x4e5c7f[_0x2b74('0x24')]&&''!=_0x4e5c7f[_0x2b74('0x34')]){_0x2ed628['push']({'type':_0x2b74('0x46'),'content':_0x514121(_0x1ea92e,_0x2b74('0xa'),['\x22'+_0x4e5c7f[_0x2b74('0x34')]+'\x22','\x22'+_0x4e5c7f[_0x2b74('0x24')]+'\x22'])});continue;}if(null!=_0x4e5c7f[_0x2b74('0x24')][_0x2b74('0x15')](/^ +$/)){_0x2ed628['push']({'type':'insertion','content':_0x514121(_0x1ea92e,_0x2b74('0x47'),_0x514121(_0x1ea92e,_0x2b74('0x43'),_0x4e5c7f[_0x2b74('0x24')][_0x2b74('0x8')]))});continue;}if(null!=_0x4e5c7f[_0x2b74('0x34')][_0x2b74('0x15')](/^ +$/)){_0x2ed628['push']({'type':_0x2b74('0x2f'),'content':_0x514121(_0x1ea92e,'*Remove:*\x20%0',_0x514121(_0x1ea92e,_0x2b74('0x43'),_0x4e5c7f[_0x2b74('0x34')][_0x2b74('0x8')]))});continue;}if(''!=_0x4e5c7f[_0x2b74('0x24')]){_0x2ed628[_0x2b74('0x7')]({'type':_0x2b74('0x4a'),'content':_0x514121(_0x1ea92e,'*Insert:*\x20%0','\x22'+_0x4e5c7f[_0x2b74('0x24')]+'\x22')});continue;}_0x2ed628['push']({'type':_0x2b74('0x2f'),'content':_0x514121(_0x1ea92e,_0x2b74('0x38'),'\x22'+_0x4e5c7f['remove']+'\x22')});continue;case'addEmptyContainer':case _0x2b74('0x17'):_0x2ed628['push']({'type':_0x2b74('0x4a'),'content':_0x514121(_0x1ea92e,'*Insert:*\x20%0',this['getItemLabel'](_0x4e5c7f['element'],_0x4e5c7f[_0x2b74('0x13')]))});continue;case _0x2b74('0x12'):case _0x2b74('0x10'):_0x2ed628['push']({'type':'deletion','content':_0x514121(_0x1ea92e,'*Remove:*\x20%0',this[_0x2b74('0x29')](_0x4e5c7f[_0x2b74('0x3b')],_0x4e5c7f['quantity']))});continue;case _0x2b74('0x1'):_0x2ed628[_0x2b74('0x7')]({'type':'insertion','content':_0x514121(_0x1ea92e,_0x2b74('0x2e'),this[_0x2b74('0x29')](_0x4e5c7f['element'],_0x4e5c7f[_0x2b74('0x13')]))});continue;case'removeContainer':_0x2ed628[_0x2b74('0x7')]({'type':_0x2b74('0x2f'),'content':_0x514121(_0x1ea92e,_0x2b74('0x27'),this[_0x2b74('0x29')](_0x4e5c7f[_0x2b74('0x3b')],_0x4e5c7f['quantity']))});continue;case _0x2b74('0x2d'):_0x12abd9[_0x2b74('0x7')](_0x4e5c7f[_0x2b74('0x37')]);continue;case'removeFormat':_0x5919cc[_0x2b74('0x7')](_0x4e5c7f[_0x2b74('0x37')]);continue;default:_0x2ed628[_0x2b74('0x7')](_0x4e5c7f);}if(_0x12abd9[_0x2b74('0x8')]){const _0x5407d3=_0x12abd9[_0x2b74('0x4')](_0x631af3=>this[_0x2b74('0x3a')][_0x2b74('0x31')](_0x631af3)?this['_attributeLabels'][_0x2b74('0x9')](_0x631af3):_0x631af3)['join'](',\x20');_0x2ed628['push']({'type':_0x2b74('0x41'),'content':_0x514121(this[_0x2b74('0x35')],_0x2b74('0x36'),_0x5407d3)});}if(_0x5919cc[_0x2b74('0x8')]){const _0x253403=_0x5919cc[_0x2b74('0x4')](_0x25132e=>this['_attributeLabels'][_0x2b74('0x31')](_0x25132e)?this[_0x2b74('0x3a')][_0x2b74('0x9')](_0x25132e):_0x25132e)[_0x2b74('0x1e')](',\x20');_0x2ed628[_0x2b74('0x7')]({'type':_0x2b74('0x41'),'content':_0x514121(this[_0x2b74('0x35')],_0x2b74('0x40'),_0x253403)});}return _0x2ed628;}['_handleCustomCallbackDescription'](_0xa0e65f){for(const _0x397ad9 of this[_0x2b74('0x30')]){const _0x1cd127=_0x397ad9(_0xa0e65f);if(_0x1cd127&&'type'in _0x1cd127)return _0x1cd127;}}['_handleAttributeSuggestionDescription'](_0x284168,_0x401e07){const _0x533b4b=_0x401e07['data'],_0x29710a=void 0x0===_0x533b4b['newValue']?_0x2b74('0x1c'):_0x2b74('0x2d');_0x284168[_0x2b74('0x7')]({'type':_0x29710a,'key':_0x533b4b['key']});}['_handleRenameSuggestionDescription'](_0x2073e5,_0x1dd215){_0x2073e5['push']({'type':'format','content':_0x514121(this[_0x2b74('0x35')],'*Change\x20to:*\x20%0',this[_0x2b74('0x29')](_0x1dd215[_0x2b74('0x1f')]()[_0x2b74('0x16')][_0x2b74('0x33')],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x20a35c,_0x247797,_0x58c778){if(this[_0x2b74('0x3f')](_0x20a35c,_0x247797),_0x58c778&&_0x58c778['getFirstRange']()&&!_0x247797[_0x2b74('0x1f')]()['end'][_0x2b74('0x2a')](_0x58c778[_0x2b74('0x1f')]()[_0x2b74('0x16')])){const _0x56aba8=_0x20a35c[_0x20a35c[_0x2b74('0x8')]-0x1],_0x3d6c92=_0x2b74('0x4a')==_0x247797[_0x2b74('0x32')]?_0x2b74('0x24'):_0x2b74('0x34');_0x56aba8&&_0x2b74('0x44')==_0x56aba8[_0x2b74('0x32')]&&(_0x56aba8[_0x3d6c92]+='\x0a');}}}
|
package/src/trackchanges.d.ts
CHANGED
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
* @module track-changes/trackchanges
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
10
|
-
import TrackChangesUI from './trackchangesui';
|
|
11
|
-
import TrackChangesEditing from './trackchangesediting';
|
|
12
|
-
import 'ckeditor5-collaboration/src/collaboration-core';
|
|
13
|
-
import type { default as Suggestion, SuggestionJSON } from './suggestion';
|
|
9
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
10
|
+
import TrackChangesUI from './trackchangesui.js';
|
|
11
|
+
import TrackChangesEditing from './trackchangesediting.js';
|
|
12
|
+
import 'ckeditor5-collaboration/src/collaboration-core.js';
|
|
13
|
+
import type { default as Suggestion, SuggestionJSON } from './suggestion.js';
|
|
14
14
|
/**
|
|
15
15
|
* A plugin that provides track changes mode for the editor. In track changes mode, all insertions are visually marked and all deletions
|
|
16
16
|
* are not deleted but also visually marked. Unsupported commands are disabled when the editor is in the track changes mode.
|
package/src/trackchanges.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x574a=['get','getSuggestions','plugins','addSuggestionData','adapter','TrackChanges','requires','editor','pluginName','getSuggestion'];(function(_0xeb7716,_0x574a7b){var _0x568d01=function(_0x577108){while(--_0x577108){_0xeb7716['push'](_0xeb7716['shift']());}};_0x568d01(++_0x574a7b);}(_0x574a,0xa1));var _0x568d=function(_0xeb7716,_0x574a7b){_0xeb7716=_0xeb7716-0x0;var _0x568d01=_0x574a[_0xeb7716];return _0x568d01;};import{Plugin as _0x31f3ae}from'ckeditor5/src/core.js';import _0x254a04 from'./trackchangesui.js';import _0x4d56db from'./trackchangesediting.js';import'ckeditor5-collaboration/src/collaboration-core.js';export default class k extends _0x31f3ae{static get[_0x568d('0x5')](){return[_0x4d56db,_0x254a04,'Comments'];}static get[_0x568d('0x7')](){return _0x568d('0x4');}set[_0x568d('0x3')](_0x17c63e){this[_0x568d('0x6')][_0x568d('0x1')][_0x568d('0x9')](_0x4d56db)[_0x568d('0x3')]=_0x17c63e;}get[_0x568d('0x3')](){return this[_0x568d('0x6')]['plugins'][_0x568d('0x9')](_0x4d56db)['adapter'];}['addSuggestion'](_0x43ed8b){return this[_0x568d('0x6')][_0x568d('0x1')][_0x568d('0x9')](_0x4d56db)[_0x568d('0x2')](_0x43ed8b);}[_0x568d('0x0')]({skipNotAttached:_0x3e70a0=!0x1,toJSON:_0x5ee50b=!0x1}={}){return this['editor'][_0x568d('0x1')][_0x568d('0x9')](_0x4d56db)[_0x568d('0x0')]({'skipNotAttached':_0x3e70a0,'toJSON':_0x5ee50b});}['getSuggestion'](_0x5cea49){return this[_0x568d('0x6')]['plugins'][_0x568d('0x9')](_0x4d56db)[_0x568d('0x8')](_0x5cea49);}}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module track-changes/trackchangesconfig
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import type SuggestionThreadView from './ui/view/suggestionthreadview';
|
|
9
|
+
import type SuggestionThreadView from './ui/view/suggestionthreadview.js';
|
|
10
10
|
/**
|
|
11
11
|
* The configuration of the track changes feature.
|
|
12
12
|
*
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* @module track-changes/trackchangesdata
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
10
|
-
import TrackChangesEditing from './trackchangesediting';
|
|
9
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
10
|
+
import TrackChangesEditing from './trackchangesediting.js';
|
|
11
11
|
/**
|
|
12
12
|
* This plugin returns the editor data with accepted or discarded suggestions without modifying the editor content.
|
|
13
13
|
*/
|
package/src/trackchangesdata.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4c12=['document','getRootNames','appendChild','editor','TrackChangesEditing','getRootsAttributes','getFullData','trackChangesData','plugins','getDataWithDiscardedSuggestions','div','Pagination','getDataWithAcceptedSuggestions','set','users','createDocumentFragment','data','addUser','init','TrackChangesDataGetter','acceptAllSuggestions','_adapter','reduce','trackChangesData.editorCreator','destroy','getUser','pluginName','getSuggestions','end','editorCreator','get','map','name','requires','TrackChangesData','config','push','model'];(function(_0x4a8060,_0x4c12d0){const _0xe9a1c=function(_0x27fe03){while(--_0x27fe03){_0x4a8060['push'](_0x4a8060['shift']());}};_0xe9a1c(++_0x4c12d0);}(_0x4c12,0x19d));const _0xe9a1=function(_0x4a8060,_0x4c12d0){_0x4a8060=_0x4a8060-0x0;let _0xe9a1c=_0x4c12[_0x4a8060];return _0xe9a1c;};import{Plugin as _0xe8db40}from'ckeditor5/src/core.js';import{CKEditorError as _0x56c209}from'ckeditor5/src/utils.js';import _0x1130b4 from'./trackchangesediting.js';import{sanitizeEditorConfig as _0x468926}from'ckeditor5-collaboration/src/collaboration-core.js';const T=[_0xe9a1('0x10')];export default class P extends _0xe8db40{static get[_0xe9a1('0x0')](){return[_0x1130b4];}static get[_0xe9a1('0x1f')](){return _0xe9a1('0x1');}[_0xe9a1('0x17')](){const _0x5ba46c=this[_0xe9a1('0x8')];if(_0x5ba46c[_0xe9a1('0x2')]['define'](_0xe9a1('0x1c'),_0x3142da=>{const _0x136b62=_0x5ba46c[_0xe9a1('0x4')][_0xe9a1('0x5')][_0xe9a1('0x6')]()[_0xe9a1('0x1b')]((_0x2731b8,_0xd562e2)=>(_0x2731b8[_0xd562e2]='',_0x2731b8),{});return _0x5ba46c['constructor']['create'](_0x136b62,_0x3142da);}),'function'!=typeof _0x5ba46c[_0xe9a1('0x2')][_0xe9a1('0x23')](_0xe9a1('0xc'))[_0xe9a1('0x22')])throw new _0x56c209('track-changes-data-invalid-editor-creator');}[_0xe9a1('0x11')](_0x10c6e5){return N(this['editor'],!0x0,_0x10c6e5);}[_0xe9a1('0xe')](_0x55df78){return N(this[_0xe9a1('0x8')],!0x1,_0x55df78);}}class D extends _0xe8db40{static get['pluginName'](){return _0xe9a1('0x18');}constructor(_0x9b147d){super(_0x9b147d),this['result']=_0xe9a1('0x21');}[_0xe9a1('0x17')](){this[_0xe9a1('0x8')]['plugins']['get']('CommentsRepository')[_0xe9a1('0x1a')]={'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[_0xe9a1('0x8')][_0xe9a1('0xd')][_0xe9a1('0x23')](_0xe9a1('0x9'))[_0xe9a1('0x1a')]=null;}}function v(_0x41d211){return void 0x0!==_0x41d211[_0xe9a1('0xa')];}async function N(_0xd2664e,_0x3c3e67,_0x5b6645){const _0x5290cd=_0x468926(_0xd2664e,T);_0x5290cd[_0xe9a1('0xd')][_0xe9a1('0x3')](_0x1130b4,D),_0x5290cd['rootsAttributes']=v(_0xd2664e)?_0xd2664e['getRootsAttributes']():void 0x0;const _0x589335=document[_0xe9a1('0x14')](),_0x20e8cb=_0xd2664e['config'][_0xe9a1('0x23')]('trackChangesData')[_0xe9a1('0x22')],_0x5027c5=await _0x20e8cb(_0x5290cd,()=>function(_0x1bc618){const _0x98e9ee=document['createElement'](_0xe9a1('0xf'));return _0x1bc618[_0xe9a1('0x7')](_0x98e9ee),_0x98e9ee;}(_0x589335));!function(_0x5e6593,_0x89426a){const _0x2acfd9=_0x5e6593[_0xe9a1('0x4')]['document'][_0xe9a1('0x6')]()[_0xe9a1('0x1b')]((_0x1531cb,_0x58b409)=>(_0x1531cb[_0x58b409]=_0x5e6593[_0xe9a1('0x15')][_0xe9a1('0x23')]({'rootName':_0x58b409}),_0x1531cb),{}),_0x34a20d=_0x5e6593[_0xe9a1('0xd')][_0xe9a1('0x23')]('Users')[_0xe9a1('0x13')][_0xe9a1('0x24')](_0x14b289=>({'id':_0x14b289['id'],'name':_0x14b289[_0xe9a1('0x25')]})),_0x5410c4=_0x5e6593[_0xe9a1('0xd')][_0xe9a1('0x23')](_0xe9a1('0x9'))[_0xe9a1('0x20')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x35e1a7=_0x89426a['plugins'][_0xe9a1('0x23')]('Users'),_0x1cb961=_0x89426a['plugins'][_0xe9a1('0x23')](_0xe9a1('0x9'));for(const _0x4939b2 of _0x34a20d)_0x35e1a7[_0xe9a1('0x1e')](_0x4939b2['id'])||_0x35e1a7[_0xe9a1('0x16')](_0x4939b2);_0x35e1a7['me']||_0x35e1a7['useAnonymousUser']();for(const _0x2533ab of _0x5410c4)_0x1cb961['addSuggestionData'](_0x2533ab);_0x89426a[_0xe9a1('0x15')][_0xe9a1('0x12')](_0x2acfd9);}(_0xd2664e,_0x5027c5),_0x5027c5['execute'](_0x3c3e67?_0xe9a1('0x19'):'discardAllSuggestions');const _0x4cc993=v(_0x5027c5)?_0x5027c5[_0xe9a1('0xb')](_0x5b6645):_0x5027c5['data']['get'](_0x5b6645);return await _0x5027c5[_0xe9a1('0x1d')](),_0x4cc993;}
|
|
@@ -6,59 +6,59 @@
|
|
|
6
6
|
* @module track-changes/trackchangesediting
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Plugin, PendingActions, type Editor } from 'ckeditor5/src/core';
|
|
10
|
-
import { type Element, type Range } from 'ckeditor5/src/engine';
|
|
11
|
-
import { Users } from 'ckeditor5-collaboration/src/collaboration-core';
|
|
12
|
-
import TrackChangesCommand from './commands/trackchangescommand';
|
|
13
|
-
import Suggestion, { type SuggestionJSON } from './suggestion';
|
|
14
|
-
import TrackChangesAIAssistant from './integrations/aiassistant';
|
|
15
|
-
import TrackChangesAlignment from './integrations/alignment';
|
|
16
|
-
import TrackChangesBasicStyles from './integrations/basicstyles';
|
|
17
|
-
import TrackChangesBlockQuote from './integrations/blockquote';
|
|
18
|
-
import TrackChangesCKBox from './integrations/ckbox';
|
|
19
|
-
import TrackChangesCodeBlock from './integrations/codeblock';
|
|
20
|
-
import TrackChangesComments from './integrations/comments';
|
|
21
|
-
import TrackChangesDeleteCommand from './integrations/deletecommand';
|
|
22
|
-
import TrackChangesDocumentList from './integrations/documentlist';
|
|
23
|
-
import TrackChangesDocumentListProperties from './integrations/documentlistproperties';
|
|
24
|
-
import TrackChangesEnterCommand from './integrations/entercommand';
|
|
25
|
-
import TrackChangesFindAndReplace from './integrations/findandreplace';
|
|
26
|
-
import TrackChangesFont from './integrations/font';
|
|
27
|
-
import TrackChangesFormatPainter from './integrations/formatpainter';
|
|
28
|
-
import TrackChangesHeading from './integrations/heading';
|
|
29
|
-
import TrackChangesHighlight from './integrations/highlight';
|
|
30
|
-
import TrackChangesHorizontalLine from './integrations/horizontalline';
|
|
31
|
-
import TrackChangesHtmlEmbed from './integrations/htmlembed';
|
|
32
|
-
import TrackChangesImage from './integrations/image';
|
|
33
|
-
import TrackChangesImageReplace from './integrations/imagereplace';
|
|
34
|
-
import TrackChangesImageStyle from './integrations/imagestyle';
|
|
35
|
-
import TrackChangesImportWord from './integrations/importword';
|
|
36
|
-
import TrackChangesIndent from './integrations/indent';
|
|
37
|
-
import TrackChangesInputCommand from './integrations/inputcommand';
|
|
38
|
-
import TrackChangesLink from './integrations/link';
|
|
39
|
-
import TrackChangesList from './integrations/list';
|
|
40
|
-
import TrackChangesListProperties from './integrations/listproperties';
|
|
41
|
-
import TrackChangesMediaEmbed from './integrations/mediaembed';
|
|
42
|
-
import TrackChangesMention from './integrations/mention';
|
|
43
|
-
import TrackChangesPageBreak from './integrations/pagebreak';
|
|
44
|
-
import TrackChangesParagraph from './integrations/paragraph';
|
|
45
|
-
import TrackChangesRemoveFormat from './integrations/removeformat';
|
|
46
|
-
import TrackChangesRestrictedEditingMode from './integrations/restrictededitingmode';
|
|
47
|
-
import TrackChangesShiftEnterCommand from './integrations/shiftentercommand';
|
|
48
|
-
import TrackChangesStandardEditingMode from './integrations/standardeditingmode';
|
|
49
|
-
import TrackChangesStylesDropdown from './integrations/style';
|
|
50
|
-
import TrackChangesTable from './integrations/table';
|
|
51
|
-
import TrackChangesTableMergeSplit from './integrations/tablemergesplit';
|
|
52
|
-
import TrackChangesTableHeadings from './integrations/tableheadings';
|
|
53
|
-
import TrackChangesTableClipboard from './integrations/tableclipboard';
|
|
54
|
-
import TrackChangesTableColumnResize from './integrations/tablecolumnresize';
|
|
55
|
-
import TrackChangesTemplate from './integrations/template';
|
|
56
|
-
import TrackChangesTableOfContents from './integrations/tableofcontents';
|
|
57
|
-
import TrackChangesTitle from './integrations/title';
|
|
58
|
-
import TrackChangesUndo from './integrations/undo';
|
|
59
|
-
import TrackChangesTableCaption from './integrations/tablecaption';
|
|
60
|
-
import TrackChangesTableProperties from './integrations/tableproperties';
|
|
61
|
-
import type { SuggestionData, TrackChangesAdapter } from './trackchanges';
|
|
9
|
+
import { Plugin, PendingActions, type Editor } from 'ckeditor5/src/core.js';
|
|
10
|
+
import { type Element, type Range } from 'ckeditor5/src/engine.js';
|
|
11
|
+
import { Users } from 'ckeditor5-collaboration/src/collaboration-core.js';
|
|
12
|
+
import TrackChangesCommand from './commands/trackchangescommand.js';
|
|
13
|
+
import Suggestion, { type SuggestionJSON } from './suggestion.js';
|
|
14
|
+
import TrackChangesAIAssistant from './integrations/aiassistant.js';
|
|
15
|
+
import TrackChangesAlignment from './integrations/alignment.js';
|
|
16
|
+
import TrackChangesBasicStyles from './integrations/basicstyles.js';
|
|
17
|
+
import TrackChangesBlockQuote from './integrations/blockquote.js';
|
|
18
|
+
import TrackChangesCKBox from './integrations/ckbox.js';
|
|
19
|
+
import TrackChangesCodeBlock from './integrations/codeblock.js';
|
|
20
|
+
import TrackChangesComments from './integrations/comments.js';
|
|
21
|
+
import TrackChangesDeleteCommand from './integrations/deletecommand.js';
|
|
22
|
+
import TrackChangesDocumentList from './integrations/documentlist.js';
|
|
23
|
+
import TrackChangesDocumentListProperties from './integrations/documentlistproperties.js';
|
|
24
|
+
import TrackChangesEnterCommand from './integrations/entercommand.js';
|
|
25
|
+
import TrackChangesFindAndReplace from './integrations/findandreplace.js';
|
|
26
|
+
import TrackChangesFont from './integrations/font.js';
|
|
27
|
+
import TrackChangesFormatPainter from './integrations/formatpainter.js';
|
|
28
|
+
import TrackChangesHeading from './integrations/heading.js';
|
|
29
|
+
import TrackChangesHighlight from './integrations/highlight.js';
|
|
30
|
+
import TrackChangesHorizontalLine from './integrations/horizontalline.js';
|
|
31
|
+
import TrackChangesHtmlEmbed from './integrations/htmlembed.js';
|
|
32
|
+
import TrackChangesImage from './integrations/image.js';
|
|
33
|
+
import TrackChangesImageReplace from './integrations/imagereplace.js';
|
|
34
|
+
import TrackChangesImageStyle from './integrations/imagestyle.js';
|
|
35
|
+
import TrackChangesImportWord from './integrations/importword.js';
|
|
36
|
+
import TrackChangesIndent from './integrations/indent.js';
|
|
37
|
+
import TrackChangesInputCommand from './integrations/inputcommand.js';
|
|
38
|
+
import TrackChangesLink from './integrations/link.js';
|
|
39
|
+
import TrackChangesList from './integrations/list.js';
|
|
40
|
+
import TrackChangesListProperties from './integrations/listproperties.js';
|
|
41
|
+
import TrackChangesMediaEmbed from './integrations/mediaembed.js';
|
|
42
|
+
import TrackChangesMention from './integrations/mention.js';
|
|
43
|
+
import TrackChangesPageBreak from './integrations/pagebreak.js';
|
|
44
|
+
import TrackChangesParagraph from './integrations/paragraph.js';
|
|
45
|
+
import TrackChangesRemoveFormat from './integrations/removeformat.js';
|
|
46
|
+
import TrackChangesRestrictedEditingMode from './integrations/restrictededitingmode.js';
|
|
47
|
+
import TrackChangesShiftEnterCommand from './integrations/shiftentercommand.js';
|
|
48
|
+
import TrackChangesStandardEditingMode from './integrations/standardeditingmode.js';
|
|
49
|
+
import TrackChangesStylesDropdown from './integrations/style.js';
|
|
50
|
+
import TrackChangesTable from './integrations/table.js';
|
|
51
|
+
import TrackChangesTableMergeSplit from './integrations/tablemergesplit.js';
|
|
52
|
+
import TrackChangesTableHeadings from './integrations/tableheadings.js';
|
|
53
|
+
import TrackChangesTableClipboard from './integrations/tableclipboard.js';
|
|
54
|
+
import TrackChangesTableColumnResize from './integrations/tablecolumnresize.js';
|
|
55
|
+
import TrackChangesTemplate from './integrations/template.js';
|
|
56
|
+
import TrackChangesTableOfContents from './integrations/tableofcontents.js';
|
|
57
|
+
import TrackChangesTitle from './integrations/title.js';
|
|
58
|
+
import TrackChangesUndo from './integrations/undo.js';
|
|
59
|
+
import TrackChangesTableCaption from './integrations/tablecaption.js';
|
|
60
|
+
import TrackChangesTableProperties from './integrations/tableproperties.js';
|
|
61
|
+
import type { SuggestionData, TrackChangesAdapter } from './trackchanges.js';
|
|
62
62
|
export declare const renameAttributeKey = "$elementName";
|
|
63
63
|
/**
|
|
64
64
|
* Provides editing part of the {@link module:track-changes/trackchanges~TrackChanges track changes plugin}.
|