@univerjs-pro/edit-history-viewer 0.12.3-experimental.20251205-8c9a6bf → 0.12.3-nightly.202512060617
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 +0 -1
- package/lib/types/controllers/version-list.controller.d.ts +2 -3
- package/lib/types/index.d.ts +0 -1
- package/lib/types/services/history-fetch.service.d.ts +1 -22
- package/lib/types/services/history-manager.service.d.ts +2 -14
- 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 +17 -17
package/lib/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0xd0fb(_0x199947,_0x178d0e){_0x199947=_0x199947-0xac;const _0x5bc5ca=_0x5bc5();let _0xd0fb6c=_0x5bc5ca[_0x199947];return _0xd0fb6c;}function _0x5bc5(){const _0x24323c=['이\x20문서는\x20선택한\x20버전으로\x20되돌아갑니다','2958352lFEMth','차트\x20삽입','워크시트\x20편집','조건부\x20서식\x20추가','1625302xxddHL','20TZuVkX','틀\x20고정\x20설정','183177iekYDK','스파크라인\x20추가','2MlmrWs','로드\x20중입니다.\x20잠시만\x20기다려\x20주세요...','2439LBludF','21673sWbxun','12qKygYV','편집\x20기록','편집\x20기록\x20목록을\x20가져오지\x20못했습니다','통합\x20문서\x20만들기','이\x20버전을\x20복원하시겠습니까?','워크시트\x20삽입','12aBdiIw','10610dztYbd','16339378PWhQFd','복원\x20원본:','알\x20수\x20없는\x20오류가\x20발생했습니다.\x20페이지를\x20새로\x20고침하여\x20복원\x20결과를\x20확인하세요','현재\x20사용자','통합\x20문서\x20복원','이\x20버전\x20복원','현재\x20버전','316428KiooJK','보호\x20추가'];_0x5bc5=function(){return _0x24323c;};return _0x5bc5();}const _0x25d9fa=_0xd0fb;(function(_0x2f872c,_0x17d742){const _0x445bae=_0xd0fb,_0x24c507=_0x2f872c();while(!![]){try{const _0x4aee7d=parseInt(_0x445bae(0xc0))/0x1*(parseInt(_0x445bae(0xbd))/0x2)+parseInt(_0x445bae(0xbb))/0x3*(-parseInt(_0x445bae(0xc1))/0x4)+-parseInt(_0x445bae(0xb9))/0x5*(parseInt(_0x445bae(0xb1))/0x6)+-parseInt(_0x445bae(0xb8))/0x7+-parseInt(_0x445bae(0xb4))/0x8+-parseInt(_0x445bae(0xbf))/0x9*(parseInt(_0x445bae(0xc8))/0xa)+-parseInt(_0x445bae(0xc9))/0xb*(-parseInt(_0x445bae(0xc7))/0xc);if(_0x4aee7d===_0x17d742)break;else _0x24c507['push'](_0x24c507['shift']());}catch(_0x5f2e42){_0x24c507['push'](_0x24c507['shift']());}}}(_0x5bc5,0x368c7));const e={'editHistory':{'panel':{'title':_0x25d9fa(0xc2),'unknownUser':'알\x20수\x20없는\x20사용자','listFetchError':_0x25d9fa(0xc3),'revertConfirm':_0x25d9fa(0xc5),'revertConfirmText':_0x25d9fa(0xb3),'cancel':'취소','confirm':'확인','reverting':'복원\x20중입니다.\x20잠시만\x20기다려\x20주세요...','revertFailed':_0x25d9fa(0xac),'currentVersion':_0x25d9fa(0xb0),'currentUser':_0x25d9fa(0xad),'revertDesc':'이\x20버전\x20복원'},'info':{'loading':_0x25d9fa(0xbe)},'header':{'back':'뒤로','revert':_0x25d9fa(0xaf)},'action':{'insertSheet':_0x25d9fa(0xc6),'removeSheet':'워크시트\x20삭제','createSheet':_0x25d9fa(0xc4),'setFilter':'필터\x20설정','setFrozen':_0x25d9fa(0xba),'editSheet':_0x25d9fa(0xb6),'revertSheet':_0x25d9fa(0xae),'revertSheetPrefix':_0x25d9fa(0xca),'revertSheetSuffix':'','setDV':'데이터\x20유효성\x20검사\x20설정','setCF':'조건부\x20서식\x20설정','addCF':_0x25d9fa(0xb7),'addProtection':_0x25d9fa(0xb2),'addSparkline':_0x25d9fa(0xbc),'insertChart':_0x25d9fa(0xb5),'deleteProtection':'보호\x20삭제','etc':'등'}}};export{e as default};
|
package/lib/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x23d7(){const _0x50e199=['add\x20conditional\x20formatting','Confirm','1872878GNCZuO','set\x20filter','32199075ScYXxJ',',\x20etc.','1258455WRVhmk','inserted\x20chart','set\x20frozen','Restore\x20this\x20version?','Unknown\x20User','Unknown\x20error,\x20please\x20refresh\x20the\x20page\x20to\x20view\x20the\x20revert\x20result','24ztAFfi','693548PjSDgD','371844ubeCJh','Back','reverted\x20workbook','inserted\x20worksheet','220836LBDVEw','deleted\x20worksheet','Current\x20User','Reverted\x20from','30MxEEOo','Current\x20Version','edited\x20worksheet','3244056nZHJkP','Failed\x20to\x20get\x20edit\x20history\x20list','Reverting,\x20please\x20wait...','add\x20sparkline','created\x20workbook'];_0x23d7=function(){return _0x50e199;};return _0x23d7();}const _0x50c1f9=_0x420d;(function(_0x1859f0,_0x3b6407){const _0x12e441=_0x420d,_0x209c20=_0x1859f0();while(!![]){try{const _0x22b09e=-parseInt(_0x12e441(0x19c))/0x1+parseInt(_0x12e441(0x1a1))/0x2+-parseInt(_0x12e441(0x1b3))/0x3+-parseInt(_0x12e441(0x1a8))/0x4+-parseInt(_0x12e441(0x1a5))/0x5*(parseInt(_0x12e441(0x19d))/0x6)+-parseInt(_0x12e441(0x1af))/0x7*(parseInt(_0x12e441(0x19b))/0x8)+parseInt(_0x12e441(0x1b1))/0x9;if(_0x22b09e===_0x3b6407)break;else _0x209c20['push'](_0x209c20['shift']());}catch(_0x588103){_0x209c20['push'](_0x209c20['shift']());}}}(_0x23d7,0x8fee4));const e={'editHistory':{'panel':{'title':'Edit\x20History','unknownUser':_0x50c1f9(0x199),'listFetchError':_0x50c1f9(0x1a9),'revertConfirm':_0x50c1f9(0x198),'revertConfirmText':'This\x20document\x20will\x20be\x20reverted\x20to\x20the\x20selected\x20version','cancel':'Cancel','confirm':_0x50c1f9(0x1ae),'reverting':_0x50c1f9(0x1aa),'revertFailed':_0x50c1f9(0x19a),'currentVersion':_0x50c1f9(0x1a6),'currentUser':_0x50c1f9(0x1a3),'revertDesc':'Restore\x20this\x20version'},'info':{'loading':'loading,\x20please\x20wait...'},'header':{'back':_0x50c1f9(0x19e),'revert':'Restore\x20this\x20version'},'action':{'insertSheet':_0x50c1f9(0x1a0),'removeSheet':_0x50c1f9(0x1a2),'createSheet':_0x50c1f9(0x1ac),'setFilter':_0x50c1f9(0x1b0),'setFrozen':_0x50c1f9(0x1b5),'editSheet':_0x50c1f9(0x1a7),'revertSheet':_0x50c1f9(0x19f),'revertSheetPrefix':_0x50c1f9(0x1a4),'revertSheetSuffix':'','setDV':'set\x20data\x20validation','setCF':'set\x20conditional\x20formatting','addCF':_0x50c1f9(0x1ad),'addProtection':'add\x20protection','addSparkline':_0x50c1f9(0x1ab),'insertChart':_0x50c1f9(0x1b4),'deleteProtection':'delete\x20protection','etc':_0x50c1f9(0x1b2)}}},t=e;function _0x420d(_0x2325de,_0x4ceceb){_0x2325de=_0x2325de-0x198;const _0x23d7b0=_0x23d7();let _0x420d32=_0x23d7b0[_0x2325de];return _0x420d32;}export{t as default};
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x1660(){const _0x2c64f9=['Hủy','2682BFdUAs',',\x20v.v.','Lịch\x20sử\x20chỉnh\x20sửa','đang\x20tải,\x20vui\x20lòng\x20đợi...','xóa\x20bảo\x20vệ','2958daiZju','Xác\x20nhận','14MtzHtn','Phiên\x20bản\x20hiện\x20tại','thêm\x20bảo\x20vệ','265596fdWnmq','2336HBMgEr','280196ASyxUy','đã\x20tạo\x20sổ\x20làm\x20việc','Tài\x20liệu\x20này\x20sẽ\x20được\x20khôi\x20phục\x20về\x20phiên\x20bản\x20đã\x20chọn','5wkgjnC','814wvObpi','668770BDsUJh','36UsEtGB','Khôi\x20phục\x20phiên\x20bản\x20này?','Khôi\x20phục\x20phiên\x20bản\x20này','427031nCakQG','đã\x20chèn\x20trang\x20tính','đã\x20chỉnh\x20sửa\x20trang\x20tính','Người\x20dùng\x20không\x20xác\x20định','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','thêm\x20định\x20dạng\x20có\x20điều\x20kiện','Đã\x20khôi\x20phục\x20từ','505XGQLav','đã\x20đặt\x20xác\x20thực\x20dữ\x20liệu','thêm\x20biểu\x20đồ\x20nhỏ','đã\x20chèn\x20biểu\x20đồ','Quay\x20lại','Đang\x20khôi\x20phục,\x20vui\x20lòng\x20đợi...'];_0x1660=function(){return _0x2c64f9;};return _0x1660();}const _0x8406e0=_0x231b;(function(_0x557290,_0x1233cc){const _0x1209aa=_0x231b,_0x11a497=_0x557290();while(!![]){try{const _0x486467=-parseInt(_0x1209aa(0xff))/0x1*(-parseInt(_0x1209aa(0xf3))/0x2)+-parseInt(_0x1209aa(0xed))/0x3+parseInt(_0x1209aa(0xef))/0x4*(-parseInt(_0x1209aa(0xf2))/0x5)+-parseInt(_0x1209aa(0xe8))/0x6*(parseInt(_0x1209aa(0xea))/0x7)+parseInt(_0x1209aa(0xee))/0x8*(parseInt(_0x1209aa(0x106))/0x9)+-parseInt(_0x1209aa(0xf4))/0xa+-parseInt(_0x1209aa(0xf8))/0xb*(-parseInt(_0x1209aa(0xf5))/0xc);if(_0x486467===_0x1233cc)break;else _0x11a497['push'](_0x11a497['shift']());}catch(_0x52f9d0){_0x11a497['push'](_0x11a497['shift']());}}}(_0x1660,0x2c92a));const n={'editHistory':{'panel':{'title':_0x8406e0(0xe5),'unknownUser':_0x8406e0(0xfb),'listFetchError':'Không\x20thể\x20lấy\x20danh\x20sách\x20lịch\x20sử\x20chỉnh\x20sửa','revertConfirm':_0x8406e0(0xf6),'revertConfirmText':_0x8406e0(0xf1),'cancel':_0x8406e0(0x105),'confirm':_0x8406e0(0xe9),'reverting':_0x8406e0(0x104),'revertFailed':_0x8406e0(0xfc),'currentVersion':_0x8406e0(0xeb),'currentUser':'Người\x20dùng\x20hiện\x20tại','revertDesc':_0x8406e0(0xf7)},'info':{'loading':_0x8406e0(0xe6)},'header':{'back':_0x8406e0(0x103),'revert':'Khôi\x20phục\x20phiên\x20bản\x20này'},'action':{'insertSheet':_0x8406e0(0xf9),'removeSheet':'đã\x20xóa\x20trang\x20tính','createSheet':_0x8406e0(0xf0),'setFilter':'đã\x20đặt\x20bộ\x20lọc','setFrozen':'đã\x20đặt\x20cố\x20định','editSheet':_0x8406e0(0xfa),'revertSheet':'đã\x20khôi\x20phục\x20sổ\x20làm\x20việc','revertSheetPrefix':_0x8406e0(0xfe),'revertSheetSuffix':'','setDV':_0x8406e0(0x100),'setCF':'đã\x20đặt\x20định\x20dạng\x20có\x20điều\x20kiện','addCF':_0x8406e0(0xfd),'addProtection':_0x8406e0(0xec),'addSparkline':_0x8406e0(0x101),'insertChart':_0x8406e0(0x102),'deleteProtection':_0x8406e0(0xe7),'etc':_0x8406e0(0x107)}}};function _0x231b(_0x1b2947,_0x59118d){_0x1b2947=_0x1b2947-0xe5;const _0x166036=_0x1660();let _0x231bd6=_0x166036[_0x1b2947];return _0x231bd6;}export{n as default};
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x56c852=_0x2b6d;(function(_0x25b534,_0x5c8fc7){const _0x4676c9=_0x2b6d,_0x51a6e9=_0x25b534();while(!![]){try{const _0x484c7d=parseInt(_0x4676c9(0x1ac))/0x1*(-parseInt(_0x4676c9(0x1b3))/0x2)+parseInt(_0x4676c9(0x1b5))/0x3+-parseInt(_0x4676c9(0x1ae))/0x4+-parseInt(_0x4676c9(0x1c5))/0x5*(-parseInt(_0x4676c9(0x1aa))/0x6)+-parseInt(_0x4676c9(0x1be))/0x7+parseInt(_0x4676c9(0x1bf))/0x8*(-parseInt(_0x4676c9(0x1b7))/0x9)+parseInt(_0x4676c9(0x1c3))/0xa;if(_0x484c7d===_0x5c8fc7)break;else _0x51a6e9['push'](_0x51a6e9['shift']());}catch(_0x5b8cf1){_0x51a6e9['push'](_0x51a6e9['shift']());}}}(_0xea89,0xaf259));const e={'editHistory':{'panel':{'title':_0x56c852(0x1c8),'unknownUser':_0x56c852(0x1b0),'listFetchError':_0x56c852(0x1b4),'revertConfirm':_0x56c852(0x1a9),'revertConfirmText':_0x56c852(0x1b9),'cancel':'取消','confirm':'确认','reverting':_0x56c852(0x1bd),'revertFailed':_0x56c852(0x1af),'currentVersion':_0x56c852(0x1bb),'currentUser':_0x56c852(0x1c0),'revertDesc':_0x56c852(0x1c6)},'info':{'loading':_0x56c852(0x1b8)},'header':{'back':'返回','revert':_0x56c852(0x1c6)},'action':{'insertSheet':_0x56c852(0x1b6),'removeSheet':'删除了工作表','createSheet':_0x56c852(0x1c1),'setFilter':_0x56c852(0x1bc),'setFrozen':_0x56c852(0x1c9),'editSheet':'编辑了工作表','revertSheet':_0x56c852(0x1c7),'revertSheetPrefix':_0x56c852(0x1c4),'revertSheetSuffix':_0x56c852(0x1ab),'setDV':_0x56c852(0x1b1),'setCF':_0x56c852(0x1ad),'addCF':_0x56c852(0x1b2),'addProtection':_0x56c852(0x1c2),'addSparkline':'添加了迷你图','insertChart':_0x56c852(0x1ba),'deleteProtection':_0x56c852(0x1ca),'etc':',等'}}};export{e as default};function _0x2b6d(_0x5e5d39,_0x26574e){_0x5e5d39=_0x5e5d39-0x1a9;const _0xea89d6=_0xea89();let _0x2b6d58=_0xea89d6[_0x5e5d39];return _0x2b6d58;}function _0xea89(){const _0x51a329=['设置了筛选','正在还原,请稍等...','7194334iawPDu','7672MpCIZO','当前用户','创建了工作表','添加了保护范围','24449410zCZgzV','还原了','61800prOAak','还原到此版本','还原了版本','历史记录','冻结了工作表','移除了保护范围','还原到此版本?','486hCXjdh','的版本','474111cjrEMi','设置了条件格式','3078876efNcDl','未知错误,请刷新页面查看还原结果','未知用户','设置了数据验证','添加了条件格式','6bqnbrF','获取编辑历史记录列表失败','2638527rdixfW','插入了工作表','3645kGPGiP','加载中,请稍等...','该文档将会被还原到选中版本','插入了图表','当前版本'];_0xea89=function(){return _0x51a329;};return _0xea89();}
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x39ffc8=_0x45bc;(function(_0x49e4b6,_0x83ca5d){const _0x520450=_0x45bc,_0x2f9b1e=_0x49e4b6();while(!![]){try{const _0x141cf5=-parseInt(_0x520450(0xed))/0x1*(parseInt(_0x520450(0xeb))/0x2)+parseInt(_0x520450(0xdb))/0x3*(parseInt(_0x520450(0xe3))/0x4)+-parseInt(_0x520450(0xe1))/0x5*(parseInt(_0x520450(0xf3))/0x6)+parseInt(_0x520450(0xda))/0x7+parseInt(_0x520450(0xe2))/0x8+-parseInt(_0x520450(0xfa))/0x9*(parseInt(_0x520450(0xf7))/0xa)+parseInt(_0x520450(0xe6))/0xb*(parseInt(_0x520450(0xfb))/0xc);if(_0x141cf5===_0x83ca5d)break;else _0x2f9b1e['push'](_0x2f9b1e['shift']());}catch(_0x59cdb0){_0x2f9b1e['push'](_0x2f9b1e['shift']());}}}(_0x16ed,0x43ab9));function _0x45bc(_0x647d3f,_0x2d129a){_0x647d3f=_0x647d3f-0xd7;const _0x16ed10=_0x16ed();let _0x45bc10=_0x16ed10[_0x647d3f];return _0x45bc10;}function _0x16ed(){const _0x3f3104=['Confirm','set\x20data\x20validation','95xDlYAN','1141872THHhyg','204324RUMAHd','delete\x20protection','Restore\x20this\x20version','94523UfBnMb','inserted\x20chart','add\x20sparkline','Reverting,\x20please\x20wait...','set\x20conditional\x20formatting','22hqhNvh','reverted\x20workbook','31009bTnbgo','Back','inserted\x20worksheet','Unknown\x20error,\x20please\x20refresh\x20the\x20page\x20to\x20view\x20the\x20revert\x20result','loading,\x20please\x20wait...','created\x20workbook','114870yhVUCs','add\x20conditional\x20formatting','Failed\x20to\x20get\x20edit\x20history\x20list','deleted\x20worksheet','101960RNIbNo','Cancel','Edit\x20History','198PRECOT','1092AdThAa',',\x20etc.','Restore\x20this\x20version?','set\x20frozen','Reverted\x20from','Unknown\x20User','898821lcPCvP','9kMLsmN','edited\x20worksheet','add\x20protection','set\x20filter'];_0x16ed=function(){return _0x3f3104;};return _0x16ed();}const e={'editHistory':{'panel':{'title':_0x39ffc8(0xf9),'unknownUser':_0x39ffc8(0xd9),'listFetchError':_0x39ffc8(0xf5),'revertConfirm':_0x39ffc8(0xfd),'revertConfirmText':'This\x20document\x20will\x20be\x20reverted\x20to\x20the\x20selected\x20version','cancel':_0x39ffc8(0xf8),'confirm':_0x39ffc8(0xdf),'reverting':_0x39ffc8(0xe9),'revertFailed':_0x39ffc8(0xf0),'currentVersion':'Current\x20Version','currentUser':'Current\x20User','revertDesc':'Restore\x20this\x20version'},'info':{'loading':_0x39ffc8(0xf1)},'header':{'back':_0x39ffc8(0xee),'revert':_0x39ffc8(0xe5)},'action':{'insertSheet':_0x39ffc8(0xef),'removeSheet':_0x39ffc8(0xf6),'createSheet':_0x39ffc8(0xf2),'setFilter':_0x39ffc8(0xde),'setFrozen':_0x39ffc8(0xd7),'editSheet':_0x39ffc8(0xdc),'revertSheet':_0x39ffc8(0xec),'revertSheetPrefix':_0x39ffc8(0xd8),'revertSheetSuffix':'','setDV':_0x39ffc8(0xe0),'setCF':_0x39ffc8(0xea),'addCF':_0x39ffc8(0xf4),'addProtection':_0x39ffc8(0xdd),'addSparkline':_0x39ffc8(0xe8),'insertChart':_0x39ffc8(0xe7),'deleteProtection':_0x39ffc8(0xe4),'etc':_0x39ffc8(0xfc)}}},t=e;export{t as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Disposable,
|
|
1
|
+
import { Disposable, 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,9 +6,8 @@ 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;
|
|
10
9
|
private _sidebarDisposable;
|
|
11
|
-
constructor(_sidebarService: ISidebarService, _componentManager: ComponentManager, _localeService: LocaleService, _historyManagerService: HistoryManagerService
|
|
10
|
+
constructor(_sidebarService: ISidebarService, _componentManager: ComponentManager, _localeService: LocaleService, _historyManagerService: HistoryManagerService);
|
|
12
11
|
private _init;
|
|
13
12
|
private _openPanel;
|
|
14
13
|
private _initPanel;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
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';
|
|
5
4
|
export { HistoryManagerService, HistoryModeStatus } from './services/history-manager.service';
|
|
@@ -13,7 +13,6 @@ export interface IHistoryVersion {
|
|
|
13
13
|
recoverTime?: number;
|
|
14
14
|
commands: string[];
|
|
15
15
|
isAnonymous: boolean;
|
|
16
|
-
additionalFields?: string;
|
|
17
16
|
}
|
|
18
17
|
export interface IServiceVersionsData {
|
|
19
18
|
hasMore: boolean;
|
|
@@ -32,7 +31,6 @@ export interface IVersionItem {
|
|
|
32
31
|
startRevision: number;
|
|
33
32
|
endRevision: number;
|
|
34
33
|
recoverTime?: string;
|
|
35
|
-
additionalFields?: string;
|
|
36
34
|
}
|
|
37
35
|
export interface IUser {
|
|
38
36
|
userID: string;
|
|
@@ -51,20 +49,6 @@ export interface IChangeset {
|
|
|
51
49
|
mutations: any[];
|
|
52
50
|
memberID: string;
|
|
53
51
|
}
|
|
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
|
-
}
|
|
68
52
|
export declare class HistoryFetchService extends Disposable {
|
|
69
53
|
private readonly _snapshotServerService;
|
|
70
54
|
private readonly _univerInstanceService;
|
|
@@ -76,12 +60,7 @@ export declare class HistoryFetchService extends Disposable {
|
|
|
76
60
|
private _workbookDataCache;
|
|
77
61
|
constructor(_snapshotServerService: ISnapshotServerService, _univerInstanceService: IUniverInstanceService, _commandService: ICommandService, _configService: IConfigService, _httpService: HTTPService, _compressMutationService: CompressMutationService, _sheetPermissionInitController: SheetPermissionInitController);
|
|
78
62
|
dispose(): void;
|
|
79
|
-
|
|
80
|
-
getVersions(unitID: string, params?: {
|
|
81
|
-
userIds?: string[];
|
|
82
|
-
lastLabel?: string;
|
|
83
|
-
origin?: HistoryOrigin;
|
|
84
|
-
}): Promise<Nullable<{
|
|
63
|
+
getVersions(unitID: string, lastLabel?: string): Promise<Nullable<{
|
|
85
64
|
hasMore: boolean;
|
|
86
65
|
lastLabel: string;
|
|
87
66
|
versions: IHistoryVersion[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { 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,12 +27,7 @@ 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
|
|
31
|
-
readonly fetching$: import('rxjs').Observable<boolean>;
|
|
32
|
-
private _creators$;
|
|
33
|
-
readonly creators$: import('rxjs').Observable<IHistoryCreator[]>;
|
|
34
|
-
private _setFetching;
|
|
35
|
-
get fetching(): boolean;
|
|
30
|
+
private _fetching;
|
|
36
31
|
private _loadingState$;
|
|
37
32
|
readonly loadingState$: import('rxjs').Observable<LoadingState>;
|
|
38
33
|
private _lastLabel;
|
|
@@ -42,20 +37,13 @@ export declare class HistoryManagerService extends Disposable {
|
|
|
42
37
|
private _maskContainer;
|
|
43
38
|
private _maskElement;
|
|
44
39
|
private _canRevert;
|
|
45
|
-
private _loadParams;
|
|
46
40
|
constructor(_messageService: IMessageService, _confirmService: IConfirmService, _localeService: LocaleService, _historyFetchService: HistoryFetchService);
|
|
47
41
|
triggerLoadVersions(unitId: string, containerId: string, canRevert: boolean): Promise<void>;
|
|
48
|
-
loadInitialVersions(unitId: string, params?: {
|
|
49
|
-
userIds?: string[];
|
|
50
|
-
origin?: HistoryOrigin;
|
|
51
|
-
}): Promise<void>;
|
|
52
42
|
loadMoreVersions(): Promise<boolean>;
|
|
53
|
-
loadHistoryCreatorList(): Promise<void>;
|
|
54
43
|
triggerLoadSheet(versionId: string): Promise<void>;
|
|
55
44
|
triggerRevert(id?: string): Promise<void>;
|
|
56
45
|
private _updateVersions;
|
|
57
46
|
getCurrentVersion(): IHistoryVersion | undefined;
|
|
58
|
-
private _setVersions;
|
|
59
47
|
getVersion(id: string): IHistoryVersion | undefined;
|
|
60
48
|
getMember(id: string): IUser | undefined;
|
|
61
49
|
private _createMask;
|