@ckeditor/ckeditor5-track-changes 40.1.0 → 41.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/CHANGELOG.md +20 -20
- package/LICENSE.md +1 -1
- package/README.md +1 -1
- package/build/track-changes.js +3 -3
- 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/translations/ar.po +6 -6
- package/lang/translations/az.po +5 -5
- package/lang/translations/bg.po +6 -6
- package/lang/translations/bn.po +6 -6
- package/lang/translations/ca.po +6 -6
- package/lang/translations/cs.po +6 -6
- package/lang/translations/da.po +6 -6
- package/lang/translations/de.po +6 -6
- package/lang/translations/el.po +6 -6
- package/lang/translations/en-au.po +6 -6
- package/lang/translations/en.po +6 -6
- package/lang/translations/es.po +7 -7
- package/lang/translations/et.po +6 -6
- package/lang/translations/fi.po +6 -6
- package/lang/translations/fr.po +6 -6
- package/lang/translations/gl.po +37 -37
- package/lang/translations/he.po +6 -6
- package/lang/translations/hi.po +6 -6
- package/lang/translations/hr.po +6 -6
- package/lang/translations/hu.po +6 -6
- package/lang/translations/id.po +6 -6
- package/lang/translations/it.po +6 -6
- package/lang/translations/ja.po +6 -6
- package/lang/translations/ko.po +6 -6
- package/lang/translations/lt.po +6 -6
- package/lang/translations/lv.po +6 -6
- package/lang/translations/ms.po +6 -6
- package/lang/translations/nl.po +6 -6
- package/lang/translations/no.po +6 -6
- package/lang/translations/pl.po +6 -6
- package/lang/translations/pt-br.po +6 -6
- package/lang/translations/pt.po +6 -6
- package/lang/translations/ro.po +6 -6
- package/lang/translations/ru.po +6 -6
- package/lang/translations/sk.po +6 -6
- package/lang/translations/sq.po +5 -5
- package/lang/translations/sr-latn.po +25 -25
- package/lang/translations/sr.po +6 -6
- package/lang/translations/sv.po +6 -6
- package/lang/translations/th.po +6 -6
- package/lang/translations/tk.po +5 -5
- package/lang/translations/tr.po +6 -6
- package/lang/translations/tt.po +5 -5
- package/lang/translations/uk.po +6 -6
- package/lang/translations/ur.po +5 -5
- package/lang/translations/vi.po +6 -6
- package/lang/translations/zh-cn.po +6 -6
- package/lang/translations/zh.po +6 -6
- package/package.json +4 -3
- package/src/augmentation.d.ts +3 -3
- package/src/augmentation.js +1 -1
- package/src/commands/acceptsuggestioncommand.d.ts +3 -3
- package/src/commands/acceptsuggestioncommand.js +2 -2
- package/src/commands/discardsuggestioncommand.d.ts +3 -3
- package/src/commands/discardsuggestioncommand.js +2 -2
- package/src/commands/executeonallsuggestionscommand.d.ts +3 -3
- package/src/commands/executeonallsuggestionscommand.js +2 -2
- package/src/commands/executeonselectedsuggestionscommand.d.ts +3 -3
- package/src/commands/executeonselectedsuggestionscommand.js +2 -2
- package/src/commands/trackchangescommand.d.ts +2 -2
- package/src/commands/trackchangescommand.js +2 -2
- package/src/index.d.ts +13 -13
- package/src/index.js +2 -2
- package/src/integrations/aiassistant.d.ts +2 -2
- package/src/integrations/aiassistant.js +2 -2
- package/src/integrations/alignment.d.ts +2 -2
- package/src/integrations/alignment.js +2 -2
- package/src/integrations/basicstyles.d.ts +2 -2
- package/src/integrations/basicstyles.js +2 -2
- package/src/integrations/blockquote.d.ts +2 -2
- package/src/integrations/blockquote.js +2 -2
- package/src/integrations/casechange.d.ts +17 -0
- package/src/integrations/casechange.js +23 -0
- package/src/integrations/ckbox.d.ts +2 -2
- package/src/integrations/ckbox.js +2 -2
- package/src/integrations/codeblock.d.ts +2 -2
- package/src/integrations/codeblock.js +2 -2
- package/src/integrations/comments.d.ts +2 -2
- package/src/integrations/comments.js +2 -2
- package/src/integrations/deletecommand.d.ts +3 -3
- package/src/integrations/deletecommand.js +2 -2
- package/src/integrations/entercommand.d.ts +3 -3
- package/src/integrations/entercommand.js +2 -2
- package/src/integrations/findandreplace.d.ts +2 -2
- package/src/integrations/findandreplace.js +2 -2
- package/src/integrations/font.d.ts +2 -2
- package/src/integrations/font.js +2 -2
- package/src/integrations/formatpainter.d.ts +2 -2
- package/src/integrations/formatpainter.js +2 -2
- package/src/integrations/heading.d.ts +2 -2
- package/src/integrations/heading.js +2 -2
- package/src/integrations/highlight.d.ts +2 -2
- package/src/integrations/highlight.js +2 -2
- package/src/integrations/horizontalline.d.ts +2 -2
- package/src/integrations/horizontalline.js +2 -2
- package/src/integrations/htmlembed.d.ts +2 -2
- package/src/integrations/htmlembed.js +2 -2
- package/src/integrations/image.d.ts +2 -2
- package/src/integrations/image.js +2 -2
- package/src/integrations/imagereplace.d.ts +2 -2
- package/src/integrations/imagereplace.js +2 -2
- package/src/integrations/imagestyle.d.ts +2 -2
- package/src/integrations/imagestyle.js +2 -2
- package/src/integrations/importword.d.ts +2 -2
- package/src/integrations/importword.js +2 -2
- package/src/integrations/indent.d.ts +2 -2
- package/src/integrations/indent.js +2 -2
- package/src/integrations/inputcommand.d.ts +3 -3
- package/src/integrations/inputcommand.js +2 -2
- package/src/integrations/legacylist.d.ts +17 -0
- package/src/integrations/legacylist.js +23 -0
- package/src/integrations/{documentlistproperties.d.ts → legacylistproperties.d.ts} +7 -7
- package/src/integrations/legacylistproperties.js +23 -0
- package/src/integrations/link.d.ts +2 -2
- package/src/integrations/link.js +2 -2
- package/src/integrations/list.d.ts +6 -6
- package/src/integrations/list.js +2 -2
- package/src/integrations/listproperties.d.ts +6 -15
- package/src/integrations/listproperties.js +2 -2
- package/src/integrations/mediaembed.d.ts +2 -2
- package/src/integrations/mediaembed.js +2 -2
- package/src/integrations/mention.d.ts +2 -2
- package/src/integrations/mention.js +2 -2
- package/src/integrations/pagebreak.d.ts +2 -2
- package/src/integrations/pagebreak.js +2 -2
- package/src/integrations/paragraph.d.ts +2 -2
- package/src/integrations/paragraph.js +2 -2
- package/src/integrations/removeformat.d.ts +2 -2
- package/src/integrations/removeformat.js +2 -2
- package/src/integrations/restrictededitingmode.d.ts +2 -2
- package/src/integrations/restrictededitingmode.js +2 -2
- package/src/integrations/shiftentercommand.d.ts +3 -3
- package/src/integrations/shiftentercommand.js +2 -2
- package/src/integrations/standardeditingmode.d.ts +2 -2
- package/src/integrations/standardeditingmode.js +2 -2
- package/src/integrations/style.d.ts +2 -2
- package/src/integrations/style.js +2 -2
- package/src/integrations/table.d.ts +2 -2
- package/src/integrations/table.js +2 -2
- package/src/integrations/tablecaption.d.ts +3 -3
- package/src/integrations/tablecaption.js +2 -2
- package/src/integrations/tableclipboard.d.ts +3 -3
- package/src/integrations/tableclipboard.js +2 -2
- package/src/integrations/tablecolumnresize.d.ts +5 -5
- package/src/integrations/tablecolumnresize.js +2 -2
- package/src/integrations/tableheadings.d.ts +3 -3
- package/src/integrations/tableheadings.js +2 -2
- package/src/integrations/tablemergesplit.d.ts +3 -3
- package/src/integrations/tablemergesplit.js +2 -2
- package/src/integrations/tableofcontents.d.ts +2 -2
- package/src/integrations/tableofcontents.js +2 -2
- package/src/integrations/tableproperties.d.ts +5 -5
- package/src/integrations/tableproperties.js +2 -2
- package/src/integrations/template.d.ts +2 -2
- package/src/integrations/template.js +2 -2
- package/src/integrations/title.d.ts +2 -2
- package/src/integrations/title.js +2 -2
- package/src/integrations/undo.d.ts +2 -2
- package/src/integrations/undo.js +2 -2
- package/src/integrations/utils.d.ts +4 -4
- package/src/integrations/utils.js +2 -2
- package/src/suggestion.d.ts +6 -6
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.d.ts +4 -4
- package/src/suggestiondescriptionfactory.js +2 -2
- package/src/trackchanges.d.ts +6 -6
- package/src/trackchanges.js +2 -2
- package/src/trackchangesconfig.d.ts +2 -2
- package/src/trackchangesconfig.js +1 -1
- package/src/trackchangesdata.d.ts +3 -3
- package/src/trackchangesdata.js +2 -2
- package/src/trackchangesediting.d.ts +56 -55
- package/src/trackchangesediting.js +2 -2
- package/src/trackchangesui.d.ts +4 -4
- package/src/trackchangesui.js +2 -2
- package/src/ui/suggestioncontroller.d.ts +6 -6
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.d.ts +7 -7
- package/src/ui/view/basesuggestionthreadview.js +2 -2
- package/src/ui/view/suggestionthreadview.d.ts +6 -6
- package/src/ui/view/suggestionthreadview.js +2 -2
- package/src/utils/common-translations.d.ts +2 -2
- package/src/utils/common-translations.js +2 -2
- package/src/utils/utils.d.ts +5 -5
- package/src/utils/utils.js +2 -2
- package/theme/icons/track-changes-accept.svg +1 -1
- package/theme/icons/track-changes-discard.svg +1 -1
- package/theme/icons/track-changes.svg +1 -1
- package/src/integrations/documentlist.d.ts +0 -17
- package/src/integrations/documentlist.js +0 -23
- package/src/integrations/documentlistproperties.js +0 -23
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, 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 _0x65e2=['isEnabled','refresh','discardSuggestion','get','plugins','_isEnabledBasedOnSelection','track-changes-discard-suggestion-not-found','_suggestions','TrackChangesEditing','getRanges','editor'];(function(_0x17392e,_0x65e2e1){const _0x4bc70c=function(_0x342d4b){while(--_0x342d4b){_0x17392e['push'](_0x17392e['shift']());}};_0x4bc70c(++_0x65e2e1);}(_0x65e2,0xc5));const _0x4bc7=function(_0x17392e,_0x65e2e1){_0x17392e=_0x17392e-0x0;let _0x4bc70c=_0x65e2[_0x17392e];return _0x4bc70c;};import{Command as _0x556ed1}from'ckeditor5/src/core.js';import{CKEditorError as _0x762599}from'ckeditor5/src/utils.js';export default class B extends _0x556ed1{constructor(_0x26c3ad,_0x46b93a){super(_0x26c3ad),this[_0x4bc7('0x8')]=_0x46b93a,this[_0x4bc7('0x2')](),this[_0x4bc7('0x6')]=!0x1;}[_0x4bc7('0x2')](){this[_0x4bc7('0x1')]=!0x0;}['execute'](_0x163da2){const _0x3a5959=this[_0x4bc7('0x8')]['get'](_0x163da2);if(!_0x3a5959)throw new _0x762599(_0x4bc7('0x7'),this);const _0x5d0663=_0x3a5959[_0x4bc7('0xa')]();this[_0x4bc7('0x0')]['model']['canEditAt'](_0x5d0663)&&this[_0x4bc7('0x0')][_0x4bc7('0x5')][_0x4bc7('0x4')](_0x4bc7('0x9'))[_0x4bc7('0x3')](_0x3a5959);}}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
5
|
/**
|
|
6
6
|
* @module track-changes/commands/executeonallsuggestionscommand
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Command, type Editor } from 'ckeditor5/src/core';
|
|
10
|
-
import type Suggestion from '../suggestion';
|
|
9
|
+
import { Command, type Editor } from 'ckeditor5/src/core.js';
|
|
10
|
+
import type Suggestion from '../suggestion.js';
|
|
11
11
|
/**
|
|
12
12
|
* A command that executes passed command (accept or discard suggestion command) at once for all suggestions in the document.
|
|
13
13
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, 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 _0x3ee0=['execute','from','values','model','editor','refresh','canEditAt','isEnabled','_command','some','_isEnabledBasedOnSelection','_suggestions'];(function(_0x48120d,_0x3ee0e0){const _0x4a76af=function(_0x3a0ffe){while(--_0x3a0ffe){_0x48120d['push'](_0x48120d['shift']());}};_0x4a76af(++_0x3ee0e0);}(_0x3ee0,0x193));const _0x4a76=function(_0x48120d,_0x3ee0e0){_0x48120d=_0x48120d-0x0;let _0x4a76af=_0x3ee0[_0x48120d];return _0x4a76af;};import{Command as _0x5babaa}from'ckeditor5/src/core.js';import{sortSuggestions as _0x3554e6,executeCommandForSuggestions as _0x2dbafb}from'../utils/utils.js';export default class x extends _0x5babaa{constructor(_0x5ddf63,_0x3efe02,_0x4dfe28){super(_0x5ddf63),this['_command']=_0x3efe02,this['_suggestions']=_0x4dfe28,this[_0x4a76('0xa')](),this[_0x4a76('0x3')]=!0x1;}[_0x4a76('0xa')](){const _0x261d28=Array['from'](this[_0x4a76('0x4')][_0x4a76('0x7')]())[_0x4a76('0x2')](_0x6ef1ea=>_0x6ef1ea['isInContent']);this['isEnabled']=this['_command'][_0x4a76('0x0')]&&_0x261d28;}[_0x4a76('0x5')](){const _0x2b2391=_0x3554e6(Array[_0x4a76('0x6')](this['_suggestions']['values']()));for(const _0x3c4e55 of _0x2b2391){const _0x1c7618=_0x3c4e55['getRanges']();if(!this['editor'][_0x4a76('0x8')][_0x4a76('0xb')](_0x1c7618))return;}_0x2dbafb(this[_0x4a76('0x9')]['model'],this[_0x4a76('0x1')],_0x2b2391);}}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
5
|
/**
|
|
6
6
|
* @module track-changes/commands/executeonselectedsuggestionscommand
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Command, type Editor } from 'ckeditor5/src/core';
|
|
10
|
-
import type Suggestion from '../suggestion';
|
|
9
|
+
import { Command, type Editor } from 'ckeditor5/src/core.js';
|
|
10
|
+
import type Suggestion from '../suggestion.js';
|
|
11
11
|
/**
|
|
12
12
|
* A command that executes passed command (accept or discard suggestion command) at once for all suggestions selected in the document.
|
|
13
13
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, 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 _0x2976=['editor','_command','execute','_suggestions','_isEnabledBasedOnSelection','canEditAt','values','model','document','_selectedSuggestions','isEnabled','size','getRanges'];(function(_0x106992,_0x2976f1){const _0x29aec1=function(_0x3d18e5){while(--_0x3d18e5){_0x106992['push'](_0x106992['shift']());}};_0x29aec1(++_0x2976f1);}(_0x2976,0xa8));const _0x29ae=function(_0x106992,_0x2976f1){_0x106992=_0x106992-0x0;let _0x29aec1=_0x2976[_0x106992];return _0x29aec1;};import{Command as _0x2089f7}from'ckeditor5/src/core.js';import{sortSuggestions as _0x36337e,getSelectedSuggestions as _0x220441,executeCommandForSuggestions as _0x55e18b}from'../utils/utils.js';export default class R extends _0x2089f7{constructor(_0x4f4217,_0x52cd95,_0x4f8315){super(_0x4f4217),this['_command']=_0x52cd95,this[_0x29ae('0x4')]=_0x4f8315,this[_0x29ae('0xa')]=new Set(),this['refresh'](),this[_0x29ae('0x5')]=!0x1;}['refresh'](){const _0x49fb6a=this[_0x29ae('0x1')][_0x29ae('0x8')][_0x29ae('0x9')]['selection'],_0x1ba925=Array['from'](this['_suggestions'][_0x29ae('0x7')]());this[_0x29ae('0xa')]=_0x220441(_0x49fb6a,_0x1ba925),this[_0x29ae('0xb')]=this[_0x29ae('0x2')][_0x29ae('0xb')]&&!!this[_0x29ae('0xa')][_0x29ae('0xc')];}[_0x29ae('0x3')](){const _0x33fd6f=_0x36337e(Array['from'](this[_0x29ae('0xa')]));for(const _0x10ef93 of _0x33fd6f){const _0x2b9835=_0x10ef93[_0x29ae('0x0')]();if(!this[_0x29ae('0x1')][_0x29ae('0x8')][_0x29ae('0x6')](_0x2b9835))return;}_0x55e18b(this[_0x29ae('0x1')][_0x29ae('0x8')],this['_command'],_0x33fd6f);}}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
5
|
/**
|
|
6
6
|
* @module track-changes/commands/trackchangescommand
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Command, type Editor } from 'ckeditor5/src/core';
|
|
9
|
+
import { Command, type Editor } from 'ckeditor5/src/core.js';
|
|
10
10
|
/**
|
|
11
11
|
* Turns the track changes mode on and off.
|
|
12
12
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, 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 _0x4e7d=['refresh','value','has','TrackChangesCommand','affectsData','_enableCommands','_isEnabledBasedOnSelection','execute','clearForceDisabled','_disableUnsupportedCommands','commands','_enabledCommands','forceDisabled','isEnabled'];(function(_0x34f5f4,_0x4e7d62){const _0x4c2af4=function(_0xcf0a19){while(--_0xcf0a19){_0x34f5f4['push'](_0x34f5f4['shift']());}};_0x4c2af4(++_0x4e7d62);}(_0x4e7d,0x142));const _0x4c2a=function(_0x34f5f4,_0x4e7d62){_0x34f5f4=_0x34f5f4-0x0;let _0x4c2af4=_0x4e7d[_0x34f5f4];return _0x4c2af4;};import{Command as _0x2fae55}from'ckeditor5/src/core.js';export default class M extends _0x2fae55{constructor(_0x507ac1,_0x22396e){super(_0x507ac1),this['_enabledCommands']=_0x22396e,this[_0x4c2a('0x1')]=!0x1,this[_0x4c2a('0x0')](),this[_0x4c2a('0x6')]=!0x1;}[_0x4c2a('0x0')](){this[_0x4c2a('0xd')]=!0x0;}[_0x4c2a('0x7')](){this[_0x4c2a('0x1')]=!this[_0x4c2a('0x1')],this['value']?this[_0x4c2a('0x9')]():this[_0x4c2a('0x5')]();}['_disableUnsupportedCommands'](){for(const _0x3fee46 of this['editor'][_0x4c2a('0xa')][_0x4c2a('0xa')]())_0x3fee46['affectsData']&&!this[_0x4c2a('0xb')][_0x4c2a('0x2')](_0x3fee46)&&_0x3fee46[_0x4c2a('0xc')](_0x4c2a('0x3'));}[_0x4c2a('0x5')](){for(const _0x5905af of this['editor']['commands'][_0x4c2a('0xa')]())_0x5905af[_0x4c2a('0x4')]&&!this['_enabledCommands'][_0x4c2a('0x2')](_0x5905af)&&_0x5905af[_0x4c2a('0x8')](_0x4c2a('0x3'));}}
|
package/src/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
-
export { default as TrackChanges, type SuggestionData, type TrackChangesAdapter } from './trackchanges';
|
|
6
|
-
export { default as TrackChangesData } from './trackchangesdata';
|
|
7
|
-
export { default as TrackChangesEditing } from './trackchangesediting';
|
|
8
|
-
export type { SuggestionJSON } from './suggestion';
|
|
9
|
-
export { default as BaseSuggestionThreadView } from './ui/view/basesuggestionthreadview';
|
|
10
|
-
export type { TrackChangesConfig } from './trackchangesconfig';
|
|
11
|
-
export type { default as AcceptSuggestionCommand } from './commands/acceptsuggestioncommand';
|
|
12
|
-
export type { default as DiscardSuggestionCommand } from './commands/discardsuggestioncommand';
|
|
13
|
-
export type { default as ExecuteOnAllSuggestionsCommand } from './commands/executeonallsuggestionscommand';
|
|
14
|
-
export type { default as ExecuteOnSelectedSuggestionsCommand } from './commands/executeonselectedsuggestionscommand';
|
|
15
|
-
export type { default as TrackChangesCommand } from './commands/trackchangescommand';
|
|
16
|
-
import './augmentation';
|
|
5
|
+
export { default as TrackChanges, type SuggestionData, type TrackChangesAdapter } from './trackchanges.js';
|
|
6
|
+
export { default as TrackChangesData } from './trackchangesdata.js';
|
|
7
|
+
export { default as TrackChangesEditing } from './trackchangesediting.js';
|
|
8
|
+
export type { SuggestionJSON } from './suggestion.js';
|
|
9
|
+
export { default as BaseSuggestionThreadView } from './ui/view/basesuggestionthreadview.js';
|
|
10
|
+
export type { TrackChangesConfig } from './trackchangesconfig.js';
|
|
11
|
+
export type { default as AcceptSuggestionCommand } from './commands/acceptsuggestioncommand.js';
|
|
12
|
+
export type { default as DiscardSuggestionCommand } from './commands/discardsuggestioncommand.js';
|
|
13
|
+
export type { default as ExecuteOnAllSuggestionsCommand } from './commands/executeonallsuggestionscommand.js';
|
|
14
|
+
export type { default as ExecuteOnSelectedSuggestionsCommand } from './commands/executeonselectedsuggestionscommand.js';
|
|
15
|
+
export type { default as TrackChangesCommand } from './commands/trackchangescommand.js';
|
|
16
|
+
import './augmentation.js';
|
package/src/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, 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
|
-
export{default as TrackChanges}from'./trackchanges';export{default as TrackChangesData}from'./trackchangesdata';export{default as TrackChangesEditing}from'./trackchangesediting';export{default as BaseSuggestionThreadView}from'./ui/view/basesuggestionthreadview';import'./augmentation';
|
|
23
|
+
export{default as TrackChanges}from'./trackchanges.js';export{default as TrackChangesData}from'./trackchangesdata.js';export{default as TrackChangesEditing}from'./trackchangesediting.js';export{default as BaseSuggestionThreadView}from'./ui/view/basesuggestionthreadview.js';import'./augmentation.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/aiassistant
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* Provides track changes plugin integration for the AI Assistant feature.
|
|
11
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, 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 _0x1c39=['editor','commands','showAIAssistant','get','plugins'];(function(_0x3177be,_0x1c3975){const _0x17f671=function(_0x25084f){while(--_0x25084f){_0x3177be['push'](_0x3177be['shift']());}};_0x17f671(++_0x1c3975);}(_0x1c39,0x133));const _0x17f6=function(_0x3177be,_0x1c3975){_0x3177be=_0x3177be-0x0;let _0x17f671=_0x1c39[_0x3177be];return _0x17f671;};import{Plugin as _0x432a17}from'ckeditor5/src/core.js';export default class E extends _0x432a17{['afterInit'](){const _0x4684b4=this[_0x17f6('0x3')],_0x48de67=_0x4684b4[_0x17f6('0x2')][_0x17f6('0x1')]('TrackChangesEditing');_0x4684b4[_0x17f6('0x4')][_0x17f6('0x1')](_0x17f6('0x0'))&&_0x48de67['enableCommand']('showAIAssistant');}}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/alignment
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* Provides track changes plugin integration for alignment feature.
|
|
11
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, 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 _0x18c7=['FORMAT_ALIGN_TO_LEFT','alignment','TrackChangesEditing','FORMAT_JUSTIFY_TEXT','format','type','center','registerDescriptionCallback','*Format:*\x20%0','has','commandName','FORMAT_ALIGN_TO_RIGHT','registerAttributeLabel','FORMAT_ALIGNMENT','locale','_enableDefaultAttributesIntegration','left','justify','plugins','value','get','FORMAT_ALIGN_TO_CENTER','editor','_registerLegacyDescription','afterInit'];(function(_0x595303,_0x18c714){const _0x41e3d0=function(_0x5046ce){while(--_0x5046ce){_0x595303['push'](_0x595303['shift']());}};_0x41e3d0(++_0x18c714);}(_0x18c7,0x1db));const _0x41e3=function(_0x595303,_0x18c714){_0x595303=_0x595303-0x0;let _0x41e3d0=_0x18c7[_0x595303];return _0x41e3d0;};import{Plugin as _0x178f67}from'ckeditor5/src/core.js';import{getTranslation as _0x308da1}from'../utils/common-translations.js';export default class V extends _0x178f67{[_0x41e3('0x18')](){const _0x2ce1d6=this[_0x41e3('0x16')],_0xef9e0e=_0x2ce1d6['locale'];if(!_0x2ce1d6[_0x41e3('0x12')][_0x41e3('0x9')]('AlignmentEditing'))return;const _0x34318f=_0x2ce1d6[_0x41e3('0x12')][_0x41e3('0x14')](_0x41e3('0x2'));_0x34318f[_0x41e3('0xf')](_0x41e3('0x1'),[],[_0x41e3('0x1')]),_0x34318f['_descriptionFactory'][_0x41e3('0xc')](_0x41e3('0x1'),_0x308da1(_0xef9e0e,_0x41e3('0xd'))),this['_registerLegacyDescription']();}[_0x41e3('0x17')](){const _0x3dc839=this[_0x41e3('0x16')],_0x46afe3=_0x3dc839[_0x41e3('0xe')];_0x3dc839[_0x41e3('0x12')][_0x41e3('0x14')](_0x41e3('0x2'))['_descriptionFactory'][_0x41e3('0x7')](_0x51e0a5=>{if('formatBlock'!=_0x51e0a5[_0x41e3('0x5')])return;const {data:_0x4ddcc6}=_0x51e0a5;if(_0x4ddcc6&&'alignment'==_0x4ddcc6[_0x41e3('0xa')]){const _0x113c21=_0x4ddcc6['commandParams'][0x0][_0x41e3('0x13')];return{'type':_0x41e3('0x4'),'content':_0x308da1(_0x46afe3,_0x41e3('0x8'),function(_0x54351d){switch(_0x54351d){case _0x41e3('0x10'):return _0x308da1(_0x46afe3,_0x41e3('0x0'));case'right':return _0x308da1(_0x46afe3,_0x41e3('0xb'));case _0x41e3('0x6'):return _0x308da1(_0x46afe3,_0x41e3('0x15'));case _0x41e3('0x11'):return _0x308da1(_0x46afe3,_0x41e3('0x3'));}}(_0x113c21))};}});}}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/basicstyles
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* Provides track changes plugin integration for basic styles features.
|
|
11
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, 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 _0x48fb=['editor','superscript','strikethrough','plugins','_descriptionFactory','toLowerCase','FORMAT_BOLD','SuperscriptEditing','FORMAT_SUBSCRIPT','underline','CodeEditing','StrikethroughEditing','FORMAT_STRIKETHROUGH','forceValue','subscript','SubscriptEditing','code','ItalicEditing','locale','slice','*Format:*\x20%0','_registerLegacyDescription','toUpperCase','FORMAT_','registerDescriptionCallback','UnderlineEditing','bold','commandName','_enableDefaultAttributesIntegration','italic','FORMAT_CODE','FORMAT_SUPERSCRIPT','commandParams','TrackChangesEditing','FORMAT_UNDERLINE','type'];(function(_0x96bbc0,_0x48fb53){const _0x694eb4=function(_0x5cbb49){while(--_0x5cbb49){_0x96bbc0['push'](_0x96bbc0['shift']());}};_0x694eb4(++_0x48fb53);}(_0x48fb,0x8b));const _0x694e=function(_0x96bbc0,_0x48fb53){_0x96bbc0=_0x96bbc0-0x0;let _0x694eb4=_0x48fb[_0x96bbc0];return _0x694eb4;};import{Plugin as _0x5f4693}from'ckeditor5/src/core.js';import{getTranslation as _0x70b1e9}from'../utils/common-translations.js';const ti=['BoldEditing',_0x694e('0x16'),_0x694e('0x1e'),_0x694e('0xf'),_0x694e('0x10'),_0x694e('0x14'),_0x694e('0xc')];export default class U extends _0x5f4693{['afterInit'](){const _0x35a70a=this['editor'],_0xb872f0=_0x35a70a['plugins']['get']('TrackChangesEditing'),_0x3e19eb=_0x35a70a['locale'];for(const _0x2b7717 of ti){if(!_0x35a70a[_0x694e('0x8')]['has'](_0x2b7717))continue;const _0x45fb7f=_0x2b7717[_0x694e('0x18')](0x0,-0x7)[_0x694e('0xa')](),_0x36da30=_0x694e('0x1c')+_0x45fb7f[_0x694e('0x1b')]();_0xb872f0[_0x694e('0x21')](_0x45fb7f,[_0x45fb7f]),_0xb872f0[_0x694e('0x9')]['registerAttributeLabel'](_0x45fb7f,_0x70b1e9(_0x3e19eb,_0x36da30));}this['_registerLegacyDescription']();}[_0x694e('0x1a')](){const _0x50dce6=this[_0x694e('0x5')],_0x43597f=_0x50dce6[_0x694e('0x17')],_0x39089a=_0x50dce6['plugins']['get'](_0x694e('0x2'));function _0x1fc66d(_0x2a68de,_0x398a2b){_0x39089a['_descriptionFactory'][_0x694e('0x1d')](_0x4f8ad5=>{if('formatInline'!=_0x4f8ad5[_0x694e('0x4')])return;const {data:_0x5222f3}=_0x4f8ad5;return _0x5222f3&&_0x5222f3[_0x694e('0x20')]===_0x2a68de?_0x5222f3[_0x694e('0x1')][0x0][_0x694e('0x12')]?{'type':'format','content':_0x70b1e9(_0x43597f,_0x694e('0x19'),_0x398a2b)}:{'type':'format','content':_0x70b1e9(_0x43597f,'*Remove\x20format:*\x20%0',_0x398a2b)}:void 0x0;});}_0x1fc66d(_0x694e('0x1f'),_0x70b1e9(_0x43597f,_0x694e('0xb'))),_0x1fc66d(_0x694e('0x22'),_0x70b1e9(_0x43597f,'FORMAT_ITALIC')),_0x1fc66d(_0x694e('0xe'),_0x70b1e9(_0x43597f,_0x694e('0x3'))),_0x1fc66d(_0x694e('0x15'),_0x70b1e9(_0x43597f,_0x694e('0x23'))),_0x1fc66d(_0x694e('0x7'),_0x70b1e9(_0x43597f,_0x694e('0x11'))),_0x1fc66d(_0x694e('0x13'),_0x70b1e9(_0x43597f,_0x694e('0xd'))),_0x1fc66d(_0x694e('0x6'),_0x70b1e9(_0x43597f,_0x694e('0x0')));}}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/blockquote
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* Provides track changes plugin integration for block quote feature.
|
|
11
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, 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 _0x410a=['commandName','value','commandParams','locale','afterInit','has','forceValue','*Remove\x20format:*\x20%0','change','format','ELEMENT_BLOCK_QUOTE','from','getSelectedBlocks','blockQuote','checkChild','commands','selection','editor','filter','registerDescriptionCallback','parent','_descriptionFactory','name','model','markBlockFormat','plugins'];(function(_0x59a75c,_0x410aec){const _0x8390fd=function(_0x2304c6){while(--_0x2304c6){_0x59a75c['push'](_0x59a75c['shift']());}};_0x8390fd(++_0x410aec);}(_0x410a,0x1dc));const _0x8390=function(_0x59a75c,_0x410aec){_0x59a75c=_0x59a75c-0x0;let _0x8390fd=_0x410a[_0x59a75c];return _0x8390fd;};import{Plugin as _0x1bc5b3}from'ckeditor5/src/core.js';import{getTranslation as _0x590650}from'../utils/common-translations.js';import{getRangesOfBlockGroups as _0x3fd0ed}from'../utils/utils.js';export default class O extends _0x1bc5b3{[_0x8390('0x16')](){const _0x477ecd=this[_0x8390('0x9')],_0x103b07=_0x477ecd[_0x8390('0x15')];if(!_0x477ecd['plugins'][_0x8390('0x17')]('BlockQuoteEditing'))return;const _0x5b7fdc=_0x477ecd[_0x8390('0x11')]['get']('TrackChangesEditing'),_0x556f14=this[_0x8390('0x9')][_0x8390('0x7')]['get']('blockQuote');_0x5b7fdc['enableCommand'](_0x8390('0x5'),(_0x5a1c06,_0x306537={})=>{const _0xbc2b1f=this['editor'][_0x8390('0xf')]['document'][_0x8390('0x8')],_0x18eded=_0x306537&&void 0x0!==_0x306537[_0x8390('0x18')]?_0x306537[_0x8390('0x18')]:!_0x556f14[_0x8390('0x13')];let _0x574c69=[];if(_0x18eded){const _0x4528c7=Array[_0x8390('0x3')](_0xbc2b1f[_0x8390('0x4')]())[_0x8390('0xa')](_0x2e7f36=>oo(_0x2e7f36)||function(_0x491190,_0x5e8eda){const _0x3449c9=_0x5e8eda[_0x8390('0x6')](_0x491190['parent'],_0x8390('0x5')),_0x40555a=_0x5e8eda[_0x8390('0x6')](['$root',_0x8390('0x5')],_0x491190);return _0x3449c9&&_0x40555a;}(_0x2e7f36,this[_0x8390('0x9')][_0x8390('0xf')]['schema']));_0x574c69=_0x3fd0ed(_0x4528c7,_0x477ecd['model']);}else{const _0x46c381=Array[_0x8390('0x3')](_0xbc2b1f[_0x8390('0x4')]())[_0x8390('0xa')](_0x433e58=>oo(_0x433e58));_0x574c69=_0x3fd0ed(_0x46c381,_0x477ecd[_0x8390('0xf')]);}_0x477ecd[_0x8390('0xf')][_0x8390('0x0')](()=>{for(const _0x521670 of _0x574c69)_0x5b7fdc[_0x8390('0x10')](_0x521670,{'commandName':_0x8390('0x5'),'commandParams':[{'forceValue':_0x18eded}]});});}),_0x5b7fdc[_0x8390('0xd')][_0x8390('0xb')](_0x573142=>{const {data:_0x4c4dd3}=_0x573142;if(_0x4c4dd3&&_0x8390('0x5')==_0x4c4dd3[_0x8390('0x12')]){const _0x2cb61b=_0x590650(_0x103b07,_0x8390('0x2'));return _0x4c4dd3[_0x8390('0x14')][0x0][_0x8390('0x18')]?{'type':_0x8390('0x1'),'content':_0x590650(_0x103b07,'*Set\x20format:*\x20%0',_0x2cb61b)}:{'type':_0x8390('0x1'),'content':_0x590650(_0x103b07,_0x8390('0x19'),_0x2cb61b)};}});}}function oo(_0x4a9ad0){return _0x8390('0x5')==_0x4a9ad0[_0x8390('0xc')][_0x8390('0xe')];}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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/integrations/casechange
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for case change feature.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesCaseChange extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x3e6b=['afterInit','plugins','changeCaseUpper','get','has','TrackChangesEditing','changeCaseLower','editor','enableCommand','changeCaseTitle'];(function(_0x4f91ea,_0x3e6b8e){const _0x41300a=function(_0x3b3d13){while(--_0x3b3d13){_0x4f91ea['push'](_0x4f91ea['shift']());}};_0x41300a(++_0x3e6b8e);}(_0x3e6b,0x1b2));const _0x4130=function(_0x4f91ea,_0x3e6b8e){_0x4f91ea=_0x4f91ea-0x0;let _0x41300a=_0x3e6b[_0x4f91ea];return _0x41300a;};import{Plugin as _0x1a4469}from'ckeditor5/src/core.js';export default class G extends _0x1a4469{[_0x4130('0x6')](){const _0x14c050=this[_0x4130('0x3')];_0x14c050[_0x4130('0x7')][_0x4130('0x0')]('CaseChange')&&(_0x14c050['plugins'][_0x4130('0x9')](_0x4130('0x1'))[_0x4130('0x4')](_0x4130('0x8')),_0x14c050[_0x4130('0x7')][_0x4130('0x9')](_0x4130('0x1'))[_0x4130('0x4')](_0x4130('0x2')),_0x14c050[_0x4130('0x7')][_0x4130('0x9')](_0x4130('0x1'))[_0x4130('0x4')](_0x4130('0x5')));}}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/ckbox
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* Provides track changes plugin integration for the CKBox feature.
|
|
11
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, 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 _0x4522=['afterInit','TrackChangesEditing','editor','enableCommand','get','commands','ckbox','plugins'];(function(_0x372fa8,_0x45228e){const _0x4ae7c7=function(_0x2a80c3){while(--_0x2a80c3){_0x372fa8['push'](_0x372fa8['shift']());}};_0x4ae7c7(++_0x45228e);}(_0x4522,0x14c));const _0x4ae7=function(_0x372fa8,_0x45228e){_0x372fa8=_0x372fa8-0x0;let _0x4ae7c7=_0x4522[_0x372fa8];return _0x4ae7c7;};import{Plugin as _0x1a2376}from'ckeditor5/src/core.js';export default class F extends _0x1a2376{[_0x4ae7('0x4')](){const _0x189add=this[_0x4ae7('0x6')];_0x189add[_0x4ae7('0x1')][_0x4ae7('0x0')](_0x4ae7('0x2'))&&_0x189add[_0x4ae7('0x3')][_0x4ae7('0x0')](_0x4ae7('0x5'))[_0x4ae7('0x7')](_0x4ae7('0x2'));}}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/codeblock
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* Provides track changes plugin integration for code block feature.
|
|
11
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, 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 _0x194e=['TrackChangesEditing','enableCommand','commandName','forceValue','format','outdentCodeBlock','*Remove\x20format:*\x20%0','has','language','name','checkChild','markBlockFormat','registerElementLabel','_descriptionFactory','from','schema','*Set\x20format:*\x20%0','change','document','value','registerDescriptionCallback','model','locale','find','ELEMENT_CODE_BLOCK','blockName','plugins','commands','formatBlock','afterInit','rootElement','commandParams','indentCodeBlock','get','codeBlock'];(function(_0x2a07ee,_0x194e4b){const _0x523579=function(_0x521916){while(--_0x521916){_0x2a07ee['push'](_0x2a07ee['shift']());}};_0x523579(++_0x194e4b);}(_0x194e,0x114));const _0x5235=function(_0x2a07ee,_0x194e4b){_0x2a07ee=_0x2a07ee-0x0;let _0x523579=_0x194e[_0x2a07ee];return _0x523579;};import{Plugin as _0x1c5078}from'ckeditor5/src/core.js';import{getTranslation as _0x941dd6}from'../utils/common-translations.js';import{getRangesOfBlockGroups as _0x28dd61}from'../utils/utils.js';export default class L extends _0x1c5078{[_0x5235('0x21')](){const _0x12285a=this['editor'];if(!_0x12285a[_0x5235('0x1e')][_0x5235('0xb')]('CodeBlock'))return;const _0x396b19=_0x12285a[_0x5235('0x1e')][_0x5235('0x2')](_0x5235('0x4')),_0x510a5e=_0x12285a[_0x5235('0x1a')],_0x3c3fd3=_0x12285a['config'][_0x5235('0x2')](_0x5235('0x3'))['languages'],_0xd33154=_0x12285a[_0x5235('0x1f')][_0x5235('0x2')](_0x5235('0x3'));_0x396b19[_0x5235('0x5')](_0x5235('0x1')),_0x396b19[_0x5235('0x5')](_0x5235('0x9')),_0x396b19[_0x5235('0x5')](_0x5235('0x3'),(_0x35fa1f,_0xfc4d76={})=>{const _0x52a387=_0x12285a[_0x5235('0x19')],_0xac2553=_0x12285a['model'][_0x5235('0x16')]['selection'],_0x292195=_0xfc4d76&&void 0x0!==_0xfc4d76[_0x5235('0x7')]?_0xfc4d76[_0x5235('0x7')]:!_0xd33154[_0x5235('0x17')];let _0x537eba;_0xfc4d76[_0x5235('0xc')]||(_0xfc4d76[_0x5235('0xc')]=_0x3c3fd3[0x0]['language']),_0x537eba=_0x292195?Array[_0x5235('0x12')](_0xac2553['getSelectedBlocks']())['filter'](_0x25f35c=>eo(_0x25f35c)||function(_0x140448,_0x2829f8){if(_0x140448['is'](_0x5235('0x22'))||_0x2829f8['isLimit'](_0x140448))return!0x1;return _0x2829f8[_0x5235('0xe')](_0x140448['parent'],_0x5235('0x3'));}(_0x25f35c,_0x52a387[_0x5235('0x13')])):Array[_0x5235('0x12')](_0xac2553['getSelectedBlocks']())['filter'](_0xa536eb=>eo(_0xa536eb));const _0x546065=_0x28dd61(_0x537eba,_0x52a387);_0x52a387[_0x5235('0x15')](()=>{for(const _0x6508ed of _0x546065)_0x396b19[_0x5235('0xf')](_0x6508ed,{'commandName':'codeBlock','commandParams':[{..._0xfc4d76,'forceValue':_0x292195}],'formatGroupId':_0x5235('0x1d')});});}),(_0x396b19['_descriptionFactory'][_0x5235('0x10')]('codeBlock',_0x1d4afc=>_0x941dd6(_0x510a5e,'ELEMENT_CODE_BLOCK',_0x1d4afc)),_0x396b19[_0x5235('0x11')][_0x5235('0x18')](_0x5584db=>{if(_0x5235('0x20')!=_0x5584db['type'])return;const _0x410170=_0x510a5e['t'],{data:_0x4684b2}=_0x5584db;if(!_0x4684b2||_0x5235('0x3')!=_0x4684b2[_0x5235('0x6')])return;const _0x13a458=_0x4684b2[_0x5235('0x0')][0x0][_0x5235('0xc')],_0x196982=_0x410170(_0x3c3fd3[_0x5235('0x1b')](_0x39bc60=>_0x39bc60['language']===_0x13a458)['label'])['toLowerCase']();return _0x4684b2[_0x5235('0x0')][0x0]['forceValue']?{'type':_0x5235('0x8'),'content':_0x941dd6(_0x510a5e,_0x5235('0x14'),_0x941dd6(_0x510a5e,_0x5235('0x1c'),0x1)+'\x20('+_0x196982+')')}:{'type':_0x5235('0x8'),'content':_0x941dd6(_0x510a5e,_0x5235('0xa'),_0x941dd6(_0x510a5e,_0x5235('0x1c'),0x1))};}));}}function eo(_0x3e6579){return'codeBlock'==_0x3e6579[_0x5235('0xd')];}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/comments
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* Provides track changes plugin integration for {@link module:comments/comments~Comments comments feature}.
|
|
11
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, 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 _0x266d=['TrackChangesEditing','CommentsEditing','plugins','has','editor'];(function(_0x511f30,_0x266db2){const _0x1dd4df=function(_0x2f4be2){while(--_0x2f4be2){_0x511f30['push'](_0x511f30['shift']());}};_0x1dd4df(++_0x266db2);}(_0x266d,0x1b9));const _0x1dd4=function(_0x511f30,_0x266db2){_0x511f30=_0x511f30-0x0;let _0x1dd4df=_0x266d[_0x511f30];return _0x1dd4df;};import{Plugin as _0x32ddcf}from'ckeditor5/src/core.js';export default class H extends _0x32ddcf{['afterInit'](){const _0x1be53c=this[_0x1dd4('0x3')];if(!_0x1be53c[_0x1dd4('0x1')][_0x1dd4('0x2')](_0x1dd4('0x0')))return;_0x1be53c[_0x1dd4('0x1')]['get'](_0x1dd4('0x4'))['enableCommand']('addCommentThread');}}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/deletecommand
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import { Delete } from 'ckeditor5/src/typing';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { Delete } from 'ckeditor5/src/typing.js';
|
|
10
10
|
/**
|
|
11
11
|
* Provides track changes plugin integration for {@link module:typing/inputcommand~DeleteCommand delete command}. Also
|
|
12
12
|
* provides integration {@link module:engine/model/model~Model#deleteContent} as many features use it internally.
|