@ckeditor/ckeditor5-revision-history 40.2.0 → 41.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 (140) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +1 -1
  3. package/build/revision-history.js +2 -2
  4. package/lang/translations/af.po +1 -1
  5. package/lang/translations/ar.po +1 -1
  6. package/lang/translations/az.po +1 -1
  7. package/lang/translations/bg.po +1 -1
  8. package/lang/translations/bn.po +1 -1
  9. package/lang/translations/bs.po +1 -1
  10. package/lang/translations/ca.po +1 -1
  11. package/lang/translations/cs.po +1 -1
  12. package/lang/translations/da.po +1 -1
  13. package/lang/translations/de-ch.po +1 -1
  14. package/lang/translations/de.po +1 -1
  15. package/lang/translations/el.po +1 -1
  16. package/lang/translations/en-au.po +1 -1
  17. package/lang/translations/en-gb.po +1 -1
  18. package/lang/translations/en.po +1 -1
  19. package/lang/translations/es-co.po +1 -1
  20. package/lang/translations/es.po +1 -1
  21. package/lang/translations/et.po +1 -1
  22. package/lang/translations/fa.po +1 -1
  23. package/lang/translations/fi.po +1 -1
  24. package/lang/translations/fr.po +1 -1
  25. package/lang/translations/gl.po +1 -1
  26. package/lang/translations/he.po +1 -1
  27. package/lang/translations/hi.po +1 -1
  28. package/lang/translations/hr.po +1 -1
  29. package/lang/translations/hu.po +1 -1
  30. package/lang/translations/id.po +1 -1
  31. package/lang/translations/it.po +1 -1
  32. package/lang/translations/ja.po +1 -1
  33. package/lang/translations/jv.po +1 -1
  34. package/lang/translations/ko.po +1 -1
  35. package/lang/translations/ku.po +1 -1
  36. package/lang/translations/lt.po +1 -1
  37. package/lang/translations/lv.po +1 -1
  38. package/lang/translations/ms.po +1 -1
  39. package/lang/translations/ne.po +1 -1
  40. package/lang/translations/nl.po +1 -1
  41. package/lang/translations/no.po +1 -1
  42. package/lang/translations/pl.po +1 -1
  43. package/lang/translations/pt-br.po +1 -1
  44. package/lang/translations/pt.po +1 -1
  45. package/lang/translations/ro.po +1 -1
  46. package/lang/translations/ru.po +1 -1
  47. package/lang/translations/sk.po +1 -1
  48. package/lang/translations/sr-latn.po +1 -1
  49. package/lang/translations/sr.po +1 -1
  50. package/lang/translations/sv.po +1 -1
  51. package/lang/translations/th.po +1 -1
  52. package/lang/translations/tk.po +1 -1
  53. package/lang/translations/tr.po +1 -1
  54. package/lang/translations/tt.po +1 -1
  55. package/lang/translations/ug.po +1 -1
  56. package/lang/translations/uk.po +1 -1
  57. package/lang/translations/ur.po +1 -1
  58. package/lang/translations/vi.po +1 -1
  59. package/lang/translations/zh-cn.po +1 -1
  60. package/lang/translations/zh.po +1 -1
  61. package/package.json +6 -6
  62. package/src/augmentation.d.ts +2 -2
  63. package/src/augmentation.js +1 -1
  64. package/src/changeitem.d.ts +4 -4
  65. package/src/changeitem.js +2 -2
  66. package/src/editor/revisionviewereditor.d.ts +4 -4
  67. package/src/editor/revisionviewereditor.js +2 -2
  68. package/src/editor/revisionviewereditorui.d.ts +4 -4
  69. package/src/editor/revisionviewereditorui.js +2 -2
  70. package/src/editor/revisionviewereditoruiview.d.ts +5 -5
  71. package/src/editor/revisionviewereditoruiview.js +2 -2
  72. package/src/index.d.ts +12 -12
  73. package/src/index.js +2 -2
  74. package/src/revision.d.ts +4 -4
  75. package/src/revision.js +2 -2
  76. package/src/revisiondiff.d.ts +4 -4
  77. package/src/revisiondiff.js +2 -2
  78. package/src/revisionhistory.d.ts +7 -7
  79. package/src/revisionhistory.js +2 -2
  80. package/src/revisionhistoryadapter.d.ts +2 -2
  81. package/src/revisionhistoryadapter.js +1 -1
  82. package/src/revisionhistoryconfig.d.ts +1 -1
  83. package/src/revisionhistoryconfig.js +1 -1
  84. package/src/revisionsrepository.d.ts +4 -4
  85. package/src/revisionsrepository.js +2 -2
  86. package/src/revisiontracker.d.ts +6 -6
  87. package/src/revisiontracker.js +2 -2
  88. package/src/revisionviewer.d.ts +1 -1
  89. package/src/revisionviewer.js +2 -2
  90. package/src/ui/revision/createrevisionactionsdropdown.d.ts +3 -3
  91. package/src/ui/revision/createrevisionactionsdropdown.js +2 -2
  92. package/src/ui/revision/revisionauthorview.d.ts +1 -1
  93. package/src/ui/revision/revisionauthorview.js +2 -2
  94. package/src/ui/revision/revisionnameview.d.ts +1 -1
  95. package/src/ui/revision/revisionnameview.js +2 -2
  96. package/src/ui/revision/revisionview.d.ts +7 -7
  97. package/src/ui/revision/revisionview.js +2 -2
  98. package/src/ui/revision/subrevisioncollapserview.d.ts +3 -3
  99. package/src/ui/revision/subrevisioncollapserview.js +2 -2
  100. package/src/ui/revision/subrevisionview.d.ts +4 -4
  101. package/src/ui/revision/subrevisionview.js +2 -2
  102. package/src/ui/revision/utils.d.ts +1 -1
  103. package/src/ui/revision/utils.js +2 -2
  104. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +3 -3
  105. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
  106. package/src/ui/revisionhistory/revisionhistoryui.d.ts +3 -3
  107. package/src/ui/revisionhistory/revisionhistoryui.js +2 -2
  108. package/src/ui/revisionssidebar/revisionssidebar.d.ts +4 -4
  109. package/src/ui/revisionssidebar/revisionssidebar.js +2 -2
  110. package/src/ui/revisionssidebar/revisionssidebarheaderview.d.ts +1 -1
  111. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +2 -2
  112. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +6 -6
  113. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +2 -2
  114. package/src/ui/revisionssidebar/revisionssidebarview.d.ts +7 -7
  115. package/src/ui/revisionssidebar/revisionssidebarview.js +2 -2
  116. package/src/ui/revisionssidebar/utils.d.ts +1 -1
  117. package/src/ui/revisionssidebar/utils.js +2 -2
  118. package/src/ui/revisionviewer/changedetailsview.d.ts +4 -4
  119. package/src/ui/revisionviewer/changedetailsview.js +2 -2
  120. package/src/ui/revisionviewer/changesnavigationview.d.ts +3 -3
  121. package/src/ui/revisionviewer/changesnavigationview.js +2 -2
  122. package/src/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +2 -2
  123. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +2 -2
  124. package/src/ui/revisionviewer/revisionviewerui.d.ts +4 -4
  125. package/src/ui/revisionviewer/revisionviewerui.js +2 -2
  126. package/src/utils/common-translations.d.ts +2 -2
  127. package/src/utils/common-translations.js +2 -2
  128. package/theme/changesnavigation.css +1 -1
  129. package/theme/revision/revision.css +1 -1
  130. package/theme/revision/revisionactions.css +1 -1
  131. package/theme/revision/revisionauthor.css +1 -1
  132. package/theme/revision/revisionname.css +1 -1
  133. package/theme/revision/subrevision.css +1 -1
  134. package/theme/revision/subrevisioncollapser.css +1 -1
  135. package/theme/revisionhistorysaverevisionform.css +1 -1
  136. package/theme/revisionssidebar/revisionssidebar.css +1 -1
  137. package/theme/revisionssidebar/revisionssidebarheader.css +1 -1
  138. package/theme/revisionssidebar/revisionssidebartimeperiod.css +1 -1
  139. package/theme/revisionviewer.css +1 -1
  140. package/theme/revisionviewerloadingoverlay.css +1 -1
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module revision-history/editor/revisionviewereditoruiview
7
7
  */
8
- import { BoxedEditorUIView, InlineEditableUIView, StickyPanelView, ToolbarView } from 'ckeditor5/src/ui';
9
- import type { View } from 'ckeditor5/src/engine';
10
- import type { Locale } from 'ckeditor5/src/utils';
8
+ import { BoxedEditorUIView, InlineEditableUIView, StickyPanelView, ToolbarView } from 'ckeditor5/src/ui.js';
9
+ import type { EditingView } from 'ckeditor5/src/engine.js';
10
+ import type { Locale } from 'ckeditor5/src/utils.js';
11
11
  import '@ckeditor/ckeditor5-editor-classic/theme/classiceditor.css';
12
12
  export default class RevisionViewerEditorUIView extends BoxedEditorUIView {
13
13
  /**
@@ -27,7 +27,7 @@ export default class RevisionViewerEditorUIView extends BoxedEditorUIView {
27
27
  * @param editingView The editing view instance this view is related to.
28
28
  * @param options Configuration options for the view instance.
29
29
  */
30
- constructor(locale: Locale, editingView: View, options?: RevisionViewerEditorUIViewOptions);
30
+ constructor(locale: Locale, editingView: EditingView, options?: RevisionViewerEditorUIViewOptions);
31
31
  /**
32
32
  * @inheritDoc
33
33
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x26b7=['add','shouldToolbarGroupWhenFull','_editable','render','toolbar','editable','content','stickyPanel','top'];(function(_0x40bfaa,_0x26b7e4){var _0x5acc99=function(_0x2babcb){while(--_0x2babcb){_0x40bfaa['push'](_0x40bfaa['shift']());}};_0x5acc99(++_0x26b7e4);}(_0x26b7,0x174));var _0x5acc=function(_0x40bfaa,_0x26b7e4){_0x40bfaa=_0x40bfaa-0x0;var _0x5acc99=_0x26b7[_0x40bfaa];return _0x5acc99;};import{BoxedEditorUIView as _0x5033d4,InlineEditableUIView as _0x4cacc7,StickyPanelView as _0x18788e,ToolbarView as _0x484351}from'ckeditor5/src/ui';import'@ckeditor/ckeditor5-editor-classic/theme/classiceditor.css';export default class at extends _0x5033d4{get[_0x5acc('0x2')](){return this[_0x5acc('0x8')];}constructor(_0x39ecc8,_0x545af9,_0x382f6c={}){super(_0x39ecc8),this[_0x5acc('0x4')]=new _0x18788e(_0x39ecc8),this['toolbar']=new _0x484351(_0x39ecc8,{'shouldGroupWhenFull':_0x382f6c[_0x5acc('0x7')]}),this[_0x5acc('0x8')]=new _0x4cacc7(_0x39ecc8,_0x545af9);}['render'](){super[_0x5acc('0x0')](),this[_0x5acc('0x4')][_0x5acc('0x3')][_0x5acc('0x6')](this[_0x5acc('0x1')]),this[_0x5acc('0x5')][_0x5acc('0x6')](this['stickyPanel']),this['main'][_0x5acc('0x6')](this[_0x5acc('0x2')]);}}
23
+ var _0x2127=['toolbar','render','stickyPanel','editable','content','add','main','_editable','shouldToolbarGroupWhenFull'];(function(_0x5ce6bf,_0x212702){var _0x337ee7=function(_0x39c37d){while(--_0x39c37d){_0x5ce6bf['push'](_0x5ce6bf['shift']());}};_0x337ee7(++_0x212702);}(_0x2127,0x1ea));var _0x337e=function(_0x5ce6bf,_0x212702){_0x5ce6bf=_0x5ce6bf-0x0;var _0x337ee7=_0x2127[_0x5ce6bf];return _0x337ee7;};import{BoxedEditorUIView as _0x265d5e,InlineEditableUIView as _0x5bf5a6,StickyPanelView as _0x49d528,ToolbarView as _0x503878}from'ckeditor5/src/ui.js';import'@ckeditor/ckeditor5-editor-classic/theme/classiceditor.css';export default class at extends _0x265d5e{get[_0x337e('0x8')](){return this[_0x337e('0x3')];}constructor(_0x3a47e1,_0x18e8f4,_0x1d2159={}){super(_0x3a47e1),this[_0x337e('0x7')]=new _0x49d528(_0x3a47e1),this[_0x337e('0x5')]=new _0x503878(_0x3a47e1,{'shouldGroupWhenFull':_0x1d2159[_0x337e('0x4')]}),this[_0x337e('0x3')]=new _0x5bf5a6(_0x3a47e1,_0x18e8f4);}[_0x337e('0x6')](){super[_0x337e('0x6')](),this[_0x337e('0x7')][_0x337e('0x0')][_0x337e('0x1')](this[_0x337e('0x5')]),this['top'][_0x337e('0x1')](this[_0x337e('0x7')]),this[_0x337e('0x2')][_0x337e('0x1')](this['editable']);}}
package/src/index.d.ts CHANGED
@@ -1,15 +1,15 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- export { default as RevisionHistory } from './revisionhistory';
6
- export { default as RevisionsRepository } from './revisionsrepository';
7
- export { default as RevisionViewerLoadingOverlay } from './ui/revisionviewer/revisionviewerloadingoverlay';
8
- export { default as RevisionHistoryUI } from './ui/revisionhistory/revisionhistoryui';
9
- export { default as RevisionTracker } from './revisiontracker';
10
- export { default as RevisionViewer, type RestoreRevisionCommand, type ShowChangeCommand } from './revisionviewer';
11
- export { default as RevisionsSidebar } from './ui/revisionssidebar/revisionssidebar';
12
- export { default as RevisionViewerUI } from './ui/revisionviewer/revisionviewerui';
13
- export type { RevisionData } from './revision';
14
- export type { RevisionHistoryConfig } from './revisionhistoryconfig';
15
- import './augmentation';
5
+ export { default as RevisionHistory } from './revisionhistory.js';
6
+ export { default as RevisionsRepository } from './revisionsrepository.js';
7
+ export { default as RevisionViewerLoadingOverlay } from './ui/revisionviewer/revisionviewerloadingoverlay.js';
8
+ export { default as RevisionHistoryUI } from './ui/revisionhistory/revisionhistoryui.js';
9
+ export { default as RevisionTracker } from './revisiontracker.js';
10
+ export { default as RevisionViewer, type RestoreRevisionCommand, type ShowChangeCommand } from './revisionviewer.js';
11
+ export { default as RevisionsSidebar } from './ui/revisionssidebar/revisionssidebar.js';
12
+ export { default as RevisionViewerUI } from './ui/revisionviewer/revisionviewerui.js';
13
+ export type { RevisionData } from './revision.js';
14
+ export type { RevisionHistoryConfig } from './revisionhistoryconfig.js';
15
+ import './augmentation.js';
package/src/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export{default as RevisionHistory}from'./revisionhistory';export{default as RevisionsRepository}from'./revisionsrepository';export{default as RevisionViewerLoadingOverlay}from'./ui/revisionviewer/revisionviewerloadingoverlay';export{default as RevisionHistoryUI}from'./ui/revisionhistory/revisionhistoryui';export{default as RevisionTracker}from'./revisiontracker';export{default as RevisionViewer}from'./revisionviewer';export{default as RevisionsSidebar}from'./ui/revisionssidebar/revisionssidebar';export{default as RevisionViewerUI}from'./ui/revisionviewer/revisionviewerui';import'./augmentation';
23
+ export{default as RevisionHistory}from'./revisionhistory.js';export{default as RevisionsRepository}from'./revisionsrepository.js';export{default as RevisionViewerLoadingOverlay}from'./ui/revisionviewer/revisionviewerloadingoverlay.js';export{default as RevisionHistoryUI}from'./ui/revisionhistory/revisionhistoryui.js';export{default as RevisionTracker}from'./revisiontracker.js';export{default as RevisionViewer}from'./revisionviewer.js';export{default as RevisionsSidebar}from'./ui/revisionssidebar/revisionssidebar.js';export{default as RevisionViewerUI}from'./ui/revisionviewer/revisionviewerui.js';import'./augmentation.js';
package/src/revision.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import type { User } from 'ckeditor5-collaboration/src/collaboration-core';
5
+ import type { User } from 'ckeditor5-collaboration/src/collaboration-core.js';
6
6
  declare const Revision_base: {
7
- new (): import("ckeditor5/src/utils").Observable;
8
- prototype: import("ckeditor5/src/utils").Observable;
7
+ new (): import("ckeditor5/src/utils.js").Observable;
8
+ prototype: import("ckeditor5/src/utils.js").Observable;
9
9
  };
10
10
  /**
11
11
  * Represents a revision.
package/src/revision.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2b5b=['diffData','creatorId','fire','_update','removeAttribute','authors','attributes','toVersion','creator','createdAt','toJSON','setAttribute','set','fromVersion','name'];(function(_0xfce36f,_0x2b5b81){const _0x157577=function(_0x409324){while(--_0x409324){_0xfce36f['push'](_0xfce36f['shift']());}};_0x157577(++_0x2b5b81);}(_0x2b5b,0xa6));const _0x1575=function(_0xfce36f,_0x2b5b81){_0xfce36f=_0xfce36f-0x0;let _0x157577=_0x2b5b[_0xfce36f];return _0x157577;};import{ObservableMixin as _0x2a3fdf,uid as _0x56c07c}from'ckeditor5/src/utils';import{cloneDeep as _0x68d77,set as _0x1f172e,unset as _0x34aa97}from'lodash-es';export default class a extends _0x2a3fdf(){constructor(_0x36843f){super(),this['id']=_0x36843f['id']||_0x56c07c(),this[_0x1575('0x7')]=_0x36843f[_0x1575('0x7')]||null,this[_0x1575('0x4')]=_0x36843f[_0x1575('0x4')]||[],this['diffData']=_0x36843f['diffData']||null,this['toVersion']=_0x36843f['toVersion']||0x0,this[_0x1575('0xc')]=_0x36843f[_0x1575('0xc')]||0x0,this[_0x1575('0xb')](_0x1575('0xd'),_0x36843f[_0x1575('0xd')]||''),this[_0x1575('0xb')](_0x1575('0x8'),_0x36843f['createdAt']||new Date()),this[_0x1575('0xb')]('attributes',_0x36843f[_0x1575('0x5')]||{});}['setName'](_0x451de8){this['_update']({'name':_0x451de8});}[_0x1575('0xa')](_0x1f3560,_0x4afe15){const _0x19f5af=_0x68d77(this['attributes']);_0x1f172e(_0x19f5af,_0x1f3560,_0x4afe15),this[_0x1575('0x2')]({'attributes':_0x19f5af});}[_0x1575('0x3')](_0x581927){const _0x304f54=_0x68d77(this[_0x1575('0x5')]);_0x34aa97(_0x304f54,_0x581927),this[_0x1575('0x2')]({'attributes':_0x304f54});}['_update'](_0x3bf8d0,_0x2efb6f=!0x1){let _0x50043f=!0x1;const _0x33c628={'id':this['id']},_0x574b68=[_0x1575('0xd'),'createdAt',_0x1575('0xe'),_0x1575('0x4'),_0x1575('0x5'),'toVersion',_0x1575('0xc'),_0x1575('0x0')];for(const _0x5bbf71 of _0x574b68){const _0x510be8=_0x3bf8d0[_0x5bbf71];void 0x0!==_0x510be8&&_0x510be8!==this[_0x5bbf71]&&(this[_0x5bbf71]=_0x510be8,_0x33c628[_0x5bbf71]=_0x510be8,_0x50043f=!0x0);}_0x50043f&&(_0x33c628[_0x1575('0x4')]&&(_0x33c628['authorsIds']=_0x33c628[_0x1575('0x4')]['map'](_0x19ca2a=>_0x19ca2a['id']),delete _0x33c628[_0x1575('0x4')]),this[_0x1575('0x1')](_0x1575('0x2'),_0x33c628,_0x2efb6f));}[_0x1575('0x9')](){return{'id':this['id'],'name':this[_0x1575('0xd')],'creatorId':this[_0x1575('0x7')]?this[_0x1575('0x7')]['id']:null,'authorsIds':this[_0x1575('0x4')]['map'](_0x4e22da=>_0x4e22da['id']),'diffData':this[_0x1575('0xe')],'createdAt':this['createdAt'],'attributes':this[_0x1575('0x5')],'fromVersion':this['fromVersion'],'toVersion':this[_0x1575('0x6')]};}}
23
+ const _0x42fb=['_update','toJSON','fromVersion','toVersion','set','name','removeAttribute','map','attributes','createdAt','diffData','creator','authors'];(function(_0x2db5d5,_0x42fb3c){const _0x1685e2=function(_0x1e0c03){while(--_0x1e0c03){_0x2db5d5['push'](_0x2db5d5['shift']());}};_0x1685e2(++_0x42fb3c);}(_0x42fb,0x124));const _0x1685=function(_0x2db5d5,_0x42fb3c){_0x2db5d5=_0x2db5d5-0x0;let _0x1685e2=_0x42fb[_0x2db5d5];return _0x1685e2;};import{ObservableMixin as _0x273771,uid as _0x3331a4}from'ckeditor5/src/utils.js';import{cloneDeep as _0xc8dfdb,set as _0x58d3eb,unset as _0x34a349}from'lodash-es';export default class a extends _0x273771(){constructor(_0x4d14dd){super(),this['id']=_0x4d14dd['id']||_0x3331a4(),this[_0x1685('0x5')]=_0x4d14dd[_0x1685('0x5')]||null,this[_0x1685('0x6')]=_0x4d14dd[_0x1685('0x6')]||[],this[_0x1685('0x4')]=_0x4d14dd[_0x1685('0x4')]||null,this['toVersion']=_0x4d14dd[_0x1685('0xa')]||0x0,this[_0x1685('0x9')]=_0x4d14dd[_0x1685('0x9')]||0x0,this[_0x1685('0xb')](_0x1685('0xc'),_0x4d14dd[_0x1685('0xc')]||''),this[_0x1685('0xb')](_0x1685('0x3'),_0x4d14dd[_0x1685('0x3')]||new Date()),this[_0x1685('0xb')](_0x1685('0x2'),_0x4d14dd[_0x1685('0x2')]||{});}['setName'](_0x247197){this['_update']({'name':_0x247197});}['setAttribute'](_0x118f1a,_0x5aea29){const _0x3e47a9=_0xc8dfdb(this[_0x1685('0x2')]);_0x58d3eb(_0x3e47a9,_0x118f1a,_0x5aea29),this['_update']({'attributes':_0x3e47a9});}[_0x1685('0x0')](_0x5845bc){const _0x3244ae=_0xc8dfdb(this[_0x1685('0x2')]);_0x34a349(_0x3244ae,_0x5845bc),this[_0x1685('0x7')]({'attributes':_0x3244ae});}[_0x1685('0x7')](_0x2db02a,_0x1659e0=!0x1){let _0x1d4e62=!0x1;const _0x1f6317={'id':this['id']},_0x233469=[_0x1685('0xc'),_0x1685('0x3'),_0x1685('0x4'),_0x1685('0x6'),'attributes',_0x1685('0xa'),_0x1685('0x9'),'creatorId'];for(const _0x1e6acb of _0x233469){const _0x4f65a9=_0x2db02a[_0x1e6acb];void 0x0!==_0x4f65a9&&_0x4f65a9!==this[_0x1e6acb]&&(this[_0x1e6acb]=_0x4f65a9,_0x1f6317[_0x1e6acb]=_0x4f65a9,_0x1d4e62=!0x0);}_0x1d4e62&&(_0x1f6317[_0x1685('0x6')]&&(_0x1f6317['authorsIds']=_0x1f6317[_0x1685('0x6')][_0x1685('0x1')](_0x15b2a8=>_0x15b2a8['id']),delete _0x1f6317['authors']),this['fire'](_0x1685('0x7'),_0x1f6317,_0x1659e0));}[_0x1685('0x8')](){return{'id':this['id'],'name':this[_0x1685('0xc')],'creatorId':this[_0x1685('0x5')]?this[_0x1685('0x5')]['id']:null,'authorsIds':this['authors'][_0x1685('0x1')](_0x1f0e35=>_0x1f0e35['id']),'diffData':this['diffData'],'createdAt':this[_0x1685('0x3')],'attributes':this[_0x1685('0x2')],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module revision-history/revisiondiff
7
7
  */
8
- import { Collection } from 'ckeditor5/src/utils';
9
- import type { DocumentFragment } from 'ckeditor5/src/engine';
10
- import type ChangeItem from './changeitem';
8
+ import { Collection } from 'ckeditor5/src/utils.js';
9
+ import type { DocumentFragment } from 'ckeditor5/src/engine.js';
10
+ import type ChangeItem from './changeitem.js';
11
11
  /**
12
12
  * Represents a difference between two document revisions.
13
13
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb93c=['oldRevisionId','newRevisionId','add','changes'];(function(_0x44dd5d,_0xb93c31){const _0x59c144=function(_0x4a8761){while(--_0x4a8761){_0x44dd5d['push'](_0x44dd5d['shift']());}};_0x59c144(++_0xb93c31);}(_0xb93c,0x185));const _0x59c1=function(_0x44dd5d,_0xb93c31){_0x44dd5d=_0x44dd5d-0x0;let _0x59c144=_0xb93c[_0x44dd5d];return _0x59c144;};import{Collection as _0x58b5ee}from'ckeditor5/src/utils';export default class f{constructor(_0x11e8f8,_0x352efa){this[_0x59c1('0x0')]=_0x11e8f8,this[_0x59c1('0x3')]=_0x352efa,this[_0x59c1('0x2')]=new _0x58b5ee();}['_setChanges'](_0x241f8b){for(const _0x50a83b of _0x241f8b)this['changes'][_0x59c1('0x1')](_0x50a83b);}}
23
+ const _0x1601=['_setChanges','changes','add','oldRevisionId'];(function(_0x58c6e6,_0x1601bf){const _0x3fb24a=function(_0x25eefd){while(--_0x25eefd){_0x58c6e6['push'](_0x58c6e6['shift']());}};_0x3fb24a(++_0x1601bf);}(_0x1601,0x1d9));const _0x3fb2=function(_0x58c6e6,_0x1601bf){_0x58c6e6=_0x58c6e6-0x0;let _0x3fb24a=_0x1601[_0x58c6e6];return _0x3fb24a;};import{Collection as _0x46d281}from'ckeditor5/src/utils.js';export default class f{constructor(_0xdc6ae2,_0x1d7193){this['newRevisionId']=_0xdc6ae2,this[_0x3fb2('0x2')]=_0x1d7193,this[_0x3fb2('0x0')]=new _0x46d281();}[_0x3fb2('0x3')](_0x3d337a){for(const _0x20566a of _0x3d337a)this[_0x3fb2('0x0')][_0x3fb2('0x1')](_0x20566a);}}
@@ -1,17 +1,17 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module revision-history/revisionhistory
7
7
  * @publicApi
8
8
  */
9
- import { Plugin, type Editor } from 'ckeditor5/src/core';
10
- import type { Item, Position } from 'ckeditor5/src/engine';
11
- import RevisionTracker from './revisiontracker';
12
- import RevisionHistoryUI from './ui/revisionhistory/revisionhistoryui';
13
- import type { default as Revision, RevisionJSON } from './revision';
14
- import type { RevisionHistoryAdapter } from './revisionhistoryadapter';
9
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
10
+ import type { Item, Position } from 'ckeditor5/src/engine.js';
11
+ import RevisionTracker from './revisiontracker.js';
12
+ import RevisionHistoryUI from './ui/revisionhistory/revisionhistoryui.js';
13
+ import type { default as Revision, RevisionJSON } from './revision.js';
14
+ import type { RevisionHistoryAdapter } from './revisionhistoryadapter.js';
15
15
  /**
16
16
  * The revision history feature.
17
17
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3dc5=['editor','none','restoreRevision','removeSelectionAttribute','adapter','_restoreRevision','refreshVisibility','includes','revisionHistory.editorContainer','getRevisionRootsAttributes','isReadOnly','plugins','revisionHistory.viewerContainer','revisionHistory.restoreRevisionCallback','_getRevisionViewerEditorConfig','removeMarker','_update','update','RevisionTracker','Annotations','error','revision-history-viewer-opened','revisionHistory','set','bind','toolbar','getRevisions','change','PaginationLookup','isEnabled','enableReadOnlyMode','from','RevisionViewerIntegration','changesNavigation','requires','insert','_cleanUp','isReady','$graveyard','isAnonymous','init','_enhanceShowRevisionViewerCallback','create','has','_enhanceCloseRevisionViewerCallback','result','RevisionViewer','define','createdAt','data','_showRevisionViewer','_recalculatePageBreaks','toJSON','refreshPositioning','disableReadOnlyMode','RevisionHistory','isAttached','revisionHistory.showRevisionViewerCallback','setAttribute','toLocaleTimeString','get','showRevisionViewerCallback','removeAttribute','revisionHistory.viewerEditorElement','parse','toLocaleDateString','remove','pluginName','addRevisionData','repository','model','push','enqueueChange','uiLanguage','getUser','Restored','fromVersion','keys','addRoot','style','rootName','lazyRoots','revisionHistory.closeRevisionViewerCallback','setSelection','then','getRevisionData','Users','RevisionsRepository','_closeRevisionViewer','getAttributeKeys','indexOf','name','commands','getMarkersGroup','revision-history-missing-configuration','catch','users','closeRevisionViewerCallback','saveRevision','RestrictedEditingMode','display','numeric','toVersion','locale','config','document','createRangeIn','getRevision','_viewerEditor','Autosave'];(function(_0x7cc542,_0x3dc5d8){const _0x2b58c0=function(_0x25e749){while(--_0x25e749){_0x7cc542['push'](_0x7cc542['shift']());}};_0x2b58c0(++_0x3dc5d8);}(_0x3dc5,0x84));const _0x2b58=function(_0x7cc542,_0x3dc5d8){_0x7cc542=_0x7cc542-0x0;let _0x2b58c0=_0x3dc5[_0x7cc542];return _0x2b58c0;};import{Plugin as _0xb6c344}from'ckeditor5/src/core';import{CKEditorError as _0xfb4ad3,uid as _0x384564}from'ckeditor5/src/utils';import _0x37fb30 from'./revisiontracker';import _0x45b8fc from'./ui/revisionhistory/revisionhistoryui';import _0x13a8e0 from'./revisionviewer';import _0x513dfc from'./ui/revisionviewer/revisionviewerui';import _0x5542f3 from'./ui/revisionssidebar/revisionssidebar';import _0x9c37ae from'./editor/revisionviewereditor';import{getTranslation as _0x3cb8ba}from'./utils/common-translations';import{sanitizeEditorConfig as _0x5086dd}from'ckeditor5-collaboration/src/collaboration-core';const g=['RevisionHistoryUI',_0x2b58('0x4d')];class k extends _0xb6c344{static get[_0x2b58('0x2d')](){return _0x2b58('0xa');}constructor(_0x14cadd){super(_0x14cadd),this[_0x2b58('0x17')]='end';}}export default class b extends _0xb6c344{static get[_0x2b58('0x2d')](){return _0x2b58('0x21');}static get[_0x2b58('0xc')](){return[_0x37fb30,_0x45b8fc];}constructor(_0x26251e){if(super(_0x26251e),!this[_0x2b58('0x58')][_0x2b58('0x52')][_0x2b58('0x26')]('revisionHistory'))throw new _0xfb4ad3(_0x2b58('0x48'),this);this[_0x2b58('0x56')]=null,this[_0x2b58('0x58')][_0x2b58('0x52')]['define'](_0x2b58('0x23'),_0x5c4988=>this['_showRevisionViewer'](_0x5c4988)),this[_0x2b58('0x58')]['config'][_0x2b58('0x19')](_0x2b58('0x3c'),_0x1496a6=>this[_0x2b58('0x42')](_0x1496a6)),this[_0x2b58('0x58')][_0x2b58('0x52')][_0x2b58('0x19')](_0x2b58('0x65'),_0x423a98=>this['_restoreRevision'](_0x423a98)),this[_0x2b58('0x13')](),this[_0x2b58('0x16')]();}set[_0x2b58('0x5c')](_0x588b99){this[_0x2b58('0x58')][_0x2b58('0x63')][_0x2b58('0x26')](_0x2b58('0x6a'))[_0x2b58('0x5c')]=_0x588b99;}get['adapter'](){return this['editor']['plugins']['get'](_0x2b58('0x6a'))['adapter'];}['addRevisionData'](_0x42ed0e){return this[_0x2b58('0x58')][_0x2b58('0x63')][_0x2b58('0x26')](_0x2b58('0x6a'))[_0x2b58('0x2e')](_0x42ed0e);}[_0x2b58('0x55')](_0x1fd49b){return this['editor'][_0x2b58('0x63')][_0x2b58('0x26')](_0x2b58('0x41'))[_0x2b58('0x55')](_0x1fd49b);}['getRevisions'](_0x1f4534={'toJSON':!0x1}){return this[_0x2b58('0x58')][_0x2b58('0x63')]['get'](_0x2b58('0x41'))[_0x2b58('0x4')](_0x1f4534);}[_0x2b58('0x66')](){const _0x2be42f=this[_0x2b58('0x58')],_0x213b6f=_0x5086dd(_0x2be42f,g),_0x5ab766=_0x2be42f[_0x2b58('0x63')]['get'](_0x2b58('0x6a')),_0x4d30f4=_0x2be42f[_0x2b58('0x63')]['get'](_0x2b58('0x40'))[_0x2b58('0x4a')];return _0x213b6f[_0x2b58('0x3')]=['exitToEditing',_0x2b58('0x5a'),_0x2b58('0xb')],delete _0x213b6f[_0x2b58('0x3b')],(_0x213b6f[_0x2b58('0x63')][_0x2b58('0x31')](k,_0x13a8e0,_0x513dfc,class extends _0xb6c344{static get[_0x2b58('0xc')](){return[_0x13a8e0,_0x2b58('0x40')];}[_0x2b58('0x12')](){const _0x38ea37=this[_0x2b58('0x58')][_0x2b58('0x63')][_0x2b58('0x26')](_0x2b58('0x40'));for(const _0x6d009 of _0x4d30f4)_0x6d009[_0x2b58('0x11')]||_0x38ea37[_0x2b58('0x34')](_0x6d009['id'])||_0x38ea37['addUser'](_0x6d009);const _0x1a51be=_0x5ab766[_0x2b58('0x2f')][_0x2b58('0x4')]();let _0x1f1f30=null;const _0x563224=this[_0x2b58('0x58')][_0x2b58('0x63')][_0x2b58('0x26')](_0x2b58('0x18'));_0x563224[_0x2b58('0x5c')]=_0x5ab766[_0x2b58('0x5c')],_0x563224['bind'](_0x2b58('0x7'))['to'](_0x5ab766),this[_0x2b58('0x58')][_0x2b58('0x46')][_0x2b58('0x26')](_0x2b58('0x5a'))[_0x2b58('0x2')]('isEnabled')['to'](_0x2be42f,_0x2b58('0x62'),_0x5cfbf2=>!_0x5cfbf2);for(const _0x341505 of _0x1a51be){const _0x4bf8cf=null===_0x341505['creator'];if(_0x4bf8cf&&_0x341505[_0x2b58('0x50')]===_0x341505[_0x2b58('0x36')])continue;const _0x47b7c2=_0x341505[_0x2b58('0x1e')]();_0x563224[_0x2b58('0x2e')](_0x47b7c2,(_0x4ea6c9,_0x32f114,_0x27fa47)=>{if(_0x4bf8cf){if(_0x1f1f30)_0x1f1f30[_0x2b58('0x68')](_0x4ea6c9,_0x32f114);else{if(!_0x32f114){const _0x536af7=_0x27fa47[_0x2b58('0x1e')]();_0x536af7['id']=_0x384564(),_0x5ab766[_0x2b58('0x4c')](_0x536af7,_0x27fa47[_0x2b58('0x50')])[_0x2b58('0x3e')](_0x3b8df0=>{_0x1f1f30=_0x3b8df0;});}}}else _0x341505['_update'](_0x4ea6c9,_0x32f114);});}}},_0x5542f3),_0x213b6f);}[_0x2b58('0x13')](){const _0x32212c=this['editor'][_0x2b58('0x52')][_0x2b58('0x26')](_0x2b58('0x0'))[_0x2b58('0x27')];this['editor'][_0x2b58('0x52')]['set'](_0x2b58('0x23'),async()=>{this['editor'][_0x2b58('0x8')]('revision-history-viewer-opened');const _0xb51552=this[_0x2b58('0x58')]['plugins'][_0x2b58('0x26')](_0x2b58('0x6a'));if(this[_0x2b58('0x58')][_0x2b58('0x63')][_0x2b58('0x15')](_0x2b58('0x57'))){const _0x4e4107=this['editor']['plugins'][_0x2b58('0x26')](_0x2b58('0x57'));await _0x4e4107['save']();}else await _0xb51552[_0x2b58('0x69')]();this[_0x2b58('0x58')][_0x2b58('0x63')][_0x2b58('0x15')](_0x2b58('0x6'))&&this[_0x2b58('0x58')][_0x2b58('0x63')][_0x2b58('0x26')](_0x2b58('0x6'))[_0x2b58('0x1d')]();const _0x3eb5c9=this[_0x2b58('0x66')]();return _0x32212c(_0x3eb5c9)[_0x2b58('0x3e')](_0x24105b=>{return(this['_viewerEditor']=_0x24105b,this[_0x2b58('0x58')]['plugins']['has'](_0x2b58('0x6b')))&&this[_0x2b58('0x58')][_0x2b58('0x63')][_0x2b58('0x26')]('Annotations')['refreshVisibility'](),_0x24105b;})[_0x2b58('0x49')](_0x4c7305=>(console[_0x2b58('0x6c')](_0x4c7305),this['editor'][_0x2b58('0x20')](_0x2b58('0x6d')),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x1a8950=this[_0x2b58('0x58')][_0x2b58('0x52')][_0x2b58('0x26')](_0x2b58('0x0'))[_0x2b58('0x4b')];this[_0x2b58('0x58')]['config'][_0x2b58('0x1')](_0x2b58('0x3c'),()=>(this[_0x2b58('0x58')][_0x2b58('0x63')][_0x2b58('0x15')](_0x2b58('0x6'))&&this[_0x2b58('0x58')][_0x2b58('0x63')]['get'](_0x2b58('0x6'))[_0x2b58('0x1d')](),this[_0x2b58('0x56')]['plugins']['get'](_0x2b58('0x18'))[_0x2b58('0xe')](),_0x1a8950(this['_viewerEditor'])[_0x2b58('0x3e')](()=>{if(this[_0x2b58('0x58')][_0x2b58('0x20')](_0x2b58('0x6d')),this[_0x2b58('0x56')]=null,this[_0x2b58('0x58')][_0x2b58('0x63')]['has'](_0x2b58('0x6b'))){const _0x41c577=this[_0x2b58('0x58')][_0x2b58('0x63')][_0x2b58('0x26')](_0x2b58('0x6b'));_0x41c577[_0x2b58('0x5e')](),_0x41c577[_0x2b58('0x1f')]();}})));}[_0x2b58('0x1c')](_0x2ac255){const _0xd72b8d=this[_0x2b58('0x58')][_0x2b58('0x52')][_0x2b58('0x26')](_0x2b58('0x60')),_0x30317c=this[_0x2b58('0x58')][_0x2b58('0x52')]['get']('revisionHistory.viewerContainer'),_0x5beea6=this[_0x2b58('0x58')][_0x2b58('0x52')]['get'](_0x2b58('0x29'));return _0x9c37ae[_0x2b58('0x14')](_0x5beea6,_0x2ac255)[_0x2b58('0x3e')](_0x5ca4de=>(_0x30317c[_0x2b58('0x39')][_0x2b58('0x4e')]='block',_0xd72b8d[_0x2b58('0x39')]['display']=_0x2b58('0x59'),_0x5ca4de));}[_0x2b58('0x42')](_0x3802ad){const _0x35f1c3=this[_0x2b58('0x58')]['config'][_0x2b58('0x26')]('revisionHistory.editorContainer');return this[_0x2b58('0x58')]['config'][_0x2b58('0x26')](_0x2b58('0x64'))['style'][_0x2b58('0x4e')]=_0x2b58('0x59'),_0x35f1c3[_0x2b58('0x39')][_0x2b58('0x4e')]='',_0x3802ad['destroy']();}async[_0x2b58('0x5d')](_0x1f7acf){const _0x263430=this[_0x2b58('0x58')],_0x9118d4=this[_0x2b58('0x56')][_0x2b58('0x63')][_0x2b58('0x26')](_0x2b58('0x18')),_0x423d59=_0x263430[_0x2b58('0x63')][_0x2b58('0x26')](_0x2b58('0x6a')),_0x50c8b2=_0x9118d4['repository']['getRevision'](_0x1f7acf);let _0x7ac4b8,_0x4e44cb,_0x3acc15;try{_0x7ac4b8=await _0x9118d4[_0x2b58('0x3f')](_0x50c8b2),_0x4e44cb=await _0x9118d4[_0x2b58('0x61')](_0x50c8b2);}catch(_0x5b76d3){return void console[_0x2b58('0x6c')](_0x5b76d3);}_0x263430['model'][_0x2b58('0x5')](_0x539b32=>{for(const _0x44c968 of Array[_0x2b58('0x9')](_0x263430['model']['markers'][_0x2b58('0x47')]('restrictedEditingException')))_0x539b32[_0x2b58('0x67')](_0x44c968);}),_0x9118d4[_0x2b58('0xf')]=!0x1,_0x263430['model'][_0x2b58('0x32')](_0x4c206f=>{_0x4c206f[_0x2b58('0x3d')](null),_0x4c206f[_0x2b58('0x5b')](_0x263430[_0x2b58('0x30')][_0x2b58('0x53')]['selection']['getAttributeKeys']());const _0x198dc4=Object[_0x2b58('0x37')](_0x7ac4b8);for(const _0x4dd45e of _0x263430[_0x2b58('0x30')][_0x2b58('0x53')]['roots'])_0x2b58('0x10')!=_0x4dd45e['rootName']&&_0x4dd45e[_0x2b58('0x22')]()&&!_0x198dc4[_0x2b58('0x5f')](_0x4dd45e[_0x2b58('0x3a')])&&_0x4c206f['detachRoot'](_0x4dd45e);for(const _0x528704 of _0x198dc4){let _0x3b02fd=_0x263430['model']['document']['getRoot'](_0x528704);_0x3b02fd&&_0x3b02fd['isAttached']()||(_0x3b02fd=_0x4c206f[_0x2b58('0x38')](_0x528704));const _0xb010fb=_0x4e44cb[_0x528704],_0x3d0738=Object[_0x2b58('0x37')](_0xb010fb),_0x3de211=_0x7ac4b8[_0x528704];for(const _0x53f150 of _0x3b02fd[_0x2b58('0x43')]())_0x3d0738[_0x2b58('0x5f')](_0x53f150)||_0x4c206f[_0x2b58('0x28')](_0x53f150,_0x3b02fd);for(const _0x1fddd5 of _0x3d0738)_0x4c206f[_0x2b58('0x24')](_0x1fddd5,_0x4e44cb[_0x528704][_0x1fddd5],_0x3b02fd);_0x4c206f[_0x2b58('0x2c')](_0x4c206f[_0x2b58('0x54')](_0x3b02fd)),_0x4c206f[_0x2b58('0xd')](_0x263430[_0x2b58('0x1b')][_0x2b58('0x2a')](_0x3de211,_0x3b02fd),_0x3b02fd,0x0);}});const _0x4cce94=_0x3cb8ba(_0x263430['locale'],_0x2b58('0x35'));if(_0x50c8b2[_0x2b58('0x45')])_0x3acc15=-0x1==_0x50c8b2[_0x2b58('0x45')][_0x2b58('0x44')](_0x4cce94)?_0x4cce94+':\x20'+_0x50c8b2[_0x2b58('0x45')]:_0x50c8b2[_0x2b58('0x45')];else _0x3acc15=_0x4cce94+':\x20'+(_0x50c8b2[_0x2b58('0x1a')][_0x2b58('0x2b')](_0x263430[_0x2b58('0x51')][_0x2b58('0x33')],{'month':'long','day':_0x2b58('0x4f')})+',\x20'+_0x50c8b2[_0x2b58('0x1a')][_0x2b58('0x25')](_0x263430['locale'][_0x2b58('0x33')],{'hour':_0x2b58('0x4f'),'minute':_0x2b58('0x4f')}));return await _0x423d59[_0x2b58('0x4c')]({'name':_0x3acc15}),_0x9118d4['isReady']=!0x0,_0x263430['config'][_0x2b58('0x26')](_0x2b58('0x0'))['closeRevisionViewerCallback']();}}
23
+ const _0x2990=['isAttached','getRevision','_restoreRevision','has','addRevisionData','roots','isAnonymous','getRevisionData','RevisionViewerIntegration','none','revisionHistory','config','restrictedEditingException','plugins','exitToEditing','changesNavigation','createdAt','_enhanceCloseRevisionViewerCallback','update','_cleanUp','users','get','error','end','RevisionsRepository','result','revision-history-viewer-opened','repository','getUser','_closeRevisionViewer','then','_enhanceShowRevisionViewerCallback','removeSelectionAttribute','setSelection','revision-history-missing-configuration','toolbar','insert','set','Restored','pluginName','Autosave','define','editor','bind','refreshVisibility','RevisionTracker','rootName','RevisionHistory','block','isReadOnly','_getRevisionViewerEditorConfig','detachRoot','revisionHistory.showRevisionViewerCallback','long','_update','showRevisionViewerCallback','Annotations','disableReadOnlyMode','setAttribute','remove','style','toJSON','RevisionViewer','name','uiLanguage','parse','revisionHistory.viewerEditorElement','getAttributeKeys','model','_recalculatePageBreaks','push','numeric','toLocaleDateString','removeAttribute','keys','PaginationLookup','toVersion','revisionHistory.closeRevisionViewerCallback','requires','save','getRevisions','document','display','restoreRevision','closeRevisionViewerCallback','includes','addUser','_viewerEditor','selection','saveRevision','revisionHistory.viewerContainer','RestrictedEditingMode','locale','toLocaleTimeString','Users','adapter','destroy','_showRevisionViewer','enqueueChange','creator','catch','refreshPositioning','isEnabled','from','indexOf'];(function(_0x9164f8,_0x29905d){const _0x37b9d4=function(_0x184f14){while(--_0x184f14){_0x9164f8['push'](_0x9164f8['shift']());}};_0x37b9d4(++_0x29905d);}(_0x2990,0x8a));const _0x37b9=function(_0x9164f8,_0x29905d){_0x9164f8=_0x9164f8-0x0;let _0x37b9d4=_0x2990[_0x9164f8];return _0x37b9d4;};import{Plugin as _0x704bb1}from'ckeditor5/src/core.js';import{CKEditorError as _0x450689,uid as _0x3c363f}from'ckeditor5/src/utils.js';import _0x3be661 from'./revisiontracker.js';import _0x355f52 from'./ui/revisionhistory/revisionhistoryui.js';import _0x464672 from'./revisionviewer.js';import _0x4e8bd7 from'./ui/revisionviewer/revisionviewerui.js';import _0x59885b from'./ui/revisionssidebar/revisionssidebar.js';import _0x5907e7 from'./editor/revisionviewereditor.js';import{getTranslation as _0x9f4f5b}from'./utils/common-translations.js';import{sanitizeEditorConfig as _0x35eb3b}from'ckeditor5-collaboration/src/collaboration-core.js';const g=['RevisionHistoryUI',_0x37b9('0x3a')];class k extends _0x704bb1{static get[_0x37b9('0x6')](){return _0x37b9('0x50');}constructor(_0x2f6db8){super(_0x2f6db8),this[_0x37b9('0x61')]=_0x37b9('0x5f');}}export default class b extends _0x704bb1{static get[_0x37b9('0x6')](){return _0x37b9('0xe');}static get[_0x37b9('0x2d')](){return[_0x3be661,_0x355f52];}constructor(_0x455330){if(super(_0x455330),!this[_0x37b9('0x9')][_0x37b9('0x53')][_0x37b9('0x5d')](_0x37b9('0x52')))throw new _0x450689(_0x37b9('0x1'),this);this['_viewerEditor']=null,this['editor'][_0x37b9('0x53')][_0x37b9('0x8')](_0x37b9('0x13'),_0x28d4=>this[_0x37b9('0x40')](_0x28d4)),this['editor'][_0x37b9('0x53')]['define'](_0x37b9('0x2c'),_0x4eef34=>this[_0x37b9('0x65')](_0x4eef34)),this['editor'][_0x37b9('0x53')][_0x37b9('0x8')]('revisionHistory.restoreRevisionCallback',_0x1d3041=>this[_0x37b9('0x4a')](_0x1d3041)),this[_0x37b9('0x67')](),this[_0x37b9('0x59')]();}set[_0x37b9('0x3e')](_0x496465){this[_0x37b9('0x9')]['plugins']['get'](_0x37b9('0xc'))[_0x37b9('0x3e')]=_0x496465;}get[_0x37b9('0x3e')](){return this[_0x37b9('0x9')][_0x37b9('0x55')][_0x37b9('0x5d')](_0x37b9('0xc'))['adapter'];}[_0x37b9('0x4c')](_0x2c653f){return this['editor']['plugins'][_0x37b9('0x5d')](_0x37b9('0xc'))[_0x37b9('0x4c')](_0x2c653f);}[_0x37b9('0x49')](_0x3ff593){return this[_0x37b9('0x9')][_0x37b9('0x55')][_0x37b9('0x5d')](_0x37b9('0x60'))['getRevision'](_0x3ff593);}['getRevisions'](_0x388ae6={'toJSON':!0x1}){return this[_0x37b9('0x9')][_0x37b9('0x55')]['get'](_0x37b9('0x60'))[_0x37b9('0x2f')](_0x388ae6);}[_0x37b9('0x11')](){const _0x527d5e=this['editor'],_0x76e118=_0x35eb3b(_0x527d5e,g),_0x25813d=_0x527d5e[_0x37b9('0x55')][_0x37b9('0x5d')](_0x37b9('0xc')),_0x4808fc=_0x527d5e['plugins'][_0x37b9('0x5d')](_0x37b9('0x3d'))[_0x37b9('0x5c')];return _0x76e118[_0x37b9('0x2')]=[_0x37b9('0x56'),_0x37b9('0x32'),_0x37b9('0x57')],delete _0x76e118['lazyRoots'],(_0x76e118['plugins'][_0x37b9('0x25')](k,_0x464672,_0x4e8bd7,class extends _0x704bb1{static get[_0x37b9('0x2d')](){return[_0x464672,_0x37b9('0x3d')];}['init'](){const _0xb546c9=this[_0x37b9('0x9')][_0x37b9('0x55')][_0x37b9('0x5d')](_0x37b9('0x3d'));for(const _0x3a46e0 of _0x4808fc)_0x3a46e0[_0x37b9('0x4e')]||_0xb546c9[_0x37b9('0x64')](_0x3a46e0['id'])||_0xb546c9[_0x37b9('0x35')](_0x3a46e0);const _0x1a179a=_0x25813d[_0x37b9('0x63')]['getRevisions']();let _0x24c5c8=null;const _0x968d0a=this[_0x37b9('0x9')]['plugins'][_0x37b9('0x5d')](_0x37b9('0x1d'));_0x968d0a[_0x37b9('0x3e')]=_0x25813d['adapter'],_0x968d0a[_0x37b9('0xa')](_0x37b9('0x45'))['to'](_0x25813d),this[_0x37b9('0x9')]['commands'][_0x37b9('0x5d')]('restoreRevision')[_0x37b9('0xa')](_0x37b9('0x45'))['to'](_0x527d5e,_0x37b9('0x10'),_0x1716ee=>!_0x1716ee);for(const _0x2e840c of _0x1a179a){const _0x42fc30=null===_0x2e840c[_0x37b9('0x42')];if(_0x42fc30&&_0x2e840c[_0x37b9('0x2b')]===_0x2e840c['fromVersion'])continue;const _0x31df21=_0x2e840c[_0x37b9('0x1c')]();_0x968d0a[_0x37b9('0x4c')](_0x31df21,(_0xbffdcf,_0xae1b77,_0x50ca0c)=>{if(_0x42fc30){if(_0x24c5c8)_0x24c5c8[_0x37b9('0x15')](_0xbffdcf,_0xae1b77);else{if(!_0xae1b77){const _0x534c0f=_0x50ca0c[_0x37b9('0x1c')]();_0x534c0f['id']=_0x3c363f(),_0x25813d[_0x37b9('0x38')](_0x534c0f,_0x50ca0c[_0x37b9('0x2b')])['then'](_0x538f40=>{_0x24c5c8=_0x538f40;});}}}else _0x2e840c[_0x37b9('0x15')](_0xbffdcf,_0xae1b77);});}}},_0x59885b),_0x76e118);}[_0x37b9('0x67')](){const _0x445a00=this[_0x37b9('0x9')]['config'][_0x37b9('0x5d')](_0x37b9('0x52'))[_0x37b9('0x16')];this[_0x37b9('0x9')][_0x37b9('0x53')][_0x37b9('0x4')](_0x37b9('0x13'),async()=>{this[_0x37b9('0x9')]['enableReadOnlyMode'](_0x37b9('0x62'));const _0x2d1913=this[_0x37b9('0x9')][_0x37b9('0x55')][_0x37b9('0x5d')](_0x37b9('0xc'));if(this[_0x37b9('0x9')][_0x37b9('0x55')][_0x37b9('0x4b')](_0x37b9('0x7'))){const _0xb18600=this['editor']['plugins'][_0x37b9('0x5d')](_0x37b9('0x7'));await _0xb18600[_0x37b9('0x2e')]();}else await _0x2d1913[_0x37b9('0x5a')]();this[_0x37b9('0x9')][_0x37b9('0x55')][_0x37b9('0x4b')](_0x37b9('0x2a'))&&this[_0x37b9('0x9')][_0x37b9('0x55')][_0x37b9('0x5d')](_0x37b9('0x2a'))[_0x37b9('0x24')]();const _0x29e750=this['_getRevisionViewerEditorConfig']();return _0x445a00(_0x29e750)[_0x37b9('0x66')](_0x39f956=>{return(this[_0x37b9('0x36')]=_0x39f956,this[_0x37b9('0x9')]['plugins'][_0x37b9('0x4b')](_0x37b9('0x17')))&&this[_0x37b9('0x9')][_0x37b9('0x55')][_0x37b9('0x5d')](_0x37b9('0x17'))['refreshVisibility'](),_0x39f956;})[_0x37b9('0x43')](_0x559889=>(console[_0x37b9('0x5e')](_0x559889),this[_0x37b9('0x9')][_0x37b9('0x18')](_0x37b9('0x62')),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x1170d4=this['editor']['config']['get'](_0x37b9('0x52'))[_0x37b9('0x33')];this['editor'][_0x37b9('0x53')][_0x37b9('0x4')](_0x37b9('0x2c'),()=>(this[_0x37b9('0x9')][_0x37b9('0x55')]['has']('PaginationLookup')&&this[_0x37b9('0x9')][_0x37b9('0x55')][_0x37b9('0x5d')](_0x37b9('0x2a'))[_0x37b9('0x24')](),this[_0x37b9('0x36')][_0x37b9('0x55')]['get'](_0x37b9('0x1d'))[_0x37b9('0x5b')](),_0x1170d4(this[_0x37b9('0x36')])[_0x37b9('0x66')](()=>{if(this[_0x37b9('0x9')][_0x37b9('0x18')](_0x37b9('0x62')),this[_0x37b9('0x36')]=null,this[_0x37b9('0x9')][_0x37b9('0x55')][_0x37b9('0x4b')](_0x37b9('0x17'))){const _0x1abb69=this[_0x37b9('0x9')][_0x37b9('0x55')][_0x37b9('0x5d')](_0x37b9('0x17'));_0x1abb69[_0x37b9('0xb')](),_0x1abb69[_0x37b9('0x44')]();}})));}[_0x37b9('0x40')](_0x431ab6){const _0x2bb820=this['editor'][_0x37b9('0x53')][_0x37b9('0x5d')]('revisionHistory.editorContainer'),_0x542e0d=this['editor']['config'][_0x37b9('0x5d')](_0x37b9('0x39')),_0x59ce29=this['editor'][_0x37b9('0x53')][_0x37b9('0x5d')](_0x37b9('0x21'));return _0x5907e7['create'](_0x59ce29,_0x431ab6)[_0x37b9('0x66')](_0x3ed294=>(_0x542e0d[_0x37b9('0x1b')][_0x37b9('0x31')]=_0x37b9('0xf'),_0x2bb820[_0x37b9('0x1b')][_0x37b9('0x31')]=_0x37b9('0x51'),_0x3ed294));}[_0x37b9('0x65')](_0x53ae02){const _0x5c2a3a=this[_0x37b9('0x9')][_0x37b9('0x53')]['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']=_0x37b9('0x51'),_0x5c2a3a[_0x37b9('0x1b')]['display']='',_0x53ae02[_0x37b9('0x3f')]();}async[_0x37b9('0x4a')](_0x203c50){const _0x46f236=this[_0x37b9('0x9')],_0x58a854=this['_viewerEditor'][_0x37b9('0x55')]['get'](_0x37b9('0x1d')),_0x17a267=_0x46f236[_0x37b9('0x55')][_0x37b9('0x5d')](_0x37b9('0xc')),_0x4886d5=_0x58a854[_0x37b9('0x63')][_0x37b9('0x49')](_0x203c50);let _0x4d5a96,_0x21c71b,_0x20dcd1;try{_0x4d5a96=await _0x58a854[_0x37b9('0x4f')](_0x4886d5),_0x21c71b=await _0x58a854['getRevisionRootsAttributes'](_0x4886d5);}catch(_0x570c1c){return void console[_0x37b9('0x5e')](_0x570c1c);}_0x46f236[_0x37b9('0x23')]['change'](_0x514775=>{for(const _0xf94df2 of Array[_0x37b9('0x46')](_0x46f236[_0x37b9('0x23')]['markers']['getMarkersGroup'](_0x37b9('0x54'))))_0x514775['removeMarker'](_0xf94df2);}),_0x58a854['isReady']=!0x1,_0x46f236[_0x37b9('0x23')][_0x37b9('0x41')](_0x9cbcb=>{_0x9cbcb[_0x37b9('0x0')](null),_0x9cbcb[_0x37b9('0x68')](_0x46f236[_0x37b9('0x23')][_0x37b9('0x30')][_0x37b9('0x37')][_0x37b9('0x22')]());const _0x520f8c=Object[_0x37b9('0x29')](_0x4d5a96);for(const _0x21bd13 of _0x46f236[_0x37b9('0x23')][_0x37b9('0x30')][_0x37b9('0x4d')])'$graveyard'!=_0x21bd13[_0x37b9('0xd')]&&_0x21bd13[_0x37b9('0x48')]()&&!_0x520f8c['includes'](_0x21bd13['rootName'])&&_0x9cbcb[_0x37b9('0x12')](_0x21bd13);for(const _0x50ac45 of _0x520f8c){let _0x58420f=_0x46f236[_0x37b9('0x23')][_0x37b9('0x30')]['getRoot'](_0x50ac45);_0x58420f&&_0x58420f[_0x37b9('0x48')]()||(_0x58420f=_0x9cbcb['addRoot'](_0x50ac45));const _0x23b88d=_0x21c71b[_0x50ac45],_0x15163b=Object[_0x37b9('0x29')](_0x23b88d),_0x1227c6=_0x4d5a96[_0x50ac45];for(const _0xfab9aa of _0x58420f[_0x37b9('0x22')]())_0x15163b[_0x37b9('0x34')](_0xfab9aa)||_0x9cbcb[_0x37b9('0x28')](_0xfab9aa,_0x58420f);for(const _0x52dab of _0x15163b)_0x9cbcb[_0x37b9('0x19')](_0x52dab,_0x21c71b[_0x50ac45][_0x52dab],_0x58420f);_0x9cbcb[_0x37b9('0x1a')](_0x9cbcb['createRangeIn'](_0x58420f)),_0x9cbcb[_0x37b9('0x3')](_0x46f236['data'][_0x37b9('0x20')](_0x1227c6,_0x58420f),_0x58420f,0x0);}});const _0x210957=_0x9f4f5b(_0x46f236[_0x37b9('0x3b')],_0x37b9('0x5'));if(_0x4886d5[_0x37b9('0x1e')])_0x20dcd1=-0x1==_0x4886d5['name'][_0x37b9('0x47')](_0x210957)?_0x210957+':\x20'+_0x4886d5[_0x37b9('0x1e')]:_0x4886d5[_0x37b9('0x1e')];else _0x20dcd1=_0x210957+':\x20'+(_0x4886d5[_0x37b9('0x58')][_0x37b9('0x27')](_0x46f236[_0x37b9('0x3b')][_0x37b9('0x1f')],{'month':_0x37b9('0x14'),'day':_0x37b9('0x26')})+',\x20'+_0x4886d5['createdAt'][_0x37b9('0x3c')](_0x46f236[_0x37b9('0x3b')][_0x37b9('0x1f')],{'hour':'numeric','minute':_0x37b9('0x26')}));return await _0x17a267['saveRevision']({'name':_0x20dcd1}),_0x58a854['isReady']=!0x0,_0x46f236[_0x37b9('0x53')]['get'](_0x37b9('0x52'))[_0x37b9('0x33')]();}}
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module revision-history/revisionhistoryadapter
7
7
  * @publicApi
8
8
  */
9
- import type { RevisionData } from './revision';
9
+ import type { RevisionData } from './revision.js';
10
10
  /**
11
11
  * The revision history adapter.
12
12
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -1,14 +1,14 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module revision-history/revisionsrepository
7
7
  * @publicApi
8
8
  */
9
- import { Users } from 'ckeditor5-collaboration/src/collaboration-core';
10
- import { Plugin, type Editor } from 'ckeditor5/src/core';
11
- import { default as Revision, type RevisionData, type RevisionJSON } from './revision';
9
+ import { Users } from 'ckeditor5-collaboration/src/collaboration-core.js';
10
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
11
+ import { default as Revision, type RevisionData, type RevisionJSON } from './revision.js';
12
12
  /**
13
13
  * Manages revisions list.
14
14
  */