@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20240423.0 → 0.0.0-nightly-20240425.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 (241) hide show
  1. package/build/revision-history.js +1 -1
  2. package/dist/index-content.css +46 -0
  3. package/dist/index-editor.css +434 -0
  4. package/dist/index.css +754 -0
  5. package/dist/index.js +23 -0
  6. package/dist/translations/af.d.ts +8 -0
  7. package/dist/translations/af.js +23 -0
  8. package/dist/translations/af.umd.js +23 -0
  9. package/dist/translations/ar.d.ts +8 -0
  10. package/dist/translations/ar.js +23 -0
  11. package/dist/translations/ar.umd.js +23 -0
  12. package/dist/translations/az.d.ts +8 -0
  13. package/dist/translations/az.js +23 -0
  14. package/dist/translations/az.umd.js +23 -0
  15. package/dist/translations/bg.d.ts +8 -0
  16. package/dist/translations/bg.js +23 -0
  17. package/dist/translations/bg.umd.js +23 -0
  18. package/dist/translations/bn.d.ts +8 -0
  19. package/dist/translations/bn.js +23 -0
  20. package/dist/translations/bn.umd.js +23 -0
  21. package/dist/translations/bs.d.ts +8 -0
  22. package/dist/translations/bs.js +23 -0
  23. package/dist/translations/bs.umd.js +23 -0
  24. package/dist/translations/ca.d.ts +8 -0
  25. package/dist/translations/ca.js +23 -0
  26. package/dist/translations/ca.umd.js +23 -0
  27. package/dist/translations/cs.d.ts +8 -0
  28. package/dist/translations/cs.js +23 -0
  29. package/dist/translations/cs.umd.js +23 -0
  30. package/dist/translations/da.d.ts +8 -0
  31. package/dist/translations/da.js +23 -0
  32. package/dist/translations/da.umd.js +23 -0
  33. package/dist/translations/de-ch.d.ts +8 -0
  34. package/dist/translations/de-ch.js +23 -0
  35. package/dist/translations/de-ch.umd.js +23 -0
  36. package/dist/translations/de.d.ts +8 -0
  37. package/dist/translations/de.js +23 -0
  38. package/dist/translations/de.umd.js +23 -0
  39. package/dist/translations/el.d.ts +8 -0
  40. package/dist/translations/el.js +23 -0
  41. package/dist/translations/el.umd.js +23 -0
  42. package/dist/translations/en-au.d.ts +8 -0
  43. package/dist/translations/en-au.js +23 -0
  44. package/dist/translations/en-au.umd.js +23 -0
  45. package/dist/translations/en-gb.d.ts +8 -0
  46. package/dist/translations/en-gb.js +23 -0
  47. package/dist/translations/en-gb.umd.js +23 -0
  48. package/dist/translations/en.d.ts +8 -0
  49. package/dist/translations/en.js +23 -0
  50. package/dist/translations/en.umd.js +23 -0
  51. package/dist/translations/es-co.d.ts +8 -0
  52. package/dist/translations/es-co.js +23 -0
  53. package/dist/translations/es-co.umd.js +23 -0
  54. package/dist/translations/es.d.ts +8 -0
  55. package/dist/translations/es.js +23 -0
  56. package/dist/translations/es.umd.js +23 -0
  57. package/dist/translations/et.d.ts +8 -0
  58. package/dist/translations/et.js +23 -0
  59. package/dist/translations/et.umd.js +23 -0
  60. package/dist/translations/fa.d.ts +8 -0
  61. package/dist/translations/fa.js +23 -0
  62. package/dist/translations/fa.umd.js +23 -0
  63. package/dist/translations/fi.d.ts +8 -0
  64. package/dist/translations/fi.js +23 -0
  65. package/dist/translations/fi.umd.js +23 -0
  66. package/dist/translations/fr.d.ts +8 -0
  67. package/dist/translations/fr.js +23 -0
  68. package/dist/translations/fr.umd.js +23 -0
  69. package/dist/translations/gl.d.ts +8 -0
  70. package/dist/translations/gl.js +23 -0
  71. package/dist/translations/gl.umd.js +23 -0
  72. package/dist/translations/he.d.ts +8 -0
  73. package/dist/translations/he.js +23 -0
  74. package/dist/translations/he.umd.js +23 -0
  75. package/dist/translations/hi.d.ts +8 -0
  76. package/dist/translations/hi.js +23 -0
  77. package/dist/translations/hi.umd.js +23 -0
  78. package/dist/translations/hr.d.ts +8 -0
  79. package/dist/translations/hr.js +23 -0
  80. package/dist/translations/hr.umd.js +23 -0
  81. package/dist/translations/hu.d.ts +8 -0
  82. package/dist/translations/hu.js +23 -0
  83. package/dist/translations/hu.umd.js +23 -0
  84. package/dist/translations/id.d.ts +8 -0
  85. package/dist/translations/id.js +23 -0
  86. package/dist/translations/id.umd.js +23 -0
  87. package/dist/translations/it.d.ts +8 -0
  88. package/dist/translations/it.js +23 -0
  89. package/dist/translations/it.umd.js +23 -0
  90. package/dist/translations/ja.d.ts +8 -0
  91. package/dist/translations/ja.js +23 -0
  92. package/dist/translations/ja.umd.js +23 -0
  93. package/dist/translations/jv.d.ts +8 -0
  94. package/dist/translations/jv.js +23 -0
  95. package/dist/translations/jv.umd.js +23 -0
  96. package/dist/translations/ko.d.ts +8 -0
  97. package/dist/translations/ko.js +23 -0
  98. package/dist/translations/ko.umd.js +23 -0
  99. package/dist/translations/ku.d.ts +8 -0
  100. package/dist/translations/ku.js +23 -0
  101. package/dist/translations/ku.umd.js +23 -0
  102. package/dist/translations/lt.d.ts +8 -0
  103. package/dist/translations/lt.js +23 -0
  104. package/dist/translations/lt.umd.js +23 -0
  105. package/dist/translations/lv.d.ts +8 -0
  106. package/dist/translations/lv.js +23 -0
  107. package/dist/translations/lv.umd.js +23 -0
  108. package/dist/translations/ms.d.ts +8 -0
  109. package/dist/translations/ms.js +23 -0
  110. package/dist/translations/ms.umd.js +23 -0
  111. package/dist/translations/ne.d.ts +8 -0
  112. package/dist/translations/ne.js +23 -0
  113. package/dist/translations/ne.umd.js +23 -0
  114. package/dist/translations/nl.d.ts +8 -0
  115. package/dist/translations/nl.js +23 -0
  116. package/dist/translations/nl.umd.js +23 -0
  117. package/dist/translations/no.d.ts +8 -0
  118. package/dist/translations/no.js +23 -0
  119. package/dist/translations/no.umd.js +23 -0
  120. package/dist/translations/pl.d.ts +8 -0
  121. package/dist/translations/pl.js +23 -0
  122. package/dist/translations/pl.umd.js +23 -0
  123. package/dist/translations/pt-br.d.ts +8 -0
  124. package/dist/translations/pt-br.js +23 -0
  125. package/dist/translations/pt-br.umd.js +23 -0
  126. package/dist/translations/pt.d.ts +8 -0
  127. package/dist/translations/pt.js +23 -0
  128. package/dist/translations/pt.umd.js +23 -0
  129. package/dist/translations/ro.d.ts +8 -0
  130. package/dist/translations/ro.js +23 -0
  131. package/dist/translations/ro.umd.js +23 -0
  132. package/dist/translations/ru.d.ts +8 -0
  133. package/dist/translations/ru.js +23 -0
  134. package/dist/translations/ru.umd.js +23 -0
  135. package/dist/translations/sk.d.ts +8 -0
  136. package/dist/translations/sk.js +23 -0
  137. package/dist/translations/sk.umd.js +23 -0
  138. package/dist/translations/sr-latn.d.ts +8 -0
  139. package/dist/translations/sr-latn.js +23 -0
  140. package/dist/translations/sr-latn.umd.js +23 -0
  141. package/dist/translations/sr.d.ts +8 -0
  142. package/dist/translations/sr.js +23 -0
  143. package/dist/translations/sr.umd.js +23 -0
  144. package/dist/translations/sv.d.ts +8 -0
  145. package/dist/translations/sv.js +23 -0
  146. package/dist/translations/sv.umd.js +23 -0
  147. package/dist/translations/th.d.ts +8 -0
  148. package/dist/translations/th.js +23 -0
  149. package/dist/translations/th.umd.js +23 -0
  150. package/dist/translations/tk.d.ts +8 -0
  151. package/dist/translations/tk.js +23 -0
  152. package/dist/translations/tk.umd.js +23 -0
  153. package/dist/translations/tr.d.ts +8 -0
  154. package/dist/translations/tr.js +23 -0
  155. package/dist/translations/tr.umd.js +23 -0
  156. package/dist/translations/tt.d.ts +8 -0
  157. package/dist/translations/tt.js +23 -0
  158. package/dist/translations/tt.umd.js +23 -0
  159. package/dist/translations/ug.d.ts +8 -0
  160. package/dist/translations/ug.js +23 -0
  161. package/dist/translations/ug.umd.js +23 -0
  162. package/dist/translations/uk.d.ts +8 -0
  163. package/dist/translations/uk.js +23 -0
  164. package/dist/translations/uk.umd.js +23 -0
  165. package/dist/translations/ur.d.ts +8 -0
  166. package/dist/translations/ur.js +23 -0
  167. package/dist/translations/ur.umd.js +23 -0
  168. package/dist/translations/vi.d.ts +8 -0
  169. package/dist/translations/vi.js +23 -0
  170. package/dist/translations/vi.umd.js +23 -0
  171. package/dist/translations/zh-cn.d.ts +8 -0
  172. package/dist/translations/zh-cn.js +23 -0
  173. package/dist/translations/zh-cn.umd.js +23 -0
  174. package/dist/translations/zh.d.ts +8 -0
  175. package/dist/translations/zh.js +23 -0
  176. package/dist/translations/zh.umd.js +23 -0
  177. package/dist/types/augmentation.d.ts +33 -0
  178. package/dist/types/changeitem.d.ts +62 -0
  179. package/dist/types/editor/revisionviewereditor.d.ts +31 -0
  180. package/dist/types/editor/revisionviewereditorui.d.ts +32 -0
  181. package/dist/types/editor/revisionviewereditoruiview.d.ts +47 -0
  182. package/dist/types/index.d.ts +19 -0
  183. package/dist/types/revision.d.ts +157 -0
  184. package/dist/types/revisiondiff.d.ts +28 -0
  185. package/dist/types/revisionhistory.d.ts +103 -0
  186. package/dist/types/revisionhistoryadapter.d.ts +68 -0
  187. package/dist/types/revisionhistoryconfig.d.ts +75 -0
  188. package/dist/types/revisionsrepository.d.ts +56 -0
  189. package/dist/types/revisiontracker.d.ts +89 -0
  190. package/dist/types/revisionviewer.d.ts +29 -0
  191. package/dist/types/ui/revision/createrevisionactionsdropdown.d.ts +14 -0
  192. package/dist/types/ui/revision/revisionauthorview.d.ts +9 -0
  193. package/dist/types/ui/revision/revisionnameview.d.ts +9 -0
  194. package/dist/types/ui/revision/revisionview.d.ts +99 -0
  195. package/dist/types/ui/revision/subrevisioncollapserview.d.ts +25 -0
  196. package/dist/types/ui/revision/subrevisionview.d.ts +38 -0
  197. package/dist/types/ui/revision/utils.d.ts +9 -0
  198. package/dist/types/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +61 -0
  199. package/dist/types/ui/revisionhistory/revisionhistoryui.d.ts +30 -0
  200. package/dist/types/ui/revisionssidebar/revisionssidebar.d.ts +48 -0
  201. package/dist/types/ui/revisionssidebar/revisionssidebarheaderview.d.ts +9 -0
  202. package/dist/types/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +33 -0
  203. package/dist/types/ui/revisionssidebar/revisionssidebarview.d.ts +48 -0
  204. package/dist/types/ui/revisionssidebar/utils.d.ts +13 -0
  205. package/dist/types/ui/revisionviewer/changedetailsview.d.ts +26 -0
  206. package/dist/types/ui/revisionviewer/changesnavigationview.d.ts +44 -0
  207. package/dist/types/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +30 -0
  208. package/dist/types/ui/revisionviewer/revisionviewerui.d.ts +32 -0
  209. package/dist/types/utils/common-translations.d.ts +15 -0
  210. package/package.json +6 -5
  211. package/src/changeitem.js +1 -1
  212. package/src/editor/revisionviewereditor.js +1 -1
  213. package/src/editor/revisionviewereditorui.js +1 -1
  214. package/src/editor/revisionviewereditoruiview.js +1 -1
  215. package/src/index.js +1 -1
  216. package/src/revision.js +1 -1
  217. package/src/revisiondiff.js +1 -1
  218. package/src/revisionhistory.js +1 -1
  219. package/src/revisionsrepository.js +1 -1
  220. package/src/revisiontracker.js +1 -1
  221. package/src/revisionviewer.js +1 -1
  222. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  223. package/src/ui/revision/revisionauthorview.js +1 -1
  224. package/src/ui/revision/revisionnameview.js +1 -1
  225. package/src/ui/revision/revisionview.js +1 -1
  226. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  227. package/src/ui/revision/subrevisionview.js +1 -1
  228. package/src/ui/revision/utils.js +1 -1
  229. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  230. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  231. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  232. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  233. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  234. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  235. package/src/ui/revisionssidebar/utils.js +1 -1
  236. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  237. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  238. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  239. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  240. package/src/utils/common-translations.d.ts +1 -1
  241. package/src/utils/common-translations.js +1 -1
@@ -0,0 +1,61 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module revision-history/ui/revisionhistory/revisionhistorysaverevisionformview
11
+ */
12
+ import { LabeledFieldView, View, type InputTextView } from 'ckeditor5/src/ui.js';
13
+ import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils.js';
14
+ import '../../../theme/revisionhistorysaverevisionform.css';
15
+ import '@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';
16
+ /**
17
+ * The media form view controller class.
18
+ *
19
+ * See {@link module:media-embed/ui/mediaformview~MediaFormView}.
20
+ */
21
+ export default class RevisionHistorySaveRevisionFormView extends View {
22
+ /**
23
+ * Tracks information about the DOM focus in the form.
24
+ */
25
+ readonly focusTracker: FocusTracker;
26
+ /**
27
+ * An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
28
+ */
29
+ readonly keystrokes: KeystrokeHandler;
30
+ /**
31
+ * The revision name input view.
32
+ */
33
+ revisionNameInputView: LabeledFieldView<InputTextView>;
34
+ /**
35
+ * The value of the revision name input.
36
+ *
37
+ * @observable
38
+ */
39
+ revisionNameInputValue: string;
40
+ constructor(locale: Locale, requireRevisionName: boolean);
41
+ /**
42
+ * @inheritDoc
43
+ */
44
+ render(): void;
45
+ /**
46
+ * Focuses the {@link #revisionNameInputView}.
47
+ */
48
+ focus(): void;
49
+ /**
50
+ * The native DOM `value` of the {@link #revisionNameInputView} element.
51
+ *
52
+ * **Note**: Do not confuse it with the {@link module:ui/inputtext/inputtextview~InputTextView#value}
53
+ * which works one way only and may not represent the actual state of the component in the DOM.
54
+ */
55
+ get revisionName(): string;
56
+ set revisionName(name: string);
57
+ /**
58
+ * TODO
59
+ */
60
+ reset(): void;
61
+ }
@@ -0,0 +1,30 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module revision-history/ui/revisionhistory/revisionhistoryui
11
+ */
12
+ import { Plugin } from 'ckeditor5/src/core.js';
13
+ import RevisionTracker from '../../revisiontracker.js';
14
+ /**
15
+ * TODO
16
+ */
17
+ export default class RevisionHistoryUI extends Plugin {
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ static get pluginName(): "RevisionHistoryUI";
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ static get requires(): readonly [typeof RevisionTracker];
26
+ /**
27
+ * @inheritDoc
28
+ */
29
+ init(): void;
30
+ }
@@ -0,0 +1,48 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module revision-history/ui/revisionsidebar/revisionsidebar
11
+ */
12
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
13
+ import RevisionViewer from '../../revisionviewer.js';
14
+ import type { default as RevisionView } from '../revision/revisionview.js';
15
+ /**
16
+ * TODO
17
+ */
18
+ export default class RevisionsSidebar extends Plugin {
19
+ static defaultRevisionActions: Array<string>;
20
+ static availableRevisionActions: Record<string, RevisionAction>;
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ static get pluginName(): "RevisionsSidebar";
25
+ /**
26
+ * @inheritDoc
27
+ */
28
+ static get requires(): readonly [typeof RevisionViewer];
29
+ /**
30
+ * @inheritDoc
31
+ */
32
+ constructor(editor: Editor);
33
+ /**
34
+ * @inheritDoc
35
+ */
36
+ init(): void;
37
+ /**
38
+ * @inheritDoc
39
+ */
40
+ destroy(): void;
41
+ }
42
+ export interface RevisionAction {
43
+ name: string;
44
+ class?: string;
45
+ action: (editor: Editor, revisionView: RevisionView) => void;
46
+ isVisible?: (editor: Editor, revisionView: RevisionView) => boolean;
47
+ isEnabled?: (editor: Editor, revisionView: RevisionView) => boolean;
48
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ import '../../../theme/revisionssidebar/revisionssidebarheader.css';
@@ -0,0 +1,33 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module revision-history/ui/revisionsidebar/revisionsidebartimeperiodview
11
+ */
12
+ import { View, type ViewCollection } from 'ckeditor5/src/ui.js';
13
+ import type { Locale } from 'ckeditor5/src/utils.js';
14
+ import RevisionView from '../revision/revisionview.js';
15
+ import '../../../theme/revisionssidebar/revisionssidebartimeperiod.css';
16
+ import type { RevisionAction } from './revisionssidebar.js';
17
+ import type Revision from '../../revision.js';
18
+ /**
19
+ * TODO
20
+ */
21
+ export default class RevisionsSidebarTimePeriodView extends View {
22
+ startDate: Date;
23
+ revisionViews: ViewCollection<RevisionView>;
24
+ constructor(locale: Locale, startDate: Date, revisionActions: Array<RevisionAction>, requireRevisionName: boolean);
25
+ /**
26
+ * TODO
27
+ */
28
+ addRevision(newRevision: Revision): void;
29
+ /**
30
+ * TODO
31
+ */
32
+ removeRevision(revision: Revision): void;
33
+ }
@@ -0,0 +1,48 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module revision-history/ui/revisionsidebar/revisionsidebarview
11
+ */
12
+ import { View, type ViewCollection } from 'ckeditor5/src/ui.js';
13
+ import type { Locale, Collection } from 'ckeditor5/src/utils.js';
14
+ import RevisionsSidebarTimePeriodView from './revisionssidebartimeperiodview.js';
15
+ import '../../../theme/revisionssidebar/revisionssidebar.css';
16
+ import type { default as RevisionView } from '../revision/revisionview.js';
17
+ import type { RevisionAction } from './revisionssidebar.js';
18
+ import type Revision from '../../revision.js';
19
+ /**
20
+ * TODO
21
+ */
22
+ export default class RevisionsSidebarView extends View {
23
+ timePeriodViews: ViewCollection<RevisionsSidebarTimePeriodView>;
24
+ /**
25
+ * @observable
26
+ */
27
+ isEnabled: boolean;
28
+ /**
29
+ * @inheritDoc
30
+ */
31
+ constructor(locale: Locale, revisions: Collection<Revision>, revisionActions: Array<RevisionAction>, _requireRevisionName: boolean);
32
+ /**
33
+ * @inheritDoc
34
+ */
35
+ render(): void;
36
+ /**
37
+ * TODO
38
+ */
39
+ get revisionViews(): Array<RevisionView>;
40
+ /**
41
+ * TODO
42
+ */
43
+ selectRevision(revisionToSelect: Revision | null): void;
44
+ /**
45
+ * TODO
46
+ */
47
+ highlightRevisions(revisionsToHighlight: Array<Revision>): void;
48
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ export declare function getDateTimePeriodInfo(jsDate: Date, locale: string): DateTimePeriod;
10
+ export interface DateTimePeriod {
11
+ startDate: Date;
12
+ localizedPeriodName: string;
13
+ }
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module revision-history/ui/revisionviewer/changedetailsview
11
+ */
12
+ import { View } from 'ckeditor5/src/ui.js';
13
+ import type { Locale } from 'ckeditor5/src/utils.js';
14
+ import type ChangeItem from '../../changeitem.js';
15
+ export default class ChangeDetailsView extends View {
16
+ changeId: string;
17
+ /**
18
+ * @observable
19
+ */
20
+ type: string;
21
+ constructor(locale: Locale, model: ChangeItem);
22
+ /**
23
+ * Focuses the view.
24
+ */
25
+ focus(): void;
26
+ }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module revision-history/ui/revisionviewer/changenaviagationview
11
+ */
12
+ import { View } from 'ckeditor5/src/ui.js';
13
+ import type { Locale } from 'ckeditor5/src/utils.js';
14
+ import '../../../theme/changesnavigation.css';
15
+ /**
16
+ * TODO
17
+ */
18
+ export default class ChangesNavigationView extends View {
19
+ /**
20
+ * @observable
21
+ */
22
+ isNavigationMode: boolean;
23
+ /**
24
+ * @observable
25
+ */
26
+ isReady: boolean;
27
+ /**
28
+ * @observable
29
+ */
30
+ currentChangeNumber: number;
31
+ /**
32
+ * @observable
33
+ */
34
+ numberOfChanges: number;
35
+ /**
36
+ * @observable
37
+ */
38
+ isForwardNavigationEnabled: boolean;
39
+ /**
40
+ * @observable
41
+ */
42
+ isBackwardNavigationEnabled: boolean;
43
+ constructor(locale: Locale);
44
+ }
@@ -0,0 +1,30 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module revision-history/ui/revisionviewer/revisionviewerloadingoverlay
11
+ */
12
+ import { Plugin } from 'ckeditor5/src/core.js';
13
+ import '../../../theme/revisionviewerloadingoverlay.css';
14
+ /**
15
+ * TODO
16
+ */
17
+ export default class RevisionViewerLoadingOverlay extends Plugin {
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ static get pluginName(): "RevisionViewerLoadingOverlay";
22
+ /**
23
+ * TODO
24
+ */
25
+ show(): void;
26
+ /**
27
+ * TODO
28
+ */
29
+ hide(): void;
30
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module revision-history/ui/revisionviewer/revisionviewerui
11
+ */
12
+ import { Plugin } from 'ckeditor5/src/core.js';
13
+ import RevisionViewer from './../../revisionviewer.js';
14
+ import RevisionViewerLoadingOverlay from './revisionviewerloadingoverlay.js';
15
+ import '../../../theme/revisionviewer.css';
16
+ /**
17
+ * TODO
18
+ */
19
+ export default class RevisionViewerUI extends Plugin {
20
+ /**
21
+ * @inheritDoc
22
+ */
23
+ static get pluginName(): "RevisionViewerUI";
24
+ /**
25
+ * @inheritDoc
26
+ */
27
+ static get requires(): readonly [typeof RevisionViewer, typeof RevisionViewerLoadingOverlay];
28
+ /**
29
+ * @inheritDoc
30
+ */
31
+ init(): void;
32
+ }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module revision-history/utils/common-translations
11
+ */
12
+ import type { Locale } from 'ckeditor5/src/utils.js';
13
+ export declare function getTranslation(locale: Locale, id: string, values?: TranslationValues): string;
14
+ type TranslationValues = number | string | ReadonlyArray<number | string>;
15
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-revision-history",
3
- "version": "0.0.0-nightly-20240423.0",
3
+ "version": "0.0.0-nightly-20240425.0",
4
4
  "description": "Document revision history feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -30,6 +30,7 @@
30
30
  "main": "src/index.js",
31
31
  "files": [
32
32
  "build",
33
+ "dist",
33
34
  "lang",
34
35
  "src/**/*.js",
35
36
  "src/**/*.d.ts",
@@ -38,10 +39,10 @@
38
39
  "CHANGELOG.md"
39
40
  ],
40
41
  "dependencies": {
41
- "@ckeditor/ckeditor5-editor-classic": "0.0.0-nightly-20240423.0",
42
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20240423.0",
43
- "ckeditor5": "0.0.0-nightly-20240423.0",
44
- "ckeditor5-collaboration": "0.0.0-nightly-20240423.0",
42
+ "@ckeditor/ckeditor5-editor-classic": "0.0.0-nightly-20240425.0",
43
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20240425.0",
44
+ "ckeditor5": "0.0.0-nightly-20240425.0",
45
+ "ckeditor5-collaboration": "0.0.0-nightly-20240425.0",
45
46
  "lodash-es": "4.17.21",
46
47
  "luxon": "1.28.1"
47
48
  },
package/src/changeitem.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4865(){var _0x2d9fde=['638457ATHqIm','2912832caEDmS','1278714hTSrrN','850142RpoKJF','5vYXsJW','5524659uPniVE','type','toJSON','649737bQybIj','data','createdAt','rootName','15977730HDUIwI','72Mqxnbn','set','author','1anOnbY'];_0x4865=function(){return _0x2d9fde;};return _0x4865();}function _0x5490(_0x32630b,_0x7abac5){var _0x486547=_0x4865();return _0x5490=function(_0x5490eb,_0x3ea2ec){_0x5490eb=_0x5490eb-0x114;var _0x5d0d26=_0x486547[_0x5490eb];return _0x5d0d26;},_0x5490(_0x32630b,_0x7abac5);}var _0x4efa62=_0x5490;(function(_0x5c8671,_0x159c91){var _0x10143e=_0x5490,_0x4da5b0=_0x5c8671();while(!![]){try{var _0x4bddfe=parseInt(_0x10143e(0x121))/0x1*(-parseInt(_0x10143e(0x114))/0x2)+-parseInt(_0x10143e(0x122))/0x3+parseInt(_0x10143e(0x123))/0x4+parseInt(_0x10143e(0x115))/0x5*(parseInt(_0x10143e(0x124))/0x6)+-parseInt(_0x10143e(0x116))/0x7+-parseInt(_0x10143e(0x11e))/0x8*(parseInt(_0x10143e(0x119))/0x9)+parseInt(_0x10143e(0x11d))/0xa;if(_0x4bddfe===_0x159c91)break;else _0x4da5b0['push'](_0x4da5b0['shift']());}catch(_0x41a368){_0x4da5b0['push'](_0x4da5b0['shift']());}}}(_0x4865,0x70d9c));import{ObservableMixin as _0x1d9b87,uid as _0x8465c2}from'ckeditor5/src/utils.js';export default class r extends _0x1d9b87(){constructor(_0x1d3ce9){var _0x16fc20=_0x5490;super(),this['id']=_0x1d3ce9['id']||_0x8465c2(),this[_0x16fc20(0x120)]=_0x1d3ce9[_0x16fc20(0x120)],this[_0x16fc20(0x117)]=_0x1d3ce9[_0x16fc20(0x117)],this[_0x16fc20(0x11a)]=_0x1d3ce9[_0x16fc20(0x11a)]||{},this[_0x16fc20(0x11c)]=_0x1d3ce9[_0x16fc20(0x11c)],this[_0x16fc20(0x11f)](_0x16fc20(0x11b),_0x1d3ce9[_0x16fc20(0x11b)]);}[_0x4efa62(0x118)](){var _0x27a105=_0x4efa62;return{'id':this['id'],'authorId':this[_0x27a105(0x120)]['id'],'type':this[_0x27a105(0x117)],'data':this[_0x27a105(0x11a)],'createdAt':this[_0x27a105(0x11b)]};}}
23
+ var _0x268488=_0x28bb;function _0x28bb(_0xba9835,_0xc7ee35){var _0x5d2806=_0x5d28();return _0x28bb=function(_0x28bb55,_0xa264e7){_0x28bb55=_0x28bb55-0x65;var _0x115be5=_0x5d2806[_0x28bb55];return _0x115be5;},_0x28bb(_0xba9835,_0xc7ee35);}(function(_0x219745,_0x383719){var _0x1391cf=_0x28bb,_0x10d452=_0x219745();while(!![]){try{var _0x696f09=parseInt(_0x1391cf(0x6a))/0x1*(parseInt(_0x1391cf(0x69))/0x2)+parseInt(_0x1391cf(0x68))/0x3+parseInt(_0x1391cf(0x67))/0x4*(parseInt(_0x1391cf(0x75))/0x5)+parseInt(_0x1391cf(0x74))/0x6*(-parseInt(_0x1391cf(0x66))/0x7)+-parseInt(_0x1391cf(0x72))/0x8*(parseInt(_0x1391cf(0x73))/0x9)+parseInt(_0x1391cf(0x76))/0xa+-parseInt(_0x1391cf(0x65))/0xb;if(_0x696f09===_0x383719)break;else _0x10d452['push'](_0x10d452['shift']());}catch(_0xe89615){_0x10d452['push'](_0x10d452['shift']());}}}(_0x5d28,0xe8a05));import{ObservableMixin as _0x386469,uid as _0x44da6a}from'ckeditor5/src/utils.js';export default class r extends _0x386469(){constructor(_0x1abd4e){var _0x5c9d4e=_0x28bb;super(),this['id']=_0x1abd4e['id']||_0x44da6a(),this[_0x5c9d4e(0x6d)]=_0x1abd4e[_0x5c9d4e(0x6d)],this[_0x5c9d4e(0x6f)]=_0x1abd4e[_0x5c9d4e(0x6f)],this[_0x5c9d4e(0x70)]=_0x1abd4e[_0x5c9d4e(0x70)]||{},this[_0x5c9d4e(0x71)]=_0x1abd4e[_0x5c9d4e(0x71)],this[_0x5c9d4e(0x6e)](_0x5c9d4e(0x6b),_0x1abd4e[_0x5c9d4e(0x6b)]);}[_0x268488(0x6c)](){var _0x14a4eb=_0x268488;return{'id':this['id'],'authorId':this[_0x14a4eb(0x6d)]['id'],'type':this[_0x14a4eb(0x6f)],'data':this[_0x14a4eb(0x70)],'createdAt':this[_0x14a4eb(0x6b)]};}}function _0x5d28(){var _0x3e2bab=['26CuGiDa','createdAt','toJSON','author','set','type','data','rootName','12652448JDfooy','9lDuXzW','6kXikUg','5EJbqiM','9611020GLeINF','5839141DZnzAP','9934267FADBwN','4837148qIjcak','5448660dfZMig','38292FOrYlM'];_0x5d28=function(){return _0x3e2bab;};return _0x5d28();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x248d03=_0x4c1b;(function(_0x391a5c,_0x5b2087){const _0x4eee01=_0x4c1b,_0x28ca39=_0x391a5c();while(!![]){try{const _0x1473ae=-parseInt(_0x4eee01(0xc4))/0x1*(parseInt(_0x4eee01(0xb1))/0x2)+parseInt(_0x4eee01(0xb0))/0x3+-parseInt(_0x4eee01(0xb8))/0x4+parseInt(_0x4eee01(0xc7))/0x5*(-parseInt(_0x4eee01(0xc0))/0x6)+parseInt(_0x4eee01(0xb3))/0x7+parseInt(_0x4eee01(0xc1))/0x8*(parseInt(_0x4eee01(0xba))/0x9)+-parseInt(_0x4eee01(0xcb))/0xa;if(_0x1473ae===_0x5b2087)break;else _0x28ca39['push'](_0x28ca39['shift']());}catch(_0x48b82e){_0x28ca39['push'](_0x28ca39['shift']());}}}(_0x50f1,0xed6e3));import{Editor as _0x4c3af7,DataApiMixin as _0x53b28e,ElementApiMixin as _0xbd58b7}from'ckeditor5/src/core.js';function _0x50f1(){const _0x312ea5=['1ACSzSY','model','sourceElement','13255xSdzRf','destroy','locale','updateSourceElement','4679210IOatQc','view','5073342ypVYGP','3564926MNWUoq','initialData','13054986vBthRh','createRoot','ready','create','_ui','7263164KIagRc','config','5489577kmkyWR','editing','fire','init','get','document','786rFbhCm','24nyFypG','initPlugins','data'];_0x50f1=function(){return _0x312ea5;};return _0x50f1();}import _0x150f29 from'./revisionviewereditorui.js';function _0x4c1b(_0x5ec04e,_0x3ca790){const _0x50f151=_0x50f1();return _0x4c1b=function(_0x4c1be7,_0x540cf8){_0x4c1be7=_0x4c1be7-0xb0;let _0x5f1e1d=_0x50f151[_0x4c1be7];return _0x5f1e1d;},_0x4c1b(_0x5ec04e,_0x3ca790);}import _0x3db685 from'./revisionviewereditoruiview.js';export default class m extends _0x53b28e(_0xbd58b7(_0x4c3af7)){get['ui'](){const _0x14a0b8=_0x4c1b;return this[_0x14a0b8(0xb7)];}constructor(_0x3fec7c,_0x54229d){const _0x2ac4f6=_0x4c1b;super(_0x54229d),this[_0x2ac4f6(0xc6)]=_0x3fec7c,this[_0x2ac4f6(0xc5)][_0x2ac4f6(0xbf)][_0x2ac4f6(0xb4)]();const _0x567b37=new _0x3db685(this[_0x2ac4f6(0xc9)],this[_0x2ac4f6(0xbb)][_0x2ac4f6(0xcc)],{'shouldToolbarGroupWhenFull':!0x0});this[_0x2ac4f6(0xb7)]=new _0x150f29(this,_0x567b37);}[_0x248d03(0xc8)](){const _0x59e4a3=_0x248d03;return this[_0x59e4a3(0xca)](),this['ui'][_0x59e4a3(0xc8)](),super[_0x59e4a3(0xc8)]();}static async[_0x248d03(0xb6)](_0xcc1d35,_0x5c635b){const _0x46f348=_0x248d03,_0x1e34bb=new this(_0xcc1d35,_0x5c635b);return await _0x1e34bb[_0x46f348(0xc2)](),await _0x1e34bb['ui'][_0x46f348(0xbd)](_0xcc1d35),await _0x1e34bb[_0x46f348(0xc3)][_0x46f348(0xbd)](_0x1e34bb[_0x46f348(0xb9)][_0x46f348(0xbe)](_0x46f348(0xb2))||''),_0x1e34bb[_0x46f348(0xbc)](_0x46f348(0xb5)),_0x1e34bb;}}
23
+ const _0x5e7645=_0x3e0b;function _0x57a2(){const _0x753fca=['fire','135EXNnBS','locale','40996zmhOUW','editing','updateSourceElement','initialData','sourceElement','config','data','document','createRoot','model','_ui','get','191244EbCqht','679341fknvJs','ready','23iPmhEf','6341720HNMoZz','6724718nJnAMF','view','9OVBImA','3582352PCTIst','initPlugins','23221260aLutjr','create','init','destroy'];_0x57a2=function(){return _0x753fca;};return _0x57a2();}function _0x3e0b(_0x5e4d18,_0x18ba3e){const _0x57a2e2=_0x57a2();return _0x3e0b=function(_0x3e0bfd,_0x2fa50a){_0x3e0bfd=_0x3e0bfd-0x143;let _0x485b2d=_0x57a2e2[_0x3e0bfd];return _0x485b2d;},_0x3e0b(_0x5e4d18,_0x18ba3e);}(function(_0x2c0c5f,_0x523458){const _0x44c90a=_0x3e0b,_0x5429b3=_0x2c0c5f();while(!![]){try{const _0x5c83aa=parseInt(_0x44c90a(0x14c))/0x1*(-parseInt(_0x44c90a(0x15a))/0x2)+-parseInt(_0x44c90a(0x14a))/0x3+parseInt(_0x44c90a(0x151))/0x4+parseInt(_0x44c90a(0x158))/0x5*(parseInt(_0x44c90a(0x149))/0x6)+parseInt(_0x44c90a(0x14e))/0x7+parseInt(_0x44c90a(0x14d))/0x8*(parseInt(_0x44c90a(0x150))/0x9)+-parseInt(_0x44c90a(0x153))/0xa;if(_0x5c83aa===_0x523458)break;else _0x5429b3['push'](_0x5429b3['shift']());}catch(_0x324b62){_0x5429b3['push'](_0x5429b3['shift']());}}}(_0x57a2,0x7784c));import{Editor as _0x50e587,DataApiMixin as _0xeaa550,ElementApiMixin as _0x2e365e}from'ckeditor5/src/core.js';import _0x1aa9a7 from'./revisionviewereditorui.js';import _0x1d597e from'./revisionviewereditoruiview.js';export default class m extends _0xeaa550(_0x2e365e(_0x50e587)){get['ui'](){const _0x117dff=_0x3e0b;return this[_0x117dff(0x147)];}constructor(_0x3deb39,_0x125a25){const _0x35444f=_0x3e0b;super(_0x125a25),this[_0x35444f(0x15e)]=_0x3deb39,this[_0x35444f(0x146)][_0x35444f(0x144)][_0x35444f(0x145)]();const _0x4256eb=new _0x1d597e(this[_0x35444f(0x159)],this[_0x35444f(0x15b)][_0x35444f(0x14f)],{'shouldToolbarGroupWhenFull':!0x0});this[_0x35444f(0x147)]=new _0x1aa9a7(this,_0x4256eb);}[_0x5e7645(0x156)](){const _0x6c2898=_0x5e7645;return this[_0x6c2898(0x15c)](),this['ui'][_0x6c2898(0x156)](),super[_0x6c2898(0x156)]();}static async[_0x5e7645(0x154)](_0x5c4fa2,_0x555607){const _0x52d185=_0x5e7645,_0x5dc2d7=new this(_0x5c4fa2,_0x555607);return await _0x5dc2d7[_0x52d185(0x152)](),await _0x5dc2d7['ui'][_0x52d185(0x155)](_0x5c4fa2),await _0x5dc2d7[_0x52d185(0x143)][_0x52d185(0x155)](_0x5dc2d7[_0x52d185(0x15f)][_0x52d185(0x148)](_0x52d185(0x15d))||''),_0x5dc2d7[_0x52d185(0x157)](_0x52d185(0x14b)),_0x5dc2d7;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x95644e=_0xf416;function _0x8cc4(){const _0x60ef8d=['componentFactory','14bPmPXE','15886818bLTuaD','275DqIalH','editable','setEditableElement','destroy','detachDomRoot','255011oOrYVY','element','get','248rhLtwt','4626972SbosUu','name','document','config','115ayLLwp','attachDomRoot','editing','rootName','fillFromConfig','685240PhgWGZ','3698394WLgIpD','editor','focusTracker','addToolbar','getRoot','bind','replace','182035TPHuAn','toolbar','isActive','177576fRbCJE','_toolbarConfig','fire','_view','init','restore','viewportOffset','limiterElement','stickyPanel','viewportTopOffset','_elementReplacer','view','render','isFocused','ready','_initToolbar'];_0x8cc4=function(){return _0x60ef8d;};return _0x8cc4();}(function(_0x501be8,_0x3021d1){const _0x1597ca=_0xf416,_0x2f7b70=_0x501be8();while(!![]){try{const _0x2c363b=-parseInt(_0x1597ca(0x1ec))/0x1*(-parseInt(_0x1597ca(0x1e5))/0x2)+parseInt(_0x1597ca(0x1f0))/0x3+parseInt(_0x1597ca(0x1d4))/0x4*(-parseInt(_0x1597ca(0x1f4))/0x5)+-parseInt(_0x1597ca(0x1ca))/0x6+-parseInt(_0x1597ca(0x1d1))/0x7*(parseInt(_0x1597ca(0x1ef))/0x8)+parseInt(_0x1597ca(0x1e6))/0x9+parseInt(_0x1597ca(0x1f9))/0xa*(-parseInt(_0x1597ca(0x1e7))/0xb);if(_0x2c363b===_0x3021d1)break;else _0x2f7b70['push'](_0x2f7b70['shift']());}catch(_0x13d708){_0x2f7b70['push'](_0x2f7b70['shift']());}}}(_0x8cc4,0xe47cf));function _0xf416(_0x480abf,_0x53e003){const _0x8cc4ba=_0x8cc4();return _0xf416=function(_0xf416cb,_0x5a67db){_0xf416cb=_0xf416cb-0x1ca;let _0x21ec84=_0x8cc4ba[_0xf416cb];return _0x21ec84;},_0xf416(_0x480abf,_0x53e003);}import{EditorUI as _0x8aed07,normalizeToolbarConfig as _0x478188}from'ckeditor5/src/ui.js';import{ElementReplacer as _0x5f2a56}from'ckeditor5/src/utils.js';export default class ot extends _0x8aed07{get[_0x95644e(0x1df)](){const _0x3110e6=_0x95644e;return this[_0x3110e6(0x1d7)];}constructor(_0x4e8d3e,_0x4fdae7){const _0x4df64e=_0x95644e;super(_0x4e8d3e),this[_0x4df64e(0x1d7)]=_0x4fdae7,this[_0x4df64e(0x1d5)]=_0x478188(_0x4e8d3e[_0x4df64e(0x1f3)][_0x4df64e(0x1ee)](_0x4df64e(0x1d2))),this[_0x4df64e(0x1de)]=new _0x5f2a56();}get[_0x95644e(0x1ed)](){const _0x19aff7=_0x95644e;return this[_0x19aff7(0x1df)][_0x19aff7(0x1ed)];}[_0x95644e(0x1d8)](_0x458a4f){const _0x5db477=_0x95644e,_0x3e20e9=this[_0x5db477(0x1cb)],_0x1f7d23=this[_0x5db477(0x1df)],_0x388e45=_0x3e20e9[_0x5db477(0x1f6)][_0x5db477(0x1df)],_0x5049ea=_0x1f7d23[_0x5db477(0x1e8)],_0x2bf4e2=_0x388e45[_0x5db477(0x1f2)][_0x5db477(0x1ce)]();_0x5049ea[_0x5db477(0x1f1)]=_0x2bf4e2[_0x5db477(0x1f7)],_0x1f7d23[_0x5db477(0x1e0)]();const _0x14c624=_0x5049ea[_0x5db477(0x1ed)];this[_0x5db477(0x1e9)](_0x5049ea[_0x5db477(0x1f1)],_0x14c624),_0x1f7d23[_0x5db477(0x1e8)][_0x5db477(0x1cf)](_0x5db477(0x1e1))['to'](this[_0x5db477(0x1cc)]),_0x388e45[_0x5db477(0x1f5)](_0x14c624),this[_0x5db477(0x1de)][_0x5db477(0x1d0)](_0x458a4f,this[_0x5db477(0x1ed)]),this[_0x5db477(0x1e3)](),this[_0x5db477(0x1d6)](_0x5db477(0x1e2));}[_0x95644e(0x1ea)](){const _0x522e34=_0x95644e;super[_0x522e34(0x1ea)]();const _0x382b45=this[_0x522e34(0x1df)],_0x24e9e2=this[_0x522e34(0x1cb)][_0x522e34(0x1f6)][_0x522e34(0x1df)];this[_0x522e34(0x1de)][_0x522e34(0x1d9)](),_0x24e9e2[_0x522e34(0x1eb)](_0x382b45[_0x522e34(0x1e8)][_0x522e34(0x1f1)]),_0x382b45[_0x522e34(0x1ea)]();}[_0x95644e(0x1e3)](){const _0x33a64c=_0x95644e,_0x5162a9=this[_0x33a64c(0x1df)];_0x5162a9[_0x33a64c(0x1dc)][_0x33a64c(0x1cf)](_0x33a64c(0x1d3))['to'](this[_0x33a64c(0x1cc)],_0x33a64c(0x1e1)),_0x5162a9[_0x33a64c(0x1dc)][_0x33a64c(0x1db)]=_0x5162a9[_0x33a64c(0x1ed)],_0x5162a9[_0x33a64c(0x1dc)][_0x33a64c(0x1cf)](_0x33a64c(0x1dd))['to'](this,_0x33a64c(0x1da),({top:_0x9e9754})=>_0x9e9754),_0x5162a9[_0x33a64c(0x1d2)][_0x33a64c(0x1f8)](this[_0x33a64c(0x1d5)],this[_0x33a64c(0x1e4)]),this[_0x33a64c(0x1cd)](_0x5162a9[_0x33a64c(0x1d2)]);}}
23
+ const _0x46c054=_0xe994;(function(_0xfe4cc8,_0x41bfff){const _0x4b97e9=_0xe994,_0x4de4d0=_0xfe4cc8();while(!![]){try{const _0x1283fe=-parseInt(_0x4b97e9(0x119))/0x1*(-parseInt(_0x4b97e9(0x131))/0x2)+parseInt(_0x4b97e9(0x12b))/0x3*(-parseInt(_0x4b97e9(0x102))/0x4)+parseInt(_0x4b97e9(0x11b))/0x5+-parseInt(_0x4b97e9(0x103))/0x6+parseInt(_0x4b97e9(0x105))/0x7*(-parseInt(_0x4b97e9(0x11e))/0x8)+-parseInt(_0x4b97e9(0x116))/0x9*(parseInt(_0x4b97e9(0x10b))/0xa)+-parseInt(_0x4b97e9(0x127))/0xb*(-parseInt(_0x4b97e9(0x111))/0xc);if(_0x1283fe===_0x41bfff)break;else _0x4de4d0['push'](_0x4de4d0['shift']());}catch(_0x2628c6){_0x4de4d0['push'](_0x4de4d0['shift']());}}}(_0x2ffa,0xb8369));function _0xe994(_0x52d4b3,_0x114e52){const _0x2ffa5d=_0x2ffa();return _0xe994=function(_0xe994b9,_0x3b8bdf){_0xe994b9=_0xe994b9-0x102;let _0x591298=_0x2ffa5d[_0xe994b9];return _0x591298;},_0xe994(_0x52d4b3,_0x114e52);}function _0x2ffa(){const _0x133226=['focusTracker','_elementReplacer','fire','312372lFfsYA','isActive','init','addToolbar','isFocused','670581ycVydX','replace','element','79GnXKga','ready','5253120mUTspT','document','bind','10807392eoVJTJ','stickyPanel','_view','name','_toolbarConfig','view','setEditableElement','rootName','render','1298myfduv','viewportOffset','editing','get','20877mYVVkE','_initToolbar','attachDomRoot','detachDomRoot','config','getRoot','35858fWjpfN','viewportTopOffset','844uYfebr','6871584PTuRQS','editor','7BqLDKz','fillFromConfig','editable','restore','limiterElement','componentFactory','110FCKCpz','toolbar','destroy'];_0x2ffa=function(){return _0x133226;};return _0x2ffa();}import{EditorUI as _0x4116c3,normalizeToolbarConfig as _0x18c0b1}from'ckeditor5/src/ui.js';import{ElementReplacer as _0x1956e9}from'ckeditor5/src/utils.js';export default class ot extends _0x4116c3{get[_0x46c054(0x123)](){const _0x520c5f=_0x46c054;return this[_0x520c5f(0x120)];}constructor(_0x1727bd,_0x4ad4e5){const _0x3d5160=_0x46c054;super(_0x1727bd),this[_0x3d5160(0x120)]=_0x4ad4e5,this[_0x3d5160(0x122)]=_0x18c0b1(_0x1727bd[_0x3d5160(0x12f)][_0x3d5160(0x12a)](_0x3d5160(0x10c))),this[_0x3d5160(0x10f)]=new _0x1956e9();}get[_0x46c054(0x118)](){const _0x1be76f=_0x46c054;return this[_0x1be76f(0x123)][_0x1be76f(0x118)];}[_0x46c054(0x113)](_0x4cbcdb){const _0x2d8b5f=_0x46c054,_0x43ea3c=this[_0x2d8b5f(0x104)],_0x13286f=this[_0x2d8b5f(0x123)],_0x5757b9=_0x43ea3c[_0x2d8b5f(0x129)][_0x2d8b5f(0x123)],_0xc965f8=_0x13286f[_0x2d8b5f(0x107)],_0x34c175=_0x5757b9[_0x2d8b5f(0x11c)][_0x2d8b5f(0x130)]();_0xc965f8[_0x2d8b5f(0x121)]=_0x34c175[_0x2d8b5f(0x125)],_0x13286f[_0x2d8b5f(0x126)]();const _0x24bb7a=_0xc965f8[_0x2d8b5f(0x118)];this[_0x2d8b5f(0x124)](_0xc965f8[_0x2d8b5f(0x121)],_0x24bb7a),_0x13286f[_0x2d8b5f(0x107)][_0x2d8b5f(0x11d)](_0x2d8b5f(0x115))['to'](this[_0x2d8b5f(0x10e)]),_0x5757b9[_0x2d8b5f(0x12d)](_0x24bb7a),this[_0x2d8b5f(0x10f)][_0x2d8b5f(0x117)](_0x4cbcdb,this[_0x2d8b5f(0x118)]),this[_0x2d8b5f(0x12c)](),this[_0x2d8b5f(0x110)](_0x2d8b5f(0x11a));}[_0x46c054(0x10d)](){const _0xa986c5=_0x46c054;super[_0xa986c5(0x10d)]();const _0x31161e=this[_0xa986c5(0x123)],_0x48a9f1=this[_0xa986c5(0x104)][_0xa986c5(0x129)][_0xa986c5(0x123)];this[_0xa986c5(0x10f)][_0xa986c5(0x108)](),_0x48a9f1[_0xa986c5(0x12e)](_0x31161e[_0xa986c5(0x107)][_0xa986c5(0x121)]),_0x31161e[_0xa986c5(0x10d)]();}[_0x46c054(0x12c)](){const _0x35524f=_0x46c054,_0x50e440=this[_0x35524f(0x123)];_0x50e440[_0x35524f(0x11f)][_0x35524f(0x11d)](_0x35524f(0x112))['to'](this[_0x35524f(0x10e)],_0x35524f(0x115)),_0x50e440[_0x35524f(0x11f)][_0x35524f(0x109)]=_0x50e440[_0x35524f(0x118)],_0x50e440[_0x35524f(0x11f)][_0x35524f(0x11d)](_0x35524f(0x132))['to'](this,_0x35524f(0x128),({top:_0x8b9ea4})=>_0x8b9ea4),_0x50e440[_0x35524f(0x10c)][_0x35524f(0x106)](this[_0x35524f(0x122)],this[_0x35524f(0x10a)]),this[_0x35524f(0x114)](_0x50e440[_0x35524f(0x10c)]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2a013a=_0x39c4;function _0x39c4(_0xf1f29,_0x8f609f){var _0x55da3a=_0x55da();return _0x39c4=function(_0x39c48a,_0x2ea819){_0x39c48a=_0x39c48a-0x1d0;var _0x1aaf94=_0x55da3a[_0x39c48a];return _0x1aaf94;},_0x39c4(_0xf1f29,_0x8f609f);}(function(_0x46377a,_0x278e71){var _0x2423bb=_0x39c4,_0x4400e7=_0x46377a();while(!![]){try{var _0x36faf7=parseInt(_0x2423bb(0x1d9))/0x1*(parseInt(_0x2423bb(0x1d6))/0x2)+-parseInt(_0x2423bb(0x1d1))/0x3*(parseInt(_0x2423bb(0x1df))/0x4)+parseInt(_0x2423bb(0x1e3))/0x5+-parseInt(_0x2423bb(0x1e4))/0x6*(parseInt(_0x2423bb(0x1dc))/0x7)+-parseInt(_0x2423bb(0x1d7))/0x8*(-parseInt(_0x2423bb(0x1d0))/0x9)+-parseInt(_0x2423bb(0x1db))/0xa*(parseInt(_0x2423bb(0x1d8))/0xb)+parseInt(_0x2423bb(0x1e0))/0xc;if(_0x36faf7===_0x278e71)break;else _0x4400e7['push'](_0x4400e7['shift']());}catch(_0xaf4a65){_0x4400e7['push'](_0x4400e7['shift']());}}}(_0x55da,0xc691f));function _0x55da(){var _0x4d5745=['top','content','render','_editable','238388fUBSUF','8YPZSkL','55mVmCdk','2YGaSCv','toolbar','2804860oAppuM','7RgifdK','stickyPanel','add','923108MjjnCP','36136560BzOezP','shouldToolbarGroupWhenFull','editable','1835460vsiOeb','7412898pxkbac','main','586557NfKSvh','3MwCIdc'];_0x55da=function(){return _0x4d5745;};return _0x55da();}import{BoxedEditorUIView as _0x6626cf,InlineEditableUIView as _0x1a6006,StickyPanelView as _0x1283f6,ToolbarView as _0x567261}from'ckeditor5/src/ui.js';import'@ckeditor/ckeditor5-editor-classic/theme/classiceditor.css';export default class at extends _0x6626cf{get[_0x2a013a(0x1e2)](){var _0x2f1df8=_0x2a013a;return this[_0x2f1df8(0x1d5)];}constructor(_0x255604,_0x50fbee,_0x55b5bc={}){var _0x4ca017=_0x2a013a;super(_0x255604),this[_0x4ca017(0x1dd)]=new _0x1283f6(_0x255604),this[_0x4ca017(0x1da)]=new _0x567261(_0x255604,{'shouldGroupWhenFull':_0x55b5bc[_0x4ca017(0x1e1)]}),this[_0x4ca017(0x1d5)]=new _0x1a6006(_0x255604,_0x50fbee);}[_0x2a013a(0x1d4)](){var _0xf70d92=_0x2a013a;super[_0xf70d92(0x1d4)](),this[_0xf70d92(0x1dd)][_0xf70d92(0x1d3)][_0xf70d92(0x1de)](this[_0xf70d92(0x1da)]),this[_0xf70d92(0x1d2)][_0xf70d92(0x1de)](this[_0xf70d92(0x1dd)]),this[_0xf70d92(0x1e5)][_0xf70d92(0x1de)](this[_0xf70d92(0x1e2)]);}}
23
+ var _0x3ba66b=_0xc385;function _0x5264(){var _0x59605c=['toolbar','content','3957065zQEgib','add','1505454hTfGnV','_editable','main','864046lfzbVa','top','stickyPanel','shouldToolbarGroupWhenFull','483858CvMNvT','5451173mkkKnj','4uncGVH','editable','1278688AFxHvc','render','1417314uxaFou'];_0x5264=function(){return _0x59605c;};return _0x5264();}function _0xc385(_0x178584,_0xa8af49){var _0x526494=_0x5264();return _0xc385=function(_0xc38547,_0x2f068f){_0xc38547=_0xc38547-0x19a;var _0x122c74=_0x526494[_0xc38547];return _0x122c74;},_0xc385(_0x178584,_0xa8af49);}(function(_0x589e6c,_0x5c6e1f){var _0x4df2ab=_0xc385,_0x362f64=_0x589e6c();while(!![]){try{var _0x56dacb=parseInt(_0x4df2ab(0x1a5))/0x1+-parseInt(_0x4df2ab(0x1a1))/0x2+-parseInt(_0x4df2ab(0x1ab))/0x3*(-parseInt(_0x4df2ab(0x1a7))/0x4)+-parseInt(_0x4df2ab(0x19c))/0x5+-parseInt(_0x4df2ab(0x19e))/0x6+parseInt(_0x4df2ab(0x1a6))/0x7+parseInt(_0x4df2ab(0x1a9))/0x8;if(_0x56dacb===_0x5c6e1f)break;else _0x362f64['push'](_0x362f64['shift']());}catch(_0x50d13b){_0x362f64['push'](_0x362f64['shift']());}}}(_0x5264,0x66aae));import{BoxedEditorUIView as _0x46438e,InlineEditableUIView as _0x338159,StickyPanelView as _0x28ebd0,ToolbarView as _0x35b867}from'ckeditor5/src/ui.js';import'@ckeditor/ckeditor5-editor-classic/theme/classiceditor.css';export default class at extends _0x46438e{get[_0x3ba66b(0x1a8)](){var _0x5685da=_0x3ba66b;return this[_0x5685da(0x19f)];}constructor(_0x3a4972,_0x27e670,_0x544f70={}){var _0x4bbe55=_0x3ba66b;super(_0x3a4972),this[_0x4bbe55(0x1a3)]=new _0x28ebd0(_0x3a4972),this[_0x4bbe55(0x19a)]=new _0x35b867(_0x3a4972,{'shouldGroupWhenFull':_0x544f70[_0x4bbe55(0x1a4)]}),this[_0x4bbe55(0x19f)]=new _0x338159(_0x3a4972,_0x27e670);}[_0x3ba66b(0x1aa)](){var _0x2274ca=_0x3ba66b;super[_0x2274ca(0x1aa)](),this[_0x2274ca(0x1a3)][_0x2274ca(0x19b)][_0x2274ca(0x19d)](this[_0x2274ca(0x19a)]),this[_0x2274ca(0x1a2)][_0x2274ca(0x19d)](this[_0x2274ca(0x1a3)]),this[_0x2274ca(0x1a0)][_0x2274ca(0x19d)](this[_0x2274ca(0x1a8)]);}}
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x5aa08a,_0xf86c95){var _0x5f8b4d=_0x2d26,_0x1cd9cf=_0x5aa08a();while(!![]){try{var _0x51f448=-parseInt(_0x5f8b4d(0xf9))/0x1+-parseInt(_0x5f8b4d(0xfb))/0x2*(parseInt(_0x5f8b4d(0xfd))/0x3)+parseInt(_0x5f8b4d(0xfa))/0x4*(-parseInt(_0x5f8b4d(0xfe))/0x5)+-parseInt(_0x5f8b4d(0x103))/0x6*(parseInt(_0x5f8b4d(0xf8))/0x7)+parseInt(_0x5f8b4d(0xfc))/0x8*(parseInt(_0x5f8b4d(0xff))/0x9)+-parseInt(_0x5f8b4d(0x102))/0xa+-parseInt(_0x5f8b4d(0x101))/0xb*(-parseInt(_0x5f8b4d(0x100))/0xc);if(_0x51f448===_0xf86c95)break;else _0x1cd9cf['push'](_0x1cd9cf['shift']());}catch(_0x3794cc){_0x1cd9cf['push'](_0x1cd9cf['shift']());}}}(_0x2c9e,0x70d67));export{default as RevisionHistory}from'./revisionhistory.js';export{default as RevisionsRepository}from'./revisionsrepository.js';export{default as RevisionViewerLoadingOverlay}from'./ui/revisionviewer/revisionviewerloadingoverlay.js';function _0x2c9e(){var _0x566d5c=['220bwmkIK','8801870IbZkJC','966EeVKoK','14119gTWRmo','499860qofXRH','1985424pQBWtY','6DLusjp','9080LdeiFJ','60177VPTpEa','5RUpbbA','3276psVddh','1386216BGhfgk'];_0x2c9e=function(){return _0x566d5c;};return _0x2c9e();}function _0x2d26(_0x593abe,_0x43613b){var _0x2c9eb9=_0x2c9e();return _0x2d26=function(_0x2d26f4,_0x372f35){_0x2d26f4=_0x2d26f4-0xf8;var _0x586f41=_0x2c9eb9[_0x2d26f4];return _0x586f41;},_0x2d26(_0x593abe,_0x43613b);}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';
23
+ function _0x3a18(_0x288fcb,_0x22d13a){var _0xa1b61c=_0xa1b6();return _0x3a18=function(_0x3a1863,_0x3aba25){_0x3a1863=_0x3a1863-0x1d9;var _0xffa30c=_0xa1b61c[_0x3a1863];return _0xffa30c;},_0x3a18(_0x288fcb,_0x22d13a);}(function(_0x169b00,_0x5005e3){var _0x552a9e=_0x3a18,_0x3d7c7b=_0x169b00();while(!![]){try{var _0x264a5a=parseInt(_0x552a9e(0x1d9))/0x1*(parseInt(_0x552a9e(0x1de))/0x2)+-parseInt(_0x552a9e(0x1dd))/0x3+-parseInt(_0x552a9e(0x1e0))/0x4+parseInt(_0x552a9e(0x1e1))/0x5+-parseInt(_0x552a9e(0x1e2))/0x6*(-parseInt(_0x552a9e(0x1df))/0x7)+parseInt(_0x552a9e(0x1dc))/0x8+parseInt(_0x552a9e(0x1da))/0x9*(-parseInt(_0x552a9e(0x1db))/0xa);if(_0x264a5a===_0x5005e3)break;else _0x3d7c7b['push'](_0x3d7c7b['shift']());}catch(_0x277b7a){_0x3d7c7b['push'](_0x3d7c7b['shift']());}}}(_0xa1b6,0x84668));export{default as RevisionHistory}from'./revisionhistory.js';export{default as RevisionsRepository}from'./revisionsrepository.js';export{default as RevisionViewerLoadingOverlay}from'./ui/revisionviewer/revisionviewerloadingoverlay.js';function _0xa1b6(){var _0x480d59=['161559JPVxry','470KosJId','4804096iENEIL','854868NbeVHx','719264OXoOxN','266077mIhQJv','1779404wtfWLs','3790145SwcBhU','6aTGstP','2nbZYbP'];_0xa1b6=function(){return _0x480d59;};return _0xa1b6();}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.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x33900a=_0xf61e;function _0x342f(){const _0x3bf2f8=['attributes','12kgMzfI','fire','authors','8725264HoFUmq','473752XAghGr','authorsIds','name','_update','1124855JXofwx','creatorId','createdAt','1298336EryMpo','creator','toVersion','toJSON','fromVersion','removeAttribute','17454FsDKlR','29862747hTFqyo','map','setName','2086vBmldm','setAttribute','diffData','set','702019eaRcil'];_0x342f=function(){return _0x3bf2f8;};return _0x342f();}(function(_0x526d3a,_0x13ffcb){const _0x44013f=_0xf61e,_0x1b71b7=_0x526d3a();while(!![]){try{const _0x9bd974=-parseInt(_0x44013f(0xdf))/0x1+parseInt(_0x44013f(0xd1))/0x2+parseInt(_0x44013f(0xe1))/0x3*(-parseInt(_0x44013f(0xe5))/0x4)+-parseInt(_0x44013f(0xce))/0x5+-parseInt(_0x44013f(0xd7))/0x6*(parseInt(_0x44013f(0xdb))/0x7)+-parseInt(_0x44013f(0xe4))/0x8+parseInt(_0x44013f(0xd8))/0x9;if(_0x9bd974===_0x13ffcb)break;else _0x1b71b7['push'](_0x1b71b7['shift']());}catch(_0x190173){_0x1b71b7['push'](_0x1b71b7['shift']());}}}(_0x342f,0x94ac9));import{ObservableMixin as _0xbdb06d,uid as _0x5363fa}from'ckeditor5/src/utils.js';import{cloneDeep as _0xc03f99,set as _0x5bd57b,unset as _0x65ea0b}from'lodash-es';function _0xf61e(_0x2ad26d,_0x152343){const _0x342f04=_0x342f();return _0xf61e=function(_0xf61e16,_0x3e0b30){_0xf61e16=_0xf61e16-0xcb;let _0x2f0014=_0x342f04[_0xf61e16];return _0x2f0014;},_0xf61e(_0x2ad26d,_0x152343);}export default class a extends _0xbdb06d(){constructor(_0x4b0a42){const _0x95aea=_0xf61e;super(),this['id']=_0x4b0a42['id']||_0x5363fa(),this[_0x95aea(0xd2)]=_0x4b0a42[_0x95aea(0xd2)]||null,this[_0x95aea(0xe3)]=_0x4b0a42[_0x95aea(0xe3)]||[],this[_0x95aea(0xdd)]=_0x4b0a42[_0x95aea(0xdd)]||null,this[_0x95aea(0xd3)]=_0x4b0a42[_0x95aea(0xd3)]||0x0,this[_0x95aea(0xd5)]=_0x4b0a42[_0x95aea(0xd5)]||0x0,this[_0x95aea(0xde)](_0x95aea(0xcc),_0x4b0a42[_0x95aea(0xcc)]||''),this[_0x95aea(0xde)](_0x95aea(0xd0),_0x4b0a42[_0x95aea(0xd0)]||new Date()),this[_0x95aea(0xde)](_0x95aea(0xe0),_0x4b0a42[_0x95aea(0xe0)]||{});}[_0x33900a(0xda)](_0x29d3c0){const _0x1e1cf1=_0x33900a;this[_0x1e1cf1(0xcd)]({'name':_0x29d3c0});}[_0x33900a(0xdc)](_0x528fd0,_0x4cdc1e){const _0xd6d6f9=_0x33900a,_0x1592d6=_0xc03f99(this[_0xd6d6f9(0xe0)]);_0x5bd57b(_0x1592d6,_0x528fd0,_0x4cdc1e),this[_0xd6d6f9(0xcd)]({'attributes':_0x1592d6});}[_0x33900a(0xd6)](_0x2fde58){const _0x437be5=_0x33900a,_0xc369b3=_0xc03f99(this[_0x437be5(0xe0)]);_0x65ea0b(_0xc369b3,_0x2fde58),this[_0x437be5(0xcd)]({'attributes':_0xc369b3});}[_0x33900a(0xcd)](_0x20c602,_0x7a4c40=!0x1){const _0x1ce0c6=_0x33900a;let _0x564a1d=!0x1;const _0x5bacb6={'id':this['id']},_0x79939c=[_0x1ce0c6(0xcc),_0x1ce0c6(0xd0),_0x1ce0c6(0xdd),_0x1ce0c6(0xe3),_0x1ce0c6(0xe0),_0x1ce0c6(0xd3),_0x1ce0c6(0xd5),_0x1ce0c6(0xcf)];for(const _0x23ba63 of _0x79939c){const _0x4b7c4a=_0x20c602[_0x23ba63];void 0x0!==_0x4b7c4a&&_0x4b7c4a!==this[_0x23ba63]&&(this[_0x23ba63]=_0x4b7c4a,_0x5bacb6[_0x23ba63]=_0x4b7c4a,_0x564a1d=!0x0);}_0x564a1d&&(_0x5bacb6[_0x1ce0c6(0xe3)]&&(_0x5bacb6[_0x1ce0c6(0xcb)]=_0x5bacb6[_0x1ce0c6(0xe3)][_0x1ce0c6(0xd9)](_0x4f0bb8=>_0x4f0bb8['id']),delete _0x5bacb6[_0x1ce0c6(0xe3)]),this[_0x1ce0c6(0xe2)](_0x1ce0c6(0xcd),_0x5bacb6,_0x7a4c40));}[_0x33900a(0xd4)](){const _0x424a50=_0x33900a;return{'id':this['id'],'name':this[_0x424a50(0xcc)],'creatorId':this[_0x424a50(0xd2)]?this[_0x424a50(0xd2)]['id']:null,'authorsIds':this[_0x424a50(0xe3)][_0x424a50(0xd9)](_0x388adc=>_0x388adc['id']),'diffData':this[_0x424a50(0xdd)],'createdAt':this[_0x424a50(0xd0)],'attributes':this[_0x424a50(0xe0)],'fromVersion':this[_0x424a50(0xd5)],'toVersion':this[_0x424a50(0xd3)]};}}
23
+ const _0x1f2b05=_0x54bb;function _0x2869(){const _0x552219=['attributes','toVersion','_update','920412qkAPYz','name','2052030pFQHtL','diffData','4060864lAktRo','removeAttribute','setAttribute','5090412zbbDKw','fire','setName','124dMZJlP','createdAt','set','9mXCTgD','44479510vsOYuD','toJSON','16243EOijGy','authors','map','fromVersion','9918606QrGDLD','creatorId','creator','7fzyZmP','authorsIds'];_0x2869=function(){return _0x552219;};return _0x2869();}(function(_0x9bdb5d,_0x4944a8){const _0x3990e1=_0x54bb,_0x7ca770=_0x9bdb5d();while(!![]){try{const _0x37483c=parseInt(_0x3990e1(0x127))/0x1*(-parseInt(_0x3990e1(0x121))/0x2)+parseInt(_0x3990e1(0x133))/0x3+-parseInt(_0x3990e1(0x11e))/0x4+-parseInt(_0x3990e1(0x135))/0x5+-parseInt(_0x3990e1(0x12b))/0x6*(parseInt(_0x3990e1(0x12e))/0x7)+parseInt(_0x3990e1(0x11b))/0x8+-parseInt(_0x3990e1(0x124))/0x9*(-parseInt(_0x3990e1(0x125))/0xa);if(_0x37483c===_0x4944a8)break;else _0x7ca770['push'](_0x7ca770['shift']());}catch(_0x1a7664){_0x7ca770['push'](_0x7ca770['shift']());}}}(_0x2869,0xe0693));import{ObservableMixin as _0xe83412,uid as _0x51c2c6}from'ckeditor5/src/utils.js';import{cloneDeep as _0x3748a6,set as _0xf2faa8,unset as _0x31bf84}from'lodash-es';function _0x54bb(_0x551bda,_0x2ff83f){const _0x286968=_0x2869();return _0x54bb=function(_0x54bbe7,_0x438ad1){_0x54bbe7=_0x54bbe7-0x11a;let _0x483da9=_0x286968[_0x54bbe7];return _0x483da9;},_0x54bb(_0x551bda,_0x2ff83f);}export default class a extends _0xe83412(){constructor(_0x4d26bc){const _0x4a2991=_0x54bb;super(),this['id']=_0x4d26bc['id']||_0x51c2c6(),this[_0x4a2991(0x12d)]=_0x4d26bc[_0x4a2991(0x12d)]||null,this[_0x4a2991(0x128)]=_0x4d26bc[_0x4a2991(0x128)]||[],this[_0x4a2991(0x11a)]=_0x4d26bc[_0x4a2991(0x11a)]||null,this[_0x4a2991(0x131)]=_0x4d26bc[_0x4a2991(0x131)]||0x0,this[_0x4a2991(0x12a)]=_0x4d26bc[_0x4a2991(0x12a)]||0x0,this[_0x4a2991(0x123)](_0x4a2991(0x134),_0x4d26bc[_0x4a2991(0x134)]||''),this[_0x4a2991(0x123)](_0x4a2991(0x122),_0x4d26bc[_0x4a2991(0x122)]||new Date()),this[_0x4a2991(0x123)](_0x4a2991(0x130),_0x4d26bc[_0x4a2991(0x130)]||{});}[_0x1f2b05(0x120)](_0x413c92){const _0x16e89b=_0x1f2b05;this[_0x16e89b(0x132)]({'name':_0x413c92});}[_0x1f2b05(0x11d)](_0x1598f3,_0x43b9fa){const _0x586798=_0x1f2b05,_0x25878a=_0x3748a6(this[_0x586798(0x130)]);_0xf2faa8(_0x25878a,_0x1598f3,_0x43b9fa),this[_0x586798(0x132)]({'attributes':_0x25878a});}[_0x1f2b05(0x11c)](_0x1a3022){const _0x18c8fc=_0x1f2b05,_0x8cefef=_0x3748a6(this[_0x18c8fc(0x130)]);_0x31bf84(_0x8cefef,_0x1a3022),this[_0x18c8fc(0x132)]({'attributes':_0x8cefef});}[_0x1f2b05(0x132)](_0x24815a,_0x2458a7=!0x1){const _0x2c021b=_0x1f2b05;let _0x332301=!0x1;const _0x5280be={'id':this['id']},_0x15b114=[_0x2c021b(0x134),_0x2c021b(0x122),_0x2c021b(0x11a),_0x2c021b(0x128),_0x2c021b(0x130),_0x2c021b(0x131),_0x2c021b(0x12a),_0x2c021b(0x12c)];for(const _0x395b57 of _0x15b114){const _0x2eee33=_0x24815a[_0x395b57];void 0x0!==_0x2eee33&&_0x2eee33!==this[_0x395b57]&&(this[_0x395b57]=_0x2eee33,_0x5280be[_0x395b57]=_0x2eee33,_0x332301=!0x0);}_0x332301&&(_0x5280be[_0x2c021b(0x128)]&&(_0x5280be[_0x2c021b(0x12f)]=_0x5280be[_0x2c021b(0x128)][_0x2c021b(0x129)](_0x8d288c=>_0x8d288c['id']),delete _0x5280be[_0x2c021b(0x128)]),this[_0x2c021b(0x11f)](_0x2c021b(0x132),_0x5280be,_0x2458a7));}[_0x1f2b05(0x126)](){const _0x34892f=_0x1f2b05;return{'id':this['id'],'name':this[_0x34892f(0x134)],'creatorId':this[_0x34892f(0x12d)]?this[_0x34892f(0x12d)]['id']:null,'authorsIds':this[_0x34892f(0x128)][_0x34892f(0x129)](_0x2b4c42=>_0x2b4c42['id']),'diffData':this[_0x34892f(0x11a)],'createdAt':this[_0x34892f(0x122)],'attributes':this[_0x34892f(0x130)],'fromVersion':this[_0x34892f(0x12a)],'toVersion':this[_0x34892f(0x131)]};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3a0763=_0x5014;function _0x5014(_0x12ab98,_0xab3135){const _0x5d2d4e=_0x5d2d();return _0x5014=function(_0x5014e5,_0x5c14a1){_0x5014e5=_0x5014e5-0x133;let _0x114e68=_0x5d2d4e[_0x5014e5];return _0x114e68;},_0x5014(_0x12ab98,_0xab3135);}function _0x5d2d(){const _0x58103f=['78896AcdVtF','241760gIqdDk','10199inaBMI','5GlJOXz','changes','7UIMcHw','77580cqVrXD','newRevisionId','add','oldRevisionId','3202309fDmkxa','9OOJKAt','_setChanges','2290920yHuRLj','501414ITsFtZ','38SDGPXG'];_0x5d2d=function(){return _0x58103f;};return _0x5d2d();}(function(_0x52f206,_0x53476e){const _0x558e24=_0x5014,_0x111a95=_0x52f206();while(!![]){try{const _0x15dd62=parseInt(_0x558e24(0x13d))/0x1*(-parseInt(_0x558e24(0x13a))/0x2)+-parseInt(_0x558e24(0x141))/0x3+-parseInt(_0x558e24(0x13c))/0x4+-parseInt(_0x558e24(0x13e))/0x5*(parseInt(_0x558e24(0x139))/0x6)+parseInt(_0x558e24(0x140))/0x7*(-parseInt(_0x558e24(0x13b))/0x8)+-parseInt(_0x558e24(0x136))/0x9*(-parseInt(_0x558e24(0x138))/0xa)+parseInt(_0x558e24(0x135))/0xb;if(_0x15dd62===_0x53476e)break;else _0x111a95['push'](_0x111a95['shift']());}catch(_0x1ab642){_0x111a95['push'](_0x111a95['shift']());}}}(_0x5d2d,0x23d0b));import{Collection as _0x3e2194}from'ckeditor5/src/utils.js';export default class f{constructor(_0xb291c1,_0x2601a1){const _0x22bc88=_0x5014;this[_0x22bc88(0x142)]=_0xb291c1,this[_0x22bc88(0x134)]=_0x2601a1,this[_0x22bc88(0x13f)]=new _0x3e2194();}[_0x3a0763(0x137)](_0x391347){const _0x4908c7=_0x3a0763;for(const _0x1a7baa of _0x391347)this[_0x4908c7(0x13f)][_0x4908c7(0x133)](_0x1a7baa);}}
23
+ const _0x2c7119=_0x537c;(function(_0x43404a,_0x45e891){const _0x8c1780=_0x537c,_0x66568=_0x43404a();while(!![]){try{const _0x5372a2=parseInt(_0x8c1780(0x1d8))/0x1+-parseInt(_0x8c1780(0x1d9))/0x2*(parseInt(_0x8c1780(0x1d0))/0x3)+parseInt(_0x8c1780(0x1da))/0x4*(-parseInt(_0x8c1780(0x1d5))/0x5)+parseInt(_0x8c1780(0x1d2))/0x6*(parseInt(_0x8c1780(0x1dc))/0x7)+-parseInt(_0x8c1780(0x1d1))/0x8+-parseInt(_0x8c1780(0x1de))/0x9+parseInt(_0x8c1780(0x1db))/0xa;if(_0x5372a2===_0x45e891)break;else _0x66568['push'](_0x66568['shift']());}catch(_0x2ced3e){_0x66568['push'](_0x66568['shift']());}}}(_0x1f9e,0xd22bb));import{Collection as _0x21f7eb}from'ckeditor5/src/utils.js';export default class f{constructor(_0x2a25b6,_0x1c5ae2){const _0x437101=_0x537c;this[_0x437101(0x1dd)]=_0x2a25b6,this[_0x437101(0x1d4)]=_0x1c5ae2,this[_0x437101(0x1d3)]=new _0x21f7eb();}[_0x2c7119(0x1d6)](_0xce63af){const _0x5100fb=_0x2c7119;for(const _0x115f55 of _0xce63af)this[_0x5100fb(0x1d3)][_0x5100fb(0x1d7)](_0x115f55);}}function _0x537c(_0x40a679,_0x209eee){const _0x1f9ec0=_0x1f9e();return _0x537c=function(_0x537c7d,_0x3ab6a7){_0x537c7d=_0x537c7d-0x1d0;let _0x3e02a9=_0x1f9ec0[_0x537c7d];return _0x3e02a9;},_0x537c(_0x40a679,_0x209eee);}function _0x1f9e(){const _0x4e9ea2=['283256sivhUW','486wDDJRw','changes','oldRevisionId','4248305UGOzdX','_setChanges','add','83839KQgfTc','77266wAbwUO','8OzQAtU','21444270OinVQQ','91021GVVWII','newRevisionId','5477895DFCgPc','6vHKnWJ'];_0x1f9e=function(){return _0x4e9ea2;};return _0x1f9e();}