@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
package/src/trackchangesui.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
|
-
const _0x4ef8=['createAnnotation','push','execute','locale','separator','define','SuggestionThreadView','type','acceptSelectedSuggestions','componentFactory','TrackChangesEditing','Annotations','acceptAllSuggestions','acceptButton','EditorAnnotations','Discard\x20all\x20suggestions','getSuggestion','set','CommentsRepository','some','refreshSelectedViews','buttonView','_disableComments','addSourceCollector','isDirty','bind','editing','_initializeController','change:previous','head','discardSelectedSuggestions','_descriptionFactory','_viewToController','Accept\x20all\x20selected\x20suggestions','commands','add','button','editor','plugins','reduce','values','isMultiRange','focus','_handleControllerBuffer','createAnnotationView','trackChanges.SuggestionThreadView','source','keys','TrackChangesUI','CommentsUI','previous','length','_bindAnnotationToEditors','suggestionUnloaded','trackChanges','suggestionLoaded','get','commandName','_updateController','map','getRanges','_suggestionToController','model','remove','config','isInContent','clear','destroy','_createUIButton','size','lowest','view','value','_unbindEditors','getAllAdjacentSuggestions','Accept\x20all\x20suggestions','has','switchbutton','hasSuggestion','change:activeAnnotations','suggestion-','createCommentThreadController','arrowView','discardAllSuggestions','delete','activeAnnotations','_refreshActiveMarkers','filter','comments.maxCommentCharsWhenCollapsed','requires','getMarkers','isEnabled','comments.maxThreadTotalWeight','suggestionChanged','_annotationViews','comments.editorConfig','unbind','trackChanges.disableComments','mainView','commentThread','_destroyController','_handleSuggestionControllerDelayed','listenTo','init','from','actionView','innerView','toMany','descriptionParts','discardButton','getDescriptions','getMarkerNames'];(function(_0x15a6bc,_0x4ef8be){const _0x11d050=function(_0x5b168a){while(--_0x5b168a){_0x15a6bc['push'](_0x15a6bc['shift']());}};_0x11d050(++_0x4ef8be);}(_0x4ef8,0xbf));const _0x11d0=function(_0x15a6bc,_0x4ef8be){_0x15a6bc=_0x15a6bc-0x0;let _0x11d050=_0x4ef8[_0x15a6bc];return _0x11d050;};import{Plugin as _0x57140e}from'ckeditor5/src/core';import{Collection as _0x2f5dc9}from'ckeditor5/src/utils';import{Model as _0x988443,SplitButtonView as _0x5323c1,createDropdown as _0x5d1d5f,addListToDropdown as _0x2284d9}from'ckeditor5/src/ui';import{Users as _0x4272aa,getDateTimeFormatter as _0x32e184,getAllMarkersDomElementsSorted as _0x240d7a}from'ckeditor5-collaboration/src/collaboration-core';import _0x24cd78 from'./trackchangesediting';import _0x52ca5b from'./ui/suggestioncontroller';import _0x42fe38 from'./ui/view/suggestionthreadview';import{getTranslation as _0x57d9ab}from'./utils/common-translations';import _0x12c1dc from'../theme/icons/track-changes.svg';export default class d extends _0x57140e{static get[_0x11d0('0xa')](){return[_0x24cd78,_0x4272aa,_0x11d0('0x33'),_0x11d0('0x2c'),'EditorAnnotations'];}static get['pluginName'](){return _0x11d0('0x51');}constructor(_0x962bf2){super(_0x962bf2),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this[_0x11d0('0xf')]=new Map(),this[_0x11d0('0x4c')]=new Map();const _0x271309=this[_0x11d0('0x46')][_0x11d0('0x61')];_0x271309[_0x11d0('0x26')](_0x11d0('0x4e'),_0x42fe38),_0x271309[_0x11d0('0x26')](_0x11d0('0x12'),!0x1),this[_0x11d0('0x37')]=_0x271309[_0x11d0('0x59')](_0x11d0('0x12'));}[_0x11d0('0x16')](_0x2663b1,_0x9ec40a){0x0===this[_0x11d0('0x4c')][_0x11d0('0x66')]&&setTimeout(()=>{for(const [_0x2c43fa,_0xbfaa2b]of this[_0x11d0('0x4c')]){const _0x4f24a8=this[_0x11d0('0x5e')]['has'](_0x2c43fa);_0x4f24a8||_0xbfaa2b?_0x4f24a8&&_0xbfaa2b&&this[_0x11d0('0x15')](_0x2c43fa):this[_0x11d0('0x3c')](_0x2c43fa);}this[_0x11d0('0x46')][_0x11d0('0x47')]['get']('EditorAnnotations')[_0x11d0('0x35')](),this[_0x11d0('0x7')](),this['_handleControllerBuffer'][_0x11d0('0x63')]();},0xa),this[_0x11d0('0x4c')][_0x11d0('0x32')](_0x2663b1,_0x9ec40a);}[_0x11d0('0x18')](){const _0x2331e6=this[_0x11d0('0x46')],_0x3b896d=_0x2331e6[_0x11d0('0x47')][_0x11d0('0x59')](_0x11d0('0x2b')),_0x356779=_0x2331e6[_0x11d0('0x47')][_0x11d0('0x59')](_0x11d0('0x2c')),_0x2643d9=_0x2331e6[_0x11d0('0x47')]['get'](_0x11d0('0x2f')),_0x3a9d9e=_0x2331e6[_0x11d0('0x47')]['get']('CommentsRepository');_0x2331e6['ui'][_0x11d0('0x2a')][_0x11d0('0x44')]('trackChanges',_0x8081e9=>this[_0x11d0('0x65')](_0x8081e9)),_0x2643d9[_0x11d0('0x38')](()=>{const _0x230de6=[];for(const [_0x2536e7,_0x1631c0]of Array[_0x11d0('0x19')](this[_0x11d0('0x5e')])){const _0x3cd721=_0x2536e7[_0x11d0('0x6b')](),_0x35e33c=[];for(const _0x2c62e9 of _0x3cd721){if(!_0x2c62e9[_0x11d0('0x62')])continue;if(_0x2c62e9[_0x11d0('0x4a')]){_0x35e33c[_0x11d0('0x22')](..._0x2c62e9[_0x11d0('0x5d')]());continue;}const _0x2d7337=_0x2c62e9['getFirstRange']();if(_0x35e33c[_0x11d0('0x54')]>0x0){const _0x234816=_0x35e33c[0x0]['getJoined'](_0x2d7337);if(_0x234816){_0x35e33c[0x0]=_0x234816;continue;}}_0x35e33c[_0x11d0('0x22')](_0x2d7337);}_0x230de6['push']([_0x1631c0[_0x11d0('0x68')],_0x35e33c]);}return _0x230de6;}),this[_0x11d0('0x17')](_0x3b896d,_0x11d0('0x58'),(_0x594123,_0x1ef054)=>{this[_0x11d0('0x17')](_0x1ef054,_0x11d0('0x3d'),(_0x3e915c,_0x55448a,_0x9d23f2,_0x1e898e)=>{_0x1ef054['isInContent']&&(null==_0x9d23f2?(this['_updateController'](_0x1e898e[_0x11d0('0x3e')]),this[_0x11d0('0x16')](_0x1ef054,!0x1)):(this['_updateController'](_0x9d23f2[_0x11d0('0x3e')]),null==_0x1e898e&&this[_0x11d0('0x16')](_0x1ef054,!0x0)));}),null!==_0x1ef054[_0x11d0('0x53')]?this['_updateController'](_0x1ef054[_0x11d0('0x3e')]):this[_0x11d0('0x16')](_0x1ef054,!0x1);}),this[_0x11d0('0x17')](_0x3b896d,_0x11d0('0x56'),(_0x3c0fe8,_0x2f2d6b,_0x5789b0)=>{this['stopListening'](_0x2f2d6b,_0x11d0('0x3d')),this[_0x11d0('0x4c')]['delete'](_0x2f2d6b),this[_0x11d0('0x5e')][_0x11d0('0x6d')](_0x2f2d6b)&&this[_0x11d0('0x15')](_0x2f2d6b),_0x5789b0&&this[_0x11d0('0x5b')](_0x5789b0[_0x11d0('0x3e')]);}),this[_0x11d0('0x17')](_0x3b896d,_0x11d0('0xe'),(_0x32d525,_0x30e48d)=>{this['_updateController'](_0x30e48d);}),this['listenTo'](_0x356779,_0x11d0('0x0'),()=>{this[_0x11d0('0x7')]();}),this[_0x11d0('0x17')](_0x3a9d9e,'addComment',(_0x48423b,{threadId:_0x4ec39c,isFromAdapter:_0xedea6d})=>{if(_0xedea6d||!_0x3b896d[_0x11d0('0x6f')](_0x4ec39c))return;const _0x50cc52=_0x3b896d[_0x11d0('0x31')](_0x4ec39c);this[_0x11d0('0x5e')][_0x11d0('0x59')](_0x50cc52)['view']['focus']();},{'priority':_0x11d0('0x67')});}[_0x11d0('0x7')](){const _0x2a299e=this[_0x11d0('0x46')][_0x11d0('0x47')][_0x11d0('0x59')](_0x11d0('0x2c')),_0x1b6595=this[_0x11d0('0x46')]['plugins'][_0x11d0('0x59')](_0x11d0('0x2b')),_0x47d7d8=Array['from'](_0x2a299e[_0x11d0('0x6')],_0x37c922=>_0x37c922[_0x11d0('0x1b')])['filter'](_0x3362ac=>this[_0x11d0('0x41')][_0x11d0('0x6d')](_0x3362ac)),_0x2fc59e=[];for(const _0x2d10f4 of _0x47d7d8){const _0x3d9698=this[_0x11d0('0x41')][_0x11d0('0x59')](_0x2d10f4)[_0x11d0('0x5f')][_0x11d0('0x6b')]();_0x2fc59e[_0x11d0('0x22')](..._0x3d9698[_0x11d0('0x48')]((_0x4aa9e9,_0x4c1854)=>[..._0x4aa9e9,..._0x4c1854[_0x11d0('0x20')]()],[]));}_0x1b6595['activeMarkers']=_0x2fc59e;}[_0x11d0('0x65')](_0x2d3a32){const _0x14669c=_0x5d1d5f(_0x2d3a32,_0x5323c1),_0x4a8e8d=this[_0x11d0('0x46')][_0x11d0('0x43')][_0x11d0('0x59')](_0x11d0('0x57')),_0x9fb8ab=_0x57d9ab(_0x2d3a32,'Track\x20changes');_0x14669c['buttonView']['set']({'tooltip':_0x9fb8ab,'label':_0x9fb8ab,'icon':_0x12c1dc}),_0x14669c[_0x11d0('0x36')][_0x11d0('0x3a')]('isOn')['to'](_0x4a8e8d,_0x11d0('0x69')),_0x14669c[_0x11d0('0x36')]['on']('execute',()=>{_0x4a8e8d[_0x11d0('0x23')](),this[_0x11d0('0x46')][_0x11d0('0x3b')][_0x11d0('0x68')]['focus']();});const _0xf0450e=new _0x2f5dc9(),_0x2f9063=[{'type':_0x11d0('0x6e'),'model':{'withText':!0x0,'label':_0x9fb8ab,'commandName':_0x11d0('0x57')}},{'type':_0x11d0('0x25')},{'type':_0x11d0('0x45'),'model':{'withText':!0x0,'label':_0x57d9ab(_0x2d3a32,_0x11d0('0x6c')),'commandName':_0x11d0('0x2d')}},{'type':'button','model':{'withText':!0x0,'label':_0x57d9ab(_0x2d3a32,_0x11d0('0x42')),'commandName':_0x11d0('0x29')}},{'type':_0x11d0('0x45'),'model':{'withText':!0x0,'label':_0x57d9ab(_0x2d3a32,_0x11d0('0x30')),'commandName':_0x11d0('0x4')}},{'type':_0x11d0('0x45'),'model':{'withText':!0x0,'label':_0x57d9ab(_0x2d3a32,'Discard\x20all\x20selected\x20suggestions'),'commandName':_0x11d0('0x3f')}}];for(const _0x34ebd8 of _0x2f9063){let _0x1624dc={'type':_0x11d0('0x25')};if(_0x34ebd8[_0x11d0('0x5f')]){const _0x2ce9ad=new _0x988443(_0x34ebd8[_0x11d0('0x5f')]),_0x184b57=this[_0x11d0('0x46')][_0x11d0('0x43')]['get'](_0x2ce9ad[_0x11d0('0x5a')]);_0x2ce9ad['bind']('isOn','isEnabled')['to'](_0x184b57,'value',_0x11d0('0xc')),_0x1624dc={'type':_0x34ebd8[_0x11d0('0x28')],'model':_0x2ce9ad};}_0xf0450e['add'](_0x1624dc);}_0x2284d9(_0x14669c,_0xf0450e);const _0x4a5572=_0x2f9063['filter'](_0x25d7e8=>null!=_0x25d7e8[_0x11d0('0x5f')])[_0x11d0('0x5c')](_0x53c3c4=>this['editor'][_0x11d0('0x43')][_0x11d0('0x59')](_0x53c3c4[_0x11d0('0x5f')][_0x11d0('0x5a')])),_0x3e64ae=_0x14669c[_0x11d0('0x36')];return _0x3e64ae[_0x11d0('0x1a')][_0x11d0('0x11')](_0x11d0('0xc')),_0x3e64ae[_0x11d0('0x3')][_0x11d0('0x11')](_0x11d0('0xc')),_0x3e64ae[_0x11d0('0x1a')][_0x11d0('0x3a')](_0x11d0('0xc'))['to'](_0x4a8e8d,'isEnabled'),_0x3e64ae['arrowView'][_0x11d0('0x3a')](_0x11d0('0xc'))[_0x11d0('0x1c')](_0x4a5572,_0x11d0('0xc'),(..._0x2df0a0)=>_0x2df0a0[_0x11d0('0x34')](_0x3cd8e6=>_0x3cd8e6)),_0x14669c['on']('execute',_0x1ad835=>{this[_0x11d0('0x46')][_0x11d0('0x23')](_0x1ad835[_0x11d0('0x4f')][_0x11d0('0x5a')]),this[_0x11d0('0x46')]['editing']['view'][_0x11d0('0x4b')]();}),_0x14669c;}['_initializeController'](_0x4c960d){const _0x35de1f=this[_0x11d0('0x46')],_0x186dc1=_0x35de1f['config'],_0x44a9ee=_0x35de1f[_0x11d0('0x47')]['get']('Annotations'),_0x4bef0a=_0x35de1f[_0x11d0('0x47')][_0x11d0('0x59')](_0x11d0('0x33')),_0x2f258c=_0x35de1f['plugins'][_0x11d0('0x59')](_0x11d0('0x2f')),_0x133ec2=_0x35de1f[_0x11d0('0x47')][_0x11d0('0x59')](_0x4272aa)['me'],_0x46a48c=_0x186dc1[_0x11d0('0x59')](_0x11d0('0x57'))[_0x11d0('0x27')],{CommentsListView:_0x5105b4,CommentThreadInputView:_0x4b213b}=_0x35de1f[_0x11d0('0x47')]['get'](_0x11d0('0x52'));let _0x547f9f,_0x3c7b38;this[_0x11d0('0xf')][_0x11d0('0x6d')](_0x4c960d['id'])?(_0x3c7b38=this[_0x11d0('0xf')][_0x11d0('0x59')](_0x4c960d['id']),_0x547f9f=_0x3c7b38[_0x11d0('0x13')]):(_0x547f9f=new _0x46a48c(_0x35de1f[_0x11d0('0x24')],_0x4c960d,_0x133ec2,{'disableComments':this[_0x11d0('0x37')],'editorConfig':_0x186dc1[_0x11d0('0x59')](_0x11d0('0x10')),'maxCommentsWhenCollapsed':_0x186dc1[_0x11d0('0x59')]('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x186dc1[_0x11d0('0x59')](_0x11d0('0xd')),'maxCommentCharsWhenCollapsed':_0x186dc1[_0x11d0('0x59')](_0x11d0('0x9')),'formatDateTime':_0x32e184(_0x186dc1[_0x11d0('0x59')](_0x11d0('0x24'))),'CommentView':_0x186dc1[_0x11d0('0x59')]('comments')['CommentView'],'CommentsListView':_0x5105b4,'CommentThreadInputView':_0x4b213b}),_0x547f9f[_0x11d0('0x2e')]['on'](_0x11d0('0x23'),()=>{_0x35de1f[_0x11d0('0x3b')][_0x11d0('0x68')][_0x11d0('0x4b')]();}),_0x547f9f[_0x11d0('0x1e')]['on'](_0x11d0('0x23'),()=>{_0x35de1f[_0x11d0('0x3b')][_0x11d0('0x68')]['focus']();}),_0x3c7b38=_0x44a9ee[_0x11d0('0x4d')](this[_0x11d0('0x46')][_0x11d0('0x24')],_0x547f9f),_0x3c7b38['bind'](_0x11d0('0x39'))['to'](_0x547f9f,'isDirty'),_0x3c7b38[_0x11d0('0x3a')](_0x11d0('0x54'))['to'](_0x547f9f),_0x3c7b38[_0x11d0('0x3a')](_0x11d0('0x28'))['to'](_0x547f9f,_0x11d0('0x28'),_0x11b978=>'suggestion-'+_0x11b978),this['_annotationViews'][_0x11d0('0x32')](_0x4c960d['id'],_0x3c7b38));const _0xc7d8bf=_0x4bef0a[_0x11d0('0x2')](_0x4c960d[_0x11d0('0x14')],_0x547f9f),_0x54f9cd=new _0x52ca5b(_0x35de1f,_0x4c960d,_0x547f9f,_0xc7d8bf),_0x4d5d5e=_0x4c960d['getAllAdjacentSuggestions']()['filter'](_0x4240b2=>_0x4240b2[_0x11d0('0x62')]);_0x547f9f[_0x11d0('0x1d')]=_0x35de1f['plugins']['get'](_0x11d0('0x2b'))[_0x11d0('0x40')]['getDescriptions'](_0x4d5d5e),this[_0x11d0('0x5e')][_0x11d0('0x32')](_0x4c960d,_0x54f9cd),this['_viewToController'][_0x11d0('0x32')](_0x547f9f,_0x54f9cd);const _0x2e24d3=_0x44a9ee[_0x11d0('0x21')]({'view':_0x3c7b38,'target':()=>{const _0x167dd1=[],_0x2bed70=_0x4c960d[_0x11d0('0x6b')]()[_0x11d0('0x8')](_0x451bfa=>_0x451bfa[_0x11d0('0x62')]);for(const _0x124122 of _0x2bed70)_0x167dd1[_0x11d0('0x22')](..._0x124122[_0x11d0('0xb')]());return _0x240d7a(_0x35de1f[_0x11d0('0x3b')],_0x167dd1);},'type':()=>_0x11d0('0x1')+_0x54f9cd['view'][_0x11d0('0x28')]});_0x4bef0a[_0x11d0('0x55')](_0x547f9f,_0x2e24d3),_0x44a9ee[_0x11d0('0x44')](_0x2e24d3),_0x2f258c['registerAnnotation'](_0x2e24d3);}['_destroyController'](_0x2d8791){const _0x228e03=this[_0x11d0('0x46')][_0x11d0('0x47')][_0x11d0('0x59')]('CommentsRepository'),_0x8c2f9=this[_0x11d0('0x46')][_0x11d0('0x47')][_0x11d0('0x59')](_0x11d0('0x2c')),_0x28433c=this[_0x11d0('0x5e')]['get'](_0x2d8791),_0xaf5c50=_0x28433c[_0x11d0('0x68')],_0x38a0fb=_0x8c2f9['getByInnerView'](_0xaf5c50);_0x228e03[_0x11d0('0x6a')](_0xaf5c50),_0x38a0fb&&_0x8c2f9[_0x11d0('0x60')](_0x38a0fb),this[_0x11d0('0x5e')][_0x11d0('0x5')](_0x2d8791),this['_viewToController'][_0x11d0('0x5')](_0xaf5c50),_0x28433c[_0x11d0('0x64')]();}[_0x11d0('0x5b')](_0x3c0671){if(!_0x3c0671[_0x11d0('0x62')]||!this['_suggestionToController']['has'](_0x3c0671))return;const _0x248762=this[_0x11d0('0x46')][_0x11d0('0x47')][_0x11d0('0x59')](_0x11d0('0x2b')),_0x5c7d18=this[_0x11d0('0x5e')][_0x11d0('0x59')](_0x3c0671),_0x287fff=_0x3c0671[_0x11d0('0x6b')]();_0x5c7d18[_0x11d0('0x68')][_0x11d0('0x1d')]=_0x248762[_0x11d0('0x40')][_0x11d0('0x1f')](_0x287fff);}['destroy'](){for(const _0x48bd4d of this[_0x11d0('0x5e')][_0x11d0('0x50')]())this[_0x11d0('0x15')](_0x48bd4d);for(const _0x283d40 of this['_annotationViews'][_0x11d0('0x49')]())_0x283d40[_0x11d0('0x13')]['destroy']();super[_0x11d0('0x64')]();}}
|
|
23
|
+
const _0x4175=['_destroyController','focus','head','_descriptionFactory','_handleControllerBuffer','lowest','value','editor','view','commands','_bindAnnotationToEditors','push','separator','map','isMultiRange','actionView','activeAnnotations','getByInnerView','addComment','comments.maxCommentCharsWhenCollapsed','filter','addSourceCollector','_createUIButton','length','isEnabled','keys','Accept\x20all\x20selected\x20suggestions','editing','acceptAllSuggestions','trackChanges','model','Discard\x20all\x20selected\x20suggestions','add','CommentsRepository','requires','_viewToController','delete','_initializeController','suggestionUnloaded','Track\x20changes','TrackChangesEditing','Discard\x20all\x20suggestions','size','set','plugins','pluginName','_refreshActiveMarkers','EditorAnnotations','destroy','previous','_unbindEditors','_handleSuggestionControllerDelayed','switchbutton','descriptionParts','trackChanges.disableComments','change:activeAnnotations','execute','clear','createCommentThreadController','comments.maxThreadTotalWeight','reduce','from','button','getRanges','has','discardSelectedSuggestions','_suggestionToController','createAnnotation','hasSuggestion','listenTo','isDirty','isInContent','suggestion-','comments.editorConfig','get','mainView','CommentsUI','Accept\x20all\x20suggestions','getFirstRange','change:previous','values','activeMarkers','getSuggestion','define','innerView','bind','_disableComments','toMany','commandName','getAllAdjacentSuggestions','source','stopListening','suggestionChanged','getMarkerNames','some','_annotationViews','type','unbind','Annotations','buttonView','TrackChangesUI','config','remove','CommentView','isOn','_updateController','suggestionLoaded','arrowView'];(function(_0x21b80e,_0x417595){const _0x240712=function(_0x5c0c86){while(--_0x5c0c86){_0x21b80e['push'](_0x21b80e['shift']());}};_0x240712(++_0x417595);}(_0x4175,0xf1));const _0x2407=function(_0x21b80e,_0x417595){_0x21b80e=_0x21b80e-0x0;let _0x240712=_0x4175[_0x21b80e];return _0x240712;};import{Plugin as _0x638d56}from'ckeditor5/src/core.js';import{Collection as _0x14c645}from'ckeditor5/src/utils.js';import{ViewModel as _0x42d2df,SplitButtonView as _0x3d0f5a,createDropdown as _0x432fea,addListToDropdown as _0x29acc1}from'ckeditor5/src/ui.js';import{Users as _0x33cac0,getDateTimeFormatter as _0x1dc7ac,getAllMarkersDomElementsSorted as _0x2c0640}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x2cb1c3 from'./trackchangesediting.js';import _0x2bfa12 from'./ui/suggestioncontroller.js';import _0x310323 from'./ui/view/suggestionthreadview.js';import{getTranslation as _0x590f18}from'./utils/common-translations.js';import _0x127e2c from'../theme/icons/track-changes.svg';export default class d extends _0x638d56{static get[_0x2407('0x9')](){return[_0x2cb1c3,_0x33cac0,_0x2407('0x8'),_0x2407('0x49'),_0x2407('0x16')];}static get[_0x2407('0x14')](){return _0x2407('0x4b');}constructor(_0x175eaa){super(_0x175eaa),this[_0x2407('0x29')]=new Map(),this[_0x2407('0xa')]=new Map(),this[_0x2407('0x46')]=new Map(),this[_0x2407('0x57')]=new Map();const _0x67a4c7=this[_0x2407('0x5a')][_0x2407('0x4c')];_0x67a4c7[_0x2407('0x3a')]('trackChanges.SuggestionThreadView',_0x310323),_0x67a4c7['define'](_0x2407('0x1d'),!0x1),this[_0x2407('0x3d')]=_0x67a4c7[_0x2407('0x31')](_0x2407('0x1d'));}[_0x2407('0x1a')](_0x11e30c,_0x866b99){0x0===this[_0x2407('0x57')][_0x2407('0x11')]&&setTimeout(()=>{for(const [_0x4616e1,_0x41064e]of this['_handleControllerBuffer']){const _0x11f6da=this[_0x2407('0x29')]['has'](_0x4616e1);_0x11f6da||_0x41064e?_0x11f6da&&_0x41064e&&this[_0x2407('0x53')](_0x4616e1):this[_0x2407('0xc')](_0x4616e1);}this['_handleControllerBuffer'][_0x2407('0x20')](),this[_0x2407('0x5a')][_0x2407('0x13')][_0x2407('0x31')](_0x2407('0x16'))['refreshSelectedViews'](),this[_0x2407('0x15')]();},0xa),this[_0x2407('0x57')]['set'](_0x11e30c,_0x866b99);}['init'](){const _0x54fb10=this[_0x2407('0x5a')],_0x53d0ba=_0x54fb10['plugins'][_0x2407('0x31')]('TrackChangesEditing'),_0x2e11bf=_0x54fb10['plugins'][_0x2407('0x31')](_0x2407('0x49')),_0x5abe5f=_0x54fb10[_0x2407('0x13')][_0x2407('0x31')](_0x2407('0x16')),_0x467fd6=_0x54fb10[_0x2407('0x13')][_0x2407('0x31')](_0x2407('0x8'));_0x54fb10['ui']['componentFactory'][_0x2407('0x7')](_0x2407('0x4'),_0xabee48=>this[_0x2407('0x69')](_0xabee48)),_0x5abe5f[_0x2407('0x68')](()=>{const _0x4a1eda=[];for(const [_0x5b2da1,_0x1016ea]of Array[_0x2407('0x24')](this[_0x2407('0x29')])){const _0x441c67=_0x5b2da1['getAllAdjacentSuggestions'](),_0x1a87ee=[];for(const _0x3b1155 of _0x441c67){if(!_0x3b1155[_0x2407('0x2e')])continue;if(_0x3b1155[_0x2407('0x61')]){_0x1a87ee[_0x2407('0x5e')](..._0x3b1155[_0x2407('0x26')]());continue;}const _0x17c749=_0x3b1155[_0x2407('0x35')]();if(_0x1a87ee[_0x2407('0x6a')]>0x0){const _0x11711e=_0x1a87ee[0x0]['getJoined'](_0x17c749);if(_0x11711e){_0x1a87ee[0x0]=_0x11711e;continue;}}_0x1a87ee[_0x2407('0x5e')](_0x17c749);}_0x4a1eda[_0x2407('0x5e')]([_0x1016ea['view'],_0x1a87ee]);}return _0x4a1eda;}),this['listenTo'](_0x53d0ba,_0x2407('0x51'),(_0x100123,_0x401b04)=>{this[_0x2407('0x2c')](_0x401b04,_0x2407('0x36'),(_0x3ea5e9,_0x2d5f6f,_0x458e62,_0x1de24c)=>{_0x401b04['isInContent']&&(null==_0x458e62?(this[_0x2407('0x50')](_0x1de24c[_0x2407('0x55')]),this[_0x2407('0x1a')](_0x401b04,!0x1)):(this[_0x2407('0x50')](_0x458e62['head']),null==_0x1de24c&&this[_0x2407('0x1a')](_0x401b04,!0x0)));}),null!==_0x401b04[_0x2407('0x18')]?this['_updateController'](_0x401b04[_0x2407('0x55')]):this[_0x2407('0x1a')](_0x401b04,!0x1);}),this[_0x2407('0x2c')](_0x53d0ba,_0x2407('0xd'),(_0x1d3be9,_0x428518,_0x1aacb8)=>{this[_0x2407('0x42')](_0x428518,_0x2407('0x36')),this[_0x2407('0x57')][_0x2407('0xb')](_0x428518),this[_0x2407('0x29')][_0x2407('0x27')](_0x428518)&&this['_destroyController'](_0x428518),_0x1aacb8&&this[_0x2407('0x50')](_0x1aacb8[_0x2407('0x55')]);}),this[_0x2407('0x2c')](_0x53d0ba,_0x2407('0x43'),(_0x4a4cb4,_0x1cf5f7)=>{this[_0x2407('0x50')](_0x1cf5f7);}),this['listenTo'](_0x2e11bf,_0x2407('0x1e'),()=>{this[_0x2407('0x15')]();}),this[_0x2407('0x2c')](_0x467fd6,_0x2407('0x65'),(_0x598f9e,{threadId:_0x10c533,isFromAdapter:_0x17d695})=>{if(_0x17d695||!_0x53d0ba[_0x2407('0x2b')](_0x10c533))return;const _0x482bda=_0x53d0ba[_0x2407('0x39')](_0x10c533);this[_0x2407('0x29')]['get'](_0x482bda)[_0x2407('0x5b')][_0x2407('0x54')]();},{'priority':_0x2407('0x58')});}[_0x2407('0x15')](){const _0x318b0b=this[_0x2407('0x5a')]['plugins']['get']('Annotations'),_0x1e8387=this[_0x2407('0x5a')][_0x2407('0x13')][_0x2407('0x31')](_0x2407('0xf')),_0x5547ab=Array[_0x2407('0x24')](_0x318b0b[_0x2407('0x63')],_0x1f734b=>_0x1f734b[_0x2407('0x3b')])['filter'](_0x2baa79=>this[_0x2407('0xa')][_0x2407('0x27')](_0x2baa79)),_0xb61cb8=[];for(const _0x225c2c of _0x5547ab){const _0x112e4=this[_0x2407('0xa')][_0x2407('0x31')](_0x225c2c)[_0x2407('0x5')][_0x2407('0x40')]();_0xb61cb8['push'](..._0x112e4[_0x2407('0x23')]((_0x3e9bc6,_0x351df9)=>[..._0x3e9bc6,..._0x351df9[_0x2407('0x44')]()],[]));}_0x1e8387[_0x2407('0x38')]=_0xb61cb8;}['_createUIButton'](_0x5f089a){const _0x1b6710=_0x432fea(_0x5f089a,_0x3d0f5a),_0x4c495f=this[_0x2407('0x5a')][_0x2407('0x5c')][_0x2407('0x31')](_0x2407('0x4')),_0x288943=_0x590f18(_0x5f089a,_0x2407('0xe'));_0x1b6710[_0x2407('0x4a')]['set']({'tooltip':_0x288943,'label':_0x288943,'icon':_0x127e2c}),_0x1b6710['buttonView'][_0x2407('0x3c')](_0x2407('0x4f'))['to'](_0x4c495f,_0x2407('0x59')),_0x1b6710[_0x2407('0x4a')]['on']('execute',()=>{_0x4c495f[_0x2407('0x1f')](),this[_0x2407('0x5a')]['editing'][_0x2407('0x5b')][_0x2407('0x54')]();});const _0x3e330f=new _0x14c645(),_0x2246a7=[{'type':_0x2407('0x1b'),'model':{'withText':!0x0,'label':_0x288943,'commandName':_0x2407('0x4')}},{'type':_0x2407('0x5f')},{'type':_0x2407('0x25'),'model':{'withText':!0x0,'label':_0x590f18(_0x5f089a,_0x2407('0x34')),'commandName':_0x2407('0x3')}},{'type':_0x2407('0x25'),'model':{'withText':!0x0,'label':_0x590f18(_0x5f089a,_0x2407('0x1')),'commandName':'acceptSelectedSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':_0x590f18(_0x5f089a,_0x2407('0x10')),'commandName':'discardAllSuggestions'}},{'type':_0x2407('0x25'),'model':{'withText':!0x0,'label':_0x590f18(_0x5f089a,_0x2407('0x6')),'commandName':_0x2407('0x28')}}];for(const _0x5ce40d of _0x2246a7){let _0x44b619={'type':_0x2407('0x5f')};if(_0x5ce40d[_0x2407('0x5')]){const _0x26748f=new _0x42d2df(_0x5ce40d[_0x2407('0x5')]),_0xd8b74a=this[_0x2407('0x5a')][_0x2407('0x5c')][_0x2407('0x31')](_0x26748f['commandName']);_0x26748f[_0x2407('0x3c')]('isOn','isEnabled')['to'](_0xd8b74a,_0x2407('0x59'),_0x2407('0x6b')),_0x44b619={'type':_0x5ce40d[_0x2407('0x47')],'model':_0x26748f};}_0x3e330f['add'](_0x44b619);}_0x29acc1(_0x1b6710,_0x3e330f);const _0x5728b5=_0x2246a7[_0x2407('0x67')](_0x5de80c=>null!=_0x5de80c[_0x2407('0x5')])[_0x2407('0x60')](_0x37c578=>this['editor']['commands'][_0x2407('0x31')](_0x37c578['model'][_0x2407('0x3f')])),_0x167244=_0x1b6710['buttonView'];return _0x167244[_0x2407('0x62')][_0x2407('0x48')](_0x2407('0x6b')),_0x167244['arrowView'][_0x2407('0x48')](_0x2407('0x6b')),_0x167244['actionView'][_0x2407('0x3c')](_0x2407('0x6b'))['to'](_0x4c495f,_0x2407('0x6b')),_0x167244[_0x2407('0x52')]['bind'](_0x2407('0x6b'))[_0x2407('0x3e')](_0x5728b5,_0x2407('0x6b'),(..._0x108783)=>_0x108783[_0x2407('0x45')](_0x2ddf17=>_0x2ddf17)),_0x1b6710['on'](_0x2407('0x1f'),_0x4635af=>{this['editor'][_0x2407('0x1f')](_0x4635af[_0x2407('0x41')]['commandName']),this[_0x2407('0x5a')]['editing']['view'][_0x2407('0x54')]();}),_0x1b6710;}['_initializeController'](_0x3853cf){const _0x3926fa=this[_0x2407('0x5a')],_0x140e38=_0x3926fa[_0x2407('0x4c')],_0x20d6c4=_0x3926fa[_0x2407('0x13')][_0x2407('0x31')](_0x2407('0x49')),_0x1e9dc5=_0x3926fa[_0x2407('0x13')][_0x2407('0x31')](_0x2407('0x8')),_0x5e0a90=_0x3926fa[_0x2407('0x13')]['get'](_0x2407('0x16')),_0x1b04f5=_0x3926fa['plugins'][_0x2407('0x31')](_0x33cac0)['me'],_0x1d5215=_0x140e38[_0x2407('0x31')](_0x2407('0x4'))['SuggestionThreadView'],{CommentsListView:_0x4adf50,CommentThreadInputView:_0x147af9}=_0x3926fa[_0x2407('0x13')][_0x2407('0x31')](_0x2407('0x33'));let _0x2560cc,_0x1ea3cf;this[_0x2407('0x46')][_0x2407('0x27')](_0x3853cf['id'])?(_0x1ea3cf=this['_annotationViews'][_0x2407('0x31')](_0x3853cf['id']),_0x2560cc=_0x1ea3cf[_0x2407('0x32')]):(_0x2560cc=new _0x1d5215(_0x3926fa['locale'],_0x3853cf,_0x1b04f5,{'disableComments':this[_0x2407('0x3d')],'editorConfig':_0x140e38['get'](_0x2407('0x30')),'maxCommentsWhenCollapsed':_0x140e38['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x140e38[_0x2407('0x31')](_0x2407('0x22')),'maxCommentCharsWhenCollapsed':_0x140e38['get'](_0x2407('0x66')),'formatDateTime':_0x1dc7ac(_0x140e38[_0x2407('0x31')]('locale')),'CommentView':_0x140e38[_0x2407('0x31')]('comments')[_0x2407('0x4e')],'CommentsListView':_0x4adf50,'CommentThreadInputView':_0x147af9}),_0x2560cc['acceptButton']['on']('execute',()=>{_0x3926fa[_0x2407('0x2')]['view'][_0x2407('0x54')]();}),_0x2560cc['discardButton']['on'](_0x2407('0x1f'),()=>{_0x3926fa[_0x2407('0x2')][_0x2407('0x5b')][_0x2407('0x54')]();}),_0x1ea3cf=_0x20d6c4['createAnnotationView'](this[_0x2407('0x5a')]['locale'],_0x2560cc),_0x1ea3cf[_0x2407('0x3c')](_0x2407('0x2d'))['to'](_0x2560cc,'isDirty'),_0x1ea3cf[_0x2407('0x3c')](_0x2407('0x6a'))['to'](_0x2560cc),_0x1ea3cf[_0x2407('0x3c')](_0x2407('0x47'))['to'](_0x2560cc,_0x2407('0x47'),_0x35428c=>_0x2407('0x2f')+_0x35428c),this[_0x2407('0x46')][_0x2407('0x12')](_0x3853cf['id'],_0x1ea3cf));const _0xc58192=_0x1e9dc5[_0x2407('0x21')](_0x3853cf['commentThread'],_0x2560cc),_0x1a31d2=new _0x2bfa12(_0x3926fa,_0x3853cf,_0x2560cc,_0xc58192),_0x43ff51=_0x3853cf[_0x2407('0x40')]()[_0x2407('0x67')](_0x4999ad=>_0x4999ad[_0x2407('0x2e')]);_0x2560cc[_0x2407('0x1c')]=_0x3926fa['plugins'][_0x2407('0x31')]('TrackChangesEditing')['_descriptionFactory']['getDescriptions'](_0x43ff51),this[_0x2407('0x29')]['set'](_0x3853cf,_0x1a31d2),this[_0x2407('0xa')][_0x2407('0x12')](_0x2560cc,_0x1a31d2);const _0x3d402b=_0x20d6c4[_0x2407('0x2a')]({'view':_0x1ea3cf,'target':()=>{const _0x27ebc5=[],_0xb3cfe5=_0x3853cf[_0x2407('0x40')]()[_0x2407('0x67')](_0x571f01=>_0x571f01[_0x2407('0x2e')]);for(const _0x36315d of _0xb3cfe5)_0x27ebc5[_0x2407('0x5e')](..._0x36315d['getMarkers']());return _0x2c0640(_0x3926fa[_0x2407('0x2')],_0x27ebc5);},'type':()=>'suggestion-'+_0x1a31d2[_0x2407('0x5b')][_0x2407('0x47')]});_0x1e9dc5[_0x2407('0x5d')](_0x2560cc,_0x3d402b),_0x20d6c4[_0x2407('0x7')](_0x3d402b),_0x5e0a90['registerAnnotation'](_0x3d402b);}['_destroyController'](_0x45db6b){const _0xb795b2=this[_0x2407('0x5a')][_0x2407('0x13')]['get']('CommentsRepository'),_0xc35b49=this[_0x2407('0x5a')][_0x2407('0x13')][_0x2407('0x31')](_0x2407('0x49')),_0x3bb310=this[_0x2407('0x29')][_0x2407('0x31')](_0x45db6b),_0x3a58d8=_0x3bb310[_0x2407('0x5b')],_0x5d23bc=_0xc35b49[_0x2407('0x64')](_0x3a58d8);_0xb795b2[_0x2407('0x19')](_0x3a58d8),_0x5d23bc&&_0xc35b49[_0x2407('0x4d')](_0x5d23bc),this['_suggestionToController'][_0x2407('0xb')](_0x45db6b),this[_0x2407('0xa')][_0x2407('0xb')](_0x3a58d8),_0x3bb310['destroy']();}[_0x2407('0x50')](_0x2e9864){if(!_0x2e9864['isInContent']||!this[_0x2407('0x29')][_0x2407('0x27')](_0x2e9864))return;const _0x58da44=this['editor'][_0x2407('0x13')][_0x2407('0x31')]('TrackChangesEditing'),_0x67ec88=this['_suggestionToController'][_0x2407('0x31')](_0x2e9864),_0xfb8f9f=_0x2e9864[_0x2407('0x40')]();_0x67ec88[_0x2407('0x5b')][_0x2407('0x1c')]=_0x58da44[_0x2407('0x56')]['getDescriptions'](_0xfb8f9f);}[_0x2407('0x17')](){for(const _0x2f821a of this['_suggestionToController'][_0x2407('0x0')]())this['_destroyController'](_0x2f821a);for(const _0x28b11e of this[_0x2407('0x46')][_0x2407('0x37')]())_0x28b11e['mainView']['destroy']();super[_0x2407('0x17')]();}}
|
|
@@ -1,14 +1,14 @@
|
|
|
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
|
-
import type { Editor } from 'ckeditor5/src/core';
|
|
6
|
-
import type Suggestion from '../suggestion';
|
|
7
|
-
import type BaseSuggestionThreadView from './view/basesuggestionthreadview';
|
|
5
|
+
import type { Editor } from 'ckeditor5/src/core.js';
|
|
6
|
+
import type Suggestion from '../suggestion.js';
|
|
7
|
+
import type BaseSuggestionThreadView from './view/basesuggestionthreadview.js';
|
|
8
8
|
import type { CommentThreadController } from '@ckeditor/ckeditor5-comments';
|
|
9
9
|
declare const SuggestionController_base: {
|
|
10
|
-
new (): import("ckeditor5/src/utils").Observable;
|
|
11
|
-
prototype: import("ckeditor5/src/utils").Observable;
|
|
10
|
+
new (): import("ckeditor5/src/utils.js").Observable;
|
|
11
|
+
prototype: import("ckeditor5/src/utils.js").Observable;
|
|
12
12
|
};
|
|
13
13
|
/**
|
|
14
14
|
* A controller for a suggestion.
|
|
@@ -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 _0x3648=['remove','_editor','locale','isEnabled','discardSuggestion','stopListening','_acceptCommand','get','commands','canAccept','_pendingAction','bind','destroy','isDirty','model','getRanges','_removePendingAction','canEditAt','_setPendingAction','plugins','listenTo','commentThreadController','change:isDirty','acceptSuggestion','_discardCommand','PendingActions','PENDING_ACTION_SUGGESTION','unbind','add','execute','view'];(function(_0xe85334,_0x364821){const _0x2864f0=function(_0x24e87c){while(--_0x24e87c){_0xe85334['push'](_0xe85334['shift']());}};_0x2864f0(++_0x364821);}(_0x3648,0xa1));const _0x2864=function(_0xe85334,_0x364821){_0xe85334=_0xe85334-0x0;let _0x2864f0=_0x3648[_0xe85334];return _0x2864f0;};import{ObservableMixin as _0x1093c2}from'ckeditor5/src/utils.js';import{getTranslation as _0x3f373b}from'../utils/common-translations.js';export default class Xt extends _0x1093c2(){constructor(_0x29a0f3,_0xcb7817,_0x349133,_0x144d7b){super(),this[_0x2864('0x8')]=_0xcb7817,this['view']=_0x349133,this['commentThreadController']=_0x144d7b,this[_0x2864('0x1a')]=_0x29a0f3,this['_acceptCommand']=_0x29a0f3[_0x2864('0x2')]['get']('acceptSuggestion'),this[_0x2864('0x12')]=_0x29a0f3[_0x2864('0x2')]['get'](_0x2864('0x1d')),this[_0x2864('0x18')][_0x2864('0x5')]('isEnabled')['to'](this[_0x2864('0x0')],this[_0x2864('0x12')],(_0xa2fb8a,_0x291908)=>_0xa2fb8a||_0x291908),this['view'][_0x2864('0x5')](_0x2864('0x3'))['to'](this['_acceptCommand'],_0x2864('0x1c'),_0x34d3f2=>_0x34d3f2&&this['_editor'][_0x2864('0x8')][_0x2864('0xb')](_0xcb7817[_0x2864('0x9')]())),this[_0x2864('0x18')]['bind']('canDiscard')['to'](this[_0x2864('0x12')],_0x2864('0x1c'),_0x2cd433=>_0x2cd433&&this[_0x2864('0x1a')]['model'][_0x2864('0xb')](_0xcb7817[_0x2864('0x9')]())),this[_0x2864('0x4')]=null,_0x349133[_0x2864('0x7')]&&this[_0x2864('0xc')](),this[_0x2864('0xe')](_0x349133,_0x2864('0x11'),()=>this[_0x2864('0x11')]()),this[_0x2864('0xe')](_0x349133,_0x2864('0x1d'),()=>this[_0x2864('0x1d')]()),this[_0x2864('0xe')](_0x349133,_0x2864('0x10'),()=>{_0x349133['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}[_0x2864('0x11')](){this[_0x2864('0x0')][_0x2864('0x17')](this[_0x2864('0x8')]['id']);}[_0x2864('0x1d')](){this[_0x2864('0x12')][_0x2864('0x17')](this[_0x2864('0x8')]['id']);}[_0x2864('0x6')](){this['view']['unbind'](_0x2864('0x1c')),this['view'][_0x2864('0x15')](_0x2864('0x3')),this[_0x2864('0x18')][_0x2864('0x15')]('canDiscard'),this[_0x2864('0x1e')](),this[_0x2864('0xf')][_0x2864('0x6')](),this[_0x2864('0x4')]&&this['_removePendingAction']();}[_0x2864('0xc')](){const _0x3ca23d=_0x3f373b(this[_0x2864('0x1a')][_0x2864('0x1b')],_0x2864('0x14'));this[_0x2864('0x4')]=this['_editor'][_0x2864('0xd')][_0x2864('0x1')](_0x2864('0x13'))[_0x2864('0x16')](_0x3ca23d);}[_0x2864('0xa')](){null!==this[_0x2864('0x4')]&&this[_0x2864('0x1a')]['plugins'][_0x2864('0x1')](_0x2864('0x13'))[_0x2864('0x19')](this[_0x2864('0x4')]),this[_0x2864('0x4')]=null;}}
|
|
@@ -1,18 +1,18 @@
|
|
|
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/ui/view/basesuggestionthreadview
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { View } from 'ckeditor5/src/ui';
|
|
10
|
-
import type { Locale } from 'ckeditor5/src/utils';
|
|
11
|
-
import type { EditorConfig } from 'ckeditor5/src/core';
|
|
12
|
-
import type Suggestion from '../../suggestion';
|
|
9
|
+
import { View } from 'ckeditor5/src/ui.js';
|
|
10
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
11
|
+
import type { EditorConfig } from 'ckeditor5/src/core.js';
|
|
12
|
+
import type Suggestion from '../../suggestion.js';
|
|
13
13
|
import type { CommentsListView, CommentThreadInputView, CommentView } from '@ckeditor/ckeditor5-comments';
|
|
14
|
-
import type { User } from 'ckeditor5-collaboration/src/collaboration-core';
|
|
15
|
-
import type { Description } from '../../suggestiondescriptionfactory';
|
|
14
|
+
import type { User } from 'ckeditor5-collaboration/src/collaboration-core.js';
|
|
15
|
+
import type { Description } from '../../suggestiondescriptionfactory.js';
|
|
16
16
|
/**
|
|
17
17
|
* An abstract suggestion thread view class that should be used as a base for suggestion thread view implementations.
|
|
18
18
|
* It provides some behaviors, flags and building blocks to use when creating a custom suggestion thread view class.
|
|
@@ -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 _0x5211=['showInput','_model','_localUser','descriptionParts','fire','editorConfig','isReadOnly','length','cancel','locale','focus','setData','commentThread','element','assign','CommentView','isActive','commentInputView','delegate','editor','canDiscard','isEnabled','isDirty','removeComment','destroy','_createCommentViews','bind','commentThreadInputView','commentsListView','hasDirtyComment','canAccept','updateComment','authoredAt','_createCommentThreadInputView','submit','_config','set'];(function(_0x145abf,_0x521107){const _0x56895e=function(_0x1b0abe){while(--_0x1b0abe){_0x145abf['push'](_0x145abf['shift']());}};_0x56895e(++_0x521107);}(_0x5211,0xb9));const _0x5689=function(_0x145abf,_0x521107){_0x145abf=_0x145abf-0x0;let _0x56895e=_0x5211[_0x145abf];return _0x56895e;};import{View as _0x4212a1}from'ckeditor5/src/ui.js';export default class es extends _0x4212a1{constructor(_0x1f4b34,_0x5cf156,_0x2c5b45,_0x4533bd){super(_0x1f4b34),this['commentsListView']=null,this[_0x5689('0x1b')]=null,this[_0x5689('0x24')]('isActive',!0x1),this[_0x5689('0x24')](_0x5689('0x20'),_0x5cf156[_0x5689('0x20')]),this['bind'](_0x5689('0x20'))['to'](_0x5cf156),this['set'](_0x5689('0x3'),[]),this[_0x5689('0x24')](_0x5689('0x16'),!0x1),this[_0x5689('0x24')](_0x5689('0x15'),!0x1),this['set'](_0x5689('0x1e'),!0x1),this[_0x5689('0x24')](_0x5689('0x14'),!0x1),this[_0x5689('0x1')]=_0x5cf156,this['_localUser']=_0x2c5b45,this['_config']=_0x4533bd,_0x4533bd['disableComments']?this[_0x5689('0x24')](_0x5689('0x7'),0x1):this[_0x5689('0x19')]();}[_0x5689('0xa')](){this[_0x5689('0xd')]['focus']();}[_0x5689('0x18')](){this[_0x5689('0x1c')]&&this[_0x5689('0x1c')][_0x5689('0x18')](),this[_0x5689('0x1b')]&&this[_0x5689('0x1b')][_0x5689('0x18')](),super['destroy']();}[_0x5689('0x19')](){const {CommentsListView:_0xbc32c1}=this[_0x5689('0x23')];this[_0x5689('0x1c')]=new _0xbc32c1(this[_0x5689('0x9')],this[_0x5689('0x1')][_0x5689('0xc')],Object[_0x5689('0xe')]({'CommentView':this['_config'][_0x5689('0xf')]},this['_config'])),this['commentsListView'][_0x5689('0x12')](_0x5689('0x17'))['to'](this),this[_0x5689('0x1c')][_0x5689('0x12')](_0x5689('0x1f'))['to'](this),this['commentsListView']['bind'](_0x5689('0x10'))['to'](this),this['set'](_0x5689('0x7'),this[_0x5689('0x1c')][_0x5689('0x7')]+0x1),this[_0x5689('0x1a')](_0x5689('0x7'))['to'](this['commentsListView'],_0x5689('0x7'),_0x2fbd1e=>_0x2fbd1e+0x1),this[_0x5689('0x1b')]=this[_0x5689('0x21')](),this['on']('removeComment',()=>this[_0x5689('0xa')]()),this['bind'](_0x5689('0x16'))['to'](this[_0x5689('0x1c')],_0x5689('0x1d'),this[_0x5689('0x1b')][_0x5689('0x11')],'value',(_0x1b507f,_0x59f58c)=>_0x1b507f||!!_0x59f58c);}[_0x5689('0x21')](){const {CommentThreadInputView:_0x391d2b}=this['_config'],_0x4027ca=new _0x391d2b(this['locale'],this[_0x5689('0x2')],this[_0x5689('0x23')][_0x5689('0x5')]),_0x1da11c=_0x4027ca['commentInputView'];return _0x4027ca[_0x5689('0x1a')](_0x5689('0x0'))['to'](this,'isActive',this[_0x5689('0x1')][_0x5689('0xc')],_0x5689('0x6'),_0x1da11c,'value',(_0x30a247,_0x1c871a,_0x1ff908)=>!!_0x1ff908||_0x30a247&&!_0x1c871a),_0x1da11c['on'](_0x5689('0x22'),(_0x54f448,_0xffc94)=>{this[_0x5689('0x4')]('addComment',_0xffc94),_0x1da11c[_0x5689('0x13')][_0x5689('0xb')]('');}),_0x1da11c['on'](_0x5689('0x8'),()=>this['focus']()),_0x1da11c[_0x5689('0x1a')]('disabledSubmit')['to'](this[_0x5689('0x1')]['commentThread'],_0x5689('0x6')),_0x4027ca;}}
|
|
@@ -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
|
-
import { default as BaseSuggestionThreadView, type SuggestionThreadConfig } from './basesuggestionthreadview';
|
|
6
|
-
import { ButtonView, type TemplateDefinition } from 'ckeditor5/src/ui';
|
|
7
|
-
import { UserView, type User } from 'ckeditor5-collaboration/src/collaboration-core';
|
|
8
|
-
import type { Locale } from 'ckeditor5/src/utils';
|
|
9
|
-
import type Suggestion from '../../suggestion';
|
|
5
|
+
import { default as BaseSuggestionThreadView, type SuggestionThreadConfig } from './basesuggestionthreadview.js';
|
|
6
|
+
import { ButtonView, type TemplateDefinition } from 'ckeditor5/src/ui.js';
|
|
7
|
+
import { UserView, type User } from 'ckeditor5-collaboration/src/collaboration-core.js';
|
|
8
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
import type Suggestion from '../../suggestion.js';
|
|
10
10
|
/**
|
|
11
11
|
* The default view for a suggestion thread.
|
|
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 _0x286e=['discardSuggestion','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','@external','content','discardButton','commentThreadInputView','<p>','isEnabled','ck-annotation__info','locale','fire','EXTERNAL_IMPORT_WORD_SUGGESTION','set','ck-suggestion','_config','source','editorReady','disableComments','isExternal','color','editorDestroyed','ck-annotation__content-wrapper','span','cancel','render','description','innerText','split','\x22></span>','ck-suggestion__info-name','userView','extendTemplate','ck-suggestion__actions','descriptionParts','\x22\x20title=\x22','author','ck-annotation','_model','creator','delegate','acceptButton','element','push','</p>','importWord','Discard\x20suggestion','.ck-annotation__content-wrapper','children','<span\x20class=\x22ck-suggestion-type\x22>','ck-suggestion-wrapper--active','ck-suggestion--accept','EXTERNAL_AVATAR','authoredAt','change:description','EXTERNAL_IMPORT_WORD_AVATAR','_createButton','</span>','value','time','Accept\x20suggestion','join','commentsListView','EXTERNAL_SUGGESTION','bindTemplate','title','attributes','getExternalSuggestionNote','setTemplate','canDiscard','_descriptionElement','ck-annotation__info-name','div','type','ck-annotation__info-time','innerHTML','getTemplate','execute','isActive','bind','name','ck-annotation__actions','acceptSuggestion','formatDateTime'];(function(_0x1cdf96,_0x286e2){const _0x74e019=function(_0x426ec5){while(--_0x426ec5){_0x1cdf96['push'](_0x1cdf96['shift']());}};_0x74e019(++_0x286e2);}(_0x286e,0xdd));const _0x74e0=function(_0x1cdf96,_0x286e2){_0x1cdf96=_0x1cdf96-0x0;let _0x74e019=_0x286e[_0x1cdf96];return _0x74e019;};import{getTranslation as _0x59cb0d}from'../../utils/common-translations.js';import{default as _0x287d91}from'./basesuggestionthreadview.js';import{ButtonView as _0x8a42ef}from'ckeditor5/src/ui.js';import{icons as _0x45a83a}from'ckeditor5/src/core.js';import{trimHtml as _0x17b48c,UserView as _0x31aa82}from'ckeditor5-collaboration/src/collaboration-core.js';export default class Yt extends _0x287d91{constructor(_0x3c54bb,_0x38dfa4,_0x4e0233,_0x2a1656){super(_0x3c54bb,_0x38dfa4,_0x4e0233,_0x2a1656),this[_0x74e0('0x28')](_0x74e0('0x11'),''),this[_0x74e0('0x17')](_0x74e0('0x11'))['to'](this,_0x74e0('0x3d'),_0x47d274=>_0x47d274&&_0x47d274[0x0]?_0x47d274[0x0][_0x74e0('0x11')]:''),this['bind'](_0x74e0('0x35'))['to'](this,_0x74e0('0x3d'),this,'isActive',(_0x312b04,_0x955f84)=>{let _0xf9044d='';for(const _0x277477 of _0x312b04)_0xf9044d+=_0x74e0('0x22')+ds(_0x277477[_0x74e0('0x1f')],_0x277477[_0x74e0('0x2f')])+_0x74e0('0x47');return _0x955f84?_0xf9044d:_0x17b48c(_0xf9044d,{'limit':0x8c});}),this['_descriptionElement']=null,this[_0x74e0('0x44')]=this[_0x74e0('0x0')](_0x59cb0d(_0x3c54bb,_0x74e0('0x4')),_0x45a83a['check'],_0x74e0('0x4e'),_0x74e0('0x1a'),'sw'),this['acceptButton'][_0x74e0('0x17')](_0x74e0('0x23'))['to'](this,'canAccept'),this[_0x74e0('0x20')]=this[_0x74e0('0x0')](_0x59cb0d(_0x3c54bb,_0x74e0('0x49')),_0x45a83a[_0x74e0('0x33')],'ck-suggestion--discard',_0x74e0('0x1c'),'sw'),this['discardButton'][_0x74e0('0x17')]('isEnabled')['to'](this,_0x74e0('0xd')),this[_0x74e0('0x3a')]=new _0x31aa82(_0x3c54bb,this['_model'][_0x74e0('0x3f')],this['getUserViewNotificationText']()),this[_0x74e0('0x3a')][_0x74e0('0x3b')]({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this[_0x74e0('0xc')](this['getTemplate']());}[_0x74e0('0x14')](){const _0x527f28=this[_0x74e0('0x8')],_0x137f93=[{'tag':_0x74e0('0x10'),'attributes':{'class':['ck-suggestion__info',_0x74e0('0x24')]},'children':[{'tag':_0x74e0('0x32'),'children':[{'text':this[_0x74e0('0x3a')][_0x74e0('0x18')]}],'attributes':{'class':[_0x74e0('0x39'),_0x74e0('0xf')]}},{'tag':_0x74e0('0x3'),'attributes':{'datetime':_0x527f28['to'](_0x74e0('0x50')),'class':['ck-comment__info-time',_0x74e0('0x12')]},'children':[{'text':_0x527f28['to'](_0x74e0('0x50'),_0x32791f=>this[_0x74e0('0x2a')][_0x74e0('0x1b')](_0x32791f))}]}]},{'tag':_0x74e0('0x10'),'attributes':{'class':[_0x74e0('0x3c'),_0x74e0('0x19')]},'children':[this['acceptButton'],this[_0x74e0('0x20')]]},{'tag':_0x74e0('0x10'),'attributes':{'class':[_0x74e0('0x31')]}}];this[_0x74e0('0x41')][_0x74e0('0x2e')]&&_0x137f93[_0x74e0('0x46')]({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x450610={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x527f28['if'](_0x74e0('0x16'),_0x74e0('0x4d')),_0x527f28['to'](_0x74e0('0x11'),_0x446b03=>'ck-suggestion-'+_0x446b03),this[_0x74e0('0x2a')][_0x74e0('0x2d')]&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this[_0x74e0('0x41')]['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this[_0x74e0('0x41')][_0x74e0('0x3f')]['id'],'tabindex':-0x1},'children':[{'tag':_0x74e0('0x10'),'attributes':{'class':[_0x74e0('0x29'),_0x74e0('0x40')]},'children':[this[_0x74e0('0x3a')],{'tag':_0x74e0('0x10'),'attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x137f93}]}]};return this[_0x74e0('0x6')]&&this[_0x74e0('0x21')]&&(_0x450610[_0x74e0('0x4b')][_0x74e0('0x46')](this[_0x74e0('0x6')],this[_0x74e0('0x21')]),this[_0x74e0('0x6')][_0x74e0('0x43')](_0x74e0('0x2c'))['to'](this),this[_0x74e0('0x6')]['delegate'](_0x74e0('0x30'))['to'](this),this['commentThreadInputView'][_0x74e0('0x43')](_0x74e0('0x2c'))['to'](this),this[_0x74e0('0x21')][_0x74e0('0x43')](_0x74e0('0x30'))['to'](this)),_0x450610;}['render'](){super[_0x74e0('0x34')](),this[_0x74e0('0xe')]=this[_0x74e0('0x45')]['querySelector'](_0x74e0('0x4a')),this['_descriptionElement']['innerHTML']=this[_0x74e0('0x35')],this['on'](_0x74e0('0x51'),(_0x5ebb59,_0x39b6bc,_0x57369e)=>{this[_0x74e0('0xe')][_0x74e0('0x13')]=_0x57369e;});}['_createButton'](_0x58a3fe,_0x2c04c0,_0x5631ae,_0x36c3f7,_0x2a8031){const _0x5f4975=new _0x8a42ef(this[_0x74e0('0x25')]);return _0x5f4975['set']({'label':_0x58a3fe,'icon':_0x2c04c0,'tooltip':!0x0,'tooltipPosition':_0x2a8031}),_0x5f4975[_0x74e0('0x3b')]({'attributes':{'class':_0x5631ae}}),_0x5f4975['on'](_0x74e0('0x15'),()=>{this[_0x74e0('0x26')](_0x36c3f7,this[_0x74e0('0x41')]['id']);}),_0x5f4975;}[_0x74e0('0xb')](){return _0x74e0('0x48')===this[_0x74e0('0x41')][_0x74e0('0xa')][_0x74e0('0x1e')][_0x74e0('0x2b')]?_0x59cb0d(this[_0x74e0('0x25')],_0x74e0('0x27')):_0x59cb0d(this[_0x74e0('0x25')],_0x74e0('0x7'));}['getUserViewNotificationText'](){return this[_0x74e0('0x41')][_0x74e0('0x2e')]?_0x74e0('0x48')===this[_0x74e0('0x41')]['attributes']['@external'][_0x74e0('0x2b')]?_0x59cb0d(this[_0x74e0('0x25')],_0x74e0('0x52'),this[_0x74e0('0x41')][_0x74e0('0x42')][_0x74e0('0x18')]):_0x59cb0d(this['locale'],_0x74e0('0x4f'),this[_0x74e0('0x41')][_0x74e0('0x42')][_0x74e0('0x18')]):null;}}function ds(_0x2be953,_0x42d2ec){let _0x293287='';return _0x293287+=_0x2be953[_0x74e0('0x37')]('*')['map']((_0x1737a9,_0x58853d)=>_0x58853d%0x2!=0x0?_0x74e0('0x4c')+us(_0x1737a9)+_0x74e0('0x1'):us(_0x1737a9))[_0x74e0('0x5')](''),_0x42d2ec&&(_0x293287+=_0x74e0('0x1d')+_0x42d2ec[_0x74e0('0x2')]+_0x74e0('0x3e')+_0x42d2ec[_0x74e0('0x9')]+_0x74e0('0x38')),_0x293287;}function us(_0x3a2468){const _0x47bc04=document['createElement']('span');return _0x47bc04[_0x74e0('0x36')]=_0x3a2468,_0x47bc04[_0x74e0('0x13')];}
|
|
@@ -1,9 +1,9 @@
|
|
|
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/utils/common-translations
|
|
7
7
|
*/
|
|
8
|
-
import { type Locale } from 'ckeditor5/src/utils';
|
|
8
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
9
|
export declare function getTranslation(locale: Locale, id: string, values?: number | string | ReadonlyArray<number | string>): string;
|
|
@@ -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 function getTranslation(_0x2c2388,_0x5a9d7a,_0x2cc9de){const t=_0x2c2388['t'];switch(_0x5a9d7a){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x2cc9de);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2cc9de);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2cc9de);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2cc9de);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2cc9de);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x2cc9de);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2cc9de);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2cc9de);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2cc9de);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2cc9de);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2cc9de);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2cc9de);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2cc9de);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2cc9de);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2cc9de);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2cc9de);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2cc9de);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2cc9de);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2cc9de);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2cc9de);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2cc9de);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2cc9de);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2cc9de);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x2cc9de);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2cc9de);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2cc9de);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2cc9de);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2cc9de);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2cc9de);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x2cc9de);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2cc9de);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2cc9de);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2cc9de);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2cc9de);case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x2cc9de);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2cc9de);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x2cc9de);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x2cc9de);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2cc9de);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x2cc9de);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2cc9de);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x2cc9de);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2cc9de);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2cc9de);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2cc9de);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2cc9de);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x5a9d7a;}}
|
|
23
|
+
export function getTranslation(_0x2b54d3,_0xa705d6,_0x13ea32){const t=_0x2b54d3['t'];switch(_0xa705d6){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x13ea32);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x13ea32);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x13ea32);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x13ea32);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x13ea32);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x13ea32);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x13ea32);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x13ea32);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x13ea32);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x13ea32);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x13ea32);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x13ea32);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x13ea32);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x13ea32);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x13ea32);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x13ea32);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x13ea32);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x13ea32);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x13ea32);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x13ea32);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x13ea32);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x13ea32);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x13ea32);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x13ea32);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x13ea32);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x13ea32);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x13ea32);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x13ea32);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x13ea32);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x13ea32);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x13ea32);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x13ea32);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x13ea32);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x13ea32);case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x13ea32);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x13ea32);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x13ea32);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x13ea32);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x13ea32);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x13ea32);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x13ea32);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x13ea32);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x13ea32);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x13ea32);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x13ea32);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x13ea32);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0xa705d6;}}
|
package/src/utils/utils.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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/utils/utils
|
|
7
7
|
*/
|
|
8
|
-
import type { Command } from 'ckeditor5/src/core';
|
|
9
|
-
import type { DocumentSelection, Model } from 'ckeditor5/src/engine';
|
|
10
|
-
import type Suggestion from '../suggestion';
|
|
11
|
-
import type { Description } from '../suggestiondescriptionfactory';
|
|
8
|
+
import type { Command } from 'ckeditor5/src/core.js';
|
|
9
|
+
import type { DocumentSelection, Model } from 'ckeditor5/src/engine.js';
|
|
10
|
+
import type Suggestion from '../suggestion.js';
|
|
11
|
+
import type { Description } from '../suggestiondescriptionfactory.js';
|
|
12
12
|
/**
|
|
13
13
|
* Used in tests for easy suggestion comparison.
|
|
14
14
|
*/
|
package/src/utils/utils.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
|
-
const
|
|
23
|
+
const _0x3807=['map','value','push','change','isIntersecting','deletion','replace','length','isMultiRange','createPositionBefore','start','isArray','add','next','join','\x20[color\x20','createRange','end','getRanges','isObject','createPositionAfter','createPositionAt','isCollapsed','isTouching','content','from','sort','isInContent','color','type'];(function(_0x289575,_0x380774){const _0x3cb313=function(_0xb9f9f6){while(--_0xb9f9f6){_0x289575['push'](_0x289575['shift']());}};_0x3cb313(++_0x380774);}(_0x3807,0x10e));const _0x3cb3=function(_0x289575,_0x380774){_0x289575=_0x289575-0x0;let _0x3cb313=_0x3807[_0x289575];return _0x3cb313;};export function normalizeDescription(_0x5831e9){return Array[_0x3cb3('0xb')](_0x5831e9)||(_0x5831e9=[_0x5831e9]),_0x5831e9[_0x3cb3('0x0')](_0x450c63=>{const _0x352623=_0x450c63[_0x3cb3('0x18')][_0x3cb3('0x6')](/\*/g,''),_0x8fe86d=_0x450c63[_0x3cb3('0x1c')]?_0x3cb3('0xf')+_0x450c63[_0x3cb3('0x1c')][_0x3cb3('0x1')]+']':'';return'['+_0x450c63[_0x3cb3('0x1d')]+']\x20'+_0x352623+_0x8fe86d;})[_0x3cb3('0xe')](';\x20');}export function sortSuggestions(_0x5de58a){return _0x5de58a[_0x3cb3('0x1a')]((_0x2a7c21,_0x3810ed)=>_0x3cb3('0x5')==_0x2a7c21[_0x3cb3('0x1d')]&&_0x3cb3('0x5')!=_0x3810ed[_0x3cb3('0x1d')]?-0x1:_0x3cb3('0x5')!=_0x2a7c21[_0x3cb3('0x1d')]&&_0x3cb3('0x5')==_0x3810ed['type']?0x1:0x0);}export function getSelectedSuggestions(_0x26175f,_0x1ce8b9){const _0x8b2b0f=Array[_0x3cb3('0x19')](_0x26175f[_0x3cb3('0x12')]()),_0x55995b=new Set();for(const _0x176f21 of _0x1ce8b9)if(_0x176f21[_0x3cb3('0x1b')])for(const _0x3028b5 of _0x8b2b0f)for(const _0x3059cb of _0x176f21['getRanges']())(_0x3028b5[_0x3cb3('0x4')](_0x3059cb)||_0x26175f[_0x3cb3('0x16')]&&!_0x176f21[_0x3cb3('0x8')]&&_0x176f21[_0x3cb3('0xd')]&&_0x3059cb['end'][_0x3cb3('0x17')](_0x3028b5[_0x3cb3('0xa')]))&&_0x55995b[_0x3cb3('0xc')](_0x176f21);return _0x55995b;}export function getRangesOfBlockGroups(_0x18ec60,_0x416b5b){let _0x537da7,_0x1c8b99=0x0;const _0x1a111c=[],_0x46b00d=_0x416b5b['schema'];for(;_0x1c8b99<_0x18ec60[_0x3cb3('0x7')];){const _0x6efff6=_0x18ec60[_0x1c8b99],_0x11dc24=_0x18ec60[_0x1c8b99+0x1];_0x537da7||(_0x537da7=_0x416b5b[_0x3cb3('0x9')](_0x6efff6)),co(_0x416b5b,_0x6efff6,_0x11dc24)||(_0x1a111c[_0x3cb3('0x2')](_0x416b5b[_0x3cb3('0x10')](_0x537da7,_0x46b00d[_0x3cb3('0x13')](_0x6efff6)?_0x416b5b[_0x3cb3('0x14')](_0x6efff6):_0x416b5b[_0x3cb3('0x15')](_0x6efff6,_0x3cb3('0x11')))),_0x537da7=null),_0x1c8b99++;}return _0x1a111c;}function co(_0x5b0845,_0x1de633,_0x1caa72){if(!_0x1caa72)return!0x1;const _0xbf05d0=_0x5b0845[_0x3cb3('0x14')](_0x1de633),_0x1bb1ff=_0x5b0845[_0x3cb3('0x9')](_0x1caa72);return _0xbf05d0[_0x3cb3('0x17')](_0x1bb1ff);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x5a7a5c,_0x5d155b,_0x2db489){for(;_0x2db489[_0x3cb3('0x7')];){const _0x4c2913=_0x2db489['splice'](0x0,0x64);_0x5a7a5c[_0x3cb3('0x3')](()=>{for(const _0x393c69 of _0x4c2913)_0x393c69['isInContent']&&_0x5d155b['execute'](_0x393c69['id']);});}}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
|
5
5
|
all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
6
6
|
|
|
7
|
-
Copyright (c) 2003-
|
|
7
|
+
Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
8
8
|
|
|
9
9
|
!-->
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
|
5
5
|
all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
6
6
|
|
|
7
|
-
Copyright (c) 2003-
|
|
7
|
+
Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
8
8
|
|
|
9
9
|
!-->
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
|
5
5
|
all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
6
6
|
|
|
7
|
-
Copyright (c) 2003-
|
|
7
|
+
Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
8
8
|
|
|
9
9
|
!-->
|
|
10
10
|
|
|
@@ -1,17 +0,0 @@
|
|
|
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/integrations/documentlist
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for document list feature.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesDocumentList extends Plugin {
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
afterInit(): void;
|
|
17
|
-
}
|