@univerjs-pro/exchange-client 0.25.1 → 1.0.0-alpha.1
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 +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.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/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.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/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.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-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.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/id-ID.js +1 -1
- package/lib/es/locale/it-IT.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/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.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-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.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/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/controllers/exchange.controller.d.ts +4 -2
- package/lib/types/facade/f-univer.d.ts +88 -0
- package/lib/types/index.d.ts +6 -5
- package/lib/types/locale/types.d.ts +3 -0
- package/lib/types/plugin.d.ts +1 -1
- package/lib/types/services/exchange.service.d.ts +20 -0
- package/lib/types/services/operate.service.d.ts +34 -2
- package/lib/types/services/utils/content-type.d.ts +1 -0
- package/lib/types/services/utils/snapshot.d.ts +21 -2
- package/lib/types/views/UploadNotificationContainer.d.ts +1 -1
- package/lib/types/views/link-list/LinkList.d.ts +1 -1
- package/lib/types/views/upload-again/UploadAgain.d.ts +1 -1
- package/lib/types/views/upload-button/UploadButton.d.ts +1 -1
- package/lib/types/views/upload-error/UploadError.d.ts +1 -1
- package/lib/types/views/upload-notification/UploadNotification.d.ts +1 -1
- package/lib/types/views/upload-success/UploadSuccess.d.ts +1 -1
- package/lib/types/views/uploading/Uploading.d.ts +1 -1
- package/lib/types/views/uploading/upload-cancel/UploadCancel.d.ts +1 -1
- package/lib/types/views/uploading/upload-progress/UploadProgress.d.ts +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.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/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.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/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.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-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +13 -13
- /package/lib/types/{controllers/config.schema.d.ts → config/config.d.ts} +0 -0
package/lib/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4b3618=_0x5e76;(function(_0x5db9c7,_0x7f34f0){const _0xc48a6c=_0x5e76,_0x2ad562=_0x5db9c7();while(!![]){try{const _0x2a7637=-parseInt(_0xc48a6c(0x15e))/0x1+-parseInt(_0xc48a6c(0x168))/0x2*(-parseInt(_0xc48a6c(0x163))/0x3)+parseInt(_0xc48a6c(0x165))/0x4+parseInt(_0xc48a6c(0x160))/0x5+parseInt(_0xc48a6c(0x166))/0x6+-parseInt(_0xc48a6c(0x161))/0x7*(-parseInt(_0xc48a6c(0x169))/0x8)+-parseInt(_0xc48a6c(0x15f))/0x9;if(_0x2a7637===_0x7f34f0)break;else _0x2ad562['push'](_0x2ad562['shift']());}catch(_0x449654){_0x2ad562['push'](_0x2ad562['shift']());}}}(_0x3921,0xa4099));function _0x3921(){const _0x2e0a7a=['6643515zlmUgV','49dkUMSX','Скачивание','281166ZcEQbM','Сетевая\x20ошибка','836780DDxdlZ','2291586daMVrG','Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','2TrOgFk','560888WyTkat','Файл\x20успешно\x20загружен','{0}\x20файл(ов)\x20успешно\x20загружен(о)','Скачивание\x20успешно','Внутренняя\x20неизвестная\x20ошибка','1338757AjTlvY','4443066RohQFR'];_0x3921=function(){return _0x2e0a7a;};return _0x3921();}function _0x5e76(_0x64445,_0x3509e6){_0x64445=_0x64445-0x15d;const _0x39213a=_0x3921();let _0x5e7658=_0x39213a[_0x64445];return _0x5e7658;}const e={'exchange-client':{'uploading':'Загрузка','uploadSuccess':_0x4b3618(0x16a),'uploadSuccessTip':_0x4b3618(0x16b),'downloading':_0x4b3618(0x162),'downloadSuccess':_0x4b3618(0x16c),'unknownMistake':'Неизвестная\x20ошибка','networkError':_0x4b3618(0x164),'tooLarge':'Данные\x20слишком\x20большие','internalError':_0x4b3618(0x15d),'interrupt':_0x4b3618(0x167),'fileTypeError':'Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','wait':'Пожалуйста,\x20подождите...','cancel':'Отмена','uploadAgain':'Загрузить\x20снова'}};export{e as default};
|
package/lib/locale/sk-SK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0xcaef6e=_0x22d2;function _0x22d2(_0x4729ac,_0x521edb){_0x4729ac=_0x4729ac-0x1ad;const _0x34669c=_0x3466();let _0x22d2b8=_0x34669c[_0x4729ac];return _0x22d2b8;}(function(_0x3e2f07,_0xd8f2c7){const _0x524665=_0x22d2,_0x5a6dff=_0x3e2f07();while(!![]){try{const _0x4e025f=parseInt(_0x524665(0x1b3))/0x1+parseInt(_0x524665(0x1be))/0x2*(-parseInt(_0x524665(0x1bb))/0x3)+-parseInt(_0x524665(0x1ae))/0x4*(parseInt(_0x524665(0x1b7))/0x5)+parseInt(_0x524665(0x1b4))/0x6+-parseInt(_0x524665(0x1b8))/0x7+-parseInt(_0x524665(0x1b6))/0x8*(-parseInt(_0x524665(0x1af))/0x9)+parseInt(_0x524665(0x1b9))/0xa*(parseInt(_0x524665(0x1bc))/0xb);if(_0x4e025f===_0xd8f2c7)break;else _0x5a6dff['push'](_0x5a6dff['shift']());}catch(_0x3d53ca){_0x5a6dff['push'](_0x5a6dff['shift']());}}}(_0x3466,0x27fb6));const e={'exchange-client':{'uploading':_0xcaef6e(0x1ba),'uploadSuccess':'Súbor\x20bol\x20úspešne\x20nahraný','uploadSuccessTip':_0xcaef6e(0x1c2),'downloading':_0xcaef6e(0x1b2),'downloadSuccess':_0xcaef6e(0x1ad),'unknownMistake':'Neznáma\x20chyba','networkError':_0xcaef6e(0x1c1),'tooLarge':_0xcaef6e(0x1b0),'internalError':_0xcaef6e(0x1b5),'interrupt':_0xcaef6e(0x1bd),'fileTypeError':'Vybraný\x20súbor\x20[{0}]\x20nie\x20je\x20podporovaný\x20na\x20nahrávanie','wait':_0xcaef6e(0x1bf),'cancel':_0xcaef6e(0x1b1),'uploadAgain':_0xcaef6e(0x1c0)}};function _0x3466(){const _0x3e75ed=['8WwijmQ','1010540PMkymH','132181QvnIqO','1509230RARlQR','Nahrávanie','439785ZeUZzX','22QwohOY','Sieťové\x20pripojenie\x20bolo\x20prerušené\x20a\x20nahrávanie\x20súboru\x20zlyhalo','4Xezgul','Prosím\x20počkajte...','Nahrať\x20znova','Sieťová\x20chyba','Úspešne\x20nahraných\x20{0}\x20súborov','Sťahovanie\x20úspešné','4uFpHqE','1955241FzyghQ','Dáta\x20sú\x20príliš\x20veľké','Zrušiť','Sťahovanie','14200vYvEzw','867912DmqahJ','Interná\x20neznáma\x20chyba'];_0x3466=function(){return _0x3e75ed;};return _0x3466();}export{e as default};
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x96a4(){const _0x5eb76a=['10vauWMe','Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','Vui\x20lòng\x20đợi...','655735mnkESh','Tải\x20lên\x20lại','4376tzBuwx','59229PBBPBH','10206OEEYry','2620204bJmGoE','4ybBFFo','Lỗi\x20không\x20xác\x20định\x20bên\x20trong','15235506kodUMo','3519VTMhhq','1866woVIXF','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','Lỗi\x20không\x20xác\x20định','22292EnVQpy','Đang\x20tải\x20lên','Lỗi\x20mạng'];_0x96a4=function(){return _0x5eb76a;};return _0x96a4();}const _0xac5a04=_0x1e09;function _0x1e09(_0xe0aecf,_0x5e765b){_0xe0aecf=_0xe0aecf-0x177;const _0x96a41c=_0x96a4();let _0x1e09a9=_0x96a41c[_0xe0aecf];return _0x1e09a9;}(function(_0x49b109,_0x352f8a){const _0x27d1a5=_0x1e09,_0x14414e=_0x49b109();while(!![]){try{const _0xa50a58=-parseInt(_0x27d1a5(0x17a))/0x1*(-parseInt(_0x27d1a5(0x181))/0x2)+parseInt(_0x27d1a5(0x177))/0x3+-parseInt(_0x27d1a5(0x179))/0x4+parseInt(_0x27d1a5(0x188))/0x5+parseInt(_0x27d1a5(0x17e))/0x6*(-parseInt(_0x27d1a5(0x178))/0x7)+parseInt(_0x27d1a5(0x18a))/0x8*(parseInt(_0x27d1a5(0x17d))/0x9)+-parseInt(_0x27d1a5(0x184))/0xa*(-parseInt(_0x27d1a5(0x17c))/0xb);if(_0xa50a58===_0x352f8a)break;else _0x14414e['push'](_0x14414e['shift']());}catch(_0x4935a4){_0x14414e['push'](_0x14414e['shift']());}}}(_0x96a4,0xa7754));const e={'exchange-client':{'uploading':_0xac5a04(0x182),'uploadSuccess':'Tải\x20lên\x20tệp\x20thành\x20công','uploadSuccessTip':_0xac5a04(0x17f),'downloading':'Đang\x20tải\x20xuống','downloadSuccess':'Tải\x20xuống\x20thành\x20công','unknownMistake':_0xac5a04(0x180),'networkError':_0xac5a04(0x183),'tooLarge':'Luồng\x20dữ\x20liệu\x20quá\x20lớn','internalError':_0xac5a04(0x17b),'interrupt':_0xac5a04(0x186),'fileTypeError':_0xac5a04(0x185),'wait':_0xac5a04(0x187),'cancel':'Hủy\x20bỏ','uploadAgain':_0xac5a04(0x189)}};export{e as default};
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x4ee0(){const _0x1b5292=['网络异常','240496MQtVZQ','网络连接中断,文件上传失败','未知错误','再次上传','下载成功','内部未知错误','请稍等...','873324miBnqu','493585hMYyKq','文件上传成功','{0}个文件上传成功','45RBaqVB','466456zecGtg','1996952aHrWay','529858lYSMvB','13156ZOefVi','下载中'];_0x4ee0=function(){return _0x1b5292;};return _0x4ee0();}const _0xc458b0=_0x2929;function _0x2929(_0x16f418,_0x48325c){_0x16f418=_0x16f418-0x11c;const _0x4ee0e8=_0x4ee0();let _0x292981=_0x4ee0e8[_0x16f418];return _0x292981;}(function(_0x1cd87b,_0x53eafe){const _0x4fc1ad=_0x2929,_0x345c3a=_0x1cd87b();while(!![]){try{const _0x4922cb=parseInt(_0x4fc1ad(0x11e))/0x1+-parseInt(_0x4fc1ad(0x12a))/0x2+-parseInt(_0x4fc1ad(0x129))/0x3*(-parseInt(_0x4fc1ad(0x12d))/0x4)+parseInt(_0x4fc1ad(0x126))/0x5+parseInt(_0x4fc1ad(0x125))/0x6+parseInt(_0x4fc1ad(0x12c))/0x7+-parseInt(_0x4fc1ad(0x12b))/0x8;if(_0x4922cb===_0x53eafe)break;else _0x345c3a['push'](_0x345c3a['shift']());}catch(_0x4ee8cc){_0x345c3a['push'](_0x345c3a['shift']());}}}(_0x4ee0,0x1efe5));const e={'exchange-client':{'uploading':'上传中','uploadSuccess':_0xc458b0(0x127),'uploadSuccessTip':_0xc458b0(0x128),'downloading':_0xc458b0(0x11c),'downloadSuccess':_0xc458b0(0x122),'unknownMistake':_0xc458b0(0x120),'networkError':_0xc458b0(0x11d),'tooLarge':'数据流过大','internalError':_0xc458b0(0x123),'interrupt':_0xc458b0(0x11f),'fileTypeError':'所选文件\x20[{0}]\x20不支持上传','wait':_0xc458b0(0x124),'cancel':'取消','uploadAgain':_0xc458b0(0x121)}};export{e as default};
|
package/lib/locale/zh-HK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x3dbb(_0xd2712a,_0x25d1b5){_0xd2712a=_0xd2712a-0x85;const _0x4edf99=_0x4edf();let _0x3dbb0b=_0x4edf99[_0xd2712a];return _0x3dbb0b;}const _0x13d294=_0x3dbb;(function(_0x27d649,_0x67d0ec){const _0x320523=_0x3dbb,_0x3b3ed4=_0x27d649();while(!![]){try{const _0xf134b4=parseInt(_0x320523(0x87))/0x1*(-parseInt(_0x320523(0x92))/0x2)+parseInt(_0x320523(0x97))/0x3*(parseInt(_0x320523(0x8a))/0x4)+-parseInt(_0x320523(0x89))/0x5*(-parseInt(_0x320523(0x91))/0x6)+parseInt(_0x320523(0x8b))/0x7+-parseInt(_0x320523(0x8f))/0x8*(parseInt(_0x320523(0x88))/0x9)+parseInt(_0x320523(0x85))/0xa+parseInt(_0x320523(0x93))/0xb*(parseInt(_0x320523(0x96))/0xc);if(_0xf134b4===_0x67d0ec)break;else _0x3b3ed4['push'](_0x3b3ed4['shift']());}catch(_0x1a05a8){_0x3b3ed4['push'](_0x3b3ed4['shift']());}}}(_0x4edf,0xd51de));function _0x4edf(){const _0xee000b=['{0}個檔案上傳成功','資料流過大','網絡連線中斷,檔案上傳失敗','101624CxzuAG','網絡異常','346206PwLmyd','2nJPlzm','44BDajSj','再次上傳','下載中','327840yaLcAI','171aUboeY','17188020IpSnoG','上傳中','1312501yFSGHI','549SpNpNY','10pBNrcs','20348sPFqld','5088069dvIAxX'];_0x4edf=function(){return _0xee000b;};return _0x4edf();}const e={'exchange-client':{'uploading':_0x13d294(0x86),'uploadSuccess':'檔案上傳成功','uploadSuccessTip':_0x13d294(0x8c),'downloading':_0x13d294(0x95),'downloadSuccess':'下載成功','unknownMistake':'未知錯誤','networkError':_0x13d294(0x90),'tooLarge':_0x13d294(0x8d),'internalError':'內部未知錯誤','interrupt':_0x13d294(0x8e),'fileTypeError':'所選檔案\x20[{0}]\x20不支援上傳','wait':'請稍等...','cancel':'取消','uploadAgain':_0x13d294(0x94)}};export{e as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5d4ce7=_0x402d;function _0x402d(_0x194825,_0x3a70d5){_0x194825=_0x194825-0xef;const _0x3e29a2=_0x3e29();let _0x402da4=_0x3e29a2[_0x194825];return _0x402da4;}(function(_0x44a6db,_0x3613fc){const _0xf3c990=_0x402d,_0x3a5b39=_0x44a6db();while(!![]){try{const _0x26891c=-parseInt(_0xf3c990(0x101))/0x1+-parseInt(_0xf3c990(0xf8))/0x2*(parseInt(_0xf3c990(0x102))/0x3)+-parseInt(_0xf3c990(0xfa))/0x4*(-parseInt(_0xf3c990(0xfb))/0x5)+-parseInt(_0xf3c990(0xfd))/0x6*(-parseInt(_0xf3c990(0xf3))/0x7)+-parseInt(_0xf3c990(0xf2))/0x8*(-parseInt(_0xf3c990(0x100))/0x9)+parseInt(_0xf3c990(0xfe))/0xa+parseInt(_0xf3c990(0xf1))/0xb*(-parseInt(_0xf3c990(0x103))/0xc);if(_0x26891c===_0x3613fc)break;else _0x3a5b39['push'](_0x3a5b39['shift']());}catch(_0x3efa7b){_0x3a5b39['push'](_0x3a5b39['shift']());}}}(_0x3e29,0x706ab));const e={'exchange-client':{'uploading':_0x5d4ce7(0xf0),'uploadSuccess':'檔案上傳成功','uploadSuccessTip':'{0}個檔案上傳成功','downloading':'下載中','downloadSuccess':_0x5d4ce7(0xfc),'unknownMistake':_0x5d4ce7(0xf6),'networkError':_0x5d4ce7(0xf5),'tooLarge':_0x5d4ce7(0xf7),'internalError':_0x5d4ce7(0xf4),'interrupt':_0x5d4ce7(0xff),'fileTypeError':_0x5d4ce7(0xf9),'wait':_0x5d4ce7(0xef),'cancel':'取消','uploadAgain':'再次上傳'}};function _0x3e29(){const _0x5e974a=['12150JbGfQC','所選檔案\x20[{0}]\x20不支援上傳','1324bUhvtg','5435NQNskP','下載成功','177366udDtlX','6170350KBKbYE','網路連線中斷,檔案上傳失敗','234auNEWu','251406Wxkfqj','267WVsstx','63396kfmGvi','請稍等...','上傳中','1947hUOtMd','181544XHSqDm','147CKwUGH','內部未知錯誤','網路異常','未知錯誤','資料流過大'];_0x3e29=function(){return _0x5e974a;};return _0x3e29();}export{e as default};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { Disposable, Injector } from '@univerjs/core';
|
|
2
|
-
import { IUIPartsService } from '@univerjs/ui';
|
|
2
|
+
import { IconManager, IUIPartsService } from '@univerjs/ui';
|
|
3
3
|
export declare class ExchangeClientController extends Disposable {
|
|
4
4
|
private readonly _injector;
|
|
5
5
|
private readonly _uiPartsService;
|
|
6
|
-
|
|
6
|
+
private readonly _iconManager;
|
|
7
|
+
constructor(_injector: Injector, _uiPartsService: IUIPartsService, _iconManager: IconManager);
|
|
8
|
+
private _registerIcons;
|
|
7
9
|
private _registerComponents;
|
|
8
10
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { IExchangeSlideDocumentData } from '@univerjs-pro/exchange-client';
|
|
1
2
|
import type { IDocumentData, IWorkbookData } from '@univerjs/core';
|
|
2
3
|
import { FUniver } from '@univerjs/core/facade';
|
|
3
4
|
/**
|
|
@@ -149,6 +150,77 @@ export interface IFUniverExchangeClientMixin {
|
|
|
149
150
|
* ```
|
|
150
151
|
*/
|
|
151
152
|
exportDOCXByUnitIdAsync(unitId: string): Promise<File | undefined>;
|
|
153
|
+
/**
|
|
154
|
+
* Import PPTX file to unit id
|
|
155
|
+
* @param {string | File} file File path or file object
|
|
156
|
+
* @returns {Promise<string | undefined>} A promise that resolves to the unit id
|
|
157
|
+
*
|
|
158
|
+
* @example
|
|
159
|
+
* ```typescript
|
|
160
|
+
* // Accepts a File object
|
|
161
|
+
* const unitId = await univerAPI.importPPTXToUnitIdAsync(file);
|
|
162
|
+
* // Or accepts a URL to a remote file
|
|
163
|
+
* // const unitId = await univerAPI.importPPTXToUnitIdAsync('https://example.com/filename.pptx');
|
|
164
|
+
*
|
|
165
|
+
* const url = new URL(window.location.href);
|
|
166
|
+
* url.searchParams.set('unit', unitId);
|
|
167
|
+
* url.searchParams.set('type', "3"); // The meaning of "3" is String(UniverInstanceType.UNIVER_SLIDE)
|
|
168
|
+
*
|
|
169
|
+
* // Open the unit in the new window
|
|
170
|
+
* window.open(url.toString(), '_blank');
|
|
171
|
+
* ```
|
|
172
|
+
*/
|
|
173
|
+
importPPTXToUnitIdAsync(file: string | File): Promise<string | undefined>;
|
|
174
|
+
/**
|
|
175
|
+
* Import PPTX file to slide data
|
|
176
|
+
* @param {string | File} file File path or file object
|
|
177
|
+
* @returns {Promise<IExchangeSlideDocumentData | undefined>} A promise that resolves to the slide data
|
|
178
|
+
*
|
|
179
|
+
* @example
|
|
180
|
+
* ```typescript
|
|
181
|
+
* // Accepts a File object
|
|
182
|
+
* const snapshot = await univerAPI.importPPTXToSnapshotAsync(file);
|
|
183
|
+
* // Or accepts a URL to a remote file
|
|
184
|
+
* // const snapshot = await univerAPI.importPPTXToSnapshotAsync('https://example.com/filename.pptx');
|
|
185
|
+
* console.log('Snapshot created:', snapshot);
|
|
186
|
+
* ```
|
|
187
|
+
*/
|
|
188
|
+
importPPTXToSnapshotAsync(file: string | File): Promise<IExchangeSlideDocumentData | undefined>;
|
|
189
|
+
/**
|
|
190
|
+
* Export PPTX file by unit id
|
|
191
|
+
* @param {string} unitId Unit id
|
|
192
|
+
* @returns {Promise<File | undefined>} A promise that resolves to the PPTX file
|
|
193
|
+
*
|
|
194
|
+
* @example
|
|
195
|
+
* ```typescript
|
|
196
|
+
* import { downloadFile } from '@univerjs-pro/exchange-client';
|
|
197
|
+
*
|
|
198
|
+
* const fPresentation = univerAPI.getActivePresentation();
|
|
199
|
+
* const unitId = fPresentation.getId();
|
|
200
|
+
* const file = await univerAPI.exportPPTXByUnitIdAsync(unitId);
|
|
201
|
+
*
|
|
202
|
+
* // Download the file
|
|
203
|
+
* downloadFile(file, 'univer', 'pptx');
|
|
204
|
+
* ```
|
|
205
|
+
*/
|
|
206
|
+
exportPPTXByUnitIdAsync(unitId: string): Promise<File | undefined>;
|
|
207
|
+
/**
|
|
208
|
+
* Export PPTX file by slide data
|
|
209
|
+
* @param {IExchangeSlideDocumentData} snapshot Slide data
|
|
210
|
+
* @returns {Promise<File | undefined>} A promise that resolves to the PPTX file
|
|
211
|
+
*
|
|
212
|
+
* @example
|
|
213
|
+
* ```typescript
|
|
214
|
+
* import { downloadFile } from '@univerjs-pro/exchange-client';
|
|
215
|
+
*
|
|
216
|
+
* const snapshot = univerAPI.getActivePresentation().save();
|
|
217
|
+
* const file = await univerAPI.exportPPTXBySnapshotAsync(snapshot);
|
|
218
|
+
*
|
|
219
|
+
* // Download the file
|
|
220
|
+
* downloadFile(file, 'univer', 'pptx');
|
|
221
|
+
* ```
|
|
222
|
+
*/
|
|
223
|
+
exportPPTXBySnapshotAsync(snapshot: IExchangeSlideDocumentData): Promise<File | undefined>;
|
|
152
224
|
}
|
|
153
225
|
export declare class FUniverExchangeClientMixin extends FUniver implements IFUniverExchangeClientMixin {
|
|
154
226
|
/**
|
|
@@ -177,6 +249,22 @@ export declare class FUniverExchangeClientMixin extends FUniver implements IFUni
|
|
|
177
249
|
importDOCXToSnapshotAsync(file: string | File): Promise<IDocumentData | undefined>;
|
|
178
250
|
exportDOCXBySnapshotAsync(snapshot: IDocumentData): Promise<File | undefined>;
|
|
179
251
|
exportDOCXByUnitIdAsync(unitId: string): Promise<File | undefined>;
|
|
252
|
+
/**
|
|
253
|
+
* Import PPTX file to unit id
|
|
254
|
+
*/
|
|
255
|
+
importPPTXToUnitIdAsync(file: string | File): Promise<string | undefined>;
|
|
256
|
+
/**
|
|
257
|
+
* Import PPTX file to slide data
|
|
258
|
+
*/
|
|
259
|
+
importPPTXToSnapshotAsync(file: string | File): Promise<IExchangeSlideDocumentData | undefined>;
|
|
260
|
+
/**
|
|
261
|
+
* Export PPTX file by unit id
|
|
262
|
+
*/
|
|
263
|
+
exportPPTXByUnitIdAsync(unitId: string): Promise<File | undefined>;
|
|
264
|
+
/**
|
|
265
|
+
* Export PPTX file by slide data
|
|
266
|
+
*/
|
|
267
|
+
exportPPTXBySnapshotAsync(snapshot: IExchangeSlideDocumentData): Promise<File | undefined>;
|
|
180
268
|
}
|
|
181
269
|
declare module '@univerjs/core/facade' {
|
|
182
270
|
interface FUniver extends IFUniverExchangeClientMixin {
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import './global.css';
|
|
2
|
-
export { EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY
|
|
3
|
-
export type {
|
|
2
|
+
export { EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY } from './config/config';
|
|
3
|
+
export type { IUniverExchangeClientOptions } from './config/config';
|
|
4
|
+
export type { IUniverExchangeClientConfig } from './config/config';
|
|
4
5
|
export { UniverExchangeClientPlugin } from './plugin';
|
|
5
6
|
export { ExchangeService, IExchangeService } from './services/exchange.service';
|
|
6
7
|
export { ExchangeOperateService, IExchangeOperateService } from './services/operate.service';
|
|
7
8
|
export { IRequestService, RequestService } from './services/request.service';
|
|
8
|
-
export { IUploadNotificationService, UploadNotificationService, UploadNotificationState } from './services/upload-notification.service';
|
|
9
|
-
export { transformDocumentDataToSnapshotJson, transformSnapshotJsonToDocumentData, transformSnapshotJsonToWorkbookData, transformWorkbookDataToSnapshotJson, } from './services/utils/snapshot';
|
|
10
|
-
export type { ISnapshotBlockJsonResponse } from './services/utils/snapshot';
|
|
9
|
+
export { IUploadNotificationService, UploadNotificationService, UploadNotificationState, } from './services/upload-notification.service';
|
|
10
|
+
export { transformDocumentDataToSnapshotJson, transformSlideDataToSnapshotJson, transformSnapshotJsonToDocumentData, transformSnapshotJsonToSlideData, transformSnapshotJsonToWorkbookData, transformWorkbookDataToSnapshotJson, } from './services/utils/snapshot';
|
|
11
|
+
export type { IExchangeSlideDocumentData, ISnapshotBlockJsonResponse } from './services/utils/snapshot';
|
|
11
12
|
export { downloadFile, getUniverInstanceTypeByFile, getUploadFile } from './services/utils/tool';
|
|
12
13
|
export { UploadNotificationContainer } from './views/UploadNotificationContainer';
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IUniverExchangeClientConfig } from './
|
|
1
|
+
import type { IUniverExchangeClientConfig } from './config/config';
|
|
2
2
|
import { IConfigService, Injector, Plugin } from '@univerjs/core';
|
|
3
3
|
export declare class UniverExchangeClientPlugin extends Plugin {
|
|
4
4
|
private readonly _config;
|
|
@@ -2,6 +2,7 @@ import type { IDisposable, IDocumentData, IWorkbookData } from '@univerjs/core';
|
|
|
2
2
|
import type { IError } from '@univerjs/protocol';
|
|
3
3
|
import type { Observable } from 'rxjs';
|
|
4
4
|
import type { RequestService } from './request.service';
|
|
5
|
+
import type { IExchangeSlideDocumentData } from './utils/snapshot';
|
|
5
6
|
import { Disposable, IConfigService, UniverInstanceType } from '@univerjs/core';
|
|
6
7
|
import { HTTPService } from '@univerjs/network';
|
|
7
8
|
export declare enum RequestState {
|
|
@@ -51,6 +52,22 @@ export interface IExchangeService {
|
|
|
51
52
|
* @returns Exported DOCX file
|
|
52
53
|
*/
|
|
53
54
|
exportDOCXBySnapshot(snapshot: IDocumentData): Promise<File | undefined>;
|
|
55
|
+
/**
|
|
56
|
+
* Import PPTX file to slide data
|
|
57
|
+
* @param file
|
|
58
|
+
*/
|
|
59
|
+
importPPTXToSnapshot(file: File | string): Promise<IExchangeSlideDocumentData | undefined>;
|
|
60
|
+
/**
|
|
61
|
+
* Export PPTX file by unit id
|
|
62
|
+
* @param unitId
|
|
63
|
+
*/
|
|
64
|
+
exportPPTXByUnitId(unitId: string): Promise<File | undefined>;
|
|
65
|
+
/**
|
|
66
|
+
* Export PPTX file by slide data
|
|
67
|
+
* @param snapshot
|
|
68
|
+
* @returns Exported PPTX file
|
|
69
|
+
*/
|
|
70
|
+
exportPPTXBySnapshot(snapshot: IExchangeSlideDocumentData): Promise<File | undefined>;
|
|
54
71
|
/**
|
|
55
72
|
* Import file to unit id
|
|
56
73
|
* @param file
|
|
@@ -77,6 +94,9 @@ export declare class ExchangeService extends Disposable implements IExchangeServ
|
|
|
77
94
|
importDOCXToSnapshot(file: File | string): Promise<IDocumentData | undefined>;
|
|
78
95
|
exportDOCXByUnitId(unitId: string): Promise<File | undefined>;
|
|
79
96
|
exportDOCXBySnapshot(data: IDocumentData): Promise<File | undefined>;
|
|
97
|
+
importPPTXToSnapshot(file: File | string): Promise<IExchangeSlideDocumentData | undefined>;
|
|
98
|
+
exportPPTXByUnitId(unitId: string): Promise<File | undefined>;
|
|
99
|
+
exportPPTXBySnapshot(data: IExchangeSlideDocumentData): Promise<File | undefined>;
|
|
80
100
|
importXLSXToSnapshot(file: File | string): Promise<IWorkbookData | undefined>;
|
|
81
101
|
exportXLSXByUnitId(unitId: string): Promise<File | undefined>;
|
|
82
102
|
exportXLSXBySnapshot(data: IWorkbookData): Promise<File | undefined>;
|
|
@@ -2,7 +2,7 @@ import type { IDisposable } from '@univerjs/core';
|
|
|
2
2
|
import type { Observable } from 'rxjs';
|
|
3
3
|
import type { ExchangeService } from './exchange.service';
|
|
4
4
|
import type { UploadNotificationService } from './upload-notification.service';
|
|
5
|
-
import { Disposable, ILogService, IUniverInstanceService, LocaleService, UniverInstanceType } from '@univerjs/core';
|
|
5
|
+
import { Disposable, ILogService, IResourceLoaderService, IUniverInstanceService, LocaleService, UniverInstanceType } from '@univerjs/core';
|
|
6
6
|
import { IMessageService } from '@univerjs/ui';
|
|
7
7
|
export interface IExchangeOperateService {
|
|
8
8
|
interrupt(): void;
|
|
@@ -46,6 +46,24 @@ export interface IExchangeOperateService {
|
|
|
46
46
|
* @returns
|
|
47
47
|
*/
|
|
48
48
|
exportDOCXBySnapshot(): Promise<void>;
|
|
49
|
+
/**
|
|
50
|
+
* Upload pptx file to server, get unitId and open unit
|
|
51
|
+
*/
|
|
52
|
+
importPPTXToUnitId(): Promise<string | undefined>;
|
|
53
|
+
/**
|
|
54
|
+
* Upload pptx file to server, get snapshot and refresh current slide
|
|
55
|
+
*/
|
|
56
|
+
importPPTXToSnapshot(): Promise<void>;
|
|
57
|
+
/**
|
|
58
|
+
* Export pptx file by unitId
|
|
59
|
+
* @returns A promise that resolves after the export flow finishes.
|
|
60
|
+
*/
|
|
61
|
+
exportPPTXByUnitId(unitId?: string, unitName?: string, unitType?: UniverInstanceType): Promise<void>;
|
|
62
|
+
/**
|
|
63
|
+
* Export pptx file by snapshot
|
|
64
|
+
* @returns A promise that resolves after the export flow finishes.
|
|
65
|
+
*/
|
|
66
|
+
exportPPTXBySnapshot(): Promise<void>;
|
|
49
67
|
/**
|
|
50
68
|
* Upload file, supports multiple types
|
|
51
69
|
* @param file
|
|
@@ -54,6 +72,10 @@ export interface IExchangeOperateService {
|
|
|
54
72
|
unitId: string;
|
|
55
73
|
type: UniverInstanceType;
|
|
56
74
|
} | undefined>;
|
|
75
|
+
/**
|
|
76
|
+
* Upload file using the currently focused unit type.
|
|
77
|
+
*/
|
|
78
|
+
importFileToUnitIdByCurrentType(): Promise<string | undefined>;
|
|
57
79
|
/**
|
|
58
80
|
* Customize the imported Unit URL format according to the needs of your own scene
|
|
59
81
|
* @param getLink
|
|
@@ -78,20 +100,26 @@ export declare class ExchangeOperateService extends Disposable implements IExcha
|
|
|
78
100
|
private readonly _exchangeService;
|
|
79
101
|
private readonly _uploadNotificationService;
|
|
80
102
|
protected readonly _logService: ILogService;
|
|
103
|
+
private readonly _resourceLoaderService;
|
|
81
104
|
private readonly _progress$;
|
|
82
105
|
readonly progress$: Observable<IUploadProgress>;
|
|
83
106
|
private _totalUploadTaskCount;
|
|
84
107
|
private _doneUploadTaskCount;
|
|
85
|
-
constructor(_univerInstanceService: IUniverInstanceService, _messageService: IMessageService, _localeService: LocaleService, _exchangeService: ExchangeService, _uploadNotificationService: UploadNotificationService, _logService: ILogService);
|
|
108
|
+
constructor(_univerInstanceService: IUniverInstanceService, _messageService: IMessageService, _localeService: LocaleService, _exchangeService: ExchangeService, _uploadNotificationService: UploadNotificationService, _logService: ILogService, _resourceLoaderService: IResourceLoaderService);
|
|
86
109
|
interrupt(): void;
|
|
87
110
|
uploadFileToUnitId(types: UniverInstanceType[]): Promise<{
|
|
88
111
|
unitId: string;
|
|
89
112
|
type: UniverInstanceType;
|
|
90
113
|
} | undefined>;
|
|
114
|
+
importFileToUnitIdByCurrentType(): Promise<string | undefined>;
|
|
91
115
|
importDOCXToUnitId(): Promise<string | undefined>;
|
|
92
116
|
importDOCXToSnapshot(): Promise<void>;
|
|
93
117
|
exportDOCXByUnitId(unitId?: string, unitName?: string, unitType?: UniverInstanceType): Promise<void>;
|
|
94
118
|
exportDOCXBySnapshot(): Promise<void>;
|
|
119
|
+
importPPTXToUnitId(): Promise<string | undefined>;
|
|
120
|
+
importPPTXToSnapshot(): Promise<void>;
|
|
121
|
+
exportPPTXByUnitId(unitId?: string, unitName?: string, unitType?: UniverInstanceType): Promise<void>;
|
|
122
|
+
exportPPTXBySnapshot(): Promise<void>;
|
|
95
123
|
importXLSXToUnitId(): Promise<string | undefined>;
|
|
96
124
|
importXLSXToSnapshot(): Promise<void>;
|
|
97
125
|
exportXLSXByUnitId(unitId?: string, unitName?: string, unitType?: UniverInstanceType): Promise<void>;
|
|
@@ -100,9 +128,12 @@ export declare class ExchangeOperateService extends Disposable implements IExcha
|
|
|
100
128
|
private _importFileToUnitId;
|
|
101
129
|
private _getUnitID;
|
|
102
130
|
private _getUnitIDDoc;
|
|
131
|
+
private _getUnitIDSlide;
|
|
103
132
|
private _getUnitName;
|
|
133
|
+
private _getUnitNameByType;
|
|
104
134
|
private _getUnitJson;
|
|
105
135
|
private _getUnitDocJson;
|
|
136
|
+
private _getUnitSlideJson;
|
|
106
137
|
/**
|
|
107
138
|
* Get unit link /?unit={unitId}&type=2
|
|
108
139
|
* @param unitId
|
|
@@ -111,6 +142,7 @@ export declare class ExchangeOperateService extends Disposable implements IExcha
|
|
|
111
142
|
*/
|
|
112
143
|
private _getLinkByUnitId;
|
|
113
144
|
private _refresh;
|
|
145
|
+
private _refreshSlide;
|
|
114
146
|
private _showNetworkError;
|
|
115
147
|
private _showDownloadMessage;
|
|
116
148
|
private _showUploadMessage;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ILogContext, ISnapshotServerService } from '@univerjs-pro/collaboration';
|
|
2
2
|
import type { IDocumentData, IWorkbookData, Nullable } from '@univerjs/core';
|
|
3
|
-
import type { ICopyFileMetaResponse, IDocumentMeta, IFetchMissingChangesetsResponse, IGetDeserializedSheetBlockResponse, IGetLatestCsReqIdBySidResponse, IGetResourcesResponse, IGetSheetBlockRequest, IGetSheetBlockResponse, IGetUnitOnRevResponse, ISaveChangesetResponse, ISaveSheetBlockRequest, ISaveSheetBlockResponse, ISaveSnapshotResponse, ISheetBlock, ISnapshot, IWorkbookMeta, IWorksheetMeta } from '@univerjs/protocol';
|
|
3
|
+
import type { ICopyFileMetaResponse, IDocumentMeta, IFetchMissingChangesetsResponse, IGetDeserializedSheetBlockResponse, IGetLatestCsReqIdBySidResponse, IGetResourcesResponse, IGetSheetBlockRequest, IGetSheetBlockResponse, IGetUnitOnRevResponse, ISaveChangesetResponse, ISaveSheetBlockRequest, ISaveSheetBlockResponse, ISaveSnapshotResponse, ISheetBlock, ISlideMeta, ISnapshot, IWorkbookMeta, IWorksheetMeta } from '@univerjs/protocol';
|
|
4
|
+
import { transformSnapshotToSlideData } from '@univerjs-pro/collaboration';
|
|
4
5
|
export interface IWorksheetMetaJson extends Omit<IWorksheetMeta, 'originalMeta'> {
|
|
5
6
|
originalMeta: string;
|
|
6
7
|
}
|
|
@@ -13,9 +14,14 @@ export interface IWorkbookMetaJson extends Omit<IWorkbookMeta, 'originalMeta' |
|
|
|
13
14
|
export interface IDocumentMetaJson extends Omit<IDocumentMeta, 'originalMeta'> {
|
|
14
15
|
originalMeta: string;
|
|
15
16
|
}
|
|
16
|
-
export
|
|
17
|
+
export type IExchangeSlideDocumentData = ReturnType<typeof transformSnapshotToSlideData>;
|
|
18
|
+
export interface ISlideMetaJson extends Omit<ISlideMeta, 'originalMeta'> {
|
|
19
|
+
originalMeta: string;
|
|
20
|
+
}
|
|
21
|
+
export interface ISnapshotJson extends Omit<ISnapshot, 'workbook' | 'doc' | 'slide'> {
|
|
17
22
|
workbook: Partial<IWorkbookMetaJson>;
|
|
18
23
|
doc: Partial<IDocumentMetaJson>;
|
|
24
|
+
slide?: Partial<ISlideMetaJson>;
|
|
19
25
|
}
|
|
20
26
|
export interface ISheetBlockData extends Omit<ISheetBlock, 'data'> {
|
|
21
27
|
data: string;
|
|
@@ -43,6 +49,10 @@ export declare function transformWorkbookSnapshotMetaToString(snapshot: ISnapsho
|
|
|
43
49
|
* @param snapshot
|
|
44
50
|
*/
|
|
45
51
|
export declare function transformDocumentSnapshotMetaToString(snapshot: ISnapshot): Nullable<ISnapshotJson>;
|
|
52
|
+
/**
|
|
53
|
+
* Convert the Uint8Array in the slide snapshot to a string for easy transmission to the backend.
|
|
54
|
+
*/
|
|
55
|
+
export declare function transformSlideSnapshotMetaToString(snapshot: ISnapshot): Nullable<ISnapshotJson>;
|
|
46
56
|
/**
|
|
47
57
|
* Convert the Uint8Array in the sheet block to a string for easy transmission to the backend
|
|
48
58
|
* @param sheetBlocks
|
|
@@ -57,6 +67,11 @@ export declare function transformWorkbookDataToSnapshotJson(workbookData: IWorkb
|
|
|
57
67
|
* Convert the document data to snapshot data
|
|
58
68
|
*/
|
|
59
69
|
export declare function transformDocumentDataToSnapshotJson(documentData: IDocumentData): Promise<ISnapshotBlockJson>;
|
|
70
|
+
/**
|
|
71
|
+
* Convert the slide data to snapshot data.
|
|
72
|
+
* @returns Snapshot JSON payload with slide meta encoded as a string.
|
|
73
|
+
*/
|
|
74
|
+
export declare function transformSlideDataToSnapshotJson(slideData: IExchangeSlideDocumentData): Promise<ISnapshotBlockJson>;
|
|
60
75
|
/**
|
|
61
76
|
* Convert the Snapshot data to workbook data
|
|
62
77
|
*/
|
|
@@ -65,6 +80,10 @@ export declare function transformSnapshotJsonToWorkbookData(json: ISnapshotBlock
|
|
|
65
80
|
* Convert the Snapshot data to workbook data
|
|
66
81
|
*/
|
|
67
82
|
export declare function transformSnapshotJsonToDocumentData(json: ISnapshotBlockJsonResponse): IDocumentData;
|
|
83
|
+
/**
|
|
84
|
+
* Convert the Snapshot data to slide data.
|
|
85
|
+
*/
|
|
86
|
+
export declare function transformSnapshotJsonToSlideData(json: ISnapshotBlockJsonResponse): IExchangeSlideDocumentData;
|
|
68
87
|
/**
|
|
69
88
|
* The server needs to fully implement all interfaces, but when used by the client, use saveSheetBlock to cache the sheet block locally, and use getSheetBlock to obtain the sheet block.
|
|
70
89
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function UploadNotificationContainer(): import("react
|
|
1
|
+
export declare function UploadNotificationContainer(): import("react").JSX.Element;
|
|
@@ -2,4 +2,4 @@ import type { ILinkList } from '../../services/upload-notification.service';
|
|
|
2
2
|
export interface ILinkListProps {
|
|
3
3
|
list: ILinkList[];
|
|
4
4
|
}
|
|
5
|
-
export declare function LinkList(props: ILinkListProps): import("react
|
|
5
|
+
export declare function LinkList(props: ILinkListProps): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function UploadAgain(): import("react
|
|
1
|
+
export declare function UploadAgain(): import("react").JSX.Element;
|
|
@@ -4,4 +4,4 @@ export interface IUploadButton {
|
|
|
4
4
|
className?: string;
|
|
5
5
|
onClick?: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
6
6
|
}
|
|
7
|
-
export declare function UploadButton(props: IUploadButton): import("react
|
|
7
|
+
export declare function UploadButton(props: IUploadButton): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function UploadError(): import("react
|
|
1
|
+
export declare function UploadError(): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function UploadNotification(): false | import("react
|
|
1
|
+
export declare function UploadNotification(): false | import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function Uploading(): import("react
|
|
1
|
+
export declare function Uploading(): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function UploadCancel(): import("react
|
|
1
|
+
export declare function UploadCancel(): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function UploadProgress(): import("react
|
|
1
|
+
export declare function UploadProgress(): import("react").JSX.Element;
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x17ae(_0x16c5f3,_0x1aa6c5){_0x16c5f3=_0x16c5f3-0xba;const _0x56fb7a=_0x56fb();let _0x17aeca=_0x56fb7a[_0x16c5f3];return _0x17aeca;}(function(_0x2adc21,_0x47519b){const _0x282033=_0x17ae,_0x3beba1=_0x2adc21();while(!![]){try{const _0x46120c=parseInt(_0x282033(0xbd))/0x1*(-parseInt(_0x282033(0xd4))/0x2)+parseInt(_0x282033(0xdd))/0x3*(-parseInt(_0x282033(0xbb))/0x4)+-parseInt(_0x282033(0xc3))/0x5+parseInt(_0x282033(0xd7))/0x6+parseInt(_0x282033(0xc7))/0x7+-parseInt(_0x282033(0xcd))/0x8+parseInt(_0x282033(0xc8))/0x9;if(_0x46120c===_0x47519b)break;else _0x3beba1['push'](_0x3beba1['shift']());}catch(_0x3563f1){_0x3beba1['push'](_0x3beba1['shift']());}}}(_0x56fb,0x1d63c),function(_0x4a3fca,_0x55ca44){const _0x342963=_0x17ae;typeof exports=='object'&&typeof module<'u'?_0x55ca44(require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x342963(0xde)&&define['amd']?define([_0x342963(0xd8),'@univerjs/core',_0x342963(0xba)],_0x55ca44):(_0x4a3fca=typeof globalThis<'u'?globalThis:_0x4a3fca||self,_0x55ca44(_0x4a3fca[_0x342963(0xc6)],_0x4a3fca['UniverCore'],_0x4a3fca[_0x342963(0xd2)]));}(this,function(_0x511043,_0x2b44a7,_0x185986){const _0x54b547=_0x17ae;var _0x91585a=class extends _0x185986[_0x54b547(0xd0)]{async['importXLSXToUnitIdAsync'](_0x181924){const _0x2437f4=_0x54b547;let _0x219ca8=this[_0x2437f4(0xc2)][_0x2437f4(0xd3)](_0x511043[_0x2437f4(0xbf)]);if(!_0x219ca8)throw Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x219ca8[_0x2437f4(0xdc)](_0x181924,_0x2b44a7['UniverInstanceType'][_0x2437f4(0xc4)]);}async[_0x54b547(0xe0)](_0x7453de){const _0x4a4bc5=_0x54b547;let _0x525931=this[_0x4a4bc5(0xc2)][_0x4a4bc5(0xd3)](_0x511043[_0x4a4bc5(0xbf)]);if(!_0x525931)throw Error(_0x4a4bc5(0xcb));return _0x525931[_0x4a4bc5(0xbe)](_0x7453de);}async[_0x54b547(0xc9)](_0x12899c){const _0x3d6883=_0x54b547;let _0x17e674=this[_0x3d6883(0xc2)][_0x3d6883(0xd3)](_0x511043[_0x3d6883(0xbf)]);if(!_0x17e674)throw Error(_0x3d6883(0xcb));return _0x17e674[_0x3d6883(0xda)](_0x12899c);}async['exportXLSXBySnapshotAsync'](_0x236092){const _0x1af91b=_0x54b547;let _0x4670aa=this[_0x1af91b(0xc2)][_0x1af91b(0xd3)](_0x511043[_0x1af91b(0xbf)]);if(!_0x4670aa)throw Error(_0x1af91b(0xcb));return _0x4670aa[_0x1af91b(0xbc)](_0x236092);}async[_0x54b547(0xd9)](_0x25092a){const _0xcfe183=_0x54b547;let _0x1b1ba8=this[_0xcfe183(0xc2)][_0xcfe183(0xd3)](_0x511043['IExchangeService']);if(!_0x1b1ba8)throw Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x1b1ba8[_0xcfe183(0xdc)](_0x25092a,_0x2b44a7[_0xcfe183(0xd5)][_0xcfe183(0xc0)]);}async['importDOCXToSnapshotAsync'](_0xd04f49){const _0x3ace95=_0x54b547;let _0x14909e=this[_0x3ace95(0xc2)][_0x3ace95(0xd3)](_0x511043[_0x3ace95(0xbf)]);if(!_0x14909e)throw Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x14909e[_0x3ace95(0xce)](_0xd04f49);}async['exportDOCXBySnapshotAsync'](_0x1ef74b){const _0x37cc26=_0x54b547;let _0x4d9742=this[_0x37cc26(0xc2)]['get'](_0x511043[_0x37cc26(0xbf)]);if(!_0x4d9742)throw Error(_0x37cc26(0xcb));return _0x4d9742['exportDOCXBySnapshot'](_0x1ef74b);}async[_0x54b547(0xc1)](_0x4ad2c0){const _0x29cc12=_0x54b547;let _0x1222ed=this[_0x29cc12(0xc2)][_0x29cc12(0xd3)](_0x511043[_0x29cc12(0xbf)]);if(!_0x1222ed)throw Error(_0x29cc12(0xcb));return _0x1222ed[_0x29cc12(0xcc)](_0x4ad2c0);}async[_0x54b547(0xc5)](_0x56e83e){const _0x5b637e=_0x54b547;let _0x20954c=this[_0x5b637e(0xc2)]['get'](_0x511043[_0x5b637e(0xbf)]);if(!_0x20954c)throw Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x20954c['importFileToUnitId'](_0x56e83e,_0x2b44a7[_0x5b637e(0xd5)][_0x5b637e(0xd1)]);}async['importPPTXToSnapshotAsync'](_0x23df5d){const _0x5f2b8e=_0x54b547;let _0x46d955=this[_0x5f2b8e(0xc2)][_0x5f2b8e(0xd3)](_0x511043[_0x5f2b8e(0xbf)]);if(!_0x46d955)throw Error(_0x5f2b8e(0xcb));return _0x46d955[_0x5f2b8e(0xcf)](_0x23df5d);}async[_0x54b547(0xdb)](_0x27100b){const _0x3a707b=_0x54b547;let _0x2e28bb=this['_injector']['get'](_0x511043[_0x3a707b(0xbf)]);if(!_0x2e28bb)throw Error(_0x3a707b(0xcb));return _0x2e28bb['exportPPTXByUnitId'](_0x27100b);}async[_0x54b547(0xdf)](_0x3c2e05){const _0x303258=_0x54b547;let _0x27fd05=this[_0x303258(0xc2)]['get'](_0x511043[_0x303258(0xbf)]);if(!_0x27fd05)throw Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x27fd05[_0x303258(0xca)](_0x3c2e05);}};_0x185986['FUniver'][_0x54b547(0xd6)](_0x91585a);}));function _0x56fb(){const _0x12317a=['The\x20exchange\x20service\x20is\x20not\x20available','exportDOCXByUnitId','908056VqzuPQ','importDOCXToSnapshot','importPPTXToSnapshot','FUniver','UNIVER_SLIDE','UniverCoreFacade','get','1026NfdoiB','UniverInstanceType','extend','560184RLHwqf','@univerjs-pro/exchange-client','importDOCXToUnitIdAsync','exportXLSXByUnitId','exportPPTXByUnitIdAsync','importFileToUnitId','78477wixjhw','function','exportPPTXBySnapshotAsync','importXLSXToSnapshotAsync','@univerjs/core/facade','20MCyutu','exportXLSXBySnapshot','27KGNYFM','importXLSXToSnapshot','IExchangeService','UNIVER_DOC','exportDOCXByUnitIdAsync','_injector','100065BEZuNg','UNIVER_SHEET','importPPTXToUnitIdAsync','UniverProExchangeClient','216160LHtPKV','2468718FKHWJB','exportXLSXByUnitIdAsync','exportPPTXBySnapshot'];_0x56fb=function(){return _0x12317a;};return _0x56fb();}
|