@ckeditor/ckeditor5-track-changes 40.2.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 +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/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 +1 -1
- 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 _0x4ab6=['accept','has','root','value','stop','push','selection','getCellLocation','getSuggestions','highest','splitTableCellHorizontally','_areSelectedCellsMergable','isInContent','registerDescriptionCallback','get','from','mergeTableCells','add','type','mergeTableCellLeft','forceDefaultExecution','getAncestors','subType','document','return','markMultiRangeBlockFormat','TrackChangesEditing','formatInline','_isForcedDefaultExecutionBlock','TableUtils','createRangeOn','direction','_areMergableCells','isEnabled','getFirstPosition','refresh','length','findAncestor','editor','containsRange','setSelection','registerCustomCallback','commandName','set:isEnabled','author','TableEditing','*Split\x20cell:*\x20vertically','table','format','createTableWalker','afterInit','rootName','enableCommand','getRanges','change','size','trackChanges','_acceptFormatSuggestionCallbackFactory','_suggestionFactory','tableCell','mergeTableCellUp','execute','*Split\x20cell:*\x20horizontally','plugins','element','low','map','commands','splitTableCellVertically','formatBlock','model','mergeTableCellDown','requires','$graveyard','insertion','cell','mergeTableCellRight','find','filter'];(function(_0x4293e0,_0x4ab6fb){const _0x542022=function(_0x1c26bf){while(--_0x1c26bf){_0x4293e0['push'](_0x4293e0['shift']());}};_0x542022(++_0x4ab6fb);}(_0x4ab6,0x17b));const _0x5420=function(_0x4293e0,_0x4ab6fb){_0x4293e0=_0x4293e0-0x0;let _0x542022=_0x4ab6[_0x4293e0];return _0x542022;};import{Plugin as _0xcd357a}from'ckeditor5/src/core.js';import _0x2a6ad3 from'./table.js';import{LiveRange as _0x51da94}from'ckeditor5/src/engine.js';import{getTranslation as _0x37bbf5}from'../utils/common-translations.js';export default class jt extends _0xcd357a{static get[_0x5420('0x9')](){return[_0x2a6ad3];}[_0x5420('0x42')](){const _0x2f68b8=this[_0x5420('0x36')],_0x29f373=_0x2f68b8['model'][_0x5420('0x27')][_0x5420('0x16')],_0x59c37d=_0x2f68b8['locale'];if(!_0x2f68b8[_0x5420('0x0')][_0x5420('0x11')](_0x5420('0x3d')))return;const _0xd08810=_0x2f68b8[_0x5420('0x0')]['get'](_0x5420('0x2a')),_0x5e363e=_0x2f68b8[_0x5420('0x0')]['get'](_0x5420('0x2d')),_0x2dd412=_0x2f68b8['plugins']['get'](_0x2a6ad3);_0x2dd412['_tablePostFixingSubtypes'][_0x5420('0x15')](_0x5420('0x20')),_0xd08810[_0x5420('0x44')](_0x5420('0x20'),()=>{const _0x4e0a47=_0x5e363e['getSelectionAffectedTableCells'](_0x2f68b8[_0x5420('0x7')][_0x5420('0x27')][_0x5420('0x16')]);_0x2f68b8[_0x5420('0x7')]['change'](()=>{_0xd08810[_0x5420('0x29')](_0x4e0a47,{'commandName':_0x5420('0x20'),'commandParams':[]},[],_0x5420('0x20'));});}),_0x2f68b8[_0x5420('0x4')][_0x5420('0x1e')](_0x5420('0x20'))['on'](_0x5420('0x4d'),(_0x245065,_0x186479)=>{_0x2f68b8[_0x5420('0x4')][_0x5420('0x1e')](_0x5420('0x48'))[_0x5420('0x13')]&&(_0x186479[_0x5420('0x34')]>0x0&&_0x186479[_0x186479[_0x5420('0x34')]-0x1]&&_0x186479[_0x186479[_0x5420('0x34')]-0x1][_0x5420('0x24')]||_0xd08810[_0x5420('0x2c')]||this['_areSelectedCellsMergable']()||_0x245065['stop']());},{'priority':_0x5420('0x19')});for(const _0x7cd28a of[_0x5420('0x4c'),_0x5420('0xd'),_0x5420('0x8'),_0x5420('0x23')]){const _0x3f2143=_0x2f68b8[_0x5420('0x4')][_0x5420('0x1e')](_0x7cd28a);_0xd08810[_0x5420('0x44')](_0x7cd28a,()=>{const _0x1b0cda=_0x2f68b8[_0x5420('0x7')][_0x5420('0x27')][_0x5420('0x16')][_0x5420('0x32')]()['getAncestors']()[_0x5420('0xe')](_0x283d75=>_0x283d75['is'](_0x5420('0x1'),_0x5420('0x4b'))),_0x29182a=_0x3f2143[_0x5420('0x13')];_0x2f68b8[_0x5420('0x7')][_0x5420('0x46')](()=>{_0xd08810[_0x5420('0x29')]([_0x1b0cda,_0x29182a],{'commandName':_0x5420('0x20'),'commandParams':[]},[],_0x5420('0x20'));});});}for(const _0x350a91 of[_0x5420('0x5'),_0x5420('0x1a')]){const _0x1a0aed=_0x2f68b8['commands'][_0x5420('0x1e')](_0x350a91);_0xd08810['enableCommand'](_0x350a91,()=>{const _0xbf5748=_0x5e363e['getSelectionAffectedTableCells'](_0x2f68b8['model']['document']['selection'])[0x0],_0x110d9c=_0xbf5748[_0x5420('0x35')](_0x5420('0x3f')),{column:_0x2faa69,row:_0x3fd9bf}=_0x5e363e[_0x5420('0x17')](_0xbf5748);let _0x548164=[];if('horizontally'==_0x1a0aed[_0x5420('0x2f')]){const _0x7fd782=_0x5e363e['createTableWalker'](_0x110d9c,{'startRow':_0x3fd9bf,'endRow':_0x3fd9bf,'includeAllSlots':!0x0});_0x548164=Array[_0x5420('0x1f')](_0x7fd782)[_0x5420('0x3')](_0x4202ca=>_0x4202ca[_0x5420('0xc')]);}else{const _0x3947ef=_0x5e363e[_0x5420('0x41')](_0x110d9c,{'column':_0x2faa69,'includeAllSlots':!0x0});_0x548164=Array[_0x5420('0x1f')](_0x3947ef)[_0x5420('0x3')](_0x19f93f=>_0x19f93f[_0x5420('0xc')]);}_0x2f68b8[_0x5420('0x7')][_0x5420('0x46')](_0x46a658=>{_0xd08810['markBlockFormat'](_0x46a658[_0x5420('0x2e')](_0xbf5748),{'commandName':_0x350a91,'commandParams':[]},_0x548164,_0x350a91);});});}_0xd08810['_descriptionFactory'][_0x5420('0x1d')](_0x11eec3=>{if(_0x5420('0x6')!=_0x11eec3['type']&&'formatInline'!=_0x11eec3[_0x5420('0x22')])return;const {data:_0x5b5a48}=_0x11eec3;return _0x5b5a48&&'mergeTableCells'==_0x5b5a48['commandName']?{'type':_0x5420('0x40'),'content':_0x37bbf5(_0x59c37d,'*Merge\x20cells*')}:void 0x0;}),_0xd08810['_descriptionFactory'][_0x5420('0x1d')](_0x4c20e0=>{if(_0x5420('0x6')!=_0x4c20e0[_0x5420('0x22')]&&_0x5420('0x2b')!=_0x4c20e0[_0x5420('0x22')])return;const {data:_0x3ce5f9}=_0x4c20e0;return _0x3ce5f9?_0x5420('0x5')==_0x3ce5f9[_0x5420('0x3a')]?{'type':_0x5420('0x40'),'content':_0x37bbf5(_0x59c37d,_0x5420('0x3e'))}:_0x5420('0x1a')==_0x3ce5f9[_0x5420('0x3a')]?{'type':_0x5420('0x40'),'content':_0x37bbf5(_0x59c37d,_0x5420('0x4e'))}:void 0x0:void 0x0;});const _0xf28b42=_0x2dd412[_0x5420('0x49')]();for(const _0x205f78 of[_0x5420('0x4c'),_0x5420('0xd'),_0x5420('0x8'),'mergeTableCellLeft'])_0xd08810[_0x5420('0x4a')][_0x5420('0x39')]('formatBlock',_0x205f78,_0x5420('0x10'),_0xf28b42);for(const _0x1670fa of['splitTableCellVertically',_0x5420('0x1a')])_0xd08810['_suggestionFactory'][_0x5420('0x39')](_0x5420('0x6'),_0x1670fa,'accept',_0xf28b42);_0xd08810['_suggestionFactory'][_0x5420('0x39')]('formatBlock','mergeTableCells',_0x5420('0x10'),_0x5a317a=>{_0x2f68b8['model']['change'](_0x483113=>{const _0x1d8f40=Array['from'](_0x29f373['getRanges']())[_0x5420('0x3')](_0x5be7cf=>_0x51da94['fromRange'](_0x5be7cf));_0x483113[_0x5420('0x38')](_0x5a317a),_0x2f68b8[_0x5420('0x4')][_0x5420('0x1e')](_0x5420('0x20'))[_0x5420('0x33')](),_0x2f68b8[_0x5420('0x4d')](_0x5420('0x20'),{'forceDefaultExecution':!0x0});const _0x268005=_0x1d8f40[_0x5420('0xf')](_0x3d2048=>_0x5420('0xa')!=_0x3d2048[_0x5420('0x12')][_0x5420('0x43')]);_0x268005[_0x5420('0x34')]>0x0&&_0x483113[_0x5420('0x38')](_0x268005);for(const _0x57214c of _0x1d8f40)_0x57214c['detach']();});});for(const _0x54f3dd of[_0x5420('0x4c'),_0x5420('0x8'),_0x5420('0x23'),_0x5420('0xd')]){const _0x35fece=_0x2f68b8[_0x5420('0x4')]['get'](_0x54f3dd);_0x35fece['on'](_0x5420('0x3b'),(_0x559f12,_0x37703f,_0xb9c5d4)=>{if(_0xb9c5d4){const _0x32db91=_0x2f68b8[_0x5420('0x7')][_0x5420('0x27')][_0x5420('0x16')][_0x5420('0x32')]()[_0x5420('0x25')]()[_0x5420('0xe')](_0xf57505=>_0xf57505['is'](_0x5420('0x1'),_0x5420('0x4b')));this['_areMergableCells'](_0x35fece['value'],_0x32db91)||(_0x559f12[_0x5420('0x28')]=!0x1,_0x559f12[_0x5420('0x14')]());}},{'priority':_0x5420('0x2')});}}[_0x5420('0x1b')](){const _0x57cf9f=this['editor'][_0x5420('0x4')]['get'](_0x5420('0x20')),_0x57641f=this[_0x5420('0x36')]['plugins'][_0x5420('0x1e')](_0x5420('0x2d'));if(!_0x57cf9f[_0x5420('0x31')])return!0x1;const _0x4ec621=_0x57641f['getSelectionAffectedTableCells'](this['editor'][_0x5420('0x7')][_0x5420('0x27')][_0x5420('0x16')]);for(const _0x1dc390 of _0x4ec621)for(const _0x59bbbf of _0x4ec621)if(_0x1dc390!=_0x59bbbf&&!this[_0x5420('0x30')](_0x1dc390,_0x59bbbf))return!0x1;return!0x0;}['_areMergableCells'](_0x5e72ea,_0x5ef81f){const _0x442e47=this[_0x5420('0x36')]['plugins'][_0x5420('0x1e')](_0x5420('0x2a')),_0xfc874e=this[_0x5420('0x36')][_0x5420('0x7')][_0x5420('0x2e')](_0x5e72ea),_0xbba729=this['editor'][_0x5420('0x7')][_0x5420('0x2e')](_0x5ef81f),_0x4deb1f=new Set(),_0x9ba758=new Set();for(const _0x202bf5 of _0x442e47[_0x5420('0x18')]())if((_0x5420('0xb')==_0x202bf5[_0x5420('0x22')]||'deletion'==_0x202bf5[_0x5420('0x22')]||_0x5420('0x20')==_0x202bf5[_0x5420('0x26')])&&_0x202bf5[_0x5420('0x1c')])for(const _0x194eba of _0x202bf5[_0x5420('0x45')]())_0x194eba[_0x5420('0x37')](_0xfc874e,!0x0)&&_0x4deb1f['add'](_0x202bf5[_0x5420('0x22')]+':'+_0x202bf5['author']['id']),_0x194eba[_0x5420('0x37')](_0xbba729,!0x0)&&_0x9ba758[_0x5420('0x21')](_0x202bf5[_0x5420('0x22')]+':'+_0x202bf5[_0x5420('0x3c')]['id']);if(_0x4deb1f[_0x5420('0x47')]!=_0x9ba758[_0x5420('0x47')])return!0x1;for(const _0xac5858 of _0x4deb1f)if(!_0x9ba758[_0x5420('0x11')](_0xac5858))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 _0x51fa=['TrackChangesEditing','get','ELEMENT_TABLE_OF_CONTENTS','afterInit','tableOfContents','plugins','commands','locale','enableCommand'];(function(_0x371b40,_0x51fa7c){const _0x21fde1=function(_0x43e381){while(--_0x43e381){_0x371b40['push'](_0x371b40['shift']());}};_0x21fde1(++_0x51fa7c);}(_0x51fa,0x14b));const _0x21fd=function(_0x371b40,_0x51fa7c){_0x371b40=_0x371b40-0x0;let _0x21fde1=_0x51fa[_0x371b40];return _0x21fde1;};import{Plugin as _0x48ffbb}from'ckeditor5/src/core.js';import{getTranslation as _0x6ed679}from'../utils/common-translations.js';export default class _t extends _0x48ffbb{[_0x21fd('0x5')](){const _0x1c9263=this['editor'];if(!_0x1c9263[_0x21fd('0x8')][_0x21fd('0x3')]('insertTableOfContents'))return;_0x1c9263[_0x21fd('0x7')][_0x21fd('0x3')](_0x21fd('0x2'))[_0x21fd('0x1')]('insertTableOfContents');const _0x4bda96=_0x1c9263[_0x21fd('0x7')][_0x21fd('0x3')](_0x21fd('0x2')),_0x286535=_0x1c9263[_0x21fd('0x0')];_0x4bda96['_descriptionFactory']['registerElementLabel'](_0x21fd('0x6'),_0x177427=>_0x6ed679(_0x286535,_0x21fd('0x4'),_0x177427));}}
|
|
@@ -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 _0x53e8=['batch','tableBorderStyle','data','TableUtils','discard','markBlockFormat','tableProperties','TrackChangesTableProperties','model','getSuggestions','removeAttribute','subType','tableCellHorizontalAlignment','tableCellBorderColor','formatBlock','_suggestionFactory','tableCellBorderWidth','tableAlignment','locale','selection','TablePropertiesEditing','tableCellVerticalAlignment','handleSuggestionDescription','enableCommand','tableBackgroundColor','tableBorderColor','accept','getFirstPosition','has','document','_descriptionFactory','getSuggestionCallback','tableHeight','format','_handlePropertyChange','tableBorderWidth','registerCustomCallback','enqueueChange','getAttribute','get','handleDiscardAction','TrackChangesEditing','join','tableCellBackgroundColor','plugins','registerDescriptionCallback','TableCellPropertiesEditing','table','tableCellProperties','tableWidth','tableCellBorderStyle','change','editor','tableCellHeight','getSelectionAffectedTableCells','nodeAfter','_getSuggestion'];(function(_0x54233e,_0x53e89c){const _0x30deed=function(_0x792968){while(--_0x792968){_0x54233e['push'](_0x54233e['shift']());}};_0x30deed(++_0x53e89c);}(_0x53e8,0x1c5));const _0x30de=function(_0x54233e,_0x53e89c){_0x54233e=_0x54233e-0x0;let _0x30deed=_0x53e8[_0x54233e];return _0x30deed;};import{Plugin as _0x7c4d1}from'ckeditor5/src/core.js';import{getTranslation as _0x15b1e3}from'../utils/common-translations.js';export default class Mt extends _0x7c4d1{constructor(_0x206e96){super(_0x206e96),this[_0x30de('0x9')]=[_0x30de('0x1c'),_0x30de('0x4'),_0x30de('0x26'),_0x30de('0x14'),_0x30de('0x34'),_0x30de('0x23'),_0x30de('0x1b')],this[_0x30de('0x33')]=[_0x30de('0x10'),_0x30de('0x35'),_0x30de('0x13'),'tableCellPadding','tableCellWidth',_0x30de('0x38'),_0x30de('0x2e'),_0x30de('0xf'),_0x30de('0x18')];}static get['pluginName'](){return _0x30de('0xa');}['afterInit'](){const _0x4eccb4=this[_0x30de('0x37')]['plugins'][_0x30de('0x2a')](_0x30de('0x2c'));if(this[_0x30de('0x37')][_0x30de('0x2f')][_0x30de('0x1f')](_0x30de('0x17'))){for(const _0x472752 of this['tableProperties'])_0x4eccb4[_0x30de('0x1a')](_0x472752,(_0x57d5e6,_0x2c2b48)=>{const _0x539c76=this['editor']['model'][_0x30de('0x20')][_0x30de('0x16')][_0x30de('0x1e')]()['findAncestor'](_0x30de('0x32'));this['_handlePropertyChange'](_0x472752,[_0x539c76],this[_0x30de('0x9')],_0x30de('0x9'),_0x57d5e6,_0x2c2b48);});_0x4eccb4[_0x30de('0x12')][_0x30de('0x27')]('formatBlock','tableProperties','accept',_0x4eccb4[_0x30de('0x12')][_0x30de('0x22')](_0x30de('0x11'),null,'discard')),_0x4eccb4[_0x30de('0x12')][_0x30de('0x27')](_0x30de('0x11'),_0x30de('0x9'),_0x30de('0x7'),(_0x595466,_0x1f3109)=>this[_0x30de('0x2b')](this[_0x30de('0x9')],_0x595466,_0x1f3109)),_0x4eccb4['_suggestionFactory'][_0x30de('0x27')](_0x30de('0x11'),_0x30de('0x9'),_0x30de('0x2d'),()=>!0x1);}if(this[_0x30de('0x37')][_0x30de('0x2f')][_0x30de('0x1f')](_0x30de('0x31'))){for(const _0x6db6e9 of this[_0x30de('0x33')])_0x4eccb4[_0x30de('0x1a')](_0x6db6e9,(_0x1ce5a3,_0x5ce7e3)=>{const _0xad576=this[_0x30de('0x37')]['plugins'][_0x30de('0x2a')](_0x30de('0x6'))[_0x30de('0x0')](this[_0x30de('0x37')][_0x30de('0xb')]['document'][_0x30de('0x16')]);this['_handlePropertyChange'](_0x6db6e9,_0xad576,this[_0x30de('0x33')],'tableCellProperties',_0x1ce5a3,_0x5ce7e3);});_0x4eccb4['_suggestionFactory'][_0x30de('0x27')](_0x30de('0x11'),'tableCellProperties',_0x30de('0x1d'),_0x4eccb4[_0x30de('0x12')][_0x30de('0x22')](_0x30de('0x11'),null,'discard')),_0x4eccb4['_suggestionFactory']['registerCustomCallback'](_0x30de('0x11'),_0x30de('0x33'),_0x30de('0x7'),(_0x3b88b9,_0xd6a6b)=>this[_0x30de('0x2b')](this[_0x30de('0x33')],_0x3b88b9,_0xd6a6b)),_0x4eccb4['_suggestionFactory'][_0x30de('0x27')](_0x30de('0x11'),'tableCellProperties',_0x30de('0x2d'),()=>!0x1);}_0x4eccb4[_0x30de('0x21')][_0x30de('0x30')](_0x181ace=>this[_0x30de('0x19')](_0x181ace));}[_0x30de('0x25')](_0x3c606b,_0x26bf62,_0x2f2f46,_0x57e9d8,_0x781d71,_0x17f13e){const _0x48fbc9=this[_0x30de('0x37')][_0x30de('0x2f')][_0x30de('0x2a')]('TrackChangesEditing');this[_0x30de('0x37')][_0x30de('0xb')][_0x30de('0x28')](_0x17f13e[_0x30de('0x3')],()=>{for(const _0x1ac0d9 of _0x26bf62){if(this[_0x30de('0x2')](_0x1ac0d9,_0x57e9d8))_0x781d71(_0x17f13e);else{const _0x185704={};for(const _0x3c6a53 of _0x2f2f46){const _0x5970a2=_0x1ac0d9[_0x30de('0x29')](_0x3c6a53);void 0x0!==_0x5970a2&&(_0x185704[_0x3c6a53]=_0x5970a2);}_0x781d71(_0x17f13e),_0x48fbc9[_0x30de('0x8')](_0x1ac0d9,{'commandParams':[_0x185704]},[],_0x57e9d8);}}});}[_0x30de('0x2b')](_0x48d9e1,_0xb56787,_0x253c3b){const _0x582e50=_0xb56787[0x0]['start'][_0x30de('0x1')],_0x3ece75=_0x253c3b['commandParams'][0x0];this[_0x30de('0x37')][_0x30de('0xb')][_0x30de('0x36')](_0x4e830e=>{for(const _0x4bdd34 of _0x48d9e1)void 0x0!==_0x3ece75[_0x4bdd34]?_0x4e830e['setAttribute'](_0x4bdd34,_0x3ece75[_0x4bdd34],_0x582e50):_0x4e830e[_0x30de('0xd')](_0x4bdd34,_0x582e50);});}[_0x30de('0x19')](_0x51b2c8){if(_0x51b2c8[_0x30de('0x5')])switch(_0x51b2c8['subType']){case _0x30de('0x9'):return{'type':_0x30de('0x24'),'content':_0x15b1e3(this[_0x30de('0x37')][_0x30de('0x15')],'*Format:*\x20change\x20table\x20properties')};case _0x30de('0x33'):return{'type':_0x30de('0x24'),'content':_0x15b1e3(this['editor'][_0x30de('0x15')],'*Format:*\x20change\x20table\x20cell\x20properties')};}}[_0x30de('0x2')](_0xd03983,_0x5315e1){const _0x2c1c99=this[_0x30de('0x37')]['plugins'][_0x30de('0x2a')]('TrackChangesEditing');for(const _0x29bc55 of _0x2c1c99[_0x30de('0xc')]({'skipNotAttached':!0x0})){const _0x30b335=_0x29bc55['getContainedElement']();if(_0x29bc55[_0x30de('0xe')]===_0x5315e1&&_0x30b335===_0xd03983)return _0x29bc55;}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 _0x54fa=['afterInit','get','plugins','has','editor','Template'];(function(_0x5b7bb1,_0x54fafb){const _0x113b80=function(_0x9e9efd){while(--_0x9e9efd){_0x5b7bb1['push'](_0x5b7bb1['shift']());}};_0x113b80(++_0x54fafb);}(_0x54fa,0x1e4));const _0x113b=function(_0x5b7bb1,_0x54fafb){_0x5b7bb1=_0x5b7bb1-0x0;let _0x113b80=_0x54fa[_0x5b7bb1];return _0x113b80;};import{Plugin as _0x7f8292}from'ckeditor5/src/core.js';export default class vt extends _0x7f8292{[_0x113b('0x2')](){const _0x15e7b2=this[_0x113b('0x0')];_0x15e7b2[_0x113b('0x4')][_0x113b('0x5')](_0x113b('0x1'))&&_0x15e7b2[_0x113b('0x4')][_0x113b('0x3')]('TrackChangesEditing')['enableCommand']('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 _0x3dcb=['suggestion','isTouching','isEqual','registerElementLabel','Title','forward','createRange','_descriptionFactory','newRange','plugins','getChangedMarkers','document','has','schema','get','end','nodeBefore','differ','title-content','element','getNearestSelectionRange','afterInit','removeMarker','model','_splitMarkerName','TrackChangesEditing','start','locale'];(function(_0xea42d9,_0x3dcbba){const _0x2031f0=function(_0x14f68e){while(--_0x14f68e){_0xea42d9['push'](_0xea42d9['shift']());}};_0x2031f0(++_0x3dcbba);}(_0x3dcb,0xa1));const _0x2031=function(_0xea42d9,_0x3dcbba){_0xea42d9=_0xea42d9-0x0;let _0x2031f0=_0x3dcb[_0xea42d9];return _0x2031f0;};import{Plugin as _0x39b15b}from'ckeditor5/src/core.js';import{getTranslation as _0x2be51b}from'../utils/common-translations.js';export default class Ct extends _0x39b15b{[_0x2031('0x0')](){const _0x329aaf=this['editor'];if(!_0x329aaf[_0x2031('0x10')][_0x2031('0x13')](_0x2031('0xb')))return;const _0x642d45=_0x329aaf['plugins'][_0x2031('0x15')](_0x2031('0x4'));_0x642d45[_0x2031('0xe')][_0x2031('0xa')](_0x2031('0x19'),()=>_0x2be51b(_0x329aaf[_0x2031('0x6')],'ELEMENT_TITLE')),_0x329aaf[_0x2031('0x2')][_0x2031('0x12')]['registerPostFixer'](_0x1c3e69=>{let _0x1d2f8d=!0x1;const _0x287aee=Array['from'](_0x329aaf[_0x2031('0x2')][_0x2031('0x12')][_0x2031('0x18')][_0x2031('0x11')]());for(const {name:_0x19bd99,data:_0x4528bf}of _0x287aee){const {group:_0x4a26cd}=_0x642d45[_0x2031('0x3')](_0x19bd99);if(_0x2031('0x7')!==_0x4a26cd||!_0x4528bf[_0x2031('0xf')])continue;const _0x47c47a=_0x4528bf[_0x2031('0xf')],_0x472678=_0x47c47a['end'][_0x2031('0x17')];if(!_0x472678||!_0x472678['is'](_0x2031('0x1a'),_0x2031('0x19')))continue;if(!_0x47c47a[_0x2031('0x5')][_0x2031('0x8')](_0x47c47a['end']))continue;const _0x25809b=_0x329aaf[_0x2031('0x2')][_0x2031('0x14')][_0x2031('0x1b')](_0x47c47a[_0x2031('0x16')],_0x2031('0xc'));if(_0x25809b&&_0x25809b['isCollapsed']){const _0x3b33bf=_0x1c3e69[_0x2031('0xd')](_0x47c47a[_0x2031('0x5')],_0x25809b[_0x2031('0x5')]);_0x3b33bf[_0x2031('0x9')](_0x47c47a)||(_0x1c3e69['updateMarker'](_0x19bd99,{'range':_0x3b33bf}),_0x1d2f8d=!0x0);}_0x1d2f8d||(_0x1c3e69[_0x2031('0x1')](_0x19bd99),_0x1d2f8d=!0x0);}return _0x1d2f8d;});}}
|
|
@@ -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 _0x193a=['plugins','undo','has','TrackChangesEditing','afterInit','UndoEditing','enableCommand'];(function(_0x3035ab,_0x193a04){const _0x4eb303=function(_0x598a76){while(--_0x598a76){_0x3035ab['push'](_0x3035ab['shift']());}};_0x4eb303(++_0x193a04);}(_0x193a,0x12e));const _0x4eb3=function(_0x3035ab,_0x193a04){_0x3035ab=_0x3035ab-0x0;let _0x4eb303=_0x193a[_0x3035ab];return _0x4eb303;};import{Plugin as _0x284d83}from'ckeditor5/src/core.js';export default class Dt extends _0x284d83{[_0x4eb3('0x3')](){const _0x16e1e1=this['editor'],_0x2e4615=_0x16e1e1[_0x4eb3('0x6')]['get'](_0x4eb3('0x2'));_0x16e1e1[_0x4eb3('0x6')][_0x4eb3('0x1')](_0x4eb3('0x4'))&&(_0x2e4615[_0x4eb3('0x5')](_0x4eb3('0x0')),_0x2e4615[_0x4eb3('0x5')]('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 _0x3ebe=['mapper','start','createUIElement','getAttribute','bindElementToMarker','previousPosition','getCustomProperty','activeMarkers','isContent','schema','parent','span','markerName','isLimit','ck-suggestion-marker-','TrackChangesEditing','test','push','addHighlight','isAtEnd','hasAttribute','writer','element','name','model','nextSibling','toViewElement','isBlock','markerRange','item','addClass','type','getItems','toViewPosition'];(function(_0xc9957d,_0x3ebe7d){const _0x906b8a=function(_0x18949c){while(--_0x18949c){_0xc9957d['push'](_0xc9957d['shift']());}};_0x906b8a(++_0x3ebe7d);}(_0x3ebe,0x98));const _0x906b=function(_0xc9957d,_0x3ebe7d){_0xc9957d=_0xc9957d-0x0;let _0x906b8a=_0x3ebe[_0xc9957d];return _0x906b8a;};export function getRangesWithAttribute(_0x2ce837,_0x452b25,_0x53483e){const _0x111c7e=[];for(const _0x40fd7d of _0x452b25[_0x906b('0x10')]())_0x40fd7d[_0x906b('0x4')](_0x2ce837)&&_0x111c7e[_0x906b('0x1')](_0x53483e['createRangeOn'](_0x40fd7d));return _0x111c7e;}export function getElementsAffectedByListItemRename(_0x131b9b){const _0x5e02a8=[];if(_0x131b9b['is']('element','listItem')){let _0x4af635=_0x131b9b['nextSibling'];for(;_0x4af635&&_0x4af635['is'](_0x906b('0x6'),'listItem')&&_0x4af635[_0x906b('0x15')]('listIndent')>0x0;)_0x5e02a8[_0x906b('0x1')](_0x4af635),_0x4af635=_0x4af635['nextSibling'];}return _0x5e02a8;}export function downcastSplitMergeMarker(_0x4dd5a5,_0x2e8ee3,{showActiveMarker:_0x501737=!0x0}={}){const _0x1d8033=_0x4dd5a5['plugins']['get'](_0x906b('0x21'));return(_0x49e33d,_0x2c3653,_0x42008a)=>{if(!_0x42008a['consumable'][_0x906b('0x0')](_0x2c3653[_0x906b('0xc')],_0x49e33d[_0x906b('0x7')]))return;const _0x9da01=_0x2c3653[_0x906b('0xc')]['getWalker'](),_0x1fa20f=_0x2c3653[_0x906b('0xc')][_0x906b('0x13')],_0x4ff966=_0x4dd5a5[_0x906b('0x8')][_0x906b('0x1b')];let _0x523d7d=null,_0x1e632f=null,_0x3b0204=!0x1,_0x351fa4=!0x1;for(const _0x494eeb of _0x9da01){const _0x6ab9d8=_0x494eeb[_0x906b('0xd')];_0x3b0204=_0x3b0204||_0x4ff966[_0x906b('0x1a')](_0x6ab9d8);const _0x302b2b=_0x42008a['mapper'][_0x906b('0xa')](_0x6ab9d8);if(_0x302b2b&&_0x302b2b[_0x906b('0x18')](_0x906b('0x2')))return;'elementEnd'==_0x494eeb[_0x906b('0xf')]&&(_0x4ff966[_0x906b('0xb')](_0x6ab9d8)&&!_0x4ff966[_0x906b('0x1f')](_0x6ab9d8)&&(_0x6ab9d8[_0x906b('0x9')]||_0x1fa20f[_0x906b('0x3')]?_0x523d7d&&_0x523d7d[_0x906b('0x1c')]==_0x6ab9d8||(_0x523d7d=_0x6ab9d8,_0x23d8c2(_0x494eeb[_0x906b('0x17')]),_0x351fa4=!0x0):_0x1e632f=_0x1e632f||_0x494eeb['previousPosition']));}function _0x23d8c2(_0x26908d){const _0x44f1bd=_0x42008a[_0x906b('0x5')][_0x906b('0x14')](_0x906b('0x1d'),{'class':_0x906b('0x20')+_0x2e8ee3}),_0x30817a=_0x42008a[_0x906b('0x12')][_0x906b('0x11')](_0x26908d);_0x501737&&_0x1d8033[_0x906b('0x19')]['includes'](_0x2c3653['markerName'])&&_0x42008a[_0x906b('0x5')][_0x906b('0xe')]('ck-suggestion-marker--active',_0x44f1bd),_0x42008a[_0x906b('0x5')]['insert'](_0x30817a,_0x44f1bd),_0x42008a[_0x906b('0x12')][_0x906b('0x16')](_0x44f1bd,_0x2c3653[_0x906b('0x1e')]);}_0x3b0204||_0x351fa4||!_0x1e632f||_0x23d8c2(_0x1e632f);};}
|
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 _0x1bf6=['discard','delete','commentThread','getItems','getMultiRangeId','createdAt','getAllAdjacentSuggestions','split','isIntersecting','reduce','head','authoredAt','map','accept','previous','isInContent','getMarkerNames','author','removeAttribute','get','getRanges','removeMarkers','_onDiscard','getFirstMarker','type','end','size','onDiscard','creator','removeMarker','change','setAttribute','onAttributesChange','_model','_isDataLoaded','add','@external','getContainedElement','getMarkers','nodeBefore','isIntersectingWithRange','isMultiRange','clear','attributes','addRange','push','getRange','hasComments','set','from','addMarkerName','_markerNames','subType','_onAccept','_onAttributesChange','next','getFirstRange','length','markers','decorate','data','start'];(function(_0xf4c501,_0x1bf6e0){const _0x5a2983=function(_0x5a3b7c){while(--_0x5a3b7c){_0xf4c501['push'](_0xf4c501['shift']());}};_0x5a2983(++_0x1bf6e0);}(_0x1bf6,0xa4));const _0x5a29=function(_0xf4c501,_0x1bf6e0){_0xf4c501=_0xf4c501-0x0;let _0x5a2983=_0x1bf6[_0xf4c501];return _0x5a2983;};import{Element as _0x12eb54}from'ckeditor5/src/engine.js';import{ObservableMixin as _0x4f71fa,uid as _0xae8884}from'ckeditor5/src/utils.js';import{cloneDeep as _0x1a81fa,isEqual as _0x2d81e9,set as _0x1b22bf,unset as _0x20b699}from'lodash-es';export default class u extends _0x4f71fa(){constructor(_0x28bbcd,_0x5473b6){super(),this[_0x5a29('0x38')]=!0x1,this['id']=_0x5473b6['id'],this[_0x5a29('0x2e')]=_0x5473b6[_0x5a29('0x2e')],this[_0x5a29('0xc')]=_0x5473b6[_0x5a29('0xc')]||null,this['author']=_0x5473b6[_0x5a29('0x27')],this[_0x5a29('0x32')]=_0x5473b6[_0x5a29('0x32')]||_0x5473b6['author'],this['isExternal']=Boolean(_0x5473b6[_0x5a29('0x3')]&&_0x5473b6[_0x5a29('0x3')][_0x5a29('0x3a')]),this[_0x5a29('0x14')]=null,this[_0x5a29('0x37')]=_0x28bbcd,this[_0x5a29('0xd')]=_0x5473b6['onAccept'],this[_0x5a29('0x2c')]=_0x5473b6[_0x5a29('0x31')],this[_0x5a29('0xe')]=_0x5473b6[_0x5a29('0x36')],this['_markerNames']=new Set(),this[_0x5a29('0x1b')]=null,this['set'](_0x5a29('0x21'),null),this[_0x5a29('0x8')]('attributes',_0x5473b6[_0x5a29('0x3')]||{}),this[_0x5a29('0x8')](_0x5a29('0x24'),null),this[_0x5a29('0x8')](_0x5a29('0xf'),null),this[_0x5a29('0x8')](_0x5a29('0x18'),null),this['set']('_saved',!0x1),this['decorate'](_0x5a29('0x23')),this[_0x5a29('0x13')](_0x5a29('0x16'));}get[_0x5a29('0x20')](){let _0x3b2ba6=this;for(;_0x3b2ba6[_0x5a29('0x24')];)_0x3b2ba6=_0x3b2ba6['previous'];return _0x3b2ba6;}get['hasComments'](){return!!this['commentThread']&&this[_0x5a29('0x18')]['length']>0x0;}get[_0x5a29('0x1')](){if(0x0==this['_markerNames'][_0x5a29('0x30')])return!0x1;return 0x6==Array[_0x5a29('0x9')](this[_0x5a29('0xb')])[0x0][_0x5a29('0x1d')](':')[_0x5a29('0x11')];}get[_0x5a29('0x25')](){return null!==this[_0x5a29('0x2d')]();}['addMarkerName'](_0x4769e8){this[_0x5a29('0xb')][_0x5a29('0x39')](_0x4769e8);}[_0x5a29('0x26')](){return Array[_0x5a29('0x9')](this[_0x5a29('0xb')]);}[_0x5a29('0x3c')](){return this['getMarkerNames']()[_0x5a29('0x22')](_0x35ef9b=>this[_0x5a29('0x37')][_0x5a29('0x12')][_0x5a29('0x29')](_0x35ef9b))['filter'](_0x461a39=>_0x461a39);}[_0x5a29('0x2d')](){return this[_0x5a29('0x3c')]()[0x0]||null;}[_0x5a29('0x2b')](){this[_0x5a29('0x37')][_0x5a29('0x34')](_0x5bc783=>{for(const _0x1a3813 of this[_0x5a29('0x3c')]())_0x5bc783['removeMarker'](_0x1a3813);}),this[_0x5a29('0xb')][_0x5a29('0x2')]();}['removeMarker'](_0x67a56d){this[_0x5a29('0x37')][_0x5a29('0x34')](_0x32d381=>{_0x32d381[_0x5a29('0x33')](_0x67a56d);}),this['_markerNames'][_0x5a29('0x17')](_0x67a56d);}[_0x5a29('0x4')](_0x32294f){const _0x17b29f='suggestion:'+this[_0x5a29('0x2e')]+':'+this[_0x5a29('0xc')]+':'+this['id']+':'+this[_0x5a29('0x32')]['id']+':'+u[_0x5a29('0x1a')]();this[_0x5a29('0xa')](_0x17b29f),this['_model'][_0x5a29('0x34')](_0x297497=>{_0x297497['addMarker'](_0x17b29f,{'range':_0x32294f,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x5a29('0x0')](_0x8bd95d){for(const _0x8a51c2 of this[_0x5a29('0x2a')]())if(_0x8a51c2[_0x5a29('0x1e')](_0x8bd95d))return!0x0;return!0x1;}['getRanges'](){return this[_0x5a29('0x3c')]()[_0x5a29('0x22')](_0x4e315c=>_0x4e315c[_0x5a29('0x6')]());}[_0x5a29('0x19')](){return this[_0x5a29('0x2a')]()[_0x5a29('0x1f')]((_0xe973df,_0x14046b)=>[..._0xe973df,..._0x14046b[_0x5a29('0x19')]()],[]);}[_0x5a29('0x10')](){var _0x53dbe3;return(null===(_0x53dbe3=this[_0x5a29('0x2d')]())||void 0x0===_0x53dbe3?void 0x0:_0x53dbe3[_0x5a29('0x6')]())||null;}[_0x5a29('0x3b')](){const _0x2361eb=this[_0x5a29('0x2a')]();if(0x1!=_0x2361eb[_0x5a29('0x11')])return null;const _0x4e5a65=_0x2361eb[0x0],_0x233474=_0x4e5a65[_0x5a29('0x15')]['nodeAfter'],_0x19e155=_0x4e5a65[_0x5a29('0x2f')][_0x5a29('0x3d')];return _0x233474 instanceof _0x12eb54?_0x233474!=_0x19e155?null:_0x233474:null;}[_0x5a29('0x23')](){this['_onAccept'](this[_0x5a29('0x2a')](),this['data'],this['attributes']),this[_0x5a29('0x2b')]();}[_0x5a29('0x16')](){this[_0x5a29('0x2c')](this[_0x5a29('0x2a')](),this['data'],this[_0x5a29('0x3')]),this[_0x5a29('0x2b')]();}[_0x5a29('0x1c')](){const _0x2e49c2=[];let _0x253201=this[_0x5a29('0x20')];for(;_0x253201;)_0x2e49c2[_0x5a29('0x5')](_0x253201),_0x253201=_0x253201[_0x5a29('0xf')];return _0x2e49c2;}[_0x5a29('0x35')](_0x116b7a,_0x2a3081){const _0x538384=_0x1a81fa(this['attributes']);_0x1b22bf(_0x538384,_0x116b7a,_0x2a3081),_0x2d81e9(_0x538384,this[_0x5a29('0x3')])||(this[_0x5a29('0x3')]=_0x538384,this[_0x5a29('0xe')](_0x538384));}[_0x5a29('0x28')](_0x1e7977){const _0x3f2da8=_0x1a81fa(this[_0x5a29('0x3')]);_0x20b699(_0x3f2da8,_0x1e7977),_0x2d81e9(_0x3f2da8,this[_0x5a29('0x3')])||(this['attributes']=_0x3f2da8,this['_onAttributesChange'](this[_0x5a29('0x3')]));}['toJSON'](){return{'id':this['id'],'type':this[_0x5a29('0xc')]?this[_0x5a29('0x2e')]+':'+this[_0x5a29('0xc')]:this['type'],'authorId':this[_0x5a29('0x32')]['id'],'createdAt':this['createdAt'],'hasComments':this[_0x5a29('0x7')],'data':this[_0x5a29('0x14')],'attributes':this[_0x5a29('0x3')]};}static[_0x5a29('0x1a')](){return _0xae8884()['substr'](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
|
*
|