@ckeditor/ckeditor5-track-changes 40.0.0 → 40.2.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 +15 -15
- package/LICENSE.md +3 -3
- package/README.md +1 -1
- package/build/track-changes.js +2 -2
- package/build/translations/ar.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/contexts.json +20 -1
- package/lang/translations/ar.po +78 -2
- package/lang/translations/az.po +77 -1
- package/lang/translations/bg.po +78 -2
- package/lang/translations/bn.po +78 -2
- package/lang/translations/ca.po +78 -2
- package/lang/translations/cs.po +78 -2
- package/lang/translations/da.po +78 -2
- package/lang/translations/de.po +78 -2
- package/lang/translations/el.po +78 -2
- package/lang/translations/en-au.po +78 -2
- package/lang/translations/en.po +78 -2
- package/lang/translations/es.po +78 -2
- package/lang/translations/et.po +78 -2
- package/lang/translations/fi.po +78 -2
- package/lang/translations/fr.po +78 -2
- package/lang/translations/gl.po +90 -14
- package/lang/translations/he.po +78 -2
- package/lang/translations/hi.po +78 -2
- package/lang/translations/hr.po +78 -2
- package/lang/translations/hu.po +78 -2
- package/lang/translations/id.po +78 -2
- package/lang/translations/it.po +78 -2
- package/lang/translations/ja.po +78 -2
- package/lang/translations/ko.po +78 -2
- package/lang/translations/lt.po +78 -2
- package/lang/translations/lv.po +78 -2
- package/lang/translations/ms.po +78 -2
- package/lang/translations/nl.po +78 -2
- package/lang/translations/no.po +78 -2
- package/lang/translations/pl.po +78 -2
- package/lang/translations/pt-br.po +96 -20
- package/lang/translations/pt.po +78 -2
- package/lang/translations/ro.po +78 -2
- package/lang/translations/ru.po +78 -2
- package/lang/translations/sk.po +78 -2
- package/lang/translations/sq.po +77 -1
- package/lang/translations/sr-latn.po +78 -2
- package/lang/translations/sr.po +78 -2
- package/lang/translations/sv.po +78 -2
- package/lang/translations/th.po +78 -2
- package/lang/translations/tk.po +77 -1
- package/lang/translations/tr.po +78 -2
- package/lang/translations/tt.po +77 -1
- package/lang/translations/uk.po +78 -2
- package/lang/translations/ur.po +77 -1
- package/lang/translations/vi.po +78 -2
- package/lang/translations/zh-cn.po +78 -2
- package/lang/translations/zh.po +78 -2
- package/package.json +3 -3
- package/src/augmentation.d.ts +40 -40
- package/src/commands/acceptsuggestioncommand.d.ts +24 -24
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.d.ts +24 -24
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.d.ts +24 -24
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.d.ts +24 -24
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.d.ts +26 -26
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.d.ts +16 -16
- package/src/integrations/aiassistant.d.ts +17 -17
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.d.ts +17 -17
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.d.ts +17 -17
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.d.ts +17 -17
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.d.ts +17 -17
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.d.ts +17 -17
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.d.ts +14 -14
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.d.ts +17 -17
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.d.ts +17 -17
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.d.ts +29 -29
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.d.ts +16 -16
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.d.ts +21 -21
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.d.ts +17 -17
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.d.ts +17 -17
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.d.ts +17 -17
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.d.ts +17 -17
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.d.ts +17 -17
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.d.ts +17 -17
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.d.ts +17 -17
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.d.ts +17 -23
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.d.ts +17 -0
- package/src/integrations/imagestyle.js +23 -0
- package/src/integrations/importword.d.ts +18 -18
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.d.ts +17 -17
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.d.ts +16 -16
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.d.ts +17 -17
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.d.ts +17 -17
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.d.ts +29 -29
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.d.ts +17 -17
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.d.ts +17 -17
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.d.ts +17 -17
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.d.ts +17 -17
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.d.ts +17 -17
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.d.ts +17 -17
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.d.ts +16 -16
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.d.ts +17 -17
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.d.ts +17 -18
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.d.ts +42 -42
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.d.ts +22 -22
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.d.ts +19 -19
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.d.ts +26 -26
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.d.ts +22 -22
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.d.ts +22 -22
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.d.ts +17 -17
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.d.ts +27 -27
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.d.ts +17 -17
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.d.ts +17 -17
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.d.ts +17 -17
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.d.ts +21 -21
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.d.ts +291 -276
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.d.ts +183 -163
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +180 -244
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +78 -75
- package/src/trackchangesdata.d.ts +41 -41
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +524 -468
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.d.ts +38 -38
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.d.ts +37 -37
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.d.ts +170 -170
- 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 +9 -9
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.d.ts +30 -30
- package/src/utils/utils.js +1 -1
|
@@ -1,41 +1,41 @@
|
|
|
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
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/trackchangesdata
|
|
7
|
-
* @publicApi
|
|
8
|
-
*/
|
|
9
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
10
|
-
import TrackChangesEditing from './trackchangesediting';
|
|
11
|
-
/**
|
|
12
|
-
* This plugin returns the editor data with accepted or discarded suggestions without modifying the editor content.
|
|
13
|
-
*/
|
|
14
|
-
export default class TrackChangesData extends Plugin {
|
|
15
|
-
/**
|
|
16
|
-
* @inheritDoc
|
|
17
|
-
*/
|
|
18
|
-
static get requires(): readonly [typeof TrackChangesEditing];
|
|
19
|
-
/**
|
|
20
|
-
* @inheritDoc
|
|
21
|
-
*/
|
|
22
|
-
static get pluginName(): "TrackChangesData";
|
|
23
|
-
/**
|
|
24
|
-
* @inheritDoc
|
|
25
|
-
*/
|
|
26
|
-
init(): void;
|
|
27
|
-
/**
|
|
28
|
-
* Returns the editor data with all the suggestions accepted.
|
|
29
|
-
*
|
|
30
|
-
* @param options Options for {@link module:engine/controller/datacontroller~DataController#get}.
|
|
31
|
-
* @returns A promise which resolves with the output data.
|
|
32
|
-
*/
|
|
33
|
-
getDataWithAcceptedSuggestions(options: Record<string, unknown>): Promise<string | Record<string, string>>;
|
|
34
|
-
/**
|
|
35
|
-
* Returns the editor data with all the suggestions discarded.
|
|
36
|
-
*
|
|
37
|
-
* @param options Options for {@link module:engine/controller/datacontroller~DataController#get}.
|
|
38
|
-
* @returns A promise which resolves with the output data.
|
|
39
|
-
*/
|
|
40
|
-
getDataWithDiscardedSuggestions(options: Record<string, unknown>): Promise<string | Record<string, string>>;
|
|
41
|
-
}
|
|
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
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/trackchangesdata
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
10
|
+
import TrackChangesEditing from './trackchangesediting';
|
|
11
|
+
/**
|
|
12
|
+
* This plugin returns the editor data with accepted or discarded suggestions without modifying the editor content.
|
|
13
|
+
*/
|
|
14
|
+
export default class TrackChangesData extends Plugin {
|
|
15
|
+
/**
|
|
16
|
+
* @inheritDoc
|
|
17
|
+
*/
|
|
18
|
+
static get requires(): readonly [typeof TrackChangesEditing];
|
|
19
|
+
/**
|
|
20
|
+
* @inheritDoc
|
|
21
|
+
*/
|
|
22
|
+
static get pluginName(): "TrackChangesData";
|
|
23
|
+
/**
|
|
24
|
+
* @inheritDoc
|
|
25
|
+
*/
|
|
26
|
+
init(): void;
|
|
27
|
+
/**
|
|
28
|
+
* Returns the editor data with all the suggestions accepted.
|
|
29
|
+
*
|
|
30
|
+
* @param options Options for {@link module:engine/controller/datacontroller~DataController#get}.
|
|
31
|
+
* @returns A promise which resolves with the output data.
|
|
32
|
+
*/
|
|
33
|
+
getDataWithAcceptedSuggestions(options: Record<string, unknown>): Promise<string | Record<string, string>>;
|
|
34
|
+
/**
|
|
35
|
+
* Returns the editor data with all the suggestions discarded.
|
|
36
|
+
*
|
|
37
|
+
* @param options Options for {@link module:engine/controller/datacontroller~DataController#get}.
|
|
38
|
+
* @returns A promise which resolves with the output data.
|
|
39
|
+
*/
|
|
40
|
+
getDataWithDiscardedSuggestions(options: Record<string, unknown>): Promise<string | Record<string, string>>;
|
|
41
|
+
}
|
package/src/trackchangesdata.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4007=['map','createDocumentFragment','model','TrackChangesData','reduce','rootsAttributes','getUser','acceptAllSuggestions','useAnonymousUser','requires','push','Users','set','define','appendChild','name','editor','destroy','result','users','execute','get','discardAllSuggestions','editorCreator','addUser','getRootNames','data','init','getFullData','pluginName','plugins','getDataWithDiscardedSuggestions','config','create','document','_adapter','TrackChangesEditing','trackChangesData','TrackChangesDataGetter','function','trackChangesData.editorCreator','getRootsAttributes','track-changes-data-invalid-editor-creator','getSuggestions','end'];(function(_0x5513a1,_0x400779){const _0xbfcfbd=function(_0x3758f5){while(--_0x3758f5){_0x5513a1['push'](_0x5513a1['shift']());}};_0xbfcfbd(++_0x400779);}(_0x4007,0x1c9));const _0xbfcf=function(_0x5513a1,_0x400779){_0x5513a1=_0x5513a1-0x0;let _0xbfcfbd=_0x4007[_0x5513a1];return _0xbfcfbd;};import{Plugin as _0xfd27ab}from'ckeditor5/src/core';import{CKEditorError as _0x39cf0b}from'ckeditor5/src/utils';import _0x5d0f95 from'./trackchangesediting';import{sanitizeEditorConfig as _0x3be4ae}from'ckeditor5-collaboration/src/collaboration-core';const T=['Pagination'];export default class P extends _0xfd27ab{static get[_0xbfcf('0x2')](){return[_0x5d0f95];}static get[_0xbfcf('0x16')](){return _0xbfcf('0x29');}[_0xbfcf('0x14')](){const _0x20b2b6=this['editor'];if(_0x20b2b6['config'][_0xbfcf('0x6')](_0xbfcf('0x21'),_0x46cad6=>{const _0x10492f=_0x20b2b6['model'][_0xbfcf('0x1b')][_0xbfcf('0x12')]()[_0xbfcf('0x2a')]((_0xc84a60,_0x32a510)=>(_0xc84a60[_0x32a510]='',_0xc84a60),{});return _0x20b2b6['constructor'][_0xbfcf('0x1a')](_0x10492f,_0x46cad6);}),_0xbfcf('0x20')!=typeof _0x20b2b6[_0xbfcf('0x19')][_0xbfcf('0xe')]('trackChangesData')['editorCreator'])throw new _0x39cf0b(_0xbfcf('0x23'));}['getDataWithAcceptedSuggestions'](_0x3b073e){return N(this['editor'],!0x0,_0x3b073e);}[_0xbfcf('0x18')](_0x439407){return N(this[_0xbfcf('0x9')],!0x1,_0x439407);}}class D extends _0xfd27ab{static get[_0xbfcf('0x16')](){return _0xbfcf('0x1f');}constructor(_0xeca25a){super(_0xeca25a),this[_0xbfcf('0xb')]=_0xbfcf('0x25');}[_0xbfcf('0x14')](){this[_0xbfcf('0x9')][_0xbfcf('0x17')][_0xbfcf('0xe')]('CommentsRepository')['_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['editor'][_0xbfcf('0x17')][_0xbfcf('0xe')](_0xbfcf('0x1d'))[_0xbfcf('0x1c')]=null;}}function v(_0xd5503e){return void 0x0!==_0xd5503e['getRootsAttributes'];}async function N(_0x270103,_0xbb65e,_0x4c30d9){const _0x38df77=_0x3be4ae(_0x270103,T);_0x38df77[_0xbfcf('0x17')][_0xbfcf('0x3')](_0x5d0f95,D),_0x38df77[_0xbfcf('0x2b')]=v(_0x270103)?_0x270103[_0xbfcf('0x22')]():void 0x0;const _0x2b5982=document[_0xbfcf('0x27')](),_0x4f5fd9=_0x270103[_0xbfcf('0x19')][_0xbfcf('0xe')](_0xbfcf('0x1e'))[_0xbfcf('0x10')],_0x26df41=await _0x4f5fd9(_0x38df77,()=>function(_0x222e20){const _0x39f167=document['createElement']('div');return _0x222e20[_0xbfcf('0x7')](_0x39f167),_0x39f167;}(_0x2b5982));!function(_0x11d8b2,_0x5031fc){const _0x3b203f=_0x11d8b2[_0xbfcf('0x28')][_0xbfcf('0x1b')][_0xbfcf('0x12')]()[_0xbfcf('0x2a')]((_0x282c12,_0x2a8dec)=>(_0x282c12[_0x2a8dec]=_0x11d8b2['data'][_0xbfcf('0xe')]({'rootName':_0x2a8dec}),_0x282c12),{}),_0x4f2fc9=_0x11d8b2['plugins'][_0xbfcf('0xe')](_0xbfcf('0x4'))[_0xbfcf('0xc')][_0xbfcf('0x26')](_0x4dc8eb=>({'id':_0x4dc8eb['id'],'name':_0x4dc8eb[_0xbfcf('0x8')]})),_0x569c7b=_0x11d8b2['plugins'][_0xbfcf('0xe')](_0xbfcf('0x1d'))[_0xbfcf('0x24')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x326c8c=_0x5031fc[_0xbfcf('0x17')]['get'](_0xbfcf('0x4')),_0x54f7eb=_0x5031fc['plugins'][_0xbfcf('0xe')](_0xbfcf('0x1d'));for(const _0x446b26 of _0x4f2fc9)_0x326c8c[_0xbfcf('0x2c')](_0x446b26['id'])||_0x326c8c[_0xbfcf('0x11')](_0x446b26);_0x326c8c['me']||_0x326c8c[_0xbfcf('0x1')]();for(const _0x3f31ed of _0x569c7b)_0x54f7eb['addSuggestionData'](_0x3f31ed);_0x5031fc['data'][_0xbfcf('0x5')](_0x3b203f);}(_0x270103,_0x26df41),_0x26df41[_0xbfcf('0xd')](_0xbb65e?_0xbfcf('0x0'):_0xbfcf('0xf'));const _0x577eb9=v(_0x26df41)?_0x26df41[_0xbfcf('0x15')](_0x4c30d9):_0x26df41[_0xbfcf('0x13')][_0xbfcf('0xe')](_0x4c30d9);return await _0x26df41[_0xbfcf('0xa')](),_0x577eb9;}
|