@univerjs-pro/edit-history-viewer 0.12.4 → 0.13.0-insiders.20251215-64041bb
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/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/controllers/config.schema.d.ts +1 -0
- package/lib/types/controllers/version-list.controller.d.ts +3 -2
- package/lib/types/index.d.ts +1 -0
- package/lib/types/services/history-fetch.service.d.ts +22 -1
- package/lib/types/services/history-manager.service.d.ts +14 -2
- package/lib/types/services/version-diff.service.d.ts +1 -0
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +19 -19
package/lib/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x35ed(_0x321180,_0x197b91){_0x321180=_0x321180-0xb3;const _0x2e74c6=_0x2e74();let _0x35ed53=_0x2e74c6[_0x321180];return _0x35ed53;}const _0x3c584a=_0x35ed;(function(_0x1df7ec,_0x34879b){const _0x3afe8d=_0x35ed,_0x1772c6=_0x1df7ec();while(!![]){try{const _0x222856=-parseInt(_0x3afe8d(0xc0))/0x1+parseInt(_0x3afe8d(0xcd))/0x2+parseInt(_0x3afe8d(0xbe))/0x3*(-parseInt(_0x3afe8d(0xbf))/0x4)+-parseInt(_0x3afe8d(0xbc))/0x5+-parseInt(_0x3afe8d(0xc8))/0x6*(-parseInt(_0x3afe8d(0xb6))/0x7)+parseInt(_0x3afe8d(0xb7))/0x8+parseInt(_0x3afe8d(0xbb))/0x9;if(_0x222856===_0x34879b)break;else _0x1772c6['push'](_0x1772c6['shift']());}catch(_0x31aa5c){_0x1772c6['push'](_0x1772c6['shift']());}}}(_0x2e74,0x271fb));function _0x2e74(){const _0x1aa3fe=['137029nCJOTg','워크시트\x20삭제','보호\x20추가','통합\x20문서\x20만들기','복원\x20원본:','알\x20수\x20없는\x20오류가\x20발생했습니다.\x20페이지를\x20새로\x20고침하여\x20복원\x20결과를\x20확인하세요','이\x20버전을\x20복원하시겠습니까?','현재\x20버전','522lKLkzB','알\x20수\x20없는\x20사용자','필터\x20설정','이\x20버전\x20복원','편집\x20기록','140140hzrXTZ','스파크라인\x20추가','차트\x20삽입','틀\x20고정\x20설정','21980hzhrxH','2476744YeYQCP','현재\x20사용자','보호\x20삭제','워크시트\x20삽입','639621HVDdvg','746840FaLROW','데이터\x20유효성\x20검사\x20설정','93xRBvWQ','35776blQIXe'];_0x2e74=function(){return _0x1aa3fe;};return _0x2e74();}const e={'editHistory':{'panel':{'title':_0x3c584a(0xcc),'unknownUser':_0x3c584a(0xc9),'listFetchError':'편집\x20기록\x20목록을\x20가져오지\x20못했습니다','revertConfirm':_0x3c584a(0xc6),'revertConfirmText':'이\x20문서는\x20선택한\x20버전으로\x20되돌아갑니다','cancel':'취소','confirm':'확인','reverting':'복원\x20중입니다.\x20잠시만\x20기다려\x20주세요...','revertFailed':_0x3c584a(0xc5),'currentVersion':_0x3c584a(0xc7),'currentUser':_0x3c584a(0xb8),'revertDesc':'이\x20버전\x20복원'},'info':{'loading':'로드\x20중입니다.\x20잠시만\x20기다려\x20주세요...'},'header':{'back':'뒤로','revert':_0x3c584a(0xcb)},'action':{'insertSheet':_0x3c584a(0xba),'removeSheet':_0x3c584a(0xc1),'createSheet':_0x3c584a(0xc3),'setFilter':_0x3c584a(0xca),'setFrozen':_0x3c584a(0xb5),'editSheet':'워크시트\x20편집','revertSheet':'통합\x20문서\x20복원','revertSheetPrefix':_0x3c584a(0xc4),'revertSheetSuffix':'','setDV':_0x3c584a(0xbd),'setCF':'조건부\x20서식\x20설정','addCF':'조건부\x20서식\x20추가','addProtection':_0x3c584a(0xc2),'addSparkline':_0x3c584a(0xb3),'insertChart':_0x3c584a(0xb4),'deleteProtection':_0x3c584a(0xb9),'etc':'등'}}};export{e as default};
|
package/lib/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x3c095a=_0x3691;(function(_0x428459,_0x21c55d){const _0x3971f5=_0x3691,_0x43dc8e=_0x428459();while(!![]){try{const _0x4f3695=parseInt(_0x3971f5(0xa5))/0x1*(-parseInt(_0x3971f5(0xb4))/0x2)+-parseInt(_0x3971f5(0x9d))/0x3+parseInt(_0x3971f5(0xa8))/0x4+-parseInt(_0x3971f5(0xa4))/0x5+parseInt(_0x3971f5(0xb6))/0x6+parseInt(_0x3971f5(0xb2))/0x7+-parseInt(_0x3971f5(0xb3))/0x8;if(_0x4f3695===_0x21c55d)break;else _0x43dc8e['push'](_0x43dc8e['shift']());}catch(_0x5038e9){_0x43dc8e['push'](_0x43dc8e['shift']());}}}(_0x2aeb,0xa2ad4));function _0x3691(_0x41875d,_0x391cc1){_0x41875d=_0x41875d-0x9b;const _0x2aeb7d=_0x2aeb();let _0x36915c=_0x2aeb7d[_0x41875d];return _0x36915c;}const e={'editHistory':{'panel':{'title':_0x3c095a(0xb1),'unknownUser':_0x3c095a(0x9f),'listFetchError':_0x3c095a(0xac),'revertConfirm':_0x3c095a(0xa0),'revertConfirmText':_0x3c095a(0xa2),'cancel':_0x3c095a(0xae),'confirm':_0x3c095a(0x9b),'reverting':'Reverting,\x20please\x20wait...','revertFailed':'Unknown\x20error,\x20please\x20refresh\x20the\x20page\x20to\x20view\x20the\x20revert\x20result','currentVersion':_0x3c095a(0xaa),'currentUser':_0x3c095a(0xa6),'revertDesc':'Restore\x20this\x20version'},'info':{'loading':'loading,\x20please\x20wait...'},'header':{'back':_0x3c095a(0xb7),'revert':'Restore\x20this\x20version'},'action':{'insertSheet':_0x3c095a(0xb5),'removeSheet':_0x3c095a(0x9e),'createSheet':_0x3c095a(0xa7),'setFilter':_0x3c095a(0xba),'setFrozen':_0x3c095a(0xad),'editSheet':_0x3c095a(0x9c),'revertSheet':_0x3c095a(0xa3),'revertSheetPrefix':_0x3c095a(0xa1),'revertSheetSuffix':'','setDV':_0x3c095a(0xaf),'setCF':_0x3c095a(0xb8),'addCF':'add\x20conditional\x20formatting','addProtection':_0x3c095a(0xb0),'addSparkline':'add\x20sparkline','insertChart':_0x3c095a(0xb9),'deleteProtection':_0x3c095a(0xab),'etc':_0x3c095a(0xa9)}}},t=e;function _0x2aeb(){const _0x54f04f=['629330gciuAn','1042591GUxfuQ','Current\x20User','created\x20workbook','1806432mCouWq',',\x20etc.','Current\x20Version','delete\x20protection','Failed\x20to\x20get\x20edit\x20history\x20list','set\x20frozen','Cancel','set\x20data\x20validation','add\x20protection','Edit\x20History','7749714lOurYu','919192WFzIme','2PBgKtq','inserted\x20worksheet','5490882QMBYpz','Back','set\x20conditional\x20formatting','inserted\x20chart','set\x20filter','Confirm','edited\x20worksheet','1572531tkIVoJ','deleted\x20worksheet','Unknown\x20User','Restore\x20this\x20version?','Reverted\x20from','This\x20document\x20will\x20be\x20reverted\x20to\x20the\x20selected\x20version','reverted\x20workbook'];_0x2aeb=function(){return _0x54f04f;};return _0x2aeb();}export{t as default};
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x112d4b=_0x4357;(function(_0xa9a186,_0xb6761f){const _0x19552d=_0x4357,_0x7b94ea=_0xa9a186();while(!![]){try{const _0x27ad11=parseInt(_0x19552d(0x1e6))/0x1+-parseInt(_0x19552d(0x1f2))/0x2*(-parseInt(_0x19552d(0x1ef))/0x3)+parseInt(_0x19552d(0x1f8))/0x4+-parseInt(_0x19552d(0x1ea))/0x5+parseInt(_0x19552d(0x1e5))/0x6*(-parseInt(_0x19552d(0x1ed))/0x7)+-parseInt(_0x19552d(0x203))/0x8+parseInt(_0x19552d(0x1f5))/0x9;if(_0x27ad11===_0xb6761f)break;else _0x7b94ea['push'](_0x7b94ea['shift']());}catch(_0x183e2d){_0x7b94ea['push'](_0x7b94ea['shift']());}}}(_0x1763,0x7893f));function _0x4357(_0x154612,_0x43e77f){_0x154612=_0x154612-0x1e2;const _0x176333=_0x1763();let _0x435783=_0x176333[_0x154612];return _0x435783;}const n={'editHistory':{'panel':{'title':_0x112d4b(0x1e4),'unknownUser':_0x112d4b(0x1f3),'listFetchError':_0x112d4b(0x1fe),'revertConfirm':_0x112d4b(0x1e2),'revertConfirmText':_0x112d4b(0x1f6),'cancel':_0x112d4b(0x1e3),'confirm':_0x112d4b(0x1fd),'reverting':'Đang\x20khôi\x20phục,\x20vui\x20lòng\x20đợi...','revertFailed':_0x112d4b(0x1e8),'currentVersion':_0x112d4b(0x1e9),'currentUser':_0x112d4b(0x1f9),'revertDesc':_0x112d4b(0x1e7)},'info':{'loading':_0x112d4b(0x1f7)},'header':{'back':_0x112d4b(0x1fb),'revert':_0x112d4b(0x1e7)},'action':{'insertSheet':_0x112d4b(0x201),'removeSheet':_0x112d4b(0x1ff),'createSheet':_0x112d4b(0x205),'setFilter':_0x112d4b(0x200),'setFrozen':_0x112d4b(0x1ec),'editSheet':'đã\x20chỉnh\x20sửa\x20trang\x20tính','revertSheet':_0x112d4b(0x204),'revertSheetPrefix':_0x112d4b(0x1f1),'revertSheetSuffix':'','setDV':_0x112d4b(0x1f0),'setCF':'đã\x20đặt\x20định\x20dạng\x20có\x20điều\x20kiện','addCF':_0x112d4b(0x202),'addProtection':_0x112d4b(0x1f4),'addSparkline':_0x112d4b(0x1fc),'insertChart':_0x112d4b(0x1eb),'deleteProtection':_0x112d4b(0x1fa),'etc':_0x112d4b(0x1ee)}}};function _0x1763(){const _0x2f08b8=['Lịch\x20sử\x20chỉnh\x20sửa','258yIEaZB','398528uGptNg','Khôi\x20phục\x20phiên\x20bản\x20này','Lỗi\x20không\x20xác\x20định,\x20vui\x20lòng\x20làm\x20mới\x20trang\x20để\x20xem\x20kết\x20quả\x20khôi\x20phục','Phiên\x20bản\x20hiện\x20tại','2744925qXnFmM','đã\x20chèn\x20biểu\x20đồ','đã\x20đặt\x20cố\x20định','110873Akebzx',',\x20v.v.','1908NvxZUx','đã\x20đặt\x20xác\x20thực\x20dữ\x20liệu','Đã\x20khôi\x20phục\x20từ','1778gBnYYt','Người\x20dùng\x20không\x20xác\x20định','thêm\x20bảo\x20vệ','3901212NAYTfa','Tài\x20liệu\x20này\x20sẽ\x20được\x20khôi\x20phục\x20về\x20phiên\x20bản\x20đã\x20chọn','đang\x20tải,\x20vui\x20lòng\x20đợi...','2825248ChzzlB','Người\x20dùng\x20hiện\x20tại','xóa\x20bảo\x20vệ','Quay\x20lại','thêm\x20biểu\x20đồ\x20nhỏ','Xác\x20nhận','Không\x20thể\x20lấy\x20danh\x20sách\x20lịch\x20sử\x20chỉnh\x20sửa','đã\x20xóa\x20trang\x20tính','đã\x20đặt\x20bộ\x20lọc','đã\x20chèn\x20trang\x20tính','thêm\x20định\x20dạng\x20có\x20điều\x20kiện','3038104rFTlyy','đã\x20khôi\x20phục\x20sổ\x20làm\x20việc','đã\x20tạo\x20sổ\x20làm\x20việc','Khôi\x20phục\x20phiên\x20bản\x20này?','Hủy'];_0x1763=function(){return _0x2f08b8;};return _0x1763();}export{n as default};
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x5a53(_0x1a5783,_0x1643de){_0x1a5783=_0x1a5783-0xf5;const _0x102c0e=_0x102c();let _0x5a5392=_0x102c0e[_0x1a5783];return _0x5a5392;}const _0xaaad7c=_0x5a53;function _0x102c(){const _0x132fa0=['创建了工作表','还原到此版本?','设置了筛选','加载中,请稍等...','当前版本','添加了条件格式','48WCiPRm','编辑了工作表','2744575uHwxDi','还原到此版本','的版本','未知用户','11hrPtLZ','807426hHYIke','还原了','删除了工作表','添加了保护范围','设置了数据验证','该文档将会被还原到选中版本','未知错误,请刷新页面查看还原结果','历史记录','9444830OEfZns','还原了版本','4wosTJW','287OpndOS','363418laBzmR','冻结了工作表','97482ztQxHS','503185ExtmGe','529770boUvFH','获取编辑历史记录列表失败','添加了迷你图'];_0x102c=function(){return _0x132fa0;};return _0x102c();}(function(_0x2dbbc3,_0x213461){const _0x563814=_0x5a53,_0x11532d=_0x2dbbc3();while(!![]){try{const _0x666c2=parseInt(_0x563814(0x103))/0x1+parseInt(_0x563814(0x100))/0x2+-parseInt(_0x563814(0x104))/0x3*(-parseInt(_0x563814(0xfe))/0x4)+parseInt(_0x563814(0x10f))/0x5+parseInt(_0x563814(0x102))/0x6*(-parseInt(_0x563814(0xff))/0x7)+parseInt(_0x563814(0x10d))/0x8*(parseInt(_0x563814(0x114))/0x9)+-parseInt(_0x563814(0xfc))/0xa*(parseInt(_0x563814(0x113))/0xb);if(_0x666c2===_0x213461)break;else _0x11532d['push'](_0x11532d['shift']());}catch(_0x5be620){_0x11532d['push'](_0x11532d['shift']());}}}(_0x102c,0x52899));const e={'editHistory':{'panel':{'title':_0xaaad7c(0xfb),'unknownUser':_0xaaad7c(0x112),'listFetchError':_0xaaad7c(0x105),'revertConfirm':_0xaaad7c(0x108),'revertConfirmText':_0xaaad7c(0xf9),'cancel':'取消','confirm':'确认','reverting':'正在还原,请稍等...','revertFailed':_0xaaad7c(0xfa),'currentVersion':_0xaaad7c(0x10b),'currentUser':'当前用户','revertDesc':'还原到此版本'},'info':{'loading':_0xaaad7c(0x10a)},'header':{'back':'返回','revert':_0xaaad7c(0x110)},'action':{'insertSheet':'插入了工作表','removeSheet':_0xaaad7c(0xf6),'createSheet':_0xaaad7c(0x107),'setFilter':_0xaaad7c(0x109),'setFrozen':_0xaaad7c(0x101),'editSheet':_0xaaad7c(0x10e),'revertSheet':_0xaaad7c(0xfd),'revertSheetPrefix':_0xaaad7c(0xf5),'revertSheetSuffix':_0xaaad7c(0x111),'setDV':_0xaaad7c(0xf8),'setCF':'设置了条件格式','addCF':_0xaaad7c(0x10c),'addProtection':_0xaaad7c(0xf7),'addSparkline':_0xaaad7c(0x106),'insertChart':'插入了图表','deleteProtection':'移除了保护范围','etc':',等'}}};export{e as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x7ac1(_0x3eeb77,_0x3de220){_0x3eeb77=_0x3eeb77-0x1a3;const _0x3ec2e3=_0x3ec2();let _0x7ac156=_0x3ec2e3[_0x3eeb77];return _0x7ac156;}function _0x3ec2(){const _0x19e852=['inserted\x20chart','Restore\x20this\x20version','delete\x20protection','Edit\x20History','Restore\x20this\x20version?','Current\x20User','3pIvEYY','set\x20filter','add\x20sparkline','273414CuJguO','Cancel','set\x20conditional\x20formatting','Unknown\x20User','30PTIXRf','set\x20frozen','1731015CLojQO','2055664XPcuoJ','set\x20data\x20validation','770012BFxzso','edited\x20worksheet','reverted\x20workbook','Back','add\x20conditional\x20formatting','created\x20workbook','Failed\x20to\x20get\x20edit\x20history\x20list','loading,\x20please\x20wait...','Reverted\x20from','Current\x20Version','1119643amshoa','inserted\x20worksheet','663454FVYdeA','27609UvwXni'];_0x3ec2=function(){return _0x19e852;};return _0x3ec2();}const _0x9d81d7=_0x7ac1;(function(_0x51edf2,_0xa3c58c){const _0x2ddfb8=_0x7ac1,_0xc187ef=_0x51edf2();while(!![]){try{const _0x46b33b=-parseInt(_0x2ddfb8(0x1af))/0x1+-parseInt(_0x2ddfb8(0x1ae))/0x2+-parseInt(_0x2ddfb8(0x1b6))/0x3*(-parseInt(_0x2ddfb8(0x1c2))/0x4)+-parseInt(_0x2ddfb8(0x1bd))/0x5*(parseInt(_0x2ddfb8(0x1b9))/0x6)+parseInt(_0x2ddfb8(0x1ac))/0x7+parseInt(_0x2ddfb8(0x1c0))/0x8+parseInt(_0x2ddfb8(0x1bf))/0x9;if(_0x46b33b===_0xa3c58c)break;else _0xc187ef['push'](_0xc187ef['shift']());}catch(_0x279d28){_0xc187ef['push'](_0xc187ef['shift']());}}}(_0x3ec2,0x29423));const e={'editHistory':{'panel':{'title':_0x9d81d7(0x1b3),'unknownUser':_0x9d81d7(0x1bc),'listFetchError':_0x9d81d7(0x1a8),'revertConfirm':_0x9d81d7(0x1b4),'revertConfirmText':'This\x20document\x20will\x20be\x20reverted\x20to\x20the\x20selected\x20version','cancel':_0x9d81d7(0x1ba),'confirm':'Confirm','reverting':'Reverting,\x20please\x20wait...','revertFailed':'Unknown\x20error,\x20please\x20refresh\x20the\x20page\x20to\x20view\x20the\x20revert\x20result','currentVersion':_0x9d81d7(0x1ab),'currentUser':_0x9d81d7(0x1b5),'revertDesc':_0x9d81d7(0x1b1)},'info':{'loading':_0x9d81d7(0x1a9)},'header':{'back':_0x9d81d7(0x1a5),'revert':_0x9d81d7(0x1b1)},'action':{'insertSheet':_0x9d81d7(0x1ad),'removeSheet':'deleted\x20worksheet','createSheet':_0x9d81d7(0x1a7),'setFilter':_0x9d81d7(0x1b7),'setFrozen':_0x9d81d7(0x1be),'editSheet':_0x9d81d7(0x1a3),'revertSheet':_0x9d81d7(0x1a4),'revertSheetPrefix':_0x9d81d7(0x1aa),'revertSheetSuffix':'','setDV':_0x9d81d7(0x1c1),'setCF':_0x9d81d7(0x1bb),'addCF':_0x9d81d7(0x1a6),'addProtection':'add\x20protection','addSparkline':_0x9d81d7(0x1b8),'insertChart':_0x9d81d7(0x1b0),'deleteProtection':_0x9d81d7(0x1b2),'etc':',\x20etc.'}}},t=e;export{t as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Disposable, LocaleService } from '@univerjs/core';
|
|
1
|
+
import { Disposable, IConfigService, LocaleService } from '@univerjs/core';
|
|
2
2
|
import { ComponentManager, ISidebarService } from '@univerjs/ui';
|
|
3
3
|
import { HistoryManagerService } from '../services/history-manager.service';
|
|
4
4
|
export declare class VersionListController extends Disposable {
|
|
@@ -6,8 +6,9 @@ export declare class VersionListController extends Disposable {
|
|
|
6
6
|
private readonly _componentManager;
|
|
7
7
|
private readonly _localeService;
|
|
8
8
|
private readonly _historyManagerService;
|
|
9
|
+
private readonly _configService;
|
|
9
10
|
private _sidebarDisposable;
|
|
10
|
-
constructor(_sidebarService: ISidebarService, _componentManager: ComponentManager, _localeService: LocaleService, _historyManagerService: HistoryManagerService);
|
|
11
|
+
constructor(_sidebarService: ISidebarService, _componentManager: ComponentManager, _localeService: LocaleService, _historyManagerService: HistoryManagerService, _configService: IConfigService);
|
|
11
12
|
private _init;
|
|
12
13
|
private _openPanel;
|
|
13
14
|
private _initPanel;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import './global.css';
|
|
2
2
|
export type { IUniverEditHistoryViewerConfig } from './controllers/config.schema';
|
|
3
3
|
export { UniverEditHistoryViewerPlugin } from './plugin';
|
|
4
|
+
export { HistoryOrigin, type IHistoryCreator } from './services/history-fetch.service';
|
|
4
5
|
export { HistoryManagerService, HistoryModeStatus } from './services/history-manager.service';
|
|
@@ -13,6 +13,7 @@ export interface IHistoryVersion {
|
|
|
13
13
|
recoverTime?: number;
|
|
14
14
|
commands: string[];
|
|
15
15
|
isAnonymous: boolean;
|
|
16
|
+
additionalFields?: string;
|
|
16
17
|
}
|
|
17
18
|
export interface IServiceVersionsData {
|
|
18
19
|
hasMore: boolean;
|
|
@@ -31,6 +32,7 @@ export interface IVersionItem {
|
|
|
31
32
|
startRevision: number;
|
|
32
33
|
endRevision: number;
|
|
33
34
|
recoverTime?: string;
|
|
35
|
+
additionalFields?: string;
|
|
34
36
|
}
|
|
35
37
|
export interface IUser {
|
|
36
38
|
userID: string;
|
|
@@ -49,6 +51,20 @@ export interface IChangeset {
|
|
|
49
51
|
mutations: any[];
|
|
50
52
|
memberID: string;
|
|
51
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* @description The origin of the history
|
|
56
|
+
*/
|
|
57
|
+
export declare enum HistoryOrigin {
|
|
58
|
+
Unspecified = 0,
|
|
59
|
+
User = 1,
|
|
60
|
+
Character = 2
|
|
61
|
+
}
|
|
62
|
+
export interface IHistoryCreator {
|
|
63
|
+
userId: string;
|
|
64
|
+
name: string;
|
|
65
|
+
avatar: string;
|
|
66
|
+
origins: HistoryOrigin[];
|
|
67
|
+
}
|
|
52
68
|
export declare class HistoryFetchService extends Disposable {
|
|
53
69
|
private readonly _snapshotServerService;
|
|
54
70
|
private readonly _univerInstanceService;
|
|
@@ -60,7 +76,12 @@ export declare class HistoryFetchService extends Disposable {
|
|
|
60
76
|
private _workbookDataCache;
|
|
61
77
|
constructor(_snapshotServerService: ISnapshotServerService, _univerInstanceService: IUniverInstanceService, _commandService: ICommandService, _configService: IConfigService, _httpService: HTTPService, _compressMutationService: CompressMutationService, _sheetPermissionInitController: SheetPermissionInitController);
|
|
62
78
|
dispose(): void;
|
|
63
|
-
|
|
79
|
+
fetchCreatorList(unitID: string): Promise<IHistoryCreator[]>;
|
|
80
|
+
getVersions(unitID: string, params?: {
|
|
81
|
+
userIds?: string[];
|
|
82
|
+
lastLabel?: string;
|
|
83
|
+
origin?: HistoryOrigin;
|
|
84
|
+
}): Promise<Nullable<{
|
|
64
85
|
hasMore: boolean;
|
|
65
86
|
lastLabel: string;
|
|
66
87
|
versions: IHistoryVersion[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IHistoryVersion, IUser, HistoryFetchService } from './history-fetch.service';
|
|
1
|
+
import { HistoryOrigin, IHistoryCreator, IHistoryVersion, IUser, HistoryFetchService } from './history-fetch.service';
|
|
2
2
|
import { Disposable, LocaleService } from '@univerjs/core';
|
|
3
3
|
import { IConfirmService, IMessageService } from '@univerjs/ui';
|
|
4
4
|
export declare enum HistoryModeStatus {
|
|
@@ -27,7 +27,12 @@ export declare class HistoryManagerService extends Disposable {
|
|
|
27
27
|
readonly revertRevision$: import('rxjs').Observable<number>;
|
|
28
28
|
private _unitId$;
|
|
29
29
|
readonly unitId$: import('rxjs').Observable<string | null>;
|
|
30
|
-
private _fetching
|
|
30
|
+
private _fetching$;
|
|
31
|
+
readonly fetching$: import('rxjs').Observable<boolean>;
|
|
32
|
+
private _creators$;
|
|
33
|
+
readonly creators$: import('rxjs').Observable<IHistoryCreator[]>;
|
|
34
|
+
private _setFetching;
|
|
35
|
+
get fetching(): boolean;
|
|
31
36
|
private _loadingState$;
|
|
32
37
|
readonly loadingState$: import('rxjs').Observable<LoadingState>;
|
|
33
38
|
private _lastLabel;
|
|
@@ -37,13 +42,20 @@ export declare class HistoryManagerService extends Disposable {
|
|
|
37
42
|
private _maskContainer;
|
|
38
43
|
private _maskElement;
|
|
39
44
|
private _canRevert;
|
|
45
|
+
private _loadParams;
|
|
40
46
|
constructor(_messageService: IMessageService, _confirmService: IConfirmService, _localeService: LocaleService, _historyFetchService: HistoryFetchService);
|
|
41
47
|
triggerLoadVersions(unitId: string, containerId: string, canRevert: boolean): Promise<void>;
|
|
48
|
+
loadInitialVersions(unitId: string, params?: {
|
|
49
|
+
userIds?: string[];
|
|
50
|
+
origin?: HistoryOrigin;
|
|
51
|
+
}): Promise<void>;
|
|
42
52
|
loadMoreVersions(): Promise<boolean>;
|
|
53
|
+
loadHistoryCreatorList(): Promise<void>;
|
|
43
54
|
triggerLoadSheet(versionId: string): Promise<void>;
|
|
44
55
|
triggerRevert(id?: string): Promise<void>;
|
|
45
56
|
private _updateVersions;
|
|
46
57
|
getCurrentVersion(): IHistoryVersion | undefined;
|
|
58
|
+
private _setVersions;
|
|
47
59
|
getVersion(id: string): IHistoryVersion | undefined;
|
|
48
60
|
getMember(id: string): IUser | undefined;
|
|
49
61
|
private _createMask;
|
|
@@ -24,6 +24,7 @@ export declare class VersionDiffService extends Disposable {
|
|
|
24
24
|
private _init;
|
|
25
25
|
ensureVersion(versionId: string): Promise<void>;
|
|
26
26
|
private _transformMutationByOrder;
|
|
27
|
+
private _yieldToMain;
|
|
27
28
|
private _getActiveSubUnitId;
|
|
28
29
|
private _extractRanges;
|
|
29
30
|
private _getRangesByMutation;
|