@univerjs-pro/edit-history-viewer 0.12.2 → 0.12.3-experimental.20251205-e439e48
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/locale/en-US.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/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 +20 -19
package/lib/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x415551=_0x1577;function _0xfe32(){const _0x4e2366=['55hsUaaM','필터\x20설정','알\x20수\x20없는\x20오류가\x20발생했습니다.\x20페이지를\x20새로\x20고침하여\x20복원\x20결과를\x20확인하세요','이\x20버전을\x20복원하시겠습니까?','이\x20버전\x20복원','복원\x20중입니다.\x20잠시만\x20기다려\x20주세요...','215844EEydnk','알\x20수\x20없는\x20사용자','틀\x20고정\x20설정','조건부\x20서식\x20설정','워크시트\x20삽입','데이터\x20유효성\x20검사\x20설정','11JrXJYI','조건부\x20서식\x20추가','현재\x20버전','8251032yTSxav','951518qmliGN','워크시트\x20삭제','스파크라인\x20추가','로드\x20중입니다.\x20잠시만\x20기다려\x20주세요...','워크시트\x20편집','복원\x20원본:','현재\x20사용자','이\x20문서는\x20선택한\x20버전으로\x20되돌아갑니다','편집\x20기록','123224ddPrIE','통합\x20문서\x20복원','5980350FMNIsP','16IzOniz','1JIfRTm','2703211kDILxZ','보호\x20추가','260343jZzmGe','260zJrypO','보호\x20삭제'];_0xfe32=function(){return _0x4e2366;};return _0xfe32();}(function(_0x16dde1,_0x46c0ea){const _0x204f61=_0x1577,_0x23601e=_0x16dde1();while(!![]){try{const _0x1376bf=-parseInt(_0x204f61(0x8c))/0x1*(-parseInt(_0x204f61(0x7f))/0x2)+parseInt(_0x204f61(0x75))/0x3+-parseInt(_0x204f61(0x88))/0x4*(-parseInt(_0x204f61(0x6f))/0x5)+-parseInt(_0x204f61(0x8a))/0x6+parseInt(_0x204f61(0x8d))/0x7*(-parseInt(_0x204f61(0x8b))/0x8)+parseInt(_0x204f61(0x6c))/0x9*(parseInt(_0x204f61(0x6d))/0xa)+parseInt(_0x204f61(0x7b))/0xb*(parseInt(_0x204f61(0x7e))/0xc);if(_0x1376bf===_0x46c0ea)break;else _0x23601e['push'](_0x23601e['shift']());}catch(_0x4c931b){_0x23601e['push'](_0x23601e['shift']());}}}(_0xfe32,0x88086));function _0x1577(_0x5d8d68,_0x47f5d7){_0x5d8d68=_0x5d8d68-0x6c;const _0xfe3298=_0xfe32();let _0x1577f0=_0xfe3298[_0x5d8d68];return _0x1577f0;}const e={'editHistory':{'panel':{'title':_0x415551(0x87),'unknownUser':_0x415551(0x76),'listFetchError':'편집\x20기록\x20목록을\x20가져오지\x20못했습니다','revertConfirm':_0x415551(0x72),'revertConfirmText':_0x415551(0x86),'cancel':'취소','confirm':'확인','reverting':_0x415551(0x74),'revertFailed':_0x415551(0x71),'currentVersion':_0x415551(0x7d),'currentUser':_0x415551(0x85),'revertDesc':_0x415551(0x73)},'info':{'loading':_0x415551(0x82)},'header':{'back':'뒤로','revert':_0x415551(0x73)},'action':{'insertSheet':_0x415551(0x79),'removeSheet':_0x415551(0x80),'createSheet':'통합\x20문서\x20만들기','setFilter':_0x415551(0x70),'setFrozen':_0x415551(0x77),'editSheet':_0x415551(0x83),'revertSheet':_0x415551(0x89),'revertSheetPrefix':_0x415551(0x84),'revertSheetSuffix':'','setDV':_0x415551(0x7a),'setCF':_0x415551(0x78),'addCF':_0x415551(0x7c),'addProtection':_0x415551(0x8e),'addSparkline':_0x415551(0x81),'insertChart':'차트\x20삽입','deleteProtection':_0x415551(0x6e),'etc':'등'}}};export{e as default};
|
package/lib/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1b763a=_0x71bd;(function(_0x2e2593,_0x54726c){const _0x4cd1cb=_0x71bd,_0x2af44c=_0x2e2593();while(!![]){try{const _0x6f5ecd=-parseInt(_0x4cd1cb(0xcf))/0x1*(-parseInt(_0x4cd1cb(0xe9))/0x2)+parseInt(_0x4cd1cb(0xd5))/0x3*(-parseInt(_0x4cd1cb(0xdf))/0x4)+parseInt(_0x4cd1cb(0xe7))/0x5*(-parseInt(_0x4cd1cb(0xf0))/0x6)+-parseInt(_0x4cd1cb(0xd2))/0x7*(parseInt(_0x4cd1cb(0xe8))/0x8)+-parseInt(_0x4cd1cb(0xe4))/0x9*(-parseInt(_0x4cd1cb(0xd4))/0xa)+-parseInt(_0x4cd1cb(0xec))/0xb+parseInt(_0x4cd1cb(0xe6))/0xc;if(_0x6f5ecd===_0x54726c)break;else _0x2af44c['push'](_0x2af44c['shift']());}catch(_0x30321a){_0x2af44c['push'](_0x2af44c['shift']());}}}(_0x3fdd,0xaa022));const e={'editHistory':{'panel':{'title':_0x1b763a(0xed),'unknownUser':_0x1b763a(0xdb),'listFetchError':_0x1b763a(0xde),'revertConfirm':_0x1b763a(0xd8),'revertConfirmText':_0x1b763a(0xd1),'cancel':'Cancel','confirm':_0x1b763a(0xe2),'reverting':_0x1b763a(0xe5),'revertFailed':_0x1b763a(0xda),'currentVersion':_0x1b763a(0xe3),'currentUser':_0x1b763a(0xd3),'revertDesc':'Restore\x20this\x20version'},'info':{'loading':'loading,\x20please\x20wait...'},'header':{'back':_0x1b763a(0xdd),'revert':_0x1b763a(0xe1)},'action':{'insertSheet':_0x1b763a(0xd0),'removeSheet':'deleted\x20worksheet','createSheet':_0x1b763a(0xef),'setFilter':_0x1b763a(0xdc),'setFrozen':_0x1b763a(0xd7),'editSheet':'edited\x20worksheet','revertSheet':'reverted\x20workbook','revertSheetPrefix':_0x1b763a(0xd6),'revertSheetSuffix':'','setDV':_0x1b763a(0xea),'setCF':'set\x20conditional\x20formatting','addCF':_0x1b763a(0xeb),'addProtection':_0x1b763a(0xee),'addSparkline':'add\x20sparkline','insertChart':_0x1b763a(0xe0),'deleteProtection':'delete\x20protection','etc':_0x1b763a(0xd9)}}},t=e;function _0x71bd(_0x5272ea,_0x3c5e6b){_0x5272ea=_0x5272ea-0xcf;const _0x3fddb3=_0x3fdd();let _0x71bd1=_0x3fddb3[_0x5272ea];return _0x71bd1;}function _0x3fdd(){const _0x591808=['32euwqtw','1072yOazzm','set\x20data\x20validation','add\x20conditional\x20formatting','10972049pHmXKi','Edit\x20History','add\x20protection','created\x20workbook','3582mVGGXA','2297WlyIUY','inserted\x20worksheet','This\x20document\x20will\x20be\x20reverted\x20to\x20the\x20selected\x20version','1419754uIzgJk','Current\x20User','25580YKKsIm','3WVGVRs','Reverted\x20from','set\x20frozen','Restore\x20this\x20version?',',\x20etc.','Unknown\x20error,\x20please\x20refresh\x20the\x20page\x20to\x20view\x20the\x20revert\x20result','Unknown\x20User','set\x20filter','Back','Failed\x20to\x20get\x20edit\x20history\x20list','37308vApsVJ','inserted\x20chart','Restore\x20this\x20version','Confirm','Current\x20Version','1656csijYK','Reverting,\x20please\x20wait...','13569180vShSOp','2665OwkYRo'];_0x3fdd=function(){return _0x591808;};return _0x3fdd();}export{t as default};
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x4a40(_0x55d878,_0x465bb7){_0x55d878=_0x55d878-0x10c;const _0x35b360=_0x35b3();let _0x4a4092=_0x35b360[_0x55d878];return _0x4a4092;}const _0x32fcf4=_0x4a40;(function(_0xc2716b,_0x2b0577){const _0x34e2c8=_0x4a40,_0x4847e8=_0xc2716b();while(!![]){try{const _0x46c5c1=-parseInt(_0x34e2c8(0x12d))/0x1+parseInt(_0x34e2c8(0x128))/0x2*(-parseInt(_0x34e2c8(0x116))/0x3)+-parseInt(_0x34e2c8(0x11f))/0x4*(parseInt(_0x34e2c8(0x117))/0x5)+-parseInt(_0x34e2c8(0x11a))/0x6+parseInt(_0x34e2c8(0x10c))/0x7*(parseInt(_0x34e2c8(0x113))/0x8)+-parseInt(_0x34e2c8(0x11b))/0x9+-parseInt(_0x34e2c8(0x111))/0xa*(-parseInt(_0x34e2c8(0x12e))/0xb);if(_0x46c5c1===_0x2b0577)break;else _0x4847e8['push'](_0x4847e8['shift']());}catch(_0x4e2586){_0x4847e8['push'](_0x4847e8['shift']());}}}(_0x35b3,0xb7ae8));const n={'editHistory':{'panel':{'title':'Lịch\x20sử\x20chỉnh\x20sửa','unknownUser':_0x32fcf4(0x129),'listFetchError':_0x32fcf4(0x10e),'revertConfirm':_0x32fcf4(0x12c),'revertConfirmText':_0x32fcf4(0x124),'cancel':_0x32fcf4(0x122),'confirm':_0x32fcf4(0x115),'reverting':_0x32fcf4(0x119),'revertFailed':_0x32fcf4(0x11c),'currentVersion':_0x32fcf4(0x127),'currentUser':_0x32fcf4(0x118),'revertDesc':_0x32fcf4(0x112)},'info':{'loading':_0x32fcf4(0x12a)},'header':{'back':_0x32fcf4(0x11d),'revert':'Khôi\x20phục\x20phiên\x20bản\x20này'},'action':{'insertSheet':_0x32fcf4(0x120),'removeSheet':_0x32fcf4(0x12f),'createSheet':'đã\x20tạo\x20sổ\x20làm\x20việc','setFilter':_0x32fcf4(0x114),'setFrozen':_0x32fcf4(0x10d),'editSheet':'đã\x20chỉnh\x20sửa\x20trang\x20tính','revertSheet':_0x32fcf4(0x121),'revertSheetPrefix':_0x32fcf4(0x12b),'revertSheetSuffix':'','setDV':_0x32fcf4(0x123),'setCF':'đã\x20đặt\x20định\x20dạng\x20có\x20điều\x20kiện','addCF':_0x32fcf4(0x10f),'addProtection':_0x32fcf4(0x126),'addSparkline':_0x32fcf4(0x110),'insertChart':_0x32fcf4(0x125),'deleteProtection':'xóa\x20bảo\x20vệ','etc':_0x32fcf4(0x11e)}}};export{n as default};function _0x35b3(){const _0x384087=['Xác\x20nhận','1614AmBaXX','10OeHzdj','Người\x20dùng\x20hiện\x20tại','Đang\x20khôi\x20phục,\x20vui\x20lòng\x20đợi...','7934562spbHWx','7178193UtOloT','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','Quay\x20lại',',\x20v.v.','1763524vpJmCU','đã\x20chèn\x20trang\x20tính','đã\x20khôi\x20phục\x20sổ\x20làm\x20việc','Hủy','đã\x20đặt\x20xác\x20thực\x20dữ\x20liệu','Tài\x20liệu\x20này\x20sẽ\x20được\x20khôi\x20phục\x20về\x20phiên\x20bản\x20đã\x20chọn','đã\x20chèn\x20biểu\x20đồ','thêm\x20bảo\x20vệ','Phiên\x20bản\x20hiện\x20tại','3748hGCfsC','Người\x20dùng\x20không\x20xác\x20định','đang\x20tải,\x20vui\x20lòng\x20đợi...','Đã\x20khôi\x20phục\x20từ','Khôi\x20phục\x20phiên\x20bản\x20này?','207512pktwPm','39561544fCZFnM','đã\x20xóa\x20trang\x20tính','3204474NLXlVu','đã\x20đặt\x20cố\x20định','Không\x20thể\x20lấy\x20danh\x20sách\x20lịch\x20sử\x20chỉnh\x20sửa','thêm\x20định\x20dạng\x20có\x20điều\x20kiện','thêm\x20biểu\x20đồ\x20nhỏ','10mObmGb','Khôi\x20phục\x20phiên\x20bản\x20này','24XuLdSB','đã\x20đặt\x20bộ\x20lọc'];_0x35b3=function(){return _0x384087;};return _0x35b3();}
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x51b40e=_0x43ea;function _0xc573(){const _0x41b05c=['未知错误,请刷新页面查看还原结果','9551vixUqj','编辑了工作表','还原了版本','冻结了工作表','15dpwFnT','4432430fhoUad','未知用户','111304inWQWh','插入了图表','加载中,请稍等...','还原了','12756flICIO','历史记录','的版本','2824255rUZxEP','106VNbzAm','75028VDPacp','插入了工作表','549jZzshh','删除了工作表','4352560pnmPzz','还原到此版本','正在还原,请稍等...','7502Tcbyhu','设置了条件格式','设置了筛选','设置了数据验证','6zpqbuo'];_0xc573=function(){return _0x41b05c;};return _0xc573();}(function(_0x5e333d,_0x5e7cd9){const _0x1b0a26=_0x43ea,_0x554ca7=_0x5e333d();while(!![]){try{const _0x19e0b5=-parseInt(_0x1b0a26(0x110))/0x1*(-parseInt(_0x1b0a26(0x11f))/0x2)+parseInt(_0x1b0a26(0x114))/0x3*(-parseInt(_0x1b0a26(0x120))/0x4)+-parseInt(_0x1b0a26(0x107))/0x5+-parseInt(_0x1b0a26(0x10e))/0x6*(-parseInt(_0x1b0a26(0x11e))/0x7)+parseInt(_0x1b0a26(0x117))/0x8*(parseInt(_0x1b0a26(0x105))/0x9)+parseInt(_0x1b0a26(0x115))/0xa+-parseInt(_0x1b0a26(0x10a))/0xb*(parseInt(_0x1b0a26(0x11b))/0xc);if(_0x19e0b5===_0x5e7cd9)break;else _0x554ca7['push'](_0x554ca7['shift']());}catch(_0x5e302a){_0x554ca7['push'](_0x554ca7['shift']());}}}(_0xc573,0x7d155));function _0x43ea(_0x55e156,_0xc8d176){_0x55e156=_0x55e156-0x104;const _0xc57329=_0xc573();let _0x43eade=_0xc57329[_0x55e156];return _0x43eade;}const e={'editHistory':{'panel':{'title':_0x51b40e(0x11c),'unknownUser':_0x51b40e(0x116),'listFetchError':'获取编辑历史记录列表失败','revertConfirm':'还原到此版本?','revertConfirmText':'该文档将会被还原到选中版本','cancel':'取消','confirm':'确认','reverting':_0x51b40e(0x109),'revertFailed':_0x51b40e(0x10f),'currentVersion':'当前版本','currentUser':'当前用户','revertDesc':_0x51b40e(0x108)},'info':{'loading':_0x51b40e(0x119)},'header':{'back':'返回','revert':_0x51b40e(0x108)},'action':{'insertSheet':_0x51b40e(0x104),'removeSheet':_0x51b40e(0x106),'createSheet':'创建了工作表','setFilter':_0x51b40e(0x10c),'setFrozen':_0x51b40e(0x113),'editSheet':_0x51b40e(0x111),'revertSheet':_0x51b40e(0x112),'revertSheetPrefix':_0x51b40e(0x11a),'revertSheetSuffix':_0x51b40e(0x11d),'setDV':_0x51b40e(0x10d),'setCF':_0x51b40e(0x10b),'addCF':'添加了条件格式','addProtection':'添加了保护范围','addSparkline':'添加了迷你图','insertChart':_0x51b40e(0x118),'deleteProtection':'移除了保护范围','etc':',等'}}};export{e as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2e62f0=_0x37a9;function _0x28e1(){const _0x466790=['set\x20filter','Restore\x20this\x20version','Reverting,\x20please\x20wait...','Current\x20User','set\x20frozen','Failed\x20to\x20get\x20edit\x20history\x20list','Edit\x20History','add\x20sparkline','reverted\x20workbook','Confirm','delete\x20protection','Unknown\x20User','loading,\x20please\x20wait...','add\x20conditional\x20formatting','1864856JwmCeJ','Unknown\x20error,\x20please\x20refresh\x20the\x20page\x20to\x20view\x20the\x20revert\x20result','1448932rpTbFc','5lXVWCR','673104KdpJCp','1eHsLsj','inserted\x20chart','This\x20document\x20will\x20be\x20reverted\x20to\x20the\x20selected\x20version','3771390mdwwHZ','Reverted\x20from','created\x20workbook','set\x20data\x20validation','1831554BeSkrd','deleted\x20worksheet','15002390FYmDkV','Restore\x20this\x20version?','3247300CaPGyv','set\x20conditional\x20formatting','Back','9BYIFrN'];_0x28e1=function(){return _0x466790;};return _0x28e1();}(function(_0x2bc96f,_0x5c5860){const _0x340900=_0x37a9,_0x5c6ebb=_0x2bc96f();while(!![]){try{const _0xd2ce69=parseInt(_0x340900(0x19c))/0x1*(parseInt(_0x340900(0x197))/0x2)+parseInt(_0x340900(0x1a3))/0x3+-parseInt(_0x340900(0x199))/0x4*(-parseInt(_0x340900(0x19a))/0x5)+parseInt(_0x340900(0x19f))/0x6+-parseInt(_0x340900(0x1a7))/0x7+-parseInt(_0x340900(0x19b))/0x8+parseInt(_0x340900(0x188))/0x9*(-parseInt(_0x340900(0x1a5))/0xa);if(_0xd2ce69===_0x5c5860)break;else _0x5c6ebb['push'](_0x5c6ebb['shift']());}catch(_0x29ef21){_0x5c6ebb['push'](_0x5c6ebb['shift']());}}}(_0x28e1,0x7685b));function _0x37a9(_0x482a8f,_0x481866){_0x482a8f=_0x482a8f-0x187;const _0x28e1ee=_0x28e1();let _0x37a993=_0x28e1ee[_0x482a8f];return _0x37a993;}const e={'editHistory':{'panel':{'title':_0x2e62f0(0x18f),'unknownUser':_0x2e62f0(0x194),'listFetchError':_0x2e62f0(0x18e),'revertConfirm':_0x2e62f0(0x1a6),'revertConfirmText':_0x2e62f0(0x19e),'cancel':'Cancel','confirm':_0x2e62f0(0x192),'reverting':_0x2e62f0(0x18b),'revertFailed':_0x2e62f0(0x198),'currentVersion':'Current\x20Version','currentUser':_0x2e62f0(0x18c),'revertDesc':'Restore\x20this\x20version'},'info':{'loading':_0x2e62f0(0x195)},'header':{'back':_0x2e62f0(0x187),'revert':_0x2e62f0(0x18a)},'action':{'insertSheet':'inserted\x20worksheet','removeSheet':_0x2e62f0(0x1a4),'createSheet':_0x2e62f0(0x1a1),'setFilter':_0x2e62f0(0x189),'setFrozen':_0x2e62f0(0x18d),'editSheet':'edited\x20worksheet','revertSheet':_0x2e62f0(0x191),'revertSheetPrefix':_0x2e62f0(0x1a0),'revertSheetSuffix':'','setDV':_0x2e62f0(0x1a2),'setCF':_0x2e62f0(0x1a8),'addCF':_0x2e62f0(0x196),'addProtection':'add\x20protection','addSparkline':_0x2e62f0(0x190),'insertChart':_0x2e62f0(0x19d),'deleteProtection':_0x2e62f0(0x193),'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
|
+
userId?: 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
|
+
userId?: 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;
|