@ckeditor/ckeditor5-track-changes 38.2.0-alpha.0 → 39.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 (137) hide show
  1. package/README.md +0 -1
  2. package/build/track-changes.js +1 -1
  3. package/build/translations/gl.js +1 -1
  4. package/build/translations/sq.js +1 -0
  5. package/lang/translations/gl.po +23 -23
  6. package/lang/translations/sq.po +487 -0
  7. package/package.json +4 -5
  8. package/src/augmentation.d.ts +4 -0
  9. package/src/augmentation.js +1 -1
  10. package/src/commands/acceptsuggestioncommand.d.ts +4 -0
  11. package/src/commands/acceptsuggestioncommand.js +2 -2
  12. package/src/commands/discardsuggestioncommand.d.ts +4 -0
  13. package/src/commands/discardsuggestioncommand.js +2 -2
  14. package/src/commands/executeonallsuggestionscommand.d.ts +4 -0
  15. package/src/commands/executeonallsuggestionscommand.js +2 -2
  16. package/src/commands/executeonselectedsuggestionscommand.d.ts +4 -0
  17. package/src/commands/executeonselectedsuggestionscommand.js +2 -2
  18. package/src/commands/trackchangescommand.d.ts +4 -0
  19. package/src/commands/trackchangescommand.js +2 -2
  20. package/src/index.d.ts +4 -0
  21. package/src/index.js +1 -1
  22. package/src/integrations/alignment.d.ts +4 -0
  23. package/src/integrations/alignment.js +2 -2
  24. package/src/integrations/basicstyles.d.ts +4 -0
  25. package/src/integrations/basicstyles.js +2 -2
  26. package/src/integrations/blockquote.d.ts +4 -0
  27. package/src/integrations/blockquote.js +2 -2
  28. package/src/integrations/ckbox.d.ts +4 -0
  29. package/src/integrations/ckbox.js +2 -2
  30. package/src/integrations/codeblock.d.ts +4 -0
  31. package/src/integrations/codeblock.js +2 -2
  32. package/src/integrations/comments.d.ts +4 -0
  33. package/src/integrations/comments.js +2 -2
  34. package/src/integrations/deletecommand.d.ts +4 -0
  35. package/src/integrations/deletecommand.js +2 -2
  36. package/src/integrations/documentlist.d.ts +4 -0
  37. package/src/integrations/documentlist.js +2 -2
  38. package/src/integrations/documentlistproperties.d.ts +4 -0
  39. package/src/integrations/documentlistproperties.js +2 -2
  40. package/src/integrations/entercommand.d.ts +4 -0
  41. package/src/integrations/entercommand.js +2 -2
  42. package/src/integrations/findandreplace.d.ts +4 -0
  43. package/src/integrations/findandreplace.js +2 -2
  44. package/src/integrations/font.d.ts +4 -0
  45. package/src/integrations/font.js +2 -2
  46. package/src/integrations/formatpainter.d.ts +4 -0
  47. package/src/integrations/formatpainter.js +2 -2
  48. package/src/integrations/heading.d.ts +4 -0
  49. package/src/integrations/heading.js +2 -2
  50. package/src/integrations/highlight.d.ts +4 -0
  51. package/src/integrations/highlight.js +2 -2
  52. package/src/integrations/horizontalline.d.ts +4 -0
  53. package/src/integrations/horizontalline.js +2 -2
  54. package/src/integrations/htmlembed.d.ts +4 -0
  55. package/src/integrations/htmlembed.js +2 -2
  56. package/src/integrations/image.d.ts +4 -0
  57. package/src/integrations/image.js +2 -2
  58. package/src/integrations/imagereplace.d.ts +4 -0
  59. package/src/integrations/imagereplace.js +2 -2
  60. package/src/integrations/importword.d.ts +4 -0
  61. package/src/integrations/importword.js +2 -2
  62. package/src/integrations/indent.d.ts +4 -0
  63. package/src/integrations/indent.js +2 -2
  64. package/src/integrations/inputcommand.d.ts +4 -0
  65. package/src/integrations/inputcommand.js +2 -2
  66. package/src/integrations/link.d.ts +4 -0
  67. package/src/integrations/link.js +2 -2
  68. package/src/integrations/list.d.ts +4 -0
  69. package/src/integrations/list.js +2 -2
  70. package/src/integrations/listproperties.d.ts +4 -0
  71. package/src/integrations/listproperties.js +2 -2
  72. package/src/integrations/mediaembed.d.ts +4 -0
  73. package/src/integrations/mediaembed.js +2 -2
  74. package/src/integrations/mention.d.ts +4 -0
  75. package/src/integrations/mention.js +2 -2
  76. package/src/integrations/pagebreak.d.ts +4 -0
  77. package/src/integrations/pagebreak.js +2 -2
  78. package/src/integrations/paragraph.d.ts +4 -0
  79. package/src/integrations/paragraph.js +2 -2
  80. package/src/integrations/removeformat.d.ts +4 -0
  81. package/src/integrations/removeformat.js +2 -2
  82. package/src/integrations/restrictededitingmode.d.ts +4 -0
  83. package/src/integrations/restrictededitingmode.js +2 -2
  84. package/src/integrations/shiftentercommand.d.ts +4 -0
  85. package/src/integrations/shiftentercommand.js +2 -2
  86. package/src/integrations/standardeditingmode.d.ts +4 -0
  87. package/src/integrations/standardeditingmode.js +2 -2
  88. package/src/integrations/style.d.ts +4 -0
  89. package/src/integrations/style.js +2 -2
  90. package/src/integrations/table.d.ts +4 -0
  91. package/src/integrations/table.js +2 -2
  92. package/src/integrations/tablecaption.d.ts +4 -0
  93. package/src/integrations/tablecaption.js +2 -2
  94. package/src/integrations/tableclipboard.d.ts +2 -1
  95. package/src/integrations/tableclipboard.js +2 -2
  96. package/src/integrations/tablecolumnresize.d.ts +4 -0
  97. package/src/integrations/tablecolumnresize.js +2 -2
  98. package/src/integrations/tableheadings.d.ts +4 -0
  99. package/src/integrations/tableheadings.js +2 -2
  100. package/src/integrations/tablemergesplit.d.ts +4 -0
  101. package/src/integrations/tablemergesplit.js +2 -2
  102. package/src/integrations/tableofcontents.d.ts +4 -0
  103. package/src/integrations/tableofcontents.js +2 -2
  104. package/src/integrations/tableproperties.d.ts +4 -0
  105. package/src/integrations/tableproperties.js +2 -2
  106. package/src/integrations/template.d.ts +4 -0
  107. package/src/integrations/template.js +2 -2
  108. package/src/integrations/title.d.ts +4 -0
  109. package/src/integrations/title.js +2 -2
  110. package/src/integrations/undo.d.ts +4 -0
  111. package/src/integrations/undo.js +2 -2
  112. package/src/integrations/utils.d.ts +4 -0
  113. package/src/integrations/utils.js +2 -2
  114. package/src/suggestion.d.ts +11 -1
  115. package/src/suggestion.js +2 -2
  116. package/src/suggestiondescriptionfactory.d.ts +14 -2
  117. package/src/suggestiondescriptionfactory.js +2 -2
  118. package/src/trackchanges.d.ts +4 -0
  119. package/src/trackchanges.js +2 -2
  120. package/src/trackchangesconfig.d.ts +4 -0
  121. package/src/trackchangesconfig.js +1 -1
  122. package/src/trackchangesdata.d.ts +6 -2
  123. package/src/trackchangesdata.js +2 -2
  124. package/src/trackchangesediting.d.ts +4 -0
  125. package/src/trackchangesediting.js +2 -2
  126. package/src/trackchangesui.d.ts +4 -0
  127. package/src/trackchangesui.js +2 -2
  128. package/src/ui/suggestioncontroller.d.ts +2 -1
  129. package/src/ui/suggestioncontroller.js +2 -2
  130. package/src/ui/view/basesuggestionthreadview.d.ts +4 -0
  131. package/src/ui/view/basesuggestionthreadview.js +2 -2
  132. package/src/ui/view/suggestionthreadview.d.ts +2 -2
  133. package/src/ui/view/suggestionthreadview.js +2 -2
  134. package/src/utils/common-translations.d.ts +4 -0
  135. package/src/utils/common-translations.js +2 -2
  136. package/src/utils/utils.d.ts +4 -0
  137. package/src/utils/utils.js +2 -2
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, 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 _0x1ff7=['forward','title-content','ELEMENT_TITLE','registerPostFixer','TrackChangesEditing','plugins','schema','isTouching','locale','Title','isEqual','suggestion','has','model','getNearestSelectionRange','getChangedMarkers','isCollapsed','element','document','start','get','end','differ','nodeBefore','registerElementLabel','removeMarker'];(function(_0x2c0521,_0x1ff778){const _0x460ad9=function(_0x4e84ed){while(--_0x4e84ed){_0x2c0521['push'](_0x2c0521['shift']());}};_0x460ad9(++_0x1ff778);}(_0x1ff7,0x11d));const _0x460a=function(_0x2c0521,_0x1ff778){_0x2c0521=_0x2c0521-0x0;let _0x460ad9=_0x1ff7[_0x2c0521];return _0x460ad9;};import{Plugin as _0x57b0fd}from'ckeditor5/src/core';import{getTranslation as _0x54df50}from'../utils/common-translations';export default class St extends _0x57b0fd{['afterInit'](){const _0x1194e2=this['editor'];if(!_0x1194e2[_0x460a('0x6')][_0x460a('0xd')](_0x460a('0xa')))return;const _0x32c74f=_0x1194e2[_0x460a('0x6')][_0x460a('0x15')](_0x460a('0x5'));_0x32c74f['_descriptionFactory'][_0x460a('0x19')](_0x460a('0x2'),()=>_0x54df50(_0x1194e2[_0x460a('0x9')],_0x460a('0x3'))),_0x1194e2[_0x460a('0xe')][_0x460a('0x13')][_0x460a('0x4')](_0x23b8c4=>{let _0x47f9d0=!0x1;const _0xfb881c=Array['from'](_0x1194e2['model'][_0x460a('0x13')][_0x460a('0x17')][_0x460a('0x10')]());for(const {name:_0x3ceb8f,data:_0x4d2981}of _0xfb881c){const {group:_0x257f4d}=_0x32c74f['_splitMarkerName'](_0x3ceb8f);if(_0x460a('0xc')!==_0x257f4d||!_0x4d2981['newRange'])continue;const _0xadc7d9=_0x4d2981['newRange'],_0x31dd1b=_0xadc7d9['end'][_0x460a('0x18')];if(!_0x31dd1b||!_0x31dd1b['is'](_0x460a('0x12'),_0x460a('0x2')))continue;if(!_0xadc7d9[_0x460a('0x14')][_0x460a('0x8')](_0xadc7d9[_0x460a('0x16')]))continue;const _0x13274c=_0x1194e2['model'][_0x460a('0x7')][_0x460a('0xf')](_0xadc7d9[_0x460a('0x16')],_0x460a('0x1'));if(_0x13274c&&_0x13274c[_0x460a('0x11')]){const _0x5f3d74=_0x23b8c4['createRange'](_0xadc7d9[_0x460a('0x14')],_0x13274c[_0x460a('0x14')]);_0x5f3d74[_0x460a('0xb')](_0xadc7d9)||(_0x23b8c4['updateMarker'](_0x3ceb8f,{'range':_0x5f3d74}),_0x47f9d0=!0x0);}_0x47f9d0||(_0x23b8c4[_0x460a('0x0')](_0x3ceb8f),_0x47f9d0=!0x0);}return _0x47f9d0;});}}
23
+ const _0x375e=['title-content','isCollapsed','removeMarker','differ','isEqual','start','plugins','nodeBefore','from','locale','Title','getChangedMarkers','_descriptionFactory','TrackChangesEditing','has','getNearestSelectionRange','newRange','afterInit','model','document','end','ELEMENT_TITLE','updateMarker','element','get','editor','createRange','suggestion'];(function(_0x59f51a,_0x375e0b){const _0x1701b7=function(_0x26974d){while(--_0x26974d){_0x59f51a['push'](_0x59f51a['shift']());}};_0x1701b7(++_0x375e0b);}(_0x375e,0x1de));const _0x1701=function(_0x59f51a,_0x375e0b){_0x59f51a=_0x59f51a-0x0;let _0x1701b7=_0x375e[_0x59f51a];return _0x1701b7;};import{Plugin as _0x26b2e0}from'ckeditor5/src/core';import{getTranslation as _0x30334d}from'../utils/common-translations';export default class St extends _0x26b2e0{[_0x1701('0xf')](){const _0x4b9041=this[_0x1701('0x17')];if(!_0x4b9041['plugins'][_0x1701('0xc')](_0x1701('0x8')))return;const _0x1752e0=_0x4b9041[_0x1701('0x4')][_0x1701('0x16')](_0x1701('0xb'));_0x1752e0[_0x1701('0xa')]['registerElementLabel']('title-content',()=>_0x30334d(_0x4b9041[_0x1701('0x7')],_0x1701('0x13'))),_0x4b9041[_0x1701('0x10')][_0x1701('0x11')]['registerPostFixer'](_0x126219=>{let _0x4b1055=!0x1;const _0x2d8aba=Array[_0x1701('0x6')](_0x4b9041[_0x1701('0x10')][_0x1701('0x11')][_0x1701('0x1')][_0x1701('0x9')]());for(const {name:_0x16c1db,data:_0xeab9f2}of _0x2d8aba){const {group:_0x1517b0}=_0x1752e0['_splitMarkerName'](_0x16c1db);if(_0x1701('0x19')!==_0x1517b0||!_0xeab9f2['newRange'])continue;const _0x9b8314=_0xeab9f2[_0x1701('0xe')],_0x5c1537=_0x9b8314[_0x1701('0x12')][_0x1701('0x5')];if(!_0x5c1537||!_0x5c1537['is'](_0x1701('0x15'),_0x1701('0x1a')))continue;if(!_0x9b8314['start']['isTouching'](_0x9b8314[_0x1701('0x12')]))continue;const _0x17fe05=_0x4b9041[_0x1701('0x10')]['schema'][_0x1701('0xd')](_0x9b8314[_0x1701('0x12')],'forward');if(_0x17fe05&&_0x17fe05[_0x1701('0x1b')]){const _0x433320=_0x126219[_0x1701('0x18')](_0x9b8314[_0x1701('0x3')],_0x17fe05[_0x1701('0x3')]);_0x433320[_0x1701('0x2')](_0x9b8314)||(_0x126219[_0x1701('0x14')](_0x16c1db,{'range':_0x433320}),_0x4b1055=!0x0);}_0x4b1055||(_0x126219[_0x1701('0x0')](_0x16c1db),_0x4b1055=!0x0);}return _0x4b1055;});}}
@@ -1,3 +1,7 @@
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
+ */
1
5
  /**
2
6
  * @module track-changes/integrations/undo
3
7
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, 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 _0x2dbc=['UndoEditing','undo','redo','editor','get','afterInit','plugins','has','enableCommand'];(function(_0x486b22,_0x2dbcaf){const _0x5da1da=function(_0x590d9a){while(--_0x590d9a){_0x486b22['push'](_0x486b22['shift']());}};_0x5da1da(++_0x2dbcaf);}(_0x2dbc,0x194));const _0x5da1=function(_0x486b22,_0x2dbcaf){_0x486b22=_0x486b22-0x0;let _0x5da1da=_0x2dbc[_0x486b22];return _0x5da1da;};import{Plugin as _0x2ee034}from'ckeditor5/src/core';export default class It extends _0x2ee034{[_0x5da1('0x6')](){const _0x276c45=this[_0x5da1('0x4')],_0x57ab1e=_0x276c45[_0x5da1('0x7')][_0x5da1('0x5')]('TrackChangesEditing');_0x276c45['plugins'][_0x5da1('0x8')](_0x5da1('0x1'))&&(_0x57ab1e[_0x5da1('0x0')](_0x5da1('0x2')),_0x57ab1e[_0x5da1('0x0')](_0x5da1('0x3')));}}
23
+ const _0x313f=['undo','redo','get','plugins','editor','enableCommand'];(function(_0x35e011,_0x313f21){const _0x47b6ea=function(_0x2ba9ff){while(--_0x2ba9ff){_0x35e011['push'](_0x35e011['shift']());}};_0x47b6ea(++_0x313f21);}(_0x313f,0x146));const _0x47b6=function(_0x35e011,_0x313f21){_0x35e011=_0x35e011-0x0;let _0x47b6ea=_0x313f[_0x35e011];return _0x47b6ea;};import{Plugin as _0x44babe}from'ckeditor5/src/core';export default class It extends _0x44babe{['afterInit'](){const _0x4521ea=this[_0x47b6('0x2')],_0x1bb8dc=_0x4521ea[_0x47b6('0x1')][_0x47b6('0x0')]('TrackChangesEditing');_0x4521ea[_0x47b6('0x1')]['has']('UndoEditing')&&(_0x1bb8dc[_0x47b6('0x3')](_0x47b6('0x4')),_0x1bb8dc['enableCommand'](_0x47b6('0x5')));}}
@@ -1,3 +1,7 @@
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
+ */
1
5
  import type { Editor } from 'ckeditor5/src/core';
2
6
  import type { Range, Model, Element, DowncastAddMarkerEvent } from 'ckeditor5/src/engine';
3
7
  import type { GetCallback } from 'ckeditor5/src/utils';
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, 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 _0x195b=['model','previousPosition','createUIElement','markerRange','type','getAttribute','bindElementToMarker','getCustomProperty','isContent','toViewElement','test','consumable','markerName','push','element','TrackChangesEditing','nextSibling','createRangeOn','item','insert','isLimit','get','getItems','addHighlight','listItem','isBlock','schema','activeMarkers','includes','toViewPosition','writer','mapper','addClass'];(function(_0xdf3716,_0x195b78){const _0x461594=function(_0x577449){while(--_0x577449){_0xdf3716['push'](_0xdf3716['shift']());}};_0x461594(++_0x195b78);}(_0x195b,0x9e));const _0x4615=function(_0xdf3716,_0x195b78){_0xdf3716=_0xdf3716-0x0;let _0x461594=_0x195b[_0xdf3716];return _0x461594;};export function getRangesWithAttribute(_0x3a47dd,_0x5dff33,_0x9f2a02){const _0x20442c=[];for(const _0x1ecb09 of _0x5dff33[_0x4615('0x1d')]())_0x1ecb09['hasAttribute'](_0x3a47dd)&&_0x20442c[_0x4615('0x14')](_0x9f2a02[_0x4615('0x18')](_0x1ecb09));return _0x20442c;}export function getElementsAffectedByListItemRename(_0x486951){const _0x578529=[];if(_0x486951['is'](_0x4615('0x15'),_0x4615('0x1f'))){let _0xb1836c=_0x486951[_0x4615('0x17')];for(;_0xb1836c&&_0xb1836c['is'](_0x4615('0x15'),'listItem')&&_0xb1836c[_0x4615('0xc')]('listIndent')>0x0;)_0x578529[_0x4615('0x14')](_0xb1836c),_0xb1836c=_0xb1836c[_0x4615('0x17')];}return _0x578529;}export function downcastSplitMergeMarker(_0x44311a,_0x1b4ca9,{showActiveMarker:_0x46aefe=!0x0}={}){const _0x1c0b5c=_0x44311a['plugins'][_0x4615('0x1c')](_0x4615('0x16'));return(_0x2909e3,_0x3fa75b,_0x1efe03)=>{if(!_0x1efe03[_0x4615('0x12')][_0x4615('0x11')](_0x3fa75b[_0x4615('0xa')],_0x2909e3['name']))return;const _0x56537e=_0x3fa75b[_0x4615('0xa')]['getWalker'](),_0x1596d3=_0x3fa75b['markerRange']['start'],_0x435c0b=_0x44311a[_0x4615('0x7')][_0x4615('0x0')];let _0x16c201=null,_0x3f77c1=null,_0x1b9013=!0x1,_0x2ca363=!0x1;for(const _0x235316 of _0x56537e){const _0x4ae464=_0x235316[_0x4615('0x19')];_0x1b9013=_0x1b9013||_0x435c0b[_0x4615('0xf')](_0x4ae464);const _0x1e670d=_0x1efe03[_0x4615('0x5')][_0x4615('0x10')](_0x4ae464);if(_0x1e670d&&_0x1e670d[_0x4615('0xe')](_0x4615('0x1e')))return;'elementEnd'==_0x235316[_0x4615('0xb')]&&(_0x435c0b[_0x4615('0x20')](_0x4ae464)&&!_0x435c0b[_0x4615('0x1b')](_0x4ae464)&&(_0x4ae464['nextSibling']||_0x1596d3['isAtEnd']?_0x16c201&&_0x16c201['parent']==_0x4ae464||(_0x16c201=_0x4ae464,_0x2f1b6e(_0x235316[_0x4615('0x8')]),_0x2ca363=!0x0):_0x3f77c1=_0x3f77c1||_0x235316[_0x4615('0x8')]));}function _0x2f1b6e(_0x4a423e){const _0x3dd16e=_0x1efe03[_0x4615('0x4')][_0x4615('0x9')]('span',{'class':'ck-suggestion-marker-'+_0x1b4ca9}),_0x2bc5e0=_0x1efe03[_0x4615('0x5')][_0x4615('0x3')](_0x4a423e);_0x46aefe&&_0x1c0b5c[_0x4615('0x1')][_0x4615('0x2')](_0x3fa75b[_0x4615('0x13')])&&_0x1efe03[_0x4615('0x4')][_0x4615('0x6')]('ck-suggestion-marker--active',_0x3dd16e),_0x1efe03[_0x4615('0x4')][_0x4615('0x1a')](_0x2bc5e0,_0x3dd16e),_0x1efe03[_0x4615('0x5')][_0x4615('0xd')](_0x3dd16e,_0x3fa75b[_0x4615('0x13')]);}_0x1b9013||_0x2ca363||!_0x3f77c1||_0x2f1b6e(_0x3f77c1);};}
23
+ const _0x4289=['isAtEnd','test','markerName','markerRange','mapper','hasAttribute','element','ck-suggestion-marker-','includes','listItem','model','push','item','toViewPosition','isBlock','activeMarkers','plugins','getWalker','getCustomProperty','getAttribute','parent','bindElementToMarker','start','listIndent','writer','nextSibling','schema','getItems','isLimit','name','consumable','ck-suggestion-marker--active','createRangeOn','previousPosition','isContent'];(function(_0x34e364,_0x4289a4){const _0x66c2b=function(_0x38da51){while(--_0x38da51){_0x34e364['push'](_0x34e364['shift']());}};_0x66c2b(++_0x4289a4);}(_0x4289,0x142));const _0x66c2=function(_0x34e364,_0x4289a4){_0x34e364=_0x34e364-0x0;let _0x66c2b=_0x4289[_0x34e364];return _0x66c2b;};export function getRangesWithAttribute(_0x35fae0,_0x1db88d,_0x570ce4){const _0x544429=[];for(const _0x72f457 of _0x1db88d[_0x66c2('0x14')]())_0x72f457[_0x66c2('0x21')](_0x35fae0)&&_0x544429[_0x66c2('0x4')](_0x570ce4[_0x66c2('0x19')](_0x72f457));return _0x544429;}export function getElementsAffectedByListItemRename(_0x22bb69){const _0x3cdc3d=[];if(_0x22bb69['is'](_0x66c2('0x22'),'listItem')){let _0x133b7e=_0x22bb69['nextSibling'];for(;_0x133b7e&&_0x133b7e['is'](_0x66c2('0x22'),_0x66c2('0x2'))&&_0x133b7e[_0x66c2('0xc')](_0x66c2('0x10'))>0x0;)_0x3cdc3d[_0x66c2('0x4')](_0x133b7e),_0x133b7e=_0x133b7e['nextSibling'];}return _0x3cdc3d;}export function downcastSplitMergeMarker(_0xde3d26,_0x6d7bb5,{showActiveMarker:_0x4f01f4=!0x0}={}){const _0x389e05=_0xde3d26[_0x66c2('0x9')]['get']('TrackChangesEditing');return(_0xc36558,_0xf073ad,_0x534d7f)=>{if(!_0x534d7f[_0x66c2('0x17')][_0x66c2('0x1d')](_0xf073ad[_0x66c2('0x1f')],_0xc36558[_0x66c2('0x16')]))return;const _0x3720e1=_0xf073ad[_0x66c2('0x1f')][_0x66c2('0xa')](),_0x53a043=_0xf073ad[_0x66c2('0x1f')][_0x66c2('0xf')],_0x1714c9=_0xde3d26[_0x66c2('0x3')][_0x66c2('0x13')];let _0x1022ea=null,_0x22ce3e=null,_0x1b928b=!0x1,_0x3727c7=!0x1;for(const _0x28db81 of _0x3720e1){const _0x5eb45f=_0x28db81[_0x66c2('0x5')];_0x1b928b=_0x1b928b||_0x1714c9[_0x66c2('0x1b')](_0x5eb45f);const _0x302f61=_0x534d7f[_0x66c2('0x20')]['toViewElement'](_0x5eb45f);if(_0x302f61&&_0x302f61[_0x66c2('0xb')]('addHighlight'))return;'elementEnd'==_0x28db81['type']&&(_0x1714c9[_0x66c2('0x7')](_0x5eb45f)&&!_0x1714c9[_0x66c2('0x15')](_0x5eb45f)&&(_0x5eb45f[_0x66c2('0x12')]||_0x53a043[_0x66c2('0x1c')]?_0x1022ea&&_0x1022ea[_0x66c2('0xd')]==_0x5eb45f||(_0x1022ea=_0x5eb45f,_0x1fcd49(_0x28db81['previousPosition']),_0x3727c7=!0x0):_0x22ce3e=_0x22ce3e||_0x28db81[_0x66c2('0x1a')]));}function _0x1fcd49(_0x12a0a0){const _0x1f8e81=_0x534d7f[_0x66c2('0x11')]['createUIElement']('span',{'class':_0x66c2('0x0')+_0x6d7bb5}),_0x275890=_0x534d7f['mapper'][_0x66c2('0x6')](_0x12a0a0);_0x4f01f4&&_0x389e05[_0x66c2('0x8')][_0x66c2('0x1')](_0xf073ad['markerName'])&&_0x534d7f[_0x66c2('0x11')]['addClass'](_0x66c2('0x18'),_0x1f8e81),_0x534d7f['writer']['insert'](_0x275890,_0x1f8e81),_0x534d7f[_0x66c2('0x20')][_0x66c2('0xe')](_0x1f8e81,_0xf073ad[_0x66c2('0x1e')]);}_0x1b928b||_0x3727c7||!_0x22ce3e||_0x1fcd49(_0x22ce3e);};}
@@ -1,3 +1,7 @@
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
+ */
1
5
  /**
2
6
  * @module track-changes/suggestion
3
7
  * @publicApi
@@ -8,7 +12,13 @@ import type { CommentThread } from '@ckeditor/ckeditor5-comments';
8
12
  import type { FormatData } from './trackchangesediting';
9
13
  declare const Suggestion_base: {
10
14
  new (): import("ckeditor5/src/utils").Observable;
11
- prototype: import("ckeditor5/src/utils").Observable;
15
+ prototype: import("ckeditor5/src/utils").Observable; /**
16
+ * Previous suggestion in suggestions chain.
17
+ *
18
+ * Chained suggestions should be handled as one entity.
19
+ *
20
+ * @observable
21
+ */
12
22
  };
13
23
  /**
14
24
  * 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) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, 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 _0x2a20=['filter','subType','_onAccept','discard','attributes','set','next','onAccept','data','length','getFirstRange','removeMarkers','getContainedElement','getItems','isExternal','start','_saved','split','isIntersectingWithRange','isMultiRange','end','previous','removeAttribute','addRange','getAllAdjacentSuggestions','addMarkerName','decorate','author','getRange','add','from','isIntersecting','suggestion:','getMarkers','@external','_markerNames','size','markers','_onAttributesChange','getFirstMarker','reduce','push','getMultiRangeId','head','change','onDiscard','getRanges','clear','onAttributesChange','setAttribute','authoredAt','hasComments','map','_model','type','addMarker','accept','_onDiscard','commentThread','creator','removeMarker'];(function(_0x145ad7,_0x2a201d){const _0x4f4986=function(_0x5d0847){while(--_0x5d0847){_0x145ad7['push'](_0x145ad7['shift']());}};_0x4f4986(++_0x2a201d);}(_0x2a20,0xb9));const _0x4f49=function(_0x145ad7,_0x2a201d){_0x145ad7=_0x145ad7-0x0;let _0x4f4986=_0x2a20[_0x145ad7];return _0x4f4986;};import{Element as _0x4cbe0b}from'ckeditor5/src/engine';import{ObservableMixin as _0x4b1044,uid as _0x1b35aa}from'ckeditor5/src/utils';import{cloneDeep as _0x3c72df,isEqual as _0x3b76de,set as _0x26ca54,unset as _0x56c377}from'lodash-es';export default class u extends _0x4b1044(){constructor(_0x49ddb7,_0x15cb1a){super(),this['id']=_0x15cb1a['id'],this[_0x4f49('0x34')]=_0x15cb1a[_0x4f49('0x34')],this['subType']=_0x15cb1a['subType']||null,this[_0x4f49('0x19')]=_0x15cb1a[_0x4f49('0x19')],this['creator']=_0x15cb1a[_0x4f49('0x39')]||_0x15cb1a[_0x4f49('0x19')],this[_0x4f49('0xc')]=Boolean(_0x15cb1a['attributes']&&_0x15cb1a['attributes'][_0x4f49('0x20')]),this[_0x4f49('0x6')]=null,this[_0x4f49('0x33')]=_0x49ddb7,this['_onAccept']=_0x15cb1a[_0x4f49('0x5')],this[_0x4f49('0x37')]=_0x15cb1a[_0x4f49('0x2b')],this['_onAttributesChange']=_0x15cb1a[_0x4f49('0x2e')],this[_0x4f49('0x21')]=new Set(),this['createdAt']=null,this[_0x4f49('0x3')](_0x4f49('0x30'),null),this[_0x4f49('0x3')]('attributes',_0x15cb1a[_0x4f49('0x2')]||{}),this['set'](_0x4f49('0x13'),null),this[_0x4f49('0x3')]('next',null),this[_0x4f49('0x3')](_0x4f49('0x38'),null),this[_0x4f49('0x3')](_0x4f49('0xe'),!0x1),this[_0x4f49('0x18')](_0x4f49('0x36')),this['decorate']('discard');}get[_0x4f49('0x29')](){let _0x318dac=this;for(;_0x318dac[_0x4f49('0x13')];)_0x318dac=_0x318dac['previous'];return _0x318dac;}get[_0x4f49('0x31')](){return!!this[_0x4f49('0x38')]&&this[_0x4f49('0x38')][_0x4f49('0x7')]>0x0;}get[_0x4f49('0x11')](){if(0x0==this[_0x4f49('0x21')][_0x4f49('0x22')])return!0x1;return 0x6==Array[_0x4f49('0x1c')](this[_0x4f49('0x21')])[0x0][_0x4f49('0xf')](':')['length'];}get['isInContent'](){return null!==this[_0x4f49('0x25')]();}[_0x4f49('0x17')](_0x5eefa5){this[_0x4f49('0x21')][_0x4f49('0x1b')](_0x5eefa5);}['getMarkerNames'](){return Array[_0x4f49('0x1c')](this[_0x4f49('0x21')]);}[_0x4f49('0x1f')](){return this['getMarkerNames']()[_0x4f49('0x32')](_0x56e018=>this[_0x4f49('0x33')][_0x4f49('0x23')]['get'](_0x56e018))[_0x4f49('0x3b')](_0x3d7c77=>_0x3d7c77);}[_0x4f49('0x25')](){return this[_0x4f49('0x1f')]()[0x0]||null;}[_0x4f49('0x9')](){this[_0x4f49('0x33')][_0x4f49('0x2a')](_0x7ffc3d=>{for(const _0x2e1934 of this['getMarkers']())_0x7ffc3d['removeMarker'](_0x2e1934);}),this[_0x4f49('0x21')][_0x4f49('0x2d')]();}[_0x4f49('0x3a')](_0x32e9a0){this[_0x4f49('0x33')][_0x4f49('0x2a')](_0x137153=>{_0x137153[_0x4f49('0x3a')](_0x32e9a0);}),this['_markerNames']['delete'](_0x32e9a0);}[_0x4f49('0x15')](_0x885a57){const _0x33de90=_0x4f49('0x1e')+this[_0x4f49('0x34')]+':'+this[_0x4f49('0x3c')]+':'+this['id']+':'+this['creator']['id']+':'+u[_0x4f49('0x28')]();this[_0x4f49('0x17')](_0x33de90),this['_model'][_0x4f49('0x2a')](_0x2f3041=>{_0x2f3041[_0x4f49('0x35')](_0x33de90,{'range':_0x885a57,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4f49('0x10')](_0x4defda){for(const _0x18c83f of this['getRanges']())if(_0x18c83f[_0x4f49('0x1d')](_0x4defda))return!0x0;return!0x1;}[_0x4f49('0x2c')](){return this[_0x4f49('0x1f')]()['map'](_0xca269e=>_0xca269e[_0x4f49('0x1a')]());}['getItems'](){return this[_0x4f49('0x2c')]()[_0x4f49('0x26')]((_0x1b7ff7,_0x81a7af)=>[..._0x1b7ff7,..._0x81a7af[_0x4f49('0xb')]()],[]);}[_0x4f49('0x8')](){var _0x264f3e;return(null===(_0x264f3e=this[_0x4f49('0x25')]())||void 0x0===_0x264f3e?void 0x0:_0x264f3e[_0x4f49('0x1a')]())||null;}[_0x4f49('0xa')](){const _0xdd70c0=this[_0x4f49('0x2c')]();if(0x1!=_0xdd70c0['length'])return null;const _0x5eb7d6=_0xdd70c0[0x0],_0x20799d=_0x5eb7d6[_0x4f49('0xd')]['nodeAfter'],_0x28dd63=_0x5eb7d6[_0x4f49('0x12')]['nodeBefore'];return _0x20799d instanceof _0x4cbe0b?_0x20799d!=_0x28dd63?null:_0x20799d:null;}['accept'](){this[_0x4f49('0x0')](this['getRanges'](),this[_0x4f49('0x6')],this[_0x4f49('0x2')]),this[_0x4f49('0x9')]();}[_0x4f49('0x1')](){this[_0x4f49('0x37')](this[_0x4f49('0x2c')](),this[_0x4f49('0x6')],this[_0x4f49('0x2')]),this[_0x4f49('0x9')]();}[_0x4f49('0x16')](){const _0x111706=[];let _0x14b3cd=this['head'];for(;_0x14b3cd;)_0x111706[_0x4f49('0x27')](_0x14b3cd),_0x14b3cd=_0x14b3cd[_0x4f49('0x4')];return _0x111706;}[_0x4f49('0x2f')](_0x421198,_0x16e2e1){const _0x9bdce5=_0x3c72df(this[_0x4f49('0x2')]);_0x26ca54(_0x9bdce5,_0x421198,_0x16e2e1),_0x3b76de(_0x9bdce5,this[_0x4f49('0x2')])||(this[_0x4f49('0x2')]=_0x9bdce5,this[_0x4f49('0x24')](_0x9bdce5));}[_0x4f49('0x14')](_0x33c504){const _0x454a25=_0x3c72df(this[_0x4f49('0x2')]);_0x56c377(_0x454a25,_0x33c504),_0x3b76de(_0x454a25,this[_0x4f49('0x2')])||(this[_0x4f49('0x2')]=_0x454a25,this['_onAttributesChange'](this[_0x4f49('0x2')]));}['toJSON'](){return{'id':this['id'],'type':this[_0x4f49('0x3c')]?this[_0x4f49('0x34')]+':'+this['subType']:this['type'],'authorId':this[_0x4f49('0x39')]['id'],'createdAt':this['createdAt'],'hasComments':this[_0x4f49('0x31')],'data':this['data'],'attributes':this[_0x4f49('0x2')]};}static[_0x4f49('0x28')](){return _0x1b35aa()['substr'](0x1,0x5);}}
23
+ const _0x1c06=['getRange','addMarker','subType','head','decorate','createdAt','setAttribute','_markerNames','removeAttribute','getItems','removeMarker','removeMarkers','markers','previous','clear','next','discard','length','getMarkers','substr','_onDiscard','getRanges','suggestion:','isMultiRange','accept','onDiscard','nodeBefore','isIntersecting','data','getMarkerNames','getFirstMarker','commentThread','start','set','creator','change','reduce','_onAccept','hasComments','get','authoredAt','filter','from','size','getAllAdjacentSuggestions','type','end','getMultiRangeId','onAttributesChange','addRange','_saved','push','add','isIntersectingWithRange','_onAttributesChange','author','delete','_model','addMarkerName','isInContent','isExternal','nodeAfter','@external','attributes'];(function(_0x2aca96,_0x1c063d){const _0x53ca83=function(_0x30951d){while(--_0x30951d){_0x2aca96['push'](_0x2aca96['shift']());}};_0x53ca83(++_0x1c063d);}(_0x1c06,0x117));const _0x53ca=function(_0x2aca96,_0x1c063d){_0x2aca96=_0x2aca96-0x0;let _0x53ca83=_0x1c06[_0x2aca96];return _0x53ca83;};import{Element as _0x47430e}from'ckeditor5/src/engine';import{ObservableMixin as _0x361ecc,uid as _0x38a428}from'ckeditor5/src/utils';import{cloneDeep as _0x4a2893,isEqual as _0x4c63b5,set as _0x2a11a3,unset as _0xaf0b80}from'lodash-es';export default class u extends _0x361ecc(){constructor(_0x59b1f0,_0x1883b6){super(),this['id']=_0x1883b6['id'],this[_0x53ca('0x16')]=_0x1883b6[_0x53ca('0x16')],this[_0x53ca('0x2b')]=_0x1883b6[_0x53ca('0x2b')]||null,this[_0x53ca('0x20')]=_0x1883b6[_0x53ca('0x20')],this['creator']=_0x1883b6[_0x53ca('0xb')]||_0x1883b6[_0x53ca('0x20')],this[_0x53ca('0x25')]=Boolean(_0x1883b6['attributes']&&_0x1883b6[_0x53ca('0x28')][_0x53ca('0x27')]),this[_0x53ca('0x5')]=null,this[_0x53ca('0x22')]=_0x59b1f0,this[_0x53ca('0xe')]=_0x1883b6['onAccept'],this[_0x53ca('0x3d')]=_0x1883b6[_0x53ca('0x2')],this[_0x53ca('0x1f')]=_0x1883b6[_0x53ca('0x19')],this[_0x53ca('0x30')]=new Set(),this[_0x53ca('0x2e')]=null,this['set'](_0x53ca('0x11'),null),this[_0x53ca('0xa')](_0x53ca('0x28'),_0x1883b6[_0x53ca('0x28')]||{}),this[_0x53ca('0xa')](_0x53ca('0x36'),null),this[_0x53ca('0xa')](_0x53ca('0x38'),null),this[_0x53ca('0xa')](_0x53ca('0x8'),null),this[_0x53ca('0xa')](_0x53ca('0x1b'),!0x1),this[_0x53ca('0x2d')](_0x53ca('0x1')),this[_0x53ca('0x2d')](_0x53ca('0x39'));}get[_0x53ca('0x2c')](){let _0x1c2396=this;for(;_0x1c2396[_0x53ca('0x36')];)_0x1c2396=_0x1c2396[_0x53ca('0x36')];return _0x1c2396;}get[_0x53ca('0xf')](){return!!this[_0x53ca('0x8')]&&this[_0x53ca('0x8')][_0x53ca('0x3a')]>0x0;}get[_0x53ca('0x0')](){if(0x0==this[_0x53ca('0x30')][_0x53ca('0x14')])return!0x1;return 0x6==Array['from'](this[_0x53ca('0x30')])[0x0]['split'](':')[_0x53ca('0x3a')];}get[_0x53ca('0x24')](){return null!==this[_0x53ca('0x7')]();}[_0x53ca('0x23')](_0x22ea62){this['_markerNames'][_0x53ca('0x1d')](_0x22ea62);}['getMarkerNames'](){return Array[_0x53ca('0x13')](this[_0x53ca('0x30')]);}['getMarkers'](){return this[_0x53ca('0x6')]()['map'](_0x42b9c8=>this[_0x53ca('0x22')][_0x53ca('0x35')][_0x53ca('0x10')](_0x42b9c8))[_0x53ca('0x12')](_0x283c33=>_0x283c33);}[_0x53ca('0x7')](){return this[_0x53ca('0x3b')]()[0x0]||null;}['removeMarkers'](){this[_0x53ca('0x22')][_0x53ca('0xc')](_0x3f7102=>{for(const _0x30e042 of this[_0x53ca('0x3b')]())_0x3f7102[_0x53ca('0x33')](_0x30e042);}),this[_0x53ca('0x30')][_0x53ca('0x37')]();}[_0x53ca('0x33')](_0x20c8b0){this[_0x53ca('0x22')][_0x53ca('0xc')](_0xf970a9=>{_0xf970a9[_0x53ca('0x33')](_0x20c8b0);}),this[_0x53ca('0x30')][_0x53ca('0x21')](_0x20c8b0);}[_0x53ca('0x1a')](_0x4d271d){const _0x356533=_0x53ca('0x3f')+this[_0x53ca('0x16')]+':'+this['subType']+':'+this['id']+':'+this[_0x53ca('0xb')]['id']+':'+u[_0x53ca('0x18')]();this[_0x53ca('0x23')](_0x356533),this[_0x53ca('0x22')][_0x53ca('0xc')](_0x31e20e=>{_0x31e20e[_0x53ca('0x2a')](_0x356533,{'range':_0x4d271d,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x53ca('0x1e')](_0x29b616){for(const _0x5de822 of this[_0x53ca('0x3e')]())if(_0x5de822[_0x53ca('0x4')](_0x29b616))return!0x0;return!0x1;}[_0x53ca('0x3e')](){return this['getMarkers']()['map'](_0x54078a=>_0x54078a[_0x53ca('0x29')]());}[_0x53ca('0x32')](){return this[_0x53ca('0x3e')]()[_0x53ca('0xd')]((_0x42a4ab,_0x551c0d)=>[..._0x42a4ab,..._0x551c0d[_0x53ca('0x32')]()],[]);}['getFirstRange'](){var _0xaa54e2;return(null===(_0xaa54e2=this[_0x53ca('0x7')]())||void 0x0===_0xaa54e2?void 0x0:_0xaa54e2[_0x53ca('0x29')]())||null;}['getContainedElement'](){const _0x2420be=this[_0x53ca('0x3e')]();if(0x1!=_0x2420be[_0x53ca('0x3a')])return null;const _0x3af658=_0x2420be[0x0],_0x14cbf4=_0x3af658[_0x53ca('0x9')][_0x53ca('0x26')],_0x33e57f=_0x3af658[_0x53ca('0x17')][_0x53ca('0x3')];return _0x14cbf4 instanceof _0x47430e?_0x14cbf4!=_0x33e57f?null:_0x14cbf4:null;}[_0x53ca('0x1')](){this[_0x53ca('0xe')](this['getRanges'](),this[_0x53ca('0x5')],this[_0x53ca('0x28')]),this['removeMarkers']();}['discard'](){this[_0x53ca('0x3d')](this[_0x53ca('0x3e')](),this[_0x53ca('0x5')],this['attributes']),this[_0x53ca('0x34')]();}[_0x53ca('0x15')](){const _0x11688f=[];let _0x4974ec=this[_0x53ca('0x2c')];for(;_0x4974ec;)_0x11688f[_0x53ca('0x1c')](_0x4974ec),_0x4974ec=_0x4974ec[_0x53ca('0x38')];return _0x11688f;}[_0x53ca('0x2f')](_0xaf0ab1,_0x55da48){const _0x276e62=_0x4a2893(this['attributes']);_0x2a11a3(_0x276e62,_0xaf0ab1,_0x55da48),_0x4c63b5(_0x276e62,this['attributes'])||(this[_0x53ca('0x28')]=_0x276e62,this[_0x53ca('0x1f')](_0x276e62));}[_0x53ca('0x31')](_0x1b00a0){const _0x32e940=_0x4a2893(this[_0x53ca('0x28')]);_0xaf0b80(_0x32e940,_0x1b00a0),_0x4c63b5(_0x32e940,this[_0x53ca('0x28')])||(this[_0x53ca('0x28')]=_0x32e940,this[_0x53ca('0x1f')](this[_0x53ca('0x28')]));}['toJSON'](){return{'id':this['id'],'type':this[_0x53ca('0x2b')]?this['type']+':'+this[_0x53ca('0x2b')]:this[_0x53ca('0x16')],'authorId':this[_0x53ca('0xb')]['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this['data'],'attributes':this[_0x53ca('0x28')]};}static[_0x53ca('0x18')](){return _0x38a428()[_0x53ca('0x3c')](0x1,0x5);}}
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @module track-changes/suggestiondescriptionfactory
3
- * @publicApi
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
4
  */
5
5
  import { type Locale, type PriorityString } from 'ckeditor5/src/utils';
6
6
  import type { Schema, Element } from 'ckeditor5/src/engine';
@@ -149,3 +149,15 @@ export interface LabelCallbackObject {
149
149
  label: LabelCallback;
150
150
  priority: PriorityString;
151
151
  }
152
+ /**
153
+ * An intermediate state which is easier to operate on when consecutive suggestion
154
+ * ranges are traversed.
155
+ */
156
+ interface DescriptionItem {
157
+ type: 'text' | 'addEmptyContainer' | 'addObject' | 'removeEmptyContainer' | 'removeObject' | 'addContainer' | 'removeContainer';
158
+ add?: string;
159
+ remove?: string;
160
+ element?: Element;
161
+ quantity?: number;
162
+ }
163
+ export {};
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, 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 _0x4b28=['Container','matchingCallback','add','name','_itemLabelsCallbacks','text','_resolveDescriptionItems','type','getItemLabel','removeContainer','elementStart','isInContent','*Remove:*\x20%0','_schema','elementEnd','deletion','getFirstRange','registerDescriptionCallback','previousSibling','replace','end','get','REPLACE_TEXT','checkChild','quantity','addEmptyContainer','_locale','*Merge:*\x20%0','pop','*Split:*\x20%0','registerElementLabel','isEqual','$text','EmptyContainer','element','$textProxy','start','insertion','label','_customCallbacks','set','data','softBreak','addContainer','remove','indexOf','normal','Object','length','$1\x20$2','_itemLabels','push','nextSibling','_addDescriptionItems','*Insert:*\x20%0','match','removeEmptyContainer','item','getDescriptions','isEmpty','removeObject','isObject','ELEMENT_SPACE'];(function(_0x10e9a2,_0x4b2866){const _0x12b6cf=function(_0x3ac757){while(--_0x3ac757){_0x10e9a2['push'](_0x10e9a2['shift']());}};_0x12b6cf(++_0x4b2866);}(_0x4b28,0xab));const _0x12b6=function(_0x10e9a2,_0x4b2866){_0x10e9a2=_0x10e9a2-0x0;let _0x12b6cf=_0x4b28[_0x10e9a2];return _0x12b6cf;};import{getTranslation as _0x1c461e}from'./utils/common-translations';import{priorities as _0x4cc33e,insertToPriorityArray as _0x2cddb6}from'ckeditor5/src/utils';export default class m{constructor(_0x1f4154,_0x3854f4){this[_0x12b6('0x39')]=[],this[_0x12b6('0x5')]=new Map(),this[_0x12b6('0x16')]=[],this[_0x12b6('0x1f')]=_0x1f4154,this[_0x12b6('0x2c')]=_0x3854f4;}[_0x12b6('0xd')](_0x371aad){const _0x30356b=[];for(let _0x17f51c=0x0;_0x17f51c<_0x371aad[_0x12b6('0x3')];_0x17f51c++){const _0x1e3eae=_0x371aad[_0x17f51c];if(!_0x1e3eae[_0x12b6('0x1d')])continue;let _0x3acb8f=!0x1;for(const _0x5a7c25 of this[_0x12b6('0x39')]){const _0x5123d3=_0x5a7c25(_0x1e3eae);if(_0x5123d3){_0x12b6('0x19')in _0x5123d3&&_0x30356b[_0x12b6('0x6')](_0x5123d3),_0x3acb8f=!0x0;break;}}if(!_0x3acb8f){this['_addDescriptionItems'](_0x30356b,_0x1e3eae);const _0x1c0e33=_0x371aad[_0x17f51c+0x1];if(_0x1c0e33&&!_0x1e3eae[_0x12b6('0x22')]()[_0x12b6('0x26')][_0x12b6('0x31')](_0x1c0e33[_0x12b6('0x22')]()[_0x12b6('0x36')])){const _0x21051d=_0x30356b[_0x30356b[_0x12b6('0x3')]-0x1],_0x29d968=_0x12b6('0x37')==_0x1e3eae['type']?_0x12b6('0x14'):'remove';_0x21051d&&_0x12b6('0x17')==_0x21051d[_0x12b6('0x19')]&&(_0x21051d[_0x29d968]+='\x0a');}}}return this[_0x12b6('0x18')](_0x30356b);}[_0x12b6('0x23')](_0x340cf7){this[_0x12b6('0x39')][_0x12b6('0x6')](_0x340cf7);}[_0x12b6('0x30')](_0x119b83,_0x235e89,_0x5f1ae5=_0x4cc33e[_0x12b6('0x1')]){'function'==typeof _0x119b83?_0x2cddb6(this[_0x12b6('0x16')],{'matchingCallback':_0x119b83,'label':_0x235e89,'priority':_0x5f1ae5}):this[_0x12b6('0x5')][_0x12b6('0x3a')](_0x119b83,_0x235e89);}[_0x12b6('0x1a')](_0x18f166,_0x5ecda1=0x1){let _0x25d1ed;for(const _0x98cdea of this['_itemLabelsCallbacks'])if(_0x98cdea[_0x12b6('0x13')](_0x18f166)){_0x25d1ed=_0x98cdea[_0x12b6('0x38')];break;}return _0x25d1ed||(_0x25d1ed=this[_0x12b6('0x5')][_0x12b6('0x27')](_0x18f166['name'])),_0x25d1ed?_0x25d1ed(_0x5ecda1):0x1!==_0x5ecda1?_0x5ecda1+'\x20'+_0x18f166[_0x12b6('0x15')]+'s':''+_0x18f166[_0x12b6('0x15')];}[_0x12b6('0x8')](_0x530e17,_0x487b53){const _0x2a163b=_0x487b53[_0x12b6('0x22')]()['getWalker'](),_0xfb9fac=_0x12b6('0x37')==_0x487b53[_0x12b6('0x19')]?'add':'remove';for(const _0x53b8dc of _0x2a163b){const _0x385004=_0x53b8dc[_0x12b6('0xc')],_0x3692ec=_0x530e17[_0x530e17[_0x12b6('0x3')]-0x1];if(_0x385004['is'](_0x12b6('0x35')))_0x3692ec&&_0x3692ec[_0x12b6('0x19')][_0x12b6('0x0')]('Container')>-0x1&&_0x530e17[_0x12b6('0x2e')](),_0x3692ec&&_0x12b6('0x17')==_0x3692ec[_0x12b6('0x19')]?_0x3692ec[_0xfb9fac]+=_0x385004['data']:_0x530e17[_0x12b6('0x6')]({'type':_0x12b6('0x17'),'add':'add'==_0xfb9fac?_0x385004[_0x12b6('0x3b')]:'','remove':_0x12b6('0x3e')==_0xfb9fac?_0x385004[_0x12b6('0x3b')]:''});else{if(this[_0x12b6('0x1f')]['isObject'](_0x385004)){const _0x26b990=_0x385004;if(_0x3692ec&&_0x3692ec[_0x12b6('0x19')]['indexOf'](_0x12b6('0x12'))>-0x1&&_0x530e17[_0x12b6('0x2e')](),_0x12b6('0x20')==_0x53b8dc[_0x12b6('0x19')])continue;_0x3692ec&&_0x3692ec[_0x12b6('0x19')]==_0xfb9fac+_0x12b6('0x2')&&_0x3692ec[_0x12b6('0x34')][_0x12b6('0x15')]==_0x26b990[_0x12b6('0x15')]?_0x3692ec[_0x12b6('0x2a')]++:_0x530e17[_0x12b6('0x6')]({'type':_0xfb9fac+_0x12b6('0x2'),'element':_0x26b990,'quantity':0x1}),_0x2a163b['skip'](_0x297740=>!('elementEnd'==_0x297740[_0x12b6('0x19')]&&_0x297740[_0x12b6('0xc')]==_0x385004));}else{if(this[_0x12b6('0x1f')][_0x12b6('0x29')](_0x385004,_0x12b6('0x32'))||_0x385004['is']('element',_0x12b6('0x3c'))){const _0x32eeca=_0x385004;if(_0x12b6('0x14')==_0xfb9fac&&_0x12b6('0x1c')==_0x53b8dc[_0x12b6('0x19')]||'remove'==_0xfb9fac&&_0x12b6('0x20')==_0x53b8dc[_0x12b6('0x19')])continue;if(_0x3692ec&&-0x1==_0x3692ec['type'][_0x12b6('0x0')](_0x12b6('0x12'))){_0x12b6('0x17')==_0x3692ec['type']&&(_0x3692ec[_0xfb9fac]+='\x0a');continue;}let _0x17a396;if(_0x17a396=_0x12b6('0x14')==_0xfb9fac?_0x32eeca['nextSibling']&&!this['_schema'][_0x12b6('0x10')](_0x32eeca[_0x12b6('0x7')])?_0x32eeca[_0x12b6('0x7')]:null:_0x32eeca[_0x12b6('0x24')]&&!this['_schema']['isObject'](_0x32eeca[_0x12b6('0x24')])?_0x32eeca[_0x12b6('0x24')]:null,_0x32eeca[_0x12b6('0xe')]||_0x17a396&&_0x17a396[_0x12b6('0xe')]){const _0x54777e=_0x17a396&&_0x17a396[_0x12b6('0xe')]?_0x17a396:_0x32eeca;_0x3692ec&&_0x3692ec[_0x12b6('0x19')]==_0xfb9fac+_0x12b6('0x33')&&_0x3692ec[_0x12b6('0x34')][_0x12b6('0x15')]==_0x54777e[_0x12b6('0x15')]?_0x3692ec['quantity']++:_0x530e17[_0x12b6('0x6')]({'type':_0xfb9fac+_0x12b6('0x33'),'element':_0x54777e,'quantity':0x1});}else _0x530e17['push']({'type':_0xfb9fac+_0x12b6('0x12'),'element':_0x32eeca});}}}}}[_0x12b6('0x18')](_0x5d65b0){const _0x80c49=this[_0x12b6('0x2c')],_0x165608=[];for(const _0x31ad22 of _0x5d65b0){switch(_0x31ad22[_0x12b6('0x19')]){case _0x12b6('0x17'):if(_0x31ad22[_0x12b6('0x14')]=_0x31ad22[_0x12b6('0x14')][_0x12b6('0x25')](/(\S)\u000A+(\S)/g,_0x12b6('0x4'))[_0x12b6('0x25')](/\u000A/g,''),_0x31ad22[_0x12b6('0x3e')]=_0x31ad22[_0x12b6('0x3e')]['replace'](/(\S)\u000A+(\S)/g,_0x12b6('0x4'))[_0x12b6('0x25')](/\u000A/g,''),''!=_0x31ad22[_0x12b6('0x14')]&&''!=_0x31ad22[_0x12b6('0x3e')]){_0x165608['push']({'type':_0x12b6('0x25'),'content':_0x1c461e(_0x80c49,_0x12b6('0x28'),['\x22'+_0x31ad22['remove']+'\x22','\x22'+_0x31ad22[_0x12b6('0x14')]+'\x22'])});continue;}if(null!=_0x31ad22['add'][_0x12b6('0xa')](/^ +$/)){_0x165608[_0x12b6('0x6')]({'type':_0x12b6('0x37'),'content':_0x1c461e(_0x80c49,'*Insert:*\x20%0',_0x1c461e(_0x80c49,_0x12b6('0x11'),_0x31ad22['add'][_0x12b6('0x3')]))});continue;}if(null!=_0x31ad22[_0x12b6('0x3e')][_0x12b6('0xa')](/^ +$/)){_0x165608[_0x12b6('0x6')]({'type':_0x12b6('0x21'),'content':_0x1c461e(_0x80c49,_0x12b6('0x1e'),_0x1c461e(_0x80c49,_0x12b6('0x11'),_0x31ad22[_0x12b6('0x3e')][_0x12b6('0x3')]))});continue;}if(''!=_0x31ad22[_0x12b6('0x14')]){_0x165608[_0x12b6('0x6')]({'type':_0x12b6('0x37'),'content':_0x1c461e(_0x80c49,_0x12b6('0x9'),'\x22'+_0x31ad22['add']+'\x22')});continue;}_0x165608[_0x12b6('0x6')]({'type':_0x12b6('0x21'),'content':_0x1c461e(_0x80c49,_0x12b6('0x1e'),'\x22'+_0x31ad22['remove']+'\x22')});continue;case _0x12b6('0x2b'):case'addObject':_0x165608[_0x12b6('0x6')]({'type':_0x12b6('0x37'),'content':_0x1c461e(_0x80c49,_0x12b6('0x9'),this[_0x12b6('0x1a')](_0x31ad22[_0x12b6('0x34')],_0x31ad22[_0x12b6('0x2a')]))});continue;case _0x12b6('0xb'):case _0x12b6('0xf'):_0x165608[_0x12b6('0x6')]({'type':_0x12b6('0x21'),'content':_0x1c461e(_0x80c49,_0x12b6('0x1e'),this[_0x12b6('0x1a')](_0x31ad22['element'],_0x31ad22[_0x12b6('0x2a')]))});continue;case _0x12b6('0x3d'):_0x165608[_0x12b6('0x6')]({'type':_0x12b6('0x37'),'content':_0x1c461e(_0x80c49,_0x12b6('0x2f'),this[_0x12b6('0x1a')](_0x31ad22['element'],_0x31ad22[_0x12b6('0x2a')]))});continue;case _0x12b6('0x1b'):_0x165608[_0x12b6('0x6')]({'type':_0x12b6('0x21'),'content':_0x1c461e(_0x80c49,_0x12b6('0x2d'),this[_0x12b6('0x1a')](_0x31ad22[_0x12b6('0x34')],_0x31ad22[_0x12b6('0x2a')]))});continue;}_0x165608[_0x12b6('0x6')](_0x31ad22);}return _0x165608;}}
23
+ const _0x13eb=['softBreak','getFirstRange','addObject','insertion','quantity','checkChild','type','REPLACE_TEXT','matchingCallback','getDescriptions','Container','data','_customCallbacks','skip','_itemLabels','pop','_locale','text','removeContainer','EmptyContainer','remove','isEqual','normal','end','indexOf','replace','get','push','element','$textProxy','$text','item','elementEnd','_schema','function','match','removeObject','start','_itemLabelsCallbacks','nextSibling','elementStart','isEmpty','getItemLabel','set','getWalker','_addDescriptionItems','name','_resolveDescriptionItems','removeEmptyContainer','deletion','isObject','*Insert:*\x20%0','add','label','addContainer','$1\x20$2','addEmptyContainer','previousSibling','length','*Remove:*\x20%0'];(function(_0x1b4d6b,_0x13eb70){const _0x22b95b=function(_0x2b8908){while(--_0x2b8908){_0x1b4d6b['push'](_0x1b4d6b['shift']());}};_0x22b95b(++_0x13eb70);}(_0x13eb,0xd6));const _0x22b9=function(_0x1b4d6b,_0x13eb70){_0x1b4d6b=_0x1b4d6b-0x0;let _0x22b95b=_0x13eb[_0x1b4d6b];return _0x22b95b;};import{getTranslation as _0xc80be1}from'./utils/common-translations';import{priorities as _0x172f6c,insertToPriorityArray as _0x29964d}from'ckeditor5/src/utils';export default class m{constructor(_0x176283,_0x201fd4){this['_customCallbacks']=[],this[_0x22b9('0x28')]=new Map(),this[_0x22b9('0x4')]=[],this['_schema']=_0x176283,this[_0x22b9('0x2a')]=_0x201fd4;}[_0x22b9('0x23')](_0x2be0d5){const _0x5842cf=[];for(let _0x425d46=0x0;_0x425d46<_0x2be0d5[_0x22b9('0x18')];_0x425d46++){const _0xc9757d=_0x2be0d5[_0x425d46];if(!_0xc9757d['isInContent'])continue;let _0x2b4c91=!0x1;for(const _0x58e059 of this[_0x22b9('0x26')]){const _0x4d8fa9=_0x58e059(_0xc9757d);if(_0x4d8fa9){'type'in _0x4d8fa9&&_0x5842cf[_0x22b9('0x35')](_0x4d8fa9),_0x2b4c91=!0x0;break;}}if(!_0x2b4c91){this[_0x22b9('0xb')](_0x5842cf,_0xc9757d);const _0x324a37=_0x2be0d5[_0x425d46+0x1];if(_0x324a37&&!_0xc9757d[_0x22b9('0x1b')]()[_0x22b9('0x31')][_0x22b9('0x2f')](_0x324a37[_0x22b9('0x1b')]()[_0x22b9('0x3')])){const _0x1a1214=_0x5842cf[_0x5842cf[_0x22b9('0x18')]-0x1],_0x2337f6=_0x22b9('0x1d')==_0xc9757d[_0x22b9('0x20')]?_0x22b9('0x12'):'remove';_0x1a1214&&'text'==_0x1a1214[_0x22b9('0x20')]&&(_0x1a1214[_0x2337f6]+='\x0a');}}}return this[_0x22b9('0xd')](_0x5842cf);}['registerDescriptionCallback'](_0x1a2e13){this[_0x22b9('0x26')][_0x22b9('0x35')](_0x1a2e13);}['registerElementLabel'](_0x119c31,_0x16039d,_0x66c711=_0x172f6c[_0x22b9('0x30')]){_0x22b9('0x0')==typeof _0x119c31?_0x29964d(this[_0x22b9('0x4')],{'matchingCallback':_0x119c31,'label':_0x16039d,'priority':_0x66c711}):this[_0x22b9('0x28')][_0x22b9('0x9')](_0x119c31,_0x16039d);}[_0x22b9('0x8')](_0x123cb9,_0x5e481a=0x1){let _0x5413e4;for(const _0x54577a of this[_0x22b9('0x4')])if(_0x54577a[_0x22b9('0x22')](_0x123cb9)){_0x5413e4=_0x54577a[_0x22b9('0x13')];break;}return _0x5413e4||(_0x5413e4=this[_0x22b9('0x28')][_0x22b9('0x34')](_0x123cb9[_0x22b9('0xc')])),_0x5413e4?_0x5413e4(_0x5e481a):0x1!==_0x5e481a?_0x5e481a+'\x20'+_0x123cb9[_0x22b9('0xc')]+'s':''+_0x123cb9[_0x22b9('0xc')];}[_0x22b9('0xb')](_0x312f2d,_0x5302fd){const _0x2df4d8=_0x5302fd[_0x22b9('0x1b')]()[_0x22b9('0xa')](),_0x332a12='insertion'==_0x5302fd[_0x22b9('0x20')]?_0x22b9('0x12'):'remove';for(const _0x4df153 of _0x2df4d8){const _0x2257b1=_0x4df153[_0x22b9('0x39')],_0x293c36=_0x312f2d[_0x312f2d[_0x22b9('0x18')]-0x1];if(_0x2257b1['is'](_0x22b9('0x37')))_0x293c36&&_0x293c36[_0x22b9('0x20')][_0x22b9('0x32')](_0x22b9('0x24'))>-0x1&&_0x312f2d[_0x22b9('0x29')](),_0x293c36&&'text'==_0x293c36['type']?_0x293c36[_0x332a12]+=_0x2257b1['data']:_0x312f2d[_0x22b9('0x35')]({'type':'text','add':_0x22b9('0x12')==_0x332a12?_0x2257b1[_0x22b9('0x25')]:'','remove':_0x22b9('0x2e')==_0x332a12?_0x2257b1[_0x22b9('0x25')]:''});else{if(this['_schema'][_0x22b9('0x10')](_0x2257b1)){const _0x14ca36=_0x2257b1;if(_0x293c36&&_0x293c36[_0x22b9('0x20')]['indexOf'](_0x22b9('0x24'))>-0x1&&_0x312f2d[_0x22b9('0x29')](),'elementEnd'==_0x4df153[_0x22b9('0x20')])continue;_0x293c36&&_0x293c36[_0x22b9('0x20')]==_0x332a12+'Object'&&_0x293c36['element'][_0x22b9('0xc')]==_0x14ca36[_0x22b9('0xc')]?_0x293c36['quantity']++:_0x312f2d[_0x22b9('0x35')]({'type':_0x332a12+'Object','element':_0x14ca36,'quantity':0x1}),_0x2df4d8[_0x22b9('0x27')](_0x5318a6=>!(_0x22b9('0x3a')==_0x5318a6[_0x22b9('0x20')]&&_0x5318a6[_0x22b9('0x39')]==_0x2257b1));}else{if(this[_0x22b9('0x3b')][_0x22b9('0x1f')](_0x2257b1,_0x22b9('0x38'))||_0x2257b1['is']('element',_0x22b9('0x1a'))){const _0x112aa3=_0x2257b1;if(_0x22b9('0x12')==_0x332a12&&_0x22b9('0x6')==_0x4df153['type']||_0x22b9('0x2e')==_0x332a12&&_0x22b9('0x3a')==_0x4df153[_0x22b9('0x20')])continue;if(_0x293c36&&-0x1==_0x293c36[_0x22b9('0x20')]['indexOf'](_0x22b9('0x24'))){_0x22b9('0x2b')==_0x293c36[_0x22b9('0x20')]&&(_0x293c36[_0x332a12]+='\x0a');continue;}let _0x1b6238;if(_0x1b6238=_0x22b9('0x12')==_0x332a12?_0x112aa3['nextSibling']&&!this[_0x22b9('0x3b')][_0x22b9('0x10')](_0x112aa3[_0x22b9('0x5')])?_0x112aa3[_0x22b9('0x5')]:null:_0x112aa3['previousSibling']&&!this[_0x22b9('0x3b')][_0x22b9('0x10')](_0x112aa3[_0x22b9('0x17')])?_0x112aa3[_0x22b9('0x17')]:null,_0x112aa3[_0x22b9('0x7')]||_0x1b6238&&_0x1b6238[_0x22b9('0x7')]){const _0x1bfb37=_0x1b6238&&_0x1b6238[_0x22b9('0x7')]?_0x1b6238:_0x112aa3;_0x293c36&&_0x293c36['type']==_0x332a12+_0x22b9('0x2d')&&_0x293c36[_0x22b9('0x36')][_0x22b9('0xc')]==_0x1bfb37[_0x22b9('0xc')]?_0x293c36['quantity']++:_0x312f2d[_0x22b9('0x35')]({'type':_0x332a12+_0x22b9('0x2d'),'element':_0x1bfb37,'quantity':0x1});}else _0x312f2d[_0x22b9('0x35')]({'type':_0x332a12+'Container','element':_0x112aa3});}}}}}[_0x22b9('0xd')](_0x161390){const _0x449c0d=this[_0x22b9('0x2a')],_0x5ce354=[];for(const _0x2f8b70 of _0x161390){switch(_0x2f8b70['type']){case _0x22b9('0x2b'):if(_0x2f8b70[_0x22b9('0x12')]=_0x2f8b70['add'][_0x22b9('0x33')](/(\S)\u000A+(\S)/g,_0x22b9('0x15'))[_0x22b9('0x33')](/\u000A/g,''),_0x2f8b70[_0x22b9('0x2e')]=_0x2f8b70[_0x22b9('0x2e')]['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')[_0x22b9('0x33')](/\u000A/g,''),''!=_0x2f8b70[_0x22b9('0x12')]&&''!=_0x2f8b70[_0x22b9('0x2e')]){_0x5ce354[_0x22b9('0x35')]({'type':'replace','content':_0xc80be1(_0x449c0d,_0x22b9('0x21'),['\x22'+_0x2f8b70['remove']+'\x22','\x22'+_0x2f8b70[_0x22b9('0x12')]+'\x22'])});continue;}if(null!=_0x2f8b70[_0x22b9('0x12')][_0x22b9('0x1')](/^ +$/)){_0x5ce354['push']({'type':_0x22b9('0x1d'),'content':_0xc80be1(_0x449c0d,_0x22b9('0x11'),_0xc80be1(_0x449c0d,'ELEMENT_SPACE',_0x2f8b70['add'][_0x22b9('0x18')]))});continue;}if(null!=_0x2f8b70[_0x22b9('0x2e')]['match'](/^ +$/)){_0x5ce354['push']({'type':_0x22b9('0xf'),'content':_0xc80be1(_0x449c0d,_0x22b9('0x19'),_0xc80be1(_0x449c0d,'ELEMENT_SPACE',_0x2f8b70[_0x22b9('0x2e')]['length']))});continue;}if(''!=_0x2f8b70['add']){_0x5ce354[_0x22b9('0x35')]({'type':_0x22b9('0x1d'),'content':_0xc80be1(_0x449c0d,'*Insert:*\x20%0','\x22'+_0x2f8b70[_0x22b9('0x12')]+'\x22')});continue;}_0x5ce354[_0x22b9('0x35')]({'type':_0x22b9('0xf'),'content':_0xc80be1(_0x449c0d,'*Remove:*\x20%0','\x22'+_0x2f8b70['remove']+'\x22')});continue;case _0x22b9('0x16'):case _0x22b9('0x1c'):_0x5ce354[_0x22b9('0x35')]({'type':_0x22b9('0x1d'),'content':_0xc80be1(_0x449c0d,_0x22b9('0x11'),this['getItemLabel'](_0x2f8b70[_0x22b9('0x36')],_0x2f8b70[_0x22b9('0x1e')]))});continue;case _0x22b9('0xe'):case _0x22b9('0x2'):_0x5ce354[_0x22b9('0x35')]({'type':_0x22b9('0xf'),'content':_0xc80be1(_0x449c0d,'*Remove:*\x20%0',this[_0x22b9('0x8')](_0x2f8b70[_0x22b9('0x36')],_0x2f8b70[_0x22b9('0x1e')]))});continue;case _0x22b9('0x14'):_0x5ce354['push']({'type':_0x22b9('0x1d'),'content':_0xc80be1(_0x449c0d,'*Split:*\x20%0',this[_0x22b9('0x8')](_0x2f8b70[_0x22b9('0x36')],_0x2f8b70[_0x22b9('0x1e')]))});continue;case _0x22b9('0x2c'):_0x5ce354[_0x22b9('0x35')]({'type':'deletion','content':_0xc80be1(_0x449c0d,'*Merge:*\x20%0',this[_0x22b9('0x8')](_0x2f8b70[_0x22b9('0x36')],_0x2f8b70[_0x22b9('0x1e')]))});continue;}_0x5ce354[_0x22b9('0x35')](_0x2f8b70);}return _0x5ce354;}}
@@ -1,3 +1,7 @@
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
+ */
1
5
  /**
2
6
  * @module track-changes/trackchanges
3
7
  * @publicApi
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, 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
- var _0x4db6=['get','TrackChanges','addSuggestion','plugins','addSuggestionData','adapter','pluginName','requires','getSuggestions','editor','getSuggestion'];(function(_0x56131f,_0x4db664){var _0x155cbe=function(_0x2b0352){while(--_0x2b0352){_0x56131f['push'](_0x56131f['shift']());}};_0x155cbe(++_0x4db664);}(_0x4db6,0x1cd));var _0x155c=function(_0x56131f,_0x4db664){_0x56131f=_0x56131f-0x0;var _0x155cbe=_0x4db6[_0x56131f];return _0x155cbe;};import{Plugin as _0x239c33}from'ckeditor5/src/core';import _0x14d6f0 from'./trackchangesui';import _0x36d27d from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x239c33{static get[_0x155c('0x8')](){return[_0x36d27d,_0x14d6f0,'Comments'];}static get[_0x155c('0x7')](){return _0x155c('0x2');}set[_0x155c('0x6')](_0x3cbb1b){this['editor']['plugins'][_0x155c('0x1')](_0x36d27d)[_0x155c('0x6')]=_0x3cbb1b;}get[_0x155c('0x6')](){return this[_0x155c('0xa')]['plugins'][_0x155c('0x1')](_0x36d27d)[_0x155c('0x6')];}[_0x155c('0x3')](_0x329068){return this[_0x155c('0xa')]['plugins'][_0x155c('0x1')](_0x36d27d)[_0x155c('0x5')](_0x329068);}[_0x155c('0x9')]({skipNotAttached:_0x3eb355=!0x1,toJSON:_0x20c389=!0x1}={}){return this[_0x155c('0xa')]['plugins'][_0x155c('0x1')](_0x36d27d)[_0x155c('0x9')]({'skipNotAttached':_0x3eb355,'toJSON':_0x20c389});}[_0x155c('0x0')](_0x324562){return this[_0x155c('0xa')][_0x155c('0x4')]['get'](_0x36d27d)[_0x155c('0x0')](_0x324562);}}
23
+ var _0x5b7f=['pluginName','get','TrackChanges','getSuggestions','getSuggestion','plugins','editor','Comments','requires','adapter','addSuggestionData','addSuggestion'];(function(_0x4daa4c,_0x5b7faf){var _0xe82806=function(_0xd25933){while(--_0xd25933){_0x4daa4c['push'](_0x4daa4c['shift']());}};_0xe82806(++_0x5b7faf);}(_0x5b7f,0x1aa));var _0xe828=function(_0x4daa4c,_0x5b7faf){_0x4daa4c=_0x4daa4c-0x0;var _0xe82806=_0x5b7f[_0x4daa4c];return _0xe82806;};import{Plugin as _0x3ed5fa}from'ckeditor5/src/core';import _0x2dfe86 from'./trackchangesui';import _0x1c7fe4 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x3ed5fa{static get[_0xe828('0x2')](){return[_0x1c7fe4,_0x2dfe86,_0xe828('0x1')];}static get[_0xe828('0x6')](){return _0xe828('0x8');}set[_0xe828('0x3')](_0x4b2c7f){this[_0xe828('0x0')]['plugins']['get'](_0x1c7fe4)[_0xe828('0x3')]=_0x4b2c7f;}get['adapter'](){return this[_0xe828('0x0')]['plugins']['get'](_0x1c7fe4)[_0xe828('0x3')];}[_0xe828('0x5')](_0x141b1b){return this[_0xe828('0x0')][_0xe828('0xb')][_0xe828('0x7')](_0x1c7fe4)[_0xe828('0x4')](_0x141b1b);}[_0xe828('0x9')]({skipNotAttached:_0x20446c=!0x1,toJSON:_0x36bb9f=!0x1}={}){return this[_0xe828('0x0')][_0xe828('0xb')]['get'](_0x1c7fe4)[_0xe828('0x9')]({'skipNotAttached':_0x20446c,'toJSON':_0x36bb9f});}[_0xe828('0xa')](_0x350305){return this[_0xe828('0x0')][_0xe828('0xb')][_0xe828('0x7')](_0x1c7fe4)[_0xe828('0xa')](_0x350305);}}
@@ -1,3 +1,7 @@
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
+ */
1
5
  /**
2
6
  * @module track-changes/trackchangesconfig
3
7
  * @publicApi
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -1,3 +1,7 @@
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
+ */
1
5
  /**
2
6
  * @module track-changes/trackchangesdata
3
7
  * @publicApi
@@ -26,12 +30,12 @@ export default class TrackChangesData extends Plugin {
26
30
  * @param options Options for {@link module:engine/controller/datacontroller~DataController#get}.
27
31
  * @returns A promise which resolves with the output data.
28
32
  */
29
- getDataWithAcceptedSuggestions(options: Record<string, unknown>): Promise<string>;
33
+ getDataWithAcceptedSuggestions(options: Record<string, unknown>): Promise<string | Record<string, string>>;
30
34
  /**
31
35
  * Returns the editor data with all the suggestions discarded.
32
36
  *
33
37
  * @param options Options for {@link module:engine/controller/datacontroller~DataController#get}.
34
38
  * @returns A promise which resolves with the output data.
35
39
  */
36
- getDataWithDiscardedSuggestions(options: Record<string, unknown>): Promise<string>;
40
+ getDataWithDiscardedSuggestions(options: Record<string, unknown>): Promise<string | Record<string, string>>;
37
41
  }
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, 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 _0x4336=['has','getDataWithDiscardedSuggestions','addUser','editorCreator','requires','cloudServices','editor','addSuggestionData','push','_adapter','plugins','concat','model','Pagination','find','pluginName','set','TrackChangesData','discardAllSuggestions','function','config','data','createDocumentFragment','constructor','getDataWithAcceptedSuggestions','_context','builtinPlugins','init','track-changes-data-invalid-editor-creator','extraPlugins','useAnonymousUser','WordCount','result','define','document','appendChild','map','destroy','getSuggestions','getRootNames','name','TrackChangesEditing','WebSocketGateway','context','get','tokenUrl','RevisionTracker','createElement','trackChangesData.editorCreator','DocumentOutline','div','TrackChangesDataGetter','every','users','Users','trackChangesData'];(function(_0x20ed48,_0x433627){const _0x314afe=function(_0x45088a){while(--_0x45088a){_0x20ed48['push'](_0x20ed48['shift']());}};_0x314afe(++_0x433627);}(_0x4336,0xee));const _0x314a=function(_0x20ed48,_0x433627){_0x20ed48=_0x20ed48-0x0;let _0x314afe=_0x4336[_0x20ed48];return _0x314afe;};import{Plugin as _0x5808a3}from'ckeditor5/src/core';import{CKEditorError as _0x49ce26}from'ckeditor5/src/utils';import _0x4d8d39 from'./trackchangesediting';const C=['initialData',_0x314a('0x1d'),'toolbar'],w=[_0x314a('0x1c'),_0x314a('0x20'),'Autosave',_0x314a('0x11'),_0x314a('0x37'),_0x314a('0x23')];export default class T extends _0x5808a3{static get[_0x314a('0x2e')](){return[_0x4d8d39];}static get['pluginName'](){return _0x314a('0x3');}[_0x314a('0xd')](){const _0x3e9096=this['editor'];if(_0x3e9096[_0x314a('0x6')][_0x314a('0x13')](_0x314a('0x22'),_0x44f3e6=>_0x3e9096[_0x314a('0x9')]['create']('',_0x44f3e6)),_0x314a('0x5')!=typeof _0x3e9096[_0x314a('0x6')][_0x314a('0x1e')](_0x314a('0x29'))[_0x314a('0x2d')])throw new _0x49ce26(_0x314a('0xe'));}[_0x314a('0xa')](_0x46afac){return P(this[_0x314a('0x30')],!0x0,_0x46afac);}[_0x314a('0x2b')](_0x29d878){return P(this[_0x314a('0x30')],!0x1,_0x29d878);}}class D extends _0x5808a3{static get[_0x314a('0x1')](){return _0x314a('0x25');}constructor(_0x40f7af){super(_0x40f7af),this[_0x314a('0x12')]='end';}[_0x314a('0xd')](){this[_0x314a('0x30')][_0x314a('0x34')][_0x314a('0x1e')]('CommentsRepository')[_0x314a('0x33')]={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this[_0x314a('0x30')][_0x314a('0x34')]['get'](_0x314a('0x1b'))[_0x314a('0x33')]=null;}}async function P(_0x51fb20,_0x36939a,_0x2eca23){const _0x330a1b=function(_0xaec815){const _0xc22b35={};for(const _0x193706 of _0xaec815[_0x314a('0x6')]['names']())C['includes'](_0x193706)||(_0xc22b35[_0x193706]=_0xaec815['config'][_0x314a('0x1e')](_0x193706));_0xc22b35[_0x314a('0x2f')]&&_0xc22b35[_0x314a('0x2f')][_0x314a('0x1f')]&&delete _0xc22b35['cloudServices']['tokenUrl'];const _0x9cf332=_0xaec815[_0x314a('0x9')][_0x314a('0xc')]||[],_0x24cfe1=_0xc22b35[_0x314a('0xf')]||[];delete _0xc22b35[_0x314a('0xf')];const _0x2a226e=_0xaec815[_0x314a('0xb')][_0x314a('0x6')][_0x314a('0x1e')](_0x314a('0x34'))||[],_0x172787=_0x9cf332['concat'](_0xc22b35[_0x314a('0x34')])[_0x314a('0x35')](_0x24cfe1)['concat'](_0x2a226e)[_0x314a('0x16')](_0x7a9f4=>'string'==typeof _0x7a9f4?_0x9cf332[_0x314a('0x0')](_0x3da40f=>_0x3da40f['pluginName']==_0x7a9f4):_0x7a9f4),_0x1b5799=Array['from'](new Set(_0x172787)),_0x3162f3=new Map();return _0xc22b35[_0x314a('0x34')]=_0x1b5799['filter'](_0x59304e=>v(_0x59304e,_0x3162f3)),_0xc22b35['plugins'][_0x314a('0x32')](_0x4d8d39),_0xc22b35[_0x314a('0x34')][_0x314a('0x32')](D),_0xc22b35;}(_0x51fb20),_0x52f1a9=document[_0x314a('0x8')](),_0x5a1846=_0x51fb20[_0x314a('0x6')][_0x314a('0x1e')](_0x314a('0x29'))[_0x314a('0x2d')],_0xa6e052=await _0x5a1846(_0x330a1b,()=>function(_0x42ee9a){const _0x366fb8=document[_0x314a('0x21')](_0x314a('0x24'));return _0x42ee9a[_0x314a('0x15')](_0x366fb8),_0x366fb8;}(_0x52f1a9));!function(_0x1a351e,_0x854040){const _0x25e8b5=_0x1a351e[_0x314a('0x36')][_0x314a('0x14')][_0x314a('0x19')]()['reduce']((_0xc4c8e8,_0x1b3d4f)=>(_0xc4c8e8[_0x1b3d4f]=_0x1a351e[_0x314a('0x7')][_0x314a('0x1e')]({'rootName':_0x1b3d4f}),_0xc4c8e8),{}),_0x58a6c3=_0x1a351e[_0x314a('0x34')][_0x314a('0x1e')]('Users')[_0x314a('0x27')]['map'](_0x565095=>({'id':_0x565095['id'],'name':_0x565095[_0x314a('0x1a')]})),_0x2d4520=_0x1a351e[_0x314a('0x34')][_0x314a('0x1e')](_0x314a('0x1b'))[_0x314a('0x18')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x36169a=_0x854040[_0x314a('0x34')][_0x314a('0x1e')](_0x314a('0x28')),_0x37571f=_0x854040['plugins']['get']('TrackChangesEditing');for(const _0x3d603b of _0x58a6c3)_0x36169a['getUser'](_0x3d603b['id'])||_0x36169a[_0x314a('0x2c')](_0x3d603b);_0x36169a['me']||_0x36169a[_0x314a('0x10')]();for(const _0x3c4f4d of _0x2d4520)_0x37571f[_0x314a('0x31')](_0x3c4f4d);_0x854040['data'][_0x314a('0x2')](_0x25e8b5);}(_0x51fb20,_0xa6e052),_0xa6e052['execute'](_0x36939a?'acceptAllSuggestions':_0x314a('0x4'));const _0x5c2a23=_0xa6e052['data'][_0x314a('0x1e')](_0x2eca23);return await _0xa6e052[_0x314a('0x17')](),_0x5c2a23;}function v(_0x2d9273,_0x581af3){const _0x5927fa='function'==typeof _0x2d9273?_0x2d9273['pluginName']||_0x2d9273['name']:_0x2d9273;if(_0x581af3[_0x314a('0x2a')](_0x5927fa))return _0x581af3['get'](_0x5927fa);if(_0x581af3[_0x314a('0x2')](_0x5927fa,!0x0),_0x5927fa&&w['includes'](_0x5927fa))return _0x581af3[_0x314a('0x2')](_0x5927fa,!0x1),!0x1;if(!_0x2d9273['requires'])return _0x581af3[_0x314a('0x2')](_0x5927fa,!0x0),!0x0;const _0xeaf59=_0x2d9273[_0x314a('0x2e')][_0x314a('0x26')](_0xdee9fe=>v(_0xdee9fe,_0x581af3));return _0x581af3[_0x314a('0x2')](_0x5927fa,_0xeaf59),_0xeaf59;}
23
+ const _0xdda6=['init','config','constructor','getUser','document','acceptAllSuggestions','rootsAttributes','destroy','get','div','createDocumentFragment','set','getRootNames','data','pluginName','define','push','createElement','getFullData','reduce','Users','editorCreator','getSuggestions','plugins','appendChild','model','addSuggestionData','TrackChangesEditing','track-changes-data-invalid-editor-creator','TrackChangesDataGetter','function','editor','getDataWithAcceptedSuggestions','CommentsRepository','trackChangesData','requires','useAnonymousUser','getDataWithDiscardedSuggestions','TrackChangesData','trackChangesData.editorCreator','map','getRootsAttributes','discardAllSuggestions','addUser'];(function(_0x4b261b,_0xdda69d){const _0x2e818d=function(_0x5416f4){while(--_0x5416f4){_0x4b261b['push'](_0x4b261b['shift']());}};_0x2e818d(++_0xdda69d);}(_0xdda6,0x19f));const _0x2e81=function(_0x4b261b,_0xdda69d){_0x4b261b=_0x4b261b-0x0;let _0x2e818d=_0xdda6[_0x4b261b];return _0x2e818d;};import{Plugin as _0x137d7c}from'ckeditor5/src/core';import{CKEditorError as _0x3aa2bf}from'ckeditor5/src/utils';import _0x59f3da from'./trackchangesediting';import{sanitizeEditorConfig as _0x3395b4}from'ckeditor5-collaboration/src/collaboration-core';const w=['Pagination'];export default class T extends _0x137d7c{static get[_0x2e81('0x10')](){return[_0x59f3da];}static get[_0x2e81('0x27')](){return _0x2e81('0x13');}['init'](){const _0x5c2b7d=this['editor'];if(_0x5c2b7d[_0x2e81('0x1a')][_0x2e81('0x28')](_0x2e81('0x14'),_0x1b349a=>{const _0x39641f=_0x5c2b7d[_0x2e81('0x6')]['document'][_0x2e81('0x25')]()[_0x2e81('0x0')]((_0x3f0a0f,_0x1a2ac9)=>(_0x3f0a0f[_0x1a2ac9]='',_0x3f0a0f),{});return _0x5c2b7d[_0x2e81('0x1b')]['create'](_0x39641f,_0x1b349a);}),_0x2e81('0xb')!=typeof _0x5c2b7d[_0x2e81('0x1a')][_0x2e81('0x21')](_0x2e81('0xf'))[_0x2e81('0x2')])throw new _0x3aa2bf(_0x2e81('0x9'));}[_0x2e81('0xd')](_0x20dd11){return v(this[_0x2e81('0xc')],!0x0,_0x20dd11);}[_0x2e81('0x12')](_0x5105c9){return v(this[_0x2e81('0xc')],!0x1,_0x5105c9);}}class P extends _0x137d7c{static get[_0x2e81('0x27')](){return _0x2e81('0xa');}constructor(_0x5e4ce8){super(_0x5e4ce8),this['result']='end';}[_0x2e81('0x19')](){this[_0x2e81('0xc')]['plugins']['get'](_0x2e81('0xe'))['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this[_0x2e81('0xc')]['plugins'][_0x2e81('0x21')](_0x2e81('0x8'))['_adapter']=null;}}function D(_0x51c150){return void 0x0!==_0x51c150[_0x2e81('0x16')];}async function v(_0x494e29,_0x5a7ff9,_0x5370dd){const _0x495944=_0x3395b4(_0x494e29,w);_0x495944[_0x2e81('0x4')][_0x2e81('0x29')](_0x59f3da,P),_0x495944[_0x2e81('0x1f')]=D(_0x494e29)?_0x494e29['getRootsAttributes']():void 0x0;const _0x12db01=document[_0x2e81('0x23')](),_0xb515ae=_0x494e29[_0x2e81('0x1a')][_0x2e81('0x21')](_0x2e81('0xf'))[_0x2e81('0x2')],_0x3a54b9=await _0xb515ae(_0x495944,()=>function(_0x1a1d72){const _0x4e930f=document[_0x2e81('0x2a')](_0x2e81('0x22'));return _0x1a1d72[_0x2e81('0x5')](_0x4e930f),_0x4e930f;}(_0x12db01));!function(_0x5d7560,_0x13aae7){const _0x50e5d0=_0x5d7560[_0x2e81('0x6')][_0x2e81('0x1d')][_0x2e81('0x25')]()[_0x2e81('0x0')]((_0x157910,_0x2a562f)=>(_0x157910[_0x2a562f]=_0x5d7560[_0x2e81('0x26')][_0x2e81('0x21')]({'rootName':_0x2a562f}),_0x157910),{}),_0x19a484=_0x5d7560[_0x2e81('0x4')][_0x2e81('0x21')](_0x2e81('0x1'))['users'][_0x2e81('0x15')](_0x5a1823=>({'id':_0x5a1823['id'],'name':_0x5a1823['name']})),_0x5e6710=_0x5d7560[_0x2e81('0x4')]['get']('TrackChangesEditing')[_0x2e81('0x3')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x28a6d=_0x13aae7[_0x2e81('0x4')][_0x2e81('0x21')](_0x2e81('0x1')),_0x428185=_0x13aae7[_0x2e81('0x4')][_0x2e81('0x21')](_0x2e81('0x8'));for(const _0x4a636e of _0x19a484)_0x28a6d[_0x2e81('0x1c')](_0x4a636e['id'])||_0x28a6d[_0x2e81('0x18')](_0x4a636e);_0x28a6d['me']||_0x28a6d[_0x2e81('0x11')]();for(const _0x2fa1a0 of _0x5e6710)_0x428185[_0x2e81('0x7')](_0x2fa1a0);_0x13aae7[_0x2e81('0x26')][_0x2e81('0x24')](_0x50e5d0);}(_0x494e29,_0x3a54b9),_0x3a54b9['execute'](_0x5a7ff9?_0x2e81('0x1e'):_0x2e81('0x17'));const _0x3019a8=D(_0x3a54b9)?_0x3a54b9[_0x2e81('0x2b')](_0x5370dd):_0x3a54b9[_0x2e81('0x26')][_0x2e81('0x21')](_0x5370dd);return await _0x3a54b9[_0x2e81('0x20')](),_0x3019a8;}
@@ -1,3 +1,7 @@
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
+ */
1
5
  /**
2
6
  * @module track-changes/trackchangesediting
3
7
  * @publicApi