@ckeditor/ckeditor5-revision-history 41.3.1 → 41.4.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 (252) hide show
  1. package/build/revision-history.js +1 -1
  2. package/build/translations/ti.js +1 -0
  3. package/dist/index-content.css +46 -0
  4. package/dist/index-editor.css +434 -0
  5. package/dist/index.css +782 -0
  6. package/dist/index.js +23 -0
  7. package/dist/translations/af.d.ts +8 -0
  8. package/dist/translations/af.js +23 -0
  9. package/dist/translations/af.umd.js +23 -0
  10. package/dist/translations/ar.d.ts +8 -0
  11. package/dist/translations/ar.js +23 -0
  12. package/dist/translations/ar.umd.js +23 -0
  13. package/dist/translations/az.d.ts +8 -0
  14. package/dist/translations/az.js +23 -0
  15. package/dist/translations/az.umd.js +23 -0
  16. package/dist/translations/bg.d.ts +8 -0
  17. package/dist/translations/bg.js +23 -0
  18. package/dist/translations/bg.umd.js +23 -0
  19. package/dist/translations/bn.d.ts +8 -0
  20. package/dist/translations/bn.js +23 -0
  21. package/dist/translations/bn.umd.js +23 -0
  22. package/dist/translations/bs.d.ts +8 -0
  23. package/dist/translations/bs.js +23 -0
  24. package/dist/translations/bs.umd.js +23 -0
  25. package/dist/translations/ca.d.ts +8 -0
  26. package/dist/translations/ca.js +23 -0
  27. package/dist/translations/ca.umd.js +23 -0
  28. package/dist/translations/cs.d.ts +8 -0
  29. package/dist/translations/cs.js +23 -0
  30. package/dist/translations/cs.umd.js +23 -0
  31. package/dist/translations/da.d.ts +8 -0
  32. package/dist/translations/da.js +23 -0
  33. package/dist/translations/da.umd.js +23 -0
  34. package/dist/translations/de-ch.d.ts +8 -0
  35. package/dist/translations/de-ch.js +23 -0
  36. package/dist/translations/de-ch.umd.js +23 -0
  37. package/dist/translations/de.d.ts +8 -0
  38. package/dist/translations/de.js +23 -0
  39. package/dist/translations/de.umd.js +23 -0
  40. package/dist/translations/el.d.ts +8 -0
  41. package/dist/translations/el.js +23 -0
  42. package/dist/translations/el.umd.js +23 -0
  43. package/dist/translations/en-au.d.ts +8 -0
  44. package/dist/translations/en-au.js +23 -0
  45. package/dist/translations/en-au.umd.js +23 -0
  46. package/dist/translations/en-gb.d.ts +8 -0
  47. package/dist/translations/en-gb.js +23 -0
  48. package/dist/translations/en-gb.umd.js +23 -0
  49. package/dist/translations/en.d.ts +8 -0
  50. package/dist/translations/en.js +23 -0
  51. package/dist/translations/en.umd.js +23 -0
  52. package/dist/translations/es-co.d.ts +8 -0
  53. package/dist/translations/es-co.js +23 -0
  54. package/dist/translations/es-co.umd.js +23 -0
  55. package/dist/translations/es.d.ts +8 -0
  56. package/dist/translations/es.js +23 -0
  57. package/dist/translations/es.umd.js +23 -0
  58. package/dist/translations/et.d.ts +8 -0
  59. package/dist/translations/et.js +23 -0
  60. package/dist/translations/et.umd.js +23 -0
  61. package/dist/translations/fa.d.ts +8 -0
  62. package/dist/translations/fa.js +23 -0
  63. package/dist/translations/fa.umd.js +23 -0
  64. package/dist/translations/fi.d.ts +8 -0
  65. package/dist/translations/fi.js +23 -0
  66. package/dist/translations/fi.umd.js +23 -0
  67. package/dist/translations/fr.d.ts +8 -0
  68. package/dist/translations/fr.js +23 -0
  69. package/dist/translations/fr.umd.js +23 -0
  70. package/dist/translations/gl.d.ts +8 -0
  71. package/dist/translations/gl.js +23 -0
  72. package/dist/translations/gl.umd.js +23 -0
  73. package/dist/translations/he.d.ts +8 -0
  74. package/dist/translations/he.js +23 -0
  75. package/dist/translations/he.umd.js +23 -0
  76. package/dist/translations/hi.d.ts +8 -0
  77. package/dist/translations/hi.js +23 -0
  78. package/dist/translations/hi.umd.js +23 -0
  79. package/dist/translations/hr.d.ts +8 -0
  80. package/dist/translations/hr.js +23 -0
  81. package/dist/translations/hr.umd.js +23 -0
  82. package/dist/translations/hu.d.ts +8 -0
  83. package/dist/translations/hu.js +23 -0
  84. package/dist/translations/hu.umd.js +23 -0
  85. package/dist/translations/id.d.ts +8 -0
  86. package/dist/translations/id.js +23 -0
  87. package/dist/translations/id.umd.js +23 -0
  88. package/dist/translations/it.d.ts +8 -0
  89. package/dist/translations/it.js +23 -0
  90. package/dist/translations/it.umd.js +23 -0
  91. package/dist/translations/ja.d.ts +8 -0
  92. package/dist/translations/ja.js +23 -0
  93. package/dist/translations/ja.umd.js +23 -0
  94. package/dist/translations/jv.d.ts +8 -0
  95. package/dist/translations/jv.js +23 -0
  96. package/dist/translations/jv.umd.js +23 -0
  97. package/dist/translations/ko.d.ts +8 -0
  98. package/dist/translations/ko.js +23 -0
  99. package/dist/translations/ko.umd.js +23 -0
  100. package/dist/translations/ku.d.ts +8 -0
  101. package/dist/translations/ku.js +23 -0
  102. package/dist/translations/ku.umd.js +23 -0
  103. package/dist/translations/lt.d.ts +8 -0
  104. package/dist/translations/lt.js +23 -0
  105. package/dist/translations/lt.umd.js +23 -0
  106. package/dist/translations/lv.d.ts +8 -0
  107. package/dist/translations/lv.js +23 -0
  108. package/dist/translations/lv.umd.js +23 -0
  109. package/dist/translations/ms.d.ts +8 -0
  110. package/dist/translations/ms.js +23 -0
  111. package/dist/translations/ms.umd.js +23 -0
  112. package/dist/translations/ne.d.ts +8 -0
  113. package/dist/translations/ne.js +23 -0
  114. package/dist/translations/ne.umd.js +23 -0
  115. package/dist/translations/nl.d.ts +8 -0
  116. package/dist/translations/nl.js +23 -0
  117. package/dist/translations/nl.umd.js +23 -0
  118. package/dist/translations/no.d.ts +8 -0
  119. package/dist/translations/no.js +23 -0
  120. package/dist/translations/no.umd.js +23 -0
  121. package/dist/translations/pl.d.ts +8 -0
  122. package/dist/translations/pl.js +23 -0
  123. package/dist/translations/pl.umd.js +23 -0
  124. package/dist/translations/pt-br.d.ts +8 -0
  125. package/dist/translations/pt-br.js +23 -0
  126. package/dist/translations/pt-br.umd.js +23 -0
  127. package/dist/translations/pt.d.ts +8 -0
  128. package/dist/translations/pt.js +23 -0
  129. package/dist/translations/pt.umd.js +23 -0
  130. package/dist/translations/ro.d.ts +8 -0
  131. package/dist/translations/ro.js +23 -0
  132. package/dist/translations/ro.umd.js +23 -0
  133. package/dist/translations/ru.d.ts +8 -0
  134. package/dist/translations/ru.js +23 -0
  135. package/dist/translations/ru.umd.js +23 -0
  136. package/dist/translations/sk.d.ts +8 -0
  137. package/dist/translations/sk.js +23 -0
  138. package/dist/translations/sk.umd.js +23 -0
  139. package/dist/translations/sr-latn.d.ts +8 -0
  140. package/dist/translations/sr-latn.js +23 -0
  141. package/dist/translations/sr-latn.umd.js +23 -0
  142. package/dist/translations/sr.d.ts +8 -0
  143. package/dist/translations/sr.js +23 -0
  144. package/dist/translations/sr.umd.js +23 -0
  145. package/dist/translations/sv.d.ts +8 -0
  146. package/dist/translations/sv.js +23 -0
  147. package/dist/translations/sv.umd.js +23 -0
  148. package/dist/translations/th.d.ts +8 -0
  149. package/dist/translations/th.js +23 -0
  150. package/dist/translations/th.umd.js +23 -0
  151. package/dist/translations/ti.d.ts +8 -0
  152. package/dist/translations/ti.js +23 -0
  153. package/dist/translations/ti.umd.js +23 -0
  154. package/dist/translations/tk.d.ts +8 -0
  155. package/dist/translations/tk.js +23 -0
  156. package/dist/translations/tk.umd.js +23 -0
  157. package/dist/translations/tr.d.ts +8 -0
  158. package/dist/translations/tr.js +23 -0
  159. package/dist/translations/tr.umd.js +23 -0
  160. package/dist/translations/tt.d.ts +8 -0
  161. package/dist/translations/tt.js +23 -0
  162. package/dist/translations/tt.umd.js +23 -0
  163. package/dist/translations/ug.d.ts +8 -0
  164. package/dist/translations/ug.js +23 -0
  165. package/dist/translations/ug.umd.js +23 -0
  166. package/dist/translations/uk.d.ts +8 -0
  167. package/dist/translations/uk.js +23 -0
  168. package/dist/translations/uk.umd.js +23 -0
  169. package/dist/translations/ur.d.ts +8 -0
  170. package/dist/translations/ur.js +23 -0
  171. package/dist/translations/ur.umd.js +23 -0
  172. package/dist/translations/vi.d.ts +8 -0
  173. package/dist/translations/vi.js +23 -0
  174. package/dist/translations/vi.umd.js +23 -0
  175. package/dist/translations/zh-cn.d.ts +8 -0
  176. package/dist/translations/zh-cn.js +23 -0
  177. package/dist/translations/zh-cn.umd.js +23 -0
  178. package/dist/translations/zh.d.ts +8 -0
  179. package/dist/translations/zh.js +23 -0
  180. package/dist/translations/zh.umd.js +23 -0
  181. package/dist/types/augmentation.d.ts +33 -0
  182. package/dist/types/changeitem.d.ts +62 -0
  183. package/dist/types/editor/revisionviewereditor.d.ts +31 -0
  184. package/dist/types/editor/revisionviewereditorui.d.ts +32 -0
  185. package/dist/types/editor/revisionviewereditoruiview.d.ts +47 -0
  186. package/dist/types/index.d.ts +19 -0
  187. package/dist/types/revision.d.ts +157 -0
  188. package/dist/types/revisiondiff.d.ts +28 -0
  189. package/dist/types/revisionhistory.d.ts +103 -0
  190. package/dist/types/revisionhistoryadapter.d.ts +68 -0
  191. package/dist/types/revisionhistoryconfig.d.ts +75 -0
  192. package/dist/types/revisionsrepository.d.ts +56 -0
  193. package/dist/types/revisiontracker.d.ts +89 -0
  194. package/dist/types/revisionviewer.d.ts +29 -0
  195. package/dist/types/ui/revision/createrevisionactionsdropdown.d.ts +14 -0
  196. package/dist/types/ui/revision/revisionauthorview.d.ts +9 -0
  197. package/dist/types/ui/revision/revisionnameview.d.ts +9 -0
  198. package/dist/types/ui/revision/revisionview.d.ts +99 -0
  199. package/dist/types/ui/revision/subrevisioncollapserview.d.ts +25 -0
  200. package/dist/types/ui/revision/subrevisionview.d.ts +38 -0
  201. package/dist/types/ui/revision/utils.d.ts +9 -0
  202. package/dist/types/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +61 -0
  203. package/dist/types/ui/revisionhistory/revisionhistoryui.d.ts +30 -0
  204. package/dist/types/ui/revisionssidebar/revisionssidebar.d.ts +48 -0
  205. package/dist/types/ui/revisionssidebar/revisionssidebarheaderview.d.ts +9 -0
  206. package/dist/types/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +33 -0
  207. package/dist/types/ui/revisionssidebar/revisionssidebarview.d.ts +48 -0
  208. package/dist/types/ui/revisionssidebar/utils.d.ts +13 -0
  209. package/dist/types/ui/revisionviewer/changedetailsview.d.ts +26 -0
  210. package/dist/types/ui/revisionviewer/changesnavigationview.d.ts +44 -0
  211. package/dist/types/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +30 -0
  212. package/dist/types/ui/revisionviewer/revisionviewerui.d.ts +32 -0
  213. package/dist/types/utils/common-translations.d.ts +15 -0
  214. package/lang/translations/ti.po +136 -0
  215. package/package.json +6 -5
  216. package/src/changeitem.js +1 -1
  217. package/src/editor/revisionviewereditor.js +1 -1
  218. package/src/editor/revisionviewereditorui.js +1 -1
  219. package/src/editor/revisionviewereditoruiview.js +1 -1
  220. package/src/index.js +1 -1
  221. package/src/revision.js +1 -1
  222. package/src/revisiondiff.js +1 -1
  223. package/src/revisionhistory.js +1 -1
  224. package/src/revisionsrepository.js +1 -1
  225. package/src/revisiontracker.js +1 -1
  226. package/src/revisionviewer.js +1 -1
  227. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  228. package/src/ui/revision/revisionauthorview.js +1 -1
  229. package/src/ui/revision/revisionnameview.js +1 -1
  230. package/src/ui/revision/revisionview.js +1 -1
  231. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  232. package/src/ui/revision/subrevisionview.js +1 -1
  233. package/src/ui/revision/utils.js +1 -1
  234. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  235. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  236. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  237. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  238. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  239. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  240. package/src/ui/revisionssidebar/utils.js +1 -1
  241. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  242. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  243. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  244. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  245. package/src/utils/common-translations.d.ts +1 -1
  246. package/src/utils/common-translations.js +1 -1
  247. package/theme/revision/revision.css +4 -0
  248. package/theme/revision/revisionauthor.css +4 -0
  249. package/theme/revision/revisionname.css +4 -0
  250. package/theme/revision/subrevision.css +4 -0
  251. package/theme/revision/subrevisioncollapser.css +4 -0
  252. package/theme/revisionviewerloadingoverlay.css +4 -0
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ export default{'ur':{'dictionary':{'Restored':'','Empty\x20document':'','Initial\x20revision':'','Compare\x20against\x20selected':'','Name\x20this\x20revision':'','Revision\x20creator':'','Revision\x20author':'','Revision\x20name':'','Name\x20of\x20the\x20revision':'','optional':'','Save\x20current\x20revision':'','Open\x20revision\x20history':'','Revision\x20history':'','Suggested\x20by':'','Added\x20by':'','Removed\x20by':'','Loading...':'','No\x20changes':'','NUMBER_OF_CHANGES':['',''],'X_OF_Y_CHANGES':'0%\x20میں\x20سے\x201%','Show\x20previous\x20change':'','Show\x20next\x20change':'','Total':'','EDIT_X_OF_Y_REVISIONS':'ترمیم','Back\x20to\x20editing':'','Restore\x20this\x20revision':'','PENDING_ACTION_REVISION_HISTORY':'','Enter\x20the\x20revision\x20name':'','The\x20revision\x20name\x20cannot\x20be\x20empty.':''},'getPluralForm':_0x261308=>0x1!=_0x261308}};
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ (_0x5bf03e=>{const {ur:{dictionary:_0x670cf8,getPluralForm:_0x30baec}}={'ur':{'dictionary':{'Restored':'','Empty\x20document':'','Initial\x20revision':'','Compare\x20against\x20selected':'','Name\x20this\x20revision':'','Revision\x20creator':'','Revision\x20author':'','Revision\x20name':'','Name\x20of\x20the\x20revision':'','optional':'','Save\x20current\x20revision':'','Open\x20revision\x20history':'','Revision\x20history':'','Suggested\x20by':'','Added\x20by':'','Removed\x20by':'','Loading...':'','No\x20changes':'','NUMBER_OF_CHANGES':['',''],'X_OF_Y_CHANGES':'0%\x20میں\x20سے\x201%','Show\x20previous\x20change':'','Show\x20next\x20change':'','Total':'','EDIT_X_OF_Y_REVISIONS':'ترمیم','Back\x20to\x20editing':'','Restore\x20this\x20revision':'','PENDING_ACTION_REVISION_HISTORY':'','Enter\x20the\x20revision\x20name':'','The\x20revision\x20name\x20cannot\x20be\x20empty.':''},'getPluralForm':_0x4f5a51=>0x1!=_0x4f5a51}};_0x5bf03e['ur']||={'dictionary':{},'getPluralForm':null},_0x5bf03e['ur']['dictionary']=Object['assign'](_0x5bf03e['ur']['dictionary'],_0x670cf8),_0x5bf03e['ur']['getPluralForm']=_0x30baec;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -0,0 +1,8 @@
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
+ import type { Translations } from 'ckeditor5';
7
+ declare const translations: Translations;
8
+ export default translations;
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ export default{'vi':{'dictionary':{'Restored':'Được\x20khôi\x20phục','Empty\x20document':'Tài\x20liệu\x20trống','Initial\x20revision':'Bản\x20sửa\x20đổi\x20ban\x20đầu','Compare\x20against\x20selected':'So\x20sánh\x20với\x20bản\x20sửa\x20đổi\x20được\x20chọn','Name\x20this\x20revision':'Đặt\x20tên\x20cho\x20bản\x20sửa\x20đổi\x20này','Revision\x20creator':'Người\x20lưu\x20bản\x20sửa\x20đổi','Revision\x20author':'Tác\x20giả\x20bản\x20sửa\x20đổi','Revision\x20name':'Tên\x20bản\x20sửa\x20đổi','Name\x20of\x20the\x20revision':'Tên\x20của\x20bản\x20sửa\x20đổi','optional':'không\x20bắt\x20buộc','Save\x20current\x20revision':'Lưu\x20bản\x20sửa\x20đổi\x20hiện\x20tại','Open\x20revision\x20history':'Mở\x20lịch\x20sử\x20sửa\x20đổi','Revision\x20history':'Lịch\x20sử\x20sửa\x20đổi','Suggested\x20by':'Người\x20đề\x20xuất:','Added\x20by':'Người\x20thêm:','Removed\x20by':'Người\x20xóa:','Loading...':'Đang\x20tải...','No\x20changes':'Không\x20có\x20nội\x20dung\x20thay\x20đổi','NUMBER_OF_CHANGES':'%0\x20nội\x20dung\x20thay\x20đổi','X_OF_Y_CHANGES':'%0\x20đến\x20%1','Show\x20previous\x20change':'Hiện\x20nội\x20dung\x20thay\x20đổi\x20trước\x20đó','Show\x20next\x20change':'Hiện\x20nội\x20dung\x20thay\x20đổi\x20tiếp\x20theo','Total':'Tổng','EDIT_X_OF_Y_REVISIONS':'Chỉnh\x20sửa','Back\x20to\x20editing':'Quay\x20lại\x20chỉnh\x20sửa','Restore\x20this\x20revision':'Khôi\x20phục\x20bản\x20sửa\x20đổi','PENDING_ACTION_REVISION_HISTORY':'Nội\x20dung\x20thay\x20đổi\x20chưa\x20lưu\x20trong\x20lịch\x20sử\x20sửa\x20đổi','Enter\x20the\x20revision\x20name':'Nhập\x20tên\x20bản\x20sửa\x20đổi','The\x20revision\x20name\x20cannot\x20be\x20empty.':'Không\x20được\x20để\x20trống\x20tên\x20bản\x20sửa\x20đổi.'},'getPluralForm':_0x80a219=>0x0}};
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ (_0xe7839d=>{const {vi:{dictionary:_0x1e2277,getPluralForm:_0x10199b}}={'vi':{'dictionary':{'Restored':'Được\x20khôi\x20phục','Empty\x20document':'Tài\x20liệu\x20trống','Initial\x20revision':'Bản\x20sửa\x20đổi\x20ban\x20đầu','Compare\x20against\x20selected':'So\x20sánh\x20với\x20bản\x20sửa\x20đổi\x20được\x20chọn','Name\x20this\x20revision':'Đặt\x20tên\x20cho\x20bản\x20sửa\x20đổi\x20này','Revision\x20creator':'Người\x20lưu\x20bản\x20sửa\x20đổi','Revision\x20author':'Tác\x20giả\x20bản\x20sửa\x20đổi','Revision\x20name':'Tên\x20bản\x20sửa\x20đổi','Name\x20of\x20the\x20revision':'Tên\x20của\x20bản\x20sửa\x20đổi','optional':'không\x20bắt\x20buộc','Save\x20current\x20revision':'Lưu\x20bản\x20sửa\x20đổi\x20hiện\x20tại','Open\x20revision\x20history':'Mở\x20lịch\x20sử\x20sửa\x20đổi','Revision\x20history':'Lịch\x20sử\x20sửa\x20đổi','Suggested\x20by':'Người\x20đề\x20xuất:','Added\x20by':'Người\x20thêm:','Removed\x20by':'Người\x20xóa:','Loading...':'Đang\x20tải...','No\x20changes':'Không\x20có\x20nội\x20dung\x20thay\x20đổi','NUMBER_OF_CHANGES':'%0\x20nội\x20dung\x20thay\x20đổi','X_OF_Y_CHANGES':'%0\x20đến\x20%1','Show\x20previous\x20change':'Hiện\x20nội\x20dung\x20thay\x20đổi\x20trước\x20đó','Show\x20next\x20change':'Hiện\x20nội\x20dung\x20thay\x20đổi\x20tiếp\x20theo','Total':'Tổng','EDIT_X_OF_Y_REVISIONS':'Chỉnh\x20sửa','Back\x20to\x20editing':'Quay\x20lại\x20chỉnh\x20sửa','Restore\x20this\x20revision':'Khôi\x20phục\x20bản\x20sửa\x20đổi','PENDING_ACTION_REVISION_HISTORY':'Nội\x20dung\x20thay\x20đổi\x20chưa\x20lưu\x20trong\x20lịch\x20sử\x20sửa\x20đổi','Enter\x20the\x20revision\x20name':'Nhập\x20tên\x20bản\x20sửa\x20đổi','The\x20revision\x20name\x20cannot\x20be\x20empty.':'Không\x20được\x20để\x20trống\x20tên\x20bản\x20sửa\x20đổi.'},'getPluralForm':_0x2b4a02=>0x0}};_0xe7839d['vi']||={'dictionary':{},'getPluralForm':null},_0xe7839d['vi']['dictionary']=Object['assign'](_0xe7839d['vi']['dictionary'],_0x1e2277),_0xe7839d['vi']['getPluralForm']=_0x10199b;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -0,0 +1,8 @@
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
+ import type { Translations } from 'ckeditor5';
7
+ declare const translations: Translations;
8
+ export default translations;
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ export default{'zh-cn':{'dictionary':{'Restored':'已恢复','Empty\x20document':'空文档','Initial\x20revision':'初始版本','Compare\x20against\x20selected':'对比选中的文字','Name\x20this\x20revision':'给此版本命名','Revision\x20creator':'版本创建者','Revision\x20author':'版本作者','Revision\x20name':'版本名称','Name\x20of\x20the\x20revision':'修订的名称','optional':'可选的','Save\x20current\x20revision':'保存当前版本','Open\x20revision\x20history':'打开版本历史','Revision\x20history':'版本历史','Suggested\x20by':'建议者','Added\x20by':'添加者','Removed\x20by':'移除者','Loading...':'加载中…','No\x20changes':'无变更','NUMBER_OF_CHANGES':'0%\x20处修改','X_OF_Y_CHANGES':'第\x20%0\x20步,共\x20%1\x20步','Show\x20previous\x20change':'显示上一个变更','Show\x20next\x20change':'显示下一个变更','Total':'总计','EDIT_X_OF_Y_REVISIONS':'编辑','Back\x20to\x20editing':'返回编辑','Restore\x20this\x20revision':'恢复至此版本','PENDING_ACTION_REVISION_HISTORY':'版本历史中有未保存的变更。','Enter\x20the\x20revision\x20name':'输入修订名称','The\x20revision\x20name\x20cannot\x20be\x20empty.':'修订版本名称不能为空。'},'getPluralForm':_0x4575c2=>0x0}};
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ (_0x56bef8=>{const {'zh-cn':{dictionary:_0x4c9ded,getPluralForm:_0x37826c}}={'zh-cn':{'dictionary':{'Restored':'已恢复','Empty\x20document':'空文档','Initial\x20revision':'初始版本','Compare\x20against\x20selected':'对比选中的文字','Name\x20this\x20revision':'给此版本命名','Revision\x20creator':'版本创建者','Revision\x20author':'版本作者','Revision\x20name':'版本名称','Name\x20of\x20the\x20revision':'修订的名称','optional':'可选的','Save\x20current\x20revision':'保存当前版本','Open\x20revision\x20history':'打开版本历史','Revision\x20history':'版本历史','Suggested\x20by':'建议者','Added\x20by':'添加者','Removed\x20by':'移除者','Loading...':'加载中…','No\x20changes':'无变更','NUMBER_OF_CHANGES':'0%\x20处修改','X_OF_Y_CHANGES':'第\x20%0\x20步,共\x20%1\x20步','Show\x20previous\x20change':'显示上一个变更','Show\x20next\x20change':'显示下一个变更','Total':'总计','EDIT_X_OF_Y_REVISIONS':'编辑','Back\x20to\x20editing':'返回编辑','Restore\x20this\x20revision':'恢复至此版本','PENDING_ACTION_REVISION_HISTORY':'版本历史中有未保存的变更。','Enter\x20the\x20revision\x20name':'输入修订名称','The\x20revision\x20name\x20cannot\x20be\x20empty.':'修订版本名称不能为空。'},'getPluralForm':_0x3eace6=>0x0}};_0x56bef8['zh-cn']||={'dictionary':{},'getPluralForm':null},_0x56bef8['zh-cn']['dictionary']=Object['assign'](_0x56bef8['zh-cn']['dictionary'],_0x4c9ded),_0x56bef8['zh-cn']['getPluralForm']=_0x37826c;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -0,0 +1,8 @@
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
+ import type { Translations } from 'ckeditor5';
7
+ declare const translations: Translations;
8
+ export default translations;
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ export default{'zh':{'dictionary':{'Restored':'已復原','Empty\x20document':'空文件','Initial\x20revision':'初始修訂','Compare\x20against\x20selected':'與所選作比較','Name\x20this\x20revision':'命名此修訂','Revision\x20creator':'修訂建立者','Revision\x20author':'修訂作者','Revision\x20name':'修訂名稱','Name\x20of\x20the\x20revision':'修訂名稱','optional':'選擇性','Save\x20current\x20revision':'儲存目前的修訂','Open\x20revision\x20history':'開啟修訂記錄','Revision\x20history':'修訂記錄','Suggested\x20by':'建議者','Added\x20by':'新增者','Removed\x20by':'刪除者','Loading...':'載入中……','No\x20changes':'無變更','NUMBER_OF_CHANGES':'%0\x20變更','X_OF_Y_CHANGES':'%0/%1','Show\x20previous\x20change':'顯示上個變更','Show\x20next\x20change':'顯示下個變更','Total':'總計','EDIT_X_OF_Y_REVISIONS':'編輯','Back\x20to\x20editing':'返回至編輯','Restore\x20this\x20revision':'還原此修訂','PENDING_ACTION_REVISION_HISTORY':'修訂記錄中未儲存的變更','Enter\x20the\x20revision\x20name':'輸入修訂名稱','The\x20revision\x20name\x20cannot\x20be\x20empty.':'修訂名稱不可為空白。'},'getPluralForm':_0x200966=>0x0}};
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ (_0x35f65e=>{const {zh:{dictionary:_0x370296,getPluralForm:_0x1591b1}}={'zh':{'dictionary':{'Restored':'已復原','Empty\x20document':'空文件','Initial\x20revision':'初始修訂','Compare\x20against\x20selected':'與所選作比較','Name\x20this\x20revision':'命名此修訂','Revision\x20creator':'修訂建立者','Revision\x20author':'修訂作者','Revision\x20name':'修訂名稱','Name\x20of\x20the\x20revision':'修訂名稱','optional':'選擇性','Save\x20current\x20revision':'儲存目前的修訂','Open\x20revision\x20history':'開啟修訂記錄','Revision\x20history':'修訂記錄','Suggested\x20by':'建議者','Added\x20by':'新增者','Removed\x20by':'刪除者','Loading...':'載入中……','No\x20changes':'無變更','NUMBER_OF_CHANGES':'%0\x20變更','X_OF_Y_CHANGES':'%0/%1','Show\x20previous\x20change':'顯示上個變更','Show\x20next\x20change':'顯示下個變更','Total':'總計','EDIT_X_OF_Y_REVISIONS':'編輯','Back\x20to\x20editing':'返回至編輯','Restore\x20this\x20revision':'還原此修訂','PENDING_ACTION_REVISION_HISTORY':'修訂記錄中未儲存的變更','Enter\x20the\x20revision\x20name':'輸入修訂名稱','The\x20revision\x20name\x20cannot\x20be\x20empty.':'修訂名稱不可為空白。'},'getPluralForm':_0x249fc9=>0x0}};_0x35f65e['zh']||={'dictionary':{},'getPluralForm':null},_0x35f65e['zh']['dictionary']=Object['assign'](_0x35f65e['zh']['dictionary'],_0x370296),_0x35f65e['zh']['getPluralForm']=_0x1591b1;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -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
+ import type { RevisionHistoryConfig, RevisionsRepository, RevisionViewerLoadingOverlay, RevisionHistoryUI, RevisionTracker, RevisionViewer, RestoreRevisionCommand, ShowChangeCommand, RevisionsSidebar, RevisionViewerUI } from './index.js';
10
+ declare module '@ckeditor/ckeditor5-core' {
11
+ interface EditorConfig {
12
+ /**
13
+ * The configuration of the revision history feature.
14
+ * Introduced by the {@link module:revision-history/revisionhistory~RevisionHistory} feature.
15
+ */
16
+ revisionHistory?: RevisionHistoryConfig;
17
+ }
18
+ interface PluginsMap {
19
+ [RevisionsRepository.pluginName]: RevisionsRepository;
20
+ [RevisionViewerLoadingOverlay.pluginName]: RevisionViewerLoadingOverlay;
21
+ [RevisionHistoryUI.pluginName]: RevisionHistoryUI;
22
+ [RevisionTracker.pluginName]: RevisionTracker;
23
+ [RevisionViewer.pluginName]: RevisionViewer;
24
+ [RevisionViewer.pluginName]: RevisionViewer;
25
+ [RevisionsSidebar.pluginName]: RevisionsSidebar;
26
+ [RevisionViewerUI.pluginName]: RevisionViewerUI;
27
+ }
28
+ interface CommandsMap {
29
+ restoreRevision: RestoreRevisionCommand;
30
+ showPreviousChange: ShowChangeCommand<'backward'>;
31
+ showNextChange: ShowChangeCommand<'forward'>;
32
+ }
33
+ }
@@ -0,0 +1,62 @@
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 type { User } from 'ckeditor5-collaboration/src/collaboration-core.js';
10
+ declare const ChangeItem_base: {
11
+ new (): import("ckeditor5/src/utils.js").Observable;
12
+ prototype: import("ckeditor5/src/utils.js").Observable;
13
+ };
14
+ /**
15
+ * Represents a singular change entry in the revision or in the revisions comparison.
16
+ */
17
+ export default class ChangeItem extends ChangeItem_base {
18
+ /**
19
+ * Unique change item id.
20
+ */
21
+ readonly id: string;
22
+ /**
23
+ * User who created the change.
24
+ */
25
+ readonly author: User;
26
+ /**
27
+ * Change type.
28
+ */
29
+ readonly type: string;
30
+ /**
31
+ * Additional details about the change.
32
+ */
33
+ readonly data: Record<string, unknown>;
34
+ /**
35
+ * Name of the root which contains the change.
36
+ */
37
+ readonly rootName: string;
38
+ /**
39
+ * The date when the change was created.
40
+ *
41
+ * @observable
42
+ */
43
+ readonly createdAt: Date;
44
+ constructor(data: ChangeItemInput);
45
+ toJSON(): ChangeItemJSON;
46
+ }
47
+ export interface ChangeItemInput {
48
+ id?: string;
49
+ author: User;
50
+ type: string;
51
+ data: Record<string, unknown>;
52
+ createdAt: Date;
53
+ rootName: string;
54
+ }
55
+ export interface ChangeItemJSON {
56
+ id: string;
57
+ authorId: string;
58
+ type: string;
59
+ data: Record<string, unknown>;
60
+ createdAt: Date;
61
+ }
62
+ export {};
@@ -0,0 +1,31 @@
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/editor/revisionviewereditor
11
+ */
12
+ import { Editor, type EditorConfig } from 'ckeditor5/src/core.js';
13
+ import RevisionViewerEditorUI from './revisionviewereditorui.js';
14
+ declare const RevisionViewerEditor_base: import("@ckeditor/ckeditor5-utils").Mixed<typeof Editor, import("ckeditor5/src/core.js").ElementApi>;
15
+ /**
16
+ * Editor class used to show revision comparisons.
17
+ */
18
+ export default class RevisionViewerEditor extends RevisionViewerEditor_base {
19
+ get ui(): RevisionViewerEditorUI;
20
+ /**
21
+ * @param sourceElement Editor source element.
22
+ * @param config Editor configuration.
23
+ */
24
+ constructor(sourceElement: HTMLElement, config?: EditorConfig);
25
+ /**
26
+ * @inheritDoc
27
+ */
28
+ destroy(): Promise<unknown>;
29
+ static create(sourceElement: HTMLElement, config?: EditorConfig): Promise<RevisionViewerEditor>;
30
+ }
31
+ export {};
@@ -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/editor/revisionviewereditorui
11
+ */
12
+ import type { Editor } from 'ckeditor5/src/core.js';
13
+ import { EditorUI } from 'ckeditor5/src/ui.js';
14
+ import type RevisionViewerEditorUIView from './revisionviewereditoruiview.js';
15
+ export default class RevisionViewerEditorUI extends EditorUI {
16
+ get view(): RevisionViewerEditorUIView;
17
+ constructor(editor: Editor, view: RevisionViewerEditorUIView);
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ get element(): HTMLElement | null;
22
+ /**
23
+ * Initializes the UI.
24
+ *
25
+ * @param replacementElement The DOM element that will be the source for the created editor.
26
+ */
27
+ init(replacementElement: HTMLElement): void;
28
+ /**
29
+ * @inheritDoc
30
+ */
31
+ destroy(): void;
32
+ }
@@ -0,0 +1,47 @@
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/editor/revisionviewereditoruiview
11
+ */
12
+ import { BoxedEditorUIView, InlineEditableUIView, StickyPanelView, ToolbarView } from 'ckeditor5/src/ui.js';
13
+ import type { EditingView } from 'ckeditor5/src/engine.js';
14
+ import type { Locale } from 'ckeditor5/src/utils.js';
15
+ import '@ckeditor/ckeditor5-editor-classic/theme/classiceditor.css';
16
+ export default class RevisionViewerEditorUIView extends BoxedEditorUIView {
17
+ /**
18
+ * Sticky panel view instance. This is a parent view of a {@link #toolbar}
19
+ * that makes toolbar sticky.
20
+ */
21
+ readonly stickyPanel: StickyPanelView;
22
+ /**
23
+ * Toolbar view instance.
24
+ */
25
+ readonly toolbar: ToolbarView;
26
+ get editable(): InlineEditableUIView;
27
+ /**
28
+ * Creates an instance of the classic editor UI view.
29
+ *
30
+ * @param locale The {@link module:core/editor/editor~Editor#locale} instance.
31
+ * @param editingView The editing view instance this view is related to.
32
+ * @param options Configuration options for the view instance.
33
+ */
34
+ constructor(locale: Locale, editingView: EditingView, options?: RevisionViewerEditorUIViewOptions);
35
+ /**
36
+ * @inheritDoc
37
+ */
38
+ render(): void;
39
+ }
40
+ export interface RevisionViewerEditorUIViewOptions {
41
+ /**
42
+ * When set `true` enables automatic items grouping
43
+ * in the main {@link module:editor-classic/classiceditoruiview~ClassicEditorUIView#toolbar toolbar}.
44
+ * See {@link module:ui/toolbar/toolbarview~ToolbarOptions#shouldGroupWhenFull} to learn more.
45
+ */
46
+ shouldToolbarGroupWhenFull?: boolean;
47
+ }
@@ -0,0 +1,19 @@
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 { default as RevisionHistory } from './revisionhistory.js';
10
+ export { default as RevisionsRepository } from './revisionsrepository.js';
11
+ export { default as RevisionViewerLoadingOverlay } from './ui/revisionviewer/revisionviewerloadingoverlay.js';
12
+ export { default as RevisionHistoryUI } from './ui/revisionhistory/revisionhistoryui.js';
13
+ export { default as RevisionTracker } from './revisiontracker.js';
14
+ export { default as RevisionViewer, type RestoreRevisionCommand, type ShowChangeCommand } from './revisionviewer.js';
15
+ export { default as RevisionsSidebar } from './ui/revisionssidebar/revisionssidebar.js';
16
+ export { default as RevisionViewerUI } from './ui/revisionviewer/revisionviewerui.js';
17
+ export type { RevisionData } from './revision.js';
18
+ export type { RevisionHistoryConfig } from './revisionhistoryconfig.js';
19
+ import './augmentation.js';
@@ -0,0 +1,157 @@
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 type { User } from 'ckeditor5-collaboration/src/collaboration-core.js';
10
+ declare const Revision_base: {
11
+ new (): import("ckeditor5/src/utils.js").Observable;
12
+ prototype: import("ckeditor5/src/utils.js").Observable;
13
+ };
14
+ /**
15
+ * Represents a revision.
16
+ */
17
+ export default class Revision extends Revision_base {
18
+ /**
19
+ * Unique revision id.
20
+ */
21
+ id: string;
22
+ /**
23
+ * The user who created the revision.
24
+ *
25
+ * The `null` value means the revision was created automatically.
26
+ */
27
+ creator: User | null;
28
+ /**
29
+ * All users who contributed to this revision.
30
+ *
31
+ * This value can be empty if there are no changes in the revision.
32
+ */
33
+ authors: Array<User>;
34
+ /**
35
+ * Contains data describing changes saved in this revision.
36
+ *
37
+ * An object, where the keys are the names of roots and the values are strings with the revision data for those roots.
38
+ */
39
+ diffData: any;
40
+ /**
41
+ * Document version at which the revision ends.
42
+ *
43
+ * The revision includes changes introduced by {@link module:engine/model/operation/operation~Operation operations}
44
+ * with base versions starting from {@link module:revision-history/revision~Revision#fromVersion `fromVersion`} (inclusive) up to
45
+ * {@link module:revision-history/revision~Revision#toVersion `toVersion`} (exclusive).
46
+ */
47
+ toVersion: number;
48
+ /**
49
+ * Document version from which the revision starts.
50
+ *
51
+ * The revision includes changes introduced by {@link module:engine/model/operation/operation~Operation operations}
52
+ * with base versions starting from {@link module:revision-history/revision~Revision#fromVersion `fromVersion`} (inclusive) up to
53
+ * {@link module:revision-history/revision~Revision#toVersion `toVersion`} (exclusive).
54
+ */
55
+ fromVersion: number;
56
+ /**
57
+ * The revision name.
58
+ *
59
+ * If revision has not been named yet, this is an empty string.
60
+ *
61
+ * @observable
62
+ */
63
+ name: string;
64
+ /**
65
+ * The date when the revision was created or most recently updated.
66
+ *
67
+ * @observable
68
+ */
69
+ createdAt: Date;
70
+ /**
71
+ * Revision custom attributes. See also {@link #setAttribute} and {@link #removeAttribute}.
72
+ *
73
+ * @observable
74
+ */
75
+ attributes: Record<string, unknown>;
76
+ constructor(data: RevisionData);
77
+ /**
78
+ * Sets the revision name.
79
+ */
80
+ setName(name: string): void;
81
+ /**
82
+ * Adds revision attribute.
83
+ *
84
+ * Revision attributes are custom data that can be set and used by features built around revisions.
85
+ * Use it to store your feature data together with other revision data.
86
+ *
87
+ * ```ts
88
+ * revision.setAttribute( 'isImportant', true );
89
+ * ```
90
+ *
91
+ * You can group multiple values in an object, using the dot notation:
92
+ *
93
+ * ```ts
94
+ * revision.setAttribute( 'customData.type', 'image' );
95
+ * revision.setAttribute( 'customData.src', 'foo.jpg' );
96
+ * ```
97
+ *
98
+ * The attributes set on the revision can be accessed through the `attribute` property:
99
+ *
100
+ * ```ts
101
+ * const isImportant = revision.attributes.isImportant;
102
+ * const type = revision.attributes.customData.type;
103
+ * ```
104
+ *
105
+ * You can also observe the `attributes` property or bind other properties to it:
106
+ *
107
+ * ```ts
108
+ * myObj.bind( 'customData' ).to( revision, 'attributes', attributes => attributes.customData );
109
+ * revision.on( 'change:attributes', ( evt, propName, newValue, oldValue ) => { ... } );
110
+ * ```
111
+ *
112
+ * Whenever `setAttribute()` or `removeAttribute()` is called, the `attributes` property
113
+ * is re-set and the observables are refreshed.
114
+ */
115
+ setAttribute(name: string, value: unknown): void;
116
+ /**
117
+ * Removes the revision attribute.
118
+ *
119
+ * See also {@link #setAttribute}
120
+ */
121
+ removeAttribute(name: string): void;
122
+ toJSON(): RevisionJSON;
123
+ }
124
+ /**
125
+ * @eventName _update
126
+ */
127
+ export interface RevisionUpdateEvent {
128
+ name: '_update';
129
+ args: [RevisionJSON, boolean];
130
+ }
131
+ export interface RevisionJSON {
132
+ id: string;
133
+ name: string;
134
+ creatorId: string | null;
135
+ authorsIds: Array<string>;
136
+ diffData: any;
137
+ createdAt: Date;
138
+ attributes: Record<string, unknown>;
139
+ fromVersion: number;
140
+ toVersion: number;
141
+ }
142
+ export interface RevisionData {
143
+ id?: string;
144
+ name?: string | null;
145
+ creator?: User | null;
146
+ creatorId?: string | null;
147
+ authors?: Array<User>;
148
+ authorsIds?: Array<string>;
149
+ diffData?: any;
150
+ data?: any;
151
+ createdAt?: Date;
152
+ attributes?: Record<string, unknown>;
153
+ fromVersion?: number;
154
+ toVersion?: number;
155
+ isEmptyCurrent?: boolean;
156
+ }
157
+ export {};