@univerjs-pro/exchange-client 0.5.0-alpha.0 → 0.5.0-beta.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/facade.js +1 -1
- package/lib/cjs/index.js +2 -2
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.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/facade.js +1 -1
- package/lib/es/index.js +2 -2
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/fa-IR.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/types/controllers/config.schema.d.ts +16 -0
- package/lib/types/controllers/exchange.controller.d.ts +8 -0
- package/lib/types/facade/f-univer.d.ts +36 -0
- package/lib/types/facade/index.d.ts +1 -0
- package/lib/types/index.d.ts +10 -483
- package/lib/types/locale/en-US.d.ts +3 -0
- package/lib/types/locale/fa-IR.d.ts +3 -0
- package/lib/types/locale/ru-RU.d.ts +3 -0
- package/lib/types/locale/vi-VN.d.ts +3 -0
- package/lib/types/locale/zh-CN.d.ts +21 -0
- package/lib/types/locale/zh-TW.d.ts +3 -0
- package/lib/types/plugin.d.ts +11 -0
- package/lib/types/services/__tests__/snapshot.spec.d.ts +1 -0
- package/lib/types/services/exchange.service.d.ts +87 -0
- package/lib/types/services/operate.service.d.ts +121 -0
- package/lib/types/services/request.service.d.ts +107 -0
- package/lib/types/services/upload-notification.service.d.ts +52 -0
- package/lib/types/services/utils/snapshot.d.ts +76 -0
- package/lib/types/services/utils/tool.d.ts +19 -0
- package/lib/types/views/UploadNotificationContainer.d.ts +2 -0
- package/lib/types/views/link-list/LinkList.d.ts +6 -0
- package/lib/types/views/upload-again/UploadAgain.d.ts +2 -0
- package/lib/types/views/upload-button/UploadButton.d.ts +7 -0
- package/lib/types/views/upload-error/UploadError.d.ts +2 -0
- package/lib/types/views/upload-notification/UploadNotification.d.ts +2 -0
- package/lib/types/views/upload-success/UploadSuccess.d.ts +5 -0
- package/lib/types/views/uploading/Uploading.d.ts +2 -0
- package/lib/types/views/uploading/upload-cancel/UploadCancel.d.ts +2 -0
- package/lib/types/views/uploading/upload-progress/UploadProgress.d.ts +5 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +2 -2
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/fa-IR.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 +12 -12
package/lib/es/locale/en-US.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x3c09ac=_0x563d;function _0x563d(_0x348553,_0x3ce381){const _0xcb017e=_0xcb01();return _0x563d=function(_0x563d7b,_0x42b3db){_0x563d7b=_0x563d7b-0x81;let _0x9df77f=_0xcb017e[_0x563d7b];return _0x9df77f;},_0x563d(_0x348553,_0x3ce381);}function _0xcb01(){const _0x4ac977=['Open(File)','Cancel','Downloading','File\x20uploaded\x20successfully','Upload\x20again','143DyrkbD','409272aemZaK','154772PEeWJF','{0}\x20file(s)\x20uploaded\x20successfully','1mASwZD','Save\x20As','Please\x20wait...','Uploading','Data\x20is\x20too\x20large','3496086YBdyIx','3176736BUhTKa','1295VUgWJE','Unknown\x20mistake','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed.','2260940PRrlwV','17208QgGWjq','100WOqFxk','File','Network\x20error','Internal\x20unknown\x20error','1893753FoHeoH'];_0xcb01=function(){return _0x4ac977;};return _0xcb01();}(function(_0x5e7cb8,_0x3286ba){const _0x2220e2=_0x563d,_0x2519bd=_0x5e7cb8();while(!![]){try{const _0x2fd3f2=parseInt(_0x2220e2(0x83))/0x1*(-parseInt(_0x2220e2(0x9a))/0x2)+-parseInt(_0x2220e2(0x89))/0x3+parseInt(_0x2220e2(0x81))/0x4*(-parseInt(_0x2220e2(0x8f))/0x5)+-parseInt(_0x2220e2(0x88))/0x6+parseInt(_0x2220e2(0x8a))/0x7*(parseInt(_0x2220e2(0x8e))/0x8)+parseInt(_0x2220e2(0x93))/0x9+parseInt(_0x2220e2(0x8d))/0xa*(parseInt(_0x2220e2(0x99))/0xb);if(_0x2fd3f2===_0x3286ba)break;else _0x2519bd['push'](_0x2519bd['shift']());}catch(_0xa86f2){_0x2519bd['push'](_0x2519bd['shift']());}}}(_0xcb01,0xe26fd));const e={'exchange':{'file':_0x3c09ac(0x90),'upload':_0x3c09ac(0x94),'download':_0x3c09ac(0x84),'uploading':_0x3c09ac(0x86),'uploadSuccess':_0x3c09ac(0x97),'uploadSuccessTip':_0x3c09ac(0x82),'downloading':_0x3c09ac(0x96),'downloadSuccess':'Download\x20success','unknownMistake':_0x3c09ac(0x8b),'networkError':_0x3c09ac(0x91),'tooLarge':_0x3c09ac(0x87),'internalError':_0x3c09ac(0x92),'interrupt':_0x3c09ac(0x8c),'wait':_0x3c09ac(0x85),'cancel':_0x3c09ac(0x95),'uploadAgain':_0x3c09ac(0x98)}};export{e as default};
|
package/lib/es/locale/fa-IR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
const _0x2be86d=_0x3fea;(function(_0x12c410,_0x279e64){const _0x5d1b0f=_0x3fea,_0x450950=_0x12c410();while(!![]){try{const _0x3b6720=parseInt(_0x5d1b0f(0x1f0))/0x1+-parseInt(_0x5d1b0f(0x1f6))/0x2*(-parseInt(_0x5d1b0f(0x202))/0x3)+-parseInt(_0x5d1b0f(0x1ef))/0x4*(-parseInt(_0x5d1b0f(0x201))/0x5)+parseInt(_0x5d1b0f(0x200))/0x6+-parseInt(_0x5d1b0f(0x1f7))/0x7+-parseInt(_0x5d1b0f(0x1ff))/0x8*(parseInt(_0x5d1b0f(0x1fc))/0x9)+parseInt(_0x5d1b0f(0x1ee))/0xa*(-parseInt(_0x5d1b0f(0x203))/0xb);if(_0x3b6720===_0x279e64)break;else _0x450950['push'](_0x450950['shift']());}catch(_0xe1dcff){_0x450950['push'](_0x450950['shift']());}}}(_0x5b3d,0xe0d38));const o={'exchange':{'file':_0x2be86d(0x1f9),'upload':'بازکردن(فایل)','download':_0x2be86d(0x1f1),'uploading':_0x2be86d(0x1f3),'uploadSuccess':_0x2be86d(0x1f8),'uploadSuccessTip':_0x2be86d(0x1fd),'downloading':_0x2be86d(0x1fe),'downloadSuccess':_0x2be86d(0x1fa),'unknownMistake':_0x2be86d(0x1fb),'networkError':'خطای\x20شبکه','tooLarge':'داده\x20خیلی\x20بزرگ\x20است','internalError':_0x2be86d(0x1f5),'interrupt':'اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','wait':_0x2be86d(0x1f4),'cancel':'لغو','uploadAgain':_0x2be86d(0x1f2)}};function _0x3fea(_0x5adf94,_0x5f4919){const _0x5b3d9c=_0x5b3d();return _0x3fea=function(_0x3fea55,_0x25b2b8){_0x3fea55=_0x3fea55-0x1ee;let _0x284191=_0x5b3d9c[_0x3fea55];return _0x284191;},_0x3fea(_0x5adf94,_0x5f4919);}function _0x5b3d(){const _0x3b8d51=['1949946bPZzAz','11THyWrw','20009060awnlqG','3712IrKkDi','587088kAsVwB','ذخیره\x20به\x20عنوان','بارگذاری\x20مجدد','در\x20حال\x20بارگذاری','لطفا\x20صبر\x20کنید...','خطای\x20داخلی\x20ناشناخته','4ffaUEW','2170812rmYpgD','فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','فایل','دانلود\x20موفقیت\x20آمیز','خطای\x20ناشناخته','14197761hdaVUv','{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','در\x20حال\x20دانلود','8yKIpNR','8308146FpPRwX','8285OzfXkO'];_0x5b3d=function(){return _0x3b8d51;};return _0x5b3d();}export{o as default};
|
package/lib/es/locale/ru-RU.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x2f1991=_0xae3f;function _0x3b58(){const _0x2abd97=['7741122kVFVEB','Файл\x20успешно\x20загружен','Загрузка','1424198ZJEekI','Сохранить\x20как','Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась.','Открыть(Файл)','11162PTMsJe','Пожалуйста,\x20подождите...','7769853cTXAmP','Скачивание\x20успешно','Внутренняя\x20неизвестная\x20ошибка','5MHmUGH','Сетевая\x20ошибка','{0}\x20файл(ов)\x20успешно\x20загружен(о)','726EYjHIi','4939872SrymBr','2809892dzNiqu','9939352vKZUhF'];_0x3b58=function(){return _0x2abd97;};return _0x3b58();}(function(_0x2a56b3,_0x211b36){const _0x23607c=_0xae3f,_0x5f5b53=_0x2a56b3();while(!![]){try{const _0x18f8c4=parseInt(_0x23607c(0x1a8))/0x1+parseInt(_0x23607c(0x1ac))/0x2*(parseInt(_0x23607c(0x1a1))/0x3)+-parseInt(_0x23607c(0x1a3))/0x4*(-parseInt(_0x23607c(0x1b1))/0x5)+-parseInt(_0x23607c(0x1a5))/0x6+parseInt(_0x23607c(0x1a2))/0x7+-parseInt(_0x23607c(0x1a4))/0x8+-parseInt(_0x23607c(0x1ae))/0x9;if(_0x18f8c4===_0x211b36)break;else _0x5f5b53['push'](_0x5f5b53['shift']());}catch(_0x5de0fd){_0x5f5b53['push'](_0x5f5b53['shift']());}}}(_0x3b58,0xc0266));const o={'exchange':{'file':'Файл','upload':_0x2f1991(0x1ab),'download':_0x2f1991(0x1a9),'uploading':_0x2f1991(0x1a7),'uploadSuccess':_0x2f1991(0x1a6),'uploadSuccessTip':_0x2f1991(0x1a0),'downloading':'Скачивание','downloadSuccess':_0x2f1991(0x1af),'unknownMistake':'Неизвестная\x20ошибка','networkError':_0x2f1991(0x19f),'tooLarge':'Данные\x20слишком\x20большие','internalError':_0x2f1991(0x1b0),'interrupt':_0x2f1991(0x1aa),'wait':_0x2f1991(0x1ad),'cancel':'Отмена','uploadAgain':'Загрузить\x20снова'}};function _0xae3f(_0x155624,_0x3a01af){const _0x3b588d=_0x3b58();return _0xae3f=function(_0xae3f38,_0x24ece8){_0xae3f38=_0xae3f38-0x19f;let _0x2e370f=_0x3b588d[_0xae3f38];return _0x2e370f;},_0xae3f(_0x155624,_0x3a01af);}export{o as default};
|
package/lib/es/locale/vi-VN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0xe737(_0x336ee1,_0x3a5b83){const _0x4cb24c=_0x4cb2();return _0xe737=function(_0xe737e2,_0x11b948){_0xe737e2=_0xe737e2-0x1ed;let _0x2a0071=_0x4cb24c[_0xe737e2];return _0x2a0071;},_0xe737(_0x336ee1,_0x3a5b83);}function _0x4cb2(){const _0x442eb5=['2110648xXJNGN','12134xlmCUk','1168069XDTnVg','Đang\x20tải\x20lên','Lỗi\x20mạng','3296628lbpchg','Hủy\x20bỏ','Tải\x20xuống\x20thành\x20công','186ZJlcJz','Lưu\x20dưới\x20dạng','399820TBMuDf','Mở\x20(Tệp)','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại.','268tsnkfB','Lỗi\x20không\x20xác\x20định','Luồng\x20dữ\x20liệu\x20quá\x20lớn','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','Đang\x20tải\x20xuống','6535WCtozP','838458NHoCCs'];_0x4cb2=function(){return _0x442eb5;};return _0x4cb2();}const _0x5be303=_0xe737;(function(_0x5f8cb6,_0xfc2ca3){const _0x37f9c7=_0xe737,_0xa53888=_0x5f8cb6();while(!![]){try{const _0x5cdf75=parseInt(_0x37f9c7(0x1f8))/0x1+parseInt(_0x37f9c7(0x1ef))/0x2*(parseInt(_0x37f9c7(0x1f6))/0x3)+-parseInt(_0x37f9c7(0x1fb))/0x4*(-parseInt(_0x37f9c7(0x200))/0x5)+-parseInt(_0x37f9c7(0x1ed))/0x6+parseInt(_0x37f9c7(0x1f0))/0x7+-parseInt(_0x37f9c7(0x1ee))/0x8+-parseInt(_0x37f9c7(0x1f3))/0x9;if(_0x5cdf75===_0xfc2ca3)break;else _0xa53888['push'](_0xa53888['shift']());}catch(_0x34836c){_0xa53888['push'](_0xa53888['shift']());}}}(_0x4cb2,0x3f9c0));const n={'exchange':{'file':'Tệp','upload':_0x5be303(0x1f9),'download':_0x5be303(0x1f7),'uploading':_0x5be303(0x1f1),'uploadSuccess':'Tải\x20lên\x20tệp\x20thành\x20công','uploadSuccessTip':_0x5be303(0x1fe),'downloading':_0x5be303(0x1ff),'downloadSuccess':_0x5be303(0x1f5),'unknownMistake':_0x5be303(0x1fc),'networkError':_0x5be303(0x1f2),'tooLarge':_0x5be303(0x1fd),'internalError':'Lỗi\x20không\x20xác\x20định\x20bên\x20trong','interrupt':_0x5be303(0x1fa),'wait':'Vui\x20lòng\x20đợi...','cancel':_0x5be303(0x1f4),'uploadAgain':'Tải\x20lên\x20lại'}};export{n as default};
|
package/lib/es/locale/zh-CN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
function _0x557f(_0x2dcf79,_0x387f55){const _0x35e3d3=_0x35e3();return _0x557f=function(_0x557f38,_0x50b461){_0x557f38=_0x557f38-0x1d9;let _0x2ad551=_0x35e3d3[_0x557f38];return _0x2ad551;},_0x557f(_0x2dcf79,_0x387f55);}const _0x2b04e2=_0x557f;(function(_0x3e222b,_0x1ce9a4){const _0x1207af=_0x557f,_0x5150d8=_0x3e222b();while(!![]){try{const _0x29a13d=parseInt(_0x1207af(0x1e5))/0x1*(parseInt(_0x1207af(0x1d9))/0x2)+parseInt(_0x1207af(0x1e8))/0x3*(parseInt(_0x1207af(0x1da))/0x4)+parseInt(_0x1207af(0x1e2))/0x5+parseInt(_0x1207af(0x1dc))/0x6+-parseInt(_0x1207af(0x1e0))/0x7*(-parseInt(_0x1207af(0x1f0))/0x8)+-parseInt(_0x1207af(0x1de))/0x9+-parseInt(_0x1207af(0x1e6))/0xa;if(_0x29a13d===_0x1ce9a4)break;else _0x5150d8['push'](_0x5150d8['shift']());}catch(_0x5af8f0){_0x5150d8['push'](_0x5150d8['shift']());}}}(_0x35e3,0xe7715));function _0x35e3(){const _0x331b61=['66215QnrjVr','{0}个文件上传成功','网络连接中断,文件上传失败。','10289PtBglQ','2971480bWJIbI','再次上传','1797VPRwIU','网络异常','下载成功','数据流过大','打开(文件)','上传中','下载中','文件上传成功','7003880PAPKOP','58yycjCL','7288GrDdYb','另存为','1029138TJCImY','内部未知错误','10843857yRPVFf','请稍等...','7djlSVw','未知错误'];_0x35e3=function(){return _0x331b61;};return _0x35e3();}const o={'exchange':{'file':'文件','upload':_0x2b04e2(0x1ec),'download':_0x2b04e2(0x1db),'uploading':_0x2b04e2(0x1ed),'uploadSuccess':_0x2b04e2(0x1ef),'uploadSuccessTip':_0x2b04e2(0x1e3),'downloading':_0x2b04e2(0x1ee),'downloadSuccess':_0x2b04e2(0x1ea),'unknownMistake':_0x2b04e2(0x1e1),'networkError':_0x2b04e2(0x1e9),'tooLarge':_0x2b04e2(0x1eb),'internalError':_0x2b04e2(0x1dd),'interrupt':_0x2b04e2(0x1e4),'wait':_0x2b04e2(0x1df),'cancel':'取消','uploadAgain':_0x2b04e2(0x1e7)}};export{o as default};
|
package/lib/es/locale/zh-TW.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
function _0x241b(){const _0x173b6f=['網路連線中斷,檔案上傳失敗。\x20','另存為','請稍等...','579173nfxORE','1937736rLIUKU','4362590hKqaeY','708793OOheZQ','上傳中','4UnzkeY','58467AWCcTd','未知錯誤','網路異常','開啟(檔案)','{0}個檔案上傳成功','內部未知錯誤','18gHzSYq','5574285ENFstw','資料流過大','檔案上傳成功','1501880fXtxwA','下載成功'];_0x241b=function(){return _0x173b6f;};return _0x241b();}const _0xd18075=_0x5991;(function(_0x2843d8,_0x27da65){const _0x5bd004=_0x5991,_0x127eea=_0x2843d8();while(!![]){try{const _0x1f4802=-parseInt(_0x5bd004(0xb1))/0x1+parseInt(_0x5bd004(0xa5))/0x2*(parseInt(_0x5bd004(0x9f))/0x3)+-parseInt(_0x5bd004(0x9e))/0x4*(-parseInt(_0x5bd004(0xb0))/0x5)+-parseInt(_0x5bd004(0xaf))/0x6+parseInt(_0x5bd004(0xae))/0x7+-parseInt(_0x5bd004(0xa9))/0x8+parseInt(_0x5bd004(0xa6))/0x9;if(_0x1f4802===_0x27da65)break;else _0x127eea['push'](_0x127eea['shift']());}catch(_0x1f8f85){_0x127eea['push'](_0x127eea['shift']());}}}(_0x241b,0x8186b));function _0x5991(_0xa2fb5,_0x400e09){const _0x241bab=_0x241b();return _0x5991=function(_0x5991ac,_0x3ecb33){_0x5991ac=_0x5991ac-0x9e;let _0x45109a=_0x241bab[_0x5991ac];return _0x45109a;},_0x5991(_0xa2fb5,_0x400e09);}const o={'exchange':{'file':'檔案','upload':_0xd18075(0xa2),'download':_0xd18075(0xac),'uploading':_0xd18075(0xb2),'uploadSuccess':_0xd18075(0xa8),'uploadSuccessTip':_0xd18075(0xa3),'downloading':'下載中','downloadSuccess':_0xd18075(0xaa),'unknownMistake':_0xd18075(0xa0),'networkError':_0xd18075(0xa1),'tooLarge':_0xd18075(0xa7),'internalError':_0xd18075(0xa4),'interrupt':_0xd18075(0xab),'wait':_0xd18075(0xad),'cancel':'取消','uploadAgain':'再次上傳'}};export{o as default};
|
@@ -0,0 +1,16 @@
|
|
1
|
+
export declare const PLUGIN_CONFIG_KEY = "exchange-client.config";
|
2
|
+
export declare const configSymbol: unique symbol;
|
3
|
+
export interface IUniverExchangeClientConfig {
|
4
|
+
/**
|
5
|
+
* The URL of the endpoint for downloading files.
|
6
|
+
* @default 'location.origin'
|
7
|
+
*/
|
8
|
+
downloadEndpointUrl?: string;
|
9
|
+
uploadFileServerUrl?: string;
|
10
|
+
importServerUrl?: string;
|
11
|
+
exportServerUrl?: string;
|
12
|
+
getTaskServerUrl?: string;
|
13
|
+
signUrlServerUrl?: string;
|
14
|
+
maxTimeoutTime?: number;
|
15
|
+
}
|
16
|
+
export declare const defaultPluginConfig: IUniverExchangeClientConfig;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { Disposable, Injector } from '@univerjs/core';
|
2
|
+
import { IUIPartsService } from '@univerjs/ui';
|
3
|
+
export declare class ExchangeClientController extends Disposable {
|
4
|
+
private readonly _injector;
|
5
|
+
private readonly _uiPartsService;
|
6
|
+
constructor(_injector: Injector, _uiPartsService: IUIPartsService);
|
7
|
+
private _registerComponents;
|
8
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import { IDocumentData, IWorkbookData } from '@univerjs/core';
|
2
|
+
interface IFUniverExchangeClientMixin {
|
3
|
+
/**
|
4
|
+
* Import XLSX file to unit id
|
5
|
+
* @param file File path or file object
|
6
|
+
*/
|
7
|
+
importXLSXToUnitId(file: string | File): Promise<string | undefined>;
|
8
|
+
/**
|
9
|
+
* Import XLSX file to workbook data
|
10
|
+
* @param file File path or file object
|
11
|
+
*/
|
12
|
+
importXLSXToSnapshot(file: string | File): Promise<IWorkbookData | undefined>;
|
13
|
+
/**
|
14
|
+
* Export XLSX file by unit id
|
15
|
+
*/
|
16
|
+
exportXLSXByUnitId(unitId: string): Promise<File | undefined>;
|
17
|
+
/**
|
18
|
+
* Export XLSX file by workbook data
|
19
|
+
*/
|
20
|
+
exportXLSXBySnapshot(snapshot: IWorkbookData): Promise<File | undefined>;
|
21
|
+
/**
|
22
|
+
* Import DOCX file to unit id
|
23
|
+
* @param file File path or file object
|
24
|
+
*/
|
25
|
+
importDOCXToUnitId(file: string | File): Promise<string | undefined>;
|
26
|
+
/**
|
27
|
+
* Import DOCX file to document data
|
28
|
+
* @param file File path or file object
|
29
|
+
*/
|
30
|
+
importDOCXToSnapshot(file: string | File): Promise<IDocumentData | undefined>;
|
31
|
+
}
|
32
|
+
declare module '@univerjs/core' {
|
33
|
+
interface FUniver extends IFUniverExchangeClientMixin {
|
34
|
+
}
|
35
|
+
}
|
36
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
import './f-univer';
|
package/lib/types/index.d.ts
CHANGED
@@ -1,483 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
import { IMessageService } from '@univerjs/ui';
|
12
|
-
import { Injector } from '@univerjs/core';
|
13
|
-
import { ISheetBlock } from '@univerjs/protocol';
|
14
|
-
import { ISnapshot } from '@univerjs/protocol';
|
15
|
-
import { IUniverInstanceService } from '@univerjs/core';
|
16
|
-
import { IWorkbookData } from '@univerjs/core';
|
17
|
-
import { IWorkbookMeta } from '@univerjs/protocol';
|
18
|
-
import { IWorksheetMeta } from '@univerjs/protocol';
|
19
|
-
import { LocaleService } from '@univerjs/core';
|
20
|
-
import { Observable } from 'rxjs';
|
21
|
-
import { Plugin as Plugin_2 } from '@univerjs/core';
|
22
|
-
import { UniverInstanceType } from '@univerjs/core';
|
23
|
-
import { UniverType } from '@univerjs/protocol';
|
24
|
-
|
25
|
-
/**
|
26
|
-
* Triggers a download of a given File object.
|
27
|
-
*
|
28
|
-
* @param {File} file - The File object to be downloaded.
|
29
|
-
*/
|
30
|
-
export declare function downloadFile(file: File | Blob, filename: string, fileExt: string): void;
|
31
|
-
|
32
|
-
/** @deprecated Will be removed in the 0.2.19 release */
|
33
|
-
export declare const EXCHANGE_EXPORT_SERVER_URL_KEY = "EXCHANGE_EXPORT_SERVER_URL_KEY";
|
34
|
-
|
35
|
-
/** @deprecated Will be removed in the 0.2.19 release */
|
36
|
-
export declare const EXCHANGE_GET_TASK_SERVER_URL_KEY = "EXCHANGE_GET_TASK_SERVER_URL_KEY";
|
37
|
-
|
38
|
-
/** @deprecated Will be removed in the 0.2.19 release */
|
39
|
-
export declare const EXCHANGE_IMPORT_SERVER_URL_KEY = "EXCHANGE_IMPORT_SERVER_URL_KEY";
|
40
|
-
|
41
|
-
/** @deprecated Will be removed in the 0.2.19 release */
|
42
|
-
export declare const EXCHANGE_SIGN_URL_SERVER_URL_KEY = "EXCHANGE_SIGN_URL_SERVER_URL_KEY";
|
43
|
-
|
44
|
-
/** @deprecated Will be removed in the 0.2.19 release */
|
45
|
-
export declare const EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY = "EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY";
|
46
|
-
|
47
|
-
export declare class ExchangeOperateService extends Disposable_2 implements IExchangeOperateService, IDisposable {
|
48
|
-
private _univerInstanceService;
|
49
|
-
private readonly _messageService;
|
50
|
-
private readonly _localeService;
|
51
|
-
private readonly _exchangeService;
|
52
|
-
private readonly _uploadNotificationService;
|
53
|
-
protected readonly _logService: ILogService;
|
54
|
-
private _interrupted;
|
55
|
-
private readonly _progress$;
|
56
|
-
readonly progress$: Observable<IUploadProgress>;
|
57
|
-
private _totalUploadTaskCount;
|
58
|
-
private _doneUploadTaskCount;
|
59
|
-
constructor(_univerInstanceService: IUniverInstanceService, _messageService: IMessageService, _localeService: LocaleService, _exchangeService: ExchangeService, _uploadNotificationService: UploadNotificationService, _logService: ILogService);
|
60
|
-
interrupt(): void;
|
61
|
-
uploadFileToUnitId(types: UniverType[]): Promise<{
|
62
|
-
unitId: string;
|
63
|
-
type: UniverType;
|
64
|
-
} | undefined>;
|
65
|
-
importDOCXToUnitId(): Promise<string | undefined>;
|
66
|
-
importDOCXToSnapshot(): Promise<void>;
|
67
|
-
exportDOCXByUnitId(unitId?: string, unitName?: string, unitType?: UniverInstanceType): Promise<void>;
|
68
|
-
exportDOCXBySnapshot(): Promise<void>;
|
69
|
-
importXLSXToUnitId(): Promise<string | undefined>;
|
70
|
-
importXLSXToSnapshot(): Promise<void>;
|
71
|
-
exportXLSXByUnitId(unitId?: string, unitName?: string): Promise<void>;
|
72
|
-
exportXLSXBySnapshot(): Promise<void>;
|
73
|
-
registerLink(getLink: (unitId: string, univerType: UniverInstanceType) => string): void;
|
74
|
-
private _importFileToUnitId;
|
75
|
-
private _getUnitID;
|
76
|
-
private _getUnitName;
|
77
|
-
private _getUnitJson;
|
78
|
-
/**
|
79
|
-
* Get unit link /?unit={unitId}&type=2
|
80
|
-
* @param unitId
|
81
|
-
* @param type
|
82
|
-
* @returns
|
83
|
-
*/
|
84
|
-
private _getLinkByUnitId;
|
85
|
-
private _refresh;
|
86
|
-
private _showNetworkError;
|
87
|
-
private _showDownloadMessage;
|
88
|
-
private _showUploadMessage;
|
89
|
-
private _emitProgress;
|
90
|
-
private _addTotalCount;
|
91
|
-
private _addDoneTask;
|
92
|
-
private _completeProgress;
|
93
|
-
private _clearProgress;
|
94
|
-
}
|
95
|
-
|
96
|
-
export declare class ExchangeService extends Disposable_2 implements IExchangeService, IDisposable {
|
97
|
-
private readonly _configService;
|
98
|
-
private readonly _requestService;
|
99
|
-
private readonly _requestState$;
|
100
|
-
readonly requestState$: Observable<IRequestState>;
|
101
|
-
constructor(_configService: IConfigService, _requestService: RequestService);
|
102
|
-
dispose(): void;
|
103
|
-
importDOCXToSnapshot(file: File | string): Promise<IDocumentData | undefined>;
|
104
|
-
exportDOCXByUnitId(unitId: string): Promise<File | undefined>;
|
105
|
-
exportDOCXBySnapshot(snapshot: IDocumentData): Promise<File | undefined>;
|
106
|
-
importXLSXToSnapshot(file: File | string): Promise<IWorkbookData | undefined>;
|
107
|
-
exportXLSXByUnitId(unitId: string): Promise<File | undefined>;
|
108
|
-
exportXLSXBySnapshot(data: IWorkbookData): Promise<File | undefined>;
|
109
|
-
importFileToUnitId(file: File | string, univerType: UniverType): Promise<string | undefined>;
|
110
|
-
private _importToSnapshot;
|
111
|
-
/**
|
112
|
-
* Export file by snapshot
|
113
|
-
* @param snapshot
|
114
|
-
* @param univerType
|
115
|
-
* @returns
|
116
|
-
*/
|
117
|
-
private _exportBySnapshot;
|
118
|
-
private _export;
|
119
|
-
private _upload;
|
120
|
-
private _import;
|
121
|
-
private _signUrl;
|
122
|
-
private _getDownloadEndpointURL;
|
123
|
-
}
|
124
|
-
|
125
|
-
export declare function getUniverTypeByFile(file: File): UniverType.UNIVER_UNKNOWN | UniverType.UNIVER_DOC | UniverType.UNIVER_SHEET | UniverType.UNIVER_SLIDE;
|
126
|
-
|
127
|
-
export declare function getUploadFile(types: UniverType[], multiple?: boolean): Promise<FileList | null>;
|
128
|
-
|
129
|
-
declare interface IDocumentMetaJson extends Omit<IDocumentMeta, 'originalMeta'> {
|
130
|
-
originalMeta: string;
|
131
|
-
}
|
132
|
-
|
133
|
-
export declare interface IExchangeOperateService {
|
134
|
-
interrupt(): void;
|
135
|
-
/**
|
136
|
-
* Upload file to server, get unitId and open unit
|
137
|
-
* @param file
|
138
|
-
*/
|
139
|
-
importXLSXToUnitId(): Promise<string | undefined>;
|
140
|
-
/**
|
141
|
-
* Upload xlsx file to server, get snapshot and refresh current sheet
|
142
|
-
* @param file
|
143
|
-
*/
|
144
|
-
importXLSXToSnapshot(): Promise<void>;
|
145
|
-
/**
|
146
|
-
* Export xlsx file by unitId
|
147
|
-
* @returns
|
148
|
-
*/
|
149
|
-
exportXLSXByUnitId(unitId?: string, unitName?: string, unitType?: UniverInstanceType): Promise<void>;
|
150
|
-
/**
|
151
|
-
* Export xlsx file by snapshot
|
152
|
-
* @returns
|
153
|
-
*/
|
154
|
-
exportXLSXBySnapshot(): Promise<void>;
|
155
|
-
/**
|
156
|
-
* Upload file to server, get unitId and open unit
|
157
|
-
* @param file
|
158
|
-
*/
|
159
|
-
importDOCXToUnitId(): Promise<string | undefined>;
|
160
|
-
/**
|
161
|
-
* Upload docx file to server, get snapshot and refresh current doc
|
162
|
-
* @param file
|
163
|
-
*/
|
164
|
-
importDOCXToSnapshot(): Promise<void>;
|
165
|
-
/**
|
166
|
-
* Export docx file by unitId
|
167
|
-
* @returns
|
168
|
-
*/
|
169
|
-
exportDOCXByUnitId(unitId?: string, unitName?: string, unitType?: UniverType): Promise<void>;
|
170
|
-
/**
|
171
|
-
* Export docx file by snapshot
|
172
|
-
* @returns
|
173
|
-
*/
|
174
|
-
exportDOCXBySnapshot(): Promise<void>;
|
175
|
-
/**
|
176
|
-
* Upload file, supports multiple types
|
177
|
-
* @param file
|
178
|
-
*/
|
179
|
-
uploadFileToUnitId(types: UniverType[]): Promise<{
|
180
|
-
unitId: string;
|
181
|
-
type: UniverType;
|
182
|
-
} | undefined>;
|
183
|
-
/**
|
184
|
-
* Customize the imported Unit URL format according to the needs of your own scene
|
185
|
-
* @param getLink
|
186
|
-
*/
|
187
|
-
registerLink(getLink: (unitId: string, univerType: UniverInstanceType) => string): void;
|
188
|
-
/**
|
189
|
-
* Observable of upload progress
|
190
|
-
*/
|
191
|
-
progress$: Observable<IUploadProgress>;
|
192
|
-
}
|
193
|
-
|
194
|
-
export declare const IExchangeOperateService: IdentifierDecorator<IExchangeOperateService>;
|
195
|
-
|
196
|
-
export declare interface IExchangeService {
|
197
|
-
requestState$: Observable<IRequestState>;
|
198
|
-
/**
|
199
|
-
* Import XLSX file to workbook data
|
200
|
-
* @param file
|
201
|
-
*/
|
202
|
-
importXLSXToSnapshot(file: File | string): Promise<IWorkbookData | undefined>;
|
203
|
-
/**
|
204
|
-
* Export XLSX file by unit id
|
205
|
-
* @param unitId
|
206
|
-
*/
|
207
|
-
exportXLSXByUnitId(unitId: string): Promise<File | undefined>;
|
208
|
-
/**
|
209
|
-
* Export XLSX file by workbook data
|
210
|
-
* @param data
|
211
|
-
* @returns
|
212
|
-
*/
|
213
|
-
exportXLSXBySnapshot(snapshot: IWorkbookData): Promise<File | undefined>;
|
214
|
-
/**
|
215
|
-
* Import DOCX file to document data
|
216
|
-
* @param file
|
217
|
-
*/
|
218
|
-
importDOCXToSnapshot(file: File | string): Promise<IDocumentData | undefined>;
|
219
|
-
/**
|
220
|
-
* Export DOCX file by unit id
|
221
|
-
* @param unitId
|
222
|
-
*/
|
223
|
-
exportDOCXByUnitId(unitId: string): Promise<File | undefined>;
|
224
|
-
/**
|
225
|
-
* Export DOCX file by document data
|
226
|
-
* @param data
|
227
|
-
* @returns
|
228
|
-
*/
|
229
|
-
exportDOCXBySnapshot(snapshot: IDocumentData): Promise<File | undefined>;
|
230
|
-
/**
|
231
|
-
* Import file to unit id
|
232
|
-
* @param file
|
233
|
-
* @param univerType
|
234
|
-
*/
|
235
|
-
importFileToUnitId(file: File | string, univerType: UniverType): Promise<string | undefined>;
|
236
|
-
}
|
237
|
-
|
238
|
-
export declare const IExchangeService: IdentifierDecorator<IExchangeService>;
|
239
|
-
|
240
|
-
declare interface IExportRequest {
|
241
|
-
/** if unitID is specified, the input is the unit in the database */
|
242
|
-
unitID: string;
|
243
|
-
/** if jsonID is specified, the input is the json file which represents a univer unit */
|
244
|
-
jsonID: string;
|
245
|
-
type: UniverType;
|
246
|
-
}
|
247
|
-
|
248
|
-
declare interface IExportResponse {
|
249
|
-
error: IError | undefined;
|
250
|
-
taskID: string;
|
251
|
-
}
|
252
|
-
|
253
|
-
declare interface IExportTaskResult {
|
254
|
-
fileID: string;
|
255
|
-
fileUrl: string;
|
256
|
-
}
|
257
|
-
|
258
|
-
declare interface IFileUploadResponse {
|
259
|
-
FileId: string;
|
260
|
-
error: IError;
|
261
|
-
}
|
262
|
-
|
263
|
-
declare interface IGetTaskResponse {
|
264
|
-
error: IError | undefined;
|
265
|
-
taskID: string;
|
266
|
-
status: string;
|
267
|
-
import?: IImportTaskResult | undefined;
|
268
|
-
export?: IExportTaskResult | undefined;
|
269
|
-
}
|
270
|
-
|
271
|
-
declare interface IImportRequest {
|
272
|
-
fileID: string;
|
273
|
-
type: UniverType;
|
274
|
-
outputType: ImportOutputType;
|
275
|
-
/** not supported yet */
|
276
|
-
fileUrl: string;
|
277
|
-
}
|
278
|
-
|
279
|
-
declare interface IImportResponse {
|
280
|
-
taskID: string;
|
281
|
-
error: IError;
|
282
|
-
}
|
283
|
-
|
284
|
-
declare interface IImportTaskResult {
|
285
|
-
outputType: ImportOutputType;
|
286
|
-
unitID: string;
|
287
|
-
jsonID: string;
|
288
|
-
}
|
289
|
-
|
290
|
-
declare interface ILinkList {
|
291
|
-
link: string;
|
292
|
-
name: string;
|
293
|
-
type: UniverType;
|
294
|
-
}
|
295
|
-
|
296
|
-
declare enum ImportOutputType {
|
297
|
-
UNDEFINED = 0,
|
298
|
-
/** UNIT - Import to univer unit, unit is store in the database */
|
299
|
-
UNIT = 1,
|
300
|
-
/** JSON - Import and convert to a json file which represents a univer unit, not store in the database */
|
301
|
-
JSON = 2,
|
302
|
-
UNRECOGNIZED = -1
|
303
|
-
}
|
304
|
-
|
305
|
-
export declare interface IRequestService {
|
306
|
-
upload(file: File | string): Promise<IFileUploadResponse | undefined>;
|
307
|
-
import(importRequest: IImportRequest): Promise<IImportResponse | undefined>;
|
308
|
-
export(exportRequest: IExportRequest): Promise<IExportResponse | undefined>;
|
309
|
-
getTask(taskID: string): Promise<IGetTaskResponse | undefined>;
|
310
|
-
signUrl(fileID: string): Promise<ISignUrlResponse | undefined>;
|
311
|
-
}
|
312
|
-
|
313
|
-
export declare const IRequestService: IdentifierDecorator<IRequestService>;
|
314
|
-
|
315
|
-
declare interface IRequestState {
|
316
|
-
error: IError | undefined;
|
317
|
-
state: RequestState;
|
318
|
-
}
|
319
|
-
|
320
|
-
declare interface ISheetBlockData extends Omit<ISheetBlock, 'data'> {
|
321
|
-
data: string;
|
322
|
-
}
|
323
|
-
|
324
|
-
declare interface ISheetBlockJson {
|
325
|
-
[key: string]: Partial<ISheetBlockData>;
|
326
|
-
}
|
327
|
-
|
328
|
-
declare interface ISignUrlResponse {
|
329
|
-
error: IError | undefined;
|
330
|
-
url: string;
|
331
|
-
}
|
332
|
-
|
333
|
-
declare interface ISnapshotBlockJson {
|
334
|
-
snapshot: ISnapshotJson;
|
335
|
-
sheetBlocks: ISheetBlockJson;
|
336
|
-
}
|
337
|
-
|
338
|
-
declare interface ISnapshotJson extends Omit<ISnapshot, 'workbook' | 'doc'> {
|
339
|
-
workbook: Partial<IWorkbookMetaJson>;
|
340
|
-
doc: Partial<IDocumentMetaJson>;
|
341
|
-
}
|
342
|
-
|
343
|
-
declare interface IUniverExchangeClientConfig {
|
344
|
-
/**
|
345
|
-
* The URL of the endpoint for downloading files.
|
346
|
-
* @default 'location.origin'
|
347
|
-
*/
|
348
|
-
downloadEndpointUrl?: string;
|
349
|
-
uploadFileServerUrl?: string;
|
350
|
-
importServerUrl?: string;
|
351
|
-
exportServerUrl?: string;
|
352
|
-
getTaskServerUrl?: string;
|
353
|
-
signUrlServerUrl?: string;
|
354
|
-
maxTimeoutTime?: number;
|
355
|
-
}
|
356
|
-
|
357
|
-
export declare interface IUploadNotificationService {
|
358
|
-
visible$: Observable<boolean>;
|
359
|
-
state$: Observable<UploadNotificationState>;
|
360
|
-
list$: Observable<ILinkList[]>;
|
361
|
-
/**
|
362
|
-
* Show upload notification
|
363
|
-
*/
|
364
|
-
show(): void;
|
365
|
-
/**
|
366
|
-
* Hide upload notification
|
367
|
-
*/
|
368
|
-
hide(): void;
|
369
|
-
/**
|
370
|
-
* Update upload notification state
|
371
|
-
* @param state
|
372
|
-
*/
|
373
|
-
updateState(state: UploadNotificationState): void;
|
374
|
-
/**
|
375
|
-
* Push link to upload notification
|
376
|
-
* @param link
|
377
|
-
*/
|
378
|
-
pushLink(link: ILinkList): void;
|
379
|
-
}
|
380
|
-
|
381
|
-
export declare const IUploadNotificationService: IdentifierDecorator<IUploadNotificationService>;
|
382
|
-
|
383
|
-
declare interface IUploadProgress {
|
384
|
-
/** Task that already completed. */
|
385
|
-
done: number;
|
386
|
-
/** The total number of tasks need to execute. */
|
387
|
-
count: number;
|
388
|
-
}
|
389
|
-
|
390
|
-
declare interface IWorkbookMetaJson extends Omit<IWorkbookMeta, 'originalMeta' | 'sheets'> {
|
391
|
-
originalMeta: string;
|
392
|
-
sheets: {
|
393
|
-
[key: string]: Partial<IWorksheetMetaJson>;
|
394
|
-
};
|
395
|
-
}
|
396
|
-
|
397
|
-
declare interface IWorksheetMetaJson extends Omit<IWorksheetMeta, 'originalMeta'> {
|
398
|
-
originalMeta: string;
|
399
|
-
}
|
400
|
-
|
401
|
-
/**
|
402
|
-
* TODO@Dushusir maybe move to ExchangeClientPlugin plugin for reuse
|
403
|
-
*/
|
404
|
-
export declare class RequestService implements IRequestService, IDisposable {
|
405
|
-
private readonly _configService;
|
406
|
-
private readonly _httpService;
|
407
|
-
constructor(_configService: IConfigService, _httpService: HTTPService);
|
408
|
-
dispose(): void;
|
409
|
-
/**
|
410
|
-
* upload file to server
|
411
|
-
* @param file
|
412
|
-
*/
|
413
|
-
upload(file: File | string, size?: number, flate?: boolean): Promise<IFileUploadResponse | undefined>;
|
414
|
-
import(importRequest: IImportRequest): Promise<IImportResponse | undefined>;
|
415
|
-
export(exportRequest: IExportRequest): Promise<IExportResponse | undefined>;
|
416
|
-
getTask(taskID: string): Promise<IGetTaskResponse | undefined>;
|
417
|
-
signUrl(fileID: string): Promise<ISignUrlResponse | undefined>;
|
418
|
-
private _getUploadFileURL;
|
419
|
-
private _getImportURL;
|
420
|
-
private _getExportURL;
|
421
|
-
private _getTaskURL;
|
422
|
-
private _getSignURL;
|
423
|
-
private _getMaxPollingTime;
|
424
|
-
}
|
425
|
-
|
426
|
-
declare enum RequestState {
|
427
|
-
UPLOAD = 0,
|
428
|
-
IMPORT = 1,
|
429
|
-
EXPORT = 2,
|
430
|
-
GET_TASK = 3,
|
431
|
-
SIGN_URL = 4,
|
432
|
-
GET_JSON = 5,
|
433
|
-
GET_FILE = 6
|
434
|
-
}
|
435
|
-
|
436
|
-
/**
|
437
|
-
* Convert the workbook data to snapshot data
|
438
|
-
* @param workbookData
|
439
|
-
* @returns
|
440
|
-
*/
|
441
|
-
export declare function transformWorkbookDataToSnapshotJson(workbookData: IWorkbookData): Promise<ISnapshotBlockJson>;
|
442
|
-
|
443
|
-
export declare class UniverExchangeClientPlugin extends Plugin_2 {
|
444
|
-
private readonly _config;
|
445
|
-
readonly _injector: Injector;
|
446
|
-
private readonly _configService;
|
447
|
-
static pluginName: string;
|
448
|
-
constructor(_config: IUniverExchangeClientConfig | undefined, _injector: Injector, _configService: IConfigService);
|
449
|
-
onStarting(): void;
|
450
|
-
onReady(): void;
|
451
|
-
}
|
452
|
-
|
453
|
-
export declare function UploadNotificationContainer(): default_2.JSX.Element;
|
454
|
-
|
455
|
-
export declare class UploadNotificationService extends Disposable_2 implements IUploadNotificationService, IDisposable {
|
456
|
-
private readonly _visible$;
|
457
|
-
private readonly _state$;
|
458
|
-
private readonly _list$;
|
459
|
-
readonly visible$: Observable<boolean>;
|
460
|
-
readonly state$: Observable<UploadNotificationState>;
|
461
|
-
readonly list$: Observable<ILinkList[]>;
|
462
|
-
private _list;
|
463
|
-
constructor();
|
464
|
-
dispose(): void;
|
465
|
-
show(): void;
|
466
|
-
hide(): void;
|
467
|
-
updateState(state: UploadNotificationState): void;
|
468
|
-
pushLink(link: ILinkList): void;
|
469
|
-
}
|
470
|
-
|
471
|
-
export declare enum UploadNotificationState {
|
472
|
-
UPLOADING = 0,
|
473
|
-
SUCCESS = 1,
|
474
|
-
ERROR = 2
|
475
|
-
}
|
476
|
-
|
477
|
-
export { }
|
478
|
-
|
479
|
-
|
480
|
-
declare module '@univerjs/core' {
|
481
|
-
interface FUniver extends IFUniverExchangeClientMixin {
|
482
|
-
}
|
483
|
-
}
|
1
|
+
export { UniverExchangeClientPlugin } from './plugin';
|
2
|
+
export { ExchangeService, IExchangeService } from './services/exchange.service';
|
3
|
+
export { ExchangeOperateService, IExchangeOperateService } from './services/operate.service';
|
4
|
+
export { IRequestService, RequestService } from './services/request.service';
|
5
|
+
/** @deprecated Will be removed in the 0.2.19 release */
|
6
|
+
export { EXCHANGE_EXPORT_SERVER_URL_KEY, EXCHANGE_GET_TASK_SERVER_URL_KEY, EXCHANGE_IMPORT_SERVER_URL_KEY, EXCHANGE_SIGN_URL_SERVER_URL_KEY, EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY } from './services/request.service';
|
7
|
+
export { IUploadNotificationService, UploadNotificationService, UploadNotificationState } from './services/upload-notification.service';
|
8
|
+
export { downloadFile, getUniverTypeByFile, getUploadFile } from './services/utils/tool';
|
9
|
+
export { UploadNotificationContainer } from './views/UploadNotificationContainer';
|
10
|
+
export { transformWorkbookDataToSnapshotJson } from './services/utils/snapshot';
|