@ckeditor/ckeditor5-track-changes 40.2.0 → 41.1.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 +5 -5
- package/LICENSE.md +1 -1
- package/README.md +1 -1
- package/build/track-changes.js +2 -2
- package/build/translations/es.js +1 -1
- package/build/translations/ro.js +1 -1
- package/lang/translations/ar.po +1 -1
- package/lang/translations/az.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/es.po +2 -2
- package/lang/translations/et.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +2 -2
- package/lang/translations/ru.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sq.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/tt.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/ur.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- 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 _0x31ad=['low','_tablePostFixingSubtypes','add','findAncestor','table','afterInit','execute','formatBlock','getSuggestions','value','mergeTableCellRight','mergeTableCellLeft','_acceptFormatSuggestionCallbackFactory','has','forceDefaultExecution','formatInline','registerDescriptionCallback','root','getSelectionAffectedTableCells','get','stop','_descriptionFactory','mergeTableCellDown','type','trackChanges','accept','getFirstPosition','from','editor','plugins','direction','horizontally','*Split\x20cell:*\x20vertically','map','mergeTableCellUp','rootName','format','subType','_areMergableCells','model','length','TableEditing','highest','commandName','refresh','_suggestionFactory','set:isEnabled','createTableWalker','registerCustomCallback','commands','containsRange','return','getRanges','splitTableCellVertically','cell','$graveyard','detach','fromRange','requires','author','getCellLocation','locale','isInContent','getAncestors','_areSelectedCellsMergable','tableCell','markMultiRangeBlockFormat','splitTableCellHorizontally','mergeTableCells','TableUtils','size','change','push','find','selection','document','*Merge\x20cells*','createRangeOn','insertion','enableCommand','isEnabled','filter'];(function(_0x2bd3b1,_0x31adfc){const _0x37a00e=function(_0x4dfea6){while(--_0x4dfea6){_0x2bd3b1['push'](_0x2bd3b1['shift']());}};_0x37a00e(++_0x31adfc);}(_0x31ad,0x11c));const _0x37a0=function(_0x2bd3b1,_0x31adfc){_0x2bd3b1=_0x2bd3b1-0x0;let _0x37a00e=_0x31ad[_0x2bd3b1];return _0x37a00e;};import{Plugin as _0x19c5be}from'ckeditor5/src/core.js';import _0x1a066c from'./table.js';import{LiveRange as _0x4326da}from'ckeditor5/src/engine.js';import{getTranslation as _0x3f68f3}from'../utils/common-translations.js';export default class jt extends _0x19c5be{static get[_0x37a0('0x14')](){return[_0x1a066c];}[_0x37a0('0x31')](){const _0x534b6f=this['editor'],_0x3c3e6e=_0x534b6f['model'][_0x37a0('0x25')][_0x37a0('0x24')],_0xc612ec=_0x534b6f[_0x37a0('0x17')];if(!_0x534b6f[_0x37a0('0x49')][_0x37a0('0x39')](_0x37a0('0x3')))return;const _0x48fb40=_0x534b6f[_0x37a0('0x49')][_0x37a0('0x3f')]('TrackChangesEditing'),_0x3a31f0=_0x534b6f[_0x37a0('0x49')][_0x37a0('0x3f')](_0x37a0('0x1f')),_0x1c8e64=_0x534b6f[_0x37a0('0x49')][_0x37a0('0x3f')](_0x1a066c);_0x1c8e64[_0x37a0('0x2d')][_0x37a0('0x22')](_0x37a0('0x1e')),_0x48fb40[_0x37a0('0x29')](_0x37a0('0x1e'),()=>{const _0x3a7f0d=_0x3a31f0[_0x37a0('0x3e')](_0x534b6f['model'][_0x37a0('0x25')][_0x37a0('0x24')]);_0x534b6f[_0x37a0('0x1')][_0x37a0('0x21')](()=>{_0x48fb40[_0x37a0('0x1c')](_0x3a7f0d,{'commandName':_0x37a0('0x1e'),'commandParams':[]},[],_0x37a0('0x1e'));});}),_0x534b6f['commands'][_0x37a0('0x3f')]('mergeTableCells')['on'](_0x37a0('0x32'),(_0xe1c7b2,_0x42dab9)=>{_0x534b6f[_0x37a0('0xb')]['get'](_0x37a0('0x44'))[_0x37a0('0x35')]&&(_0x42dab9[_0x37a0('0x2')]>0x0&&_0x42dab9[_0x42dab9[_0x37a0('0x2')]-0x1]&&_0x42dab9[_0x42dab9[_0x37a0('0x2')]-0x1][_0x37a0('0x3a')]||_0x48fb40['_isForcedDefaultExecutionBlock']||this[_0x37a0('0x1a')]()||_0xe1c7b2[_0x37a0('0x40')]());},{'priority':_0x37a0('0x4')});for(const _0x982877 of[_0x37a0('0x4e'),_0x37a0('0x36'),_0x37a0('0x42'),_0x37a0('0x37')]){const _0x35f55b=_0x534b6f[_0x37a0('0xb')][_0x37a0('0x3f')](_0x982877);_0x48fb40[_0x37a0('0x29')](_0x982877,()=>{const _0x1cdcdb=_0x534b6f[_0x37a0('0x1')][_0x37a0('0x25')]['selection'][_0x37a0('0x46')]()[_0x37a0('0x19')]()['find'](_0x310b86=>_0x310b86['is']('element',_0x37a0('0x1b'))),_0x3f4b19=_0x35f55b['value'];_0x534b6f[_0x37a0('0x1')][_0x37a0('0x21')](()=>{_0x48fb40[_0x37a0('0x1c')]([_0x1cdcdb,_0x3f4b19],{'commandName':_0x37a0('0x1e'),'commandParams':[]},[],'mergeTableCells');});});}for(const _0x1bc07a of['splitTableCellVertically',_0x37a0('0x1d')]){const _0x1c24b8=_0x534b6f[_0x37a0('0xb')]['get'](_0x1bc07a);_0x48fb40[_0x37a0('0x29')](_0x1bc07a,()=>{const _0x237c7e=_0x3a31f0[_0x37a0('0x3e')](_0x534b6f[_0x37a0('0x1')][_0x37a0('0x25')][_0x37a0('0x24')])[0x0],_0x355b75=_0x237c7e[_0x37a0('0x2f')](_0x37a0('0x30')),{column:_0x2dcf66,row:_0x5c5566}=_0x3a31f0[_0x37a0('0x16')](_0x237c7e);let _0x40adf8=[];if(_0x37a0('0x4b')==_0x1c24b8[_0x37a0('0x4a')]){const _0x4196be=_0x3a31f0['createTableWalker'](_0x355b75,{'startRow':_0x5c5566,'endRow':_0x5c5566,'includeAllSlots':!0x0});_0x40adf8=Array[_0x37a0('0x47')](_0x4196be)[_0x37a0('0x4d')](_0x57ff57=>_0x57ff57[_0x37a0('0x10')]);}else{const _0x46a4b3=_0x3a31f0[_0x37a0('0x9')](_0x355b75,{'column':_0x2dcf66,'includeAllSlots':!0x0});_0x40adf8=Array['from'](_0x46a4b3)['map'](_0x3e1b92=>_0x3e1b92['cell']);}_0x534b6f['model']['change'](_0x3495ed=>{_0x48fb40['markBlockFormat'](_0x3495ed[_0x37a0('0x27')](_0x237c7e),{'commandName':_0x1bc07a,'commandParams':[]},_0x40adf8,_0x1bc07a);});});}_0x48fb40[_0x37a0('0x41')][_0x37a0('0x3c')](_0x240845=>{if(_0x37a0('0x33')!=_0x240845[_0x37a0('0x43')]&&_0x37a0('0x3b')!=_0x240845[_0x37a0('0x43')])return;const {data:_0x55bb1f}=_0x240845;return _0x55bb1f&&'mergeTableCells'==_0x55bb1f['commandName']?{'type':_0x37a0('0x50'),'content':_0x3f68f3(_0xc612ec,_0x37a0('0x26'))}:void 0x0;}),_0x48fb40['_descriptionFactory'][_0x37a0('0x3c')](_0x4446cb=>{if('formatBlock'!=_0x4446cb[_0x37a0('0x43')]&&'formatInline'!=_0x4446cb[_0x37a0('0x43')])return;const {data:_0x4a9c78}=_0x4446cb;return _0x4a9c78?_0x37a0('0xf')==_0x4a9c78[_0x37a0('0x5')]?{'type':_0x37a0('0x50'),'content':_0x3f68f3(_0xc612ec,_0x37a0('0x4c'))}:_0x37a0('0x1d')==_0x4a9c78['commandName']?{'type':'format','content':_0x3f68f3(_0xc612ec,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x59fc0e=_0x1c8e64[_0x37a0('0x38')]();for(const _0x4431c4 of['mergeTableCellUp',_0x37a0('0x36'),_0x37a0('0x42'),_0x37a0('0x37')])_0x48fb40[_0x37a0('0x7')][_0x37a0('0xa')](_0x37a0('0x33'),_0x4431c4,'accept',_0x59fc0e);for(const _0xd00c0 of[_0x37a0('0xf'),_0x37a0('0x1d')])_0x48fb40['_suggestionFactory'][_0x37a0('0xa')](_0x37a0('0x33'),_0xd00c0,_0x37a0('0x45'),_0x59fc0e);_0x48fb40[_0x37a0('0x7')][_0x37a0('0xa')](_0x37a0('0x33'),_0x37a0('0x1e'),_0x37a0('0x45'),_0x2c1dc3=>{_0x534b6f[_0x37a0('0x1')][_0x37a0('0x21')](_0x136f0a=>{const _0x26c758=Array['from'](_0x3c3e6e[_0x37a0('0xe')]())[_0x37a0('0x4d')](_0x4a8c71=>_0x4326da[_0x37a0('0x13')](_0x4a8c71));_0x136f0a['setSelection'](_0x2c1dc3),_0x534b6f[_0x37a0('0xb')][_0x37a0('0x3f')](_0x37a0('0x1e'))[_0x37a0('0x6')](),_0x534b6f[_0x37a0('0x32')](_0x37a0('0x1e'),{'forceDefaultExecution':!0x0});const _0x2d0592=_0x26c758[_0x37a0('0x2b')](_0x562296=>_0x37a0('0x11')!=_0x562296[_0x37a0('0x3d')][_0x37a0('0x4f')]);_0x2d0592[_0x37a0('0x2')]>0x0&&_0x136f0a['setSelection'](_0x2d0592);for(const _0x1b3bc7 of _0x26c758)_0x1b3bc7[_0x37a0('0x12')]();});});for(const _0x532aac of[_0x37a0('0x4e'),_0x37a0('0x42'),'mergeTableCellLeft',_0x37a0('0x36')]){const _0x4da633=_0x534b6f[_0x37a0('0xb')][_0x37a0('0x3f')](_0x532aac);_0x4da633['on'](_0x37a0('0x8'),(_0x126e5d,_0x2fe4de,_0x255d1b)=>{if(_0x255d1b){const _0x50c130=_0x534b6f[_0x37a0('0x1')][_0x37a0('0x25')]['selection']['getFirstPosition']()[_0x37a0('0x19')]()[_0x37a0('0x23')](_0x2715a3=>_0x2715a3['is']('element',_0x37a0('0x1b')));this['_areMergableCells'](_0x4da633[_0x37a0('0x35')],_0x50c130)||(_0x126e5d[_0x37a0('0xd')]=!0x1,_0x126e5d[_0x37a0('0x40')]());}},{'priority':_0x37a0('0x2c')});}}[_0x37a0('0x1a')](){const _0x4a2819=this[_0x37a0('0x48')][_0x37a0('0xb')]['get'](_0x37a0('0x1e')),_0x28a41b=this['editor'][_0x37a0('0x49')][_0x37a0('0x3f')](_0x37a0('0x1f'));if(!_0x4a2819[_0x37a0('0x2a')])return!0x1;const _0x24d482=_0x28a41b[_0x37a0('0x3e')](this[_0x37a0('0x48')][_0x37a0('0x1')]['document']['selection']);for(const _0x4c8792 of _0x24d482)for(const _0x59ec82 of _0x24d482)if(_0x4c8792!=_0x59ec82&&!this[_0x37a0('0x0')](_0x4c8792,_0x59ec82))return!0x1;return!0x0;}[_0x37a0('0x0')](_0x185cf2,_0x1b719e){const _0x4fe492=this[_0x37a0('0x48')]['plugins']['get']('TrackChangesEditing'),_0x147fe7=this[_0x37a0('0x48')]['model'][_0x37a0('0x27')](_0x185cf2),_0x24d886=this[_0x37a0('0x48')][_0x37a0('0x1')]['createRangeOn'](_0x1b719e),_0x160b66=new Set(),_0x3efcf7=new Set();for(const _0x415b49 of _0x4fe492[_0x37a0('0x34')]())if((_0x37a0('0x28')==_0x415b49[_0x37a0('0x43')]||'deletion'==_0x415b49['type']||_0x37a0('0x1e')==_0x415b49[_0x37a0('0x51')])&&_0x415b49[_0x37a0('0x18')])for(const _0x22eb12 of _0x415b49[_0x37a0('0xe')]())_0x22eb12[_0x37a0('0xc')](_0x147fe7,!0x0)&&_0x160b66[_0x37a0('0x2e')](_0x415b49['type']+':'+_0x415b49[_0x37a0('0x15')]['id']),_0x22eb12[_0x37a0('0xc')](_0x24d886,!0x0)&&_0x3efcf7[_0x37a0('0x2e')](_0x415b49[_0x37a0('0x43')]+':'+_0x415b49[_0x37a0('0x15')]['id']);if(_0x160b66[_0x37a0('0x20')]!=_0x3efcf7[_0x37a0('0x20')])return!0x1;for(const _0x1b83cb of _0x160b66)if(!_0x3efcf7[_0x37a0('0x39')](_0x1b83cb))return!0x1;return!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/tableofcontents
|
|
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 Table of contents 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 _0x4ee4=['enableCommand','tableOfContents','editor','insertTableOfContents','afterInit','TrackChangesEditing','_descriptionFactory','get','registerElementLabel','plugins'];(function(_0x5cdee6,_0x4ee456){const _0xfebd8e=function(_0x5153b6){while(--_0x5153b6){_0x5cdee6['push'](_0x5cdee6['shift']());}};_0xfebd8e(++_0x4ee456);}(_0x4ee4,0x1ea));const _0xfebd=function(_0x5cdee6,_0x4ee456){_0x5cdee6=_0x5cdee6-0x0;let _0xfebd8e=_0x4ee4[_0x5cdee6];return _0xfebd8e;};import{Plugin as _0x5eea60}from'ckeditor5/src/core.js';import{getTranslation as _0x388320}from'../utils/common-translations.js';export default class _t extends _0x5eea60{[_0xfebd('0x4')](){const _0x5affec=this[_0xfebd('0x2')];if(!_0x5affec['commands'][_0xfebd('0x7')](_0xfebd('0x3')))return;_0x5affec[_0xfebd('0x9')][_0xfebd('0x7')](_0xfebd('0x5'))[_0xfebd('0x0')]('insertTableOfContents');const _0x94fcf8=_0x5affec[_0xfebd('0x9')][_0xfebd('0x7')](_0xfebd('0x5')),_0x37fedb=_0x5affec['locale'];_0x94fcf8[_0xfebd('0x6')][_0xfebd('0x8')](_0xfebd('0x1'),_0x196f32=>_0x388320(_0x37fedb,'ELEMENT_TABLE_OF_CONTENTS',_0x196f32));}}
|
|
@@ -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/integrations/tableproperties
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
9
|
-
import type { Range } from 'ckeditor5/src/engine';
|
|
10
|
-
import type { default as Suggestion } from '../suggestion';
|
|
11
|
-
import type { Description } from '../suggestiondescriptionfactory';
|
|
8
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
9
|
+
import type { Range } from 'ckeditor5/src/engine.js';
|
|
10
|
+
import type { default as Suggestion } from '../suggestion.js';
|
|
11
|
+
import type { Description } from '../suggestiondescriptionfactory.js';
|
|
12
12
|
/**
|
|
13
13
|
* Provides track changes plugin integration for table properties feature.
|
|
14
14
|
*/
|
|
@@ -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 _0x2ae8=['tableCellWidth','_suggestionFactory','batch','get','format','getSuggestionCallback','enqueueChange','start','formatBlock','markBlockFormat','editor','subType','afterInit','setAttribute','plugins','pluginName','nodeAfter','join','discard','tableCellPadding','tableCellProperties','TablePropertiesEditing','tableBorderWidth','data','tableCellVerticalAlignment','tableBorderColor','tableCellBorderWidth','registerCustomCallback','tableCellBackgroundColor','getFirstPosition','tableWidth','document','_handlePropertyChange','tableCellHeight','_descriptionFactory','_getSuggestion','accept','tableProperties','TableCellPropertiesEditing','has','*Format:*\x20change\x20table\x20cell\x20properties','TrackChangesEditing','getAttribute','enableCommand','handleDiscardAction','registerDescriptionCallback','findAncestor','handleSuggestionDescription','getContainedElement','model','getSelectionAffectedTableCells','commandParams','table'];(function(_0x1187b5,_0x2ae8b4){const _0x1aff42=function(_0x1459dc){while(--_0x1459dc){_0x1187b5['push'](_0x1187b5['shift']());}};_0x1aff42(++_0x2ae8b4);}(_0x2ae8,0xad));const _0x1aff=function(_0x1187b5,_0x2ae8b4){_0x1187b5=_0x1187b5-0x0;let _0x1aff42=_0x2ae8[_0x1187b5];return _0x1aff42;};import{Plugin as _0x32e71a}from'ckeditor5/src/core.js';import{getTranslation as _0x18845f}from'../utils/common-translations.js';export default class Mt extends _0x32e71a{constructor(_0x32a43d){super(_0x32a43d),this[_0x1aff('0x17')]=[_0x1aff('0xb'),'tableBorderStyle',_0x1aff('0x8'),'tableAlignment',_0x1aff('0x10'),'tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle',_0x1aff('0xc'),_0x1aff('0x5'),_0x1aff('0x27'),_0x1aff('0x13'),_0x1aff('0xe'),'tableCellHorizontalAlignment',_0x1aff('0xa')];}static get[_0x1aff('0x1')](){return'TrackChangesTableProperties';}[_0x1aff('0x33')](){const _0x1f6e72=this[_0x1aff('0x31')]['plugins'][_0x1aff('0x2a')](_0x1aff('0x1b'));if(this[_0x1aff('0x31')]['plugins'][_0x1aff('0x19')](_0x1aff('0x7'))){for(const _0x2f7f4b of this['tableProperties'])_0x1f6e72[_0x1aff('0x1d')](_0x2f7f4b,(_0x30c3f9,_0x1d65b8)=>{const _0x92e0f2=this[_0x1aff('0x31')][_0x1aff('0x23')][_0x1aff('0x11')]['selection'][_0x1aff('0xf')]()[_0x1aff('0x20')](_0x1aff('0x26'));this[_0x1aff('0x12')](_0x2f7f4b,[_0x92e0f2],this[_0x1aff('0x17')],'tableProperties',_0x30c3f9,_0x1d65b8);});_0x1f6e72[_0x1aff('0x28')][_0x1aff('0xd')]('formatBlock','tableProperties','accept',_0x1f6e72[_0x1aff('0x28')][_0x1aff('0x2c')](_0x1aff('0x2f'),null,_0x1aff('0x4'))),_0x1f6e72['_suggestionFactory'][_0x1aff('0xd')](_0x1aff('0x2f'),'tableProperties',_0x1aff('0x4'),(_0x4bda47,_0x571d76)=>this[_0x1aff('0x1e')](this[_0x1aff('0x17')],_0x4bda47,_0x571d76)),_0x1f6e72[_0x1aff('0x28')][_0x1aff('0xd')](_0x1aff('0x2f'),_0x1aff('0x17'),_0x1aff('0x3'),()=>!0x1);}if(this[_0x1aff('0x31')][_0x1aff('0x0')][_0x1aff('0x19')](_0x1aff('0x18'))){for(const _0x34258f of this[_0x1aff('0x6')])_0x1f6e72[_0x1aff('0x1d')](_0x34258f,(_0x29d7b4,_0x31bbce)=>{const _0x1a752d=this['editor'][_0x1aff('0x0')][_0x1aff('0x2a')]('TableUtils')[_0x1aff('0x24')](this[_0x1aff('0x31')][_0x1aff('0x23')][_0x1aff('0x11')]['selection']);this[_0x1aff('0x12')](_0x34258f,_0x1a752d,this['tableCellProperties'],_0x1aff('0x6'),_0x29d7b4,_0x31bbce);});_0x1f6e72['_suggestionFactory'][_0x1aff('0xd')]('formatBlock','tableCellProperties',_0x1aff('0x16'),_0x1f6e72[_0x1aff('0x28')][_0x1aff('0x2c')](_0x1aff('0x2f'),null,_0x1aff('0x4'))),_0x1f6e72[_0x1aff('0x28')]['registerCustomCallback'](_0x1aff('0x2f'),'tableCellProperties',_0x1aff('0x4'),(_0x45d8ac,_0x5d344c)=>this[_0x1aff('0x1e')](this[_0x1aff('0x6')],_0x45d8ac,_0x5d344c)),_0x1f6e72[_0x1aff('0x28')][_0x1aff('0xd')](_0x1aff('0x2f'),_0x1aff('0x6'),_0x1aff('0x3'),()=>!0x1);}_0x1f6e72[_0x1aff('0x14')][_0x1aff('0x1f')](_0x2e11cf=>this[_0x1aff('0x21')](_0x2e11cf));}[_0x1aff('0x12')](_0x4b65df,_0x530b8e,_0x3edb15,_0x517a54,_0x57ef68,_0x23ef32){const _0x9f0c43=this[_0x1aff('0x31')][_0x1aff('0x0')][_0x1aff('0x2a')](_0x1aff('0x1b'));this[_0x1aff('0x31')][_0x1aff('0x23')][_0x1aff('0x2d')](_0x23ef32[_0x1aff('0x29')],()=>{for(const _0x1043aa of _0x530b8e){if(this[_0x1aff('0x15')](_0x1043aa,_0x517a54))_0x57ef68(_0x23ef32);else{const _0x13ef6b={};for(const _0x432fcd of _0x3edb15){const _0x112951=_0x1043aa[_0x1aff('0x1c')](_0x432fcd);void 0x0!==_0x112951&&(_0x13ef6b[_0x432fcd]=_0x112951);}_0x57ef68(_0x23ef32),_0x9f0c43[_0x1aff('0x30')](_0x1043aa,{'commandParams':[_0x13ef6b]},[],_0x517a54);}}});}[_0x1aff('0x1e')](_0x1e59b4,_0xc271d6,_0x2f1118){const _0x1a62f0=_0xc271d6[0x0][_0x1aff('0x2e')][_0x1aff('0x2')],_0x3dc6dd=_0x2f1118[_0x1aff('0x25')][0x0];this[_0x1aff('0x31')][_0x1aff('0x23')]['change'](_0x84fd1=>{for(const _0x4938b6 of _0x1e59b4)void 0x0!==_0x3dc6dd[_0x4938b6]?_0x84fd1[_0x1aff('0x34')](_0x4938b6,_0x3dc6dd[_0x4938b6],_0x1a62f0):_0x84fd1['removeAttribute'](_0x4938b6,_0x1a62f0);});}[_0x1aff('0x21')](_0x621154){if(_0x621154[_0x1aff('0x9')])switch(_0x621154[_0x1aff('0x32')]){case'tableProperties':return{'type':_0x1aff('0x2b'),'content':_0x18845f(this[_0x1aff('0x31')]['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':_0x18845f(this[_0x1aff('0x31')]['locale'],_0x1aff('0x1a'))};}}[_0x1aff('0x15')](_0x1b1484,_0x59dad0){const _0x440a55=this[_0x1aff('0x31')][_0x1aff('0x0')][_0x1aff('0x2a')]('TrackChangesEditing');for(const _0x510e77 of _0x440a55['getSuggestions']({'skipNotAttached':!0x0})){const _0x183dda=_0x510e77[_0x1aff('0x22')]();if(_0x510e77[_0x1aff('0x32')]===_0x59dad0&&_0x183dda===_0x1b1484)return _0x510e77;}return null;}}
|
|
@@ -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/template
|
|
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 template 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 _0x1b9e=['get','has','plugins','editor','afterInit','enableCommand'];(function(_0x1daf10,_0x1b9ecd){const _0x4ae7d3=function(_0x3880ea){while(--_0x3880ea){_0x1daf10['push'](_0x1daf10['shift']());}};_0x4ae7d3(++_0x1b9ecd);}(_0x1b9e,0xe0));const _0x4ae7=function(_0x1daf10,_0x1b9ecd){_0x1daf10=_0x1daf10-0x0;let _0x4ae7d3=_0x1b9e[_0x1daf10];return _0x4ae7d3;};import{Plugin as _0x5a8f23}from'ckeditor5/src/core.js';export default class vt extends _0x5a8f23{[_0x4ae7('0x2')](){const _0x324b04=this[_0x4ae7('0x1')];_0x324b04[_0x4ae7('0x0')][_0x4ae7('0x5')]('Template')&&_0x324b04['plugins'][_0x4ae7('0x4')]('TrackChangesEditing')[_0x4ae7('0x3')]('insertTemplate');}}
|
|
@@ -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/title
|
|
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 title 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 _0x2778=['schema','document','has','editor','differ','_splitMarkerName','TrackChangesEditing','registerElementLabel','createRange','afterInit','getChangedMarkers','forward','element','isEqual','from','isTouching','end','title-content','ELEMENT_TITLE','registerPostFixer','isCollapsed','getNearestSelectionRange','model','start','suggestion','newRange','plugins'];(function(_0x4e77fc,_0x277838){const _0x306053=function(_0x115f91){while(--_0x115f91){_0x4e77fc['push'](_0x4e77fc['shift']());}};_0x306053(++_0x277838);}(_0x2778,0x1ad));const _0x3060=function(_0x4e77fc,_0x277838){_0x4e77fc=_0x4e77fc-0x0;let _0x306053=_0x2778[_0x4e77fc];return _0x306053;};import{Plugin as _0x3f2bf0}from'ckeditor5/src/core.js';import{getTranslation as _0xcc208c}from'../utils/common-translations.js';export default class Ct extends _0x3f2bf0{[_0x3060('0xc')](){const _0x3aee76=this[_0x3060('0x6')];if(!_0x3aee76[_0x3060('0x2')][_0x3060('0x5')]('Title'))return;const _0x177de1=_0x3aee76[_0x3060('0x2')]['get'](_0x3060('0x9'));_0x177de1['_descriptionFactory'][_0x3060('0xa')](_0x3060('0x14'),()=>_0xcc208c(_0x3aee76['locale'],_0x3060('0x15'))),_0x3aee76[_0x3060('0x19')][_0x3060('0x4')][_0x3060('0x16')](_0x1ab9ba=>{let _0x2ec484=!0x1;const _0x5e5fda=Array[_0x3060('0x11')](_0x3aee76[_0x3060('0x19')][_0x3060('0x4')][_0x3060('0x7')][_0x3060('0xd')]());for(const {name:_0x37d610,data:_0x4396d8}of _0x5e5fda){const {group:_0xc928ee}=_0x177de1[_0x3060('0x8')](_0x37d610);if(_0x3060('0x0')!==_0xc928ee||!_0x4396d8[_0x3060('0x1')])continue;const _0x1d5a2c=_0x4396d8[_0x3060('0x1')],_0x774f2d=_0x1d5a2c[_0x3060('0x13')]['nodeBefore'];if(!_0x774f2d||!_0x774f2d['is'](_0x3060('0xf'),'title-content'))continue;if(!_0x1d5a2c[_0x3060('0x1a')][_0x3060('0x12')](_0x1d5a2c[_0x3060('0x13')]))continue;const _0x145546=_0x3aee76[_0x3060('0x19')][_0x3060('0x3')][_0x3060('0x18')](_0x1d5a2c['end'],_0x3060('0xe'));if(_0x145546&&_0x145546[_0x3060('0x17')]){const _0x2574a0=_0x1ab9ba[_0x3060('0xb')](_0x1d5a2c['start'],_0x145546[_0x3060('0x1a')]);_0x2574a0[_0x3060('0x10')](_0x1d5a2c)||(_0x1ab9ba['updateMarker'](_0x37d610,{'range':_0x2574a0}),_0x2ec484=!0x0);}_0x2ec484||(_0x1ab9ba['removeMarker'](_0x37d610),_0x2ec484=!0x0);}return _0x2ec484;});}}
|
|
@@ -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/undo
|
|
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:undo/undo~Undo undo feature}.
|
|
11
11
|
*/
|
package/src/integrations/undo.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 _0x25a3=['undo','editor','UndoEditing','enableCommand','plugins','has','TrackChangesEditing','afterInit','get'];(function(_0x4673bb,_0x25a30a){const _0x784e22=function(_0x3b0108){while(--_0x3b0108){_0x4673bb['push'](_0x4673bb['shift']());}};_0x784e22(++_0x25a30a);}(_0x25a3,0x18c));const _0x784e=function(_0x4673bb,_0x25a30a){_0x4673bb=_0x4673bb-0x0;let _0x784e22=_0x25a3[_0x4673bb];return _0x784e22;};import{Plugin as _0x10cb31}from'ckeditor5/src/core.js';export default class Dt extends _0x10cb31{[_0x784e('0x7')](){const _0x40c14a=this[_0x784e('0x1')],_0x5aa6f7=_0x40c14a[_0x784e('0x4')][_0x784e('0x8')](_0x784e('0x6'));_0x40c14a['plugins'][_0x784e('0x5')](_0x784e('0x2'))&&(_0x5aa6f7[_0x784e('0x3')](_0x784e('0x0')),_0x5aa6f7['enableCommand']('redo'));}}
|
|
@@ -1,10 +1,10 @@
|
|
|
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 { Range, Model, Element, DowncastAddMarkerEvent } from 'ckeditor5/src/engine';
|
|
7
|
-
import type { GetCallback } from 'ckeditor5/src/utils';
|
|
5
|
+
import type { Editor } from 'ckeditor5/src/core.js';
|
|
6
|
+
import type { Range, Model, Element, DowncastAddMarkerEvent } from 'ckeditor5/src/engine.js';
|
|
7
|
+
import type { GetCallback } from 'ckeditor5/src/utils.js';
|
|
8
8
|
/**
|
|
9
9
|
* Searches given `range` and returns all sub-ranges containing items with given `attributeKey`.
|
|
10
10
|
*/
|
|
@@ -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 _0x2bbc=['ck-suggestion-marker-','nextSibling','model','type','markerRange','getWalker','elementEnd','listItem','consumable','isContent','mapper','activeMarkers','ck-suggestion-marker--active','addClass','getAttribute','test','bindElementToMarker','isLimit','item','writer','element','markerName','includes','schema','previousPosition','getCustomProperty','toViewElement','isAtEnd','span','getItems','addHighlight','plugins'];(function(_0x449372,_0x2bbccc){const _0x15a561=function(_0x5cfd32){while(--_0x5cfd32){_0x449372['push'](_0x449372['shift']());}};_0x15a561(++_0x2bbccc);}(_0x2bbc,0x184));const _0x15a5=function(_0x449372,_0x2bbccc){_0x449372=_0x449372-0x0;let _0x15a561=_0x2bbc[_0x449372];return _0x15a561;};export function getRangesWithAttribute(_0x5d3e53,_0xc1284b,_0x11f94f){const _0x1955cb=[];for(const _0x4dfbac of _0xc1284b[_0x15a5('0x19')]())_0x4dfbac['hasAttribute'](_0x5d3e53)&&_0x1955cb['push'](_0x11f94f['createRangeOn'](_0x4dfbac));return _0x1955cb;}export function getElementsAffectedByListItemRename(_0x3cb511){const _0x1b2cdb=[];if(_0x3cb511['is']('element',_0x15a5('0x3'))){let _0x3e295b=_0x3cb511['nextSibling'];for(;_0x3e295b&&_0x3e295b['is'](_0x15a5('0x10'),_0x15a5('0x3'))&&_0x3e295b[_0x15a5('0xa')]('listIndent')>0x0;)_0x1b2cdb['push'](_0x3e295b),_0x3e295b=_0x3e295b['nextSibling'];}return _0x1b2cdb;}export function downcastSplitMergeMarker(_0x512bd8,_0x20790b,{showActiveMarker:_0x14eab8=!0x0}={}){const _0x561ff0=_0x512bd8[_0x15a5('0x1b')]['get']('TrackChangesEditing');return(_0x5a8533,_0x205f7c,_0x51731a)=>{if(!_0x51731a[_0x15a5('0x4')][_0x15a5('0xb')](_0x205f7c[_0x15a5('0x0')],_0x5a8533['name']))return;const _0x5f2a9c=_0x205f7c[_0x15a5('0x0')][_0x15a5('0x1')](),_0x25b640=_0x205f7c[_0x15a5('0x0')]['start'],_0x114e3f=_0x512bd8[_0x15a5('0x1e')][_0x15a5('0x13')];let _0x39a6ec=null,_0x3f985c=null,_0x5e2191=!0x1,_0x108943=!0x1;for(const _0x102ce8 of _0x5f2a9c){const _0xb59ebc=_0x102ce8[_0x15a5('0xe')];_0x5e2191=_0x5e2191||_0x114e3f[_0x15a5('0x5')](_0xb59ebc);const _0x2ee16d=_0x51731a[_0x15a5('0x6')][_0x15a5('0x16')](_0xb59ebc);if(_0x2ee16d&&_0x2ee16d[_0x15a5('0x15')](_0x15a5('0x1a')))return;_0x15a5('0x2')==_0x102ce8[_0x15a5('0x1f')]&&(_0x114e3f['isBlock'](_0xb59ebc)&&!_0x114e3f[_0x15a5('0xd')](_0xb59ebc)&&(_0xb59ebc[_0x15a5('0x1d')]||_0x25b640[_0x15a5('0x17')]?_0x39a6ec&&_0x39a6ec['parent']==_0xb59ebc||(_0x39a6ec=_0xb59ebc,_0x36f874(_0x102ce8['previousPosition']),_0x108943=!0x0):_0x3f985c=_0x3f985c||_0x102ce8[_0x15a5('0x14')]));}function _0x36f874(_0x494c68){const _0x3b7cf4=_0x51731a[_0x15a5('0xf')]['createUIElement'](_0x15a5('0x18'),{'class':_0x15a5('0x1c')+_0x20790b}),_0x2eae48=_0x51731a[_0x15a5('0x6')]['toViewPosition'](_0x494c68);_0x14eab8&&_0x561ff0[_0x15a5('0x7')][_0x15a5('0x12')](_0x205f7c['markerName'])&&_0x51731a[_0x15a5('0xf')][_0x15a5('0x9')](_0x15a5('0x8'),_0x3b7cf4),_0x51731a['writer']['insert'](_0x2eae48,_0x3b7cf4),_0x51731a['mapper'][_0x15a5('0xc')](_0x3b7cf4,_0x205f7c[_0x15a5('0x11')]);}_0x5e2191||_0x108943||!_0x3f985c||_0x36f874(_0x3f985c);};}
|
package/src/suggestion.d.ts
CHANGED
|
@@ -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/suggestion
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Element, type Marker, type Model, type Range, type Item } from 'ckeditor5/src/engine';
|
|
10
|
-
import type { User } from 'ckeditor5-collaboration/src/collaboration-core';
|
|
9
|
+
import { Element, type Marker, type Model, type Range, type Item } from 'ckeditor5/src/engine.js';
|
|
10
|
+
import type { User } from 'ckeditor5-collaboration/src/collaboration-core.js';
|
|
11
11
|
import type { CommentThread } from '@ckeditor/ckeditor5-comments';
|
|
12
|
-
import type { FormatData, AttributeData } from './trackchangesediting';
|
|
12
|
+
import type { FormatData, AttributeData } from './trackchangesediting.js';
|
|
13
13
|
declare const Suggestion_base: {
|
|
14
|
-
new (): import("ckeditor5/src/utils").Observable;
|
|
15
|
-
prototype: import("ckeditor5/src/utils").Observable;
|
|
14
|
+
new (): import("ckeditor5/src/utils.js").Observable;
|
|
15
|
+
prototype: import("ckeditor5/src/utils.js").Observable;
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
18
18
|
* Represents a singular suggestion that is tracked by track changes plugin.
|
package/src/suggestion.js
CHANGED
|
@@ -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 _0x13e2=['subType','@external','setAttribute','from','isMultiRange','onAccept','getFirstRange','type','size','push','getContainedElement','removeMarkers','hasComments','get','commentThread','length','map','_markerNames','getRanges','author','end','suggestion:','delete','discard','previous','getItems','filter','accept','isIntersecting','decorate','change','onAttributesChange','removeMarker','nodeAfter','getMarkers','isIntersectingWithRange','_model','removeAttribute','getMarkerNames','next','getRange','getMultiRangeId','toJSON','createdAt','_onAttributesChange','start','_onDiscard','creator','getFirstMarker','getAllAdjacentSuggestions','authoredAt','addMarkerName','_onAccept','addRange','data','_isDataLoaded','split','substr','isExternal','set','attributes'];(function(_0x37e2b0,_0x13e28e){const _0x2e1eba=function(_0x2c9863){while(--_0x2c9863){_0x37e2b0['push'](_0x37e2b0['shift']());}};_0x2e1eba(++_0x13e28e);}(_0x13e2,0x14e));const _0x2e1e=function(_0x37e2b0,_0x13e28e){_0x37e2b0=_0x37e2b0-0x0;let _0x2e1eba=_0x13e2[_0x37e2b0];return _0x2e1eba;};import{Element as _0x1de794}from'ckeditor5/src/engine.js';import{ObservableMixin as _0x133bd2,uid as _0x14fa25}from'ckeditor5/src/utils.js';import{cloneDeep as _0x484429,isEqual as _0x19a1c4,set as _0x1f5ad8,unset as _0x51a7e4}from'lodash-es';export default class u extends _0x133bd2(){constructor(_0x25641c,_0x582a67){super(),this[_0x2e1e('0x1a')]=!0x1,this['id']=_0x582a67['id'],this[_0x2e1e('0x27')]=_0x582a67['type'],this['subType']=_0x582a67[_0x2e1e('0x20')]||null,this[_0x2e1e('0x33')]=_0x582a67[_0x2e1e('0x33')],this[_0x2e1e('0x12')]=_0x582a67[_0x2e1e('0x12')]||_0x582a67[_0x2e1e('0x33')],this[_0x2e1e('0x1d')]=Boolean(_0x582a67[_0x2e1e('0x1f')]&&_0x582a67[_0x2e1e('0x1f')][_0x2e1e('0x21')]),this[_0x2e1e('0x19')]=null,this[_0x2e1e('0x7')]=_0x25641c,this[_0x2e1e('0x17')]=_0x582a67[_0x2e1e('0x25')],this[_0x2e1e('0x11')]=_0x582a67['onDiscard'],this[_0x2e1e('0xf')]=_0x582a67[_0x2e1e('0x2')],this[_0x2e1e('0x31')]=new Set(),this[_0x2e1e('0xe')]=null,this[_0x2e1e('0x1e')](_0x2e1e('0x15'),null),this[_0x2e1e('0x1e')](_0x2e1e('0x1f'),_0x582a67['attributes']||{}),this[_0x2e1e('0x1e')](_0x2e1e('0x38'),null),this['set'](_0x2e1e('0xa'),null),this[_0x2e1e('0x1e')]('commentThread',null),this[_0x2e1e('0x1e')]('_saved',!0x1),this[_0x2e1e('0x0')](_0x2e1e('0x3b')),this[_0x2e1e('0x0')](_0x2e1e('0x37'));}get['head'](){let _0x31ad95=this;for(;_0x31ad95[_0x2e1e('0x38')];)_0x31ad95=_0x31ad95[_0x2e1e('0x38')];return _0x31ad95;}get[_0x2e1e('0x2c')](){return!!this[_0x2e1e('0x2e')]&&this[_0x2e1e('0x2e')][_0x2e1e('0x2f')]>0x0;}get[_0x2e1e('0x24')](){if(0x0==this[_0x2e1e('0x31')][_0x2e1e('0x28')])return!0x1;return 0x6==Array[_0x2e1e('0x23')](this[_0x2e1e('0x31')])[0x0][_0x2e1e('0x1b')](':')['length'];}get['isInContent'](){return null!==this[_0x2e1e('0x13')]();}[_0x2e1e('0x16')](_0x296d94){this['_markerNames']['add'](_0x296d94);}[_0x2e1e('0x9')](){return Array[_0x2e1e('0x23')](this[_0x2e1e('0x31')]);}[_0x2e1e('0x5')](){return this[_0x2e1e('0x9')]()[_0x2e1e('0x30')](_0x551cb6=>this[_0x2e1e('0x7')]['markers'][_0x2e1e('0x2d')](_0x551cb6))[_0x2e1e('0x3a')](_0x48dfb2=>_0x48dfb2);}[_0x2e1e('0x13')](){return this[_0x2e1e('0x5')]()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x46a657=>{for(const _0x16e73a of this['getMarkers']())_0x46a657[_0x2e1e('0x3')](_0x16e73a);}),this['_markerNames']['clear']();}[_0x2e1e('0x3')](_0x563e66){this['_model'][_0x2e1e('0x1')](_0x313774=>{_0x313774[_0x2e1e('0x3')](_0x563e66);}),this['_markerNames'][_0x2e1e('0x36')](_0x563e66);}[_0x2e1e('0x18')](_0x2ae487){const _0x53f080=_0x2e1e('0x35')+this[_0x2e1e('0x27')]+':'+this[_0x2e1e('0x20')]+':'+this['id']+':'+this[_0x2e1e('0x12')]['id']+':'+u[_0x2e1e('0xc')]();this[_0x2e1e('0x16')](_0x53f080),this[_0x2e1e('0x7')][_0x2e1e('0x1')](_0x2c0c5b=>{_0x2c0c5b['addMarker'](_0x53f080,{'range':_0x2ae487,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x2e1e('0x6')](_0x24c41c){for(const _0x58d882 of this['getRanges']())if(_0x58d882[_0x2e1e('0x3c')](_0x24c41c))return!0x0;return!0x1;}['getRanges'](){return this[_0x2e1e('0x5')]()[_0x2e1e('0x30')](_0x1af8d7=>_0x1af8d7['getRange']());}[_0x2e1e('0x39')](){return this['getRanges']()['reduce']((_0x2b47cc,_0x5f6011)=>[..._0x2b47cc,..._0x5f6011[_0x2e1e('0x39')]()],[]);}[_0x2e1e('0x26')](){var _0x13a06c;return(null===(_0x13a06c=this[_0x2e1e('0x13')]())||void 0x0===_0x13a06c?void 0x0:_0x13a06c[_0x2e1e('0xb')]())||null;}[_0x2e1e('0x2a')](){const _0x4e0a7b=this[_0x2e1e('0x32')]();if(0x1!=_0x4e0a7b[_0x2e1e('0x2f')])return null;const _0x5cf332=_0x4e0a7b[0x0],_0x5b8fcc=_0x5cf332[_0x2e1e('0x10')][_0x2e1e('0x4')],_0x2bbf42=_0x5cf332[_0x2e1e('0x34')]['nodeBefore'];return _0x5b8fcc instanceof _0x1de794?_0x5b8fcc!=_0x2bbf42?null:_0x5b8fcc:null;}[_0x2e1e('0x3b')](){this[_0x2e1e('0x17')](this['getRanges'](),this['data'],this[_0x2e1e('0x1f')]),this[_0x2e1e('0x2b')]();}[_0x2e1e('0x37')](){this['_onDiscard'](this[_0x2e1e('0x32')](),this[_0x2e1e('0x19')],this[_0x2e1e('0x1f')]),this[_0x2e1e('0x2b')]();}[_0x2e1e('0x14')](){const _0x38472b=[];let _0x2ccdac=this['head'];for(;_0x2ccdac;)_0x38472b[_0x2e1e('0x29')](_0x2ccdac),_0x2ccdac=_0x2ccdac[_0x2e1e('0xa')];return _0x38472b;}[_0x2e1e('0x22')](_0x28c0ff,_0x8f669f){const _0x366784=_0x484429(this[_0x2e1e('0x1f')]);_0x1f5ad8(_0x366784,_0x28c0ff,_0x8f669f),_0x19a1c4(_0x366784,this['attributes'])||(this['attributes']=_0x366784,this[_0x2e1e('0xf')](_0x366784));}[_0x2e1e('0x8')](_0x40df02){const _0x5e7767=_0x484429(this[_0x2e1e('0x1f')]);_0x51a7e4(_0x5e7767,_0x40df02),_0x19a1c4(_0x5e7767,this[_0x2e1e('0x1f')])||(this['attributes']=_0x5e7767,this[_0x2e1e('0xf')](this['attributes']));}[_0x2e1e('0xd')](){return{'id':this['id'],'type':this[_0x2e1e('0x20')]?this[_0x2e1e('0x27')]+':'+this[_0x2e1e('0x20')]:this[_0x2e1e('0x27')],'authorId':this[_0x2e1e('0x12')]['id'],'createdAt':this[_0x2e1e('0xe')],'hasComments':this['hasComments'],'data':this[_0x2e1e('0x19')],'attributes':this[_0x2e1e('0x1f')]};}static[_0x2e1e('0xc')](){return _0x14fa25()[_0x2e1e('0x1c')](0x1,0x5);}}
|
|
@@ -1,10 +1,10 @@
|
|
|
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 Locale, type PriorityString } from 'ckeditor5/src/utils';
|
|
6
|
-
import type { Schema, Element } from 'ckeditor5/src/engine';
|
|
7
|
-
import type Suggestion from './suggestion';
|
|
5
|
+
import { type Locale, type PriorityString } from 'ckeditor5/src/utils.js';
|
|
6
|
+
import type { Schema, Element } from 'ckeditor5/src/engine.js';
|
|
7
|
+
import type Suggestion from './suggestion.js';
|
|
8
8
|
/**
|
|
9
9
|
* Creates descriptions for suggestions and suggestions chains.
|
|
10
10
|
*
|