@ckeditor/ckeditor5-track-changes 39.0.2 → 40.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.
Files changed (136) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +1 -1
  3. package/build/track-changes.js +1 -1
  4. package/package.json +3 -3
  5. package/src/augmentation.d.ts +40 -40
  6. package/src/commands/acceptsuggestioncommand.d.ts +24 -24
  7. package/src/commands/acceptsuggestioncommand.js +1 -1
  8. package/src/commands/discardsuggestioncommand.d.ts +24 -24
  9. package/src/commands/discardsuggestioncommand.js +1 -1
  10. package/src/commands/executeonallsuggestionscommand.d.ts +24 -24
  11. package/src/commands/executeonallsuggestionscommand.js +1 -1
  12. package/src/commands/executeonselectedsuggestionscommand.d.ts +24 -24
  13. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  14. package/src/commands/trackchangescommand.d.ts +26 -26
  15. package/src/commands/trackchangescommand.js +1 -1
  16. package/src/index.d.ts +16 -16
  17. package/src/integrations/aiassistant.d.ts +17 -0
  18. package/src/integrations/aiassistant.js +23 -0
  19. package/src/integrations/alignment.d.ts +17 -17
  20. package/src/integrations/alignment.js +1 -1
  21. package/src/integrations/basicstyles.d.ts +17 -17
  22. package/src/integrations/basicstyles.js +1 -1
  23. package/src/integrations/blockquote.d.ts +17 -17
  24. package/src/integrations/blockquote.js +1 -1
  25. package/src/integrations/ckbox.d.ts +17 -17
  26. package/src/integrations/ckbox.js +1 -1
  27. package/src/integrations/codeblock.d.ts +17 -17
  28. package/src/integrations/codeblock.js +1 -1
  29. package/src/integrations/comments.d.ts +14 -14
  30. package/src/integrations/comments.js +1 -1
  31. package/src/integrations/deletecommand.d.ts +17 -17
  32. package/src/integrations/deletecommand.js +1 -1
  33. package/src/integrations/documentlist.d.ts +17 -17
  34. package/src/integrations/documentlist.js +1 -1
  35. package/src/integrations/documentlistproperties.d.ts +29 -29
  36. package/src/integrations/documentlistproperties.js +1 -1
  37. package/src/integrations/entercommand.d.ts +16 -16
  38. package/src/integrations/entercommand.js +1 -1
  39. package/src/integrations/findandreplace.d.ts +21 -21
  40. package/src/integrations/findandreplace.js +1 -1
  41. package/src/integrations/font.d.ts +17 -17
  42. package/src/integrations/font.js +1 -1
  43. package/src/integrations/formatpainter.d.ts +17 -17
  44. package/src/integrations/formatpainter.js +1 -1
  45. package/src/integrations/heading.d.ts +17 -17
  46. package/src/integrations/heading.js +1 -1
  47. package/src/integrations/highlight.d.ts +17 -17
  48. package/src/integrations/highlight.js +1 -1
  49. package/src/integrations/horizontalline.d.ts +17 -17
  50. package/src/integrations/horizontalline.js +1 -1
  51. package/src/integrations/htmlembed.d.ts +17 -17
  52. package/src/integrations/htmlembed.js +1 -1
  53. package/src/integrations/image.d.ts +17 -17
  54. package/src/integrations/image.js +1 -1
  55. package/src/integrations/imagereplace.d.ts +23 -23
  56. package/src/integrations/imagereplace.js +1 -1
  57. package/src/integrations/importword.d.ts +18 -18
  58. package/src/integrations/importword.js +1 -1
  59. package/src/integrations/indent.d.ts +17 -17
  60. package/src/integrations/indent.js +1 -1
  61. package/src/integrations/inputcommand.d.ts +16 -16
  62. package/src/integrations/inputcommand.js +1 -1
  63. package/src/integrations/link.d.ts +17 -17
  64. package/src/integrations/link.js +1 -1
  65. package/src/integrations/list.d.ts +17 -17
  66. package/src/integrations/list.js +1 -1
  67. package/src/integrations/listproperties.d.ts +29 -29
  68. package/src/integrations/listproperties.js +1 -1
  69. package/src/integrations/mediaembed.d.ts +17 -17
  70. package/src/integrations/mediaembed.js +1 -1
  71. package/src/integrations/mention.d.ts +17 -17
  72. package/src/integrations/mention.js +1 -1
  73. package/src/integrations/pagebreak.d.ts +17 -17
  74. package/src/integrations/pagebreak.js +1 -1
  75. package/src/integrations/paragraph.d.ts +17 -17
  76. package/src/integrations/paragraph.js +1 -1
  77. package/src/integrations/removeformat.d.ts +17 -17
  78. package/src/integrations/removeformat.js +1 -1
  79. package/src/integrations/restrictededitingmode.d.ts +17 -17
  80. package/src/integrations/restrictededitingmode.js +1 -1
  81. package/src/integrations/shiftentercommand.d.ts +16 -16
  82. package/src/integrations/shiftentercommand.js +1 -1
  83. package/src/integrations/standardeditingmode.d.ts +17 -17
  84. package/src/integrations/standardeditingmode.js +1 -1
  85. package/src/integrations/style.d.ts +18 -18
  86. package/src/integrations/style.js +1 -1
  87. package/src/integrations/table.d.ts +42 -42
  88. package/src/integrations/table.js +1 -1
  89. package/src/integrations/tablecaption.d.ts +22 -22
  90. package/src/integrations/tablecaption.js +1 -1
  91. package/src/integrations/tableclipboard.d.ts +19 -19
  92. package/src/integrations/tableclipboard.js +1 -1
  93. package/src/integrations/tablecolumnresize.d.ts +26 -26
  94. package/src/integrations/tablecolumnresize.js +1 -1
  95. package/src/integrations/tableheadings.d.ts +22 -22
  96. package/src/integrations/tableheadings.js +1 -1
  97. package/src/integrations/tablemergesplit.d.ts +22 -22
  98. package/src/integrations/tablemergesplit.js +1 -1
  99. package/src/integrations/tableofcontents.d.ts +17 -17
  100. package/src/integrations/tableofcontents.js +1 -1
  101. package/src/integrations/tableproperties.d.ts +27 -27
  102. package/src/integrations/tableproperties.js +1 -1
  103. package/src/integrations/template.d.ts +17 -17
  104. package/src/integrations/template.js +1 -1
  105. package/src/integrations/title.d.ts +17 -17
  106. package/src/integrations/title.js +1 -1
  107. package/src/integrations/undo.d.ts +17 -17
  108. package/src/integrations/undo.js +1 -1
  109. package/src/integrations/utils.d.ts +21 -21
  110. package/src/integrations/utils.js +1 -1
  111. package/src/suggestion.d.ts +276 -276
  112. package/src/suggestion.js +1 -1
  113. package/src/suggestiondescriptionfactory.d.ts +163 -163
  114. package/src/suggestiondescriptionfactory.js +1 -1
  115. package/src/trackchanges.d.ts +244 -244
  116. package/src/trackchanges.js +1 -1
  117. package/src/trackchangesconfig.d.ts +75 -75
  118. package/src/trackchangesdata.d.ts +41 -41
  119. package/src/trackchangesdata.js +1 -1
  120. package/src/trackchangesediting.d.ts +468 -467
  121. package/src/trackchangesediting.js +1 -1
  122. package/src/trackchangesui.d.ts +38 -38
  123. package/src/trackchangesui.js +1 -1
  124. package/src/ui/suggestioncontroller.d.ts +37 -37
  125. package/src/ui/suggestioncontroller.js +1 -1
  126. package/src/ui/view/basesuggestionthreadview.d.ts +170 -170
  127. package/src/ui/view/basesuggestionthreadview.js +1 -1
  128. package/src/ui/view/suggestionthreadview.d.ts +182 -182
  129. package/src/ui/view/suggestionthreadview.js +1 -1
  130. package/src/utils/common-translations.d.ts +9 -9
  131. package/src/utils/common-translations.js +1 -1
  132. package/src/utils/utils.d.ts +30 -30
  133. package/src/utils/utils.js +1 -1
  134. package/theme/icons/track-changes-accept.svg +1 -1
  135. package/theme/icons/track-changes-discard.svg +1 -1
  136. package/theme/icons/track-changes.svg +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3f7f=['getTableColumnsWidths','model','afterInit','handleSuggestionDescription','registerCustomCallback','Users','selection','locale','commandParams','columnWidths','document','registerDescriptionCallback','author','has','discard','plugins','formatBlock','_descriptionFactory','resizeTable','getSuggestionCallback','data','change','format','bind','get','editor','enableCommand','getColumnGroupElement','tableWidth','getContainedElement','accept','TableColumnResizeEditing','TrackChangesEditing','resizeTableWidth','_suggestionFactory','getAttribute','handleResizeTableWidthCommand'];(function(_0x1e929e,_0x3f7f55){const _0x30efc7=function(_0x599b46){while(--_0x599b46){_0x1e929e['push'](_0x1e929e['shift']());}};_0x30efc7(++_0x3f7f55);}(_0x3f7f,0xe4));const _0x30ef=function(_0x1e929e,_0x3f7f55){_0x1e929e=_0x1e929e-0x0;let _0x30efc7=_0x3f7f[_0x1e929e];return _0x30efc7;};import{Plugin as _0x48d351}from'ckeditor5/src/core';import{getTranslation as _0x1a8e11}from'../utils/common-translations';export default class wt extends _0x48d351{[_0x30ef('0x21')](){if(!this[_0x30ef('0x13')]['plugins'][_0x30ef('0x7')]('TableColumnResizeEditing'))return;const _0x135e2b=this['editor'][_0x30ef('0x9')][_0x30ef('0x12')](_0x30ef('0x1a'));_0x135e2b[_0x30ef('0x14')](_0x30ef('0x1b'),this[_0x30ef('0x1e')]['bind'](this)),_0x135e2b['enableCommand']('resizeColumnWidths',this[_0x30ef('0x1e')][_0x30ef('0x11')](this)),_0x135e2b[_0x30ef('0x1c')][_0x30ef('0x23')](_0x30ef('0xa'),_0x30ef('0xc'),_0x30ef('0x18'),_0x135e2b[_0x30ef('0x1c')][_0x30ef('0xd')](_0x30ef('0xa'),null,_0x30ef('0x8'))),_0x135e2b[_0x30ef('0x1c')][_0x30ef('0x23')](_0x30ef('0xa'),_0x30ef('0xc'),_0x30ef('0x8'),_0x135e2b['_suggestionFactory']['getSuggestionCallback'](_0x30ef('0xa'),null,_0x30ef('0x18'))),_0x135e2b[_0x30ef('0xb')][_0x30ef('0x5')](this[_0x30ef('0x22')]['bind'](this));}[_0x30ef('0x1e')](_0x238d07,_0x784962){const _0x146a11=this[_0x30ef('0x13')]['plugins'][_0x30ef('0x12')](_0x30ef('0x1a')),_0x3a8397=this[_0x30ef('0x13')][_0x30ef('0x9')][_0x30ef('0x12')](_0x30ef('0x19')),_0x25326a=_0x784962['table']||this[_0x30ef('0x13')][_0x30ef('0x20')][_0x30ef('0x4')][_0x30ef('0x0')]['getSelectedElement']();this[_0x30ef('0x13')]['model'][_0x30ef('0xf')](()=>{const _0x34661e=_0x3a8397[_0x30ef('0x15')](_0x25326a);let _0x205b89=_0x34661e?_0x3a8397[_0x30ef('0x1f')](_0x34661e):null,_0x4d5769=_0x25326a[_0x30ef('0x1d')](_0x30ef('0x16'))||null;const _0x1861bb=_0x784962[_0x30ef('0x16')]||_0x4d5769,_0x5d45ff=_0x784962[_0x30ef('0x3')]||_0x205b89,_0x1e8188=this['editor'][_0x30ef('0x9')][_0x30ef('0x12')](_0x30ef('0x24'))['me'];for(const _0x1f85b7 of _0x146a11['getSuggestions']()){const _0x132fa2=_0x1f85b7[_0x30ef('0x17')]();if(_0x30ef('0xc')===_0x1f85b7['subType']&&_0x132fa2===_0x25326a){_0x1f85b7[_0x30ef('0x6')]!==_0x1e8188&&_0x1f85b7['discard']();const _0x1f322f=_0x1f85b7[_0x30ef('0xe')][_0x30ef('0x2')];_0x4d5769=_0x1f322f[0x0]['tableWidth'],_0x205b89=_0x1f322f[0x0][_0x30ef('0x3')];break;}}_0x238d07({'table':_0x25326a,'tableWidth':_0x1861bb,'columnWidths':_0x5d45ff}),_0x146a11['markBlockFormat'](_0x25326a,{'commandName':_0x30ef('0x1b'),'commandParams':[{'tableWidth':_0x4d5769,'columnWidths':_0x205b89}],'formatGroupId':_0x30ef('0xc')},[],_0x30ef('0xc'));});}[_0x30ef('0x22')](_0x48ef8f){const {data:_0x21db1b}=_0x48ef8f;if(_0x21db1b&&_0x30ef('0xc')===_0x21db1b['formatGroupId']){const _0x569bf8='*Format:*\x20resize\x20table';return{'type':_0x30ef('0x10'),'content':_0x1a8e11(this['editor'][_0x30ef('0x1')],_0x569bf8)};}}}
23
+ const _0x5692=['editor','discard','get','*Format:*\x20resize\x20table','document','TrackChangesEditing','afterInit','plugins','selection','model','TableColumnResizeEditing','resizeTableWidth','change','formatBlock','enableCommand','getTableColumnsWidths','handleResizeTableWidthCommand','columnWidths','format','resizeColumnWidths','table','commandParams','getContainedElement','resizeTable','locale','handleSuggestionDescription','has','_suggestionFactory','getSuggestionCallback','bind','tableWidth','markBlockFormat','data','getSelectedElement','Users','registerCustomCallback','accept','getSuggestions'];(function(_0x349f15,_0x5692ef){const _0x4f3ec7=function(_0x1c1b4e){while(--_0x1c1b4e){_0x349f15['push'](_0x349f15['shift']());}};_0x4f3ec7(++_0x5692ef);}(_0x5692,0x141));const _0x4f3e=function(_0x349f15,_0x5692ef){_0x349f15=_0x349f15-0x0;let _0x4f3ec7=_0x5692[_0x349f15];return _0x4f3ec7;};import{Plugin as _0x25d384}from'ckeditor5/src/core';import{getTranslation as _0x5ea381}from'../utils/common-translations';export default class yt extends _0x25d384{[_0x4f3e('0x1b')](){if(!this[_0x4f3e('0x15')][_0x4f3e('0x1c')][_0x4f3e('0x9')](_0x4f3e('0x1f')))return;const _0x5e5c39=this[_0x4f3e('0x15')][_0x4f3e('0x1c')][_0x4f3e('0x17')](_0x4f3e('0x1a'));_0x5e5c39['enableCommand'](_0x4f3e('0x20'),this[_0x4f3e('0x25')][_0x4f3e('0xc')](this)),_0x5e5c39[_0x4f3e('0x23')](_0x4f3e('0x2'),this[_0x4f3e('0x25')][_0x4f3e('0xc')](this)),_0x5e5c39['_suggestionFactory'][_0x4f3e('0x12')](_0x4f3e('0x22'),'resizeTable',_0x4f3e('0x13'),_0x5e5c39[_0x4f3e('0xa')][_0x4f3e('0xb')]('formatBlock',null,_0x4f3e('0x16'))),_0x5e5c39[_0x4f3e('0xa')][_0x4f3e('0x12')](_0x4f3e('0x22'),'resizeTable','discard',_0x5e5c39[_0x4f3e('0xa')][_0x4f3e('0xb')](_0x4f3e('0x22'),null,_0x4f3e('0x13'))),_0x5e5c39['_descriptionFactory']['registerDescriptionCallback'](this[_0x4f3e('0x8')][_0x4f3e('0xc')](this));}[_0x4f3e('0x25')](_0xbb22ed,_0x558ee6){const _0x1449d2=this[_0x4f3e('0x15')]['plugins'][_0x4f3e('0x17')](_0x4f3e('0x1a')),_0x2929b3=this['editor'][_0x4f3e('0x1c')][_0x4f3e('0x17')](_0x4f3e('0x1f')),_0x331bc4=_0x558ee6[_0x4f3e('0x3')]||this['editor'][_0x4f3e('0x1e')][_0x4f3e('0x19')][_0x4f3e('0x1d')][_0x4f3e('0x10')]();this[_0x4f3e('0x15')][_0x4f3e('0x1e')][_0x4f3e('0x21')](()=>{const _0x25a394=_0x2929b3['getColumnGroupElement'](_0x331bc4);let _0x40231c=_0x25a394?_0x2929b3[_0x4f3e('0x24')](_0x25a394):null,_0x571693=_0x331bc4['getAttribute'](_0x4f3e('0xd'))||null;const _0x157d31=_0x558ee6['tableWidth']||_0x571693,_0xdf09dc=_0x558ee6['columnWidths']||_0x40231c,_0xf40696=this[_0x4f3e('0x15')]['plugins'][_0x4f3e('0x17')](_0x4f3e('0x11'))['me'];for(const _0x4a53ac of _0x1449d2[_0x4f3e('0x14')]()){const _0x17b4e1=_0x4a53ac[_0x4f3e('0x5')]();if(_0x4f3e('0x6')===_0x4a53ac['subType']&&_0x17b4e1===_0x331bc4){_0x4a53ac['author']!==_0xf40696&&_0x4a53ac[_0x4f3e('0x16')]();const _0x8a3a70=_0x4a53ac[_0x4f3e('0xf')][_0x4f3e('0x4')];_0x571693=_0x8a3a70[0x0][_0x4f3e('0xd')],_0x40231c=_0x8a3a70[0x0][_0x4f3e('0x0')];break;}}_0xbb22ed({'table':_0x331bc4,'tableWidth':_0x157d31,'columnWidths':_0xdf09dc}),_0x1449d2[_0x4f3e('0xe')](_0x331bc4,{'commandName':_0x4f3e('0x20'),'commandParams':[{'tableWidth':_0x571693,'columnWidths':_0x40231c}],'formatGroupId':'resizeTable'},[],'resizeTable');});}[_0x4f3e('0x8')](_0x4bf065){const {data:_0x321943}=_0x4bf065;if(_0x321943&&'resizeTable'===_0x321943['formatGroupId']){const _0x5b2cea=_0x4f3e('0x18');return{'type':_0x4f3e('0x1'),'content':_0x5ea381(this['editor'][_0x4f3e('0x7')],_0x5b2cea)};}}}
@@ -1,22 +1,22 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module track-changes/integrations/tableheadings
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import TrackChangesTable from './table';
10
- /**
11
- * Provides track changes plugin integration for {@link module:table/table~Table table feature} heading rows/columns.
12
- */
13
- export default class TrackChangesTableHeadings extends Plugin {
14
- /**
15
- * @inheritDoc
16
- */
17
- static get requires(): readonly [typeof TrackChangesTable];
18
- /**
19
- * @inheritDoc
20
- */
21
- afterInit(): void;
22
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module track-changes/integrations/tableheadings
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import TrackChangesTable from './table';
10
+ /**
11
+ * Provides track changes plugin integration for {@link module:table/table~Table table feature} heading rows/columns.
12
+ */
13
+ export default class TrackChangesTableHeadings extends Plugin {
14
+ /**
15
+ * @inheritDoc
16
+ */
17
+ static get requires(): readonly [typeof TrackChangesTable];
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ afterInit(): void;
22
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x61a8=['getColumnIndexes','registerCustomCallback','consumable','TableEditing','writer','plugins','setAttribute','downcastDispatcher','index','nodeAfter','value','highest','start','bindElementToMarker','childCount','markerName','last','locale','requires','editing','removeClass','removeMarker:suggestion','editor','item','markerRange','has','stop','setTableColumnHeader','createTableWalker','getRowIndexes','commandName','FORMAT_REGULAR_ROW','_descriptionFactory','TableUtils','getSuggestion','markerNameToElements','data','TrackChangesEditing','table','cell','addMarker:suggestion','unbindElementFromMarkerName','model','createPositionBefore','document','isBefore','change','mapper','FORMAT_HEADER_COLUMN','_splitMarkerName','ck-suggestion-marker--active','setTableRowHeader','nodeBefore','createRange','ck-suggestion-marker-','first','end','includes','parent','data-suggestion','createPositionAfter','FORMAT_HEADER_ROW','findAncestor','*Format:*\x20%0','showSuggestionHighlights','getSelectionAffectedTableCells','selection','getAttribute','formatBlock','getCellLocation','name','get','commands','headingRows','addClass','accept','removeAttribute','forceValue','markBlockFormat','getChild'];(function(_0xcd00f4,_0x61a81a){const _0xd83182=function(_0x387829){while(--_0x387829){_0xcd00f4['push'](_0xcd00f4['shift']());}};_0xd83182(++_0x61a81a);}(_0x61a8,0x99));const _0xd831=function(_0xcd00f4,_0x61a81a){_0xcd00f4=_0xcd00f4-0x0;let _0xd83182=_0x61a8[_0xcd00f4];return _0xd83182;};import{Plugin as _0x220e0a}from'ckeditor5/src/core';import _0x2aa8e8 from'./table';import{getTranslation as _0x31ad43}from'../utils/common-translations';export default class pt extends _0x220e0a{static get[_0xd831('0x19')](){return[_0x2aa8e8];}['afterInit'](){const _0x44a036=this[_0xd831('0x1d')];if(!_0x44a036['plugins'][_0xd831('0x20')](_0xd831('0xa')))return;const _0x30ca7d=_0x44a036[_0xd831('0x18')],_0x318b6e=_0x44a036[_0xd831('0xc')][_0xd831('0x4e')](_0xd831('0x2c')),_0x4c25a4=_0x44a036[_0xd831('0xc')][_0xd831('0x4e')](_0xd831('0x28')),_0x3d3884=_0x44a036[_0xd831('0xc')][_0xd831('0x4e')](_0x2aa8e8);function _0x194402({showActiveMarker:_0x52eb84=!0x0,setDataAttribute:_0x409d99=!0x0}={}){return(_0x89fea2,_0x142108,_0xb802ca)=>{const {type:_0x1d9792,id:_0x44f35f}=_0x318b6e[_0xd831('0x38')](_0x142108[_0xd831('0x16')]),_0x19eb92=_0x318b6e['getSuggestion'](_0x44f35f);if(!_0x19eb92[_0xd831('0x2b')]||'setTableColumnHeader'!=_0x19eb92[_0xd831('0x2b')]['commandName'])return;if(_0x142108[_0xd831('0x1e')])return void _0x89fea2[_0xd831('0x21')]();if(!_0xb802ca[_0xd831('0x9')]['consume'](_0x142108[_0xd831('0x1f')],_0x89fea2[_0xd831('0x4d')]))return;const _0x59f32a=_0x142108[_0xd831('0x1f')][_0xd831('0x13')][_0xd831('0x10')],_0x329716=_0x142108[_0xd831('0x1f')][_0xd831('0x3f')][_0xd831('0x3b')],_0xd23bd0=_0x59f32a[_0xd831('0x41')][_0xd831('0x41')],{column:_0x33e79d}=_0x4c25a4[_0xd831('0x4c')](_0x59f32a),{column:_0x21b971}=_0x4c25a4[_0xd831('0x4c')](_0x329716);for(let _0x28919f=_0x33e79d;_0x28919f<=_0x21b971;_0x28919f++){const _0xd03442=_0x4c25a4[_0xd831('0x23')](_0xd23bd0,{'column':_0x28919f,'includeAllSlots':!0x1});for(const _0xeea827 of _0xd03442){const _0x226d02=_0xeea827[_0xd831('0x2e')],_0x5eb75c=_0xb802ca[_0xd831('0x36')]['toViewElement'](_0x226d02);_0xb802ca[_0xd831('0xb')][_0xd831('0x1')](_0xd831('0x3d')+_0x1d9792,_0x5eb75c),_0x409d99&&_0xb802ca['writer'][_0xd831('0xd')](_0xd831('0x42'),_0x44f35f,_0x5eb75c),_0xb802ca[_0xd831('0x36')][_0xd831('0x14')](_0x5eb75c,_0x142108[_0xd831('0x16')]),_0x52eb84&&(_0x318b6e['activeMarkers'][_0xd831('0x40')](_0x142108[_0xd831('0x16')])?_0xb802ca[_0xd831('0xb')][_0xd831('0x1')]('ck-suggestion-marker--active',_0x5eb75c):_0xb802ca['writer'][_0xd831('0x1b')](_0xd831('0x39'),_0x5eb75c));}}};}_0x318b6e['enableCommand'](_0xd831('0x3a'),(_0x2de095,_0x2513b4)=>{const _0x585365=_0x4c25a4[_0xd831('0x48')](_0x44a036[_0xd831('0x31')][_0xd831('0x33')][_0xd831('0x49')]),_0x3de822=_0x4c25a4[_0xd831('0x24')](_0x585365),_0x5c3a8a=_0x585365[0x0][_0xd831('0x45')](_0xd831('0x2d')),_0x23d914=_0x5c3a8a[_0xd831('0x4a')](_0xd831('0x0'))||0x0,_0xa165d0=_0x2513b4&&null!==_0x2513b4[_0xd831('0x4')]?_0x2513b4[_0xd831('0x4')]:!_0x44a036[_0xd831('0x4f')]['get'](_0xd831('0x3a'))[_0xd831('0x11')],_0xeb01ad=_0xa165d0?_0x3de822[_0xd831('0x17')]:_0x3de822['first'],_0x4c44f1=_0x5c3a8a[_0xd831('0x6')](_0xeb01ad);let _0x1a9696;if(_0xa165d0){const _0x3a81fd=_0x5c3a8a[_0xd831('0x6')](_0x23d914);if(_0x4c44f1[_0xd831('0xf')]<_0x3a81fd[_0xd831('0xf')])return;_0x1a9696=_0x44a036['model'][_0xd831('0x3c')](_0x44a036[_0xd831('0x31')][_0xd831('0x32')](_0x3a81fd[_0xd831('0x6')](0x0)),_0x44a036[_0xd831('0x31')][_0xd831('0x43')](_0x4c44f1[_0xd831('0x6')](_0x4c44f1[_0xd831('0x15')]-0x1)));}else{const _0x56a73d=_0x5c3a8a[_0xd831('0x6')](_0x23d914-0x1);if(!_0x56a73d)return;_0x1a9696=_0x44a036[_0xd831('0x31')][_0xd831('0x3c')](_0x44a036['model'][_0xd831('0x32')](_0x4c44f1[_0xd831('0x6')](0x0)),_0x44a036['model']['createPositionAfter'](_0x56a73d[_0xd831('0x6')](_0x56a73d['childCount']-0x1)));}_0x44a036[_0xd831('0x31')][_0xd831('0x35')](()=>{_0x318b6e['markBlockFormat'](_0x1a9696,{'commandName':_0xd831('0x3a'),'commandParams':[{'forceValue':_0xa165d0}]},[],_0xd831('0x3a'));});}),_0x318b6e['enableCommand'](_0xd831('0x22'),(_0x268a8d,_0x5b7510)=>{const _0x2e45d7=_0x44a036['plugins'][_0xd831('0x4e')]('TableUtils'),_0x46759d=_0x2e45d7[_0xd831('0x48')](_0x44a036[_0xd831('0x31')]['document'][_0xd831('0x49')]),_0x5e3601=_0x2e45d7[_0xd831('0x7')](_0x46759d),_0x2762eb=_0x46759d[0x0][_0xd831('0x45')](_0xd831('0x2d')),_0x52eca9=_0x2762eb[_0xd831('0x4a')]('headingColumns')||0x0,_0x38b369=_0x5b7510&&null!==_0x5b7510[_0xd831('0x4')]?_0x5b7510['forceValue']:!_0x44a036[_0xd831('0x4f')][_0xd831('0x4e')]('setTableColumnHeader')[_0xd831('0x11')];let _0x3b8928;const _0x4d40de=_0x2762eb[_0xd831('0x6')](0x0),_0xf0f9d6=_0x38b369?_0x5e3601[_0xd831('0x17')]:_0x5e3601[_0xd831('0x3e')],_0x2f62f0=_0x2e45d7[_0xd831('0x23')](_0x2762eb,{'startRow':0x0,'column':_0xf0f9d6,'includeAllSlots':!0x1}),_0x1e09db=Array['from'](_0x2f62f0)[0x0][_0xd831('0x2e')];if(_0x38b369){const _0x5c0a09=_0x4d40de[_0xd831('0x6')](_0x52eca9);if(_0x1e09db[_0xd831('0x34')](_0x5c0a09))return;_0x3b8928=_0x44a036[_0xd831('0x31')]['createRange'](_0x44a036['model'][_0xd831('0x32')](_0x5c0a09),_0x44a036[_0xd831('0x31')][_0xd831('0x43')](_0x1e09db));}else{const _0x163f80=_0x4d40de[_0xd831('0x6')](_0x52eca9-0x1);if(!_0x163f80)return;_0x3b8928=_0x44a036[_0xd831('0x31')][_0xd831('0x3c')](_0x44a036[_0xd831('0x31')][_0xd831('0x32')](_0x1e09db),_0x44a036['model'][_0xd831('0x43')](_0x163f80));}_0x44a036[_0xd831('0x31')]['change'](()=>{_0x318b6e[_0xd831('0x5')](_0x3b8928,{'commandName':_0xd831('0x22'),'commandParams':[{'forceValue':_0x38b369}]},[],_0xd831('0x22'));});}),_0x44a036[_0xd831('0x1a')]['downcastDispatcher']['on'](_0xd831('0x2f'),_0x194402(),{'priority':_0xd831('0x12')}),_0x44a036['data'][_0xd831('0xe')]['on'](_0xd831('0x2f'),(_0x41c5b3,_0xb8c8ae,_0x24283c)=>{_0x24283c['options'][_0xd831('0x47')]&&_0x194402({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x41c5b3,_0xb8c8ae,_0x24283c);},{'priority':_0xd831('0x12')}),_0x44a036[_0xd831('0x1a')][_0xd831('0xe')]['on'](_0xd831('0x1c'),(_0x3b6c1a,_0x263a23,_0x16942c)=>{const {type:_0x59a349,id:_0x3563fd}=_0x318b6e[_0xd831('0x38')](_0x263a23['markerName']),_0x4357ca=_0x318b6e[_0xd831('0x29')](_0x3563fd);if(!_0x4357ca['data']||_0xd831('0x22')!=_0x4357ca['data'][_0xd831('0x25')])return;const _0x5f0a9c=_0x16942c[_0xd831('0x36')][_0xd831('0x2a')](_0x263a23[_0xd831('0x16')]);if(_0x5f0a9c)for(const _0x30e276 of _0x5f0a9c)_0x16942c[_0xd831('0xb')][_0xd831('0x1b')]('ck-suggestion-marker-'+_0x59a349,_0x30e276),_0x16942c[_0xd831('0xb')][_0xd831('0x1b')]('ck-suggestion-marker--active',_0x30e276),_0x16942c[_0xd831('0xb')][_0xd831('0x3')]('data-suggestion',_0x30e276),_0x16942c[_0xd831('0x36')][_0xd831('0x30')](_0x30e276,_0x263a23[_0xd831('0x16')]);},{'priority':'highest'}),_0x318b6e[_0xd831('0x27')]['registerDescriptionCallback'](_0x54a3ab=>{const {data:_0x18f67e}=_0x54a3ab;if(_0x18f67e){if('setTableRowHeader'==_0x18f67e[_0xd831('0x25')]){const _0x47f6ed=_0x18f67e['commandParams'][0x0][_0xd831('0x4')];return _0x5d361e(_0x31ad43(_0x30ca7d,_0x47f6ed?_0xd831('0x44'):_0xd831('0x26')));}if(_0xd831('0x22')==_0x18f67e[_0xd831('0x25')]){const _0x27e659=_0x18f67e['commandParams'][0x0][_0xd831('0x4')];return _0x5d361e(_0x31ad43(_0x30ca7d,_0x27e659?_0xd831('0x37'):'FORMAT_REGULAR_COLUMN'));}}function _0x5d361e(_0x4473fd){return{'type':'format','content':_0x31ad43(_0x30ca7d,_0xd831('0x46'),_0x4473fd)};}});const _0xaa450f=_0x3d3884['_acceptFormatSuggestionCallbackFactory']();_0x318b6e['_suggestionFactory'][_0xd831('0x8')]('formatBlock',_0xd831('0x3a'),_0xd831('0x2'),_0xaa450f),_0x318b6e['_suggestionFactory'][_0xd831('0x8')](_0xd831('0x4b'),'setTableColumnHeader','accept',_0xaa450f);}}
23
+ const _0x17a5=['has','afterInit','removeClass','ck-suggestion-marker-','getColumnIndexes','formatBlock','model','ck-suggestion-marker--active','FORMAT_HEADER_ROW','_suggestionFactory','getSuggestion','createPositionBefore','showSuggestionHighlights','setTableRowHeader','enableCommand','headingColumns','stop','childCount','getAttribute','mapper','get','_acceptFormatSuggestionCallbackFactory','name','setTableColumnHeader','value','findAncestor','includes','data','requires','downcastDispatcher','unbindElementFromMarkerName','selection','_splitMarkerName','nodeAfter','options','from','_descriptionFactory','headingRows','getCellLocation','table','toViewElement','commandName','activeMarkers','createPositionAfter','isBefore','last','markerRange','markerNameToElements','start','FORMAT_HEADER_COLUMN','index','consume','locale','removeAttribute','data-suggestion','parent','addMarker:suggestion','commands','createRange','commandParams','createTableWalker','first','*Format:*\x20%0','bindElementToMarker','change','writer','forceValue','accept','TableUtils','format','document','item','markerName','editor','consumable','highest','plugins','editing','TableEditing','registerDescriptionCallback','getSelectionAffectedTableCells','TrackChangesEditing','registerCustomCallback','cell','nodeBefore','addClass','getChild'];(function(_0x32ad35,_0x17a5e1){const _0x265bde=function(_0x464545){while(--_0x464545){_0x32ad35['push'](_0x32ad35['shift']());}};_0x265bde(++_0x17a5e1);}(_0x17a5,0x139));const _0x265b=function(_0x32ad35,_0x17a5e1){_0x32ad35=_0x32ad35-0x0;let _0x265bde=_0x17a5[_0x32ad35];return _0x265bde;};import{Plugin as _0x52cdca}from'ckeditor5/src/core';import _0xf1ac1c from'./table';import{getTranslation as _0x21c5c4}from'../utils/common-translations';export default class kt extends _0x52cdca{static get[_0x265b('0x3f')](){return[_0xf1ac1c];}[_0x265b('0x24')](){const _0xeb5fd2=this[_0x265b('0x15')];if(!_0xeb5fd2[_0x265b('0x18')][_0x265b('0x23')](_0x265b('0x1a')))return;const _0x20198e=_0xeb5fd2[_0x265b('0x0')],_0x47b9fc=_0xeb5fd2[_0x265b('0x18')][_0x265b('0x37')](_0x265b('0x1d')),_0x24b429=_0xeb5fd2[_0x265b('0x18')][_0x265b('0x37')](_0x265b('0x10')),_0x537773=_0xeb5fd2[_0x265b('0x18')][_0x265b('0x37')](_0xf1ac1c);function _0x4378a2({showActiveMarker:_0x2907fa=!0x0,setDataAttribute:_0x4ff9cd=!0x0}={}){return(_0x4df33b,_0x4a2c35,_0x7dc348)=>{const {type:_0x2f1b16,id:_0x1fa8fb}=_0x47b9fc[_0x265b('0x43')](_0x4a2c35['markerName']),_0x1375d5=_0x47b9fc[_0x265b('0x2d')](_0x1fa8fb);if(!_0x1375d5[_0x265b('0x3e')]||_0x265b('0x3a')!=_0x1375d5[_0x265b('0x3e')][_0x265b('0x4c')])return;if(_0x4a2c35[_0x265b('0x13')])return void _0x4df33b[_0x265b('0x33')]();if(!_0x7dc348[_0x265b('0x16')][_0x265b('0x56')](_0x4a2c35['markerRange'],_0x4df33b[_0x265b('0x39')]))return;const _0x485832=_0x4a2c35[_0x265b('0x51')][_0x265b('0x53')][_0x265b('0x44')],_0x43fe1d=_0x4a2c35[_0x265b('0x51')]['end'][_0x265b('0x20')],_0x122beb=_0x485832['parent'][_0x265b('0x3')],{column:_0x16cb1e}=_0x24b429[_0x265b('0x49')](_0x485832),{column:_0x1f9899}=_0x24b429[_0x265b('0x49')](_0x43fe1d);for(let _0x46ee9f=_0x16cb1e;_0x46ee9f<=_0x1f9899;_0x46ee9f++){const _0x40e3bc=_0x24b429[_0x265b('0x8')](_0x122beb,{'column':_0x46ee9f,'includeAllSlots':!0x1});for(const _0x4d2a60 of _0x40e3bc){const _0x1f18d2=_0x4d2a60[_0x265b('0x1f')],_0xb9cb83=_0x7dc348[_0x265b('0x36')][_0x265b('0x4b')](_0x1f18d2);_0x7dc348[_0x265b('0xd')][_0x265b('0x21')]('ck-suggestion-marker-'+_0x2f1b16,_0xb9cb83),_0x4ff9cd&&_0x7dc348[_0x265b('0xd')]['setAttribute'](_0x265b('0x2'),_0x1fa8fb,_0xb9cb83),_0x7dc348[_0x265b('0x36')][_0x265b('0xb')](_0xb9cb83,_0x4a2c35[_0x265b('0x14')]),_0x2907fa&&(_0x47b9fc[_0x265b('0x4d')][_0x265b('0x3d')](_0x4a2c35[_0x265b('0x14')])?_0x7dc348[_0x265b('0xd')][_0x265b('0x21')](_0x265b('0x2a'),_0xb9cb83):_0x7dc348[_0x265b('0xd')]['removeClass'](_0x265b('0x2a'),_0xb9cb83));}}};}_0x47b9fc[_0x265b('0x31')]('setTableRowHeader',(_0x3eab96,_0x2ee518)=>{const _0x2899aa=_0x24b429[_0x265b('0x1c')](_0xeb5fd2[_0x265b('0x29')][_0x265b('0x12')][_0x265b('0x42')]),_0x5d10ad=_0x24b429['getRowIndexes'](_0x2899aa),_0x33c97a=_0x2899aa[0x0][_0x265b('0x3c')](_0x265b('0x4a')),_0x6b08f3=_0x33c97a[_0x265b('0x35')](_0x265b('0x48'))||0x0,_0x18dd4e=_0x2ee518&&null!==_0x2ee518[_0x265b('0xe')]?_0x2ee518['forceValue']:!_0xeb5fd2[_0x265b('0x5')][_0x265b('0x37')](_0x265b('0x30'))[_0x265b('0x3b')],_0x2bf5cc=_0x18dd4e?_0x5d10ad[_0x265b('0x50')]:_0x5d10ad[_0x265b('0x9')],_0x3eb1e1=_0x33c97a['getChild'](_0x2bf5cc);let _0x5677fb;if(_0x18dd4e){const _0x1a108e=_0x33c97a['getChild'](_0x6b08f3);if(_0x3eb1e1['index']<_0x1a108e[_0x265b('0x55')])return;_0x5677fb=_0xeb5fd2[_0x265b('0x29')][_0x265b('0x6')](_0xeb5fd2[_0x265b('0x29')][_0x265b('0x2e')](_0x1a108e[_0x265b('0x22')](0x0)),_0xeb5fd2[_0x265b('0x29')]['createPositionAfter'](_0x3eb1e1[_0x265b('0x22')](_0x3eb1e1[_0x265b('0x34')]-0x1)));}else{const _0x303f6e=_0x33c97a[_0x265b('0x22')](_0x6b08f3-0x1);if(!_0x303f6e)return;_0x5677fb=_0xeb5fd2[_0x265b('0x29')][_0x265b('0x6')](_0xeb5fd2[_0x265b('0x29')][_0x265b('0x2e')](_0x3eb1e1[_0x265b('0x22')](0x0)),_0xeb5fd2[_0x265b('0x29')][_0x265b('0x4e')](_0x303f6e[_0x265b('0x22')](_0x303f6e[_0x265b('0x34')]-0x1)));}_0xeb5fd2['model'][_0x265b('0xc')](()=>{_0x47b9fc['markBlockFormat'](_0x5677fb,{'commandName':_0x265b('0x30'),'commandParams':[{'forceValue':_0x18dd4e}]},[],_0x265b('0x30'));});}),_0x47b9fc['enableCommand']('setTableColumnHeader',(_0x247833,_0x2546c9)=>{const _0x4055b8=_0xeb5fd2['plugins']['get'](_0x265b('0x10')),_0x1ddf82=_0x4055b8[_0x265b('0x1c')](_0xeb5fd2['model'][_0x265b('0x12')][_0x265b('0x42')]),_0x4ec9fa=_0x4055b8[_0x265b('0x27')](_0x1ddf82),_0x3d00ec=_0x1ddf82[0x0]['findAncestor'](_0x265b('0x4a')),_0x6fb5f3=_0x3d00ec[_0x265b('0x35')](_0x265b('0x32'))||0x0,_0x216d91=_0x2546c9&&null!==_0x2546c9['forceValue']?_0x2546c9[_0x265b('0xe')]:!_0xeb5fd2[_0x265b('0x5')][_0x265b('0x37')](_0x265b('0x3a'))[_0x265b('0x3b')];let _0x3ecb39;const _0x49691a=_0x3d00ec[_0x265b('0x22')](0x0),_0xea419c=_0x216d91?_0x4ec9fa[_0x265b('0x50')]:_0x4ec9fa[_0x265b('0x9')],_0x42a8ac=_0x4055b8['createTableWalker'](_0x3d00ec,{'startRow':0x0,'column':_0xea419c,'includeAllSlots':!0x1}),_0x41504d=Array[_0x265b('0x46')](_0x42a8ac)[0x0][_0x265b('0x1f')];if(_0x216d91){const _0x23bc34=_0x49691a[_0x265b('0x22')](_0x6fb5f3);if(_0x41504d[_0x265b('0x4f')](_0x23bc34))return;_0x3ecb39=_0xeb5fd2[_0x265b('0x29')][_0x265b('0x6')](_0xeb5fd2[_0x265b('0x29')][_0x265b('0x2e')](_0x23bc34),_0xeb5fd2[_0x265b('0x29')][_0x265b('0x4e')](_0x41504d));}else{const _0x241f8d=_0x49691a[_0x265b('0x22')](_0x6fb5f3-0x1);if(!_0x241f8d)return;_0x3ecb39=_0xeb5fd2[_0x265b('0x29')][_0x265b('0x6')](_0xeb5fd2[_0x265b('0x29')][_0x265b('0x2e')](_0x41504d),_0xeb5fd2[_0x265b('0x29')]['createPositionAfter'](_0x241f8d));}_0xeb5fd2[_0x265b('0x29')]['change'](()=>{_0x47b9fc['markBlockFormat'](_0x3ecb39,{'commandName':'setTableColumnHeader','commandParams':[{'forceValue':_0x216d91}]},[],_0x265b('0x3a'));});}),_0xeb5fd2[_0x265b('0x19')][_0x265b('0x40')]['on'](_0x265b('0x4'),_0x4378a2(),{'priority':_0x265b('0x17')}),_0xeb5fd2[_0x265b('0x3e')][_0x265b('0x40')]['on'](_0x265b('0x4'),(_0x38b0bb,_0x199c3e,_0x1e6910)=>{_0x1e6910[_0x265b('0x45')][_0x265b('0x2f')]&&_0x4378a2({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x38b0bb,_0x199c3e,_0x1e6910);},{'priority':_0x265b('0x17')}),_0xeb5fd2[_0x265b('0x19')][_0x265b('0x40')]['on']('removeMarker:suggestion',(_0x22ba43,_0x2846f3,_0x5740fd)=>{const {type:_0x2290f7,id:_0x1c8301}=_0x47b9fc[_0x265b('0x43')](_0x2846f3['markerName']),_0x1e2479=_0x47b9fc[_0x265b('0x2d')](_0x1c8301);if(!_0x1e2479[_0x265b('0x3e')]||_0x265b('0x3a')!=_0x1e2479[_0x265b('0x3e')][_0x265b('0x4c')])return;const _0x1312f2=_0x5740fd['mapper'][_0x265b('0x52')](_0x2846f3[_0x265b('0x14')]);if(_0x1312f2)for(const _0x178873 of _0x1312f2)_0x5740fd['writer']['removeClass'](_0x265b('0x26')+_0x2290f7,_0x178873),_0x5740fd[_0x265b('0xd')][_0x265b('0x25')]('ck-suggestion-marker--active',_0x178873),_0x5740fd[_0x265b('0xd')][_0x265b('0x1')](_0x265b('0x2'),_0x178873),_0x5740fd[_0x265b('0x36')][_0x265b('0x41')](_0x178873,_0x2846f3['markerName']);},{'priority':_0x265b('0x17')}),_0x47b9fc[_0x265b('0x47')][_0x265b('0x1b')](_0xdb88e4=>{const {data:_0x4249a7}=_0xdb88e4;if(_0x4249a7){if(_0x265b('0x30')==_0x4249a7['commandName']){const _0x2a3d80=_0x4249a7[_0x265b('0x7')][0x0][_0x265b('0xe')];return _0x4ed563(_0x21c5c4(_0x20198e,_0x2a3d80?_0x265b('0x2b'):'FORMAT_REGULAR_ROW'));}if(_0x265b('0x3a')==_0x4249a7[_0x265b('0x4c')]){const _0xc18c3d=_0x4249a7['commandParams'][0x0]['forceValue'];return _0x4ed563(_0x21c5c4(_0x20198e,_0xc18c3d?_0x265b('0x54'):'FORMAT_REGULAR_COLUMN'));}}function _0x4ed563(_0x56f2fd){return{'type':_0x265b('0x11'),'content':_0x21c5c4(_0x20198e,_0x265b('0xa'),_0x56f2fd)};}});const _0x1df622=_0x537773[_0x265b('0x38')]();_0x47b9fc['_suggestionFactory'][_0x265b('0x1e')](_0x265b('0x28'),_0x265b('0x30'),_0x265b('0xf'),_0x1df622),_0x47b9fc[_0x265b('0x2c')][_0x265b('0x1e')](_0x265b('0x28'),_0x265b('0x3a'),_0x265b('0xf'),_0x1df622);}}
@@ -1,22 +1,22 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module track-changes/integrations/tablemergesplit
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import TrackChangesTable from './table';
10
- /**
11
- * Provides track changes plugin integration for {@link module:table/table~Table table feature} merging and splitting cells.
12
- */
13
- export default class TrackChangesTableMergeSplit extends Plugin {
14
- /**
15
- * @inheritDoc
16
- */
17
- static get requires(): readonly [typeof TrackChangesTable];
18
- /**
19
- * @inheritDoc
20
- */
21
- afterInit(): void;
22
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module track-changes/integrations/tablemergesplit
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import TrackChangesTable from './table';
10
+ /**
11
+ * Provides track changes plugin integration for {@link module:table/table~Table table feature} merging and splitting cells.
12
+ */
13
+ export default class TrackChangesTableMergeSplit extends Plugin {
14
+ /**
15
+ * @inheritDoc
16
+ */
17
+ static get requires(): readonly [typeof TrackChangesTable];
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ afterInit(): void;
22
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x32fc=['mergeTableCellLeft','mergeTableCellRight','has','find','_isForcedDefaultExecutionBlock','formatBlock','tableCell','*Merge\x20cells*','horizontally','get','element','value','setSelection','_acceptFormatSuggestionCallbackFactory','getAncestors','getSuggestions','commandName','_areSelectedCellsMergable','change','type','size','findAncestor','deletion','length','editor','stop','mergeTableCellUp','splitTableCellHorizontally','model','TrackChangesEditing','document','markBlockFormat','registerCustomCallback','detach','highest','markMultiRangeBlockFormat','enableCommand','createTableWalker','splitTableCellVertically','author','plugins','direction','selection','format','TableEditing','from','createRangeOn','_areMergableCells','requires','mergeTableCellDown','push','commands','trackChanges','getRanges','cell','getFirstPosition','add','afterInit','containsRange','accept','mergeTableCells','locale','insertion','_tablePostFixingSubtypes','TableUtils','registerDescriptionCallback','subType','execute','refresh','isInContent','_suggestionFactory','fromRange','rootName','map','low','getSelectionAffectedTableCells','*Split\x20cell:*\x20vertically'];(function(_0x43991f,_0x32fce6){const _0x1def32=function(_0x261750){while(--_0x261750){_0x43991f['push'](_0x43991f['shift']());}};_0x1def32(++_0x32fce6);}(_0x32fc,0x180));const _0x1def=function(_0x43991f,_0x32fce6){_0x43991f=_0x43991f-0x0;let _0x1def32=_0x32fc[_0x43991f];return _0x1def32;};import{Plugin as _0x1c99b2}from'ckeditor5/src/core';import _0x4cdabb from'./table';import{LiveRange as _0x2df9e5}from'ckeditor5/src/engine';import{getTranslation as _0x3b6c68}from'../utils/common-translations';export default class dt extends _0x1c99b2{static get[_0x1def('0x31')](){return[_0x4cdabb];}[_0x1def('0x3a')](){const _0x12172b=this[_0x1def('0x19')],_0xc2aeb1=_0x12172b[_0x1def('0x1d')][_0x1def('0x1f')][_0x1def('0x2b')],_0x3c38b8=_0x12172b[_0x1def('0x3e')];if(!_0x12172b[_0x1def('0x29')][_0x1def('0x3')](_0x1def('0x2d')))return;const _0x1a001a=_0x12172b[_0x1def('0x29')][_0x1def('0xa')](_0x1def('0x1e')),_0x318cf7=_0x12172b[_0x1def('0x29')]['get'](_0x1def('0x41')),_0xcb5888=_0x12172b['plugins'][_0x1def('0xa')](_0x4cdabb);_0xcb5888[_0x1def('0x40')][_0x1def('0x33')]('mergeTableCells'),_0x1a001a[_0x1def('0x25')](_0x1def('0x3d'),()=>{const _0xc3f9a1=_0x318cf7['getSelectionAffectedTableCells'](_0x12172b['model']['document'][_0x1def('0x2b')]);_0x12172b[_0x1def('0x1d')][_0x1def('0x13')](()=>{_0x1a001a[_0x1def('0x24')](_0xc3f9a1,{'commandName':_0x1def('0x3d'),'commandParams':[]},[],_0x1def('0x3d'));});}),_0x12172b['commands'][_0x1def('0xa')](_0x1def('0x3d'))['on'](_0x1def('0x44'),(_0x21a497,_0x569b4e)=>{_0x12172b['commands'][_0x1def('0xa')](_0x1def('0x35'))[_0x1def('0xc')]&&(_0x569b4e[_0x1def('0x18')]>0x0&&_0x569b4e[_0x569b4e[_0x1def('0x18')]-0x1]&&_0x569b4e[_0x569b4e['length']-0x1]['forceDefaultExecution']||_0x1a001a[_0x1def('0x5')]||this[_0x1def('0x12')]()||_0x21a497[_0x1def('0x1a')]());},{'priority':_0x1def('0x23')});for(const _0x57b502 of[_0x1def('0x1b'),_0x1def('0x2'),_0x1def('0x32'),_0x1def('0x1')]){const _0x112e9d=_0x12172b[_0x1def('0x34')][_0x1def('0xa')](_0x57b502);_0x1a001a[_0x1def('0x25')](_0x57b502,()=>{const _0x4e6d72=_0x12172b[_0x1def('0x1d')][_0x1def('0x1f')]['selection']['getFirstPosition']()['getAncestors']()['find'](_0xba405b=>_0xba405b['is'](_0x1def('0xb'),_0x1def('0x7'))),_0xc7351=_0x112e9d[_0x1def('0xc')];_0x12172b[_0x1def('0x1d')][_0x1def('0x13')](()=>{_0x1a001a['markMultiRangeBlockFormat']([_0x4e6d72,_0xc7351],{'commandName':_0x1def('0x3d'),'commandParams':[]},[],_0x1def('0x3d'));});});}for(const _0x185cdd of[_0x1def('0x27'),'splitTableCellHorizontally']){const _0x71c60f=_0x12172b[_0x1def('0x34')][_0x1def('0xa')](_0x185cdd);_0x1a001a[_0x1def('0x25')](_0x185cdd,()=>{const _0x2800c8=_0x318cf7[_0x1def('0x4c')](_0x12172b['model'][_0x1def('0x1f')]['selection'])[0x0],_0x37e889=_0x2800c8[_0x1def('0x16')]('table'),{column:_0x4be12c,row:_0x364652}=_0x318cf7['getCellLocation'](_0x2800c8);let _0x19f11e=[];if(_0x1def('0x9')==_0x71c60f[_0x1def('0x2a')]){const _0x21ba43=_0x318cf7[_0x1def('0x26')](_0x37e889,{'startRow':_0x364652,'endRow':_0x364652,'includeAllSlots':!0x0});_0x19f11e=Array[_0x1def('0x2e')](_0x21ba43)['map'](_0x4daaab=>_0x4daaab[_0x1def('0x37')]);}else{const _0x2aa8cd=_0x318cf7['createTableWalker'](_0x37e889,{'column':_0x4be12c,'includeAllSlots':!0x0});_0x19f11e=Array[_0x1def('0x2e')](_0x2aa8cd)[_0x1def('0x4a')](_0x50296a=>_0x50296a[_0x1def('0x37')]);}_0x12172b[_0x1def('0x1d')]['change'](_0x3f0670=>{_0x1a001a[_0x1def('0x20')](_0x3f0670[_0x1def('0x2f')](_0x2800c8),{'commandName':_0x185cdd,'commandParams':[]},_0x19f11e,_0x185cdd);});});}_0x1a001a['_descriptionFactory'][_0x1def('0x42')](_0x2e3a2e=>{const {data:_0x47c288}=_0x2e3a2e;if(_0x47c288)return'mergeTableCells'==_0x47c288['commandName']?{'type':'format','content':_0x3b6c68(_0x3c38b8,_0x1def('0x8'))}:void 0x0;}),_0x1a001a['_descriptionFactory'][_0x1def('0x42')](_0x22267b=>{const {data:_0x3a733e}=_0x22267b;if(_0x3a733e)return _0x1def('0x27')==_0x3a733e[_0x1def('0x11')]?{'type':_0x1def('0x2c'),'content':_0x3b6c68(_0x3c38b8,_0x1def('0x0'))}:'splitTableCellHorizontally'==_0x3a733e[_0x1def('0x11')]?{'type':_0x1def('0x2c'),'content':_0x3b6c68(_0x3c38b8,'*Split\x20cell:*\x20horizontally')}:void 0x0;});const _0x77d5b3=_0xcb5888[_0x1def('0xe')]();for(const _0xfdb85d of['mergeTableCellUp',_0x1def('0x2'),_0x1def('0x32'),_0x1def('0x1')])_0x1a001a[_0x1def('0x47')]['registerCustomCallback']('formatBlock',_0xfdb85d,_0x1def('0x3c'),_0x77d5b3);for(const _0x2327ba of[_0x1def('0x27'),_0x1def('0x1c')])_0x1a001a[_0x1def('0x47')][_0x1def('0x21')](_0x1def('0x6'),_0x2327ba,_0x1def('0x3c'),_0x77d5b3);_0x1a001a['_suggestionFactory'][_0x1def('0x21')]('formatBlock','mergeTableCells',_0x1def('0x3c'),_0x3f40c4=>{_0x12172b[_0x1def('0x1d')]['change'](_0x2e30f2=>{const _0x56b6f8=Array[_0x1def('0x2e')](_0xc2aeb1[_0x1def('0x36')]())['map'](_0x4eaaa9=>_0x2df9e5[_0x1def('0x48')](_0x4eaaa9));_0x2e30f2[_0x1def('0xd')](_0x3f40c4),_0x12172b[_0x1def('0x34')]['get']('mergeTableCells')[_0x1def('0x45')](),_0x12172b[_0x1def('0x44')](_0x1def('0x3d'),{'forceDefaultExecution':!0x0});const _0xcddf64=_0x56b6f8['filter'](_0x13e320=>'$graveyard'!=_0x13e320['root'][_0x1def('0x49')]);_0xcddf64[_0x1def('0x18')]>0x0&&_0x2e30f2['setSelection'](_0xcddf64);for(const _0x59051c of _0x56b6f8)_0x59051c[_0x1def('0x22')]();});});for(const _0x4edc9d of['mergeTableCellUp','mergeTableCellDown',_0x1def('0x1'),_0x1def('0x2')]){const _0x2cd553=_0x12172b[_0x1def('0x34')][_0x1def('0xa')](_0x4edc9d);_0x2cd553['on']('set:isEnabled',(_0xbafbfc,_0x43c63c,_0x500192)=>{if(_0x500192){const _0x371767=_0x12172b[_0x1def('0x1d')]['document']['selection'][_0x1def('0x38')]()[_0x1def('0xf')]()[_0x1def('0x4')](_0x3d3b7c=>_0x3d3b7c['is']('element',_0x1def('0x7')));this[_0x1def('0x30')](_0x2cd553[_0x1def('0xc')],_0x371767)||(_0xbafbfc['return']=!0x1,_0xbafbfc[_0x1def('0x1a')]());}},{'priority':_0x1def('0x4b')});}}[_0x1def('0x12')](){const _0x57e7bb=this['editor']['commands'][_0x1def('0xa')](_0x1def('0x3d')),_0x26cca1=this['editor'][_0x1def('0x29')][_0x1def('0xa')]('TableUtils');if(!_0x57e7bb['isEnabled'])return!0x1;const _0x4ef94c=_0x26cca1[_0x1def('0x4c')](this[_0x1def('0x19')][_0x1def('0x1d')][_0x1def('0x1f')]['selection']);for(const _0x17212a of _0x4ef94c)for(const _0x1efab1 of _0x4ef94c)if(_0x17212a!=_0x1efab1&&!this[_0x1def('0x30')](_0x17212a,_0x1efab1))return!0x1;return!0x0;}[_0x1def('0x30')](_0x786cfa,_0x228f58){const _0xc99711=this[_0x1def('0x19')]['plugins']['get'](_0x1def('0x1e')),_0x1a3f96=this[_0x1def('0x19')][_0x1def('0x1d')][_0x1def('0x2f')](_0x786cfa),_0x55f31c=this[_0x1def('0x19')][_0x1def('0x1d')][_0x1def('0x2f')](_0x228f58),_0x1c0e25=new Set(),_0x7f331b=new Set();for(const _0x3ba037 of _0xc99711[_0x1def('0x10')]())if((_0x1def('0x3f')==_0x3ba037[_0x1def('0x14')]||_0x1def('0x17')==_0x3ba037['type']||_0x1def('0x3d')==_0x3ba037[_0x1def('0x43')])&&_0x3ba037[_0x1def('0x46')])for(const _0x1ddebc of _0x3ba037[_0x1def('0x36')]())_0x1ddebc[_0x1def('0x3b')](_0x1a3f96,!0x0)&&_0x1c0e25[_0x1def('0x39')](_0x3ba037[_0x1def('0x14')]+':'+_0x3ba037[_0x1def('0x28')]['id']),_0x1ddebc[_0x1def('0x3b')](_0x55f31c,!0x0)&&_0x7f331b[_0x1def('0x39')](_0x3ba037[_0x1def('0x14')]+':'+_0x3ba037[_0x1def('0x28')]['id']);if(_0x1c0e25[_0x1def('0x15')]!=_0x7f331b[_0x1def('0x15')])return!0x1;for(const _0x104a6 of _0x1c0e25)if(!_0x7f331b[_0x1def('0x3')](_0x104a6))return!0x1;return!0x0;}}
23
+ const _0x2099=['markMultiRangeBlockFormat','model','enableCommand','TrackChangesEditing','_areSelectedCellsMergable','mergeTableCellDown','filter','TableUtils','element','length','*Merge\x20cells*','registerCustomCallback','has','*Split\x20cell:*\x20vertically','stop','find','accept','isEnabled','plugins','type','execute','_descriptionFactory','requires','getFirstPosition','registerDescriptionCallback','size','containsRange','setSelection','getRanges','$graveyard','fromRange','return','mergeTableCellRight','_suggestionFactory','_tablePostFixingSubtypes','from','mergeTableCellUp','push','low','author','mergeTableCellLeft','getSelectionAffectedTableCells','TableEditing','direction','editor','getCellLocation','splitTableCellHorizontally','get','rootName','commandName','table','splitTableCellVertically','createTableWalker','change','document','horizontally','add','cell','tableCell','format','getAncestors','locale','afterInit','_acceptFormatSuggestionCallbackFactory','_areMergableCells','insertion','root','formatBlock','commands','value','mergeTableCells','_isForcedDefaultExecutionBlock','map','refresh','createRangeOn','markBlockFormat','selection'];(function(_0xb540cd,_0x2099c9){const _0x5f12dc=function(_0x1314a8){while(--_0x1314a8){_0xb540cd['push'](_0xb540cd['shift']());}};_0x5f12dc(++_0x2099c9);}(_0x2099,0x93));const _0x5f12=function(_0xb540cd,_0x2099c9){_0xb540cd=_0xb540cd-0x0;let _0x5f12dc=_0x2099[_0xb540cd];return _0x5f12dc;};import{Plugin as _0x497730}from'ckeditor5/src/core';import _0x5948af from'./table';import{LiveRange as _0x1d4014}from'ckeditor5/src/engine';import{getTranslation as _0x745999}from'../utils/common-translations';export default class pt extends _0x497730{static get[_0x5f12('0x1d')](){return[_0x5948af];}[_0x5f12('0x45')](){const _0x64d57b=this['editor'],_0x1f0fd5=_0x64d57b['model'][_0x5f12('0x3d')]['selection'],_0x4c8d7b=_0x64d57b[_0x5f12('0x44')];if(!_0x64d57b[_0x5f12('0x19')][_0x5f12('0x13')](_0x5f12('0x31')))return;const _0xf822c5=_0x64d57b['plugins'][_0x5f12('0x36')](_0x5f12('0xa')),_0x2a1d5d=_0x64d57b[_0x5f12('0x19')][_0x5f12('0x36')](_0x5f12('0xe')),_0x245d6e=_0x64d57b[_0x5f12('0x19')][_0x5f12('0x36')](_0x5948af);_0x245d6e[_0x5f12('0x29')][_0x5f12('0x2c')](_0x5f12('0x0')),_0xf822c5[_0x5f12('0x9')](_0x5f12('0x0'),()=>{const _0x519429=_0x2a1d5d[_0x5f12('0x30')](_0x64d57b[_0x5f12('0x8')][_0x5f12('0x3d')][_0x5f12('0x6')]);_0x64d57b[_0x5f12('0x8')][_0x5f12('0x3c')](()=>{_0xf822c5[_0x5f12('0x7')](_0x519429,{'commandName':'mergeTableCells','commandParams':[]},[],_0x5f12('0x0'));});}),_0x64d57b[_0x5f12('0x4b')]['get'](_0x5f12('0x0'))['on'](_0x5f12('0x1b'),(_0x38832e,_0x307fea)=>{_0x64d57b[_0x5f12('0x4b')][_0x5f12('0x36')]('trackChanges')['value']&&(_0x307fea['length']>0x0&&_0x307fea[_0x307fea[_0x5f12('0x10')]-0x1]&&_0x307fea[_0x307fea['length']-0x1]['forceDefaultExecution']||_0xf822c5[_0x5f12('0x1')]||this['_areSelectedCellsMergable']()||_0x38832e['stop']());},{'priority':'highest'});for(const _0x3ae12a of[_0x5f12('0x2b'),_0x5f12('0x27'),_0x5f12('0xc'),'mergeTableCellLeft']){const _0x2fa26c=_0x64d57b['commands']['get'](_0x3ae12a);_0xf822c5['enableCommand'](_0x3ae12a,()=>{const _0x24c479=_0x64d57b['model'][_0x5f12('0x3d')][_0x5f12('0x6')][_0x5f12('0x1e')]()[_0x5f12('0x43')]()[_0x5f12('0x16')](_0x401286=>_0x401286['is'](_0x5f12('0xf'),'tableCell')),_0x43d5f3=_0x2fa26c[_0x5f12('0x4c')];_0x64d57b[_0x5f12('0x8')][_0x5f12('0x3c')](()=>{_0xf822c5['markMultiRangeBlockFormat']([_0x24c479,_0x43d5f3],{'commandName':_0x5f12('0x0'),'commandParams':[]},[],_0x5f12('0x0'));});});}for(const _0x69095a of[_0x5f12('0x3a'),_0x5f12('0x35')]){const _0x4d97ad=_0x64d57b[_0x5f12('0x4b')]['get'](_0x69095a);_0xf822c5['enableCommand'](_0x69095a,()=>{const _0x13be31=_0x2a1d5d['getSelectionAffectedTableCells'](_0x64d57b[_0x5f12('0x8')][_0x5f12('0x3d')][_0x5f12('0x6')])[0x0],_0x4986da=_0x13be31['findAncestor'](_0x5f12('0x39')),{column:_0xfdc9c0,row:_0x5b4203}=_0x2a1d5d[_0x5f12('0x34')](_0x13be31);let _0x3c811b=[];if(_0x5f12('0x3e')==_0x4d97ad[_0x5f12('0x32')]){const _0x30afaf=_0x2a1d5d[_0x5f12('0x3b')](_0x4986da,{'startRow':_0x5b4203,'endRow':_0x5b4203,'includeAllSlots':!0x0});_0x3c811b=Array[_0x5f12('0x2a')](_0x30afaf)['map'](_0x386519=>_0x386519[_0x5f12('0x40')]);}else{const _0x5ae843=_0x2a1d5d[_0x5f12('0x3b')](_0x4986da,{'column':_0xfdc9c0,'includeAllSlots':!0x0});_0x3c811b=Array[_0x5f12('0x2a')](_0x5ae843)[_0x5f12('0x2')](_0x4cc15a=>_0x4cc15a[_0x5f12('0x40')]);}_0x64d57b[_0x5f12('0x8')][_0x5f12('0x3c')](_0x488801=>{_0xf822c5[_0x5f12('0x5')](_0x488801[_0x5f12('0x4')](_0x13be31),{'commandName':_0x69095a,'commandParams':[]},_0x3c811b,_0x69095a);});});}_0xf822c5[_0x5f12('0x1c')][_0x5f12('0x1f')](_0x1db85b=>{const {data:_0x24ae3d}=_0x1db85b;if(_0x24ae3d)return'mergeTableCells'==_0x24ae3d[_0x5f12('0x38')]?{'type':_0x5f12('0x42'),'content':_0x745999(_0x4c8d7b,_0x5f12('0x11'))}:void 0x0;}),_0xf822c5['_descriptionFactory'][_0x5f12('0x1f')](_0x287820=>{const {data:_0x1dedd2}=_0x287820;if(_0x1dedd2)return _0x5f12('0x3a')==_0x1dedd2['commandName']?{'type':_0x5f12('0x42'),'content':_0x745999(_0x4c8d7b,_0x5f12('0x14'))}:_0x5f12('0x35')==_0x1dedd2[_0x5f12('0x38')]?{'type':_0x5f12('0x42'),'content':_0x745999(_0x4c8d7b,'*Split\x20cell:*\x20horizontally')}:void 0x0;});const _0x50bdef=_0x245d6e[_0x5f12('0x46')]();for(const _0x21ac4f of['mergeTableCellUp','mergeTableCellRight',_0x5f12('0xc'),_0x5f12('0x2f')])_0xf822c5['_suggestionFactory']['registerCustomCallback'](_0x5f12('0x4a'),_0x21ac4f,_0x5f12('0x17'),_0x50bdef);for(const _0x1bbbc6 of['splitTableCellVertically','splitTableCellHorizontally'])_0xf822c5[_0x5f12('0x28')][_0x5f12('0x12')](_0x5f12('0x4a'),_0x1bbbc6,_0x5f12('0x17'),_0x50bdef);_0xf822c5['_suggestionFactory'][_0x5f12('0x12')]('formatBlock',_0x5f12('0x0'),_0x5f12('0x17'),_0x562475=>{_0x64d57b['model']['change'](_0x2bb05f=>{const _0x34794d=Array[_0x5f12('0x2a')](_0x1f0fd5[_0x5f12('0x23')]())[_0x5f12('0x2')](_0x57c764=>_0x1d4014[_0x5f12('0x25')](_0x57c764));_0x2bb05f[_0x5f12('0x22')](_0x562475),_0x64d57b[_0x5f12('0x4b')][_0x5f12('0x36')](_0x5f12('0x0'))[_0x5f12('0x3')](),_0x64d57b[_0x5f12('0x1b')](_0x5f12('0x0'),{'forceDefaultExecution':!0x0});const _0x199f01=_0x34794d[_0x5f12('0xd')](_0x36955f=>_0x5f12('0x24')!=_0x36955f[_0x5f12('0x49')][_0x5f12('0x37')]);_0x199f01[_0x5f12('0x10')]>0x0&&_0x2bb05f['setSelection'](_0x199f01);for(const _0xbc6613 of _0x34794d)_0xbc6613['detach']();});});for(const _0x2dc4d9 of[_0x5f12('0x2b'),_0x5f12('0xc'),_0x5f12('0x2f'),_0x5f12('0x27')]){const _0x5489ed=_0x64d57b[_0x5f12('0x4b')][_0x5f12('0x36')](_0x2dc4d9);_0x5489ed['on']('set:isEnabled',(_0x1f7c68,_0x3c3ac1,_0x1dad7b)=>{if(_0x1dad7b){const _0x12e1e7=_0x64d57b[_0x5f12('0x8')][_0x5f12('0x3d')][_0x5f12('0x6')][_0x5f12('0x1e')]()[_0x5f12('0x43')]()[_0x5f12('0x16')](_0xbad652=>_0xbad652['is'](_0x5f12('0xf'),_0x5f12('0x41')));this[_0x5f12('0x47')](_0x5489ed['value'],_0x12e1e7)||(_0x1f7c68[_0x5f12('0x26')]=!0x1,_0x1f7c68[_0x5f12('0x15')]());}},{'priority':_0x5f12('0x2d')});}}[_0x5f12('0xb')](){const _0xad50fd=this[_0x5f12('0x33')][_0x5f12('0x4b')]['get'](_0x5f12('0x0')),_0x3730b2=this[_0x5f12('0x33')]['plugins'][_0x5f12('0x36')](_0x5f12('0xe'));if(!_0xad50fd[_0x5f12('0x18')])return!0x1;const _0x5e9090=_0x3730b2[_0x5f12('0x30')](this['editor'][_0x5f12('0x8')][_0x5f12('0x3d')]['selection']);for(const _0x56f3d2 of _0x5e9090)for(const _0x4b8b98 of _0x5e9090)if(_0x56f3d2!=_0x4b8b98&&!this[_0x5f12('0x47')](_0x56f3d2,_0x4b8b98))return!0x1;return!0x0;}[_0x5f12('0x47')](_0x3fbf2b,_0x2ef9a1){const _0x57225c=this[_0x5f12('0x33')][_0x5f12('0x19')][_0x5f12('0x36')](_0x5f12('0xa')),_0x45da05=this['editor'][_0x5f12('0x8')][_0x5f12('0x4')](_0x3fbf2b),_0x383f6f=this[_0x5f12('0x33')][_0x5f12('0x8')][_0x5f12('0x4')](_0x2ef9a1),_0x3fd3ae=new Set(),_0x2fb9b9=new Set();for(const _0x38af1a of _0x57225c['getSuggestions']())if((_0x5f12('0x48')==_0x38af1a[_0x5f12('0x1a')]||'deletion'==_0x38af1a['type']||_0x5f12('0x0')==_0x38af1a['subType'])&&_0x38af1a['isInContent'])for(const _0x1bf9e4 of _0x38af1a[_0x5f12('0x23')]())_0x1bf9e4[_0x5f12('0x21')](_0x45da05,!0x0)&&_0x3fd3ae[_0x5f12('0x3f')](_0x38af1a['type']+':'+_0x38af1a[_0x5f12('0x2e')]['id']),_0x1bf9e4[_0x5f12('0x21')](_0x383f6f,!0x0)&&_0x2fb9b9[_0x5f12('0x3f')](_0x38af1a[_0x5f12('0x1a')]+':'+_0x38af1a[_0x5f12('0x2e')]['id']);if(_0x3fd3ae[_0x5f12('0x20')]!=_0x2fb9b9[_0x5f12('0x20')])return!0x1;for(const _0x195228 of _0x3fd3ae)if(!_0x2fb9b9[_0x5f12('0x13')](_0x195228))return!0x1;return!0x0;}}
@@ -1,17 +1,17 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module track-changes/integrations/tableofcontents
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- /**
10
- * Provides track changes plugin integration for the Table of contents feature.
11
- */
12
- export default class TrackChangesTableOfContents extends Plugin {
13
- /**
14
- * @inheritDoc
15
- */
16
- afterInit(): void;
17
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module track-changes/integrations/tableofcontents
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ /**
10
+ * Provides track changes plugin integration for the Table of contents feature.
11
+ */
12
+ export default class TrackChangesTableOfContents extends Plugin {
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ afterInit(): void;
17
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1a9f=['tableOfContents','_descriptionFactory','insertTableOfContents','TrackChangesEditing','plugins','editor','ELEMENT_TABLE_OF_CONTENTS','enableCommand','afterInit','get','commands'];(function(_0x5c1925,_0x1a9f5d){const _0x241e29=function(_0x2d75f4){while(--_0x2d75f4){_0x5c1925['push'](_0x5c1925['shift']());}};_0x241e29(++_0x1a9f5d);}(_0x1a9f,0x1e7));const _0x241e=function(_0x5c1925,_0x1a9f5d){_0x5c1925=_0x5c1925-0x0;let _0x241e29=_0x1a9f[_0x5c1925];return _0x241e29;};import{Plugin as _0x883976}from'ckeditor5/src/core';import{getTranslation as _0x1e0a6f}from'../utils/common-translations';export default class bt extends _0x883976{[_0x241e('0x5')](){const _0x13f134=this[_0x241e('0x2')];if(!_0x13f134[_0x241e('0x7')]['get'](_0x241e('0xa')))return;_0x13f134['plugins']['get'](_0x241e('0x0'))[_0x241e('0x4')]('insertTableOfContents');const _0x5d2385=_0x13f134[_0x241e('0x1')][_0x241e('0x6')]('TrackChangesEditing'),_0x45073d=_0x13f134['locale'];_0x5d2385[_0x241e('0x9')]['registerElementLabel'](_0x241e('0x8'),_0x40ab2b=>_0x1e0a6f(_0x45073d,_0x241e('0x3'),_0x40ab2b));}}
23
+ const _0x34f2=['TrackChangesEditing','enableCommand','commands','plugins','registerElementLabel','get','_descriptionFactory','insertTableOfContents','afterInit','tableOfContents'];(function(_0x248359,_0x34f286){const _0x2e45cf=function(_0x2c0100){while(--_0x2c0100){_0x248359['push'](_0x248359['shift']());}};_0x2e45cf(++_0x34f286);}(_0x34f2,0xfd));const _0x2e45=function(_0x248359,_0x34f286){_0x248359=_0x248359-0x0;let _0x2e45cf=_0x34f2[_0x248359];return _0x2e45cf;};import{Plugin as _0x2d74fc}from'ckeditor5/src/core';import{getTranslation as _0x1687b4}from'../utils/common-translations';export default class St extends _0x2d74fc{[_0x2e45('0x5')](){const _0x456548=this['editor'];if(!_0x456548[_0x2e45('0x9')][_0x2e45('0x2')]('insertTableOfContents'))return;_0x456548['plugins'][_0x2e45('0x2')](_0x2e45('0x7'))[_0x2e45('0x8')](_0x2e45('0x4'));const _0x3d390f=_0x456548[_0x2e45('0x0')]['get'](_0x2e45('0x7')),_0x34155e=_0x456548['locale'];_0x3d390f[_0x2e45('0x3')][_0x2e45('0x1')](_0x2e45('0x6'),_0x2d2095=>_0x1687b4(_0x34155e,'ELEMENT_TABLE_OF_CONTENTS',_0x2d2095));}}
@@ -1,27 +1,27 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module track-changes/integrations/tableproperties
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';
12
- /**
13
- * Provides track changes plugin integration for table properties feature.
14
- */
15
- export default class TrackChangesTableProperties extends Plugin {
16
- constructor(editor: Editor);
17
- /**
18
- * @inheritDoc
19
- */
20
- static get pluginName(): "TrackChangesTableProperties";
21
- /**
22
- * @inheritDoc
23
- */
24
- afterInit(): void;
25
- handleDiscardAction(properties: Array<string>, ranges: Array<Range>, data: any): void;
26
- handleSuggestionDescription(suggestion: Suggestion): Description | undefined;
27
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module track-changes/integrations/tableproperties
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';
12
+ /**
13
+ * Provides track changes plugin integration for table properties feature.
14
+ */
15
+ export default class TrackChangesTableProperties extends Plugin {
16
+ constructor(editor: Editor);
17
+ /**
18
+ * @inheritDoc
19
+ */
20
+ static get pluginName(): "TrackChangesTableProperties";
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ afterInit(): void;
25
+ handleDiscardAction(properties: Array<string>, ranges: Array<Range>, data: any): void;
26
+ handleSuggestionDescription(suggestion: Suggestion): Description | undefined;
27
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xf0b2=['_getSuggestion','tableCellProperties','commandParams','registerCustomCallback','document','*Format:*\x20change\x20table\x20cell\x20properties','afterInit','locale','handleDiscardAction','tableCellVerticalAlignment','setAttribute','tableCellPadding','enableCommand','data','nodeAfter','change','findAncestor','accept','tableWidth','subType','tableCellHeight','plugins','_descriptionFactory','tableBorderStyle','tableCellBorderWidth','*Format:*\x20change\x20table\x20properties','model','tableAlignment','has','tableCellBorderStyle','_handlePropertyChange','tableBackgroundColor','tableBorderWidth','getSuggestionCallback','tableProperties','discard','tableCellWidth','getContainedElement','TableUtils','TablePropertiesEditing','formatBlock','removeAttribute','editor','get','batch','pluginName','handleSuggestionDescription','_suggestionFactory','enqueueChange','selection','getFirstPosition','tableCellBackgroundColor','TrackChangesEditing','join','TrackChangesTableProperties','table'];(function(_0x32c8f7,_0xf0b233){const _0x4aadca=function(_0x546365){while(--_0x546365){_0x32c8f7['push'](_0x32c8f7['shift']());}};_0x4aadca(++_0xf0b233);}(_0xf0b2,0x139));const _0x4aad=function(_0x32c8f7,_0xf0b233){_0x32c8f7=_0x32c8f7-0x0;let _0x4aadca=_0xf0b2[_0x32c8f7];return _0x4aadca;};import{Plugin as _0x305669}from'ckeditor5/src/core';import{getTranslation as _0x678263}from'../utils/common-translations';export default class Ct extends _0x305669{constructor(_0x4f4fbd){super(_0x4f4fbd),this['tableProperties']=['tableBorderColor',_0x4aad('0x2e'),_0x4aad('0x37'),_0x4aad('0x32'),_0x4aad('0x29'),'tableHeight',_0x4aad('0x36')],this[_0x4aad('0x18')]=['tableCellBorderColor',_0x4aad('0x34'),_0x4aad('0x2f'),_0x4aad('0x22'),_0x4aad('0x3'),_0x4aad('0x2b'),_0x4aad('0x12'),'tableCellHorizontalAlignment',_0x4aad('0x20')];}static get[_0x4aad('0xc')](){return _0x4aad('0x15');}[_0x4aad('0x1d')](){const _0x430211=this[_0x4aad('0x9')][_0x4aad('0x2c')]['get'](_0x4aad('0x13'));if(this[_0x4aad('0x9')][_0x4aad('0x2c')][_0x4aad('0x33')](_0x4aad('0x6'))){for(const _0x59343a of this[_0x4aad('0x1')])_0x430211[_0x4aad('0x23')](_0x59343a,(_0x4d7d35,_0xfc0243)=>{const _0x5d0868=this[_0x4aad('0x9')][_0x4aad('0x31')][_0x4aad('0x1b')][_0x4aad('0x10')][_0x4aad('0x11')]()[_0x4aad('0x27')](_0x4aad('0x16'));this[_0x4aad('0x35')](_0x59343a,[_0x5d0868],this['tableProperties'],_0x4aad('0x1'),_0x4d7d35,_0xfc0243);});_0x430211['_suggestionFactory'][_0x4aad('0x1a')](_0x4aad('0x7'),_0x4aad('0x1'),_0x4aad('0x28'),_0x430211['_suggestionFactory'][_0x4aad('0x0')]('formatBlock',null,'discard')),_0x430211[_0x4aad('0xe')][_0x4aad('0x1a')](_0x4aad('0x7'),_0x4aad('0x1'),_0x4aad('0x2'),(_0x136f31,_0x34597b)=>this[_0x4aad('0x1f')](this[_0x4aad('0x1')],_0x136f31,_0x34597b)),_0x430211[_0x4aad('0xe')][_0x4aad('0x1a')]('formatBlock',_0x4aad('0x1'),_0x4aad('0x14'),()=>!0x1);}if(this[_0x4aad('0x9')][_0x4aad('0x2c')][_0x4aad('0x33')]('TableCellPropertiesEditing')){for(const _0x5f2646 of this['tableCellProperties'])_0x430211[_0x4aad('0x23')](_0x5f2646,(_0x10c7f7,_0xce761a)=>{const _0x55e792=this[_0x4aad('0x9')][_0x4aad('0x2c')][_0x4aad('0xa')](_0x4aad('0x5'))['getSelectionAffectedTableCells'](this['editor'][_0x4aad('0x31')][_0x4aad('0x1b')]['selection']);this[_0x4aad('0x35')](_0x5f2646,_0x55e792,this[_0x4aad('0x18')],_0x4aad('0x18'),_0x10c7f7,_0xce761a);});_0x430211['_suggestionFactory'][_0x4aad('0x1a')](_0x4aad('0x7'),_0x4aad('0x18'),'accept',_0x430211[_0x4aad('0xe')][_0x4aad('0x0')](_0x4aad('0x7'),null,_0x4aad('0x2'))),_0x430211[_0x4aad('0xe')][_0x4aad('0x1a')]('formatBlock',_0x4aad('0x18'),_0x4aad('0x2'),(_0x2df51f,_0x552f2b)=>this[_0x4aad('0x1f')](this[_0x4aad('0x18')],_0x2df51f,_0x552f2b)),_0x430211[_0x4aad('0xe')][_0x4aad('0x1a')](_0x4aad('0x7'),_0x4aad('0x18'),'join',()=>!0x1);}_0x430211[_0x4aad('0x2d')]['registerDescriptionCallback'](_0xa488a6=>this['handleSuggestionDescription'](_0xa488a6));}[_0x4aad('0x35')](_0x497d61,_0x3f06cd,_0x245f73,_0x4e474d,_0x189a76,_0x2e5d4f){const _0x29737f=this[_0x4aad('0x9')]['plugins'][_0x4aad('0xa')](_0x4aad('0x13'));this['editor'][_0x4aad('0x31')][_0x4aad('0xf')](_0x2e5d4f[_0x4aad('0xb')],()=>{for(const _0x5bebd2 of _0x3f06cd){if(this[_0x4aad('0x17')](_0x5bebd2,_0x4e474d))_0x189a76(_0x2e5d4f);else{const _0x355da2={};for(const _0x2344d9 of _0x245f73){const _0x29df9f=_0x5bebd2['getAttribute'](_0x2344d9);void 0x0!==_0x29df9f&&(_0x355da2[_0x2344d9]=_0x29df9f);}_0x189a76(_0x2e5d4f),_0x29737f['markBlockFormat'](_0x5bebd2,{'commandParams':[_0x355da2]},[],_0x4e474d);}}});}[_0x4aad('0x1f')](_0x169122,_0x555e8d,_0x38d78e){const _0x4911f3=_0x555e8d[0x0]['start'][_0x4aad('0x25')],_0x5dcf6d=_0x38d78e[_0x4aad('0x19')][0x0];this[_0x4aad('0x9')]['model'][_0x4aad('0x26')](_0x52fc80=>{for(const _0x99aac5 of _0x169122)void 0x0!==_0x5dcf6d[_0x99aac5]?_0x52fc80[_0x4aad('0x21')](_0x99aac5,_0x5dcf6d[_0x99aac5],_0x4911f3):_0x52fc80[_0x4aad('0x8')](_0x99aac5,_0x4911f3);});}[_0x4aad('0xd')](_0x1fe363){if(_0x1fe363[_0x4aad('0x24')])switch(_0x1fe363[_0x4aad('0x2a')]){case _0x4aad('0x1'):return{'type':'format','content':_0x678263(this[_0x4aad('0x9')][_0x4aad('0x1e')],_0x4aad('0x30'))};case _0x4aad('0x18'):return{'type':'format','content':_0x678263(this[_0x4aad('0x9')][_0x4aad('0x1e')],_0x4aad('0x1c'))};}}[_0x4aad('0x17')](_0x496426,_0x235484){const _0x28013d=this[_0x4aad('0x9')][_0x4aad('0x2c')][_0x4aad('0xa')](_0x4aad('0x13'));for(const _0x5242e8 of _0x28013d['getSuggestions']({'skipNotAttached':!0x0})){const _0xbeef78=_0x5242e8[_0x4aad('0x4')]();if(_0x5242e8[_0x4aad('0x2a')]===_0x235484&&_0xbeef78===_0x496426)return _0x5242e8;}return null;}}
23
+ const _0x1810=['tableCellBorderStyle','accept','document','tableCellVerticalAlignment','setAttribute','handleSuggestionDescription','TrackChangesEditing','plugins','get','registerDescriptionCallback','change','TableUtils','tableCellHorizontalAlignment','getSuggestions','commandParams','tableCellWidth','subType','has','formatBlock','handleDiscardAction','*Format:*\x20change\x20table\x20properties','TableCellPropertiesEditing','removeAttribute','tableCellProperties','start','table','join','registerCustomCallback','enableCommand','tableCellBorderColor','tableCellBackgroundColor','_suggestionFactory','enqueueChange','_handlePropertyChange','editor','selection','getAttribute','getSuggestionCallback','getFirstPosition','nodeAfter','locale','TrackChangesTableProperties','tableCellBorderWidth','discard','pluginName','tableProperties','tableHeight','*Format:*\x20change\x20table\x20cell\x20properties','tableBorderColor','getContainedElement','TablePropertiesEditing','tableWidth','model','data','format','_getSuggestion'];(function(_0x4ec658,_0x18109a){const _0x554806=function(_0x293fc1){while(--_0x293fc1){_0x4ec658['push'](_0x4ec658['shift']());}};_0x554806(++_0x18109a);}(_0x1810,0x1af));const _0x5548=function(_0x4ec658,_0x18109a){_0x4ec658=_0x4ec658-0x0;let _0x554806=_0x1810[_0x4ec658];return _0x554806;};import{Plugin as _0x1f7e24}from'ckeditor5/src/core';import{getTranslation as _0x5d6771}from'../utils/common-translations';export default class Dt extends _0x1f7e24{constructor(_0x1ce6db){super(_0x1ce6db),this[_0x5548('0x6')]=[_0x5548('0x9'),'tableBorderStyle','tableBorderWidth','tableAlignment',_0x5548('0xc'),_0x5548('0x7'),'tableBackgroundColor'],this['tableCellProperties']=[_0x5548('0x2e'),_0x5548('0x11'),_0x5548('0x3'),'tableCellPadding',_0x5548('0x20'),'tableCellHeight',_0x5548('0x2f'),_0x5548('0x1d'),_0x5548('0x14')];}static get[_0x5548('0x5')](){return _0x5548('0x2');}['afterInit'](){const _0xc0cd4a=this[_0x5548('0x33')][_0x5548('0x18')][_0x5548('0x19')](_0x5548('0x17'));if(this[_0x5548('0x33')][_0x5548('0x18')]['has'](_0x5548('0xb'))){for(const _0x2c11c4 of this[_0x5548('0x6')])_0xc0cd4a[_0x5548('0x2d')](_0x2c11c4,(_0x296f79,_0x369fe1)=>{const _0x1d2756=this[_0x5548('0x33')][_0x5548('0xd')][_0x5548('0x13')]['selection'][_0x5548('0x37')]()['findAncestor'](_0x5548('0x2a'));this[_0x5548('0x32')](_0x2c11c4,[_0x1d2756],this[_0x5548('0x6')],_0x5548('0x6'),_0x296f79,_0x369fe1);});_0xc0cd4a[_0x5548('0x30')][_0x5548('0x2c')](_0x5548('0x23'),'tableProperties',_0x5548('0x12'),_0xc0cd4a[_0x5548('0x30')][_0x5548('0x36')]('formatBlock',null,'discard')),_0xc0cd4a[_0x5548('0x30')][_0x5548('0x2c')]('formatBlock',_0x5548('0x6'),_0x5548('0x4'),(_0x2cb97e,_0x44d765)=>this[_0x5548('0x24')](this['tableProperties'],_0x2cb97e,_0x44d765)),_0xc0cd4a[_0x5548('0x30')][_0x5548('0x2c')](_0x5548('0x23'),_0x5548('0x6'),'join',()=>!0x1);}if(this[_0x5548('0x33')]['plugins'][_0x5548('0x22')](_0x5548('0x26'))){for(const _0x598bcd of this[_0x5548('0x28')])_0xc0cd4a[_0x5548('0x2d')](_0x598bcd,(_0x301e77,_0xdc8781)=>{const _0x5444ea=this[_0x5548('0x33')]['plugins']['get'](_0x5548('0x1c'))['getSelectionAffectedTableCells'](this[_0x5548('0x33')][_0x5548('0xd')][_0x5548('0x13')][_0x5548('0x34')]);this[_0x5548('0x32')](_0x598bcd,_0x5444ea,this[_0x5548('0x28')],'tableCellProperties',_0x301e77,_0xdc8781);});_0xc0cd4a[_0x5548('0x30')]['registerCustomCallback'](_0x5548('0x23'),_0x5548('0x28'),_0x5548('0x12'),_0xc0cd4a['_suggestionFactory'][_0x5548('0x36')]('formatBlock',null,_0x5548('0x4'))),_0xc0cd4a[_0x5548('0x30')][_0x5548('0x2c')](_0x5548('0x23'),_0x5548('0x28'),_0x5548('0x4'),(_0x497c85,_0xff492f)=>this[_0x5548('0x24')](this[_0x5548('0x28')],_0x497c85,_0xff492f)),_0xc0cd4a[_0x5548('0x30')]['registerCustomCallback']('formatBlock',_0x5548('0x28'),_0x5548('0x2b'),()=>!0x1);}_0xc0cd4a['_descriptionFactory'][_0x5548('0x1a')](_0xef0daa=>this[_0x5548('0x16')](_0xef0daa));}['_handlePropertyChange'](_0xad561b,_0x1c1269,_0x40d076,_0x10ef7c,_0x136ef9,_0x517413){const _0x1930b6=this[_0x5548('0x33')][_0x5548('0x18')][_0x5548('0x19')](_0x5548('0x17'));this[_0x5548('0x33')]['model'][_0x5548('0x31')](_0x517413['batch'],()=>{for(const _0x22944a of _0x1c1269){if(this[_0x5548('0x10')](_0x22944a,_0x10ef7c))_0x136ef9(_0x517413);else{const _0x29e807={};for(const _0x49ac8b of _0x40d076){const _0x4b0aa5=_0x22944a[_0x5548('0x35')](_0x49ac8b);void 0x0!==_0x4b0aa5&&(_0x29e807[_0x49ac8b]=_0x4b0aa5);}_0x136ef9(_0x517413),_0x1930b6['markBlockFormat'](_0x22944a,{'commandParams':[_0x29e807]},[],_0x10ef7c);}}});}[_0x5548('0x24')](_0x24c5cd,_0x29a8e5,_0x37f717){const _0x4ae80f=_0x29a8e5[0x0][_0x5548('0x29')][_0x5548('0x0')],_0x24e5ba=_0x37f717[_0x5548('0x1f')][0x0];this[_0x5548('0x33')][_0x5548('0xd')][_0x5548('0x1b')](_0xab37ae=>{for(const _0x470213 of _0x24c5cd)void 0x0!==_0x24e5ba[_0x470213]?_0xab37ae[_0x5548('0x15')](_0x470213,_0x24e5ba[_0x470213],_0x4ae80f):_0xab37ae[_0x5548('0x27')](_0x470213,_0x4ae80f);});}[_0x5548('0x16')](_0x2e65fb){if(_0x2e65fb[_0x5548('0xe')])switch(_0x2e65fb['subType']){case _0x5548('0x6'):return{'type':'format','content':_0x5d6771(this['editor'][_0x5548('0x1')],_0x5548('0x25'))};case'tableCellProperties':return{'type':_0x5548('0xf'),'content':_0x5d6771(this['editor']['locale'],_0x5548('0x8'))};}}[_0x5548('0x10')](_0xe9bf5d,_0x1251a6){const _0x18c38f=this[_0x5548('0x33')][_0x5548('0x18')][_0x5548('0x19')]('TrackChangesEditing');for(const _0x32e39b of _0x18c38f[_0x5548('0x1e')]({'skipNotAttached':!0x0})){const _0x3f52cb=_0x32e39b[_0x5548('0xa')]();if(_0x32e39b[_0x5548('0x21')]===_0x1251a6&&_0x3f52cb===_0xe9bf5d)return _0x32e39b;}return null;}}
@@ -1,17 +1,17 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module track-changes/integrations/template
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- /**
10
- * Provides track changes plugin integration for template feature.
11
- */
12
- export default class TrackChangesTemplate extends Plugin {
13
- /**
14
- * @inheritDoc
15
- */
16
- afterInit(): void;
17
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module track-changes/integrations/template
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ /**
10
+ * Provides track changes plugin integration for template feature.
11
+ */
12
+ export default class TrackChangesTemplate extends Plugin {
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ afterInit(): void;
17
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4657=['TrackChangesEditing','has','editor','plugins','afterInit','Template','insertTemplate'];(function(_0x114d6a,_0x46573e){const _0x37d67b=function(_0x529d09){while(--_0x529d09){_0x114d6a['push'](_0x114d6a['shift']());}};_0x37d67b(++_0x46573e);}(_0x4657,0xac));const _0x37d6=function(_0x114d6a,_0x46573e){_0x114d6a=_0x114d6a-0x0;let _0x37d67b=_0x4657[_0x114d6a];return _0x37d67b;};import{Plugin as _0x26b39b}from'ckeditor5/src/core';export default class yt extends _0x26b39b{[_0x37d6('0x0')](){const _0x2f911f=this[_0x37d6('0x5')];_0x2f911f['plugins'][_0x37d6('0x4')](_0x37d6('0x1'))&&_0x2f911f[_0x37d6('0x6')]['get'](_0x37d6('0x3'))['enableCommand'](_0x37d6('0x2'));}}
23
+ const _0x3bb2=['get','plugins','enableCommand','insertTemplate','TrackChangesEditing','has','afterInit','Template'];(function(_0x1eb90d,_0x3bb290){const _0x3767be=function(_0x54b222){while(--_0x54b222){_0x1eb90d['push'](_0x1eb90d['shift']());}};_0x3767be(++_0x3bb290);}(_0x3bb2,0xe5));const _0x3767=function(_0x1eb90d,_0x3bb290){_0x1eb90d=_0x1eb90d-0x0;let _0x3767be=_0x3bb2[_0x1eb90d];return _0x3767be;};import{Plugin as _0x3cfb40}from'ckeditor5/src/core';export default class bt extends _0x3cfb40{[_0x3767('0x1')](){const _0x50fa63=this['editor'];_0x50fa63[_0x3767('0x4')][_0x3767('0x0')](_0x3767('0x2'))&&_0x50fa63[_0x3767('0x4')][_0x3767('0x3')](_0x3767('0x7'))[_0x3767('0x5')](_0x3767('0x6'));}}
@@ -1,17 +1,17 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module track-changes/integrations/title
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- /**
10
- * Provides track changes plugin integration for title feature.
11
- */
12
- export default class TrackChangesTitle extends Plugin {
13
- /**
14
- * @inheritDoc
15
- */
16
- afterInit(): void;
17
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module track-changes/integrations/title
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ /**
10
+ * Provides track changes plugin integration for title feature.
11
+ */
12
+ export default class TrackChangesTitle extends Plugin {
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ afterInit(): void;
17
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3d87=['document','registerElementLabel','locale','forward','has','title-content','ELEMENT_TITLE','TrackChangesEditing','nodeBefore','removeMarker','isTouching','from','Title','registerPostFixer','_descriptionFactory','newRange','editor','isCollapsed','differ','end','isEqual','get','model','afterInit','element','suggestion','start','plugins'];(function(_0x3fcf64,_0x3d8708){const _0x56dcc=function(_0x4ebb49){while(--_0x4ebb49){_0x3fcf64['push'](_0x3fcf64['shift']());}};_0x56dcc(++_0x3d8708);}(_0x3d87,0x170));const _0x56dc=function(_0x3fcf64,_0x3d8708){_0x3fcf64=_0x3fcf64-0x0;let _0x56dcc=_0x3d87[_0x3fcf64];return _0x56dcc;};import{Plugin as _0x2fcf20}from'ckeditor5/src/core';import{getTranslation as _0x1d6015}from'../utils/common-translations';export default class St extends _0x2fcf20{[_0x56dc('0x13')](){const _0x2d262e=this[_0x56dc('0xc')];if(!_0x2d262e[_0x56dc('0x17')][_0x56dc('0x0')](_0x56dc('0x8')))return;const _0x4477fc=_0x2d262e[_0x56dc('0x17')][_0x56dc('0x11')](_0x56dc('0x3'));_0x4477fc[_0x56dc('0xa')][_0x56dc('0x19')](_0x56dc('0x1'),()=>_0x1d6015(_0x2d262e[_0x56dc('0x1a')],_0x56dc('0x2'))),_0x2d262e[_0x56dc('0x12')]['document'][_0x56dc('0x9')](_0x1504f8=>{let _0x2c8eb1=!0x1;const _0xaba6a0=Array[_0x56dc('0x7')](_0x2d262e[_0x56dc('0x12')][_0x56dc('0x18')][_0x56dc('0xe')]['getChangedMarkers']());for(const {name:_0x5a3525,data:_0x58f086}of _0xaba6a0){const {group:_0x591c84}=_0x4477fc['_splitMarkerName'](_0x5a3525);if(_0x56dc('0x15')!==_0x591c84||!_0x58f086['newRange'])continue;const _0x22e7cd=_0x58f086[_0x56dc('0xb')],_0x336648=_0x22e7cd[_0x56dc('0xf')][_0x56dc('0x4')];if(!_0x336648||!_0x336648['is'](_0x56dc('0x14'),_0x56dc('0x1')))continue;if(!_0x22e7cd[_0x56dc('0x16')][_0x56dc('0x6')](_0x22e7cd['end']))continue;const _0xdce3a8=_0x2d262e[_0x56dc('0x12')]['schema']['getNearestSelectionRange'](_0x22e7cd['end'],_0x56dc('0x1b'));if(_0xdce3a8&&_0xdce3a8[_0x56dc('0xd')]){const _0x37fba5=_0x1504f8['createRange'](_0x22e7cd['start'],_0xdce3a8['start']);_0x37fba5[_0x56dc('0x10')](_0x22e7cd)||(_0x1504f8['updateMarker'](_0x5a3525,{'range':_0x37fba5}),_0x2c8eb1=!0x0);}_0x2c8eb1||(_0x1504f8[_0x56dc('0x5')](_0x5a3525),_0x2c8eb1=!0x0);}return _0x2c8eb1;});}}
23
+ const _0xbf94=['_splitMarkerName','isCollapsed','createRange','newRange','TrackChangesEditing','from','locale','plugins','end','afterInit','title-content','getChangedMarkers','suggestion','get','nodeBefore','forward','registerElementLabel','Title','element','differ','isEqual','model','document','ELEMENT_TITLE','schema','isTouching','start','removeMarker','editor'];(function(_0x1ef500,_0xbf941a){const _0x52e255=function(_0x39219f){while(--_0x39219f){_0x1ef500['push'](_0x1ef500['shift']());}};_0x52e255(++_0xbf941a);}(_0xbf94,0xe6));const _0x52e2=function(_0x1ef500,_0xbf941a){_0x1ef500=_0x1ef500-0x0;let _0x52e255=_0xbf94[_0x1ef500];return _0x52e255;};import{Plugin as _0x11fbd8}from'ckeditor5/src/core';import{getTranslation as _0x4756bb}from'../utils/common-translations';export default class It extends _0x11fbd8{[_0x52e2('0xb')](){const _0x3be69a=this[_0x52e2('0x1')];if(!_0x3be69a[_0x52e2('0x9')]['has'](_0x52e2('0x13')))return;const _0xe73945=_0x3be69a[_0x52e2('0x9')][_0x52e2('0xf')](_0x52e2('0x6'));_0xe73945['_descriptionFactory'][_0x52e2('0x12')]('title-content',()=>_0x4756bb(_0x3be69a[_0x52e2('0x8')],_0x52e2('0x19'))),_0x3be69a[_0x52e2('0x17')][_0x52e2('0x18')]['registerPostFixer'](_0x24c6ec=>{let _0x1c93f6=!0x1;const _0x214e3f=Array[_0x52e2('0x7')](_0x3be69a[_0x52e2('0x17')][_0x52e2('0x18')][_0x52e2('0x15')][_0x52e2('0xd')]());for(const {name:_0x37ea49,data:_0x44d40f}of _0x214e3f){const {group:_0x348d8d}=_0xe73945[_0x52e2('0x2')](_0x37ea49);if(_0x52e2('0xe')!==_0x348d8d||!_0x44d40f['newRange'])continue;const _0x7ab21e=_0x44d40f[_0x52e2('0x5')],_0x58f93a=_0x7ab21e[_0x52e2('0xa')][_0x52e2('0x10')];if(!_0x58f93a||!_0x58f93a['is'](_0x52e2('0x14'),_0x52e2('0xc')))continue;if(!_0x7ab21e[_0x52e2('0x1c')][_0x52e2('0x1b')](_0x7ab21e[_0x52e2('0xa')]))continue;const _0x25c77d=_0x3be69a[_0x52e2('0x17')][_0x52e2('0x1a')]['getNearestSelectionRange'](_0x7ab21e[_0x52e2('0xa')],_0x52e2('0x11'));if(_0x25c77d&&_0x25c77d[_0x52e2('0x3')]){const _0x547a1c=_0x24c6ec[_0x52e2('0x4')](_0x7ab21e[_0x52e2('0x1c')],_0x25c77d[_0x52e2('0x1c')]);_0x547a1c[_0x52e2('0x16')](_0x7ab21e)||(_0x24c6ec['updateMarker'](_0x37ea49,{'range':_0x547a1c}),_0x1c93f6=!0x0);}_0x1c93f6||(_0x24c6ec[_0x52e2('0x0')](_0x37ea49),_0x1c93f6=!0x0);}return _0x1c93f6;});}}