@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230723.0 → 0.0.0-nightly-20230725.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 (130) hide show
  1. package/README.md +0 -1
  2. package/build/track-changes.js +1 -1
  3. package/package.json +3 -3
  4. package/src/augmentation.d.ts +4 -0
  5. package/src/commands/acceptsuggestioncommand.d.ts +4 -0
  6. package/src/commands/acceptsuggestioncommand.js +1 -1
  7. package/src/commands/discardsuggestioncommand.d.ts +4 -0
  8. package/src/commands/discardsuggestioncommand.js +1 -1
  9. package/src/commands/executeonallsuggestionscommand.d.ts +4 -0
  10. package/src/commands/executeonallsuggestionscommand.js +1 -1
  11. package/src/commands/executeonselectedsuggestionscommand.d.ts +4 -0
  12. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  13. package/src/commands/trackchangescommand.d.ts +4 -0
  14. package/src/commands/trackchangescommand.js +1 -1
  15. package/src/index.d.ts +4 -0
  16. package/src/integrations/alignment.d.ts +4 -0
  17. package/src/integrations/alignment.js +1 -1
  18. package/src/integrations/basicstyles.d.ts +4 -0
  19. package/src/integrations/basicstyles.js +1 -1
  20. package/src/integrations/blockquote.d.ts +4 -0
  21. package/src/integrations/blockquote.js +1 -1
  22. package/src/integrations/ckbox.d.ts +4 -0
  23. package/src/integrations/ckbox.js +1 -1
  24. package/src/integrations/codeblock.d.ts +4 -0
  25. package/src/integrations/codeblock.js +1 -1
  26. package/src/integrations/comments.d.ts +4 -0
  27. package/src/integrations/comments.js +1 -1
  28. package/src/integrations/deletecommand.d.ts +4 -0
  29. package/src/integrations/deletecommand.js +1 -1
  30. package/src/integrations/documentlist.d.ts +4 -0
  31. package/src/integrations/documentlist.js +1 -1
  32. package/src/integrations/documentlistproperties.d.ts +4 -0
  33. package/src/integrations/documentlistproperties.js +1 -1
  34. package/src/integrations/entercommand.d.ts +4 -0
  35. package/src/integrations/entercommand.js +1 -1
  36. package/src/integrations/findandreplace.d.ts +4 -0
  37. package/src/integrations/findandreplace.js +1 -1
  38. package/src/integrations/font.d.ts +4 -0
  39. package/src/integrations/font.js +1 -1
  40. package/src/integrations/formatpainter.d.ts +4 -0
  41. package/src/integrations/formatpainter.js +1 -1
  42. package/src/integrations/heading.d.ts +4 -0
  43. package/src/integrations/heading.js +1 -1
  44. package/src/integrations/highlight.d.ts +4 -0
  45. package/src/integrations/highlight.js +1 -1
  46. package/src/integrations/horizontalline.d.ts +4 -0
  47. package/src/integrations/horizontalline.js +1 -1
  48. package/src/integrations/htmlembed.d.ts +4 -0
  49. package/src/integrations/htmlembed.js +1 -1
  50. package/src/integrations/image.d.ts +4 -0
  51. package/src/integrations/image.js +1 -1
  52. package/src/integrations/imagereplace.d.ts +4 -0
  53. package/src/integrations/imagereplace.js +1 -1
  54. package/src/integrations/importword.d.ts +4 -0
  55. package/src/integrations/importword.js +1 -1
  56. package/src/integrations/indent.d.ts +4 -0
  57. package/src/integrations/indent.js +1 -1
  58. package/src/integrations/inputcommand.d.ts +4 -0
  59. package/src/integrations/inputcommand.js +1 -1
  60. package/src/integrations/link.d.ts +4 -0
  61. package/src/integrations/link.js +1 -1
  62. package/src/integrations/list.d.ts +4 -0
  63. package/src/integrations/list.js +1 -1
  64. package/src/integrations/listproperties.d.ts +4 -0
  65. package/src/integrations/listproperties.js +1 -1
  66. package/src/integrations/mediaembed.d.ts +4 -0
  67. package/src/integrations/mediaembed.js +1 -1
  68. package/src/integrations/mention.d.ts +4 -0
  69. package/src/integrations/mention.js +1 -1
  70. package/src/integrations/pagebreak.d.ts +4 -0
  71. package/src/integrations/pagebreak.js +1 -1
  72. package/src/integrations/paragraph.d.ts +4 -0
  73. package/src/integrations/paragraph.js +1 -1
  74. package/src/integrations/removeformat.d.ts +4 -0
  75. package/src/integrations/removeformat.js +1 -1
  76. package/src/integrations/restrictededitingmode.d.ts +4 -0
  77. package/src/integrations/restrictededitingmode.js +1 -1
  78. package/src/integrations/shiftentercommand.d.ts +4 -0
  79. package/src/integrations/shiftentercommand.js +1 -1
  80. package/src/integrations/standardeditingmode.d.ts +4 -0
  81. package/src/integrations/standardeditingmode.js +1 -1
  82. package/src/integrations/style.d.ts +4 -0
  83. package/src/integrations/style.js +1 -1
  84. package/src/integrations/table.d.ts +4 -0
  85. package/src/integrations/table.js +1 -1
  86. package/src/integrations/tablecaption.d.ts +4 -0
  87. package/src/integrations/tablecaption.js +1 -1
  88. package/src/integrations/tableclipboard.d.ts +2 -1
  89. package/src/integrations/tableclipboard.js +1 -1
  90. package/src/integrations/tablecolumnresize.d.ts +4 -0
  91. package/src/integrations/tablecolumnresize.js +1 -1
  92. package/src/integrations/tableheadings.d.ts +4 -0
  93. package/src/integrations/tableheadings.js +1 -1
  94. package/src/integrations/tablemergesplit.d.ts +4 -0
  95. package/src/integrations/tablemergesplit.js +1 -1
  96. package/src/integrations/tableofcontents.d.ts +4 -0
  97. package/src/integrations/tableofcontents.js +1 -1
  98. package/src/integrations/tableproperties.d.ts +4 -0
  99. package/src/integrations/tableproperties.js +1 -1
  100. package/src/integrations/template.d.ts +4 -0
  101. package/src/integrations/template.js +1 -1
  102. package/src/integrations/title.d.ts +4 -0
  103. package/src/integrations/title.js +1 -1
  104. package/src/integrations/undo.d.ts +4 -0
  105. package/src/integrations/undo.js +1 -1
  106. package/src/integrations/utils.d.ts +4 -0
  107. package/src/integrations/utils.js +1 -1
  108. package/src/suggestion.d.ts +11 -1
  109. package/src/suggestion.js +1 -1
  110. package/src/suggestiondescriptionfactory.d.ts +2 -2
  111. package/src/suggestiondescriptionfactory.js +1 -1
  112. package/src/trackchanges.d.ts +4 -0
  113. package/src/trackchanges.js +1 -1
  114. package/src/trackchangesconfig.d.ts +4 -0
  115. package/src/trackchangesdata.d.ts +4 -0
  116. package/src/trackchangesdata.js +1 -1
  117. package/src/trackchangesediting.d.ts +4 -0
  118. package/src/trackchangesediting.js +1 -1
  119. package/src/trackchangesui.d.ts +4 -0
  120. package/src/trackchangesui.js +1 -1
  121. package/src/ui/suggestioncontroller.d.ts +2 -1
  122. package/src/ui/suggestioncontroller.js +1 -1
  123. package/src/ui/view/basesuggestionthreadview.d.ts +4 -0
  124. package/src/ui/view/basesuggestionthreadview.js +1 -1
  125. package/src/ui/view/suggestionthreadview.d.ts +2 -2
  126. package/src/ui/view/suggestionthreadview.js +1 -1
  127. package/src/utils/common-translations.d.ts +4 -0
  128. package/src/utils/common-translations.js +1 -1
  129. package/src/utils/utils.d.ts +4 -0
  130. package/src/utils/utils.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-track-changes",
3
- "version": "0.0.0-nightly-20230723.0",
3
+ "version": "0.0.0-nightly-20230725.0",
4
4
  "description": "CKEditor 5 track changes plugin.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -39,8 +39,8 @@
39
39
  "CHANGELOG.md"
40
40
  ],
41
41
  "dependencies": {
42
- "ckeditor5": "0.0.0-nightly-20230723.0",
43
- "ckeditor5-collaboration": "0.0.0-nightly-20230723.0",
42
+ "ckeditor5": "0.0.0-nightly-20230725.0",
43
+ "ckeditor5-collaboration": "0.0.0-nightly-20230725.0",
44
44
  "lodash-es": "4.17.21"
45
45
  },
46
46
  "engines": {
@@ -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 { TrackChangesConfig, TrackChangesEditing, AcceptSuggestionCommand, DiscardSuggestionCommand, ExecuteOnAllSuggestionsCommand, ExecuteOnSelectedSuggestionsCommand, TrackChangesCommand } from './index';
2
6
  import type { Editor } from 'ckeditor5/src/core';
3
7
  declare module '@ckeditor/ckeditor5-core' {
@@ -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/commands/acceptsuggestioncommand
3
7
  * @publicApi
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x14f5=['canEditAt','getRanges','editor','model','acceptSuggestion','_suggestions','get','_isEnabledBasedOnSelection','execute','refresh'];(function(_0xd0c148,_0x14f582){const _0x5f1b68=function(_0xae376a){while(--_0xae376a){_0xd0c148['push'](_0xd0c148['shift']());}};_0x5f1b68(++_0x14f582);}(_0x14f5,0x9a));const _0x5f1b=function(_0xd0c148,_0x14f582){_0xd0c148=_0xd0c148-0x0;let _0x5f1b68=_0x14f5[_0xd0c148];return _0x5f1b68;};import{Command as _0x7acc50}from'ckeditor5/src/core';import{CKEditorError as _0x51eddf}from'ckeditor5/src/utils';export default class M extends _0x7acc50{constructor(_0x1dc327,_0x1a5452){super(_0x1dc327),this[_0x5f1b('0x1')]=_0x1a5452,this['refresh'](),this[_0x5f1b('0x3')]=!0x1;}[_0x5f1b('0x5')](){this['isEnabled']=!0x0;}[_0x5f1b('0x4')](_0x20149e){const _0xb5b5ad=this[_0x5f1b('0x1')][_0x5f1b('0x2')](_0x20149e);if(!_0xb5b5ad)throw new _0x51eddf('track-changes-accept-suggestion-not-found',this);const _0x4f4521=_0xb5b5ad[_0x5f1b('0x7')]();this['editor'][_0x5f1b('0x9')][_0x5f1b('0x6')](_0x4f4521)&&this[_0x5f1b('0x8')]['plugins'][_0x5f1b('0x2')]('TrackChangesEditing')[_0x5f1b('0x0')](_0xb5b5ad);}}
23
+ const _0x2e2f=['get','_suggestions','execute','track-changes-accept-suggestion-not-found','refresh','acceptSuggestion','TrackChangesEditing','canEditAt','getRanges','plugins','editor'];(function(_0xd1fe45,_0x2e2f8e){const _0x3043d8=function(_0x1a35d5){while(--_0x1a35d5){_0xd1fe45['push'](_0xd1fe45['shift']());}};_0x3043d8(++_0x2e2f8e);}(_0x2e2f,0x9b));const _0x3043=function(_0xd1fe45,_0x2e2f8e){_0xd1fe45=_0xd1fe45-0x0;let _0x3043d8=_0x2e2f[_0xd1fe45];return _0x3043d8;};import{Command as _0x5dc89d}from'ckeditor5/src/core';import{CKEditorError as _0x4528ae}from'ckeditor5/src/utils';export default class M extends _0x5dc89d{constructor(_0xa9d926,_0x1419f7){super(_0xa9d926),this[_0x3043('0x0')]=_0x1419f7,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}[_0x3043('0x3')](){this['isEnabled']=!0x0;}[_0x3043('0x1')](_0x160ba8){const _0x2a6ce9=this[_0x3043('0x0')]['get'](_0x160ba8);if(!_0x2a6ce9)throw new _0x4528ae(_0x3043('0x2'),this);const _0xf4a58f=_0x2a6ce9[_0x3043('0x7')]();this['editor']['model'][_0x3043('0x6')](_0xf4a58f)&&this[_0x3043('0x9')][_0x3043('0x8')][_0x3043('0xa')](_0x3043('0x5'))[_0x3043('0x4')](_0x2a6ce9);}}
@@ -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/commands/discardsuggestioncommand
3
7
  * @publicApi
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x7b89=['editor','getRanges','refresh','get','model','_suggestions','isEnabled','canEditAt','TrackChangesEditing','execute','discardSuggestion'];(function(_0x4457c4,_0x7b89e5){const _0x1d77a9=function(_0x5bfabb){while(--_0x5bfabb){_0x4457c4['push'](_0x4457c4['shift']());}};_0x1d77a9(++_0x7b89e5);}(_0x7b89,0x183));const _0x1d77=function(_0x4457c4,_0x7b89e5){_0x4457c4=_0x4457c4-0x0;let _0x1d77a9=_0x7b89[_0x4457c4];return _0x1d77a9;};import{Command as _0x14f94e}from'ckeditor5/src/core';import{CKEditorError as _0x487132}from'ckeditor5/src/utils';export default class $ extends _0x14f94e{constructor(_0x2223f1,_0x117d46){super(_0x2223f1),this[_0x1d77('0x3')]=_0x117d46,this[_0x1d77('0x0')](),this['_isEnabledBasedOnSelection']=!0x1;}[_0x1d77('0x0')](){this[_0x1d77('0x4')]=!0x0;}[_0x1d77('0x7')](_0x376d6f){const _0x2a0cf3=this[_0x1d77('0x3')][_0x1d77('0x1')](_0x376d6f);if(!_0x2a0cf3)throw new _0x487132('track-changes-discard-suggestion-not-found',this);const _0x322ab3=_0x2a0cf3[_0x1d77('0xa')]();this[_0x1d77('0x9')][_0x1d77('0x2')][_0x1d77('0x5')](_0x322ab3)&&this[_0x1d77('0x9')]['plugins'][_0x1d77('0x1')](_0x1d77('0x6'))[_0x1d77('0x8')](_0x2a0cf3);}}
23
+ const _0x128c=['isEnabled','execute','TrackChangesEditing','discardSuggestion','editor','_suggestions','get','model','canEditAt','_isEnabledBasedOnSelection','getRanges','refresh'];(function(_0x14d68e,_0x128c14){const _0x5fe0d5=function(_0x3f5fa2){while(--_0x3f5fa2){_0x14d68e['push'](_0x14d68e['shift']());}};_0x5fe0d5(++_0x128c14);}(_0x128c,0xbb));const _0x5fe0=function(_0x14d68e,_0x128c14){_0x14d68e=_0x14d68e-0x0;let _0x5fe0d5=_0x128c[_0x14d68e];return _0x5fe0d5;};import{Command as _0x646a18}from'ckeditor5/src/core';import{CKEditorError as _0x37e1bd}from'ckeditor5/src/utils';export default class $ extends _0x646a18{constructor(_0x536a04,_0x19f464){super(_0x536a04),this[_0x5fe0('0xa')]=_0x19f464,this[_0x5fe0('0x4')](),this[_0x5fe0('0x2')]=!0x1;}['refresh'](){this[_0x5fe0('0x5')]=!0x0;}[_0x5fe0('0x6')](_0xacfad4){const _0x50cb28=this[_0x5fe0('0xa')][_0x5fe0('0xb')](_0xacfad4);if(!_0x50cb28)throw new _0x37e1bd('track-changes-discard-suggestion-not-found',this);const _0x24e79d=_0x50cb28[_0x5fe0('0x3')]();this[_0x5fe0('0x9')][_0x5fe0('0x0')][_0x5fe0('0x1')](_0x24e79d)&&this[_0x5fe0('0x9')]['plugins'][_0x5fe0('0xb')](_0x5fe0('0x7'))[_0x5fe0('0x8')](_0x50cb28);}}
@@ -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/commands/executeonallsuggestionscommand
3
7
  * @publicApi
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x24a5=['isInContent','values','getRanges','canEditAt','refresh','_suggestions','isEnabled','_isEnabledBasedOnSelection','_command','model','from','editor','execute','some'];(function(_0x4bffe9,_0x24a5ab){const _0x5d7a55=function(_0x393852){while(--_0x393852){_0x4bffe9['push'](_0x4bffe9['shift']());}};_0x5d7a55(++_0x24a5ab);}(_0x24a5,0x1a3));const _0x5d7a=function(_0x4bffe9,_0x24a5ab){_0x4bffe9=_0x4bffe9-0x0;let _0x5d7a55=_0x24a5[_0x4bffe9];return _0x5d7a55;};import{Command as _0x1970fd}from'ckeditor5/src/core';import{sortSuggestions as _0x5f0bb0,executeCommandForSuggestions as _0x29d2b9}from'../utils/utils';export default class N extends _0x1970fd{constructor(_0x3a49ab,_0x51c193,_0x324413){super(_0x3a49ab),this[_0x5d7a('0x9')]=_0x51c193,this[_0x5d7a('0x6')]=_0x324413,this[_0x5d7a('0x5')](),this[_0x5d7a('0x8')]=!0x1;}['refresh'](){const _0x109488=Array[_0x5d7a('0xb')](this[_0x5d7a('0x6')][_0x5d7a('0x2')]())[_0x5d7a('0x0')](_0xc445c4=>_0xc445c4[_0x5d7a('0x1')]);this[_0x5d7a('0x7')]=this[_0x5d7a('0x9')][_0x5d7a('0x7')]&&_0x109488;}[_0x5d7a('0xd')](){const _0x89b7c0=_0x5f0bb0(Array[_0x5d7a('0xb')](this['_suggestions'][_0x5d7a('0x2')]()));for(const _0x4bb539 of _0x89b7c0){const _0x4a4a0d=_0x4bb539[_0x5d7a('0x3')]();if(!this[_0x5d7a('0xc')][_0x5d7a('0xa')][_0x5d7a('0x4')](_0x4a4a0d))return;}_0x29d2b9(this[_0x5d7a('0xc')][_0x5d7a('0xa')],this[_0x5d7a('0x9')],_0x89b7c0);}}
23
+ const _0x12aa=['refresh','some','getRanges','values','_isEnabledBasedOnSelection','_command','_suggestions','isEnabled','from','editor','execute','canEditAt','model'];(function(_0x76590a,_0x12aaf8){const _0x9b7411=function(_0x6b37c7){while(--_0x6b37c7){_0x76590a['push'](_0x76590a['shift']());}};_0x9b7411(++_0x12aaf8);}(_0x12aa,0x83));const _0x9b74=function(_0x76590a,_0x12aaf8){_0x76590a=_0x76590a-0x0;let _0x9b7411=_0x12aa[_0x76590a];return _0x9b7411;};import{Command as _0xce6592}from'ckeditor5/src/core';import{sortSuggestions as _0x1d19af,executeCommandForSuggestions as _0x73da0}from'../utils/utils';export default class N extends _0xce6592{constructor(_0x4e66e7,_0x4410a4,_0x40f2ce){super(_0x4e66e7),this['_command']=_0x4410a4,this[_0x9b74('0x5')]=_0x40f2ce,this[_0x9b74('0xc')](),this[_0x9b74('0x3')]=!0x1;}[_0x9b74('0xc')](){const _0x17ce8f=Array[_0x9b74('0x7')](this['_suggestions'][_0x9b74('0x2')]())[_0x9b74('0x0')](_0x1dcaf6=>_0x1dcaf6['isInContent']);this[_0x9b74('0x6')]=this[_0x9b74('0x4')]['isEnabled']&&_0x17ce8f;}[_0x9b74('0x9')](){const _0x1d448e=_0x1d19af(Array[_0x9b74('0x7')](this[_0x9b74('0x5')][_0x9b74('0x2')]()));for(const _0x53c183 of _0x1d448e){const _0x15be98=_0x53c183[_0x9b74('0x1')]();if(!this['editor'][_0x9b74('0xb')][_0x9b74('0xa')](_0x15be98))return;}_0x73da0(this[_0x9b74('0x8')][_0x9b74('0xb')],this[_0x9b74('0x4')],_0x1d448e);}}
@@ -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/commands/executeonselectedsuggestionscommand
3
7
  * @publicApi
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xd2cc=['size','execute','values','refresh','from','editor','_command','_suggestions','_selectedSuggestions','_isEnabledBasedOnSelection','isEnabled','canEditAt','model','selection'];(function(_0x5b03ed,_0xd2ccd3){const _0x431a8e=function(_0x1233e9){while(--_0x1233e9){_0x5b03ed['push'](_0x5b03ed['shift']());}};_0x431a8e(++_0xd2ccd3);}(_0xd2cc,0x1e2));const _0x431a=function(_0x5b03ed,_0xd2ccd3){_0x5b03ed=_0x5b03ed-0x0;let _0x431a8e=_0xd2cc[_0x5b03ed];return _0x431a8e;};import{Command as _0x2cfcc6}from'ckeditor5/src/core';import{sortSuggestions as _0x5dbf08,getSelectedSuggestions as _0x3e85ad,executeCommandForSuggestions as _0x8f5cb6}from'../utils/utils';export default class R extends _0x2cfcc6{constructor(_0xc49198,_0x1573f9,_0x1904b7){super(_0xc49198),this[_0x431a('0x0')]=_0x1573f9,this[_0x431a('0x1')]=_0x1904b7,this['_selectedSuggestions']=new Set(),this[_0x431a('0xb')](),this[_0x431a('0x3')]=!0x1;}['refresh'](){const _0x6fccf8=this[_0x431a('0xd')][_0x431a('0x6')]['document'][_0x431a('0x7')],_0x37c28c=Array[_0x431a('0xc')](this[_0x431a('0x1')][_0x431a('0xa')]());this[_0x431a('0x2')]=_0x3e85ad(_0x6fccf8,_0x37c28c),this[_0x431a('0x4')]=this['_command'][_0x431a('0x4')]&&!!this['_selectedSuggestions'][_0x431a('0x8')];}[_0x431a('0x9')](){const _0x1e27c2=_0x5dbf08(Array[_0x431a('0xc')](this[_0x431a('0x2')]));for(const _0x123581 of _0x1e27c2){const _0xc1ff45=_0x123581['getRanges']();if(!this[_0x431a('0xd')]['model'][_0x431a('0x5')](_0xc1ff45))return;}_0x8f5cb6(this['editor'][_0x431a('0x6')],this['_command'],_0x1e27c2);}}
23
+ const _0xa998=['execute','_selectedSuggestions','refresh','_suggestions','from','isEnabled','values','selection','model','editor','_isEnabledBasedOnSelection','size','getRanges','_command'];(function(_0x371ac5,_0xa998e7){const _0x4289a2=function(_0x5bfb0b){while(--_0x5bfb0b){_0x371ac5['push'](_0x371ac5['shift']());}};_0x4289a2(++_0xa998e7);}(_0xa998,0x14b));const _0x4289=function(_0x371ac5,_0xa998e7){_0x371ac5=_0x371ac5-0x0;let _0x4289a2=_0xa998[_0x371ac5];return _0x4289a2;};import{Command as _0x1e84dc}from'ckeditor5/src/core';import{sortSuggestions as _0x277609,getSelectedSuggestions as _0x2e3c7e,executeCommandForSuggestions as _0xb07095}from'../utils/utils';export default class R extends _0x1e84dc{constructor(_0x3d8aaf,_0x33fbf9,_0x9231d1){super(_0x3d8aaf),this['_command']=_0x33fbf9,this[_0x4289('0x8')]=_0x9231d1,this[_0x4289('0x6')]=new Set(),this[_0x4289('0x7')](),this[_0x4289('0x1')]=!0x1;}[_0x4289('0x7')](){const _0x50e9f1=this[_0x4289('0x0')][_0x4289('0xd')]['document'][_0x4289('0xc')],_0x56a265=Array[_0x4289('0x9')](this['_suggestions'][_0x4289('0xb')]());this[_0x4289('0x6')]=_0x2e3c7e(_0x50e9f1,_0x56a265),this[_0x4289('0xa')]=this[_0x4289('0x4')]['isEnabled']&&!!this[_0x4289('0x6')][_0x4289('0x2')];}[_0x4289('0x5')](){const _0x14ab85=_0x277609(Array['from'](this['_selectedSuggestions']));for(const _0x315a49 of _0x14ab85){const _0x1eb351=_0x315a49[_0x4289('0x3')]();if(!this[_0x4289('0x0')][_0x4289('0xd')]['canEditAt'](_0x1eb351))return;}_0xb07095(this[_0x4289('0x0')][_0x4289('0xd')],this[_0x4289('0x4')],_0x14ab85);}}
@@ -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/commands/trackchangescommand
3
7
  * @publicApi
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1e3c=['editor','TrackChangesCommand','commands','_enableCommands','affectsData','_enabledCommands','refresh','_disableUnsupportedCommands','has','value','isEnabled','forceDisabled'];(function(_0x5411a2,_0x1e3c8b){const _0x1701c4=function(_0x588453){while(--_0x588453){_0x5411a2['push'](_0x5411a2['shift']());}};_0x1701c4(++_0x1e3c8b);}(_0x1e3c,0x1c5));const _0x1701=function(_0x5411a2,_0x1e3c8b){_0x5411a2=_0x5411a2-0x0;let _0x1701c4=_0x1e3c[_0x5411a2];return _0x1701c4;};import{Command as _0x1478c6}from'ckeditor5/src/core';export default class _ extends _0x1478c6{constructor(_0x36005a,_0x4d9072){super(_0x36005a),this[_0x1701('0x8')]=_0x4d9072,this['value']=!0x1,this[_0x1701('0x9')](),this['_isEnabledBasedOnSelection']=!0x1;}[_0x1701('0x9')](){this[_0x1701('0x1')]=!0x0;}['execute'](){this[_0x1701('0x0')]=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}[_0x1701('0xa')](){for(const _0x3a5915 of this[_0x1701('0x3')]['commands'][_0x1701('0x5')]())_0x3a5915[_0x1701('0x7')]&&!this[_0x1701('0x8')][_0x1701('0xb')](_0x3a5915)&&_0x3a5915[_0x1701('0x2')](_0x1701('0x4'));}[_0x1701('0x6')](){for(const _0x26074f of this[_0x1701('0x3')][_0x1701('0x5')][_0x1701('0x5')]())_0x26074f['affectsData']&&!this['_enabledCommands'][_0x1701('0xb')](_0x26074f)&&_0x26074f['clearForceDisabled'](_0x1701('0x4'));}}
23
+ const _0x193f=['execute','_disableUnsupportedCommands','editor','refresh','has','isEnabled','_enabledCommands','value','forceDisabled','_isEnabledBasedOnSelection','affectsData','commands'];(function(_0x318fb5,_0x193f03){const _0x92b413=function(_0x261463){while(--_0x261463){_0x318fb5['push'](_0x318fb5['shift']());}};_0x92b413(++_0x193f03);}(_0x193f,0x134));const _0x92b4=function(_0x318fb5,_0x193f03){_0x318fb5=_0x318fb5-0x0;let _0x92b413=_0x193f[_0x318fb5];return _0x92b413;};import{Command as _0x23f314}from'ckeditor5/src/core';export default class _ extends _0x23f314{constructor(_0x5a85ba,_0x14e63d){super(_0x5a85ba),this[_0x92b4('0xa')]=_0x14e63d,this[_0x92b4('0xb')]=!0x1,this[_0x92b4('0x7')](),this[_0x92b4('0x1')]=!0x1;}['refresh'](){this[_0x92b4('0x9')]=!0x0;}[_0x92b4('0x4')](){this[_0x92b4('0xb')]=!this[_0x92b4('0xb')],this['value']?this[_0x92b4('0x5')]():this['_enableCommands']();}[_0x92b4('0x5')](){for(const _0x41e458 of this['editor'][_0x92b4('0x3')][_0x92b4('0x3')]())_0x41e458[_0x92b4('0x2')]&&!this[_0x92b4('0xa')][_0x92b4('0x8')](_0x41e458)&&_0x41e458[_0x92b4('0x0')]('TrackChangesCommand');}['_enableCommands'](){for(const _0x5cedf9 of this[_0x92b4('0x6')][_0x92b4('0x3')]['commands']())_0x5cedf9[_0x92b4('0x2')]&&!this['_enabledCommands'][_0x92b4('0x8')](_0x5cedf9)&&_0x5cedf9['clearForceDisabled']('TrackChangesCommand');}}
package/src/index.d.ts CHANGED
@@ -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
  export { default as TrackChanges, type SuggestionData } from './trackchanges';
2
6
  export { default as TrackChangesData } from './trackchangesdata';
3
7
  export { default as TrackChangesEditing } from './trackchangesediting';
@@ -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/alignment
3
7
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x10fe=['AlignmentEditing','FORMAT_JUSTIFY_TEXT','afterInit','value','editor','model','TrackChangesEditing','right','checkAttribute','locale','schema','getSelectedBlocks','center','plugins','_descriptionFactory','contentLanguageDirection','commandParams','change','justify','FORMAT_ALIGN_TO_CENTER','format','commandName','enableCommand','FORMAT_ALIGN_TO_RIGHT','alignment','markBlockFormat','FORMAT_ALIGN_TO_LEFT','left','document','registerDescriptionCallback','has','ltr','from','selection'];(function(_0x411830,_0x10fe84){const _0x33c7e=function(_0x589b0d){while(--_0x589b0d){_0x411830['push'](_0x411830['shift']());}};_0x33c7e(++_0x10fe84);}(_0x10fe,0x175));const _0x33c7=function(_0x411830,_0x10fe84){_0x411830=_0x411830-0x0;let _0x33c7e=_0x10fe[_0x411830];return _0x33c7e;};import{Plugin as _0x634608}from'ckeditor5/src/core';import{getTranslation as _0x2bfc75}from'../utils/common-translations';export default class x extends _0x634608{[_0x33c7('0x3')](){const _0x3c8def=this[_0x33c7('0x5')],_0x3792a9=_0x3c8def[_0x33c7('0xa')];if(!_0x3c8def[_0x33c7('0xe')][_0x33c7('0x1f')](_0x33c7('0x1')))return;const _0x368f29=_0x3c8def[_0x33c7('0xe')]['get'](_0x33c7('0x7'));_0x368f29[_0x33c7('0x17')](_0x33c7('0x19'),(_0x3dcff4,_0x1a6f15={})=>{let _0x7242d6=_0x1a6f15['value'];_0x1a6f15[_0x33c7('0x4')]||(_0x7242d6=_0x33c7('0x20')===_0x3c8def[_0x33c7('0xa')][_0x33c7('0x10')]?_0x33c7('0x1c'):_0x33c7('0x8'));const _0x32a4c8=Array[_0x33c7('0x21')](this[_0x33c7('0x5')][_0x33c7('0x6')][_0x33c7('0x1d')][_0x33c7('0x0')][_0x33c7('0xc')]())['filter'](_0xacc31b=>function(_0x5f395d,_0x58e25f,_0x3174b2){const _0x22e123=_0x5f395d['getAttribute'](_0x33c7('0x19'))||null;return _0x58e25f[_0x33c7('0x9')](_0x5f395d,_0x33c7('0x19'))&&_0x3174b2!=_0x22e123;}(_0xacc31b,this['editor'][_0x33c7('0x6')][_0x33c7('0xb')],_0x7242d6));_0x3c8def[_0x33c7('0x6')][_0x33c7('0x12')](()=>{for(const _0x5cc32c of _0x32a4c8)_0x368f29[_0x33c7('0x1a')](_0x5cc32c,{'commandName':_0x33c7('0x19'),'commandParams':[{'value':_0x7242d6}]});});}),_0x368f29[_0x33c7('0xf')][_0x33c7('0x1e')](_0x566edd=>{const {data:_0x4f01db}=_0x566edd;if(_0x4f01db&&_0x33c7('0x19')==_0x4f01db[_0x33c7('0x16')]){const _0x4e0bbf=_0x4f01db[_0x33c7('0x11')][0x0]['value'];return{'type':_0x33c7('0x15'),'content':_0x2bfc75(_0x3792a9,'*Format:*\x20%0',function(_0x2ef8b9){switch(_0x2ef8b9){case _0x33c7('0x1c'):return _0x2bfc75(_0x3792a9,_0x33c7('0x1b'));case _0x33c7('0x8'):return _0x2bfc75(_0x3792a9,_0x33c7('0x18'));case _0x33c7('0xd'):return _0x2bfc75(_0x3792a9,_0x33c7('0x14'));case _0x33c7('0x13'):return _0x2bfc75(_0x3792a9,_0x33c7('0x2'));}}(_0x4e0bbf))};}});}}
23
+ const _0x3a35=['registerDescriptionCallback','from','value','format','FORMAT_ALIGN_TO_CENTER','change','schema','FORMAT_JUSTIFY_TEXT','model','getAttribute','_descriptionFactory','enableCommand','editor','selection','get','commandName','AlignmentEditing','commandParams','checkAttribute','contentLanguageDirection','TrackChangesEditing','*Format:*\x20%0','ltr','plugins','document','has','left','alignment','afterInit','FORMAT_ALIGN_TO_LEFT','center','locale','right'];(function(_0x4bd6c6,_0x3a359b){const _0x3e5f0e=function(_0xcb70a5){while(--_0xcb70a5){_0x4bd6c6['push'](_0x4bd6c6['shift']());}};_0x3e5f0e(++_0x3a359b);}(_0x3a35,0x1a2));const _0x3e5f=function(_0x4bd6c6,_0x3a359b){_0x4bd6c6=_0x4bd6c6-0x0;let _0x3e5f0e=_0x3a35[_0x4bd6c6];return _0x3e5f0e;};import{Plugin as _0x58d50a}from'ckeditor5/src/core';import{getTranslation as _0x5b1c46}from'../utils/common-translations';export default class x extends _0x58d50a{[_0x3e5f('0x6')](){const _0x1037ad=this[_0x3e5f('0x17')],_0x14b9d6=_0x1037ad[_0x3e5f('0x9')];if(!_0x1037ad[_0x3e5f('0x1')][_0x3e5f('0x3')](_0x3e5f('0x1b')))return;const _0x475300=_0x1037ad[_0x3e5f('0x1')][_0x3e5f('0x19')](_0x3e5f('0x1f'));_0x475300[_0x3e5f('0x16')]('alignment',(_0x221f18,_0x3c2f34={})=>{let _0x513151=_0x3c2f34[_0x3e5f('0xd')];_0x3c2f34[_0x3e5f('0xd')]||(_0x513151=_0x3e5f('0x0')===_0x1037ad[_0x3e5f('0x9')][_0x3e5f('0x1e')]?_0x3e5f('0x4'):_0x3e5f('0xa'));const _0x5d389f=Array[_0x3e5f('0xc')](this[_0x3e5f('0x17')]['model'][_0x3e5f('0x2')][_0x3e5f('0x18')]['getSelectedBlocks']())['filter'](_0x59a538=>function(_0x156834,_0x1d23b4,_0xc76ce2){const _0x5c8e34=_0x156834[_0x3e5f('0x14')](_0x3e5f('0x5'))||null;return _0x1d23b4[_0x3e5f('0x1d')](_0x156834,_0x3e5f('0x5'))&&_0xc76ce2!=_0x5c8e34;}(_0x59a538,this[_0x3e5f('0x17')][_0x3e5f('0x13')][_0x3e5f('0x11')],_0x513151));_0x1037ad['model'][_0x3e5f('0x10')](()=>{for(const _0x7b9dca of _0x5d389f)_0x475300['markBlockFormat'](_0x7b9dca,{'commandName':_0x3e5f('0x5'),'commandParams':[{'value':_0x513151}]});});}),_0x475300[_0x3e5f('0x15')][_0x3e5f('0xb')](_0x2aa2ea=>{const {data:_0x289b3b}=_0x2aa2ea;if(_0x289b3b&&_0x3e5f('0x5')==_0x289b3b[_0x3e5f('0x1a')]){const _0x3502f7=_0x289b3b[_0x3e5f('0x1c')][0x0][_0x3e5f('0xd')];return{'type':_0x3e5f('0xe'),'content':_0x5b1c46(_0x14b9d6,_0x3e5f('0x20'),function(_0xaa2ed){switch(_0xaa2ed){case _0x3e5f('0x4'):return _0x5b1c46(_0x14b9d6,_0x3e5f('0x7'));case _0x3e5f('0xa'):return _0x5b1c46(_0x14b9d6,'FORMAT_ALIGN_TO_RIGHT');case _0x3e5f('0x8'):return _0x5b1c46(_0x14b9d6,_0x3e5f('0xf'));case'justify':return _0x5b1c46(_0x14b9d6,_0x3e5f('0x12'));}}(_0x3502f7))};}});}}
@@ -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/basicstyles
3
7
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x25c7=['afterInit','model','FORMAT_UNDERLINE','StrikethroughEditing','FORMAT_BOLD','get','code','FORMAT_SUPERSCRIPT','UnderlineEditing','FORMAT_CODE','SuperscriptEditing','format','markInlineFormat','subscript','editor','TrackChangesEditing','bold','slice','forceValue','isCollapsed','*Remove\x20format:*\x20%0','plugins','getRanges','value','FORMAT_ITALIC','FORMAT_SUBSCRIPT','strikethrough','from','change','toLowerCase','locale','underline','SubscriptEditing','commands','FORMAT_STRIKETHROUGH','superscript','_descriptionFactory','ItalicEditing','has','registerDescriptionCallback','document'];(function(_0x1a1765,_0x25c79){const _0x4409d0=function(_0x26022a){while(--_0x26022a){_0x1a1765['push'](_0x1a1765['shift']());}};_0x4409d0(++_0x25c79);}(_0x25c7,0xd1));const _0x4409=function(_0x1a1765,_0x25c79){_0x1a1765=_0x1a1765-0x0;let _0x4409d0=_0x25c7[_0x1a1765];return _0x4409d0;};import{Plugin as _0x5c040e}from'ckeditor5/src/core';import{getTranslation as _0x275aa9}from'../utils/common-translations';import{getRangesWithAttribute as _0x27f087}from'./utils';const Kt=['BoldEditing',_0x4409('0x21'),_0x4409('0x4'),'CodeEditing',_0x4409('0x28'),_0x4409('0x1c'),_0x4409('0x6')];export default class U extends _0x5c040e{[_0x4409('0x25')](){const _0x23c145=this[_0x4409('0xa')],_0x5be736=_0x23c145[_0x4409('0x26')],_0x436737=_0x23c145[_0x4409('0x11')][_0x4409('0x1')](_0x4409('0xb')),_0xc37361=_0x23c145[_0x4409('0x1a')];for(const _0x73d03d of Kt){if(!_0x23c145[_0x4409('0x11')][_0x4409('0x22')](_0x73d03d))continue;const _0x53fd20=_0x73d03d[_0x4409('0xd')](0x0,-0x7)[_0x4409('0x19')](),_0xc6b318=_0x23c145[_0x4409('0x1d')][_0x4409('0x1')](_0x53fd20);_0x436737['enableCommand'](_0x53fd20,(_0x4b27b3,_0x2a1c6f={})=>{const _0x39729b=_0x5be736[_0x4409('0x24')]['selection'];if(_0x39729b[_0x4409('0xf')])return void _0x4b27b3(_0x2a1c6f);const _0x4a56aa=void 0x0!==_0x2a1c6f['forceValue']?_0x2a1c6f[_0x4409('0xe')]:!_0xc6b318[_0x4409('0x13')];_0x5be736[_0x4409('0x18')](()=>{const _0x56a7c4=Array[_0x4409('0x17')](_0x39729b[_0x4409('0x12')]());for(const _0x577df7 of _0x56a7c4){const _0x35afb8=_0x4a56aa?[_0x577df7]:_0x27f087(_0x53fd20,_0x577df7,_0x5be736);for(const _0x14acee of _0x35afb8)_0x436737[_0x4409('0x8')](_0x14acee,{'commandName':_0x53fd20,'commandParams':[{'forceValue':_0x4a56aa}]});}});});}function _0x4bae00(_0x2c0b44,_0x388340){_0x436737[_0x4409('0x20')][_0x4409('0x23')](_0x3dd4c7=>{const {data:_0x34b09f}=_0x3dd4c7;if(_0x34b09f&&_0x34b09f['commandName']===_0x2c0b44)return _0x34b09f['commandParams'][0x0][_0x4409('0xe')]?{'type':_0x4409('0x7'),'content':_0x275aa9(_0xc37361,'*Format:*\x20%0',_0x388340)}:{'type':_0x4409('0x7'),'content':_0x275aa9(_0xc37361,_0x4409('0x10'),_0x388340)};});}_0x4bae00(_0x4409('0xc'),_0x275aa9(_0xc37361,_0x4409('0x0'))),_0x4bae00('italic',_0x275aa9(_0xc37361,_0x4409('0x14'))),_0x4bae00(_0x4409('0x1b'),_0x275aa9(_0xc37361,_0x4409('0x27'))),_0x4bae00(_0x4409('0x2'),_0x275aa9(_0xc37361,_0x4409('0x5'))),_0x4bae00(_0x4409('0x16'),_0x275aa9(_0xc37361,_0x4409('0x1e'))),_0x4bae00(_0x4409('0x9'),_0x275aa9(_0xc37361,_0x4409('0x15'))),_0x4bae00(_0x4409('0x1f'),_0x275aa9(_0xc37361,_0x4409('0x3')));}}
23
+ const _0x5b0b=['FORMAT_STRIKETHROUGH','afterInit','getRanges','SubscriptEditing','bold','markInlineFormat','strikethrough','_descriptionFactory','has','selection','italic','underline','SuperscriptEditing','registerDescriptionCallback','TrackChangesEditing','isCollapsed','commandParams','from','commands','FORMAT_UNDERLINE','change','get','CodeEditing','ItalicEditing','FORMAT_SUBSCRIPT','format','StrikethroughEditing','plugins','locale','FORMAT_SUPERSCRIPT','document','*Remove\x20format:*\x20%0','code','FORMAT_ITALIC','slice','forceValue','enableCommand'];(function(_0x50effc,_0x5b0b9d){const _0x385d0d=function(_0x4bd591){while(--_0x4bd591){_0x50effc['push'](_0x50effc['shift']());}};_0x385d0d(++_0x5b0b9d);}(_0x5b0b,0x1b8));const _0x385d=function(_0x50effc,_0x5b0b9d){_0x50effc=_0x50effc-0x0;let _0x385d0d=_0x5b0b[_0x50effc];return _0x385d0d;};import{Plugin as _0x3d1d51}from'ckeditor5/src/core';import{getTranslation as _0x52b355}from'../utils/common-translations';import{getRangesWithAttribute as _0x17b6d3}from'./utils';const Kt=['BoldEditing',_0x385d('0x1b'),'UnderlineEditing',_0x385d('0x1a'),_0x385d('0x1e'),_0x385d('0x7'),_0x385d('0x10')];export default class U extends _0x3d1d51{[_0x385d('0x5')](){const _0x2d1eea=this['editor'],_0x22b897=_0x2d1eea['model'],_0x3a5921=_0x2d1eea[_0x385d('0x1f')][_0x385d('0x19')](_0x385d('0x12')),_0x4572e3=_0x2d1eea[_0x385d('0x20')];for(const _0x5c3375 of Kt){if(!_0x2d1eea['plugins'][_0x385d('0xc')](_0x5c3375))continue;const _0x272a8b=_0x5c3375[_0x385d('0x1')](0x0,-0x7)['toLowerCase'](),_0x504cbd=_0x2d1eea[_0x385d('0x16')]['get'](_0x272a8b);_0x3a5921[_0x385d('0x3')](_0x272a8b,(_0x4af731,_0x9e4f0a={})=>{const _0xa3b10b=_0x22b897[_0x385d('0x22')][_0x385d('0xd')];if(_0xa3b10b[_0x385d('0x13')])return void _0x4af731(_0x9e4f0a);const _0x5110af=void 0x0!==_0x9e4f0a['forceValue']?_0x9e4f0a[_0x385d('0x2')]:!_0x504cbd['value'];_0x22b897[_0x385d('0x18')](()=>{const _0x2629fb=Array[_0x385d('0x15')](_0xa3b10b[_0x385d('0x6')]());for(const _0x5220a8 of _0x2629fb){const _0x4f01dd=_0x5110af?[_0x5220a8]:_0x17b6d3(_0x272a8b,_0x5220a8,_0x22b897);for(const _0x145afe of _0x4f01dd)_0x3a5921[_0x385d('0x9')](_0x145afe,{'commandName':_0x272a8b,'commandParams':[{'forceValue':_0x5110af}]});}});});}function _0x588c2a(_0x2c4284,_0x8de8f8){_0x3a5921[_0x385d('0xb')][_0x385d('0x11')](_0x35ee01=>{const {data:_0x52ede1}=_0x35ee01;if(_0x52ede1&&_0x52ede1['commandName']===_0x2c4284)return _0x52ede1[_0x385d('0x14')][0x0][_0x385d('0x2')]?{'type':_0x385d('0x1d'),'content':_0x52b355(_0x4572e3,'*Format:*\x20%0',_0x8de8f8)}:{'type':_0x385d('0x1d'),'content':_0x52b355(_0x4572e3,_0x385d('0x23'),_0x8de8f8)};});}_0x588c2a(_0x385d('0x8'),_0x52b355(_0x4572e3,'FORMAT_BOLD')),_0x588c2a(_0x385d('0xe'),_0x52b355(_0x4572e3,_0x385d('0x0'))),_0x588c2a(_0x385d('0xf'),_0x52b355(_0x4572e3,_0x385d('0x17'))),_0x588c2a(_0x385d('0x24'),_0x52b355(_0x4572e3,'FORMAT_CODE')),_0x588c2a(_0x385d('0xa'),_0x52b355(_0x4572e3,_0x385d('0x4'))),_0x588c2a('subscript',_0x52b355(_0x4572e3,_0x385d('0x1c'))),_0x588c2a('superscript',_0x52b355(_0x4572e3,_0x385d('0x21')));}}
@@ -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/blockquote
3
7
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3928=['afterInit','*Format:*\x20%0','blockQuote','plugins','_descriptionFactory','forceValue','from','name','has','parent','checkChild','enableCommand','document','schema','TrackChangesEditing','*Remove\x20format:*\x20%0','ELEMENT_BLOCK_QUOTE','locale','value','selection','getSelectedBlocks','model','commands','get','editor','markBlockFormat','filter','commandParams','format'];(function(_0x265d8c,_0x3928d3){const _0x2a111d=function(_0x325a1d){while(--_0x325a1d){_0x265d8c['push'](_0x265d8c['shift']());}};_0x2a111d(++_0x3928d3);}(_0x3928,0x6e));const _0x2a11=function(_0x265d8c,_0x3928d3){_0x265d8c=_0x265d8c-0x0;let _0x2a111d=_0x3928[_0x265d8c];return _0x2a111d;};import{Plugin as _0x2a0ad6}from'ckeditor5/src/core';import{getTranslation as _0x32ac66}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x4a693c}from'../utils/utils';export default class j extends _0x2a0ad6{[_0x2a11('0x6')](){const _0x46a4ec=this[_0x2a11('0x1')],_0x5b64b4=_0x46a4ec[_0x2a11('0x17')];if(!_0x46a4ec[_0x2a11('0x9')][_0x2a11('0xe')]('BlockQuoteEditing'))return;const _0x440f58=_0x46a4ec['plugins'][_0x2a11('0x0')](_0x2a11('0x14')),_0x2238e8=this['editor'][_0x2a11('0x1c')]['get'](_0x2a11('0x8'));_0x440f58[_0x2a11('0x11')](_0x2a11('0x8'),(_0x189d86,_0x75960b={})=>{const _0x38398d=this[_0x2a11('0x1')][_0x2a11('0x1b')][_0x2a11('0x12')][_0x2a11('0x19')],_0x2ec35=_0x75960b&&void 0x0!==_0x75960b[_0x2a11('0xb')]?_0x75960b[_0x2a11('0xb')]:!_0x2238e8[_0x2a11('0x18')];let _0x1f5125=[];if(_0x2ec35){const _0x38e3b9=Array[_0x2a11('0xc')](_0x38398d[_0x2a11('0x1a')]())[_0x2a11('0x3')](_0x580ba5=>Xt(_0x580ba5)||function(_0x40b6b3,_0x18d54b){const _0x369d68=_0x18d54b[_0x2a11('0x10')](_0x40b6b3[_0x2a11('0xf')],_0x2a11('0x8')),_0x1b53b2=_0x18d54b['checkChild'](['$root',_0x2a11('0x8')],_0x40b6b3);return _0x369d68&&_0x1b53b2;}(_0x580ba5,this[_0x2a11('0x1')][_0x2a11('0x1b')][_0x2a11('0x13')]));_0x1f5125=_0x4a693c(_0x38e3b9,_0x46a4ec[_0x2a11('0x1b')]);}else{const _0x4eb8a2=Array[_0x2a11('0xc')](_0x38398d[_0x2a11('0x1a')]())[_0x2a11('0x3')](_0x488260=>Xt(_0x488260));_0x1f5125=_0x4a693c(_0x4eb8a2,_0x46a4ec[_0x2a11('0x1b')]);}_0x46a4ec[_0x2a11('0x1b')]['change'](()=>{for(const _0x17c869 of _0x1f5125)_0x440f58[_0x2a11('0x2')](_0x17c869,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2ec35}]});});}),_0x440f58[_0x2a11('0xa')]['registerDescriptionCallback'](_0x4cd28d=>{const {data:_0x28ffef}=_0x4cd28d;if(_0x28ffef&&_0x2a11('0x8')==_0x28ffef['commandName']){const _0x453c1f=_0x32ac66(_0x5b64b4,_0x2a11('0x16'));return _0x28ffef[_0x2a11('0x4')][0x0][_0x2a11('0xb')]?{'type':_0x2a11('0x5'),'content':_0x32ac66(_0x5b64b4,_0x2a11('0x7'),_0x453c1f)}:{'type':_0x2a11('0x5'),'content':_0x32ac66(_0x5b64b4,_0x2a11('0x15'),_0x453c1f)};}});}}function Xt(_0x4d24ef){return'blockQuote'==_0x4d24ef[_0x2a11('0xf')][_0x2a11('0xd')];}
23
+ const _0x1fc4=['BlockQuoteEditing','filter','document','plugins','format','parent','ELEMENT_BLOCK_QUOTE','registerDescriptionCallback','blockQuote','*Remove\x20format:*\x20%0','checkChild','_descriptionFactory','afterInit','schema','value','*Format:*\x20%0','has','forceValue','$root','model','get','markBlockFormat','commandName','name','commands','change','from','locale','editor'];(function(_0x1331ad,_0x1fc427){const _0x52eb23=function(_0x520850){while(--_0x520850){_0x1331ad['push'](_0x1331ad['shift']());}};_0x52eb23(++_0x1fc427);}(_0x1fc4,0xb4));const _0x52eb=function(_0x1331ad,_0x1fc427){_0x1331ad=_0x1331ad-0x0;let _0x52eb23=_0x1fc4[_0x1331ad];return _0x52eb23;};import{Plugin as _0x46d96c}from'ckeditor5/src/core';import{getTranslation as _0x390c9d}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x5a51aa}from'../utils/utils';export default class j extends _0x46d96c{[_0x52eb('0x6')](){const _0x521eef=this[_0x52eb('0x16')],_0x250d82=_0x521eef[_0x52eb('0x15')];if(!_0x521eef[_0x52eb('0x1a')][_0x52eb('0xa')](_0x52eb('0x17')))return;const _0x2fc537=_0x521eef['plugins'][_0x52eb('0xe')]('TrackChangesEditing'),_0x2a03bd=this['editor'][_0x52eb('0x12')][_0x52eb('0xe')]('blockQuote');_0x2fc537['enableCommand']('blockQuote',(_0x387023,_0x3ea38b={})=>{const _0x57a702=this[_0x52eb('0x16')][_0x52eb('0xd')][_0x52eb('0x19')]['selection'],_0x4a7bad=_0x3ea38b&&void 0x0!==_0x3ea38b[_0x52eb('0xb')]?_0x3ea38b[_0x52eb('0xb')]:!_0x2a03bd[_0x52eb('0x8')];let _0x2fe7f8=[];if(_0x4a7bad){const _0x5112fe=Array[_0x52eb('0x14')](_0x57a702['getSelectedBlocks']())[_0x52eb('0x18')](_0x30fece=>Xt(_0x30fece)||function(_0x405717,_0x2ffcc9){const _0x1667ce=_0x2ffcc9[_0x52eb('0x4')](_0x405717[_0x52eb('0x1c')],_0x52eb('0x2')),_0x3974fb=_0x2ffcc9[_0x52eb('0x4')]([_0x52eb('0xc'),_0x52eb('0x2')],_0x405717);return _0x1667ce&&_0x3974fb;}(_0x30fece,this[_0x52eb('0x16')][_0x52eb('0xd')][_0x52eb('0x7')]));_0x2fe7f8=_0x5a51aa(_0x5112fe,_0x521eef['model']);}else{const _0x2619cf=Array[_0x52eb('0x14')](_0x57a702['getSelectedBlocks']())[_0x52eb('0x18')](_0x119876=>Xt(_0x119876));_0x2fe7f8=_0x5a51aa(_0x2619cf,_0x521eef[_0x52eb('0xd')]);}_0x521eef['model'][_0x52eb('0x13')](()=>{for(const _0x4d43f1 of _0x2fe7f8)_0x2fc537[_0x52eb('0xf')](_0x4d43f1,{'commandName':_0x52eb('0x2'),'commandParams':[{'forceValue':_0x4a7bad}]});});}),_0x2fc537[_0x52eb('0x5')][_0x52eb('0x1')](_0x3f8548=>{const {data:_0x4ec886}=_0x3f8548;if(_0x4ec886&&_0x52eb('0x2')==_0x4ec886[_0x52eb('0x10')]){const _0x499dd5=_0x390c9d(_0x250d82,_0x52eb('0x0'));return _0x4ec886['commandParams'][0x0][_0x52eb('0xb')]?{'type':_0x52eb('0x1b'),'content':_0x390c9d(_0x250d82,_0x52eb('0x9'),_0x499dd5)}:{'type':_0x52eb('0x1b'),'content':_0x390c9d(_0x250d82,_0x52eb('0x3'),_0x499dd5)};}});}}function Xt(_0x5d7e49){return _0x52eb('0x2')==_0x5d7e49[_0x52eb('0x1c')][_0x52eb('0x11')];}
@@ -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/ckbox
3
7
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x344b=['get','afterInit','editor','ckbox','TrackChangesEditing','plugins','commands'];(function(_0x3b831b,_0x344b94){const _0x6920ae=function(_0x27fc68){while(--_0x27fc68){_0x3b831b['push'](_0x3b831b['shift']());}};_0x6920ae(++_0x344b94);}(_0x344b,0x15e));const _0x6920=function(_0x3b831b,_0x344b94){_0x3b831b=_0x3b831b-0x0;let _0x6920ae=_0x344b[_0x3b831b];return _0x6920ae;};import{Plugin as _0x1761eb}from'ckeditor5/src/core';export default class E extends _0x1761eb{[_0x6920('0x1')](){const _0x57a862=this[_0x6920('0x2')];_0x57a862[_0x6920('0x6')][_0x6920('0x0')](_0x6920('0x3'))&&_0x57a862[_0x6920('0x5')][_0x6920('0x0')](_0x6920('0x4'))['enableCommand'](_0x6920('0x3'));}}
23
+ const _0x4bae=['afterInit','plugins','commands','TrackChangesEditing','get','editor','enableCommand'];(function(_0xde61bf,_0x4baec7){const _0x14e76e=function(_0x520010){while(--_0x520010){_0xde61bf['push'](_0xde61bf['shift']());}};_0x14e76e(++_0x4baec7);}(_0x4bae,0x9e));const _0x14e7=function(_0xde61bf,_0x4baec7){_0xde61bf=_0xde61bf-0x0;let _0x14e76e=_0x4bae[_0xde61bf];return _0x14e76e;};import{Plugin as _0x1d9580}from'ckeditor5/src/core';export default class E extends _0x1d9580{[_0x14e7('0x3')](){const _0x42e09b=this[_0x14e7('0x1')];_0x42e09b[_0x14e7('0x5')][_0x14e7('0x0')]('ckbox')&&_0x42e09b[_0x14e7('0x4')][_0x14e7('0x0')](_0x14e7('0x6'))[_0x14e7('0x2')]('ckbox');}}
@@ -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/codeblock
3
7
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x580d=['get','language','selection','blockName','config','editor','parent','CodeBlock','registerDescriptionCallback','filter','registerElementLabel','enableCommand','TrackChangesEditing','name','model','getSelectedBlocks','ELEMENT_CODE_BLOCK','checkChild','afterInit','from','change','outdentCodeBlock','indentCodeBlock','*Remove\x20format:*\x20%0','markBlockFormat','languages','commandParams','codeBlock','_descriptionFactory','forceValue','find','format','plugins'];(function(_0x7913df,_0x580d13){const _0x3c9935=function(_0x3042be){while(--_0x3042be){_0x7913df['push'](_0x7913df['shift']());}};_0x3c9935(++_0x580d13);}(_0x580d,0x83));const _0x3c99=function(_0x7913df,_0x580d13){_0x7913df=_0x7913df-0x0;let _0x3c9935=_0x580d[_0x7913df];return _0x3c9935;};import{Plugin as _0x2de54d}from'ckeditor5/src/core';import{getTranslation as _0x26ac6e}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x45a3fc}from'../utils/utils';export default class O extends _0x2de54d{[_0x3c99('0x13')](){const _0x1caa75=this[_0x3c99('0x6')];if(!_0x1caa75[_0x3c99('0x0')]['has'](_0x3c99('0x8')))return;const _0x26cd11=_0x1caa75[_0x3c99('0x0')]['get'](_0x3c99('0xd')),_0x39ae54=_0x1caa75['locale'],_0x4f1216=_0x1caa75[_0x3c99('0x5')][_0x3c99('0x1')]('codeBlock')[_0x3c99('0x1a')],_0x92a17=_0x1caa75['commands']['get'](_0x3c99('0x1c'));_0x26cd11[_0x3c99('0xc')](_0x3c99('0x17')),_0x26cd11[_0x3c99('0xc')](_0x3c99('0x16')),_0x26cd11[_0x3c99('0xc')]('codeBlock',(_0x528a58,_0x3af008={})=>{const _0x243485=_0x1caa75['model'],_0x2d58cd=_0x1caa75[_0x3c99('0xf')]['document'][_0x3c99('0x3')],_0x18027c=_0x3af008&&void 0x0!==_0x3af008[_0x3c99('0x1e')]?_0x3af008['forceValue']:!_0x92a17['value'];let _0x551d9a;_0x3af008[_0x3c99('0x2')]||(_0x3af008['language']=_0x4f1216[0x0][_0x3c99('0x2')]),_0x551d9a=_0x18027c?Array[_0x3c99('0x14')](_0x2d58cd[_0x3c99('0x10')]())['filter'](_0x361516=>oo(_0x361516)||function(_0x3590a0,_0x4c027d){if(_0x3590a0['is']('rootElement')||_0x4c027d['isLimit'](_0x3590a0))return!0x1;return _0x4c027d[_0x3c99('0x12')](_0x3590a0[_0x3c99('0x7')],'codeBlock');}(_0x361516,_0x243485['schema'])):Array[_0x3c99('0x14')](_0x2d58cd[_0x3c99('0x10')]())[_0x3c99('0xa')](_0x3fd536=>oo(_0x3fd536));const _0x2975d4=_0x45a3fc(_0x551d9a,_0x243485);_0x243485[_0x3c99('0x15')](()=>{for(const _0x5fbd6b of _0x2975d4)_0x26cd11[_0x3c99('0x19')](_0x5fbd6b,{'commandName':_0x3c99('0x1c'),'commandParams':[{..._0x3af008,'forceValue':_0x18027c}],'formatGroupId':_0x3c99('0x4')});});}),(_0x26cd11[_0x3c99('0x1d')][_0x3c99('0xb')]('codeBlock',_0x3b7726=>_0x26ac6e(_0x39ae54,_0x3c99('0x11'),_0x3b7726)),_0x26cd11[_0x3c99('0x1d')][_0x3c99('0x9')](_0x19b1db=>{const _0x50df3=_0x39ae54['t'],{type:_0x2ce5dc,data:_0x43dbfe}=_0x19b1db;if('formatBlock'==_0x2ce5dc&&_0x43dbfe&&'codeBlock'==_0x43dbfe['commandName']){const _0x4f30d4=_0x43dbfe[_0x3c99('0x1b')][0x0][_0x3c99('0x2')],_0x47596b=_0x50df3(_0x4f1216[_0x3c99('0x1f')](_0x627251=>_0x627251[_0x3c99('0x2')]===_0x4f30d4)['label']);return _0x43dbfe[_0x3c99('0x1b')][0x0][_0x3c99('0x1e')]?{'type':_0x3c99('0x20'),'content':_0x26ac6e(_0x39ae54,'*Format:*\x20%0',_0x26ac6e(_0x39ae54,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x47596b+')')}:{'type':_0x3c99('0x20'),'content':_0x26ac6e(_0x39ae54,_0x3c99('0x18'),_0x26ac6e(_0x39ae54,_0x3c99('0x11'),0x1))};}}));}}function oo(_0x4db3a5){return _0x3c99('0x1c')==_0x4db3a5[_0x3c99('0xe')];}
23
+ const _0x2c3f=['schema','isLimit','from','registerDescriptionCallback','forceValue','CodeBlock','commandName','indentCodeBlock','get','filter','model','codeBlock','locale','checkChild','document','ELEMENT_CODE_BLOCK','formatBlock','config','commands','registerElementLabel','blockName','name','languages','has','language','outdentCodeBlock','afterInit','markBlockFormat','TrackChangesEditing','*Format:*\x20%0','commandParams','enableCommand','*Remove\x20format:*\x20%0','change','find','plugins'];(function(_0x116b8e,_0x2c3fa4){const _0x41ce1c=function(_0x594c4f){while(--_0x594c4f){_0x116b8e['push'](_0x116b8e['shift']());}};_0x41ce1c(++_0x2c3fa4);}(_0x2c3f,0xad));const _0x41ce=function(_0x116b8e,_0x2c3fa4){_0x116b8e=_0x116b8e-0x0;let _0x41ce1c=_0x2c3f[_0x116b8e];return _0x41ce1c;};import{Plugin as _0xe1e88a}from'ckeditor5/src/core';import{getTranslation as _0x562916}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x1c5e6b}from'../utils/utils';export default class O extends _0xe1e88a{[_0x41ce('0x21')](){const _0xa40a5c=this['editor'];if(!_0xa40a5c[_0x41ce('0x6')][_0x41ce('0x1e')](_0x41ce('0xc')))return;const _0x5deeaf=_0xa40a5c['plugins'][_0x41ce('0xf')](_0x41ce('0x23')),_0x38764d=_0xa40a5c[_0x41ce('0x13')],_0x4878d2=_0xa40a5c[_0x41ce('0x18')][_0x41ce('0xf')]('codeBlock')[_0x41ce('0x1d')],_0x64a90b=_0xa40a5c[_0x41ce('0x19')][_0x41ce('0xf')]('codeBlock');_0x5deeaf[_0x41ce('0x2')](_0x41ce('0xe')),_0x5deeaf[_0x41ce('0x2')](_0x41ce('0x20')),_0x5deeaf[_0x41ce('0x2')](_0x41ce('0x12'),(_0x24b9ac,_0x17374e={})=>{const _0x3d45b7=_0xa40a5c[_0x41ce('0x11')],_0x5ef247=_0xa40a5c[_0x41ce('0x11')][_0x41ce('0x15')]['selection'],_0x15e386=_0x17374e&&void 0x0!==_0x17374e[_0x41ce('0xb')]?_0x17374e[_0x41ce('0xb')]:!_0x64a90b['value'];let _0x15e63e;_0x17374e[_0x41ce('0x1f')]||(_0x17374e['language']=_0x4878d2[0x0][_0x41ce('0x1f')]),_0x15e63e=_0x15e386?Array[_0x41ce('0x9')](_0x5ef247['getSelectedBlocks']())[_0x41ce('0x10')](_0x3c33b9=>to(_0x3c33b9)||function(_0x2f648c,_0xaa00cf){if(_0x2f648c['is']('rootElement')||_0xaa00cf[_0x41ce('0x8')](_0x2f648c))return!0x1;return _0xaa00cf[_0x41ce('0x14')](_0x2f648c['parent'],'codeBlock');}(_0x3c33b9,_0x3d45b7[_0x41ce('0x7')])):Array[_0x41ce('0x9')](_0x5ef247['getSelectedBlocks']())[_0x41ce('0x10')](_0x2cbce7=>to(_0x2cbce7));const _0x99c4a7=_0x1c5e6b(_0x15e63e,_0x3d45b7);_0x3d45b7[_0x41ce('0x4')](()=>{for(const _0x599a5a of _0x99c4a7)_0x5deeaf[_0x41ce('0x22')](_0x599a5a,{'commandName':_0x41ce('0x12'),'commandParams':[{..._0x17374e,'forceValue':_0x15e386}],'formatGroupId':_0x41ce('0x1b')});});}),(_0x5deeaf['_descriptionFactory'][_0x41ce('0x1a')]('codeBlock',_0x6bc485=>_0x562916(_0x38764d,_0x41ce('0x16'),_0x6bc485)),_0x5deeaf['_descriptionFactory'][_0x41ce('0xa')](_0x171207=>{const _0x15ec86=_0x38764d['t'],{type:_0x8c0561,data:_0x126400}=_0x171207;if(_0x41ce('0x17')==_0x8c0561&&_0x126400&&'codeBlock'==_0x126400[_0x41ce('0xd')]){const _0x4e5183=_0x126400[_0x41ce('0x1')][0x0][_0x41ce('0x1f')],_0x47c7b9=_0x15ec86(_0x4878d2[_0x41ce('0x5')](_0x15b30a=>_0x15b30a['language']===_0x4e5183)['label']);return _0x126400[_0x41ce('0x1')][0x0]['forceValue']?{'type':'format','content':_0x562916(_0x38764d,_0x41ce('0x0'),_0x562916(_0x38764d,_0x41ce('0x16'),0x1)+'\x20('+_0x47c7b9+')')}:{'type':'format','content':_0x562916(_0x38764d,_0x41ce('0x3'),_0x562916(_0x38764d,_0x41ce('0x16'),0x1))};}}));}}function to(_0x46321d){return'codeBlock'==_0x46321d[_0x41ce('0x1c')];}
@@ -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/comments
3
7
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3bb9=['afterInit','TrackChangesEditing','addCommentThread','has','CommentsEditing','enableCommand','plugins'];(function(_0x531527,_0x3bb94a){const _0x2a0eee=function(_0x41a484){while(--_0x41a484){_0x531527['push'](_0x531527['shift']());}};_0x2a0eee(++_0x3bb94a);}(_0x3bb9,0x1c1));const _0x2a0e=function(_0x531527,_0x3bb94a){_0x531527=_0x531527-0x0;let _0x2a0eee=_0x3bb9[_0x531527];return _0x2a0eee;};import{Plugin as _0x54233e}from'ckeditor5/src/core';export default class F extends _0x54233e{[_0x2a0e('0x6')](){const _0x58ed32=this['editor'];if(!_0x58ed32[_0x2a0e('0x5')][_0x2a0e('0x2')](_0x2a0e('0x3')))return;_0x58ed32['plugins']['get'](_0x2a0e('0x0'))[_0x2a0e('0x4')](_0x2a0e('0x1'));}}
23
+ const _0x2644=['has','addCommentThread','TrackChangesEditing','plugins','enableCommand','afterInit','get'];(function(_0x565dbb,_0x264417){const _0x1e2f40=function(_0xc2b3f4){while(--_0xc2b3f4){_0x565dbb['push'](_0x565dbb['shift']());}};_0x1e2f40(++_0x264417);}(_0x2644,0x1cf));const _0x1e2f=function(_0x565dbb,_0x264417){_0x565dbb=_0x565dbb-0x0;let _0x1e2f40=_0x2644[_0x565dbb];return _0x1e2f40;};import{Plugin as _0x3b0872}from'ckeditor5/src/core';export default class F extends _0x3b0872{[_0x1e2f('0x4')](){const _0x33efc0=this['editor'];if(!_0x33efc0['plugins'][_0x1e2f('0x6')]('CommentsEditing'))return;_0x33efc0[_0x1e2f('0x2')][_0x1e2f('0x5')](_0x1e2f('0x1'))[_0x1e2f('0x3')](_0x1e2f('0x0'));}}
@@ -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/deletecommand
3
7
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3cb8=['options','createSelection','writer','batch','setSelection','downcastDispatcher','bind','deleteForward','createRange','markerName','selection','model','addMarker:suggestion:deletion','remove','markerNameToElements','TrackChangesEditing','isCollapsed','merge','mapper','uiElement','unbindElementFromMarkerName','fromRange','showSuggestionHighlights','enableCommand','init','rootName','editing','buffer','modifySelection','lock','get','start','removeMarker:suggestion:deletion','unit','high','end','unlock','detach','plugins','getFirstRange','commands','$graveyard','forward'];(function(_0x3da178,_0x3cb821){const _0x41f9be=function(_0x2d1df2){while(--_0x2d1df2){_0x3da178['push'](_0x3da178['shift']());}};_0x41f9be(++_0x3cb821);}(_0x3cb8,0x167));const _0x41f9=function(_0x3da178,_0x3cb821){_0x3da178=_0x3da178-0x0;let _0x41f9be=_0x3cb8[_0x3da178];return _0x41f9be;};import{Plugin as _0x1b326f}from'ckeditor5/src/core';import{LiveRange as _0x4add95}from'ckeditor5/src/engine';import{Delete as _0x4392ee}from'ckeditor5/src/typing';import{downcastSplitMergeMarker as _0x455b75}from'./utils';export default class G extends _0x1b326f{static get['requires'](){return[_0x4392ee];}[_0x41f9('0x9')](){const _0x59dcd6=this['editor'],_0x3834b3=_0x59dcd6[_0x41f9('0x17')][_0x41f9('0xf')](_0x41f9('0x0'));_0x3834b3[_0x41f9('0x8')]('delete');const _0x4f1664=_0x59dcd6[_0x41f9('0x19')]['get']('deleteForward');_0x3834b3['enableCommand'](_0x41f9('0x23'),(_0x173fb3,_0x4eb393={})=>{const _0x4e403e=_0x59dcd6[_0x41f9('0x27')][_0x41f9('0x1d')](_0x59dcd6[_0x41f9('0x27')]['document'][_0x41f9('0x26')]);_0x4e403e[_0x41f9('0x1')]&&_0x59dcd6[_0x41f9('0x27')][_0x41f9('0xd')](_0x4e403e,{'direction':_0x41f9('0x1b'),'unit':_0x4eb393[_0x41f9('0x12')]});const _0x4d791f=_0x4e403e[_0x41f9('0x18')](),_0x27a19d=_0x4add95[_0x41f9('0x6')](_0x4d791f);let _0x4537c6;_0x173fb3(_0x4eb393),_0x4537c6=_0x41f9('0x1a')==_0x27a19d['root'][_0x41f9('0xa')]?_0x59dcd6[_0x41f9('0x27')][_0x41f9('0x24')](_0x4d791f[_0x41f9('0x10')]):_0x59dcd6[_0x41f9('0x27')][_0x41f9('0x24')](_0x27a19d[_0x41f9('0x10')],_0x27a19d[_0x41f9('0x14')]),_0x27a19d[_0x41f9('0x16')](),_0x59dcd6[_0x41f9('0x27')]['enqueueChange'](_0x4f1664[_0x41f9('0xc')][_0x41f9('0x1f')],_0x1a60f1=>{_0x4f1664[_0x41f9('0xc')][_0x41f9('0xe')](),_0x1a60f1[_0x41f9('0x20')](_0x1a60f1[_0x41f9('0x24')](_0x4537c6[_0x41f9('0x14')])),_0x4f1664[_0x41f9('0xc')][_0x41f9('0x15')]();});}),_0x59dcd6[_0x41f9('0xb')][_0x41f9('0x21')]['on'](_0x41f9('0x28'),_0x455b75(_0x59dcd6,_0x41f9('0x2')),{'priority':_0x41f9('0x13')}),_0x59dcd6['data']['downcastDispatcher']['on'](_0x41f9('0x28'),(_0x5c4782,_0x2af4ed,_0x179809)=>{_0x179809[_0x41f9('0x1c')][_0x41f9('0x7')]&&_0x455b75(_0x59dcd6,_0x41f9('0x2'),{'showActiveMarker':!0x1})[_0x41f9('0x22')](this)(_0x5c4782,_0x2af4ed,_0x179809);},{'priority':_0x41f9('0x13')}),_0x59dcd6[_0x41f9('0xb')][_0x41f9('0x21')]['on'](_0x41f9('0x11'),(_0x38d17d,_0x313038,_0x1227e7)=>{const _0xd90229=_0x1227e7[_0x41f9('0x3')][_0x41f9('0x2a')](_0x313038[_0x41f9('0x25')]);if(_0xd90229)for(const _0x4a51a9 of _0xd90229)_0x4a51a9['is'](_0x41f9('0x4'))&&(_0x1227e7[_0x41f9('0x3')][_0x41f9('0x5')](_0x4a51a9,_0x313038['markerName']),_0x1227e7[_0x41f9('0x1e')][_0x41f9('0x29')](_0x4a51a9));},{'priority':_0x41f9('0x13')});}}
23
+ const _0x5490=['forward','end','remove','root','downcastDispatcher','commands','model','merge','markerName','showSuggestionHighlights','editing','get','delete','uiElement','selection','options','addMarker:suggestion:deletion','$graveyard','unbindElementFromMarkerName','bind','mapper','deleteForward','buffer','plugins','start','enableCommand','requires','enqueueChange','createSelection','writer','createRange','batch','setSelection','lock','isCollapsed','high','TrackChangesEditing','fromRange','data','unlock'];(function(_0x15fcb0,_0x549098){const _0x33201f=function(_0x9bf994){while(--_0x9bf994){_0x15fcb0['push'](_0x15fcb0['shift']());}};_0x33201f(++_0x549098);}(_0x5490,0xc0));const _0x3320=function(_0x15fcb0,_0x549098){_0x15fcb0=_0x15fcb0-0x0;let _0x33201f=_0x5490[_0x15fcb0];return _0x33201f;};import{Plugin as _0x25b778}from'ckeditor5/src/core';import{LiveRange as _0x22e61d}from'ckeditor5/src/engine';import{Delete as _0x4183ae}from'ckeditor5/src/typing';import{downcastSplitMergeMarker as _0x1fbd79}from'./utils';export default class G extends _0x25b778{static get[_0x3320('0x22')](){return[_0x4183ae];}['init'](){const _0x333864=this['editor'],_0x1e473a=_0x333864[_0x3320('0x1f')][_0x3320('0x13')](_0x3320('0x4'));_0x1e473a['enableCommand'](_0x3320('0x14'));const _0xa56a31=_0x333864[_0x3320('0xd')][_0x3320('0x13')](_0x3320('0x1d'));_0x1e473a[_0x3320('0x21')](_0x3320('0x1d'),(_0x2174ea,_0x1d7f6b={})=>{const _0x1a1572=_0x333864[_0x3320('0xe')][_0x3320('0x24')](_0x333864[_0x3320('0xe')]['document'][_0x3320('0x16')]);_0x1a1572[_0x3320('0x2')]&&_0x333864[_0x3320('0xe')]['modifySelection'](_0x1a1572,{'direction':_0x3320('0x8'),'unit':_0x1d7f6b['unit']});const _0x4a8ec4=_0x1a1572['getFirstRange'](),_0x139006=_0x22e61d[_0x3320('0x5')](_0x4a8ec4);let _0x373498;_0x2174ea(_0x1d7f6b),_0x373498=_0x3320('0x19')==_0x139006[_0x3320('0xb')]['rootName']?_0x333864[_0x3320('0xe')][_0x3320('0x26')](_0x4a8ec4['start']):_0x333864['model'][_0x3320('0x26')](_0x139006[_0x3320('0x20')],_0x139006[_0x3320('0x9')]),_0x139006['detach'](),_0x333864[_0x3320('0xe')][_0x3320('0x23')](_0xa56a31[_0x3320('0x1e')][_0x3320('0x27')],_0x718fb3=>{_0xa56a31['buffer'][_0x3320('0x1')](),_0x718fb3[_0x3320('0x0')](_0x718fb3[_0x3320('0x26')](_0x373498[_0x3320('0x9')])),_0xa56a31[_0x3320('0x1e')][_0x3320('0x7')]();});}),_0x333864[_0x3320('0x12')]['downcastDispatcher']['on'](_0x3320('0x18'),_0x1fbd79(_0x333864,_0x3320('0xf')),{'priority':_0x3320('0x3')}),_0x333864[_0x3320('0x6')][_0x3320('0xc')]['on'](_0x3320('0x18'),(_0x423d68,_0x4b46bf,_0x4250b9)=>{_0x4250b9[_0x3320('0x17')][_0x3320('0x11')]&&_0x1fbd79(_0x333864,_0x3320('0xf'),{'showActiveMarker':!0x1})[_0x3320('0x1b')](this)(_0x423d68,_0x4b46bf,_0x4250b9);},{'priority':'high'}),_0x333864[_0x3320('0x12')][_0x3320('0xc')]['on']('removeMarker:suggestion:deletion',(_0x398957,_0x1df15c,_0xb9cda9)=>{const _0x5c560d=_0xb9cda9[_0x3320('0x1c')]['markerNameToElements'](_0x1df15c[_0x3320('0x10')]);if(_0x5c560d)for(const _0x6a82db of _0x5c560d)_0x6a82db['is'](_0x3320('0x15'))&&(_0xb9cda9[_0x3320('0x1c')][_0x3320('0x1a')](_0x6a82db,_0x1df15c[_0x3320('0x10')]),_0xb9cda9[_0x3320('0x25')][_0x3320('0xa')](_0x6a82db));},{'priority':_0x3320('0x3')});}}
@@ -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/documentlist
3
7
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4eae=['map','hasAttribute','containsItem','commandName','markMultiRangeBlockFormat','execute','schema','*Outdent:*\x20%0','plugins','previousSibling','registerCustomCallback','*Merge:*\x20%0','indentList','splitListItemBefore','end','isFirstBlockOfListItem','add','isObject','DocumentListUtils','registerElementLabel','getSelectedBlocks','createRange','enableCommand','ELEMENT_NUMBERED_LIST','document','numberedList','before','documentList','createPositionAt','nextSibling','*Format:*\x20remove\x20from\x20%0','multipleBlocks','refresh','*Indent:*\x20%0','value','registerDescriptionCallback','has','model','format','parent','expandListBlocksToCompleteList','slice','change','_suggestionFactory','listItemId','fromRange','toUpperCase','listType','from','nodeAfter','length','bulletedList','TrackChangesEditing','formatBlock','commands','_descriptionFactory','afterInit','setSelection','start','forceValue','_LIST','mergeListItemForward','push','commandParams','getAttribute','editor','get','ELEMENT_BULLETED_LIST','getFirstRange','ELEMENT_','markBlockFormat','listIndent','selection','outdentList','*Format:*\x20insert\x20into\x20%0','ELEMENT_LIST_ITEM','splitListItemAfter','*Change\x20to:*\x20%0'];(function(_0x46bcc5,_0x4eaec9){const _0x3402ff=function(_0x97563){while(--_0x97563){_0x46bcc5['push'](_0x46bcc5['shift']());}};_0x3402ff(++_0x4eaec9);}(_0x4eae,0x18d));const _0x3402=function(_0x46bcc5,_0x4eaec9){_0x46bcc5=_0x46bcc5-0x0;let _0x3402ff=_0x4eae[_0x46bcc5];return _0x3402ff;};import{Plugin as _0x466a01}from'ckeditor5/src/core';import{getTranslation as _0x5dbca0}from'../utils/common-translations';import{LiveRange as _0x1c5614}from'ckeditor5/src/engine';export default class L extends _0x466a01{[_0x3402('0x31')](){const _0x401eea=this[_0x3402('0x3a')];if(!_0x401eea['plugins'][_0x3402('0x1d')]('DocumentListEditing'))return;const _0x3ab00d=_0x401eea['locale'],_0x2f7505=_0x401eea['plugins'][_0x3402('0x3b')](_0x3402('0x2d')),_0x145656=_0x401eea[_0x3402('0x1')][_0x3402('0x3b')](_0x3402('0xb'));function _0x5a4f7a(_0x4ae29f){return()=>{const _0x1e0417=_0x401eea[_0x3402('0x2f')][_0x3402('0x3b')](_0x4ae29f);let _0x54848f=Array[_0x3402('0x29')](_0x401eea[_0x3402('0x1e')][_0x3402('0x11')][_0x3402('0x41')]['getSelectedBlocks']());if(_0x2ea3df(_0x4ae29f)){_0x54848f=_0x145656[_0x3402('0x21')](_0x54848f);const _0x195e9f=[];for(const _0x133e69 of _0x54848f)_0x145656[_0x3402('0x8')](_0x133e69)&&_0x195e9f[_0x3402('0x37')](_0x133e69);_0x54848f=_0x195e9f;}_0x401eea['model'][_0x3402('0x23')](()=>{_0x2f7505[_0x3402('0x4b')](_0x54848f,{'commandName':_0x4ae29f,'commandParams':[{'forceValue':!_0x1e0417[_0x3402('0x1b')]}],'formatGroupId':_0x3402('0x28')},[],_0x3402('0x14'));});};}function _0xc71240(_0x1c334c){return()=>{const _0x2d2505=function(_0x2349a0){let _0x58e0b3=Array[_0x3402('0x29')](_0x2349a0);const _0x24f7ee=_0x58e0b3['findIndex'](_0x2851ec=>!_0x2851ec[_0x3402('0x48')](_0x3402('0x25')));return _0x24f7ee>-0x1&&(_0x58e0b3=_0x58e0b3[_0x3402('0x22')](0x0,_0x24f7ee)),_0x58e0b3;}(_0x401eea[_0x3402('0x1e')]['document'][_0x3402('0x41')][_0x3402('0xd')]()),_0x1956e3=_0x2d2505[_0x2d2505[_0x3402('0x2b')]-0x1],_0x4ede26=_0x401eea[_0x3402('0x1e')][_0x3402('0x4d')][_0x3402('0xa')](_0x1956e3)?'after':_0x3402('0x7'),_0x489256=_0x401eea[_0x3402('0x1e')][_0x3402('0xe')](_0x401eea['model'][_0x3402('0x15')](_0x2d2505[0x0],_0x3402('0x13')),_0x401eea[_0x3402('0x1e')][_0x3402('0x15')](_0x1956e3,_0x4ede26));_0x401eea['model'][_0x3402('0x23')](()=>{_0x2f7505[_0x3402('0x3f')](_0x489256,{'commandName':_0x1c334c,'commandParams':[],'formatGroupId':_0x3402('0x28')},function(_0x520123){const _0x2715d2=new Set();for(const _0x2734cd of _0x520123){let _0x3d1ee9=_0x2734cd['nextSibling'];for(;_0x3d1ee9&&_0x3d1ee9[_0x3402('0x39')](_0x3402('0x40'))>_0x2734cd['getAttribute'](_0x3402('0x40'));)_0x2715d2[_0x3402('0x9')](_0x3d1ee9),_0x3d1ee9=_0x3d1ee9['nextSibling'];}return Array[_0x3402('0x29')](_0x2715d2);}(_0x2d2505));});};}function _0x40137a(_0x517d7b){return()=>{const _0x510904=_0x401eea[_0x3402('0x1e')][_0x3402('0x11')]['selection'][_0x3402('0xd')]()['next']()[_0x3402('0x1b')],_0x4ff67d=_0x401eea[_0x3402('0x1e')][_0x3402('0x15')](_0x510904,_0x3402('0x13')),_0x51610d=_0x401eea[_0x3402('0x1e')]['createPositionAt'](_0x510904,0x0),_0x17948b=_0x401eea[_0x3402('0x1e')][_0x3402('0xe')](_0x4ff67d,_0x51610d);_0x401eea[_0x3402('0x1e')][_0x3402('0x23')](()=>{_0x2f7505[_0x3402('0x3f')](_0x17948b,{'commandName':_0x517d7b,'commandParams':[],'formatGroupId':'listType'});});};}function _0x2ea3df(_0x833c93){const _0x15f927=_0x401eea[_0x3402('0x2f')][_0x3402('0x3b')](_0x3402('0x2c'))[_0x3402('0x1b')],_0x4221ce=_0x401eea[_0x3402('0x2f')]['get'](_0x3402('0x12'))[_0x3402('0x1b')];return'numberedList'===_0x833c93?_0x15f927:_0x4221ce;}_0x2f7505[_0x3402('0xf')](_0x3402('0x12'),_0x5a4f7a(_0x3402('0x12'))),_0x2f7505[_0x3402('0xf')](_0x3402('0x2c'),_0x5a4f7a(_0x3402('0x2c'))),_0x2f7505[_0x3402('0xf')]('indentList',_0xc71240(_0x3402('0x5'))),_0x2f7505[_0x3402('0xf')](_0x3402('0x42'),_0xc71240(_0x3402('0x42'))),_0x2f7505['enableCommand'](_0x3402('0x45'),_0x40137a(_0x3402('0x45'))),_0x2f7505[_0x3402('0xf')](_0x3402('0x6'),_0x40137a(_0x3402('0x6'))),_0x2f7505['_descriptionFactory'][_0x3402('0xc')](function(_0xda5d70){const _0x24dded=!_0x401eea['model'][_0x3402('0x4d')][_0x3402('0xa')](_0xda5d70),_0x4a4128=_0xda5d70[_0x3402('0x2')],_0x3378e4=_0xda5d70[_0x3402('0x16')],_0x4ba90b=_0xda5d70['getAttribute']('listItemId'),_0x8f59d=!_0x4a4128||_0x4a4128[_0x3402('0x39')](_0x3402('0x25'))!==_0x4ba90b,_0x4e4b4a=!_0x3378e4||_0x3378e4['getAttribute'](_0x3402('0x25'))!==_0x4ba90b;return _0x24dded&&Boolean(_0x4ba90b)&&_0x8f59d&&_0x4e4b4a;},_0x1fe25c=>_0x5dbca0(_0x3ab00d,_0x3402('0x44'),_0x1fe25c)),_0x2f7505[_0x3402('0x30')][_0x3402('0x1c')](function(_0x5b4f37){const {data:_0x54a475}=_0x5b4f37;if(!_0x54a475)return;let _0x4afde8,_0x5b36d2,_0x2fec30,_0x2c40ec;switch(_0x54a475['commandName']){case'bulletedList':_0x2fec30=_0x54a475['commandParams'][0x0]['forceValue'],_0x2c40ec=_0x2ea3df(_0x54a475[_0x3402('0x4a')]),_0x4afde8=_0x2fec30?_0x3402('0x43'):_0x3402('0x17'),_0x2c40ec&&(_0x4afde8=_0x3402('0x46')),_0x5b36d2={'type':_0x3402('0x1f'),'content':_0x5dbca0(_0x3ab00d,_0x4afde8,_0x5dbca0(_0x3ab00d,_0x3402('0x3c')))};break;case _0x3402('0x12'):_0x2fec30=_0x54a475[_0x3402('0x38')][0x0][_0x3402('0x34')],_0x2c40ec=_0x2ea3df(_0x54a475[_0x3402('0x4a')]),_0x4afde8=_0x2fec30?_0x3402('0x43'):_0x3402('0x17'),_0x2c40ec&&(_0x4afde8=_0x3402('0x46')),_0x5b36d2={'type':_0x3402('0x1f'),'content':_0x5dbca0(_0x3ab00d,_0x4afde8,_0x5dbca0(_0x3ab00d,_0x3402('0x10')))};break;case _0x3402('0x5'):_0x4afde8=_0x3402('0x1a'),_0x5b36d2={'type':_0x3402('0x1f'),'content':_0x5dbca0(_0x3ab00d,_0x4afde8,_0x5dbca0(_0x3ab00d,_0x3402('0x44')))};break;case _0x3402('0x42'):_0x4afde8=function(_0x1dd472){const _0x1a4072=_0x1dd472['getFirstRange']();let _0x4562b3=_0x1a4072['start']['nodeAfter'];for(;_0x4562b3&&_0x1a4072[_0x3402('0x49')](_0x4562b3);){if(_0x4562b3['getAttribute']('listIndent')>0x0)return!0x1;_0x4562b3=_0x4562b3['nextSibling'];}return!0x0;}(_0x5b4f37)?_0x5dbca0(_0x3ab00d,'*Format:*\x20remove\x20from\x20%0',_0x5dbca0(_0x3ab00d,function(_0x49c48e){const _0x4139f6=_0x49c48e[_0x3402('0x3d')]()[_0x3402('0x33')][_0x3402('0x2a')];return _0x3402('0x3e')+_0x4139f6[_0x3402('0x39')](_0x3402('0x28'))[_0x3402('0x27')]()+_0x3402('0x35');}(_0x5b4f37))):_0x5dbca0(_0x3ab00d,_0x3402('0x0'),_0x5dbca0(_0x3ab00d,_0x3402('0x44'))),_0x5b36d2={'type':_0x3402('0x1f'),'content':_0x4afde8};break;case'mergeListItemBackward':case _0x3402('0x36'):!0x1===_0x54a475[_0x3402('0x18')]&&(_0x4afde8=_0x3402('0x4'),_0x5b36d2={'type':'deletion','content':_0x5dbca0(_0x3ab00d,_0x4afde8,_0x5dbca0(_0x3ab00d,_0x3402('0x44')))});}return _0x5b36d2;}),_0x2f7505[_0x3402('0x24')][_0x3402('0x3')](_0x3402('0x2e'),_0x3402('0x14'),'accept',function(_0xa5bcce,_0x39cd08){const _0x396e24=[];for(let _0x12240b of _0xa5bcce)_0x12240b['start']['nodeAfter']===_0x12240b['end'][_0x3402('0x20')]&&(_0x12240b=_0x401eea[_0x3402('0x1e')][_0x3402('0xe')](_0x401eea[_0x3402('0x1e')][_0x3402('0x15')](_0x12240b[_0x3402('0x33')]['nodeAfter'],0x0))),_0x396e24[_0x3402('0x37')](_0x12240b);_0x401eea[_0x3402('0x1e')][_0x3402('0x23')](_0x2ce330=>{const _0x35d963=_0x401eea['model'][_0x3402('0x11')][_0x3402('0x41')],_0x3a428=Array[_0x3402('0x29')](_0x35d963['getRanges']())[_0x3402('0x47')](_0xcc841e=>_0x1c5614[_0x3402('0x26')](_0xcc841e));_0x2ce330[_0x3402('0x32')](_0x396e24),_0x401eea['commands'][_0x3402('0x3b')](_0x39cd08[_0x3402('0x4a')])[_0x3402('0x19')](),_0x39cd08[_0x3402('0x38')][_0x3402('0x37')]({'forceDefaultExecution':!0x0}),_0x401eea[_0x3402('0x4c')](_0x39cd08[_0x3402('0x4a')],..._0x39cd08[_0x3402('0x38')]),_0x2ce330['setSelection'](_0x3a428);for(const _0xc5801 of _0x3a428)_0xc5801['detach']();});});}}
23
+ const _0x1285=['documentList','afterInit','locale','commandParams','isFirstBlockOfListItem','editor','listType','*Change\x20to:*\x20%0','ELEMENT_LIST_ITEM','slice','bulletedList','getAttribute','forceValue','_suggestionFactory','ELEMENT_','createPositionAt','_descriptionFactory','next','containsItem','*Indent:*\x20%0','fromRange','commandName','schema','setSelection','listItemId','splitListItemBefore','mergeListItemBackward','*Format:*\x20remove\x20from\x20%0','multipleBlocks','length','deletion','findIndex','formatBlock','selection','*Outdent:*\x20%0','start','outdentList','after','before','_LIST','accept','detach','createRange','TrackChangesEditing','from','getRanges','registerCustomCallback','model','getFirstRange','value','end','commands','numberedList','ELEMENT_BULLETED_LIST','enableCommand','document','change','refresh','splitListItemAfter','nextSibling','has','parent','isObject','listIndent','push','*Merge:*\x20%0','markMultiRangeBlockFormat','*Format:*\x20insert\x20into\x20%0','plugins','previousSibling','ELEMENT_NUMBERED_LIST','nodeAfter','indentList','format','expandListBlocksToCompleteList','markBlockFormat','get','getSelectedBlocks','hasAttribute'];(function(_0x583ff0,_0x1285f7){const _0x5f201a=function(_0x1b38be){while(--_0x1b38be){_0x583ff0['push'](_0x583ff0['shift']());}};_0x5f201a(++_0x1285f7);}(_0x1285,0x1d7));const _0x5f20=function(_0x583ff0,_0x1285f7){_0x583ff0=_0x583ff0-0x0;let _0x5f201a=_0x1285[_0x583ff0];return _0x5f201a;};import{Plugin as _0x5f17d0}from'ckeditor5/src/core';import{getTranslation as _0x73478}from'../utils/common-translations';import{LiveRange as _0x5d7360}from'ckeditor5/src/engine';export default class L extends _0x5f17d0{[_0x5f20('0x4')](){const _0x443afb=this[_0x5f20('0x8')];if(!_0x443afb[_0x5f20('0x47')][_0x5f20('0x3f')]('DocumentListEditing'))return;const _0x3dae67=_0x443afb[_0x5f20('0x5')],_0x36d49b=_0x443afb['plugins']['get'](_0x5f20('0x2e')),_0x427687=_0x443afb['plugins'][_0x5f20('0x0')]('DocumentListUtils');function _0x39cb35(_0x11311e){return()=>{const _0x10e23a=_0x443afb[_0x5f20('0x36')][_0x5f20('0x0')](_0x11311e);let _0xdad1bb=Array[_0x5f20('0x2f')](_0x443afb[_0x5f20('0x32')][_0x5f20('0x3a')][_0x5f20('0x24')]['getSelectedBlocks']());if(_0x2dfc2b(_0x11311e)){_0xdad1bb=_0x427687[_0x5f20('0x4d')](_0xdad1bb);const _0xe30b5=[];for(const _0x163fd1 of _0xdad1bb)_0x427687[_0x5f20('0x7')](_0x163fd1)&&_0xe30b5[_0x5f20('0x43')](_0x163fd1);_0xdad1bb=_0xe30b5;}_0x443afb[_0x5f20('0x32')][_0x5f20('0x3b')](()=>{_0x36d49b[_0x5f20('0x45')](_0xdad1bb,{'commandName':_0x11311e,'commandParams':[{'forceValue':!_0x10e23a[_0x5f20('0x34')]}],'formatGroupId':_0x5f20('0x9')},[],_0x5f20('0x3'));});};}function _0x443118(_0x505148){return()=>{const _0x5685b5=function(_0xe4950){let _0xd7a4e2=Array[_0x5f20('0x2f')](_0xe4950);const _0x298892=_0xd7a4e2[_0x5f20('0x22')](_0x4a0ee3=>!_0x4a0ee3[_0x5f20('0x2')](_0x5f20('0x1b')));return _0x298892>-0x1&&(_0xd7a4e2=_0xd7a4e2[_0x5f20('0xc')](0x0,_0x298892)),_0xd7a4e2;}(_0x443afb['model'][_0x5f20('0x3a')][_0x5f20('0x24')][_0x5f20('0x1')]()),_0x4bafa3=_0x5685b5[_0x5685b5[_0x5f20('0x20')]-0x1],_0x183e18=_0x443afb['model'][_0x5f20('0x19')]['isObject'](_0x4bafa3)?_0x5f20('0x28'):_0x5f20('0x35'),_0x4cbab5=_0x443afb['model'][_0x5f20('0x2d')](_0x443afb[_0x5f20('0x32')][_0x5f20('0x12')](_0x5685b5[0x0],_0x5f20('0x29')),_0x443afb[_0x5f20('0x32')][_0x5f20('0x12')](_0x4bafa3,_0x183e18));_0x443afb[_0x5f20('0x32')][_0x5f20('0x3b')](()=>{_0x36d49b[_0x5f20('0x4e')](_0x4cbab5,{'commandName':_0x505148,'commandParams':[],'formatGroupId':'listType'},function(_0x396996){const _0x7ef21=new Set();for(const _0x3c2a20 of _0x396996){let _0x2d997f=_0x3c2a20[_0x5f20('0x3e')];for(;_0x2d997f&&_0x2d997f['getAttribute'](_0x5f20('0x42'))>_0x3c2a20[_0x5f20('0xe')]('listIndent');)_0x7ef21['add'](_0x2d997f),_0x2d997f=_0x2d997f[_0x5f20('0x3e')];}return Array[_0x5f20('0x2f')](_0x7ef21);}(_0x5685b5));});};}function _0x3608ea(_0xd3c6f3){return()=>{const _0x2c2fff=_0x443afb[_0x5f20('0x32')][_0x5f20('0x3a')][_0x5f20('0x24')][_0x5f20('0x1')]()[_0x5f20('0x14')]()['value'],_0x37d4ae=_0x443afb[_0x5f20('0x32')][_0x5f20('0x12')](_0x2c2fff,_0x5f20('0x29')),_0x788fc1=_0x443afb[_0x5f20('0x32')][_0x5f20('0x12')](_0x2c2fff,0x0),_0x2fc593=_0x443afb['model'][_0x5f20('0x2d')](_0x37d4ae,_0x788fc1);_0x443afb['model'][_0x5f20('0x3b')](()=>{_0x36d49b[_0x5f20('0x4e')](_0x2fc593,{'commandName':_0xd3c6f3,'commandParams':[],'formatGroupId':_0x5f20('0x9')});});};}function _0x2dfc2b(_0x1e5139){const _0x156e0b=_0x443afb['commands'][_0x5f20('0x0')](_0x5f20('0xd'))['value'],_0x4f5bb2=_0x443afb[_0x5f20('0x36')][_0x5f20('0x0')]('numberedList')[_0x5f20('0x34')];return'numberedList'===_0x1e5139?_0x156e0b:_0x4f5bb2;}_0x36d49b['enableCommand']('numberedList',_0x39cb35('numberedList')),_0x36d49b['enableCommand'](_0x5f20('0xd'),_0x39cb35(_0x5f20('0xd'))),_0x36d49b[_0x5f20('0x39')](_0x5f20('0x4b'),_0x443118(_0x5f20('0x4b'))),_0x36d49b[_0x5f20('0x39')](_0x5f20('0x27'),_0x443118(_0x5f20('0x27'))),_0x36d49b[_0x5f20('0x39')](_0x5f20('0x3d'),_0x3608ea('splitListItemAfter')),_0x36d49b[_0x5f20('0x39')](_0x5f20('0x1c'),_0x3608ea(_0x5f20('0x1c'))),_0x36d49b[_0x5f20('0x13')]['registerElementLabel'](function(_0x364464){const _0x16ee8b=!_0x443afb['model'][_0x5f20('0x19')][_0x5f20('0x41')](_0x364464),_0x24571d=_0x364464[_0x5f20('0x48')],_0x507d88=_0x364464[_0x5f20('0x3e')],_0x121c5b=_0x364464[_0x5f20('0xe')]('listItemId'),_0x4083d1=!_0x24571d||_0x24571d[_0x5f20('0xe')](_0x5f20('0x1b'))!==_0x121c5b,_0x498c0e=!_0x507d88||_0x507d88['getAttribute'](_0x5f20('0x1b'))!==_0x121c5b;return _0x16ee8b&&Boolean(_0x121c5b)&&_0x4083d1&&_0x498c0e;},_0x1eb23e=>_0x73478(_0x3dae67,'ELEMENT_LIST_ITEM',_0x1eb23e)),_0x36d49b[_0x5f20('0x13')]['registerDescriptionCallback'](function(_0x338cc3){const {data:_0x24d111}=_0x338cc3;if(!_0x24d111)return;let _0x40e6a5,_0x339956,_0x45fe3c,_0x2f2370;switch(_0x24d111[_0x5f20('0x18')]){case _0x5f20('0xd'):_0x45fe3c=_0x24d111['commandParams'][0x0][_0x5f20('0xf')],_0x2f2370=_0x2dfc2b(_0x24d111['commandName']),_0x40e6a5=_0x45fe3c?_0x5f20('0x46'):'*Format:*\x20remove\x20from\x20%0',_0x2f2370&&(_0x40e6a5=_0x5f20('0xa')),_0x339956={'type':_0x5f20('0x4c'),'content':_0x73478(_0x3dae67,_0x40e6a5,_0x73478(_0x3dae67,_0x5f20('0x38')))};break;case _0x5f20('0x37'):_0x45fe3c=_0x24d111['commandParams'][0x0][_0x5f20('0xf')],_0x2f2370=_0x2dfc2b(_0x24d111[_0x5f20('0x18')]),_0x40e6a5=_0x45fe3c?'*Format:*\x20insert\x20into\x20%0':_0x5f20('0x1e'),_0x2f2370&&(_0x40e6a5='*Change\x20to:*\x20%0'),_0x339956={'type':_0x5f20('0x4c'),'content':_0x73478(_0x3dae67,_0x40e6a5,_0x73478(_0x3dae67,_0x5f20('0x49')))};break;case'indentList':_0x40e6a5=_0x5f20('0x16'),_0x339956={'type':_0x5f20('0x4c'),'content':_0x73478(_0x3dae67,_0x40e6a5,_0x73478(_0x3dae67,_0x5f20('0xb')))};break;case _0x5f20('0x27'):_0x40e6a5=function(_0x37c5bf){const _0x1a0944=_0x37c5bf[_0x5f20('0x33')]();let _0x373631=_0x1a0944[_0x5f20('0x26')][_0x5f20('0x4a')];for(;_0x373631&&_0x1a0944[_0x5f20('0x15')](_0x373631);){if(_0x373631[_0x5f20('0xe')](_0x5f20('0x42'))>0x0)return!0x1;_0x373631=_0x373631['nextSibling'];}return!0x0;}(_0x338cc3)?_0x73478(_0x3dae67,'*Format:*\x20remove\x20from\x20%0',_0x73478(_0x3dae67,function(_0x282d67){const _0x152f35=_0x282d67[_0x5f20('0x33')]()[_0x5f20('0x26')][_0x5f20('0x4a')];return _0x5f20('0x11')+_0x152f35[_0x5f20('0xe')](_0x5f20('0x9'))['toUpperCase']()+_0x5f20('0x2a');}(_0x338cc3))):_0x73478(_0x3dae67,_0x5f20('0x25'),_0x73478(_0x3dae67,'ELEMENT_LIST_ITEM')),_0x339956={'type':_0x5f20('0x4c'),'content':_0x40e6a5};break;case _0x5f20('0x1d'):case'mergeListItemForward':!0x1===_0x24d111[_0x5f20('0x1f')]&&(_0x40e6a5=_0x5f20('0x44'),_0x339956={'type':_0x5f20('0x21'),'content':_0x73478(_0x3dae67,_0x40e6a5,_0x73478(_0x3dae67,_0x5f20('0xb')))});}return _0x339956;}),_0x36d49b[_0x5f20('0x10')][_0x5f20('0x31')](_0x5f20('0x23'),'documentList',_0x5f20('0x2b'),function(_0x123810,_0x38b636){const _0x557a29=[];for(let _0x50dead of _0x123810)_0x50dead[_0x5f20('0x26')][_0x5f20('0x4a')]===_0x50dead[_0x5f20('0x35')][_0x5f20('0x40')]&&(_0x50dead=_0x443afb[_0x5f20('0x32')]['createRange'](_0x443afb[_0x5f20('0x32')]['createPositionAt'](_0x50dead['start'][_0x5f20('0x4a')],0x0))),_0x557a29[_0x5f20('0x43')](_0x50dead);_0x443afb[_0x5f20('0x32')][_0x5f20('0x3b')](_0x41d6de=>{const _0x23f855=_0x443afb[_0x5f20('0x32')]['document'][_0x5f20('0x24')],_0x325aff=Array[_0x5f20('0x2f')](_0x23f855[_0x5f20('0x30')]())['map'](_0x5ee340=>_0x5d7360[_0x5f20('0x17')](_0x5ee340));_0x41d6de[_0x5f20('0x1a')](_0x557a29),_0x443afb['commands'][_0x5f20('0x0')](_0x38b636[_0x5f20('0x18')])[_0x5f20('0x3c')](),_0x38b636[_0x5f20('0x6')][_0x5f20('0x43')]({'forceDefaultExecution':!0x0}),_0x443afb['execute'](_0x38b636['commandName'],..._0x38b636['commandParams']),_0x41d6de['setSelection'](_0x325aff);for(const _0x734166 of _0x325aff)_0x734166[_0x5f20('0x2c')]();});});}}
@@ -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/documentlistproperties
3
7
  */