@ckeditor/ckeditor5-revision-history 45.2.1 → 46.0.0-alpha.1
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.
- package/build/revision-history.js +1 -1
- package/dist/index-editor.css +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +7 -6
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +14 -14
- package/src/changeitem.d.ts +1 -1
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.d.ts +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.d.ts +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.d.ts +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.d.ts +14 -11
- package/src/index.js +1 -1
- package/src/revision.d.ts +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.d.ts +4 -4
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.d.ts +4 -41
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryutils.d.ts +2 -2
- package/src/revisionhistoryutils.js +1 -1
- package/src/revisionsrepository.d.ts +2 -2
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.d.ts +6 -11
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.d.ts +7 -7
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.d.ts +3 -3
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.d.ts +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.d.ts +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.d.ts +3 -3
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.d.ts +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.d.ts +2 -2
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +3 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -1
- package/src/ui/revisionhistory/revisionhistoryui.d.ts +2 -2
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.d.ts +3 -3
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.d.ts +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +3 -3
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.d.ts +4 -4
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.d.ts +2 -2
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.d.ts +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.d.ts +3 -3
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/theme/revisionviewerloadingoverlay.css +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x20d0cb=>{const {vi:{dictionary:_0x5ab054,getPluralForm:_0x91d820}}={'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':_0x58862e=>0x0}};_0x20d0cb['vi']||={'dictionary':{},'getPluralForm':null},_0x20d0cb['vi']['dictionary']=Object['assign'](_0x20d0cb['vi']['dictionary'],_0x5ab054),_0x20d0cb['vi']['getPluralForm']=_0x91d820;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
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':
|
|
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':_0x630c50=>0x0}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1f6722=>{const {'zh-cn':{dictionary:_0x439c32,getPluralForm:_0x2eb808}}={'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':_0x446019=>0x0}};_0x1f6722['zh-cn']||={'dictionary':{},'getPluralForm':null},_0x1f6722['zh-cn']['dictionary']=Object['assign'](_0x1f6722['zh-cn']['dictionary'],_0x439c32),_0x1f6722['zh-cn']['getPluralForm']=_0x2eb808;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/zh.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
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':
|
|
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':_0x40dab4=>0x0}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5d3225=>{const {zh:{dictionary:_0xa9bf93,getPluralForm:_0x51c01c}}={'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':_0x32942d=>0x0}};_0x5d3225['zh']||={'dictionary':{},'getPluralForm':null},_0x5d3225['zh']['dictionary']=Object['assign'](_0x5d3225['zh']['dictionary'],_0xa9bf93),_0x5d3225['zh']['getPluralForm']=_0x51c01c;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-revision-history",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "46.0.0-alpha.1",
|
|
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/)",
|
|
@@ -39,19 +39,19 @@
|
|
|
39
39
|
"CHANGELOG.md"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@ckeditor/ckeditor5-autosave": "
|
|
43
|
-
"@ckeditor/ckeditor5-comments": "
|
|
44
|
-
"@ckeditor/ckeditor5-core": "
|
|
45
|
-
"@ckeditor/ckeditor5-editor-classic": "
|
|
46
|
-
"@ckeditor/ckeditor5-engine": "
|
|
47
|
-
"@ckeditor/ckeditor5-icons": "
|
|
48
|
-
"@ckeditor/ckeditor5-ui": "
|
|
49
|
-
"@ckeditor/ckeditor5-utils": "
|
|
50
|
-
"@types/luxon": "3.
|
|
51
|
-
"ckeditor5": "
|
|
52
|
-
"ckeditor5-collaboration": "
|
|
53
|
-
"es-toolkit": "1.
|
|
54
|
-
"luxon": "3.
|
|
42
|
+
"@ckeditor/ckeditor5-autosave": "46.0.0-alpha.1",
|
|
43
|
+
"@ckeditor/ckeditor5-comments": "46.0.0-alpha.1",
|
|
44
|
+
"@ckeditor/ckeditor5-core": "46.0.0-alpha.1",
|
|
45
|
+
"@ckeditor/ckeditor5-editor-classic": "46.0.0-alpha.1",
|
|
46
|
+
"@ckeditor/ckeditor5-engine": "46.0.0-alpha.1",
|
|
47
|
+
"@ckeditor/ckeditor5-icons": "46.0.0-alpha.1",
|
|
48
|
+
"@ckeditor/ckeditor5-ui": "46.0.0-alpha.1",
|
|
49
|
+
"@ckeditor/ckeditor5-utils": "46.0.0-alpha.1",
|
|
50
|
+
"@types/luxon": "3.6.2",
|
|
51
|
+
"ckeditor5": "46.0.0-alpha.1",
|
|
52
|
+
"ckeditor5-collaboration": "46.0.0-alpha.1",
|
|
53
|
+
"es-toolkit": "1.39.5",
|
|
54
|
+
"luxon": "3.6.1"
|
|
55
55
|
},
|
|
56
56
|
"types": "src/index.d.ts",
|
|
57
57
|
"exports": {
|
package/src/changeitem.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ declare const ChangeItem_base: {
|
|
|
10
10
|
/**
|
|
11
11
|
* Represents a singular change entry in the revision or in the revisions comparison.
|
|
12
12
|
*/
|
|
13
|
-
export
|
|
13
|
+
export declare class ChangeItem extends /* #__PURE__ -- @preserve */ ChangeItem_base {
|
|
14
14
|
/**
|
|
15
15
|
* Unique change item id.
|
|
16
16
|
*/
|
package/src/changeitem.js
CHANGED
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
24
|
-
|
|
23
|
+
function _0x3ff5(_0x39ad12,_0x31faba){var _0x749b8a=_0x749b();return _0x3ff5=function(_0x3ff534,_0x37b35f){_0x3ff534=_0x3ff534-0x66;var _0x40e4a5=_0x749b8a[_0x3ff534];return _0x40e4a5;},_0x3ff5(_0x39ad12,_0x31faba);}var _0x4cb823=_0x3ff5;(function(_0x2f883e,_0xe32b89){var _0x531a09=_0x3ff5,_0x3131f7=_0x2f883e();while(!![]){try{var _0xa14de0=parseInt(_0x531a09(0x6d))/0x1+-parseInt(_0x531a09(0x73))/0x2+-parseInt(_0x531a09(0x67))/0x3+-parseInt(_0x531a09(0x6a))/0x4+-parseInt(_0x531a09(0x6c))/0x5+-parseInt(_0x531a09(0x75))/0x6*(-parseInt(_0x531a09(0x6e))/0x7)+-parseInt(_0x531a09(0x69))/0x8*(-parseInt(_0x531a09(0x66))/0x9);if(_0xa14de0===_0xe32b89)break;else _0x3131f7['push'](_0x3131f7['shift']());}catch(_0x750687){_0x3131f7['push'](_0x3131f7['shift']());}}}(_0x749b,0xe4a75));function _0x749b(){var _0x40d5e6=['1269LrNeAv','1032768TNbGeo','toJSON','115240NFoyjk','5560220serihr','type','4570650SztAGU','1502993aBVMXn','28yyyeSf','createdAt','rootName','data','author','3422400epjLck','set','2643162OWYNVG'];_0x749b=function(){return _0x40d5e6;};return _0x749b();}import{ObservableMixin as _0x4d2996,uid as _0x58f4a7}from'ckeditor5/src/utils.js';export class ChangeItem extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4d2996(){['id'];[_0x4cb823(0x72)];[_0x4cb823(0x6b)];[_0x4cb823(0x71)];[_0x4cb823(0x70)];constructor(_0x18836a){var _0xa25727=_0x4cb823;super(),this['id']=_0x18836a['id']||_0x58f4a7(),this[_0xa25727(0x72)]=_0x18836a[_0xa25727(0x72)],this[_0xa25727(0x6b)]=_0x18836a[_0xa25727(0x6b)],this[_0xa25727(0x71)]=_0x18836a[_0xa25727(0x71)]||{},this[_0xa25727(0x70)]=_0x18836a[_0xa25727(0x70)],this[_0xa25727(0x74)](_0xa25727(0x6f),_0x18836a[_0xa25727(0x6f)]);}[_0x4cb823(0x68)](){var _0x541f99=_0x4cb823;return{'id':this['id'],'authorId':this[_0x541f99(0x72)]['id'],'type':this[_0x541f99(0x6b)],'data':this[_0x541f99(0x71)],'createdAt':this[_0x541f99(0x6f)]};}}
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
* @module revision-history/editor/revisionviewereditor
|
|
7
7
|
*/
|
|
8
8
|
import { Editor, type EditorConfig } from 'ckeditor5/src/core.js';
|
|
9
|
-
import RevisionViewerEditorUI from './revisionviewereditorui.js';
|
|
9
|
+
import { RevisionViewerEditorUI } from './revisionviewereditorui.js';
|
|
10
10
|
declare const RevisionViewerEditor_base: import("@ckeditor/ckeditor5-utils").Mixed<typeof Editor, import("ckeditor5/src/core.js").ElementApi>;
|
|
11
11
|
/**
|
|
12
12
|
* Editor class used to show revision comparisons.
|
|
13
13
|
*/
|
|
14
|
-
export
|
|
14
|
+
export declare class RevisionViewerEditor extends /* #__PURE__ -- @preserve */ RevisionViewerEditor_base {
|
|
15
15
|
get ui(): RevisionViewerEditorUI;
|
|
16
16
|
/**
|
|
17
17
|
* @param sourceElement Editor source element.
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x39b42c=_0x46d5;function _0x46d5(_0x11532f,_0x284707){const _0x30c115=_0x30c1();return _0x46d5=function(_0x46d561,_0x1ee1de){_0x46d561=_0x46d561-0x109;let _0x53d2c7=_0x30c115[_0x46d561];return _0x53d2c7;},_0x46d5(_0x11532f,_0x284707);}function _0x30c1(){const _0x3fadb3=['config','242889IaeNbn','initialData','view','64Gyusns','locale','144462SojHjW','235wIMuIj','6052570cNLOhO','updateSourceElement','editing','data','480496KaMevu','sourceElement','8055njxaID','init','3421691lxJBXQ','fire','846287eCGhCq','create','document','model','get','ready','createRoot','_ui','initPlugins','destroy','8960VoSsJv'];_0x30c1=function(){return _0x3fadb3;};return _0x30c1();}(function(_0x4e9550,_0x69c8){const _0x358a82=_0x46d5,_0x1a9045=_0x4e9550();while(!![]){try{const _0x26fa38=parseInt(_0x358a82(0x111))/0x1+parseInt(_0x358a82(0x10b))/0x2+-parseInt(_0x358a82(0x11d))/0x3*(parseInt(_0x358a82(0x120))/0x4)+parseInt(_0x358a82(0x123))/0x5*(parseInt(_0x358a82(0x122))/0x6)+-parseInt(_0x358a82(0x10f))/0x7+-parseInt(_0x358a82(0x11b))/0x8*(-parseInt(_0x358a82(0x10d))/0x9)+-parseInt(_0x358a82(0x124))/0xa;if(_0x26fa38===_0x69c8)break;else _0x1a9045['push'](_0x1a9045['shift']());}catch(_0x545bc4){_0x1a9045['push'](_0x1a9045['shift']());}}}(_0x30c1,0xcae64));import{Editor as _0x3115d2,ElementApiMixin as _0x15d312}from'ckeditor5/src/core.js';import{RevisionViewerEditorUI as _0x4a72fb}from'./revisionviewereditorui.js';import{RevisionViewerEditorUIView as _0x5ec9ab}from'./revisionviewereditoruiview.js';export class RevisionViewerEditor extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x15d312(_0x3115d2){[_0x39b42c(0x118)];get['ui'](){const _0x3df425=_0x39b42c;return this[_0x3df425(0x118)];}constructor(_0x5a810c,_0x3faebc){const _0x58942d=_0x39b42c;super(_0x3faebc),this[_0x58942d(0x10c)]=_0x5a810c,this[_0x58942d(0x114)][_0x58942d(0x113)][_0x58942d(0x117)]();const _0x22c176=new _0x5ec9ab(this[_0x58942d(0x121)],this[_0x58942d(0x109)][_0x58942d(0x11f)],{'shouldToolbarGroupWhenFull':!0x0});this[_0x58942d(0x118)]=new _0x4a72fb(this,_0x22c176);}[_0x39b42c(0x11a)](){const _0x5a4f46=_0x39b42c;return this[_0x5a4f46(0x125)](),this['ui'][_0x5a4f46(0x11a)](),super[_0x5a4f46(0x11a)]();}static async[_0x39b42c(0x112)](_0xe7f1d7,_0x511869){const _0x19bd39=_0x39b42c,_0x53e714=new this(_0xe7f1d7,_0x511869);return await _0x53e714[_0x19bd39(0x119)](),await _0x53e714['ui'][_0x19bd39(0x10e)](_0xe7f1d7),await _0x53e714[_0x19bd39(0x10a)][_0x19bd39(0x10e)](_0x53e714[_0x19bd39(0x11c)][_0x19bd39(0x115)](_0x19bd39(0x11e))||''),_0x53e714[_0x19bd39(0x110)](_0x19bd39(0x116)),_0x53e714;}}
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import type { Editor } from 'ckeditor5/src/core.js';
|
|
9
9
|
import { EditorUI } from 'ckeditor5/src/ui.js';
|
|
10
|
-
import type RevisionViewerEditorUIView from './revisionviewereditoruiview.js';
|
|
11
|
-
export
|
|
10
|
+
import { type RevisionViewerEditorUIView } from './revisionviewereditoruiview.js';
|
|
11
|
+
export declare class RevisionViewerEditorUI extends EditorUI {
|
|
12
12
|
get view(): RevisionViewerEditorUIView;
|
|
13
13
|
constructor(editor: Editor, view: RevisionViewerEditorUIView);
|
|
14
14
|
/**
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x301487=_0x4265;function _0x4265(_0x4754e4,_0x37a34e){const _0x12ceb9=_0x12ce();return _0x4265=function(_0x4265d7,_0x4e27c0){_0x4265d7=_0x4265d7-0x82;let _0x3277e4=_0x12ceb9[_0x4265d7];return _0x3277e4;},_0x4265(_0x4754e4,_0x37a34e);}function _0x12ce(){const _0x509316=['setEditableElement','6380eOTDGW','view','editable','fillFromConfig','focusTracker','config','replace','document','bind','init','isFocused','_initToolbar','get','45537vNMlxp','restore','rootName','addToolbar','render','destroy','editor','getRoot','viewportOffset','fire','limiterElement','componentFactory','detachDomRoot','name','stickyPanel','isActive','element','3829780AvAKuk','153518CwHKaZ','_elementReplacer','_view','attachDomRoot','viewportTopOffset','32TKGxWj','97135GPELwa','78vXsjTN','106542Oovkzw','ready','40GcZxRS','_toolbarConfig','300055UqCXCD','toolbar','editing'];_0x12ce=function(){return _0x509316;};return _0x12ce();}(function(_0x440fa9,_0x19386a){const _0x24e43e=_0x4265,_0x245487=_0x440fa9();while(!![]){try{const _0xde8bcf=parseInt(_0x24e43e(0x8f))/0x1+parseInt(_0x24e43e(0x9f))/0x2+-parseInt(_0x24e43e(0xac))/0x3*(-parseInt(_0x24e43e(0x94))/0x4)+-parseInt(_0x24e43e(0x95))/0x5*(-parseInt(_0x24e43e(0x96))/0x6)+parseInt(_0x24e43e(0x9b))/0x7+parseInt(_0x24e43e(0x99))/0x8*(-parseInt(_0x24e43e(0x97))/0x9)+-parseInt(_0x24e43e(0x8e))/0xa;if(_0xde8bcf===_0x19386a)break;else _0x245487['push'](_0x245487['shift']());}catch(_0x45639c){_0x245487['push'](_0x245487['shift']());}}}(_0x12ce,0x2013c));import{EditorUI as _0x4d78a5,normalizeToolbarConfig as _0x3fe121}from'ckeditor5/src/ui.js';import{ElementReplacer as _0x5ee8df}from'ckeditor5/src/utils.js';export class RevisionViewerEditorUI extends _0x4d78a5{[_0x301487(0x91)];[_0x301487(0x9a)];[_0x301487(0x90)];get[_0x301487(0xa0)](){const _0x349b3e=_0x301487;return this[_0x349b3e(0x91)];}constructor(_0x27243a,_0x266bb8){const _0x409e8e=_0x301487;super(_0x27243a),this[_0x409e8e(0x91)]=_0x266bb8,this[_0x409e8e(0x9a)]=_0x3fe121(_0x27243a[_0x409e8e(0xa4)][_0x409e8e(0xab)](_0x409e8e(0x9c))),this[_0x409e8e(0x90)]=new _0x5ee8df();}get[_0x301487(0x8d)](){const _0xc83da5=_0x301487;return this[_0xc83da5(0xa0)][_0xc83da5(0x8d)];}[_0x301487(0xa8)](_0x5e6f93){const _0x3b8ed1=_0x301487,_0xdd7593=this[_0x3b8ed1(0x83)],_0x4f5ca7=this[_0x3b8ed1(0xa0)],_0x3e8a75=_0xdd7593[_0x3b8ed1(0x9d)][_0x3b8ed1(0xa0)],_0x4ead29=_0x4f5ca7[_0x3b8ed1(0xa1)],_0x301400=_0x3e8a75[_0x3b8ed1(0xa6)][_0x3b8ed1(0x84)]();_0x4ead29[_0x3b8ed1(0x8a)]=_0x301400[_0x3b8ed1(0xae)],_0x4f5ca7[_0x3b8ed1(0xb0)]();const _0x38ccab=_0x4ead29[_0x3b8ed1(0x8d)];this[_0x3b8ed1(0x9e)](_0x4ead29[_0x3b8ed1(0x8a)],_0x38ccab),_0x4f5ca7[_0x3b8ed1(0xa1)][_0x3b8ed1(0xa7)](_0x3b8ed1(0xa9))['to'](this[_0x3b8ed1(0xa3)]),_0x3e8a75[_0x3b8ed1(0x92)](_0x38ccab),this[_0x3b8ed1(0x90)][_0x3b8ed1(0xa5)](_0x5e6f93,this[_0x3b8ed1(0x8d)]),this[_0x3b8ed1(0xaa)](),this[_0x3b8ed1(0x86)](_0x3b8ed1(0x98));}[_0x301487(0x82)](){const _0x5607ff=_0x301487;super[_0x5607ff(0x82)]();const _0xf3ed38=this[_0x5607ff(0xa0)],_0x510a21=this[_0x5607ff(0x83)][_0x5607ff(0x9d)][_0x5607ff(0xa0)];this[_0x5607ff(0x90)][_0x5607ff(0xad)](),_0x510a21[_0x5607ff(0x89)](_0xf3ed38[_0x5607ff(0xa1)][_0x5607ff(0x8a)]),_0xf3ed38[_0x5607ff(0x82)]();}[_0x301487(0xaa)](){const _0x5af51b=_0x301487,_0x2710ba=this[_0x5af51b(0xa0)];_0x2710ba[_0x5af51b(0x8b)][_0x5af51b(0xa7)](_0x5af51b(0x8c))['to'](this[_0x5af51b(0xa3)],_0x5af51b(0xa9)),_0x2710ba[_0x5af51b(0x8b)][_0x5af51b(0x87)]=_0x2710ba[_0x5af51b(0x8d)],_0x2710ba[_0x5af51b(0x8b)][_0x5af51b(0xa7)](_0x5af51b(0x93))['to'](this,_0x5af51b(0x85),({top:_0x49a537})=>_0x49a537),_0x2710ba[_0x5af51b(0x9c)][_0x5af51b(0xa2)](this[_0x5af51b(0x9a)],this[_0x5af51b(0x88)]),this[_0x5af51b(0xaf)](_0x2710ba[_0x5af51b(0x9c)]);}}
|
|
@@ -9,7 +9,7 @@ import { BoxedEditorUIView, InlineEditableUIView, StickyPanelView, ToolbarView }
|
|
|
9
9
|
import type { EditingView } from 'ckeditor5/src/engine.js';
|
|
10
10
|
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
11
11
|
import '@ckeditor/ckeditor5-editor-classic/theme/classiceditor.css';
|
|
12
|
-
export
|
|
12
|
+
export declare class RevisionViewerEditorUIView extends BoxedEditorUIView {
|
|
13
13
|
/**
|
|
14
14
|
* Sticky panel view instance. This is a parent view of a {@link #toolbar}
|
|
15
15
|
* that makes toolbar sticky.
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x1a0b20=_0x5cda;(function(_0x498dd8,_0x330ca2){var _0xa8ac98=_0x5cda,_0x4167f6=_0x498dd8();while(!![]){try{var _0x15ea63=parseInt(_0xa8ac98(0xb7))/0x1+-parseInt(_0xa8ac98(0xb8))/0x2*(parseInt(_0xa8ac98(0xbd))/0x3)+-parseInt(_0xa8ac98(0xae))/0x4*(parseInt(_0xa8ac98(0xaf))/0x5)+-parseInt(_0xa8ac98(0xb0))/0x6+parseInt(_0xa8ac98(0xb1))/0x7+parseInt(_0xa8ac98(0xba))/0x8+parseInt(_0xa8ac98(0xb5))/0x9;if(_0x15ea63===_0x330ca2)break;else _0x4167f6['push'](_0x4167f6['shift']());}catch(_0x482616){_0x4167f6['push'](_0x4167f6['shift']());}}}(_0x496c,0x90806));import{BoxedEditorUIView as _0x2dcabe,InlineEditableUIView as _0x4f52ae,StickyPanelView as _0x4491b4,ToolbarView as _0x451a5b}from'ckeditor5/src/ui.js';function _0x496c(){var _0x2c4443=['main','9397953lIZWCY','stickyPanel','623033lHdhhE','775870QpYnHq','_editable','8361936mRLCFW','top','shouldToolbarGroupWhenFull','9JpiZgm','content','editable','render','2278832pFVAEA','10NXfFqs','4387422HnvZPq','6396908MTvYUU','toolbar','add'];_0x496c=function(){return _0x2c4443;};return _0x496c();}function _0x5cda(_0x3ea36e,_0x218f54){var _0x496c72=_0x496c();return _0x5cda=function(_0x5cdaf0,_0x1c162e){_0x5cdaf0=_0x5cdaf0-0xac;var _0x3c2900=_0x496c72[_0x5cdaf0];return _0x3c2900;},_0x5cda(_0x3ea36e,_0x218f54);}import'@ckeditor/ckeditor5-editor-classic/theme/classiceditor.css';export class RevisionViewerEditorUIView extends _0x2dcabe{[_0x1a0b20(0xb9)];[_0x1a0b20(0xb6)];[_0x1a0b20(0xb2)];get[_0x1a0b20(0xac)](){var _0x4123a5=_0x1a0b20;return this[_0x4123a5(0xb9)];}constructor(_0x4570c5,_0x1635c6,_0x19eaff={}){var _0x7e2d9b=_0x1a0b20;super(_0x4570c5),this[_0x7e2d9b(0xb6)]=new _0x4491b4(_0x4570c5),this[_0x7e2d9b(0xb2)]=new _0x451a5b(_0x4570c5,{'shouldGroupWhenFull':_0x19eaff[_0x7e2d9b(0xbc)]}),this[_0x7e2d9b(0xb9)]=new _0x4f52ae(_0x4570c5,_0x1635c6);}[_0x1a0b20(0xad)](){var _0x57b426=_0x1a0b20;super[_0x57b426(0xad)](),this[_0x57b426(0xb6)][_0x57b426(0xbe)][_0x57b426(0xb3)](this[_0x57b426(0xb2)]),this[_0x57b426(0xbb)][_0x57b426(0xb3)](this[_0x57b426(0xb6)]),this[_0x57b426(0xb4)][_0x57b426(0xb3)](this[_0x57b426(0xac)]);}}
|
package/src/index.d.ts
CHANGED
|
@@ -2,17 +2,20 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
5
|
+
export { Revision, type RevisionUpdateEvent, type RevisionJSON } from './revision.js';
|
|
6
|
+
export { RevisionHistory } from './revisionhistory.js';
|
|
7
|
+
export { RevisionsRepository } from './revisionsrepository.js';
|
|
8
|
+
export { RevisionHistoryUtils } from './revisionhistoryutils.js';
|
|
9
|
+
export { RevisionViewerLoadingOverlay } from './ui/revisionviewer/revisionviewerloadingoverlay.js';
|
|
10
|
+
export { RevisionHistoryUI } from './ui/revisionhistory/revisionhistoryui.js';
|
|
11
|
+
export { RevisionTracker } from './revisiontracker.js';
|
|
12
|
+
export { RevisionViewer, RestoreRevisionCommand, ShowChangeCommand } from './revisionviewer.js';
|
|
13
|
+
export { RevisionsSidebar } from './ui/revisionssidebar/revisionssidebar.js';
|
|
14
|
+
export { RevisionViewerUI } from './ui/revisionviewer/revisionviewerui.js';
|
|
15
|
+
export { RevisionViewerEditor } from './editor/revisionviewereditor.js';
|
|
16
16
|
export type { RevisionData } from './revision.js';
|
|
17
17
|
export type { RevisionHistoryConfig } from './revisionhistoryconfig.js';
|
|
18
|
+
export type { RevisionSource as _RevisionHistoryRevisionSource } from './revisiontracker.js';
|
|
19
|
+
export type { RevisionViewerIntegration, TapeValue as _RevisionHistoryTapeValue, TapeItem as _RevisionHistoryTapeItem } from './revisionhistory.js';
|
|
20
|
+
export type { RevisionHistoryAdapter } from './revisionhistoryadapter.js';
|
|
18
21
|
import './augmentation.js';
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x5b4990,_0x1cae43){var _0x558b08=_0x512e,_0x4067f0=_0x5b4990();while(!![]){try{var _0x5ae12e=-parseInt(_0x558b08(0xe6))/0x1+-parseInt(_0x558b08(0xe3))/0x2+-parseInt(_0x558b08(0xe1))/0x3*(parseInt(_0x558b08(0xe4))/0x4)+parseInt(_0x558b08(0xe2))/0x5+-parseInt(_0x558b08(0xe0))/0x6*(-parseInt(_0x558b08(0xde))/0x7)+-parseInt(_0x558b08(0xdf))/0x8+parseInt(_0x558b08(0xe5))/0x9;if(_0x5ae12e===_0x1cae43)break;else _0x4067f0['push'](_0x4067f0['shift']());}catch(_0x4ee31b){_0x4067f0['push'](_0x4067f0['shift']());}}}(_0x2591,0xe9998));export{Revision}from'./revision.js';export{RevisionHistory}from'./revisionhistory.js';export{RevisionsRepository}from'./revisionsrepository.js';export{RevisionHistoryUtils}from'./revisionhistoryutils.js';export{RevisionViewerLoadingOverlay}from'./ui/revisionviewer/revisionviewerloadingoverlay.js';export{RevisionHistoryUI}from'./ui/revisionhistory/revisionhistoryui.js';export{RevisionTracker}from'./revisiontracker.js';function _0x2591(){var _0xdb71e2=['57169DMDeKA','13196256jTThYK','1146YVWaWJ','258AvbXbr','7715600qfWBQx','1325568OTUCsc','62092AsUPjY','30110571Vvbjge','1844518dDoSEH'];_0x2591=function(){return _0xdb71e2;};return _0x2591();}export{RevisionViewer,RestoreRevisionCommand,ShowChangeCommand}from'./revisionviewer.js';function _0x512e(_0x3e6eb3,_0x513bcd){var _0x259194=_0x2591();return _0x512e=function(_0x512e94,_0x2291ac){_0x512e94=_0x512e94-0xde;var _0x1f50f0=_0x259194[_0x512e94];return _0x1f50f0;},_0x512e(_0x3e6eb3,_0x513bcd);}export{RevisionsSidebar}from'./ui/revisionssidebar/revisionssidebar.js';export{RevisionViewerUI}from'./ui/revisionviewer/revisionviewerui.js';export{RevisionViewerEditor}from'./editor/revisionviewereditor.js';import'./augmentation.js';
|
package/src/revision.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ declare const Revision_base: {
|
|
|
10
10
|
/**
|
|
11
11
|
* Represents a revision.
|
|
12
12
|
*/
|
|
13
|
-
export
|
|
13
|
+
export declare class Revision extends /* #__PURE__ -- @preserve */ Revision_base {
|
|
14
14
|
/**
|
|
15
15
|
* Unique revision id.
|
|
16
16
|
*/
|
package/src/revision.js
CHANGED
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
function _0x1c10(){const _0x3ea370=['setName','createdAt','280nIJTda','861LpkDkY','name','authorsIds','3808674MMMpPc','attributes','creator','48GPqWXT','toJSON','_update','setAttribute','589430NzWhGJ','7639030hTiBjL','364938dbPnHy','18387jsCcog','diffData','2018947rIGsKZ','set','model','276BNmSVm','toVersion','map','creatorId','authors','fromVersion','fire','removeAttribute'];_0x1c10=function(){return _0x3ea370;};return _0x1c10();}const _0x438609=_0x5a95;(function(_0x22cc6a,_0x57930){const _0x483443=_0x5a95,_0x2c0ad4=_0x22cc6a();while(!![]){try{const _0x3aa7de=-parseInt(_0x483443(0xc7))/0x1+parseInt(_0x483443(0xcd))/0x2*(parseInt(_0x483443(0xd8))/0x3)+parseInt(_0x483443(0xde))/0x4*(parseInt(_0x483443(0xe2))/0x5)+parseInt(_0x483443(0xdb))/0x6+-parseInt(_0x483443(0xca))/0x7+parseInt(_0x483443(0xd7))/0x8*(parseInt(_0x483443(0xc8))/0x9)+-parseInt(_0x483443(0xe3))/0xa;if(_0x3aa7de===_0x57930)break;else _0x2c0ad4['push'](_0x2c0ad4['shift']());}catch(_0x463f66){_0x2c0ad4['push'](_0x2c0ad4['shift']());}}}(_0x1c10,0xb575c));import{ObservableMixin as _0x3f32df,uid as _0x557cd2}from'ckeditor5/src/utils.js';import{cloneDeep as _0x458092,set as _0x10d37d,unset as _0x5a454b}from'es-toolkit/compat';function _0x5a95(_0x2e0167,_0x1bc340){const _0x1c1036=_0x1c10();return _0x5a95=function(_0x5a95b2,_0x1365ac){_0x5a95b2=_0x5a95b2-0xc7;let _0x1d6109=_0x1c1036[_0x5a95b2];return _0x1d6109;},_0x5a95(_0x2e0167,_0x1bc340);}export class Revision extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3f32df(){['id'];[_0x438609(0xdd)];[_0x438609(0xd1)];[_0x438609(0xc9)];[_0x438609(0xce)];[_0x438609(0xd2)];[_0x438609(0xcc)];constructor(_0x3198b4){const _0x43119c=_0x438609;super(),this['id']=_0x3198b4['id']||_0x557cd2(),this[_0x43119c(0xdd)]=_0x3198b4[_0x43119c(0xdd)]||null,this[_0x43119c(0xd1)]=_0x3198b4[_0x43119c(0xd1)]||[],this[_0x43119c(0xc9)]=_0x3198b4[_0x43119c(0xc9)]||null,this[_0x43119c(0xce)]=_0x3198b4[_0x43119c(0xce)]||0x0,this[_0x43119c(0xd2)]=_0x3198b4[_0x43119c(0xd2)]||0x0,this[_0x43119c(0xcb)](_0x43119c(0xd9),_0x3198b4[_0x43119c(0xd9)]||''),this[_0x43119c(0xcb)](_0x43119c(0xd6),_0x3198b4[_0x43119c(0xd6)]||new Date()),this[_0x43119c(0xcb)](_0x43119c(0xdc),_0x3198b4[_0x43119c(0xdc)]||{});}[_0x438609(0xd5)](_0x28fd04){const _0x45c4e1=_0x438609;this[_0x45c4e1(0xe0)]({'name':_0x28fd04});}[_0x438609(0xe1)](_0x2c675c,_0x3da6da){const _0x298bd2=_0x438609,_0x330f89=_0x458092(this[_0x298bd2(0xdc)]);_0x10d37d(_0x330f89,_0x2c675c,_0x3da6da),this[_0x298bd2(0xe0)]({'attributes':_0x330f89});}[_0x438609(0xd4)](_0x523f48){const _0x33df0c=_0x438609,_0x196b30=_0x458092(this[_0x33df0c(0xdc)]);_0x5a454b(_0x196b30,_0x523f48),this[_0x33df0c(0xe0)]({'attributes':_0x196b30});}[_0x438609(0xe0)](_0x5c6258,_0x3e28f7=!0x1){const _0x3f2b24=_0x438609;let _0x4f6b4b=!0x1;const _0x51ee1a={'id':this['id']},_0x41c8a7=[_0x3f2b24(0xd9),_0x3f2b24(0xd6),_0x3f2b24(0xc9),_0x3f2b24(0xd1),_0x3f2b24(0xdc),_0x3f2b24(0xce),_0x3f2b24(0xd2),_0x3f2b24(0xd0)];for(const _0xb28c44 of _0x41c8a7){const _0x45ea35=_0x5c6258[_0xb28c44];void 0x0!==_0x45ea35&&_0x45ea35!==this[_0xb28c44]&&(this[_0xb28c44]=_0x45ea35,_0x51ee1a[_0xb28c44]=_0x45ea35,_0x4f6b4b=!0x0);}_0x4f6b4b&&(_0x51ee1a[_0x3f2b24(0xd1)]&&(_0x51ee1a[_0x3f2b24(0xda)]=_0x51ee1a[_0x3f2b24(0xd1)][_0x3f2b24(0xcf)](_0x3a5dcc=>_0x3a5dcc['id']),delete _0x51ee1a[_0x3f2b24(0xd1)]),this[_0x3f2b24(0xd3)](_0x3f2b24(0xe0),_0x51ee1a,_0x3e28f7));}[_0x438609(0xdf)](){const _0x5956a2=_0x438609;return{'id':this['id'],'name':this[_0x5956a2(0xd9)],'creatorId':this[_0x5956a2(0xdd)]?this[_0x5956a2(0xdd)]['id']:null,'authorsIds':this[_0x5956a2(0xd1)][_0x5956a2(0xcf)](_0x276717=>_0x276717['id']),'diffData':this[_0x5956a2(0xc9)],'createdAt':this[_0x5956a2(0xd6)],'attributes':this[_0x5956a2(0xdc)],'fromVersion':this[_0x5956a2(0xd2)],'toVersion':this[_0x5956a2(0xce)]};}}
|
package/src/revisiondiff.d.ts
CHANGED
|
@@ -6,19 +6,19 @@
|
|
|
6
6
|
* @module revision-history/revisiondiff
|
|
7
7
|
*/
|
|
8
8
|
import { Collection } from 'ckeditor5/src/utils.js';
|
|
9
|
-
import type {
|
|
10
|
-
import type ChangeItem from './changeitem.js';
|
|
9
|
+
import type { ModelDocumentFragment } from 'ckeditor5/src/engine.js';
|
|
10
|
+
import { type ChangeItem } from './changeitem.js';
|
|
11
11
|
/**
|
|
12
12
|
* Represents a difference between two document revisions.
|
|
13
13
|
*/
|
|
14
|
-
export
|
|
14
|
+
export declare class RevisionDiff {
|
|
15
15
|
readonly newRevisionId: string;
|
|
16
16
|
readonly oldRevisionId: string;
|
|
17
17
|
readonly changes: Collection<ChangeItem>;
|
|
18
18
|
constructor(newRevisionId: string, oldRevisionId: string);
|
|
19
19
|
}
|
|
20
20
|
export interface DiffData {
|
|
21
|
-
model: Record<string,
|
|
21
|
+
model: Record<string, ModelDocumentFragment>;
|
|
22
22
|
attributes: Record<string, Record<string, unknown>>;
|
|
23
23
|
changes: Array<ChangeItem>;
|
|
24
24
|
}
|
package/src/revisiondiff.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x1784(_0x358953,_0x3d308d){const _0x162657=_0x1626();return _0x1784=function(_0x178438,_0x22da72){_0x178438=_0x178438-0x18a;let _0x544489=_0x162657[_0x178438];return _0x544489;},_0x1784(_0x358953,_0x3d308d);}const _0x51b767=_0x1784;(function(_0x594875,_0x45e5b1){const _0x18af43=_0x1784,_0x3c7012=_0x594875();while(!![]){try{const _0x5ea9a1=-parseInt(_0x18af43(0x18c))/0x1+parseInt(_0x18af43(0x193))/0x2*(parseInt(_0x18af43(0x18f))/0x3)+-parseInt(_0x18af43(0x198))/0x4+parseInt(_0x18af43(0x192))/0x5*(parseInt(_0x18af43(0x194))/0x6)+parseInt(_0x18af43(0x190))/0x7*(parseInt(_0x18af43(0x18a))/0x8)+-parseInt(_0x18af43(0x18d))/0x9*(parseInt(_0x18af43(0x19a))/0xa)+-parseInt(_0x18af43(0x196))/0xb*(-parseInt(_0x18af43(0x195))/0xc);if(_0x5ea9a1===_0x45e5b1)break;else _0x3c7012['push'](_0x3c7012['shift']());}catch(_0x1268c7){_0x3c7012['push'](_0x3c7012['shift']());}}}(_0x1626,0xda813));import{Collection as _0x1135a7}from'ckeditor5/src/utils.js';function _0x1626(){const _0x1ebda6=['11jKFrEb','oldRevisionId','4978416JbInit','newRevisionId','7930OhHIXc','8BbwdvK','_setChanges','1635239NCkjLO','11187vovlgj','changes','4492890qVduRm','6418405YjyUGC','add','10iiBMph','2fmVAXV','4420902PSmTse','10468296eqtNbe'];_0x1626=function(){return _0x1ebda6;};return _0x1626();}export class RevisionDiff{[_0x51b767(0x199)];[_0x51b767(0x197)];[_0x51b767(0x18e)];constructor(_0x5116db,_0x4bea9c){const _0x56e16b=_0x51b767;this[_0x56e16b(0x199)]=_0x5116db,this[_0x56e16b(0x197)]=_0x4bea9c,this[_0x56e16b(0x18e)]=new _0x1135a7();}[_0x51b767(0x18b)](_0x5e81aa){const _0xd5117c=_0x51b767;for(const _0x1aa0e2 of _0x5e81aa)this[_0xd5117c(0x18e)][_0xd5117c(0x191)](_0x1aa0e2);}}
|
package/src/revisionhistory.d.ts
CHANGED
|
@@ -7,10 +7,9 @@
|
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
9
|
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import type { default as Revision, RevisionJSON } from './revision.js';
|
|
10
|
+
import { RevisionTracker } from './revisiontracker.js';
|
|
11
|
+
import { RevisionHistoryUI } from './ui/revisionhistory/revisionhistoryui.js';
|
|
12
|
+
import type { Revision, RevisionJSON } from './revision.js';
|
|
14
13
|
import type { RevisionHistoryAdapter } from './revisionhistoryadapter.js';
|
|
15
14
|
/**
|
|
16
15
|
* Fake plugin to avoid UBB requests from virtual editor.
|
|
@@ -37,7 +36,7 @@ export declare class RevisionViewerIntegration extends Plugin {
|
|
|
37
36
|
* To learn more about the revision history feature refer to the
|
|
38
37
|
* {@glink features/collaboration/revision-history/revision-history Revision history} guide.
|
|
39
38
|
*/
|
|
40
|
-
export
|
|
39
|
+
export declare class RevisionHistory extends Plugin {
|
|
41
40
|
/**
|
|
42
41
|
* Indicates whether the revision history viewer is currently visible.
|
|
43
42
|
*
|
|
@@ -92,39 +91,3 @@ export default class RevisionHistory extends Plugin {
|
|
|
92
91
|
toJSON: boolean;
|
|
93
92
|
}): Array<Revision> | Array<RevisionJSON>;
|
|
94
93
|
}
|
|
95
|
-
export interface TapeValue {
|
|
96
|
-
id?: number;
|
|
97
|
-
type: 'elementStart' | 'elementEnd' | 'text';
|
|
98
|
-
item: TapeItem;
|
|
99
|
-
previousPosition?: Position;
|
|
100
|
-
nextPosition?: Position;
|
|
101
|
-
isAdded?: {
|
|
102
|
-
userId: string;
|
|
103
|
-
} | false;
|
|
104
|
-
isRemoved?: {
|
|
105
|
-
userId: string;
|
|
106
|
-
};
|
|
107
|
-
pairId?: number | null;
|
|
108
|
-
markersStart?: Array<string>;
|
|
109
|
-
markersEnd?: Array<string>;
|
|
110
|
-
isIncorrect?: boolean;
|
|
111
|
-
distance?: number;
|
|
112
|
-
isAddSuggestion?: {
|
|
113
|
-
userId: string;
|
|
114
|
-
type: string;
|
|
115
|
-
name: string;
|
|
116
|
-
};
|
|
117
|
-
isRemoveSuggestion?: {
|
|
118
|
-
userId: string;
|
|
119
|
-
type: string;
|
|
120
|
-
name: string;
|
|
121
|
-
};
|
|
122
|
-
side?: number;
|
|
123
|
-
level?: number;
|
|
124
|
-
index?: number;
|
|
125
|
-
}
|
|
126
|
-
export type TapeItem = Item & {
|
|
127
|
-
name: string;
|
|
128
|
-
startIndex?: number;
|
|
129
|
-
endIndex?: number;
|
|
130
|
-
};
|
package/src/revisionhistory.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x284234=_0x38f2;function _0x7d6f(){const _0x3c18c6=['RevisionsRepository','toLocaleTimeString','from','isOpen','4jLRNRm','catch','_update','lazyRoots','getRevisionDocumentData','Restored','save','isOfficialPlugin','revisionHistory.viewerEditorElement','refreshVisibility','revisionHistory','parse','RevisionHistoryUtils','markers','push','_enhanceShowRevisionViewerCallback','includes','destroy','isAnonymous','isPremiumPlugin','style','14215267eTVJHb','selection','hide','commands','revisionHistory.closeRevisionViewerCallback','saveRevision','Dialog','define','repository','Annotations','display','toJSON','addRevisionData','translations','bind','pluginName','get','RevisionTracker','fromCharCode','detachRoot','closeRevisionViewerCallback','uiLanguage','insert','isReadOnly','_enhanceCloseRevisionViewerCallback','model','rootName','isReady','revisionHistory.requireRevisionName','_viewerEditor','Users','plugins','map','long','7284392OFgopM','addUser','RevisionViewerIntegration','join','RevisionViewer','refreshPositioning','requires','removeAttribute','_getRevisionViewerEditorConfig','view','isEnabled','toLocaleDateString','10DsWhzt','indexOf','keys','getRoot','getMarkersGroup','then','name','loadRevisionData','_showRevisionViewer','53296RhMWgX','_recalculatePageBreaks','fromVersion','config','_restoreRevision','getRevisions','7UgTkZE','addRoot','Autosave','change','RevisionHistory','64585VWGxBO','adapter','has','createdAt','enqueueChange','setAttribute','disableReadOnlyMode','revision-history-viewer-opened','toVersion','restrictedEditingException','users','951836AGKMOe','DocumentOutlineUI','set','$graveyard','editor','end','revisionHistory.viewerContainer','revisionHistory.editorContainer','showRevisionViewerCallback','getAttributeKeys','document','init','create','_closeRevisionViewer','data','roots','error','restoreRevision','getUser','creator','exitToEditing','9gcBMVF','8849952OwYOuQ','update','20570088YNXEKG','isAttached','revisionHistory.showRevisionViewerCallback','getRevisionRootsAttributes','getRevision','createRangeIn','removeMarker','none','changesNavigation','block','remove','revisionHistory.restoreRevisionCallback','setSelection','locale','PaginationLookup','_cleanUp','DocumentOutline','toolbar','isRevisionViewerOpen','element','606vkrTdi','removeSelectionAttribute','numeric','enableReadOnlyMode','revision-history-missing-configuration','RevisionHistoryUI','result','RestrictedEditingMode'];_0x7d6f=function(){return _0x3c18c6;};return _0x7d6f();}(function(_0xb5c908,_0x706327){const _0x361382=_0x38f2,_0x5740f6=_0xb5c908();while(!![]){try{const _0x40bb70=-parseInt(_0x361382(0x15c))/0x1*(parseInt(_0x361382(0x10e))/0x2)+parseInt(_0x361382(0x139))/0x3*(parseInt(_0x361382(0x124))/0x4)+parseInt(_0x361382(0x119))/0x5*(-parseInt(_0x361382(0x150))/0x6)+parseInt(_0x361382(0x114))/0x7*(parseInt(_0x361382(0x193))/0x8)+parseInt(_0x361382(0x13a))/0x9+parseInt(_0x361382(0x19f))/0xa*(parseInt(_0x361382(0x171))/0xb)+-parseInt(_0x361382(0x13c))/0xc;if(_0x40bb70===_0x706327)break;else _0x5740f6['push'](_0x5740f6['shift']());}catch(_0xb554c1){_0x5740f6['push'](_0x5740f6['shift']());}}}(_0x7d6f,0xbd20c));import{Plugin as _0x4cbe75}from'ckeditor5/src/core.js';import{CKEditorError as _0x5c86e9,uid as _0x32291a}from'ckeditor5/src/utils.js';import _0x4d2040 from'./revisiontracker.js';import _0x5942c8 from'./ui/revisionhistory/revisionhistoryui.js';import _0x2b01bf from'./revisionviewer.js';import _0x32ef2d from'./ui/revisionviewer/revisionviewerui.js';import _0x20d4ad from'./ui/revisionssidebar/revisionssidebar.js';import _0xf1ff06 from'./editor/revisionviewereditor.js';import{getTranslation as _0xe0ef81}from'./utils/common-translations.js';import{sanitizeEditorConfig as _0xa04768}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x38f2(_0x52433f,_0x5589a9){const _0x7d6fb5=_0x7d6f();return _0x38f2=function(_0x38f27d,_0x5c2d37){_0x38f27d=_0x38f27d-0x10b;let _0x450af8=_0x7d6fb5[_0x38f27d];return _0x450af8;},_0x38f2(_0x52433f,_0x5589a9);}const p=[_0x284234(0x155),_0x284234(0x157)];export class RevisionViewerIntegration extends _0x4cbe75{[_0x284234(0x156)];static get[_0x284234(0x180)](){const _0x2a1921=_0x284234;return _0x2a1921(0x195);}static get[_0x284234(0x163)](){return!0x0;}static get[_0x284234(0x16f)](){return!0x0;}constructor(_0x1c948a){const _0x4a6488=_0x284234;function _0x2a270a(_0x5b0f78){const _0x4f4998=_0x38f2;return _0x5b0f78[_0x4f4998(0x191)](_0x217452=>String[_0x4f4998(0x183)](_0x217452))[_0x4f4998(0x196)]('');}super(_0x1c948a),this[_0x4a6488(0x156)]=_0x4a6488(0x129),_0x1c948a[_0x2a270a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2a270a([0x76,0x69,0x65,0x77])][_0x2a270a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2a270a([0x61,0x75,0x74,0x6f]),_0x1c948a[_0x2a270a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2a270a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2a270a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2a270a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2a270a([0x6f,0x6b])});}}export default class k extends _0x4cbe75{[_0x284234(0x18e)];static get[_0x284234(0x180)](){const _0x75262f=_0x284234;return _0x75262f(0x118);}static get[_0x284234(0x163)](){return!0x0;}static get[_0x284234(0x16f)](){return!0x0;}static get[_0x284234(0x199)](){return[_0x4d2040,_0x5942c8];}constructor(_0x84b050){const _0xfb79df=_0x284234;if(super(_0x84b050),!this[_0xfb79df(0x128)][_0xfb79df(0x111)][_0xfb79df(0x181)](_0xfb79df(0x166)))throw new _0x5c86e9(_0xfb79df(0x154),this);this[_0xfb79df(0x18e)]=null,this[_0xfb79df(0x126)](_0xfb79df(0x14e),!0x1),this[_0xfb79df(0x128)][_0xfb79df(0x111)][_0xfb79df(0x178)](_0xfb79df(0x13e),_0x22e7d1=>this[_0xfb79df(0x10d)]({..._0x22e7d1,'translations':this[_0xfb79df(0x128)][_0xfb79df(0x149)][_0xfb79df(0x17e)]})),this[_0xfb79df(0x128)][_0xfb79df(0x111)][_0xfb79df(0x178)](_0xfb79df(0x175),_0xab7fca=>this[_0xfb79df(0x131)](_0xab7fca)),this[_0xfb79df(0x128)][_0xfb79df(0x111)][_0xfb79df(0x178)](_0xfb79df(0x147),_0x2836ed=>this[_0xfb79df(0x112)](_0x2836ed)),this[_0xfb79df(0x128)][_0xfb79df(0x111)][_0xfb79df(0x178)](_0xfb79df(0x18d),!0x1),this[_0xfb79df(0x16b)](),this[_0xfb79df(0x189)]();}set[_0x284234(0x11a)](_0x304a8b){const _0x21be90=_0x284234;this[_0x21be90(0x128)][_0x21be90(0x190)][_0x21be90(0x181)](_0x21be90(0x182))[_0x21be90(0x11a)]=_0x304a8b;}get[_0x284234(0x11a)](){const _0x5f342e=_0x284234;return this[_0x5f342e(0x128)][_0x5f342e(0x190)][_0x5f342e(0x181)](_0x5f342e(0x182))[_0x5f342e(0x11a)];}[_0x284234(0x17d)](_0x38a744){const _0x2d7663=_0x284234;return this[_0x2d7663(0x128)][_0x2d7663(0x190)][_0x2d7663(0x181)](_0x2d7663(0x182))[_0x2d7663(0x17d)](_0x38a744);}[_0x284234(0x140)](_0x630fcc){const _0x5b3c9c=_0x284234;return this[_0x5b3c9c(0x128)][_0x5b3c9c(0x190)][_0x5b3c9c(0x181)](_0x5b3c9c(0x158))[_0x5b3c9c(0x140)](_0x630fcc);}[_0x284234(0x113)](_0x59f7a2){const _0x7dc74b=_0x284234;return this[_0x7dc74b(0x128)][_0x7dc74b(0x190)][_0x7dc74b(0x181)](_0x7dc74b(0x158))[_0x7dc74b(0x113)](_0x59f7a2||{'toJSON':!0x1});}[_0x284234(0x19b)](){const _0x1b23e7=_0x284234,_0x3c7e1b=this[_0x1b23e7(0x128)],_0x2072c9=_0xa04768(_0x3c7e1b,p),_0x50bec8=_0x3c7e1b[_0x1b23e7(0x190)][_0x1b23e7(0x181)](_0x1b23e7(0x182)),_0x37c5d6=_0x3c7e1b[_0x1b23e7(0x190)][_0x1b23e7(0x181)](_0x1b23e7(0x18f))[_0x1b23e7(0x123)];return _0x2072c9[_0x1b23e7(0x14d)]=[_0x1b23e7(0x138),_0x1b23e7(0x135),_0x1b23e7(0x144)],delete _0x2072c9[_0x1b23e7(0x15f)],(_0x2072c9[_0x1b23e7(0x190)][_0x1b23e7(0x16a)](RevisionViewerIntegration,_0x2b01bf,_0x32ef2d,class extends _0x4cbe75{static get[_0x1b23e7(0x199)](){const _0x8512c8=_0x1b23e7;return[_0x2b01bf,_0x8512c8(0x18f)];}[_0x1b23e7(0x12f)](){const _0x1d1f54=_0x1b23e7,_0x273f9f=this[_0x1d1f54(0x128)][_0x1d1f54(0x190)][_0x1d1f54(0x181)](_0x1d1f54(0x18f));for(const _0x2773c7 of _0x37c5d6)_0x2773c7[_0x1d1f54(0x16e)]||_0x273f9f[_0x1d1f54(0x136)](_0x2773c7['id'])||_0x273f9f[_0x1d1f54(0x194)](_0x2773c7);const _0x33b6de=_0x50bec8[_0x1d1f54(0x179)][_0x1d1f54(0x113)]();let _0x18f252=null;const _0x520c75=this[_0x1d1f54(0x128)][_0x1d1f54(0x190)][_0x1d1f54(0x181)](_0x1d1f54(0x197));_0x520c75[_0x1d1f54(0x11a)]=_0x50bec8[_0x1d1f54(0x11a)],_0x520c75[_0x1d1f54(0x17f)](_0x1d1f54(0x19d))['to'](_0x50bec8),this[_0x1d1f54(0x128)][_0x1d1f54(0x174)][_0x1d1f54(0x181)](_0x1d1f54(0x135))[_0x1d1f54(0x17f)](_0x1d1f54(0x19d))['to'](_0x3c7e1b,_0x1d1f54(0x188),_0x56bbe3=>!_0x56bbe3);for(const _0x255384 of _0x33b6de){const _0x398fed=null===_0x255384[_0x1d1f54(0x137)];if(_0x398fed&&_0x255384[_0x1d1f54(0x121)]===_0x255384[_0x1d1f54(0x110)])continue;const _0x9327cc=_0x255384[_0x1d1f54(0x17c)]();_0x520c75[_0x1d1f54(0x17d)](_0x9327cc,(_0xaea637,_0xb47980,_0x4a9975)=>{const _0x238224=_0x1d1f54;if(_0x398fed){if(_0x18f252)_0x18f252[_0x238224(0x15e)](_0xaea637,_0xb47980);else{if(!_0xb47980){const _0x11e791=_0x4a9975[_0x238224(0x17c)]();_0x11e791['id']=_0x32291a(),_0x50bec8[_0x238224(0x176)](_0x11e791,_0x4a9975[_0x238224(0x121)])[_0x238224(0x1a4)](_0x175d12=>{_0x18f252=_0x175d12;});}}}else _0x255384[_0x238224(0x15e)](_0xaea637,_0xb47980);});}}},_0x20d4ad),_0x2072c9);}[_0x284234(0x16b)](){const _0x28e36d=_0x284234,_0x36f69d=this[_0x28e36d(0x128)][_0x28e36d(0x111)][_0x28e36d(0x181)](_0x28e36d(0x166))[_0x28e36d(0x12c)];this[_0x28e36d(0x128)][_0x28e36d(0x111)][_0x28e36d(0x126)](_0x28e36d(0x13e),async()=>{const _0x49f33d=_0x28e36d;this[_0x49f33d(0x128)][_0x49f33d(0x153)](_0x49f33d(0x120));const _0x41a878=this[_0x49f33d(0x128)][_0x49f33d(0x190)][_0x49f33d(0x181)](_0x49f33d(0x182));if(this[_0x49f33d(0x128)][_0x49f33d(0x190)][_0x49f33d(0x11b)](_0x49f33d(0x116))){const _0x58de18=this[_0x49f33d(0x128)][_0x49f33d(0x190)][_0x49f33d(0x181)](_0x49f33d(0x116));await _0x58de18[_0x49f33d(0x162)]();}else await _0x41a878[_0x49f33d(0x13b)]();if(this[_0x49f33d(0x128)][_0x49f33d(0x190)][_0x49f33d(0x11b)](_0x49f33d(0x14a))&&this[_0x49f33d(0x128)][_0x49f33d(0x190)][_0x49f33d(0x181)](_0x49f33d(0x14a))[_0x49f33d(0x10f)](),this[_0x49f33d(0x128)][_0x49f33d(0x190)][_0x49f33d(0x11b)](_0x49f33d(0x177))){const _0x597109=this[_0x49f33d(0x128)][_0x49f33d(0x190)][_0x49f33d(0x181)](_0x49f33d(0x177));_0x597109[_0x49f33d(0x15b)]&&_0x597109[_0x49f33d(0x173)]();}const _0x388658=this[_0x49f33d(0x19b)]();return _0x36f69d(_0x388658)[_0x49f33d(0x1a4)](_0x1cb3d7=>{const _0x4739df=_0x49f33d;return(this[_0x4739df(0x18e)]=_0x1cb3d7,this[_0x4739df(0x128)][_0x4739df(0x190)][_0x4739df(0x11b)](_0x4739df(0x17a)))&&this[_0x4739df(0x128)][_0x4739df(0x190)][_0x4739df(0x181)](_0x4739df(0x17a))[_0x4739df(0x165)](),(this[_0x4739df(0x128)][_0x4739df(0x190)][_0x4739df(0x11b)](_0x4739df(0x14c))&&(this[_0x4739df(0x128)][_0x4739df(0x190)][_0x4739df(0x181)](_0x4739df(0x125))[_0x4739df(0x19c)][_0x4739df(0x14f)][_0x4739df(0x170)][_0x4739df(0x17b)]=_0x4739df(0x143)),_0x1cb3d7);})[_0x49f33d(0x15d)](_0x406e2e=>(console[_0x49f33d(0x134)](_0x406e2e),this[_0x49f33d(0x128)][_0x49f33d(0x11f)](_0x49f33d(0x120)),null));});}[_0x284234(0x189)](){const _0x10c953=_0x284234,_0x2cf8be=this[_0x10c953(0x128)][_0x10c953(0x111)][_0x10c953(0x181)](_0x10c953(0x166))[_0x10c953(0x185)];this[_0x10c953(0x128)][_0x10c953(0x111)][_0x10c953(0x126)](_0x10c953(0x175),()=>(this[_0x10c953(0x128)][_0x10c953(0x190)][_0x10c953(0x11b)](_0x10c953(0x14a))&&this[_0x10c953(0x128)][_0x10c953(0x190)][_0x10c953(0x181)](_0x10c953(0x14a))[_0x10c953(0x10f)](),this[_0x10c953(0x128)][_0x10c953(0x190)][_0x10c953(0x11b)](_0x10c953(0x14c))&&(this[_0x10c953(0x128)][_0x10c953(0x190)][_0x10c953(0x181)](_0x10c953(0x125))[_0x10c953(0x19c)][_0x10c953(0x14f)][_0x10c953(0x170)][_0x10c953(0x17b)]=''),this[_0x10c953(0x18e)][_0x10c953(0x190)][_0x10c953(0x181)](_0x10c953(0x197))[_0x10c953(0x14b)](),_0x2cf8be(this[_0x10c953(0x18e)])[_0x10c953(0x1a4)](()=>{const _0x452193=_0x10c953;if(this[_0x452193(0x128)][_0x452193(0x11f)](_0x452193(0x120)),this[_0x452193(0x18e)]=null,this[_0x452193(0x128)][_0x452193(0x190)][_0x452193(0x11b)](_0x452193(0x17a))){const _0x42b13a=this[_0x452193(0x128)][_0x452193(0x190)][_0x452193(0x181)](_0x452193(0x17a));_0x42b13a[_0x452193(0x165)](),_0x42b13a[_0x452193(0x198)]();}})));}[_0x284234(0x10d)](_0x2a0fbe){const _0x5120a2=_0x284234,_0x1dc43a=this[_0x5120a2(0x128)][_0x5120a2(0x111)][_0x5120a2(0x181)](_0x5120a2(0x12b)),_0x2acdc2=this[_0x5120a2(0x128)][_0x5120a2(0x111)][_0x5120a2(0x181)](_0x5120a2(0x12a)),_0x517fe8=this[_0x5120a2(0x128)][_0x5120a2(0x111)][_0x5120a2(0x181)](_0x5120a2(0x164));return _0xf1ff06[_0x5120a2(0x130)](_0x517fe8,_0x2a0fbe)[_0x5120a2(0x1a4)](_0x46101a=>(_0x2acdc2[_0x5120a2(0x170)][_0x5120a2(0x17b)]=_0x5120a2(0x145),_0x1dc43a[_0x5120a2(0x170)][_0x5120a2(0x17b)]=_0x5120a2(0x143),this[_0x5120a2(0x14e)]=!0x0,_0x46101a));}[_0x284234(0x131)](_0x19303e){const _0x59129d=_0x284234,_0x440264=this[_0x59129d(0x128)][_0x59129d(0x111)][_0x59129d(0x181)](_0x59129d(0x12b));return this[_0x59129d(0x128)][_0x59129d(0x111)][_0x59129d(0x181)](_0x59129d(0x12a))[_0x59129d(0x170)][_0x59129d(0x17b)]=_0x59129d(0x143),_0x440264[_0x59129d(0x170)][_0x59129d(0x17b)]='',this[_0x59129d(0x14e)]=!0x1,_0x19303e[_0x59129d(0x16d)]();}async[_0x284234(0x112)](_0x302b62){const _0x3ef12f=_0x284234,_0x2eae67=this[_0x3ef12f(0x128)],_0x1e75d7=this[_0x3ef12f(0x18e)][_0x3ef12f(0x190)][_0x3ef12f(0x181)](_0x3ef12f(0x197)),_0x2aceb7=_0x2eae67[_0x3ef12f(0x190)][_0x3ef12f(0x181)](_0x3ef12f(0x182)),_0x1cb984=_0x2eae67[_0x3ef12f(0x190)][_0x3ef12f(0x181)](_0x3ef12f(0x168)),_0x3abc90=_0x1e75d7[_0x3ef12f(0x179)][_0x3ef12f(0x140)](_0x302b62);let _0x36889b,_0x437a43,_0x535aca;try{await _0x1cb984[_0x3ef12f(0x10c)](_0x3abc90,this[_0x3ef12f(0x11a)]),_0x36889b=_0x1cb984[_0x3ef12f(0x160)](_0x3abc90),_0x437a43=_0x1cb984[_0x3ef12f(0x13f)](_0x3abc90);}catch(_0x2e55a4){return void console[_0x3ef12f(0x134)](_0x2e55a4);}_0x2eae67[_0x3ef12f(0x18a)][_0x3ef12f(0x117)](_0x12d1cd=>{const _0x1a226e=_0x3ef12f;for(const _0x9f5415 of Array[_0x1a226e(0x15a)](_0x2eae67[_0x1a226e(0x18a)][_0x1a226e(0x169)][_0x1a226e(0x1a3)](_0x1a226e(0x122))))_0x12d1cd[_0x1a226e(0x142)](_0x9f5415);}),_0x1e75d7[_0x3ef12f(0x18c)]=!0x1,_0x2eae67[_0x3ef12f(0x18a)][_0x3ef12f(0x11d)](_0x185d1=>{const _0x2fdf1c=_0x3ef12f;_0x185d1[_0x2fdf1c(0x148)](null),_0x185d1[_0x2fdf1c(0x151)](_0x2eae67[_0x2fdf1c(0x18a)][_0x2fdf1c(0x12e)][_0x2fdf1c(0x172)][_0x2fdf1c(0x12d)]());const _0x49e8d2=Object[_0x2fdf1c(0x1a1)](_0x36889b);for(const _0x51ea24 of _0x2eae67[_0x2fdf1c(0x18a)][_0x2fdf1c(0x12e)][_0x2fdf1c(0x133)])_0x2fdf1c(0x127)!=_0x51ea24[_0x2fdf1c(0x18b)]&&_0x51ea24[_0x2fdf1c(0x13d)]()&&!_0x49e8d2[_0x2fdf1c(0x16c)](_0x51ea24[_0x2fdf1c(0x18b)])&&_0x185d1[_0x2fdf1c(0x184)](_0x51ea24);for(const _0x4e9773 of _0x49e8d2){let _0x2cda63=_0x2eae67[_0x2fdf1c(0x18a)][_0x2fdf1c(0x12e)][_0x2fdf1c(0x1a2)](_0x4e9773);_0x2cda63&&_0x2cda63[_0x2fdf1c(0x13d)]()||(_0x2cda63=_0x185d1[_0x2fdf1c(0x115)](_0x4e9773));const _0x38588c=_0x437a43[_0x4e9773],_0xac7efd=Object[_0x2fdf1c(0x1a1)](_0x38588c),_0x30bdcb=_0x36889b[_0x4e9773];for(const _0x3b049f of _0x2cda63[_0x2fdf1c(0x12d)]())_0xac7efd[_0x2fdf1c(0x16c)](_0x3b049f)||_0x185d1[_0x2fdf1c(0x19a)](_0x3b049f,_0x2cda63);for(const _0x47ddb1 of _0xac7efd)_0x185d1[_0x2fdf1c(0x11e)](_0x47ddb1,_0x437a43[_0x4e9773][_0x47ddb1],_0x2cda63);_0x185d1[_0x2fdf1c(0x146)](_0x185d1[_0x2fdf1c(0x141)](_0x2cda63)),_0x185d1[_0x2fdf1c(0x187)](_0x2eae67[_0x2fdf1c(0x132)][_0x2fdf1c(0x167)](_0x30bdcb,_0x2cda63),_0x2cda63,0x0);}});const _0x39c374=_0xe0ef81(_0x2eae67[_0x3ef12f(0x149)],_0x3ef12f(0x161));if(_0x3abc90[_0x3ef12f(0x10b)])_0x535aca=-0x1==_0x3abc90[_0x3ef12f(0x10b)][_0x3ef12f(0x1a0)](_0x39c374)?_0x39c374+':\x20'+_0x3abc90[_0x3ef12f(0x10b)]:_0x3abc90[_0x3ef12f(0x10b)];else _0x535aca=_0x39c374+':\x20'+(_0x3abc90[_0x3ef12f(0x11c)][_0x3ef12f(0x19e)](_0x2eae67[_0x3ef12f(0x149)][_0x3ef12f(0x186)],{'month':_0x3ef12f(0x192),'day':_0x3ef12f(0x152)})+',\x20'+_0x3abc90[_0x3ef12f(0x11c)][_0x3ef12f(0x159)](_0x2eae67[_0x3ef12f(0x149)][_0x3ef12f(0x186)],{'hour':_0x3ef12f(0x152),'minute':_0x3ef12f(0x152)}));return await _0x2aceb7[_0x3ef12f(0x176)]({'name':_0x535aca}),_0x1e75d7[_0x3ef12f(0x18c)]=!0x0,_0x2eae67[_0x3ef12f(0x111)][_0x3ef12f(0x181)](_0x3ef12f(0x166))[_0x3ef12f(0x185)]();}}
|
|
23
|
+
const _0x5515c3=_0x1143;(function(_0x5b3db6,_0x5100e4){const _0x3b447e=_0x1143,_0x45416d=_0x5b3db6();while(!![]){try{const _0x52ea38=-parseInt(_0x3b447e(0x12d))/0x1*(parseInt(_0x3b447e(0x1a8))/0x2)+-parseInt(_0x3b447e(0x14d))/0x3*(parseInt(_0x3b447e(0x198))/0x4)+-parseInt(_0x3b447e(0x13c))/0x5*(parseInt(_0x3b447e(0x196))/0x6)+-parseInt(_0x3b447e(0x1a1))/0x7*(parseInt(_0x3b447e(0x1a6))/0x8)+parseInt(_0x3b447e(0x19d))/0x9*(-parseInt(_0x3b447e(0x16e))/0xa)+parseInt(_0x3b447e(0x185))/0xb+parseInt(_0x3b447e(0x177))/0xc*(parseInt(_0x3b447e(0x150))/0xd);if(_0x52ea38===_0x5100e4)break;else _0x45416d['push'](_0x45416d['shift']());}catch(_0x442a76){_0x45416d['push'](_0x45416d['shift']());}}}(_0x2077,0x4326b));function _0x2077(){const _0x385ad1=['getRoot','RevisionTracker','Users','toJSON','detachRoot','push','revisionHistory','getRevisionRootsAttributes','6OxyzhM','restoreRevision','12pWAXWg','keys','then','element','exitToEditing','369OirKCJ','PaginationLookup','lazyRoots','plugins','7OpCnca','update','markers','get','removeAttribute','2962672kQJncz','refreshPositioning','705274ssedyQ','document','getRevisions','isRevisionViewerOpen','rootName','fromVersion','name','error','init','end','parse','addUser','result','isReadOnly','long','indexOf','RevisionsRepository','revisionHistory.closeRevisionViewerCallback','destroy','RevisionHistoryUI','getRevisionDocumentData','bind','DocumentOutlineUI','_enhanceShowRevisionViewerCallback','users','createdAt','change','_showRevisionViewer','insert','toVersion','toolbar','setAttribute','1sWDJZT','none','setSelection','selection','creator','roots','includes','model','closeRevisionViewerCallback','removeMarker','requires','revisionHistory.showRevisionViewerCallback','repository','from','toLocaleTimeString','980425fplqhw','numeric','addRoot','enableReadOnlyMode','_closeRevisionViewer','map','revisionHistory.restoreRevisionCallback','RevisionHistory','style','refreshVisibility','DocumentOutline','data','translations','createRangeIn','RevisionViewerIntegration','RevisionHistoryUtils','hide','63207RWOBWM','showRevisionViewerCallback','uiLanguage','113217PAiNKk','addRevisionData','Dialog','revisionHistory.requireRevisionName','editor','define','commands','getAttributeKeys','_cleanUp','getRevision','has','RevisionViewer','Restored','save','fromCharCode','isReady','saveRevision','$graveyard','isAnonymous','loadRevisionData','RestrictedEditingMode','getUser','pluginName','isOpen','toLocaleDateString','isEnabled','_update','Autosave','join','adapter','109070UvMpmO','restrictedEditingException','view','display','changesNavigation','Annotations','getMarkersGroup','isOfficialPlugin','isAttached','1668LFsTdF','revisionHistory.editorContainer','_enhanceCloseRevisionViewerCallback','_restoreRevision','config','enqueueChange','locale','removeSelectionAttribute','_viewerEditor','block','_getRevisionViewerEditorConfig','revisionHistory.viewerContainer','_recalculatePageBreaks','disableReadOnlyMode','5433450qRXUHW','create','revision-history-missing-configuration','set','catch','remove','isPremiumPlugin','revisionHistory.viewerEditorElement','revision-history-viewer-opened'];_0x2077=function(){return _0x385ad1;};return _0x2077();}import{Plugin as _0x301f74}from'ckeditor5/src/core.js';import{CKEditorError as _0x2f5590,uid as _0x1c25b5}from'ckeditor5/src/utils.js';import{RevisionTracker as _0x4a07fb}from'./revisiontracker.js';import{RevisionHistoryUI as _0xb1275a}from'./ui/revisionhistory/revisionhistoryui.js';import{RevisionViewer as _0x13b60d}from'./revisionviewer.js';import{RevisionViewerUI as _0x261801}from'./ui/revisionviewer/revisionviewerui.js';import{RevisionsSidebar as _0x1578b3}from'./ui/revisionssidebar/revisionssidebar.js';import{RevisionViewerEditor as _0x5736a8}from'./editor/revisionviewereditor.js';import{getTranslation as _0x1c9f05}from'./utils/common-translations.js';import{sanitizeEditorConfig as _0x129e97}from'ckeditor5-collaboration/src/collaboration-core.js';const d=[_0x5515c3(0x1bb),_0x5515c3(0x164)];export class RevisionViewerIntegration extends _0x301f74{[_0x5515c3(0x1b4)];static get[_0x5515c3(0x166)](){const _0x1b4d4e=_0x5515c3;return _0x1b4d4e(0x14a);}static get[_0x5515c3(0x175)](){return!0x0;}static get[_0x5515c3(0x18b)](){return!0x0;}constructor(_0x42668e){const _0x15a1d3=_0x5515c3;function _0x20da97(_0x36449f){const _0x843585=_0x1143;return _0x36449f[_0x843585(0x141)](_0xa5dbf2=>String[_0x843585(0x15e)](_0xa5dbf2))[_0x843585(0x16c)]('');}super(_0x42668e),this[_0x15a1d3(0x1b4)]=_0x15a1d3(0x1b1),_0x42668e[_0x20da97([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20da97([0x76,0x69,0x65,0x77])][_0x20da97([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x20da97([0x61,0x75,0x74,0x6f]),_0x42668e[_0x20da97([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x20da97([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x20da97([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x20da97([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x20da97([0x6f,0x6b])});}}function _0x1143(_0x4c9e4c,_0x5dd590){const _0x207792=_0x2077();return _0x1143=function(_0x1143a2,_0xfe5ba4){_0x1143a2=_0x1143a2-0x128;let _0xaa25b4=_0x207792[_0x1143a2];return _0xaa25b4;},_0x1143(_0x4c9e4c,_0x5dd590);}export class RevisionHistory extends _0x301f74{[_0x5515c3(0x17f)];static get[_0x5515c3(0x166)](){const _0x394447=_0x5515c3;return _0x394447(0x143);}static get[_0x5515c3(0x175)](){return!0x0;}static get[_0x5515c3(0x18b)](){return!0x0;}static get[_0x5515c3(0x137)](){return[_0x4a07fb,_0xb1275a];}constructor(_0x59c2d8){const _0x51cd4f=_0x5515c3;if(super(_0x59c2d8),!this[_0x51cd4f(0x154)][_0x51cd4f(0x17b)][_0x51cd4f(0x1a4)](_0x51cd4f(0x194)))throw new _0x2f5590(_0x51cd4f(0x187),this);this[_0x51cd4f(0x17f)]=null,this[_0x51cd4f(0x188)](_0x51cd4f(0x1ab),!0x1),this[_0x51cd4f(0x154)][_0x51cd4f(0x17b)][_0x51cd4f(0x155)](_0x51cd4f(0x138),_0x1fdf07=>this[_0x51cd4f(0x128)]({..._0x1fdf07,'translations':this[_0x51cd4f(0x154)][_0x51cd4f(0x17d)][_0x51cd4f(0x148)]})),this[_0x51cd4f(0x154)][_0x51cd4f(0x17b)][_0x51cd4f(0x155)](_0x51cd4f(0x1b9),_0x40f5b6=>this[_0x51cd4f(0x140)](_0x40f5b6)),this[_0x51cd4f(0x154)][_0x51cd4f(0x17b)][_0x51cd4f(0x155)](_0x51cd4f(0x142),_0x4ec9a0=>this[_0x51cd4f(0x17a)](_0x4ec9a0)),this[_0x51cd4f(0x154)][_0x51cd4f(0x17b)][_0x51cd4f(0x155)](_0x51cd4f(0x153),!0x1),this[_0x51cd4f(0x1bf)](),this[_0x51cd4f(0x179)]();}set[_0x5515c3(0x16d)](_0x130164){const _0x3b8dc0=_0x5515c3;this[_0x3b8dc0(0x154)][_0x3b8dc0(0x1a0)][_0x3b8dc0(0x1a4)](_0x3b8dc0(0x18f))[_0x3b8dc0(0x16d)]=_0x130164;}get[_0x5515c3(0x16d)](){const _0x363178=_0x5515c3;return this[_0x363178(0x154)][_0x363178(0x1a0)][_0x363178(0x1a4)](_0x363178(0x18f))[_0x363178(0x16d)];}[_0x5515c3(0x151)](_0x29f4fa){const _0x29cf3b=_0x5515c3;return this[_0x29cf3b(0x154)][_0x29cf3b(0x1a0)][_0x29cf3b(0x1a4)](_0x29cf3b(0x18f))[_0x29cf3b(0x151)](_0x29f4fa);}[_0x5515c3(0x159)](_0xd94fa4){const _0x101fdc=_0x5515c3;return this[_0x101fdc(0x154)][_0x101fdc(0x1a0)][_0x101fdc(0x1a4)](_0x101fdc(0x1b8))[_0x101fdc(0x159)](_0xd94fa4);}[_0x5515c3(0x1aa)](_0x426106){const _0x27af65=_0x5515c3;return this[_0x27af65(0x154)][_0x27af65(0x1a0)][_0x27af65(0x1a4)](_0x27af65(0x1b8))[_0x27af65(0x1aa)](_0x426106||{'toJSON':!0x1});}[_0x5515c3(0x181)](){const _0x44b0f1=_0x5515c3,_0xa89658=this[_0x44b0f1(0x154)],_0x3bdd87=_0x129e97(_0xa89658,d),_0x2559ca=_0xa89658[_0x44b0f1(0x1a0)][_0x44b0f1(0x1a4)](_0x44b0f1(0x18f)),_0x511ef5=_0xa89658[_0x44b0f1(0x1a0)][_0x44b0f1(0x1a4)](_0x44b0f1(0x190))[_0x44b0f1(0x1c0)];return _0x3bdd87[_0x44b0f1(0x12b)]=[_0x44b0f1(0x19c),_0x44b0f1(0x197),_0x44b0f1(0x172)],delete _0x3bdd87[_0x44b0f1(0x19f)],(_0x3bdd87[_0x44b0f1(0x1a0)][_0x44b0f1(0x193)](RevisionViewerIntegration,_0x13b60d,_0x261801,class extends _0x301f74{static get[_0x44b0f1(0x137)](){const _0x1b8df7=_0x44b0f1;return[_0x13b60d,_0x1b8df7(0x190)];}[_0x44b0f1(0x1b0)](){const _0x42b7f2=_0x44b0f1,_0x541b0d=this[_0x42b7f2(0x154)][_0x42b7f2(0x1a0)][_0x42b7f2(0x1a4)](_0x42b7f2(0x190));for(const _0x402de8 of _0x511ef5)_0x402de8[_0x42b7f2(0x162)]||_0x541b0d[_0x42b7f2(0x165)](_0x402de8['id'])||_0x541b0d[_0x42b7f2(0x1b3)](_0x402de8);const _0x1ff181=_0x2559ca[_0x42b7f2(0x139)][_0x42b7f2(0x1aa)]();let _0x17abce=null;const _0x5cbf44=this[_0x42b7f2(0x154)][_0x42b7f2(0x1a0)][_0x42b7f2(0x1a4)](_0x42b7f2(0x15b));_0x5cbf44[_0x42b7f2(0x16d)]=_0x2559ca[_0x42b7f2(0x16d)],_0x5cbf44[_0x42b7f2(0x1bd)](_0x42b7f2(0x169))['to'](_0x2559ca),this[_0x42b7f2(0x154)][_0x42b7f2(0x156)][_0x42b7f2(0x1a4)](_0x42b7f2(0x197))[_0x42b7f2(0x1bd)](_0x42b7f2(0x169))['to'](_0xa89658,_0x42b7f2(0x1b5),_0x27a7d3=>!_0x27a7d3);for(const _0x211dee of _0x1ff181){const _0x4537b8=null===_0x211dee[_0x42b7f2(0x131)];if(_0x4537b8&&_0x211dee[_0x42b7f2(0x12a)]===_0x211dee[_0x42b7f2(0x1ad)])continue;const _0x3f3799=_0x211dee[_0x42b7f2(0x191)]();_0x5cbf44[_0x42b7f2(0x151)](_0x3f3799,(_0x4c378c,_0x432621,_0x4e7b86)=>{const _0x539422=_0x42b7f2;if(_0x4537b8){if(_0x17abce)_0x17abce[_0x539422(0x16a)](_0x4c378c,_0x432621);else{if(!_0x432621){const _0x4d97f7=_0x4e7b86[_0x539422(0x191)]();_0x4d97f7['id']=_0x1c25b5(),_0x2559ca[_0x539422(0x160)](_0x4d97f7,_0x4e7b86[_0x539422(0x12a)])[_0x539422(0x19a)](_0x467cbd=>{_0x17abce=_0x467cbd;});}}}else _0x211dee[_0x539422(0x16a)](_0x4c378c,_0x432621);});}}},_0x1578b3),_0x3bdd87);}[_0x5515c3(0x1bf)](){const _0x1fa46d=_0x5515c3,_0x586c6a=this[_0x1fa46d(0x154)][_0x1fa46d(0x17b)][_0x1fa46d(0x1a4)](_0x1fa46d(0x194))[_0x1fa46d(0x14e)];this[_0x1fa46d(0x154)][_0x1fa46d(0x17b)][_0x1fa46d(0x188)](_0x1fa46d(0x138),async()=>{const _0x8ed917=_0x1fa46d;this[_0x8ed917(0x154)][_0x8ed917(0x13f)](_0x8ed917(0x18d));const _0x286bfa=this[_0x8ed917(0x154)][_0x8ed917(0x1a0)][_0x8ed917(0x1a4)](_0x8ed917(0x18f));if(this[_0x8ed917(0x154)][_0x8ed917(0x1a0)][_0x8ed917(0x15a)](_0x8ed917(0x16b))){const _0x3b2d76=this[_0x8ed917(0x154)][_0x8ed917(0x1a0)][_0x8ed917(0x1a4)](_0x8ed917(0x16b));await _0x3b2d76[_0x8ed917(0x15d)]();}else await _0x286bfa[_0x8ed917(0x1a2)]();if(this[_0x8ed917(0x154)][_0x8ed917(0x1a0)][_0x8ed917(0x15a)](_0x8ed917(0x19e))&&this[_0x8ed917(0x154)][_0x8ed917(0x1a0)][_0x8ed917(0x1a4)](_0x8ed917(0x19e))[_0x8ed917(0x183)](),this[_0x8ed917(0x154)][_0x8ed917(0x1a0)][_0x8ed917(0x15a)](_0x8ed917(0x152))){const _0xc01180=this[_0x8ed917(0x154)][_0x8ed917(0x1a0)][_0x8ed917(0x1a4)](_0x8ed917(0x152));_0xc01180[_0x8ed917(0x167)]&&_0xc01180[_0x8ed917(0x14c)]();}const _0x4fd8b8=this[_0x8ed917(0x181)]();return _0x586c6a(_0x4fd8b8)[_0x8ed917(0x19a)](_0x1e8f08=>{const _0x164d55=_0x8ed917;return(this[_0x164d55(0x17f)]=_0x1e8f08,this[_0x164d55(0x154)][_0x164d55(0x1a0)][_0x164d55(0x15a)](_0x164d55(0x173)))&&this[_0x164d55(0x154)][_0x164d55(0x1a0)][_0x164d55(0x1a4)](_0x164d55(0x173))[_0x164d55(0x145)](),(this[_0x164d55(0x154)][_0x164d55(0x1a0)][_0x164d55(0x15a)](_0x164d55(0x146))&&(this[_0x164d55(0x154)][_0x164d55(0x1a0)][_0x164d55(0x1a4)](_0x164d55(0x1be))[_0x164d55(0x170)][_0x164d55(0x19b)][_0x164d55(0x144)][_0x164d55(0x171)]=_0x164d55(0x12e)),_0x1e8f08);})[_0x8ed917(0x189)](_0x19f072=>(console[_0x8ed917(0x1af)](_0x19f072),this[_0x8ed917(0x154)][_0x8ed917(0x184)](_0x8ed917(0x18d)),null));});}[_0x5515c3(0x179)](){const _0x119655=_0x5515c3,_0x456431=this[_0x119655(0x154)][_0x119655(0x17b)][_0x119655(0x1a4)](_0x119655(0x194))[_0x119655(0x135)];this[_0x119655(0x154)][_0x119655(0x17b)][_0x119655(0x188)](_0x119655(0x1b9),()=>(this[_0x119655(0x154)][_0x119655(0x1a0)][_0x119655(0x15a)](_0x119655(0x19e))&&this[_0x119655(0x154)][_0x119655(0x1a0)][_0x119655(0x1a4)](_0x119655(0x19e))[_0x119655(0x183)](),this[_0x119655(0x154)][_0x119655(0x1a0)][_0x119655(0x15a)](_0x119655(0x146))&&(this[_0x119655(0x154)][_0x119655(0x1a0)][_0x119655(0x1a4)](_0x119655(0x1be))[_0x119655(0x170)][_0x119655(0x19b)][_0x119655(0x144)][_0x119655(0x171)]=''),this[_0x119655(0x17f)][_0x119655(0x1a0)][_0x119655(0x1a4)](_0x119655(0x15b))[_0x119655(0x158)](),_0x456431(this[_0x119655(0x17f)])[_0x119655(0x19a)](()=>{const _0x29d486=_0x119655;if(this[_0x29d486(0x154)][_0x29d486(0x184)](_0x29d486(0x18d)),this[_0x29d486(0x17f)]=null,this[_0x29d486(0x154)][_0x29d486(0x1a0)][_0x29d486(0x15a)](_0x29d486(0x173))){const _0x7b0e04=this[_0x29d486(0x154)][_0x29d486(0x1a0)][_0x29d486(0x1a4)](_0x29d486(0x173));_0x7b0e04[_0x29d486(0x145)](),_0x7b0e04[_0x29d486(0x1a7)]();}})));}[_0x5515c3(0x128)](_0x5be04d){const _0x1037a6=_0x5515c3,_0x4325ee=this[_0x1037a6(0x154)][_0x1037a6(0x17b)][_0x1037a6(0x1a4)](_0x1037a6(0x178)),_0x4683d3=this[_0x1037a6(0x154)][_0x1037a6(0x17b)][_0x1037a6(0x1a4)](_0x1037a6(0x182)),_0x42e76e=this[_0x1037a6(0x154)][_0x1037a6(0x17b)][_0x1037a6(0x1a4)](_0x1037a6(0x18c));return _0x5736a8[_0x1037a6(0x186)](_0x42e76e,_0x5be04d)[_0x1037a6(0x19a)](_0x3f2692=>(_0x4683d3[_0x1037a6(0x144)][_0x1037a6(0x171)]=_0x1037a6(0x180),_0x4325ee[_0x1037a6(0x144)][_0x1037a6(0x171)]=_0x1037a6(0x12e),this[_0x1037a6(0x1ab)]=!0x0,_0x3f2692));}[_0x5515c3(0x140)](_0x5d213f){const _0x4faa2d=_0x5515c3,_0x1e8242=this[_0x4faa2d(0x154)][_0x4faa2d(0x17b)][_0x4faa2d(0x1a4)](_0x4faa2d(0x178));return this[_0x4faa2d(0x154)][_0x4faa2d(0x17b)][_0x4faa2d(0x1a4)](_0x4faa2d(0x182))[_0x4faa2d(0x144)][_0x4faa2d(0x171)]=_0x4faa2d(0x12e),_0x1e8242[_0x4faa2d(0x144)][_0x4faa2d(0x171)]='',this[_0x4faa2d(0x1ab)]=!0x1,_0x5d213f[_0x4faa2d(0x1ba)]();}async[_0x5515c3(0x17a)](_0x4eacb2){const _0x485a1a=_0x5515c3,_0x432ac4=this[_0x485a1a(0x154)],_0x2b9734=this[_0x485a1a(0x17f)][_0x485a1a(0x1a0)][_0x485a1a(0x1a4)](_0x485a1a(0x15b)),_0x1f5a36=_0x432ac4[_0x485a1a(0x1a0)][_0x485a1a(0x1a4)](_0x485a1a(0x18f)),_0x48e6a6=_0x432ac4[_0x485a1a(0x1a0)][_0x485a1a(0x1a4)](_0x485a1a(0x14b)),_0x2ea7a5=_0x2b9734[_0x485a1a(0x139)][_0x485a1a(0x159)](_0x4eacb2);let _0x2a8561,_0x28a299,_0x5e3a1e;try{await _0x48e6a6[_0x485a1a(0x163)](_0x2ea7a5,this[_0x485a1a(0x16d)]),_0x2a8561=_0x48e6a6[_0x485a1a(0x1bc)](_0x2ea7a5),_0x28a299=_0x48e6a6[_0x485a1a(0x195)](_0x2ea7a5);}catch(_0xb9ac46){return void console[_0x485a1a(0x1af)](_0xb9ac46);}_0x432ac4[_0x485a1a(0x134)][_0x485a1a(0x1c2)](_0x2a67c0=>{const _0xa0dd4f=_0x485a1a;for(const _0x2ef5f8 of Array[_0xa0dd4f(0x13a)](_0x432ac4[_0xa0dd4f(0x134)][_0xa0dd4f(0x1a3)][_0xa0dd4f(0x174)](_0xa0dd4f(0x16f))))_0x2a67c0[_0xa0dd4f(0x136)](_0x2ef5f8);}),_0x2b9734[_0x485a1a(0x15f)]=!0x1,_0x432ac4[_0x485a1a(0x134)][_0x485a1a(0x17c)](_0x2c0f4e=>{const _0x358081=_0x485a1a;_0x2c0f4e[_0x358081(0x12f)](null),_0x2c0f4e[_0x358081(0x17e)](_0x432ac4[_0x358081(0x134)][_0x358081(0x1a9)][_0x358081(0x130)][_0x358081(0x157)]());const _0x3e9926=Object[_0x358081(0x199)](_0x2a8561);for(const _0xe92089 of _0x432ac4[_0x358081(0x134)][_0x358081(0x1a9)][_0x358081(0x132)])_0x358081(0x161)!=_0xe92089[_0x358081(0x1ac)]&&_0xe92089[_0x358081(0x176)]()&&!_0x3e9926[_0x358081(0x133)](_0xe92089[_0x358081(0x1ac)])&&_0x2c0f4e[_0x358081(0x192)](_0xe92089);for(const _0x2124c4 of _0x3e9926){let _0x3e9117=_0x432ac4[_0x358081(0x134)][_0x358081(0x1a9)][_0x358081(0x18e)](_0x2124c4);_0x3e9117&&_0x3e9117[_0x358081(0x176)]()||(_0x3e9117=_0x2c0f4e[_0x358081(0x13e)](_0x2124c4));const _0x33d1dc=_0x28a299[_0x2124c4],_0x2d1097=Object[_0x358081(0x199)](_0x33d1dc),_0x59df9a=_0x2a8561[_0x2124c4];for(const _0x3ffa94 of _0x3e9117[_0x358081(0x157)]())_0x2d1097[_0x358081(0x133)](_0x3ffa94)||_0x2c0f4e[_0x358081(0x1a5)](_0x3ffa94,_0x3e9117);for(const _0x474898 of _0x2d1097)_0x2c0f4e[_0x358081(0x12c)](_0x474898,_0x28a299[_0x2124c4][_0x474898],_0x3e9117);_0x2c0f4e[_0x358081(0x18a)](_0x2c0f4e[_0x358081(0x149)](_0x3e9117)),_0x2c0f4e[_0x358081(0x129)](_0x432ac4[_0x358081(0x147)][_0x358081(0x1b2)](_0x59df9a,_0x3e9117),_0x3e9117,0x0);}});const _0x387551=_0x1c9f05(_0x432ac4[_0x485a1a(0x17d)],_0x485a1a(0x15c));if(_0x2ea7a5[_0x485a1a(0x1ae)])_0x5e3a1e=-0x1==_0x2ea7a5[_0x485a1a(0x1ae)][_0x485a1a(0x1b7)](_0x387551)?_0x387551+':\x20'+_0x2ea7a5[_0x485a1a(0x1ae)]:_0x2ea7a5[_0x485a1a(0x1ae)];else _0x5e3a1e=_0x387551+':\x20'+(_0x2ea7a5[_0x485a1a(0x1c1)][_0x485a1a(0x168)](_0x432ac4[_0x485a1a(0x17d)][_0x485a1a(0x14f)],{'month':_0x485a1a(0x1b6),'day':_0x485a1a(0x13d)})+',\x20'+_0x2ea7a5[_0x485a1a(0x1c1)][_0x485a1a(0x13b)](_0x432ac4[_0x485a1a(0x17d)][_0x485a1a(0x14f)],{'hour':_0x485a1a(0x13d),'minute':_0x485a1a(0x13d)}));return await _0x1f5a36[_0x485a1a(0x160)]({'name':_0x5e3a1e}),_0x2b9734[_0x485a1a(0x15f)]=!0x0,_0x432ac4[_0x485a1a(0x17b)][_0x485a1a(0x1a4)](_0x485a1a(0x194))[_0x485a1a(0x135)]();}}
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
import type { RevisionHistoryAdapter } from './revisionhistoryadapter.js';
|
|
10
|
-
import type {
|
|
10
|
+
import type { Revision } from './revision.js';
|
|
11
11
|
/**
|
|
12
12
|
* Common utilities used by plugins in the revision history package.
|
|
13
13
|
*/
|
|
14
|
-
export
|
|
14
|
+
export declare class RevisionHistoryUtils extends Plugin {
|
|
15
15
|
static get pluginName(): "RevisionHistoryUtils";
|
|
16
16
|
/**
|
|
17
17
|
* @inheritDoc
|