@univerjs-pro/edit-history-viewer 0.12.4 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
-
const
|
|
1
|
+
const _0x53481a=_0x1ab1;function _0x1ab1(_0x44aa64,_0x542614){_0x44aa64=_0x44aa64-0xca;const _0x4020f0=_0x4020();let _0x1ab1a1=_0x4020f0[_0x44aa64];return _0x1ab1a1;}(function(_0x2d49ce,_0x4a51b9){const _0x40c1ee=_0x1ab1,_0x50e3f4=_0x2d49ce();while(!![]){try{const _0x5e2242=parseInt(_0x40c1ee(0xe2))/0x1+parseInt(_0x40c1ee(0xcb))/0x2+-parseInt(_0x40c1ee(0xe1))/0x3+parseInt(_0x40c1ee(0xcc))/0x4+parseInt(_0x40c1ee(0xe0))/0x5*(parseInt(_0x40c1ee(0xe4))/0x6)+-parseInt(_0x40c1ee(0xd6))/0x7*(parseInt(_0x40c1ee(0xd0))/0x8)+parseInt(_0x40c1ee(0xda))/0x9*(-parseInt(_0x40c1ee(0xcd))/0xa);if(_0x5e2242===_0x4a51b9)break;else _0x50e3f4['push'](_0x50e3f4['shift']());}catch(_0xe92be6){_0x50e3f4['push'](_0x50e3f4['shift']());}}}(_0x4020,0xab3e6));const e={'editHistory':{'panel':{'title':_0x53481a(0xcf),'unknownUser':_0x53481a(0xd4),'listFetchError':_0x53481a(0xdd),'revertConfirm':_0x53481a(0xdb),'revertConfirmText':'이\x20문서는\x20선택한\x20버전으로\x20되돌아갑니다','cancel':'취소','confirm':'확인','reverting':'복원\x20중입니다.\x20잠시만\x20기다려\x20주세요...','revertFailed':'알\x20수\x20없는\x20오류가\x20발생했습니다.\x20페이지를\x20새로\x20고침하여\x20복원\x20결과를\x20확인하세요','currentVersion':_0x53481a(0xd9),'currentUser':_0x53481a(0xd5),'revertDesc':_0x53481a(0xdf)},'info':{'loading':_0x53481a(0xdc)},'header':{'back':'뒤로','revert':_0x53481a(0xdf)},'action':{'insertSheet':_0x53481a(0xe5),'removeSheet':_0x53481a(0xe3),'createSheet':'통합\x20문서\x20만들기','setFilter':'필터\x20설정','setFrozen':_0x53481a(0xd2),'editSheet':'워크시트\x20편집','revertSheet':_0x53481a(0xd8),'revertSheetPrefix':_0x53481a(0xca),'revertSheetSuffix':'','setDV':_0x53481a(0xd7),'setCF':'조건부\x20서식\x20설정','addCF':_0x53481a(0xd1),'addProtection':_0x53481a(0xce),'addSparkline':_0x53481a(0xd3),'insertChart':_0x53481a(0xde),'deleteProtection':'보호\x20삭제','etc':'등'}}};function _0x4020(){const _0x1407aa=['편집\x20기록\x20목록을\x20가져오지\x20못했습니다','차트\x20삽입','이\x20버전\x20복원','5tqRTTS','2082117GbATxg','737914EIJiGU','워크시트\x20삭제','7385112hZqVNz','워크시트\x20삽입','복원\x20원본:','2409784aZxVGL','2636188YQnEmh','60olKBZl','보호\x20추가','편집\x20기록','8psNhuP','조건부\x20서식\x20추가','틀\x20고정\x20설정','스파크라인\x20추가','알\x20수\x20없는\x20사용자','현재\x20사용자','8933050HlTivq','데이터\x20유효성\x20검사\x20설정','통합\x20문서\x20복원','현재\x20버전','1741653XzIEpP','이\x20버전을\x20복원하시겠습니까?','로드\x20중입니다.\x20잠시만\x20기다려\x20주세요...'];_0x4020=function(){return _0x1407aa;};return _0x4020();}export{e as default};
|
package/lib/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x1821be=_0xa5b6;function _0x3e64(){const _0x55ef9e=['7130QRQTeS','inserted\x20worksheet','add\x20conditional\x20formatting','edited\x20worksheet','set\x20filter','Unknown\x20error,\x20please\x20refresh\x20the\x20page\x20to\x20view\x20the\x20revert\x20result','95266LkejQf','33052FLXCbr','Reverting,\x20please\x20wait...','2NeQpMO','deleted\x20worksheet','add\x20sparkline','1896NJzIUz','set\x20conditional\x20formatting','created\x20workbook','Restore\x20this\x20version','loading,\x20please\x20wait...','Edit\x20History','1632137UPVUsj','Restore\x20this\x20version?','Current\x20Version','Reverted\x20from','reverted\x20workbook','add\x20protection','Unknown\x20User','432126rapRHS','642929hmMJak','This\x20document\x20will\x20be\x20reverted\x20to\x20the\x20selected\x20version','40kGuZFZ','set\x20data\x20validation','Confirm','inserted\x20chart','Current\x20User','set\x20frozen','Cancel','14SYyRPN','708pdpWaB','32406LnxBSc','Failed\x20to\x20get\x20edit\x20history\x20list','10tdACZi','Back','69gSERQp'];_0x3e64=function(){return _0x55ef9e;};return _0x3e64();}(function(_0x37c372,_0x1c434f){const _0x5d3635=_0xa5b6,_0xb9300a=_0x37c372();while(!![]){try{const _0x5310f1=parseInt(_0x5d3635(0xb8))/0x1*(parseInt(_0x5d3635(0xbb))/0x2)+-parseInt(_0x5d3635(0xb1))/0x3*(-parseInt(_0x5d3635(0xb9))/0x4)+parseInt(_0x5d3635(0xb2))/0x5*(parseInt(_0x5d3635(0xac))/0x6)+parseInt(_0x5d3635(0xa2))/0x7*(-parseInt(_0x5d3635(0xa4))/0x8)+-parseInt(_0x5d3635(0xa1))/0x9*(parseInt(_0x5d3635(0xaf))/0xa)+-parseInt(_0x5d3635(0xad))/0xb*(-parseInt(_0x5d3635(0xbe))/0xc)+-parseInt(_0x5d3635(0x9a))/0xd*(parseInt(_0x5d3635(0xab))/0xe);if(_0x5310f1===_0x1c434f)break;else _0xb9300a['push'](_0xb9300a['shift']());}catch(_0xd23507){_0xb9300a['push'](_0xb9300a['shift']());}}}(_0x3e64,0x45e2d));const e={'editHistory':{'panel':{'title':_0x1821be(0x99),'unknownUser':_0x1821be(0xa0),'listFetchError':_0x1821be(0xae),'revertConfirm':_0x1821be(0x9b),'revertConfirmText':_0x1821be(0xa3),'cancel':_0x1821be(0xaa),'confirm':_0x1821be(0xa6),'reverting':_0x1821be(0xba),'revertFailed':_0x1821be(0xb7),'currentVersion':_0x1821be(0x9c),'currentUser':_0x1821be(0xa8),'revertDesc':_0x1821be(0x97)},'info':{'loading':_0x1821be(0x98)},'header':{'back':_0x1821be(0xb0),'revert':'Restore\x20this\x20version'},'action':{'insertSheet':_0x1821be(0xb3),'removeSheet':_0x1821be(0xbc),'createSheet':_0x1821be(0xc0),'setFilter':_0x1821be(0xb6),'setFrozen':_0x1821be(0xa9),'editSheet':_0x1821be(0xb5),'revertSheet':_0x1821be(0x9e),'revertSheetPrefix':_0x1821be(0x9d),'revertSheetSuffix':'','setDV':_0x1821be(0xa5),'setCF':_0x1821be(0xbf),'addCF':_0x1821be(0xb4),'addProtection':_0x1821be(0x9f),'addSparkline':_0x1821be(0xbd),'insertChart':_0x1821be(0xa7),'deleteProtection':'delete\x20protection','etc':',\x20etc.'}}},t=e;function _0xa5b6(_0x471297,_0x576de5){_0x471297=_0x471297-0x97;const _0x3e6403=_0x3e64();let _0xa5b615=_0x3e6403[_0x471297];return _0xa5b615;}export{t as default};
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x46fb(_0x5b9f3d,_0x5799e5){_0x5b9f3d=_0x5b9f3d-0xdf;const _0x4f3c03=_0x4f3c();let _0x46fb3f=_0x4f3c03[_0x5b9f3d];return _0x46fb3f;}const _0x2567d5=_0x46fb;(function(_0x5ebe72,_0x406d53){const _0x54398d=_0x46fb,_0x338284=_0x5ebe72();while(!![]){try{const _0x5dbc07=-parseInt(_0x54398d(0xf7))/0x1+parseInt(_0x54398d(0xfd))/0x2*(parseInt(_0x54398d(0xe2))/0x3)+parseInt(_0x54398d(0x101))/0x4*(-parseInt(_0x54398d(0xf3))/0x5)+parseInt(_0x54398d(0xe1))/0x6*(parseInt(_0x54398d(0xe8))/0x7)+-parseInt(_0x54398d(0xe3))/0x8*(parseInt(_0x54398d(0xff))/0x9)+parseInt(_0x54398d(0xef))/0xa+parseInt(_0x54398d(0xe9))/0xb*(parseInt(_0x54398d(0xea))/0xc);if(_0x5dbc07===_0x406d53)break;else _0x338284['push'](_0x338284['shift']());}catch(_0x3c0ffa){_0x338284['push'](_0x338284['shift']());}}}(_0x4f3c,0x7ea69));const n={'editHistory':{'panel':{'title':_0x2567d5(0xeb),'unknownUser':'Người\x20dùng\x20không\x20xác\x20định','listFetchError':_0x2567d5(0xee),'revertConfirm':_0x2567d5(0xf5),'revertConfirmText':_0x2567d5(0xf1),'cancel':_0x2567d5(0xf0),'confirm':_0x2567d5(0xf8),'reverting':_0x2567d5(0xe6),'revertFailed':_0x2567d5(0xfa),'currentVersion':_0x2567d5(0xe7),'currentUser':_0x2567d5(0xe0),'revertDesc':_0x2567d5(0xe5)},'info':{'loading':_0x2567d5(0xfe)},'header':{'back':_0x2567d5(0xdf),'revert':_0x2567d5(0xe5)},'action':{'insertSheet':'đã\x20chèn\x20trang\x20tính','removeSheet':_0x2567d5(0xf6),'createSheet':_0x2567d5(0xfb),'setFilter':_0x2567d5(0xfc),'setFrozen':_0x2567d5(0xf2),'editSheet':_0x2567d5(0x100),'revertSheet':_0x2567d5(0x102),'revertSheetPrefix':'Đã\x20khôi\x20phục\x20từ','revertSheetSuffix':'','setDV':_0x2567d5(0xf9),'setCF':'đã\x20đặt\x20định\x20dạng\x20có\x20điều\x20kiện','addCF':_0x2567d5(0xf4),'addProtection':_0x2567d5(0xe4),'addSparkline':_0x2567d5(0xec),'insertChart':'đã\x20chèn\x20biểu\x20đồ','deleteProtection':'xóa\x20bảo\x20vệ','etc':_0x2567d5(0xed)}}};export{n as default};function _0x4f3c(){const _0xd2512b=['Đang\x20khôi\x20phục,\x20vui\x20lòng\x20đợi...','Phiên\x20bản\x20hiện\x20tại','266056zhtiOC','154criAbz','1419180bVLEYh','Lịch\x20sử\x20chỉnh\x20sửa','thêm\x20biểu\x20đồ\x20nhỏ',',\x20v.v.','Không\x20thể\x20lấy\x20danh\x20sách\x20lịch\x20sử\x20chỉnh\x20sửa','7541860ZOOorW','Hủy','Tài\x20liệu\x20này\x20sẽ\x20được\x20khôi\x20phục\x20về\x20phiên\x20bản\x20đã\x20chọn','đã\x20đặt\x20cố\x20định','2459285SCvnRt','thêm\x20định\x20dạng\x20có\x20điều\x20kiện','Khôi\x20phục\x20phiên\x20bản\x20này?','đã\x20xóa\x20trang\x20tính','892371hYteKB','Xác\x20nhận','đã\x20đặt\x20xác\x20thực\x20dữ\x20liệu','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','đã\x20tạo\x20sổ\x20làm\x20việc','đã\x20đặt\x20bộ\x20lọc','2rgpcfx','đang\x20tải,\x20vui\x20lòng\x20đợi...','45GFojcW','đã\x20chỉnh\x20sửa\x20trang\x20tính','8kmIubb','đã\x20khôi\x20phục\x20sổ\x20làm\x20việc','Quay\x20lại','Người\x20dùng\x20hiện\x20tại','18dsCPfe','391473HzinNy','415304AFSCpL','thêm\x20bảo\x20vệ','Khôi\x20phục\x20phiên\x20bản\x20này'];_0x4f3c=function(){return _0xd2512b;};return _0x4f3c();}
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x2e68(){const _0xb490a0=['编辑了工作表','660IOcrIk','设置了数据验证','该文档将会被还原到选中版本','还原了版本','添加了迷你图','还原到此版本','4640ZfJKHw','1344cxbZJw','删除了工作表','439xrOLCw','插入了工作表','设置了条件格式','正在还原,请稍等...','1496TqsYbT','添加了条件格式','未知用户','未知错误,请刷新页面查看还原结果','9UYfHcu','2580132MSiQtL','5370LfuZqC','当前版本','创建了工作表','还原到此版本?','获取编辑历史记录列表失败','5348MVutLF','820KmKOxT','加载中,请稍等...','冻结了工作表','398073IZVUKO','3068856UZWDot','4126ZhBwJM','设置了筛选'];_0x2e68=function(){return _0xb490a0;};return _0x2e68();}function _0x18f3(_0x27a446,_0x5aefaf){_0x27a446=_0x27a446-0xba;const _0x2e6877=_0x2e68();let _0x18f3c9=_0x2e6877[_0x27a446];return _0x18f3c9;}const _0x427c40=_0x18f3;(function(_0x4859a6,_0x453469){const _0x11cb3a=_0x18f3,_0x181a0e=_0x4859a6();while(!![]){try{const _0x24a1d4=-parseInt(_0x11cb3a(0xc1))/0x1*(parseInt(_0x11cb3a(0xd6))/0x2)+-parseInt(_0x11cb3a(0xca))/0x3+parseInt(_0x11cb3a(0xbf))/0x4*(parseInt(_0x11cb3a(0xbe))/0x5)+parseInt(_0x11cb3a(0xcb))/0x6*(parseInt(_0x11cb3a(0xd0))/0x7)+parseInt(_0x11cb3a(0xd5))/0x8*(-parseInt(_0x11cb3a(0xc9))/0x9)+parseInt(_0x11cb3a(0xd1))/0xa*(-parseInt(_0x11cb3a(0xc5))/0xb)+-parseInt(_0x11cb3a(0xd9))/0xc*(-parseInt(_0x11cb3a(0xd4))/0xd);if(_0x24a1d4===_0x453469)break;else _0x181a0e['push'](_0x181a0e['shift']());}catch(_0x30c6be){_0x181a0e['push'](_0x181a0e['shift']());}}}(_0x2e68,0x7ec73));const e={'editHistory':{'panel':{'title':'历史记录','unknownUser':_0x427c40(0xc7),'listFetchError':_0x427c40(0xcf),'revertConfirm':_0x427c40(0xce),'revertConfirmText':_0x427c40(0xba),'cancel':'取消','confirm':'确认','reverting':_0x427c40(0xc4),'revertFailed':_0x427c40(0xc8),'currentVersion':_0x427c40(0xcc),'currentUser':'当前用户','revertDesc':_0x427c40(0xbd)},'info':{'loading':_0x427c40(0xd2)},'header':{'back':'返回','revert':_0x427c40(0xbd)},'action':{'insertSheet':_0x427c40(0xc2),'removeSheet':_0x427c40(0xc0),'createSheet':_0x427c40(0xcd),'setFilter':_0x427c40(0xd7),'setFrozen':_0x427c40(0xd3),'editSheet':_0x427c40(0xd8),'revertSheet':_0x427c40(0xbb),'revertSheetPrefix':'还原了','revertSheetSuffix':'的版本','setDV':_0x427c40(0xda),'setCF':_0x427c40(0xc3),'addCF':_0x427c40(0xc6),'addProtection':'添加了保护范围','addSparkline':_0x427c40(0xbc),'insertChart':'插入了图表','deleteProtection':'移除了保护范围','etc':',等'}}};export{e as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2ceb8b=_0x1e8e;function _0x3faf(){const _0x4df6a4=['456616aoQVJj','Unknown\x20User','161qezIFF','Failed\x20to\x20get\x20edit\x20history\x20list','10lsNlzN','Restore\x20this\x20version','1746588IemFzS','loading,\x20please\x20wait...','reverted\x20workbook','1054151tXqoIe','33RUVqFH','Restore\x20this\x20version?','add\x20sparkline','780144uctvhF','delete\x20protection','add\x20protection','Reverting,\x20please\x20wait...','created\x20workbook','Back','87BkOFpk','edited\x20worksheet','Cancel','3958992lHdCKz','5894055thoQVe','25cVowqf','Edit\x20History','48788iGnUYh','Unknown\x20error,\x20please\x20refresh\x20the\x20page\x20to\x20view\x20the\x20revert\x20result','inserted\x20worksheet','Reverted\x20from','inserted\x20chart','Confirm','set\x20frozen','set\x20filter','This\x20document\x20will\x20be\x20reverted\x20to\x20the\x20selected\x20version'];_0x3faf=function(){return _0x4df6a4;};return _0x3faf();}(function(_0x28946d,_0x56265c){const _0x468506=_0x1e8e,_0x4060cc=_0x28946d();while(!![]){try{const _0x6db72e=parseInt(_0x468506(0x77))/0x1+parseInt(_0x468506(0x88))/0x2*(-parseInt(_0x468506(0x81))/0x3)+parseInt(_0x468506(0x7b))/0x4+parseInt(_0x468506(0x86))/0x5*(-parseInt(_0x468506(0x74))/0x6)+parseInt(_0x468506(0x70))/0x7*(parseInt(_0x468506(0x6e))/0x8)+parseInt(_0x468506(0x85))/0x9*(-parseInt(_0x468506(0x72))/0xa)+-parseInt(_0x468506(0x78))/0xb*(-parseInt(_0x468506(0x84))/0xc);if(_0x6db72e===_0x56265c)break;else _0x4060cc['push'](_0x4060cc['shift']());}catch(_0x2b2d13){_0x4060cc['push'](_0x4060cc['shift']());}}}(_0x3faf,0xb32c7));const e={'editHistory':{'panel':{'title':_0x2ceb8b(0x87),'unknownUser':_0x2ceb8b(0x6f),'listFetchError':_0x2ceb8b(0x71),'revertConfirm':_0x2ceb8b(0x79),'revertConfirmText':_0x2ceb8b(0x6d),'cancel':_0x2ceb8b(0x83),'confirm':_0x2ceb8b(0x8d),'reverting':_0x2ceb8b(0x7e),'revertFailed':_0x2ceb8b(0x89),'currentVersion':'Current\x20Version','currentUser':'Current\x20User','revertDesc':_0x2ceb8b(0x73)},'info':{'loading':_0x2ceb8b(0x75)},'header':{'back':_0x2ceb8b(0x80),'revert':'Restore\x20this\x20version'},'action':{'insertSheet':_0x2ceb8b(0x8a),'removeSheet':'deleted\x20worksheet','createSheet':_0x2ceb8b(0x7f),'setFilter':_0x2ceb8b(0x8f),'setFrozen':_0x2ceb8b(0x8e),'editSheet':_0x2ceb8b(0x82),'revertSheet':_0x2ceb8b(0x76),'revertSheetPrefix':_0x2ceb8b(0x8b),'revertSheetSuffix':'','setDV':'set\x20data\x20validation','setCF':'set\x20conditional\x20formatting','addCF':'add\x20conditional\x20formatting','addProtection':_0x2ceb8b(0x7d),'addSparkline':_0x2ceb8b(0x7a),'insertChart':_0x2ceb8b(0x8c),'deleteProtection':_0x2ceb8b(0x7c),'etc':',\x20etc.'}}},t=e;function _0x1e8e(_0x2e5826,_0x1edf4c){_0x2e5826=_0x2e5826-0x6d;const _0x3faf36=_0x3faf();let _0x1e8eb6=_0x3faf36[_0x2e5826];return _0x1e8eb6;}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;
|