@ckeditor/ckeditor5-track-changes 39.0.2 → 40.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +1 -1
  3. package/build/track-changes.js +1 -1
  4. package/package.json +3 -3
  5. package/src/augmentation.d.ts +40 -40
  6. package/src/commands/acceptsuggestioncommand.d.ts +24 -24
  7. package/src/commands/acceptsuggestioncommand.js +1 -1
  8. package/src/commands/discardsuggestioncommand.d.ts +24 -24
  9. package/src/commands/discardsuggestioncommand.js +1 -1
  10. package/src/commands/executeonallsuggestionscommand.d.ts +24 -24
  11. package/src/commands/executeonallsuggestionscommand.js +1 -1
  12. package/src/commands/executeonselectedsuggestionscommand.d.ts +24 -24
  13. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  14. package/src/commands/trackchangescommand.d.ts +26 -26
  15. package/src/commands/trackchangescommand.js +1 -1
  16. package/src/index.d.ts +16 -16
  17. package/src/integrations/aiassistant.d.ts +17 -0
  18. package/src/integrations/aiassistant.js +23 -0
  19. package/src/integrations/alignment.d.ts +17 -17
  20. package/src/integrations/alignment.js +1 -1
  21. package/src/integrations/basicstyles.d.ts +17 -17
  22. package/src/integrations/basicstyles.js +1 -1
  23. package/src/integrations/blockquote.d.ts +17 -17
  24. package/src/integrations/blockquote.js +1 -1
  25. package/src/integrations/ckbox.d.ts +17 -17
  26. package/src/integrations/ckbox.js +1 -1
  27. package/src/integrations/codeblock.d.ts +17 -17
  28. package/src/integrations/codeblock.js +1 -1
  29. package/src/integrations/comments.d.ts +14 -14
  30. package/src/integrations/comments.js +1 -1
  31. package/src/integrations/deletecommand.d.ts +17 -17
  32. package/src/integrations/deletecommand.js +1 -1
  33. package/src/integrations/documentlist.d.ts +17 -17
  34. package/src/integrations/documentlist.js +1 -1
  35. package/src/integrations/documentlistproperties.d.ts +29 -29
  36. package/src/integrations/documentlistproperties.js +1 -1
  37. package/src/integrations/entercommand.d.ts +16 -16
  38. package/src/integrations/entercommand.js +1 -1
  39. package/src/integrations/findandreplace.d.ts +21 -21
  40. package/src/integrations/findandreplace.js +1 -1
  41. package/src/integrations/font.d.ts +17 -17
  42. package/src/integrations/font.js +1 -1
  43. package/src/integrations/formatpainter.d.ts +17 -17
  44. package/src/integrations/formatpainter.js +1 -1
  45. package/src/integrations/heading.d.ts +17 -17
  46. package/src/integrations/heading.js +1 -1
  47. package/src/integrations/highlight.d.ts +17 -17
  48. package/src/integrations/highlight.js +1 -1
  49. package/src/integrations/horizontalline.d.ts +17 -17
  50. package/src/integrations/horizontalline.js +1 -1
  51. package/src/integrations/htmlembed.d.ts +17 -17
  52. package/src/integrations/htmlembed.js +1 -1
  53. package/src/integrations/image.d.ts +17 -17
  54. package/src/integrations/image.js +1 -1
  55. package/src/integrations/imagereplace.d.ts +23 -23
  56. package/src/integrations/imagereplace.js +1 -1
  57. package/src/integrations/importword.d.ts +18 -18
  58. package/src/integrations/importword.js +1 -1
  59. package/src/integrations/indent.d.ts +17 -17
  60. package/src/integrations/indent.js +1 -1
  61. package/src/integrations/inputcommand.d.ts +16 -16
  62. package/src/integrations/inputcommand.js +1 -1
  63. package/src/integrations/link.d.ts +17 -17
  64. package/src/integrations/link.js +1 -1
  65. package/src/integrations/list.d.ts +17 -17
  66. package/src/integrations/list.js +1 -1
  67. package/src/integrations/listproperties.d.ts +29 -29
  68. package/src/integrations/listproperties.js +1 -1
  69. package/src/integrations/mediaembed.d.ts +17 -17
  70. package/src/integrations/mediaembed.js +1 -1
  71. package/src/integrations/mention.d.ts +17 -17
  72. package/src/integrations/mention.js +1 -1
  73. package/src/integrations/pagebreak.d.ts +17 -17
  74. package/src/integrations/pagebreak.js +1 -1
  75. package/src/integrations/paragraph.d.ts +17 -17
  76. package/src/integrations/paragraph.js +1 -1
  77. package/src/integrations/removeformat.d.ts +17 -17
  78. package/src/integrations/removeformat.js +1 -1
  79. package/src/integrations/restrictededitingmode.d.ts +17 -17
  80. package/src/integrations/restrictededitingmode.js +1 -1
  81. package/src/integrations/shiftentercommand.d.ts +16 -16
  82. package/src/integrations/shiftentercommand.js +1 -1
  83. package/src/integrations/standardeditingmode.d.ts +17 -17
  84. package/src/integrations/standardeditingmode.js +1 -1
  85. package/src/integrations/style.d.ts +18 -18
  86. package/src/integrations/style.js +1 -1
  87. package/src/integrations/table.d.ts +42 -42
  88. package/src/integrations/table.js +1 -1
  89. package/src/integrations/tablecaption.d.ts +22 -22
  90. package/src/integrations/tablecaption.js +1 -1
  91. package/src/integrations/tableclipboard.d.ts +19 -19
  92. package/src/integrations/tableclipboard.js +1 -1
  93. package/src/integrations/tablecolumnresize.d.ts +26 -26
  94. package/src/integrations/tablecolumnresize.js +1 -1
  95. package/src/integrations/tableheadings.d.ts +22 -22
  96. package/src/integrations/tableheadings.js +1 -1
  97. package/src/integrations/tablemergesplit.d.ts +22 -22
  98. package/src/integrations/tablemergesplit.js +1 -1
  99. package/src/integrations/tableofcontents.d.ts +17 -17
  100. package/src/integrations/tableofcontents.js +1 -1
  101. package/src/integrations/tableproperties.d.ts +27 -27
  102. package/src/integrations/tableproperties.js +1 -1
  103. package/src/integrations/template.d.ts +17 -17
  104. package/src/integrations/template.js +1 -1
  105. package/src/integrations/title.d.ts +17 -17
  106. package/src/integrations/title.js +1 -1
  107. package/src/integrations/undo.d.ts +17 -17
  108. package/src/integrations/undo.js +1 -1
  109. package/src/integrations/utils.d.ts +21 -21
  110. package/src/integrations/utils.js +1 -1
  111. package/src/suggestion.d.ts +276 -276
  112. package/src/suggestion.js +1 -1
  113. package/src/suggestiondescriptionfactory.d.ts +163 -163
  114. package/src/suggestiondescriptionfactory.js +1 -1
  115. package/src/trackchanges.d.ts +244 -244
  116. package/src/trackchanges.js +1 -1
  117. package/src/trackchangesconfig.d.ts +75 -75
  118. package/src/trackchangesdata.d.ts +41 -41
  119. package/src/trackchangesdata.js +1 -1
  120. package/src/trackchangesediting.d.ts +468 -467
  121. package/src/trackchangesediting.js +1 -1
  122. package/src/trackchangesui.d.ts +38 -38
  123. package/src/trackchangesui.js +1 -1
  124. package/src/ui/suggestioncontroller.d.ts +37 -37
  125. package/src/ui/suggestioncontroller.js +1 -1
  126. package/src/ui/view/basesuggestionthreadview.d.ts +170 -170
  127. package/src/ui/view/basesuggestionthreadview.js +1 -1
  128. package/src/ui/view/suggestionthreadview.d.ts +182 -182
  129. package/src/ui/view/suggestionthreadview.js +1 -1
  130. package/src/utils/common-translations.d.ts +9 -9
  131. package/src/utils/common-translations.js +1 -1
  132. package/src/utils/utils.d.ts +30 -30
  133. package/src/utils/utils.js +1 -1
  134. package/theme/icons/track-changes-accept.svg +1 -1
  135. package/theme/icons/track-changes-discard.svg +1 -1
  136. package/theme/icons/track-changes.svg +1 -1
@@ -1,17 +1,17 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module track-changes/integrations/undo
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- /**
10
- * Provides track changes plugin integration for {@link module:undo/undo~Undo undo feature}.
11
- */
12
- export default class TrackChangesUndo extends Plugin {
13
- /**
14
- * @inheritDoc
15
- */
16
- afterInit(): void;
17
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module track-changes/integrations/undo
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ /**
10
+ * Provides track changes plugin integration for {@link module:undo/undo~Undo undo feature}.
11
+ */
12
+ export default class TrackChangesUndo extends Plugin {
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ afterInit(): void;
17
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1ebd=['TrackChangesEditing','UndoEditing','editor','redo','plugins','afterInit','get','undo'];(function(_0x313d30,_0x1ebd47){const _0x24a89f=function(_0x2665d2){while(--_0x2665d2){_0x313d30['push'](_0x313d30['shift']());}};_0x24a89f(++_0x1ebd47);}(_0x1ebd,0x133));const _0x24a8=function(_0x313d30,_0x1ebd47){_0x313d30=_0x313d30-0x0;let _0x24a89f=_0x1ebd[_0x313d30];return _0x24a89f;};import{Plugin as _0x344ed2}from'ckeditor5/src/core';export default class It extends _0x344ed2{[_0x24a8('0x2')](){const _0x3000d5=this[_0x24a8('0x7')],_0x34e8b2=_0x3000d5['plugins'][_0x24a8('0x3')](_0x24a8('0x5'));_0x3000d5[_0x24a8('0x1')]['has'](_0x24a8('0x6'))&&(_0x34e8b2['enableCommand'](_0x24a8('0x4')),_0x34e8b2['enableCommand'](_0x24a8('0x0')));}}
23
+ const _0xb94f=['TrackChangesEditing','undo','afterInit','enableCommand','get','editor','has','redo','plugins'];(function(_0x1a6404,_0xb94f65){const _0x1b1808=function(_0x1c1a83){while(--_0x1c1a83){_0x1a6404['push'](_0x1a6404['shift']());}};_0x1b1808(++_0xb94f65);}(_0xb94f,0xd2));const _0x1b18=function(_0x1a6404,_0xb94f65){_0x1a6404=_0x1a6404-0x0;let _0x1b1808=_0xb94f[_0x1a6404];return _0x1b1808;};import{Plugin as _0x4e3cc5}from'ckeditor5/src/core';export default class vt extends _0x4e3cc5{[_0x1b18('0x8')](){const _0x1b62b4=this[_0x1b18('0x2')],_0x2ea7ff=_0x1b62b4[_0x1b18('0x5')][_0x1b18('0x1')](_0x1b18('0x6'));_0x1b62b4['plugins'][_0x1b18('0x3')]('UndoEditing')&&(_0x2ea7ff[_0x1b18('0x0')](_0x1b18('0x7')),_0x2ea7ff['enableCommand'](_0x1b18('0x4')));}}
@@ -1,21 +1,21 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- import type { Editor } from 'ckeditor5/src/core';
6
- import type { Range, Model, Element, DowncastAddMarkerEvent } from 'ckeditor5/src/engine';
7
- import type { GetCallback } from 'ckeditor5/src/utils';
8
- /**
9
- * Searches given `range` and returns all sub-ranges containing items with given `attributeKey`.
10
- */
11
- export declare function getRangesWithAttribute(attributeKey: string, range: Range, model: Model): Array<Range>;
12
- /**
13
- * For given `element`, if it is a list item, returns all list items that would be affected by renaming `element` to a different element.
14
- */
15
- export declare function getElementsAffectedByListItemRename(element: Element): Array<Element>;
16
- /**
17
- * Returns the conversion function for down-casting split/merge markers.
18
- */
19
- export declare function downcastSplitMergeMarker(editor: Editor, type: 'split' | 'merge', { showActiveMarker }?: {
20
- showActiveMarker?: boolean | undefined;
21
- }): GetCallback<DowncastAddMarkerEvent>;
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ import type { Editor } from 'ckeditor5/src/core';
6
+ import type { Range, Model, Element, DowncastAddMarkerEvent } from 'ckeditor5/src/engine';
7
+ import type { GetCallback } from 'ckeditor5/src/utils';
8
+ /**
9
+ * Searches given `range` and returns all sub-ranges containing items with given `attributeKey`.
10
+ */
11
+ export declare function getRangesWithAttribute(attributeKey: string, range: Range, model: Model): Array<Range>;
12
+ /**
13
+ * For given `element`, if it is a list item, returns all list items that would be affected by renaming `element` to a different element.
14
+ */
15
+ export declare function getElementsAffectedByListItemRename(element: Element): Array<Element>;
16
+ /**
17
+ * Returns the conversion function for down-casting split/merge markers.
18
+ */
19
+ export declare function downcastSplitMergeMarker(editor: Editor, type: 'split' | 'merge', { showActiveMarker }?: {
20
+ showActiveMarker?: boolean | undefined;
21
+ }): GetCallback<DowncastAddMarkerEvent>;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x9f27=['listIndent','getItems','get','includes','isBlock','markerName','isAtEnd','start','ck-suggestion-marker--active','listItem','span','push','markerRange','nextSibling','item','getCustomProperty','parent','type','name','toViewElement','createUIElement','element','getAttribute','ck-suggestion-marker-','toViewPosition','model','consumable','getWalker','createRangeOn','elementEnd','test','mapper','TrackChangesEditing','isLimit','plugins','previousPosition','addHighlight','writer'];(function(_0x2d6408,_0x9f276d){const _0xcd7ee=function(_0x45c551){while(--_0x45c551){_0x2d6408['push'](_0x2d6408['shift']());}};_0xcd7ee(++_0x9f276d);}(_0x9f27,0x122));const _0xcd7e=function(_0x2d6408,_0x9f276d){_0x2d6408=_0x2d6408-0x0;let _0xcd7ee=_0x9f27[_0x2d6408];return _0xcd7ee;};export function getRangesWithAttribute(_0x528b30,_0xb1d76f,_0x3da9ac){const _0xa61494=[];for(const _0x5edac6 of _0xb1d76f[_0xcd7e('0xf')]())_0x5edac6['hasAttribute'](_0x528b30)&&_0xa61494['push'](_0x3da9ac[_0xcd7e('0x4')](_0x5edac6));return _0xa61494;}export function getElementsAffectedByListItemRename(_0x5c3d39){const _0x35a013=[];if(_0x5c3d39['is'](_0xcd7e('0x23'),_0xcd7e('0x17'))){let _0x2df31d=_0x5c3d39[_0xcd7e('0x1b')];for(;_0x2df31d&&_0x2df31d['is']('element',_0xcd7e('0x17'))&&_0x2df31d[_0xcd7e('0x24')](_0xcd7e('0xe'))>0x0;)_0x35a013[_0xcd7e('0x19')](_0x2df31d),_0x2df31d=_0x2df31d[_0xcd7e('0x1b')];}return _0x35a013;}export function downcastSplitMergeMarker(_0x360a8e,_0x5a4da7,{showActiveMarker:_0x17feea=!0x0}={}){const _0x2fcb06=_0x360a8e[_0xcd7e('0xa')][_0xcd7e('0x10')](_0xcd7e('0x8'));return(_0x1e24ff,_0x3d0d77,_0x58b914)=>{if(!_0x58b914[_0xcd7e('0x2')][_0xcd7e('0x6')](_0x3d0d77[_0xcd7e('0x1a')],_0x1e24ff[_0xcd7e('0x20')]))return;const _0x33e7a0=_0x3d0d77['markerRange'][_0xcd7e('0x3')](),_0x56a5ca=_0x3d0d77[_0xcd7e('0x1a')][_0xcd7e('0x15')],_0x387a13=_0x360a8e[_0xcd7e('0x1')]['schema'];let _0x4e443c=null,_0x472367=null,_0xb47ae9=!0x1,_0x43be66=!0x1;for(const _0x4d516e of _0x33e7a0){const _0x1c6712=_0x4d516e[_0xcd7e('0x1c')];_0xb47ae9=_0xb47ae9||_0x387a13['isContent'](_0x1c6712);const _0x111194=_0x58b914['mapper'][_0xcd7e('0x21')](_0x1c6712);if(_0x111194&&_0x111194[_0xcd7e('0x1d')](_0xcd7e('0xc')))return;_0xcd7e('0x5')==_0x4d516e[_0xcd7e('0x1f')]&&(_0x387a13[_0xcd7e('0x12')](_0x1c6712)&&!_0x387a13[_0xcd7e('0x9')](_0x1c6712)&&(_0x1c6712['nextSibling']||_0x56a5ca[_0xcd7e('0x14')]?_0x4e443c&&_0x4e443c[_0xcd7e('0x1e')]==_0x1c6712||(_0x4e443c=_0x1c6712,_0x1dc389(_0x4d516e[_0xcd7e('0xb')]),_0x43be66=!0x0):_0x472367=_0x472367||_0x4d516e[_0xcd7e('0xb')]));}function _0x1dc389(_0x2f894e){const _0x5defb3=_0x58b914[_0xcd7e('0xd')][_0xcd7e('0x22')](_0xcd7e('0x18'),{'class':_0xcd7e('0x25')+_0x5a4da7}),_0x4403f9=_0x58b914[_0xcd7e('0x7')][_0xcd7e('0x0')](_0x2f894e);_0x17feea&&_0x2fcb06['activeMarkers'][_0xcd7e('0x11')](_0x3d0d77[_0xcd7e('0x13')])&&_0x58b914[_0xcd7e('0xd')]['addClass'](_0xcd7e('0x16'),_0x5defb3),_0x58b914['writer']['insert'](_0x4403f9,_0x5defb3),_0x58b914[_0xcd7e('0x7')]['bindElementToMarker'](_0x5defb3,_0x3d0d77[_0xcd7e('0x13')]);}_0xb47ae9||_0x43be66||!_0x472367||_0x1dc389(_0x472367);};}
23
+ const _0x2987=['name','createRangeOn','get','activeMarkers','markerRange','writer','element','listIndent','push','toViewElement','TrackChangesEditing','createUIElement','type','getItems','listItem','mapper','test','elementEnd','insert','includes','markerName','nextSibling','getCustomProperty','item','addClass','isAtEnd','isContent','getWalker','bindElementToMarker','plugins','model'];(function(_0xba327,_0x2987c7){const _0x5cd508=function(_0x5a57e9){while(--_0x5a57e9){_0xba327['push'](_0xba327['shift']());}};_0x5cd508(++_0x2987c7);}(_0x2987,0x67));const _0x5cd5=function(_0xba327,_0x2987c7){_0xba327=_0xba327-0x0;let _0x5cd508=_0x2987[_0xba327];return _0x5cd508;};export function getRangesWithAttribute(_0x27256a,_0x4ec76e,_0x529c17){const _0x113a58=[];for(const _0xcff14 of _0x4ec76e[_0x5cd5('0x3')]())_0xcff14['hasAttribute'](_0x27256a)&&_0x113a58[_0x5cd5('0x1d')](_0x529c17[_0x5cd5('0x16')](_0xcff14));return _0x113a58;}export function getElementsAffectedByListItemRename(_0x2d6300){const _0x25595d=[];if(_0x2d6300['is'](_0x5cd5('0x1b'),'listItem')){let _0x4ea83b=_0x2d6300[_0x5cd5('0xb')];for(;_0x4ea83b&&_0x4ea83b['is'](_0x5cd5('0x1b'),_0x5cd5('0x4'))&&_0x4ea83b['getAttribute'](_0x5cd5('0x1c'))>0x0;)_0x25595d[_0x5cd5('0x1d')](_0x4ea83b),_0x4ea83b=_0x4ea83b[_0x5cd5('0xb')];}return _0x25595d;}export function downcastSplitMergeMarker(_0x1db6b8,_0x21f513,{showActiveMarker:_0x31c1f8=!0x0}={}){const _0x5205fe=_0x1db6b8[_0x5cd5('0x13')][_0x5cd5('0x17')](_0x5cd5('0x0'));return(_0x5e90ba,_0x107237,_0xb5b61a)=>{if(!_0xb5b61a['consumable'][_0x5cd5('0x6')](_0x107237[_0x5cd5('0x19')],_0x5e90ba[_0x5cd5('0x15')]))return;const _0x93379f=_0x107237['markerRange'][_0x5cd5('0x11')](),_0x5e9a3a=_0x107237['markerRange']['start'],_0x56149f=_0x1db6b8[_0x5cd5('0x14')]['schema'];let _0x4862ba=null,_0x555d22=null,_0x22fd77=!0x1,_0x350f7f=!0x1;for(const _0x2586a8 of _0x93379f){const _0x5929ad=_0x2586a8[_0x5cd5('0xd')];_0x22fd77=_0x22fd77||_0x56149f[_0x5cd5('0x10')](_0x5929ad);const _0x116190=_0xb5b61a[_0x5cd5('0x5')][_0x5cd5('0x1e')](_0x5929ad);if(_0x116190&&_0x116190[_0x5cd5('0xc')]('addHighlight'))return;_0x5cd5('0x7')==_0x2586a8[_0x5cd5('0x2')]&&(_0x56149f['isBlock'](_0x5929ad)&&!_0x56149f['isLimit'](_0x5929ad)&&(_0x5929ad[_0x5cd5('0xb')]||_0x5e9a3a[_0x5cd5('0xf')]?_0x4862ba&&_0x4862ba['parent']==_0x5929ad||(_0x4862ba=_0x5929ad,_0x2a1c57(_0x2586a8['previousPosition']),_0x350f7f=!0x0):_0x555d22=_0x555d22||_0x2586a8['previousPosition']));}function _0x2a1c57(_0x5b2720){const _0x9f1078=_0xb5b61a[_0x5cd5('0x1a')][_0x5cd5('0x1')]('span',{'class':'ck-suggestion-marker-'+_0x21f513}),_0x140632=_0xb5b61a[_0x5cd5('0x5')]['toViewPosition'](_0x5b2720);_0x31c1f8&&_0x5205fe[_0x5cd5('0x18')][_0x5cd5('0x9')](_0x107237[_0x5cd5('0xa')])&&_0xb5b61a[_0x5cd5('0x1a')][_0x5cd5('0xe')]('ck-suggestion-marker--active',_0x9f1078),_0xb5b61a['writer'][_0x5cd5('0x8')](_0x140632,_0x9f1078),_0xb5b61a['mapper'][_0x5cd5('0x12')](_0x9f1078,_0x107237[_0x5cd5('0xa')]);}_0x22fd77||_0x350f7f||!_0x555d22||_0x2a1c57(_0x555d22);};}