@ckeditor/ckeditor5-track-changes 38.1.1 → 38.2.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +2 -2
- package/package.json +4 -3
- package/src/augmentation.d.ts +36 -36
- package/src/commands/acceptsuggestioncommand.d.ts +20 -20
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.d.ts +20 -20
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.d.ts +20 -20
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.d.ts +20 -20
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.d.ts +22 -22
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.d.ts +12 -12
- package/src/index.js +1 -1
- package/src/integrations/alignment.d.ts +13 -13
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.d.ts +13 -13
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.d.ts +13 -13
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.d.ts +13 -13
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.d.ts +13 -13
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.d.ts +10 -10
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.d.ts +13 -13
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.d.ts +13 -13
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.d.ts +25 -25
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.d.ts +12 -12
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.d.ts +17 -17
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.d.ts +13 -13
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.d.ts +13 -13
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.d.ts +13 -13
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.d.ts +13 -13
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.d.ts +13 -13
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.d.ts +13 -13
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.d.ts +13 -13
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.d.ts +19 -19
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.d.ts +14 -14
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.d.ts +13 -13
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.d.ts +12 -12
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.d.ts +13 -13
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.d.ts +13 -13
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.d.ts +25 -25
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.d.ts +13 -13
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.d.ts +13 -13
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.d.ts +13 -13
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.d.ts +13 -13
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.d.ts +13 -13
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.d.ts +13 -13
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.d.ts +12 -12
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.d.ts +13 -13
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.d.ts +14 -14
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.d.ts +38 -38
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.d.ts +18 -18
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.d.ts +18 -18
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.d.ts +22 -22
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.d.ts +18 -18
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.d.ts +18 -18
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.d.ts +13 -13
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.d.ts +23 -23
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.d.ts +13 -13
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.d.ts +13 -13
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.d.ts +13 -13
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.d.ts +17 -17
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.d.ts +266 -266
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.d.ts +163 -151
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +240 -240
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +71 -71
- package/src/trackchangesdata.d.ts +37 -37
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +435 -435
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.d.ts +34 -34
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.d.ts +36 -36
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.d.ts +166 -166
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.d.ts +182 -182
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.d.ts +5 -5
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.d.ts +26 -26
- package/src/utils/utils.js +1 -1
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module track-changes/trackchangesdata
|
|
3
|
-
* @publicApi
|
|
4
|
-
*/
|
|
5
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
6
|
-
import TrackChangesEditing from './trackchangesediting';
|
|
7
|
-
/**
|
|
8
|
-
* This plugin returns the editor data with accepted or discarded suggestions without modifying the editor content.
|
|
9
|
-
*/
|
|
10
|
-
export default class TrackChangesData extends Plugin {
|
|
11
|
-
/**
|
|
12
|
-
* @inheritDoc
|
|
13
|
-
*/
|
|
14
|
-
static get requires(): readonly [typeof TrackChangesEditing];
|
|
15
|
-
/**
|
|
16
|
-
* @inheritDoc
|
|
17
|
-
*/
|
|
18
|
-
static get pluginName(): "TrackChangesData";
|
|
19
|
-
/**
|
|
20
|
-
* @inheritDoc
|
|
21
|
-
*/
|
|
22
|
-
init(): void;
|
|
23
|
-
/**
|
|
24
|
-
* Returns the editor data with all the suggestions accepted.
|
|
25
|
-
*
|
|
26
|
-
* @param options Options for {@link module:engine/controller/datacontroller~DataController#get}.
|
|
27
|
-
* @returns A promise which resolves with the output data.
|
|
28
|
-
*/
|
|
29
|
-
getDataWithAcceptedSuggestions(options: Record<string, unknown>): Promise<string
|
|
30
|
-
/**
|
|
31
|
-
* Returns the editor data with all the suggestions discarded.
|
|
32
|
-
*
|
|
33
|
-
* @param options Options for {@link module:engine/controller/datacontroller~DataController#get}.
|
|
34
|
-
* @returns A promise which resolves with the output data.
|
|
35
|
-
*/
|
|
36
|
-
getDataWithDiscardedSuggestions(options: Record<string, unknown>): Promise<string
|
|
37
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/trackchangesdata
|
|
3
|
+
* @publicApi
|
|
4
|
+
*/
|
|
5
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
6
|
+
import TrackChangesEditing from './trackchangesediting.js';
|
|
7
|
+
/**
|
|
8
|
+
* This plugin returns the editor data with accepted or discarded suggestions without modifying the editor content.
|
|
9
|
+
*/
|
|
10
|
+
export default class TrackChangesData extends Plugin {
|
|
11
|
+
/**
|
|
12
|
+
* @inheritDoc
|
|
13
|
+
*/
|
|
14
|
+
static get requires(): readonly [typeof TrackChangesEditing];
|
|
15
|
+
/**
|
|
16
|
+
* @inheritDoc
|
|
17
|
+
*/
|
|
18
|
+
static get pluginName(): "TrackChangesData";
|
|
19
|
+
/**
|
|
20
|
+
* @inheritDoc
|
|
21
|
+
*/
|
|
22
|
+
init(): void;
|
|
23
|
+
/**
|
|
24
|
+
* Returns the editor data with all the suggestions accepted.
|
|
25
|
+
*
|
|
26
|
+
* @param options Options for {@link module:engine/controller/datacontroller~DataController#get}.
|
|
27
|
+
* @returns A promise which resolves with the output data.
|
|
28
|
+
*/
|
|
29
|
+
getDataWithAcceptedSuggestions(options: Record<string, unknown>): Promise<string | Record<string, string>>;
|
|
30
|
+
/**
|
|
31
|
+
* Returns the editor data with all the suggestions discarded.
|
|
32
|
+
*
|
|
33
|
+
* @param options Options for {@link module:engine/controller/datacontroller~DataController#get}.
|
|
34
|
+
* @returns A promise which resolves with the output data.
|
|
35
|
+
*/
|
|
36
|
+
getDataWithDiscardedSuggestions(options: Record<string, unknown>): Promise<string | Record<string, string>>;
|
|
37
|
+
}
|
package/src/trackchangesdata.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2d49=['users','model','end','div','name','init','acceptAllSuggestions','destroy','document','getDataWithDiscardedSuggestions','getSuggestions','plugins','map','Pagination','config','useAnonymousUser','get','createDocumentFragment','result','editorCreator','Users','getDataWithAcceptedSuggestions','addUser','track-changes-data-invalid-editor-creator','appendChild','editor','define','getFullData','_adapter','data','trackChangesData','pluginName','reduce','addSuggestionData','getRootNames','TrackChangesData','execute','TrackChangesEditing','push','set','requires','trackChangesData.editorCreator'];(function(_0x21d940,_0x2d498a){const _0x8a294b=function(_0x4b23fc){while(--_0x4b23fc){_0x21d940['push'](_0x21d940['shift']());}};_0x8a294b(++_0x2d498a);}(_0x2d49,0xf2));const _0x8a29=function(_0x21d940,_0x2d498a){_0x21d940=_0x21d940-0x0;let _0x8a294b=_0x2d49[_0x21d940];return _0x8a294b;};import{Plugin as _0x238869}from'ckeditor5/src/core.js';import{CKEditorError as _0x3ab2da}from'ckeditor5/src/utils.js';import _0x4e3016 from'./trackchangesediting.js';import{sanitizeEditorConfig as _0x3f80f9}from'ckeditor5-collaboration/src/collaboration-core.js';const w=[_0x8a29('0x17')];export default class T extends _0x238869{static get[_0x8a29('0x8')](){return[_0x4e3016];}static get['pluginName'](){return _0x8a29('0x3');}[_0x8a29('0xf')](){const _0x7d1bee=this[_0x8a29('0x23')];if(_0x7d1bee[_0x8a29('0x18')][_0x8a29('0x24')](_0x8a29('0x9'),_0xe5611d=>{const _0x348723=_0x7d1bee[_0x8a29('0xb')][_0x8a29('0x12')][_0x8a29('0x2')]()[_0x8a29('0x0')]((_0x75d620,_0xc963f4)=>(_0x75d620[_0xc963f4]='',_0x75d620),{});return _0x7d1bee['constructor']['create'](_0x348723,_0xe5611d);}),'function'!=typeof _0x7d1bee[_0x8a29('0x18')][_0x8a29('0x1a')](_0x8a29('0x28'))[_0x8a29('0x1d')])throw new _0x3ab2da(_0x8a29('0x21'));}[_0x8a29('0x1f')](_0x54eefc){return v(this[_0x8a29('0x23')],!0x0,_0x54eefc);}[_0x8a29('0x13')](_0x5da42c){return v(this[_0x8a29('0x23')],!0x1,_0x5da42c);}}class P extends _0x238869{static get[_0x8a29('0x29')](){return'TrackChangesDataGetter';}constructor(_0x14bee9){super(_0x14bee9),this[_0x8a29('0x1c')]=_0x8a29('0xc');}[_0x8a29('0xf')](){this[_0x8a29('0x23')][_0x8a29('0x15')][_0x8a29('0x1a')]('CommentsRepository')[_0x8a29('0x26')]={'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[_0x8a29('0x23')][_0x8a29('0x15')][_0x8a29('0x1a')](_0x8a29('0x5'))[_0x8a29('0x26')]=null;}}function D(_0x55becc){return void 0x0!==_0x55becc['getRootsAttributes'];}async function v(_0x4ee51e,_0x201bc5,_0x361f90){const _0x21a4f2=_0x3f80f9(_0x4ee51e,w);_0x21a4f2[_0x8a29('0x15')][_0x8a29('0x6')](_0x4e3016,P),_0x21a4f2['rootsAttributes']=D(_0x4ee51e)?_0x4ee51e['getRootsAttributes']():void 0x0;const _0x47989b=document[_0x8a29('0x1b')](),_0x18b451=_0x4ee51e['config'][_0x8a29('0x1a')](_0x8a29('0x28'))[_0x8a29('0x1d')],_0xae7fe1=await _0x18b451(_0x21a4f2,()=>function(_0xed9db2){const _0x58c90e=document['createElement'](_0x8a29('0xd'));return _0xed9db2[_0x8a29('0x22')](_0x58c90e),_0x58c90e;}(_0x47989b));!function(_0x375978,_0x296ff8){const _0x57568b=_0x375978[_0x8a29('0xb')][_0x8a29('0x12')][_0x8a29('0x2')]()[_0x8a29('0x0')]((_0x4eb0c0,_0x5723bc)=>(_0x4eb0c0[_0x5723bc]=_0x375978[_0x8a29('0x27')][_0x8a29('0x1a')]({'rootName':_0x5723bc}),_0x4eb0c0),{}),_0x401a19=_0x375978[_0x8a29('0x15')]['get'](_0x8a29('0x1e'))[_0x8a29('0xa')][_0x8a29('0x16')](_0x126fca=>({'id':_0x126fca['id'],'name':_0x126fca[_0x8a29('0xe')]})),_0x3cf896=_0x375978[_0x8a29('0x15')][_0x8a29('0x1a')](_0x8a29('0x5'))[_0x8a29('0x14')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x769a84=_0x296ff8['plugins'][_0x8a29('0x1a')]('Users'),_0x2f0754=_0x296ff8[_0x8a29('0x15')][_0x8a29('0x1a')](_0x8a29('0x5'));for(const _0x19bdd2 of _0x401a19)_0x769a84['getUser'](_0x19bdd2['id'])||_0x769a84[_0x8a29('0x20')](_0x19bdd2);_0x769a84['me']||_0x769a84[_0x8a29('0x19')]();for(const _0x482304 of _0x3cf896)_0x2f0754[_0x8a29('0x1')](_0x482304);_0x296ff8[_0x8a29('0x27')][_0x8a29('0x7')](_0x57568b);}(_0x4ee51e,_0xae7fe1),_0xae7fe1[_0x8a29('0x4')](_0x201bc5?_0x8a29('0x10'):'discardAllSuggestions');const _0x4bfaf8=D(_0xae7fe1)?_0xae7fe1[_0x8a29('0x25')](_0x361f90):_0xae7fe1[_0x8a29('0x27')][_0x8a29('0x1a')](_0x361f90);return await _0xae7fe1[_0x8a29('0x11')](),_0x4bfaf8;}
|