@univerjs-pro/exchange-client 0.25.0 → 1.0.0-alpha.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 +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
|
-
function
|
|
1
|
+
function _0x21cb(_0xdde7b4,_0x36a598){_0xdde7b4=_0xdde7b4-0x17e;const _0x4ae83f=_0x4ae8();let _0x21cb72=_0x4ae83f[_0xdde7b4];return _0x21cb72;}function _0x4ae8(){const _0x2f214c=['Загрузить\x20снова','2986160RtInRA','27845hYFBlq','2267408kcMHpE','1PVbKzU','511312UstaTJ','8nrMzLg','Сетевая\x20ошибка','Скачивание','7UVlVGg','Файл\x20успешно\x20загружен','Неизвестная\x20ошибка','591834CJfNnk','2480694ftWLnz','54CyPTBh','Внутренняя\x20неизвестная\x20ошибка','Отмена','Загрузка','3398pMpFRu'];_0x4ae8=function(){return _0x2f214c;};return _0x4ae8();}const _0x18ed0b=_0x21cb;(function(_0x43f489,_0x5bdf0e){const _0x430b76=_0x21cb,_0x19e700=_0x43f489();while(!![]){try{const _0x47cf64=-parseInt(_0x430b76(0x189))/0x1*(parseInt(_0x430b76(0x184))/0x2)+parseInt(_0x430b76(0x17e))/0x3+-parseInt(_0x430b76(0x18b))/0x4*(parseInt(_0x430b76(0x187))/0x5)+parseInt(_0x430b76(0x17f))/0x6*(parseInt(_0x430b76(0x18e))/0x7)+parseInt(_0x430b76(0x18a))/0x8*(-parseInt(_0x430b76(0x180))/0x9)+parseInt(_0x430b76(0x186))/0xa+-parseInt(_0x430b76(0x188))/0xb;if(_0x47cf64===_0x5bdf0e)break;else _0x19e700['push'](_0x19e700['shift']());}catch(_0x71dddc){_0x19e700['push'](_0x19e700['shift']());}}}(_0x4ae8,0x4aece));const e={'exchange-client':{'uploading':_0x18ed0b(0x183),'uploadSuccess':_0x18ed0b(0x18f),'uploadSuccessTip':'{0}\x20файл(ов)\x20успешно\x20загружен(о)','downloading':_0x18ed0b(0x18d),'downloadSuccess':'Скачивание\x20успешно','unknownMistake':_0x18ed0b(0x190),'networkError':_0x18ed0b(0x18c),'tooLarge':'Данные\x20слишком\x20большие','internalError':_0x18ed0b(0x181),'interrupt':'Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','fileTypeError':'Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','wait':'Пожалуйста,\x20подождите...','cancel':_0x18ed0b(0x182),'uploadAgain':_0x18ed0b(0x185)}};export{e as default};
|
package/lib/locale/sk-SK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x16cbd2=_0x1bef;(function(_0x184baa,_0x5a62b6){const _0xe2d983=_0x1bef,_0x5a5ce9=_0x184baa();while(!![]){try{const _0x21a50f=parseInt(_0xe2d983(0xae))/0x1*(parseInt(_0xe2d983(0xa9))/0x2)+parseInt(_0xe2d983(0xab))/0x3*(-parseInt(_0xe2d983(0xa8))/0x4)+parseInt(_0xe2d983(0xb1))/0x5*(-parseInt(_0xe2d983(0xb5))/0x6)+parseInt(_0xe2d983(0xb9))/0x7+-parseInt(_0xe2d983(0xb0))/0x8+parseInt(_0xe2d983(0xaf))/0x9+-parseInt(_0xe2d983(0xb6))/0xa*(-parseInt(_0xe2d983(0xb7))/0xb);if(_0x21a50f===_0x5a62b6)break;else _0x5a5ce9['push'](_0x5a5ce9['shift']());}catch(_0x11261b){_0x5a5ce9['push'](_0x5a5ce9['shift']());}}}(_0x2c89,0x62ff4));function _0x2c89(){const _0x4936b9=['1084VeWsxY','22KlvKcF','Prosím\x20počkajte...','3522cOwzTY','Interná\x20neznáma\x20chyba','Sieťová\x20chyba','52557MYsWqL','3517794YdqEnp','4215064rtlJsS','15pxCxdl','Sťahovanie\x20úspešné','Súbor\x20bol\x20úspešne\x20nahraný','Nahrávanie','1506918UBLwBk','510590vrlvkl','121OuuICW','Dáta\x20sú\x20príliš\x20veľké','3313422OtYinr','Sťahovanie','Vybraný\x20súbor\x20[{0}]\x20nie\x20je\x20podporovaný\x20na\x20nahrávanie','Zrušiť','Neznáma\x20chyba'];_0x2c89=function(){return _0x4936b9;};return _0x2c89();}const e={'exchange-client':{'uploading':_0x16cbd2(0xb4),'uploadSuccess':_0x16cbd2(0xb3),'uploadSuccessTip':'Úspešne\x20nahraných\x20{0}\x20súborov','downloading':_0x16cbd2(0xba),'downloadSuccess':_0x16cbd2(0xb2),'unknownMistake':_0x16cbd2(0xa7),'networkError':_0x16cbd2(0xad),'tooLarge':_0x16cbd2(0xb8),'internalError':_0x16cbd2(0xac),'interrupt':'Sieťové\x20pripojenie\x20bolo\x20prerušené\x20a\x20nahrávanie\x20súboru\x20zlyhalo','fileTypeError':_0x16cbd2(0xbb),'wait':_0x16cbd2(0xaa),'cancel':_0x16cbd2(0xa6),'uploadAgain':'Nahrať\x20znova'}};function _0x1bef(_0x487c20,_0x24cd69){_0x487c20=_0x487c20-0xa6;const _0x2c895d=_0x2c89();let _0x1beff2=_0x2c895d[_0x487c20];return _0x1beff2;}export{e as default};
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x26fef8=_0x43d2;function _0x35be(){const _0x345ec0=['759262QJiunf','Đang\x20tải\x20lên','7335162CDziHX','Vui\x20lòng\x20đợi...','8QLVckv','Lỗi\x20không\x20xác\x20định','42uFqObw','Tải\x20lên\x20tệp\x20thành\x20công','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','Tải\x20lên\x20lại','Đang\x20tải\x20xuống','Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','1029620ildkBC','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','225763CoVkCC','35YYvYfV','3159230dRdDTI','Luồng\x20dữ\x20liệu\x20quá\x20lớn','1627104LlfdRP','20612mdoZSh'];_0x35be=function(){return _0x345ec0;};return _0x35be();}(function(_0x10c598,_0x6ddbd1){const _0x421d8c=_0x43d2,_0x3df094=_0x10c598();while(!![]){try{const _0x419d85=-parseInt(_0x421d8c(0x166))/0x1+parseInt(_0x421d8c(0x178))/0x2+parseInt(_0x421d8c(0x16a))/0x3+parseInt(_0x421d8c(0x16b))/0x4*(-parseInt(_0x421d8c(0x167))/0x5)+-parseInt(_0x421d8c(0x172))/0x6*(parseInt(_0x421d8c(0x16c))/0x7)+-parseInt(_0x421d8c(0x170))/0x8*(-parseInt(_0x421d8c(0x16e))/0x9)+-parseInt(_0x421d8c(0x168))/0xa;if(_0x419d85===_0x6ddbd1)break;else _0x3df094['push'](_0x3df094['shift']());}catch(_0x1ce100){_0x3df094['push'](_0x3df094['shift']());}}}(_0x35be,0x82a89));const e={'exchange-client':{'uploading':_0x26fef8(0x16d),'uploadSuccess':_0x26fef8(0x173),'uploadSuccessTip':_0x26fef8(0x179),'downloading':_0x26fef8(0x176),'downloadSuccess':'Tải\x20xuống\x20thành\x20công','unknownMistake':_0x26fef8(0x171),'networkError':'Lỗi\x20mạng','tooLarge':_0x26fef8(0x169),'internalError':'Lỗi\x20không\x20xác\x20định\x20bên\x20trong','interrupt':_0x26fef8(0x174),'fileTypeError':_0x26fef8(0x177),'wait':_0x26fef8(0x16f),'cancel':'Hủy\x20bỏ','uploadAgain':_0x26fef8(0x175)}};function _0x43d2(_0x2c3588,_0xbf8f8){_0x2c3588=_0x2c3588-0x166;const _0x35beec=_0x35be();let _0x43d209=_0x35beec[_0x2c3588];return _0x43d209;}export{e as default};
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0xdf71(){const _0x16dbad=['数据流过大','132IrypZg','138kFlvGg','10952wnHnWH','{0}个文件上传成功','176430uQbsNN','请稍等...','5969470sfbwiL','3621247FMWtXl','3FITCRP','上传中','1566yxMrDD','网络连接中断,文件上传失败','2927518HkDsvZ','网络异常','所选文件\x20[{0}]\x20不支持上传','3000112AYdeuE','1408VHFVcC','下载成功','下载中','文件上传成功'];_0xdf71=function(){return _0x16dbad;};return _0xdf71();}function _0x3ad7(_0x32704a,_0x297994){_0x32704a=_0x32704a-0x110;const _0xdf7103=_0xdf71();let _0x3ad7dc=_0xdf7103[_0x32704a];return _0x3ad7dc;}const _0x33276a=_0x3ad7;(function(_0x3ea9e9,_0x54954b){const _0x1e1294=_0x3ad7,_0x530e2d=_0x3ea9e9();while(!![]){try{const _0x351f0d=parseInt(_0x1e1294(0x124))/0x1*(-parseInt(_0x1e1294(0x11f))/0x2)+parseInt(_0x1e1294(0x117))/0x3*(parseInt(_0x1e1294(0x11e))/0x4)+parseInt(_0x1e1294(0x113))/0x5*(-parseInt(_0x1e1294(0x110))/0x6)+parseInt(_0x1e1294(0x116))/0x7+parseInt(_0x1e1294(0x111))/0x8*(-parseInt(_0x1e1294(0x119))/0x9)+parseInt(_0x1e1294(0x115))/0xa+-parseInt(_0x1e1294(0x11b))/0xb;if(_0x351f0d===_0x54954b)break;else _0x530e2d['push'](_0x530e2d['shift']());}catch(_0x5f3f9d){_0x530e2d['push'](_0x530e2d['shift']());}}}(_0xdf71,0x6f316));const e={'exchange-client':{'uploading':_0x33276a(0x118),'uploadSuccess':_0x33276a(0x122),'uploadSuccessTip':_0x33276a(0x112),'downloading':_0x33276a(0x121),'downloadSuccess':_0x33276a(0x120),'unknownMistake':'未知错误','networkError':_0x33276a(0x11c),'tooLarge':_0x33276a(0x123),'internalError':'内部未知错误','interrupt':_0x33276a(0x11a),'fileTypeError':_0x33276a(0x11d),'wait':_0x33276a(0x114),'cancel':'取消','uploadAgain':'再次上传'}};export{e as default};
|
package/lib/locale/zh-HK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x229f1a=_0x1700;function _0x1700(_0x4ae8ca,_0x4b89be){_0x4ae8ca=_0x4ae8ca-0x13c;const _0x46f083=_0x46f0();let _0x170063=_0x46f083[_0x4ae8ca];return _0x170063;}(function(_0x431be2,_0x12338e){const _0x2e4a79=_0x1700,_0x17c64d=_0x431be2();while(!![]){try{const _0x4456a5=-parseInt(_0x2e4a79(0x14c))/0x1+parseInt(_0x2e4a79(0x13c))/0x2+parseInt(_0x2e4a79(0x14b))/0x3*(-parseInt(_0x2e4a79(0x146))/0x4)+parseInt(_0x2e4a79(0x14a))/0x5*(parseInt(_0x2e4a79(0x149))/0x6)+parseInt(_0x2e4a79(0x147))/0x7+-parseInt(_0x2e4a79(0x143))/0x8*(-parseInt(_0x2e4a79(0x141))/0x9)+parseInt(_0x2e4a79(0x13d))/0xa*(parseInt(_0x2e4a79(0x148))/0xb);if(_0x4456a5===_0x12338e)break;else _0x17c64d['push'](_0x17c64d['shift']());}catch(_0x4ff9fe){_0x17c64d['push'](_0x17c64d['shift']());}}}(_0x46f0,0x28592));const e={'exchange-client':{'uploading':_0x229f1a(0x142),'uploadSuccess':_0x229f1a(0x13e),'uploadSuccessTip':_0x229f1a(0x145),'downloading':_0x229f1a(0x14e),'downloadSuccess':'下載成功','unknownMistake':_0x229f1a(0x13f),'networkError':'網絡異常','tooLarge':'資料流過大','internalError':_0x229f1a(0x14f),'interrupt':'網絡連線中斷,檔案上傳失敗','fileTypeError':_0x229f1a(0x14d),'wait':_0x229f1a(0x140),'cancel':'取消','uploadAgain':_0x229f1a(0x144)}};export{e as default};function _0x46f0(){const _0x1f7d15=['再次上傳','{0}個檔案上傳成功','28XYFOfn','688254CwcWtG','11GRAqZp','94020stgpxF','35DzeFJM','26547vxoAuF','201060UiFwgE','所選檔案\x20[{0}]\x20不支援上傳','下載中','內部未知錯誤','56256ZJwdhN','1828010cHTDzJ','檔案上傳成功','未知錯誤','請稍等...','198iGOHyR','上傳中','3392IRlYxp'];_0x46f0=function(){return _0x1f7d15;};return _0x46f0();}
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x2d5725=_0x5581;(function(_0x38a4a0,_0xe22efe){const _0x4ce529=_0x5581,_0x2504e4=_0x38a4a0();while(!![]){try{const _0x472056=-parseInt(_0x4ce529(0x1f4))/0x1*(-parseInt(_0x4ce529(0x1f6))/0x2)+-parseInt(_0x4ce529(0x1f2))/0x3*(-parseInt(_0x4ce529(0x1f0))/0x4)+parseInt(_0x4ce529(0x1ee))/0x5+parseInt(_0x4ce529(0x1ed))/0x6*(-parseInt(_0x4ce529(0x1f7))/0x7)+-parseInt(_0x4ce529(0x1f8))/0x8*(parseInt(_0x4ce529(0x1f9))/0x9)+-parseInt(_0x4ce529(0x1fb))/0xa+-parseInt(_0x4ce529(0x1ec))/0xb*(-parseInt(_0x4ce529(0x1ea))/0xc);if(_0x472056===_0xe22efe)break;else _0x2504e4['push'](_0x2504e4['shift']());}catch(_0x37d7aa){_0x2504e4['push'](_0x2504e4['shift']());}}}(_0x4ce3,0xa62ed));const e={'exchange-client':{'uploading':'上傳中','uploadSuccess':_0x2d5725(0x1f3),'uploadSuccessTip':_0x2d5725(0x1e9),'downloading':_0x2d5725(0x1f5),'downloadSuccess':_0x2d5725(0x1fd),'unknownMistake':_0x2d5725(0x1fc),'networkError':_0x2d5725(0x1f1),'tooLarge':_0x2d5725(0x1eb),'internalError':'內部未知錯誤','interrupt':'網路連線中斷,檔案上傳失敗','fileTypeError':'所選檔案\x20[{0}]\x20不支援上傳','wait':_0x2d5725(0x1ef),'cancel':'取消','uploadAgain':_0x2d5725(0x1fa)}};function _0x5581(_0x274577,_0x1ab547){_0x274577=_0x274577-0x1e9;const _0x4ce31a=_0x4ce3();let _0x558143=_0x4ce31a[_0x274577];return _0x558143;}function _0x4ce3(){const _0x58b1d4=['再次上傳','10615190WLZFnJ','未知錯誤','下載成功','{0}個檔案上傳成功','435660ljpbWQ','資料流過大','704jGlOOc','6478698FKJOsx','1794790gjqyxu','請稍等...','425044hGHTjB','網路異常','9iRXfmc','檔案上傳成功','535179iAYRMv','下載中','4fpixsU','7rELtut','208272pibldH','432hfjyBc'];_0x4ce3=function(){return _0x58b1d4;};return _0x4ce3();}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 _0x38b9(_0x374d71,_0x28e82a){_0x374d71=_0x374d71-0xde;const _0x43b1a4=_0x43b1();let _0x38b9f8=_0x43b1a4[_0x374d71];return _0x38b9f8;}function _0x43b1(){const _0x4603fd=['9770625EWjMXi','exportXLSXByUnitIdAsync','330AuJpUW','function','8141416fILppo','importPPTXToSnapshotAsync','@univerjs/core/facade','4PRLTkH','IExchangeService','exportPPTXBySnapshot','@univerjs-pro/exchange-client','importDOCXToSnapshotAsync','importXLSXToUnitIdAsync','importFileToUnitId','exportXLSXByUnitId','The\x20exchange\x20service\x20is\x20not\x20available','UniverCore','get','exportPPTXBySnapshotAsync','exportDOCXBySnapshotAsync','amd','exportPPTXByUnitIdAsync','UNIVER_SHEET','150JlGGSB','@univerjs/core','UniverInstanceType','FUniver','UniverCoreFacade','36386590PzUyiF','148421BKofVo','importPPTXToSnapshot','exportPPTXByUnitId','importDOCXToUnitIdAsync','4579685YDpONv','_injector','4111248iwqpyG','7937MIjaWs','object','UNIVER_DOC','exportDOCXByUnitIdAsync'];_0x43b1=function(){return _0x4603fd;};return _0x43b1();}(function(_0x3db342,_0xa02892){const _0x88e45=_0x38b9,_0x484da0=_0x3db342();while(!![]){try{const _0x340e37=parseInt(_0x88e45(0xf9))/0x1*(parseInt(_0x88e45(0xff))/0x2)+parseInt(_0x88e45(0xf8))/0x3+-parseInt(_0x88e45(0x104))/0x4*(parseInt(_0x88e45(0xf6))/0x5)+parseInt(_0x88e45(0xec))/0x6*(parseInt(_0x88e45(0xf2))/0x7)+parseInt(_0x88e45(0x101))/0x8+parseInt(_0x88e45(0xfd))/0x9+-parseInt(_0x88e45(0xf1))/0xa;if(_0x340e37===_0xa02892)break;else _0x484da0['push'](_0x484da0['shift']());}catch(_0x41663b){_0x484da0['push'](_0x484da0['shift']());}}}(_0x43b1,0xb9412),function(_0x139550,_0x87a04d){const _0x4223de=_0x38b9;typeof exports==_0x4223de(0xfa)&&typeof module<'u'?_0x87a04d(require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x4223de(0x100)&&define[_0x4223de(0xe9)]?define([_0x4223de(0xdf),_0x4223de(0xed),_0x4223de(0x103)],_0x87a04d):(_0x139550=typeof globalThis<'u'?globalThis:_0x139550||self,_0x87a04d(_0x139550['UniverProExchangeClient'],_0x139550[_0x4223de(0xe5)],_0x139550[_0x4223de(0xf0)]));}(this,function(_0x2f3a3c,_0x3612dd,_0x1b9d3f){const _0x4b3206=_0x38b9;var _0x377d07=class extends _0x1b9d3f[_0x4b3206(0xef)]{async[_0x4b3206(0xe1)](_0x3086be){const _0x5c6083=_0x4b3206;let _0x53dc9f=this[_0x5c6083(0xf7)][_0x5c6083(0xe6)](_0x2f3a3c[_0x5c6083(0x105)]);if(!_0x53dc9f)throw Error(_0x5c6083(0xe4));return _0x53dc9f[_0x5c6083(0xe2)](_0x3086be,_0x3612dd['UniverInstanceType'][_0x5c6083(0xeb)]);}async['importXLSXToSnapshotAsync'](_0x1e1667){const _0x3958c0=_0x4b3206;let _0x295830=this['_injector'][_0x3958c0(0xe6)](_0x2f3a3c[_0x3958c0(0x105)]);if(!_0x295830)throw Error(_0x3958c0(0xe4));return _0x295830['importXLSXToSnapshot'](_0x1e1667);}async[_0x4b3206(0xfe)](_0x5799ae){const _0x5967f2=_0x4b3206;let _0x538594=this[_0x5967f2(0xf7)]['get'](_0x2f3a3c[_0x5967f2(0x105)]);if(!_0x538594)throw Error(_0x5967f2(0xe4));return _0x538594[_0x5967f2(0xe3)](_0x5799ae);}async['exportXLSXBySnapshotAsync'](_0x4fa27b){let _0xc72827=this['_injector']['get'](_0x2f3a3c['IExchangeService']);if(!_0xc72827)throw Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0xc72827['exportXLSXBySnapshot'](_0x4fa27b);}async[_0x4b3206(0xf5)](_0x43de2a){const _0x47a1d5=_0x4b3206;let _0x1e57b3=this['_injector'][_0x47a1d5(0xe6)](_0x2f3a3c['IExchangeService']);if(!_0x1e57b3)throw Error(_0x47a1d5(0xe4));return _0x1e57b3[_0x47a1d5(0xe2)](_0x43de2a,_0x3612dd[_0x47a1d5(0xee)][_0x47a1d5(0xfb)]);}async[_0x4b3206(0xe0)](_0x1fef2f){const _0x537654=_0x4b3206;let _0x570198=this[_0x537654(0xf7)][_0x537654(0xe6)](_0x2f3a3c[_0x537654(0x105)]);if(!_0x570198)throw Error(_0x537654(0xe4));return _0x570198['importDOCXToSnapshot'](_0x1fef2f);}async[_0x4b3206(0xe8)](_0x27baa9){const _0x5629da=_0x4b3206;let _0x4521a6=this[_0x5629da(0xf7)]['get'](_0x2f3a3c[_0x5629da(0x105)]);if(!_0x4521a6)throw Error(_0x5629da(0xe4));return _0x4521a6['exportDOCXBySnapshot'](_0x27baa9);}async[_0x4b3206(0xfc)](_0x6a216f){const _0x1713ae=_0x4b3206;let _0x5624d1=this[_0x1713ae(0xf7)][_0x1713ae(0xe6)](_0x2f3a3c[_0x1713ae(0x105)]);if(!_0x5624d1)throw Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x5624d1['exportDOCXByUnitId'](_0x6a216f);}async['importPPTXToUnitIdAsync'](_0xf033ad){const _0x2322c8=_0x4b3206;let _0x5cc819=this[_0x2322c8(0xf7)][_0x2322c8(0xe6)](_0x2f3a3c[_0x2322c8(0x105)]);if(!_0x5cc819)throw Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x5cc819[_0x2322c8(0xe2)](_0xf033ad,_0x3612dd['UniverInstanceType']['UNIVER_SLIDE']);}async[_0x4b3206(0x102)](_0x283b90){const _0x28552b=_0x4b3206;let _0x4a4f26=this['_injector'][_0x28552b(0xe6)](_0x2f3a3c['IExchangeService']);if(!_0x4a4f26)throw Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x4a4f26[_0x28552b(0xf3)](_0x283b90);}async[_0x4b3206(0xea)](_0x4f7de5){const _0x19a347=_0x4b3206;let _0x295777=this[_0x19a347(0xf7)][_0x19a347(0xe6)](_0x2f3a3c[_0x19a347(0x105)]);if(!_0x295777)throw Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x295777[_0x19a347(0xf4)](_0x4f7de5);}async[_0x4b3206(0xe7)](_0x85c578){const _0x34a1dc=_0x4b3206;let _0x3f0fff=this[_0x34a1dc(0xf7)][_0x34a1dc(0xe6)](_0x2f3a3c['IExchangeService']);if(!_0x3f0fff)throw Error(_0x34a1dc(0xe4));return _0x3f0fff[_0x34a1dc(0xde)](_0x85c578);}};_0x1b9d3f[_0x4b3206(0xef)]['extend'](_0x377d07);}));
|