@ckeditor/ckeditor5-revision-history 41.3.0-alpha.3 → 41.3.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 (185) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +5 -6
  3. package/src/changeitem.js +1 -1
  4. package/src/editor/revisionviewereditor.js +1 -1
  5. package/src/editor/revisionviewereditorui.js +1 -1
  6. package/src/editor/revisionviewereditoruiview.js +1 -1
  7. package/src/index.js +1 -1
  8. package/src/revision.js +1 -1
  9. package/src/revisiondiff.js +1 -1
  10. package/src/revisionhistory.js +1 -1
  11. package/src/revisionsrepository.js +1 -1
  12. package/src/revisiontracker.js +1 -1
  13. package/src/revisionviewer.js +1 -1
  14. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  15. package/src/ui/revision/revisionauthorview.js +1 -1
  16. package/src/ui/revision/revisionnameview.js +1 -1
  17. package/src/ui/revision/revisionview.js +1 -1
  18. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  19. package/src/ui/revision/subrevisionview.js +1 -1
  20. package/src/ui/revision/utils.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +6 -30
  22. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  23. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  26. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  27. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  28. package/src/ui/revisionssidebar/utils.js +1 -1
  29. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  30. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  31. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  32. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  33. package/src/utils/common-translations.d.ts +1 -1
  34. package/src/utils/common-translations.js +1 -1
  35. package/theme/revisionhistorysaverevisionform.css +4 -11
  36. package/dist/content-index.css +0 -374
  37. package/dist/editor-index.css +0 -742
  38. package/dist/index.css +0 -1712
  39. package/dist/translations/af.d.ts +0 -8
  40. package/dist/translations/af.js +0 -23
  41. package/dist/translations/ar.d.ts +0 -8
  42. package/dist/translations/ar.js +0 -23
  43. package/dist/translations/az.d.ts +0 -8
  44. package/dist/translations/az.js +0 -23
  45. package/dist/translations/bg.d.ts +0 -8
  46. package/dist/translations/bg.js +0 -23
  47. package/dist/translations/bn.d.ts +0 -8
  48. package/dist/translations/bn.js +0 -23
  49. package/dist/translations/bs.d.ts +0 -8
  50. package/dist/translations/bs.js +0 -23
  51. package/dist/translations/ca.d.ts +0 -8
  52. package/dist/translations/ca.js +0 -23
  53. package/dist/translations/cs.d.ts +0 -8
  54. package/dist/translations/cs.js +0 -23
  55. package/dist/translations/da.d.ts +0 -8
  56. package/dist/translations/da.js +0 -23
  57. package/dist/translations/de-ch.d.ts +0 -8
  58. package/dist/translations/de-ch.js +0 -23
  59. package/dist/translations/de.d.ts +0 -8
  60. package/dist/translations/de.js +0 -23
  61. package/dist/translations/el.d.ts +0 -8
  62. package/dist/translations/el.js +0 -23
  63. package/dist/translations/en-au.d.ts +0 -8
  64. package/dist/translations/en-au.js +0 -23
  65. package/dist/translations/en-gb.d.ts +0 -8
  66. package/dist/translations/en-gb.js +0 -23
  67. package/dist/translations/en.d.ts +0 -8
  68. package/dist/translations/en.js +0 -23
  69. package/dist/translations/es-co.d.ts +0 -8
  70. package/dist/translations/es-co.js +0 -23
  71. package/dist/translations/es.d.ts +0 -8
  72. package/dist/translations/es.js +0 -23
  73. package/dist/translations/et.d.ts +0 -8
  74. package/dist/translations/et.js +0 -23
  75. package/dist/translations/fa.d.ts +0 -8
  76. package/dist/translations/fa.js +0 -23
  77. package/dist/translations/fi.d.ts +0 -8
  78. package/dist/translations/fi.js +0 -23
  79. package/dist/translations/fr.d.ts +0 -8
  80. package/dist/translations/fr.js +0 -23
  81. package/dist/translations/gl.d.ts +0 -8
  82. package/dist/translations/gl.js +0 -23
  83. package/dist/translations/he.d.ts +0 -8
  84. package/dist/translations/he.js +0 -23
  85. package/dist/translations/hi.d.ts +0 -8
  86. package/dist/translations/hi.js +0 -23
  87. package/dist/translations/hr.d.ts +0 -8
  88. package/dist/translations/hr.js +0 -23
  89. package/dist/translations/hu.d.ts +0 -8
  90. package/dist/translations/hu.js +0 -23
  91. package/dist/translations/id.d.ts +0 -8
  92. package/dist/translations/id.js +0 -23
  93. package/dist/translations/it.d.ts +0 -8
  94. package/dist/translations/it.js +0 -23
  95. package/dist/translations/ja.d.ts +0 -8
  96. package/dist/translations/ja.js +0 -23
  97. package/dist/translations/jv.d.ts +0 -8
  98. package/dist/translations/jv.js +0 -23
  99. package/dist/translations/ko.d.ts +0 -8
  100. package/dist/translations/ko.js +0 -23
  101. package/dist/translations/ku.d.ts +0 -8
  102. package/dist/translations/ku.js +0 -23
  103. package/dist/translations/lt.d.ts +0 -8
  104. package/dist/translations/lt.js +0 -23
  105. package/dist/translations/lv.d.ts +0 -8
  106. package/dist/translations/lv.js +0 -23
  107. package/dist/translations/ms.d.ts +0 -8
  108. package/dist/translations/ms.js +0 -23
  109. package/dist/translations/ne.d.ts +0 -8
  110. package/dist/translations/ne.js +0 -23
  111. package/dist/translations/nl.d.ts +0 -8
  112. package/dist/translations/nl.js +0 -23
  113. package/dist/translations/no.d.ts +0 -8
  114. package/dist/translations/no.js +0 -23
  115. package/dist/translations/pl.d.ts +0 -8
  116. package/dist/translations/pl.js +0 -23
  117. package/dist/translations/pt-br.d.ts +0 -8
  118. package/dist/translations/pt-br.js +0 -23
  119. package/dist/translations/pt.d.ts +0 -8
  120. package/dist/translations/pt.js +0 -23
  121. package/dist/translations/ro.d.ts +0 -8
  122. package/dist/translations/ro.js +0 -23
  123. package/dist/translations/ru.d.ts +0 -8
  124. package/dist/translations/ru.js +0 -23
  125. package/dist/translations/sk.d.ts +0 -8
  126. package/dist/translations/sk.js +0 -23
  127. package/dist/translations/sr-latn.d.ts +0 -8
  128. package/dist/translations/sr-latn.js +0 -23
  129. package/dist/translations/sr.d.ts +0 -8
  130. package/dist/translations/sr.js +0 -23
  131. package/dist/translations/sv.d.ts +0 -8
  132. package/dist/translations/sv.js +0 -23
  133. package/dist/translations/th.d.ts +0 -8
  134. package/dist/translations/th.js +0 -23
  135. package/dist/translations/tk.d.ts +0 -8
  136. package/dist/translations/tk.js +0 -23
  137. package/dist/translations/tr.d.ts +0 -8
  138. package/dist/translations/tr.js +0 -23
  139. package/dist/translations/tt.d.ts +0 -8
  140. package/dist/translations/tt.js +0 -23
  141. package/dist/translations/ug.d.ts +0 -8
  142. package/dist/translations/ug.js +0 -23
  143. package/dist/translations/uk.d.ts +0 -8
  144. package/dist/translations/uk.js +0 -23
  145. package/dist/translations/ur.d.ts +0 -8
  146. package/dist/translations/ur.js +0 -23
  147. package/dist/translations/vi.d.ts +0 -8
  148. package/dist/translations/vi.js +0 -23
  149. package/dist/translations/zh-cn.d.ts +0 -8
  150. package/dist/translations/zh-cn.js +0 -23
  151. package/dist/translations/zh.d.ts +0 -8
  152. package/dist/translations/zh.js +0 -23
  153. package/dist/types/augmentation.d.ts +0 -33
  154. package/dist/types/changeitem.d.ts +0 -62
  155. package/dist/types/editor/revisionviewereditor.d.ts +0 -31
  156. package/dist/types/editor/revisionviewereditorui.d.ts +0 -32
  157. package/dist/types/editor/revisionviewereditoruiview.d.ts +0 -47
  158. package/dist/types/index.d.ts +0 -19
  159. package/dist/types/revision.d.ts +0 -157
  160. package/dist/types/revisiondiff.d.ts +0 -28
  161. package/dist/types/revisionhistory.d.ts +0 -103
  162. package/dist/types/revisionhistoryadapter.d.ts +0 -68
  163. package/dist/types/revisionhistoryconfig.d.ts +0 -75
  164. package/dist/types/revisionsrepository.d.ts +0 -56
  165. package/dist/types/revisiontracker.d.ts +0 -89
  166. package/dist/types/revisionviewer.d.ts +0 -29
  167. package/dist/types/ui/revision/createrevisionactionsdropdown.d.ts +0 -14
  168. package/dist/types/ui/revision/revisionauthorview.d.ts +0 -9
  169. package/dist/types/ui/revision/revisionnameview.d.ts +0 -9
  170. package/dist/types/ui/revision/revisionview.d.ts +0 -99
  171. package/dist/types/ui/revision/subrevisioncollapserview.d.ts +0 -25
  172. package/dist/types/ui/revision/subrevisionview.d.ts +0 -38
  173. package/dist/types/ui/revision/utils.d.ts +0 -9
  174. package/dist/types/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +0 -85
  175. package/dist/types/ui/revisionhistory/revisionhistoryui.d.ts +0 -30
  176. package/dist/types/ui/revisionssidebar/revisionssidebar.d.ts +0 -48
  177. package/dist/types/ui/revisionssidebar/revisionssidebarheaderview.d.ts +0 -9
  178. package/dist/types/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +0 -33
  179. package/dist/types/ui/revisionssidebar/revisionssidebarview.d.ts +0 -48
  180. package/dist/types/ui/revisionssidebar/utils.d.ts +0 -13
  181. package/dist/types/ui/revisionviewer/changedetailsview.d.ts +0 -26
  182. package/dist/types/ui/revisionviewer/changesnavigationview.d.ts +0 -44
  183. package/dist/types/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +0 -30
  184. package/dist/types/ui/revisionviewer/revisionviewerui.d.ts +0 -32
  185. package/dist/types/utils/common-translations.d.ts +0 -15
@@ -1,99 +0,0 @@
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/revision/revisionview
11
- */
12
- import type { BaseEvent, Locale } from 'ckeditor5/src/utils.js';
13
- import { View, type DropdownView } from 'ckeditor5/src/ui.js';
14
- import RevisionNameView from './revisionnameview.js';
15
- import '../../../theme/revision/revision.css';
16
- import type Revision from '../../revision.js';
17
- import type { RevisionAction } from '../revisionssidebar/revisionssidebar.js';
18
- declare const RevisionView_base: import("ckeditor5/src/utils.js").Mixed<typeof View, import("@ckeditor/ckeditor5-collaboration-core/src/utils/confirmmixin.js").ConfirmApi>;
19
- /**
20
- * TODO
21
- */
22
- export default class RevisionView extends RevisionView_base {
23
- id: string;
24
- revisionNameView: RevisionNameView;
25
- /**
26
- * It holds the revision actions drop-down view if actions are provided,
27
- * or just empty text otherwise.
28
- */
29
- revisionActionsView: DropdownView | '';
30
- /**
31
- * @observable
32
- */
33
- name: string;
34
- /**
35
- * @observable
36
- */
37
- createdAt: Date;
38
- /**
39
- * @observable
40
- */
41
- isSelected: boolean;
42
- /**
43
- * @observable
44
- */
45
- isHighlighted: boolean;
46
- /**
47
- * @observable
48
- */
49
- isActionsDropdownOpen: boolean;
50
- /**
51
- * @observable
52
- */
53
- isReady: boolean;
54
- /**
55
- * @observable
56
- */
57
- isEnabled: boolean;
58
- constructor(locale: Locale, revision: Revision, revisionActions: Array<RevisionAction>, requireRevisionName: boolean);
59
- /**
60
- * @inheritDoc
61
- */
62
- render(): void;
63
- /**
64
- * TODO
65
- */
66
- select(): void;
67
- /**
68
- * TODO
69
- */
70
- deselect(): void;
71
- /**
72
- * TODO
73
- */
74
- highlight(): void;
75
- /**
76
- * TODO
77
- */
78
- unhighlight(): void;
79
- }
80
- /**
81
- * @eventName setName | revisionSetName
82
- */
83
- export interface RevisionSetNameEvent extends BaseEvent {
84
- name: 'setName' | 'revisionSetName';
85
- args: [{
86
- id: string;
87
- name: string;
88
- }];
89
- }
90
- /**
91
- * @eventName select | revisionSelected
92
- */
93
- export interface RevisionSelectedEvent extends BaseEvent {
94
- name: 'select' | 'revisionSelected';
95
- args: [{
96
- id: string;
97
- }];
98
- }
99
- export {};
@@ -1,25 +0,0 @@
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/revision/subrevisioncollapserview
11
- */
12
- import { View } from 'ckeditor5/src/ui.js';
13
- import type { Locale } from 'ckeditor5/src/utils.js';
14
- import '../../../theme/revision/subrevisioncollapser.css';
15
- export default class SubrevisionCollapserView extends View {
16
- /**
17
- * @observable
18
- */
19
- isVisible: boolean;
20
- constructor(locale: Locale);
21
- /**
22
- * TODO
23
- */
24
- toggle(): void;
25
- }
@@ -1,38 +0,0 @@
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/revision/subrevisionview
11
- */
12
- import { View } from 'ckeditor5/src/ui.js';
13
- import type { Locale } from 'ckeditor5/src/utils.js';
14
- import '../../../theme/revision/subrevision.css';
15
- import type Revision from '../../revision.js';
16
- /**
17
- * TODO
18
- */
19
- export default class SubrevisionView extends View {
20
- id: string;
21
- /**
22
- * @observable
23
- */
24
- createdAt: Date;
25
- /**
26
- * @observable
27
- */
28
- isSelected: boolean;
29
- constructor(locale: Locale, subRevision: Revision, parentRevisionId: string);
30
- /**
31
- * TODO
32
- */
33
- select(): void;
34
- /**
35
- * TODO
36
- */
37
- deselect(): void;
38
- }
@@ -1,9 +0,0 @@
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 {};
@@ -1,85 +0,0 @@
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 { ButtonView, LabeledFieldView, View, type InputTextView } from 'ckeditor5/src/ui.js';
10
- import { type BaseEvent, FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils.js';
11
- import '../../../theme/revisionhistorysaverevisionform.css';
12
- import '@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';
13
- /**
14
- * The media form view controller class.
15
- *
16
- * See {@link module:media-embed/ui/mediaformview~MediaFormView}.
17
- */
18
- export default class RevisionHistorySaveRevisionFormView extends View {
19
- /**
20
- * Tracks information about the DOM focus in the form.
21
- */
22
- readonly focusTracker: FocusTracker;
23
- /**
24
- * An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
25
- */
26
- readonly keystrokes: KeystrokeHandler;
27
- /**
28
- * The revision name input view.
29
- */
30
- revisionNameInputView: LabeledFieldView<InputTextView>;
31
- /**
32
- * The Save button view.
33
- */
34
- saveButtonView: ButtonView;
35
- /**
36
- * The Cancel button view.
37
- */
38
- cancelButtonView: ButtonView;
39
- /**
40
- * The value of the revision name input.
41
- *
42
- * @observable
43
- */
44
- revisionNameInputValue: string;
45
- constructor(locale: Locale, requireRevisionName: boolean);
46
- /**
47
- * @inheritDoc
48
- */
49
- render(): void;
50
- /**
51
- * Focuses the fist {@link #_focusables} in the form.
52
- */
53
- focus(): void;
54
- /**
55
- * The native DOM `value` of the {@link #revisionNameInputView} element.
56
- *
57
- * **Note**: Do not confuse it with the {@link module:ui/inputtext/inputtextview~InputTextView#value}
58
- * which works one way only and may not represent the actual state of the component in the DOM.
59
- */
60
- get revisionName(): string;
61
- set revisionName(name: string);
62
- /**
63
- * TODO
64
- */
65
- reset(): void;
66
- }
67
- /**
68
- * Fired when the form view is submitted (when one of the children triggered the submit event),
69
- * e.g. click on {@link #saveButtonView}.
70
- *
71
- * @eventName submit
72
- */
73
- export interface SaveRevisionFormSubmitEvent extends BaseEvent {
74
- name: 'submit';
75
- args: [];
76
- }
77
- /**
78
- * Fired when the form view is canceled, e.g. by a click on {@link #cancelButtonView}.
79
- *
80
- * @eventName cancel
81
- */
82
- export interface SaveRevisionFormCancelEvent extends BaseEvent {
83
- name: 'cancel';
84
- args: [];
85
- }
@@ -1,30 +0,0 @@
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
- }
@@ -1,48 +0,0 @@
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
- }
@@ -1,9 +0,0 @@
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';
@@ -1,33 +0,0 @@
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
- }
@@ -1,48 +0,0 @@
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
- }
@@ -1,13 +0,0 @@
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
- }
@@ -1,26 +0,0 @@
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
- }
@@ -1,44 +0,0 @@
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
- }
@@ -1,30 +0,0 @@
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
- }
@@ -1,32 +0,0 @@
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
- }
@@ -1,15 +0,0 @@
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 {};