@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,75 +1,75 @@
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/trackchangesconfig
7
- * @publicApi
8
- */
9
- import type SuggestionThreadView from './ui/view/suggestionthreadview';
10
- /**
11
- * The configuration of the track changes feature.
12
- *
13
- * Example:
14
- *
15
- * ```ts
16
- * ClassicEditor
17
- * .create( {
18
- * // Track changes feature configuration.
19
- * trackChanges: {
20
- * // Do not allow users to comment suggestions (default is `false`).
21
- * disableComments: true,
22
- * // Do not track styling and formatting changes (default is `default`).
23
- * trackFormatChanges: 'never',
24
- * // Merges suggestion changes inside a block. (default is `true`).
25
- * mergeNestedSuggestions: true
26
- * }
27
- * } )
28
- * .then( ... )
29
- * .catch( ... );
30
- * ```
31
- *
32
- * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
33
- */
34
- export interface TrackChangesConfig {
35
- /**
36
- * A property that specifies if the comments for suggestions are enabled or disabled.
37
- * When the option is set to `true`, the comment thread UI for suggestions will be hidden
38
- * and commenting suggestions will be disabled.
39
- *
40
- * Suggestion thread views will be marked with the additional `ck-suggestion--disabled-comments` class when the suggestion comments
41
- * are disabled.
42
- */
43
- disableComments: boolean;
44
- /**
45
- * A property that specifies whether format changes should be tracked.
46
- *
47
- * Format changes are all changes other than insertions and deletions, including: styling, structure, widgets properties, etc.
48
- *
49
- * Possible values are:
50
- *
51
- * * `'always'` - all changes are going to be tracked independently (without merging).
52
- * * `'default'` - format changes made inside your own insertion suggestion will be merged with it.
53
- * * `'never'` - format changes will not be tracked.
54
- *
55
- * Defaults to `'default'`.
56
- */
57
- trackFormatChanges: 'never' | 'default' | 'always';
58
- /**
59
- * Specifies whether suggestions on an object (e.g. image, table) should be automatically merged
60
- * with suggestions inside the object (e.g. image caption, table cell).
61
- *
62
- * For example, when set to `true`, creating a table and writing some text inside the table will result in one suggestion.
63
- * When set to `false`, it will be two separate suggestions, one for the inserted table and one for the inserted text.
64
- *
65
- * Keep in mind that only suggestions from the same author and of the same type are merged this way.
66
- */
67
- mergeNestedSuggestions: boolean;
68
- /**
69
- * A view class to be used to create suggestion thread views.
70
- *
71
- * {@link module:track-changes/ui/view/suggestionthreadview~SuggestionThreadView} is used by default
72
- * when this property is not set.
73
- */
74
- SuggestionThreadView?: typeof SuggestionThreadView;
75
- }
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/trackchangesconfig
7
+ * @publicApi
8
+ */
9
+ import type SuggestionThreadView from './ui/view/suggestionthreadview';
10
+ /**
11
+ * The configuration of the track changes feature.
12
+ *
13
+ * Example:
14
+ *
15
+ * ```ts
16
+ * ClassicEditor
17
+ * .create( {
18
+ * // Track changes feature configuration.
19
+ * trackChanges: {
20
+ * // Do not allow users to comment suggestions (default is `false`).
21
+ * disableComments: true,
22
+ * // Do not track styling and formatting changes (default is `default`).
23
+ * trackFormatChanges: 'never',
24
+ * // Merges suggestion changes inside a block. (default is `true`).
25
+ * mergeNestedSuggestions: true
26
+ * }
27
+ * } )
28
+ * .then( ... )
29
+ * .catch( ... );
30
+ * ```
31
+ *
32
+ * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
33
+ */
34
+ export interface TrackChangesConfig {
35
+ /**
36
+ * A property that specifies if the comments for suggestions are enabled or disabled.
37
+ * When the option is set to `true`, the comment thread UI for suggestions will be hidden
38
+ * and commenting suggestions will be disabled.
39
+ *
40
+ * Suggestion thread views will be marked with the additional `ck-suggestion--disabled-comments` class when the suggestion comments
41
+ * are disabled.
42
+ */
43
+ disableComments: boolean;
44
+ /**
45
+ * A property that specifies whether format changes should be tracked.
46
+ *
47
+ * Format changes are all changes other than insertions and deletions, including: styling, structure, widgets properties, etc.
48
+ *
49
+ * Possible values are:
50
+ *
51
+ * * `'always'` - all changes are going to be tracked independently (without merging).
52
+ * * `'default'` - format changes made inside your own insertion suggestion will be merged with it.
53
+ * * `'never'` - format changes will not be tracked.
54
+ *
55
+ * Defaults to `'default'`.
56
+ */
57
+ trackFormatChanges: 'never' | 'default' | 'always';
58
+ /**
59
+ * Specifies whether suggestions on an object (e.g. image, table) should be automatically merged
60
+ * with suggestions inside the object (e.g. image caption, table cell).
61
+ *
62
+ * For example, when set to `true`, creating a table and writing some text inside the table will result in one suggestion.
63
+ * When set to `false`, it will be two separate suggestions, one for the inserted table and one for the inserted text.
64
+ *
65
+ * Keep in mind that only suggestions from the same author and of the same type are merged this way.
66
+ */
67
+ mergeNestedSuggestions: boolean;
68
+ /**
69
+ * A view class to be used to create suggestion thread views.
70
+ *
71
+ * {@link module:track-changes/ui/view/suggestionthreadview~SuggestionThreadView} is used by default
72
+ * when this property is not set.
73
+ */
74
+ SuggestionThreadView?: typeof SuggestionThreadView;
75
+ }
@@ -1,41 +1,41 @@
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/trackchangesdata
7
- * @publicApi
8
- */
9
- import { Plugin } from 'ckeditor5/src/core';
10
- import TrackChangesEditing from './trackchangesediting';
11
- /**
12
- * This plugin returns the editor data with accepted or discarded suggestions without modifying the editor content.
13
- */
14
- export default class TrackChangesData extends Plugin {
15
- /**
16
- * @inheritDoc
17
- */
18
- static get requires(): readonly [typeof TrackChangesEditing];
19
- /**
20
- * @inheritDoc
21
- */
22
- static get pluginName(): "TrackChangesData";
23
- /**
24
- * @inheritDoc
25
- */
26
- init(): void;
27
- /**
28
- * Returns the editor data with all the suggestions accepted.
29
- *
30
- * @param options Options for {@link module:engine/controller/datacontroller~DataController#get}.
31
- * @returns A promise which resolves with the output data.
32
- */
33
- getDataWithAcceptedSuggestions(options: Record<string, unknown>): Promise<string | Record<string, string>>;
34
- /**
35
- * Returns the editor data with all the suggestions discarded.
36
- *
37
- * @param options Options for {@link module:engine/controller/datacontroller~DataController#get}.
38
- * @returns A promise which resolves with the output data.
39
- */
40
- getDataWithDiscardedSuggestions(options: Record<string, unknown>): Promise<string | Record<string, string>>;
41
- }
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/trackchangesdata
7
+ * @publicApi
8
+ */
9
+ import { Plugin } from 'ckeditor5/src/core';
10
+ import TrackChangesEditing from './trackchangesediting';
11
+ /**
12
+ * This plugin returns the editor data with accepted or discarded suggestions without modifying the editor content.
13
+ */
14
+ export default class TrackChangesData extends Plugin {
15
+ /**
16
+ * @inheritDoc
17
+ */
18
+ static get requires(): readonly [typeof TrackChangesEditing];
19
+ /**
20
+ * @inheritDoc
21
+ */
22
+ static get pluginName(): "TrackChangesData";
23
+ /**
24
+ * @inheritDoc
25
+ */
26
+ init(): void;
27
+ /**
28
+ * Returns the editor data with all the suggestions accepted.
29
+ *
30
+ * @param options Options for {@link module:engine/controller/datacontroller~DataController#get}.
31
+ * @returns A promise which resolves with the output data.
32
+ */
33
+ getDataWithAcceptedSuggestions(options: Record<string, unknown>): Promise<string | Record<string, string>>;
34
+ /**
35
+ * Returns the editor data with all the suggestions discarded.
36
+ *
37
+ * @param options Options for {@link module:engine/controller/datacontroller~DataController#get}.
38
+ * @returns A promise which resolves with the output data.
39
+ */
40
+ getDataWithDiscardedSuggestions(options: Record<string, unknown>): Promise<string | Record<string, string>>;
41
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x406e=['editor','data','_adapter','getSuggestions','createElement','editorCreator','getRootsAttributes','get','name','getFullData','CommentsRepository','getRootNames','createDocumentFragment','map','TrackChangesEditing','plugins','create','getDataWithAcceptedSuggestions','document','requires','TrackChangesDataGetter','init','track-changes-data-invalid-editor-creator','div','reduce','trackChangesData','result','trackChangesData.editorCreator','useAnonymousUser','define','acceptAllSuggestions','execute','model','addUser','discardAllSuggestions','rootsAttributes','destroy','config','TrackChangesData','pluginName'];(function(_0x48028e,_0x406e1e){const _0x4b3f4a=function(_0x554715){while(--_0x554715){_0x48028e['push'](_0x48028e['shift']());}};_0x4b3f4a(++_0x406e1e);}(_0x406e,0x192));const _0x4b3f=function(_0x48028e,_0x406e1e){_0x48028e=_0x48028e-0x0;let _0x4b3f4a=_0x406e[_0x48028e];return _0x4b3f4a;};import{Plugin as _0x2e5818}from'ckeditor5/src/core';import{CKEditorError as _0x54e24d}from'ckeditor5/src/utils';import _0x5aad5a from'./trackchangesediting';import{sanitizeEditorConfig as _0x5e602c}from'ckeditor5-collaboration/src/collaboration-core';const w=['Pagination'];export default class T extends _0x2e5818{static get[_0x4b3f('0x11')](){return[_0x5aad5a];}static get[_0x4b3f('0x25')](){return _0x4b3f('0x24');}[_0x4b3f('0x13')](){const _0x1e5b38=this[_0x4b3f('0x26')];if(_0x1e5b38[_0x4b3f('0x23')][_0x4b3f('0x1b')](_0x4b3f('0x19'),_0x3916e5=>{const _0x2ef5ad=_0x1e5b38['model']['document'][_0x4b3f('0x9')]()['reduce']((_0x1d29c7,_0x2115b5)=>(_0x1d29c7[_0x2115b5]='',_0x1d29c7),{});return _0x1e5b38['constructor'][_0x4b3f('0xe')](_0x2ef5ad,_0x3916e5);}),'function'!=typeof _0x1e5b38[_0x4b3f('0x23')][_0x4b3f('0x5')](_0x4b3f('0x17'))[_0x4b3f('0x3')])throw new _0x54e24d(_0x4b3f('0x14'));}[_0x4b3f('0xf')](_0x2d48ca){return v(this[_0x4b3f('0x26')],!0x0,_0x2d48ca);}['getDataWithDiscardedSuggestions'](_0x5da539){return v(this[_0x4b3f('0x26')],!0x1,_0x5da539);}}class P extends _0x2e5818{static get[_0x4b3f('0x25')](){return _0x4b3f('0x12');}constructor(_0xb35bac){super(_0xb35bac),this[_0x4b3f('0x18')]='end';}['init'](){this[_0x4b3f('0x26')][_0x4b3f('0xd')][_0x4b3f('0x5')](_0x4b3f('0x8'))[_0x4b3f('0x0')]={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this[_0x4b3f('0x26')][_0x4b3f('0xd')][_0x4b3f('0x5')](_0x4b3f('0xc'))[_0x4b3f('0x0')]=null;}}function D(_0x187761){return void 0x0!==_0x187761[_0x4b3f('0x4')];}async function v(_0x47c599,_0x3ce4df,_0x546bbb){const _0x58a938=_0x5e602c(_0x47c599,w);_0x58a938['plugins']['push'](_0x5aad5a,P),_0x58a938[_0x4b3f('0x21')]=D(_0x47c599)?_0x47c599[_0x4b3f('0x4')]():void 0x0;const _0x2cdbdd=document[_0x4b3f('0xa')](),_0x206284=_0x47c599['config'][_0x4b3f('0x5')](_0x4b3f('0x17'))[_0x4b3f('0x3')],_0x4f3c00=await _0x206284(_0x58a938,()=>function(_0x538a91){const _0x4c6d27=document[_0x4b3f('0x2')](_0x4b3f('0x15'));return _0x538a91['appendChild'](_0x4c6d27),_0x4c6d27;}(_0x2cdbdd));!function(_0xd822ef,_0x1d5574){const _0x1f36c8=_0xd822ef[_0x4b3f('0x1e')][_0x4b3f('0x10')]['getRootNames']()[_0x4b3f('0x16')]((_0x5078aa,_0x197842)=>(_0x5078aa[_0x197842]=_0xd822ef[_0x4b3f('0x27')][_0x4b3f('0x5')]({'rootName':_0x197842}),_0x5078aa),{}),_0xa0d04d=_0xd822ef[_0x4b3f('0xd')][_0x4b3f('0x5')]('Users')['users'][_0x4b3f('0xb')](_0xa25cd8=>({'id':_0xa25cd8['id'],'name':_0xa25cd8[_0x4b3f('0x6')]})),_0x3220a6=_0xd822ef[_0x4b3f('0xd')]['get'](_0x4b3f('0xc'))[_0x4b3f('0x1')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1f5145=_0x1d5574[_0x4b3f('0xd')]['get']('Users'),_0x2c82b1=_0x1d5574['plugins']['get'](_0x4b3f('0xc'));for(const _0xa69c5c of _0xa0d04d)_0x1f5145['getUser'](_0xa69c5c['id'])||_0x1f5145[_0x4b3f('0x1f')](_0xa69c5c);_0x1f5145['me']||_0x1f5145[_0x4b3f('0x1a')]();for(const _0x3d7f96 of _0x3220a6)_0x2c82b1['addSuggestionData'](_0x3d7f96);_0x1d5574[_0x4b3f('0x27')]['set'](_0x1f36c8);}(_0x47c599,_0x4f3c00),_0x4f3c00[_0x4b3f('0x1d')](_0x3ce4df?_0x4b3f('0x1c'):_0x4b3f('0x20'));const _0xfc3072=D(_0x4f3c00)?_0x4f3c00[_0x4b3f('0x7')](_0x546bbb):_0x4f3c00[_0x4b3f('0x27')]['get'](_0x546bbb);return await _0x4f3c00[_0x4b3f('0x22')](),_0xfc3072;}
23
+ const _0x1639=['getDataWithDiscardedSuggestions','getRootsAttributes','users','constructor','editorCreator','set','pluginName','get','getRootNames','div','data','discardAllSuggestions','map','appendChild','document','CommentsRepository','plugins','model','editor','end','_adapter','define','Pagination','getSuggestions','acceptAllSuggestions','reduce','TrackChangesEditing','name','create','createDocumentFragment','getFullData','TrackChangesDataGetter','Users','requires','addSuggestionData','push','trackChangesData','getUser','rootsAttributes','config','destroy','init','getDataWithAcceptedSuggestions','useAnonymousUser','trackChangesData.editorCreator','function','execute','createElement'];(function(_0x13ee9d,_0x163993){const _0x57cb1f=function(_0x17f1f0){while(--_0x17f1f0){_0x13ee9d['push'](_0x13ee9d['shift']());}};_0x57cb1f(++_0x163993);}(_0x1639,0xb7));const _0x57cb=function(_0x13ee9d,_0x163993){_0x13ee9d=_0x13ee9d-0x0;let _0x57cb1f=_0x1639[_0x13ee9d];return _0x57cb1f;};import{Plugin as _0x5427d1}from'ckeditor5/src/core';import{CKEditorError as _0xba42cb}from'ckeditor5/src/utils';import _0x4f5e4e from'./trackchangesediting';import{sanitizeEditorConfig as _0x47bdcc}from'ckeditor5-collaboration/src/collaboration-core';const w=[_0x57cb('0x1f')];export default class T extends _0x5427d1{static get[_0x57cb('0x2a')](){return[_0x4f5e4e];}static get[_0x57cb('0xf')](){return'TrackChangesData';}['init'](){const _0x47ec15=this[_0x57cb('0x1b')];if(_0x47ec15['config'][_0x57cb('0x1e')](_0x57cb('0x5'),_0x42ddae=>{const _0x466dad=_0x47ec15[_0x57cb('0x1a')][_0x57cb('0x17')][_0x57cb('0x11')]()[_0x57cb('0x22')]((_0x30c50b,_0x1f2bd5)=>(_0x30c50b[_0x1f2bd5]='',_0x30c50b),{});return _0x47ec15[_0x57cb('0xc')][_0x57cb('0x25')](_0x466dad,_0x42ddae);}),_0x57cb('0x6')!=typeof _0x47ec15['config'][_0x57cb('0x10')](_0x57cb('0x2d'))['editorCreator'])throw new _0xba42cb('track-changes-data-invalid-editor-creator');}[_0x57cb('0x3')](_0x442a91){return v(this['editor'],!0x0,_0x442a91);}[_0x57cb('0x9')](_0x5803e6){return v(this[_0x57cb('0x1b')],!0x1,_0x5803e6);}}class P extends _0x5427d1{static get['pluginName'](){return _0x57cb('0x28');}constructor(_0x5d7d51){super(_0x5d7d51),this['result']=_0x57cb('0x1c');}[_0x57cb('0x2')](){this[_0x57cb('0x1b')][_0x57cb('0x19')]['get'](_0x57cb('0x18'))[_0x57cb('0x1d')]={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this[_0x57cb('0x1b')][_0x57cb('0x19')][_0x57cb('0x10')](_0x57cb('0x23'))[_0x57cb('0x1d')]=null;}}function D(_0x56a4e9){return void 0x0!==_0x56a4e9[_0x57cb('0xa')];}async function v(_0x237c64,_0x5bd37b,_0x351640){const _0x2086b7=_0x47bdcc(_0x237c64,w);_0x2086b7['plugins'][_0x57cb('0x2c')](_0x4f5e4e,P),_0x2086b7[_0x57cb('0x2f')]=D(_0x237c64)?_0x237c64[_0x57cb('0xa')]():void 0x0;const _0x165506=document[_0x57cb('0x26')](),_0x100257=_0x237c64[_0x57cb('0x0')]['get'](_0x57cb('0x2d'))[_0x57cb('0xd')],_0x522a5f=await _0x100257(_0x2086b7,()=>function(_0x539c8d){const _0x55daed=document[_0x57cb('0x8')](_0x57cb('0x12'));return _0x539c8d[_0x57cb('0x16')](_0x55daed),_0x55daed;}(_0x165506));!function(_0x10e394,_0x1b974b){const _0x47dc25=_0x10e394[_0x57cb('0x1a')][_0x57cb('0x17')]['getRootNames']()[_0x57cb('0x22')]((_0x478019,_0xdfeb61)=>(_0x478019[_0xdfeb61]=_0x10e394[_0x57cb('0x13')]['get']({'rootName':_0xdfeb61}),_0x478019),{}),_0x387a00=_0x10e394[_0x57cb('0x19')]['get'](_0x57cb('0x29'))[_0x57cb('0xb')][_0x57cb('0x15')](_0x33ac1c=>({'id':_0x33ac1c['id'],'name':_0x33ac1c[_0x57cb('0x24')]})),_0x5e3b33=_0x10e394[_0x57cb('0x19')][_0x57cb('0x10')](_0x57cb('0x23'))[_0x57cb('0x20')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x347983=_0x1b974b[_0x57cb('0x19')][_0x57cb('0x10')](_0x57cb('0x29')),_0x271b74=_0x1b974b[_0x57cb('0x19')][_0x57cb('0x10')](_0x57cb('0x23'));for(const _0x40e9be of _0x387a00)_0x347983[_0x57cb('0x2e')](_0x40e9be['id'])||_0x347983['addUser'](_0x40e9be);_0x347983['me']||_0x347983[_0x57cb('0x4')]();for(const _0x438099 of _0x5e3b33)_0x271b74[_0x57cb('0x2b')](_0x438099);_0x1b974b[_0x57cb('0x13')][_0x57cb('0xe')](_0x47dc25);}(_0x237c64,_0x522a5f),_0x522a5f[_0x57cb('0x7')](_0x5bd37b?_0x57cb('0x21'):_0x57cb('0x14'));const _0x2b916b=D(_0x522a5f)?_0x522a5f[_0x57cb('0x27')](_0x351640):_0x522a5f[_0x57cb('0x13')]['get'](_0x351640);return await _0x522a5f[_0x57cb('0x1')](),_0x2b916b;}