@univerjs-pro/exchange-client 0.6.10-experimental.20250411-055c47d → 0.6.10-experimental.20250418-8830bd4
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/fr-FR.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/fr-FR.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/facade.js +1 -1
- package/lib/index.js +2 -2
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/controllers/config.schema.d.ts +5 -0
- package/lib/types/services/exchange.service.d.ts +3 -1
- package/lib/types/services/request.service.d.ts +4 -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/fr-FR.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 +14 -9
package/lib/locale/en-US.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0x1ac4(){const _0xd48b2a=['File','346682mlkzbE','Uploading','910374yBVLSL','2904820ewkLHh','88fIeqjl','1136356hALILZ','5NMDfYd','Cancel','Network\x20error','Data\x20is\x20too\x20large','6268239JqcFbZ','Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','Unknown\x20mistake','252LHlGgs','21198yrXHvq','Download\x20success','{0}\x20file(s)\x20uploaded\x20successfully','307560RdxYmy'];_0x1ac4=function(){return _0xd48b2a;};return _0x1ac4();}function _0x4df1(_0x4a440f,_0x42d72b){const _0x1ac4fe=_0x1ac4();return _0x4df1=function(_0x4df192,_0x4f48e5){_0x4df192=_0x4df192-0x13b;let _0x4faf16=_0x1ac4fe[_0x4df192];return _0x4faf16;},_0x4df1(_0x4a440f,_0x42d72b);}const _0x34ee1c=_0x4df1;(function(_0xe609d8,_0x236dde){const _0x464263=_0x4df1,_0x3b43b1=_0xe609d8();while(!![]){try{const _0x2b37c8=parseInt(_0x464263(0x13f))/0x1+parseInt(_0x464263(0x146))/0x2+-parseInt(_0x464263(0x13c))/0x3*(parseInt(_0x464263(0x13b))/0x4)+-parseInt(_0x464263(0x147))/0x5*(parseInt(_0x464263(0x143))/0x6)+parseInt(_0x464263(0x141))/0x7*(parseInt(_0x464263(0x145))/0x8)+-parseInt(_0x464263(0x14b))/0x9+parseInt(_0x464263(0x144))/0xa;if(_0x2b37c8===_0x236dde)break;else _0x3b43b1['push'](_0x3b43b1['shift']());}catch(_0x145598){_0x3b43b1['push'](_0x3b43b1['shift']());}}}(_0x1ac4,0x65f70));const e={'exchange':{'file':_0x34ee1c(0x140),'upload':'Open(File)','download':'Save\x20As','uploading':_0x34ee1c(0x142),'uploadSuccess':'File\x20uploaded\x20successfully','uploadSuccessTip':_0x34ee1c(0x13e),'downloading':'Downloading','downloadSuccess':_0x34ee1c(0x13d),'unknownMistake':_0x34ee1c(0x14d),'networkError':_0x34ee1c(0x149),'tooLarge':_0x34ee1c(0x14a),'internalError':'Internal\x20unknown\x20error','interrupt':'The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','fileTypeError':_0x34ee1c(0x14c),'wait':'Please\x20wait...','cancel':_0x34ee1c(0x148),'uploadAgain':'Upload\x20again'}};export{e as default};
|
package/lib/locale/fa-IR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x1aeffd=_0x1f48;(function(_0x5cc385,_0x523a9f){const _0x5abd5d=_0x1f48,_0x4f487f=_0x5cc385();while(!![]){try{const _0x5d0be0=-parseInt(_0x5abd5d(0x190))/0x1+parseInt(_0x5abd5d(0x187))/0x2*(parseInt(_0x5abd5d(0x182))/0x3)+-parseInt(_0x5abd5d(0x18b))/0x4+-parseInt(_0x5abd5d(0x185))/0x5*(parseInt(_0x5abd5d(0x18f))/0x6)+parseInt(_0x5abd5d(0x189))/0x7+parseInt(_0x5abd5d(0x18c))/0x8+parseInt(_0x5abd5d(0x193))/0x9;if(_0x5d0be0===_0x523a9f)break;else _0x4f487f['push'](_0x4f487f['shift']());}catch(_0x45df46){_0x4f487f['push'](_0x4f487f['shift']());}}}(_0x1b5c,0x6e268));function _0x1f48(_0x23b71a,_0x21ed8d){const _0x1b5cdf=_0x1b5c();return _0x1f48=function(_0x1f486e,_0x3812a4){_0x1f486e=_0x1f486e-0x17e;let _0x35bd55=_0x1b5cdf[_0x1f486e];return _0x35bd55;},_0x1f48(_0x23b71a,_0x21ed8d);}function _0x1b5c(){const _0x2f9f88=['455lNXdNe','خطای\x20ناشناخته','723742niUMwY','داده\x20خیلی\x20بزرگ\x20است','3985786msieeV','در\x20حال\x20دانلود','3379764TUIEES','5674232EqQYjw','بازکردن(فایل)','خطای\x20داخلی\x20ناشناخته','58866oqPyoB','703315fWefdA','خطای\x20شبکه','{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','11265165mcdzto','فایل','اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','بارگذاری\x20مجدد','فایل\x20انتخاب\x20شده\x20[{0}]\x20برای\x20بارگذاری\x20پشتیبانی\x20نمیشود','ذخیره\x20به\x20عنوان','3GIgYVe','لطفا\x20صبر\x20کنید...','فایل\x20با\x20موفقیت\x20بارگذاری\x20شد'];_0x1b5c=function(){return _0x2f9f88;};return _0x1b5c();}const o={'exchange':{'file':_0x1aeffd(0x194),'upload':_0x1aeffd(0x18d),'download':_0x1aeffd(0x181),'uploading':'در\x20حال\x20بارگذاری','uploadSuccess':_0x1aeffd(0x184),'uploadSuccessTip':_0x1aeffd(0x192),'downloading':_0x1aeffd(0x18a),'downloadSuccess':'دانلود\x20موفقیت\x20آمیز','unknownMistake':_0x1aeffd(0x186),'networkError':_0x1aeffd(0x191),'tooLarge':_0x1aeffd(0x188),'internalError':_0x1aeffd(0x18e),'interrupt':_0x1aeffd(0x17e),'fileTypeError':_0x1aeffd(0x180),'wait':_0x1aeffd(0x183),'cancel':'لغو','uploadAgain':_0x1aeffd(0x17f)}};export{o as default};
|
package/lib/locale/fr-FR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
function _0x5a7d(_0x4e9f83,_0x33e7a7){const _0x4a0ba7=_0x4a0b();return _0x5a7d=function(_0x5a7de9,_0x4921eb){_0x5a7de9=_0x5a7de9-0xc8;let _0x172b39=_0x4a0ba7[_0x5a7de9];return _0x172b39;},_0x5a7d(_0x4e9f83,_0x33e7a7);}const _0x228e4f=_0x5a7d;function _0x4a0b(){const _0x2264ca=['126nUjOwX','1334610kODMqP','Téléchargement\x20en\x20cours','53313PMLZas','12MuGwFH','Ouvrir\x20(Fichier)','Enregistrer\x20sous','Erreur\x20inconnue','Fichier','1100320SAFvty','981NjovUL','Les\x20données\x20sont\x20trop\x20volumineuses','Téléchargement','Erreur\x20réseau','8xKvsDV','Fichier\x20téléchargé\x20avec\x20succès','La\x20connexion\x20réseau\x20a\x20été\x20interrompue\x20et\x20le\x20téléchargement\x20du\x20fichier\x20a\x20échoué','29287434xSbVJP','6126830GfNTDQ','35LGLfxe','Le\x20fichier\x20sélectionné\x20[{0}]\x20n\x27est\x20pas\x20pris\x20en\x20charge\x20pour\x20le\x20téléchargement','Veuillez\x20patienter...','{0}\x20fichier(s)\x20téléchargé(s)\x20avec\x20succès','596420cgrtXi','10480kEpDrI','Annuler'];_0x4a0b=function(){return _0x2264ca;};return _0x4a0b();}(function(_0x1b2474,_0x41830a){const _0x4e896f=_0x5a7d,_0x2b148a=_0x1b2474();while(!![]){try{const _0xaca2c9=parseInt(_0x4e896f(0xd7))/0x1+parseInt(_0x4e896f(0xda))/0x2*(-parseInt(_0x4e896f(0xdd))/0x3)+-parseInt(_0x4e896f(0xce))/0x4*(-parseInt(_0x4e896f(0xc9))/0x5)+parseInt(_0x4e896f(0xdb))/0x6*(-parseInt(_0x4e896f(0xd3))/0x7)+-parseInt(_0x4e896f(0xd8))/0x8*(parseInt(_0x4e896f(0xca))/0x9)+-parseInt(_0x4e896f(0xd2))/0xa+-parseInt(_0x4e896f(0xd1))/0xb*(-parseInt(_0x4e896f(0xde))/0xc);if(_0xaca2c9===_0x41830a)break;else _0x2b148a['push'](_0x2b148a['shift']());}catch(_0x5cbc00){_0x2b148a['push'](_0x2b148a['shift']());}}}(_0x4a0b,0xadc8d));const e={'exchange':{'file':_0x228e4f(0xc8),'upload':_0x228e4f(0xdf),'download':_0x228e4f(0xe0),'uploading':_0x228e4f(0xdc),'uploadSuccess':_0x228e4f(0xcf),'uploadSuccessTip':_0x228e4f(0xd6),'downloading':_0x228e4f(0xcc),'downloadSuccess':'Téléchargement\x20réussi','unknownMistake':_0x228e4f(0xe1),'networkError':_0x228e4f(0xcd),'tooLarge':_0x228e4f(0xcb),'internalError':'Erreur\x20interne\x20inconnue','interrupt':_0x228e4f(0xd0),'fileTypeError':_0x228e4f(0xd4),'wait':_0x228e4f(0xd5),'cancel':_0x228e4f(0xd9),'uploadAgain':'Télécharger\x20à\x20nouveau'}};export{e as default};
|
package/lib/locale/ru-RU.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x5b58de=_0x6b35;function _0xbd05(){const _0x1bc927=['Неизвестная\x20ошибка','63wsYfOR','Загрузка','4071876sERWQQ','1068orTXzk','Файл\x20успешно\x20загружен','Файл','3649349hdBLpK','Открыть(Файл)','8wsxZps','927OIgEzA','Внутренняя\x20неизвестная\x20ошибка','Сохранить\x20как','5575iiNfbK','99018DqMZRS','Отмена','10ZTDxvk','1012IqeRBa','13EPehXQ','289530JJVOOw','Скачивание\x20успешно','{0}\x20файл(ов)\x20успешно\x20загружен(о)','468981LlkXRr','Пожалуйста,\x20подождите...','Данные\x20слишком\x20большие','Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','Сетевая\x20ошибка'];_0xbd05=function(){return _0x1bc927;};return _0xbd05();}(function(_0x197231,_0x4ce16d){const _0x2e2f0a=_0x6b35,_0x5ea135=_0x197231();while(!![]){try{const _0xf83a9=parseInt(_0x2e2f0a(0x1c1))/0x1+parseInt(_0x2e2f0a(0x1cd))/0x2*(parseInt(_0x2e2f0a(0x1b8))/0x3)+parseInt(_0x2e2f0a(0x1bf))/0x4*(-parseInt(_0x2e2f0a(0x1bb))/0x5)+parseInt(_0x2e2f0a(0x1bc))/0x6*(parseInt(_0x2e2f0a(0x1ca))/0x7)+parseInt(_0x2e2f0a(0x1b7))/0x8*(-parseInt(_0x2e2f0a(0x1c4))/0x9)+parseInt(_0x2e2f0a(0x1be))/0xa*(-parseInt(_0x2e2f0a(0x1b5))/0xb)+parseInt(_0x2e2f0a(0x1cc))/0xc*(parseInt(_0x2e2f0a(0x1c0))/0xd);if(_0xf83a9===_0x4ce16d)break;else _0x5ea135['push'](_0x5ea135['shift']());}catch(_0x16196b){_0x5ea135['push'](_0x5ea135['shift']());}}}(_0xbd05,0x437c7));const o={'exchange':{'file':_0x5b58de(0x1cf),'upload':_0x5b58de(0x1b6),'download':_0x5b58de(0x1ba),'uploading':_0x5b58de(0x1cb),'uploadSuccess':_0x5b58de(0x1ce),'uploadSuccessTip':_0x5b58de(0x1c3),'downloading':'Скачивание','downloadSuccess':_0x5b58de(0x1c2),'unknownMistake':_0x5b58de(0x1c9),'networkError':_0x5b58de(0x1c8),'tooLarge':_0x5b58de(0x1c6),'internalError':_0x5b58de(0x1b9),'interrupt':_0x5b58de(0x1c7),'fileTypeError':'Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','wait':_0x5b58de(0x1c5),'cancel':_0x5b58de(0x1bd),'uploadAgain':'Загрузить\x20снова'}};function _0x6b35(_0x54fd41,_0x2eb922){const _0xbd05cb=_0xbd05();return _0x6b35=function(_0x6b3572,_0x3ebb6f){_0x6b3572=_0x6b3572-0x1b5;let _0x5250cf=_0xbd05cb[_0x6b3572];return _0x5250cf;},_0x6b35(_0x54fd41,_0x2eb922);}export{o as default};
|
package/lib/locale/vi-VN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
function _0x2ddf(_0x3a9eb9,_0x279a90){const _0x4bdc3c=_0x4bdc();return _0x2ddf=function(_0x2ddf24,_0x11e1a6){_0x2ddf24=_0x2ddf24-0x1e8;let _0x3ba2a4=_0x4bdc3c[_0x2ddf24];return _0x3ba2a4;},_0x2ddf(_0x3a9eb9,_0x279a90);}const _0x420b82=_0x2ddf;(function(_0x4a5e06,_0x49917b){const _0x22231c=_0x2ddf,_0x48de5c=_0x4a5e06();while(!![]){try{const _0x2d9bcb=parseInt(_0x22231c(0x1fc))/0x1*(-parseInt(_0x22231c(0x1f4))/0x2)+parseInt(_0x22231c(0x1f5))/0x3+parseInt(_0x22231c(0x1f9))/0x4+-parseInt(_0x22231c(0x1f7))/0x5*(-parseInt(_0x22231c(0x1f1))/0x6)+-parseInt(_0x22231c(0x1ee))/0x7+parseInt(_0x22231c(0x1ed))/0x8+-parseInt(_0x22231c(0x1e8))/0x9*(-parseInt(_0x22231c(0x1fa))/0xa);if(_0x2d9bcb===_0x49917b)break;else _0x48de5c['push'](_0x48de5c['shift']());}catch(_0x1d4d35){_0x48de5c['push'](_0x48de5c['shift']());}}}(_0x4bdc,0x69121));const n={'exchange':{'file':_0x420b82(0x1e9),'upload':_0x420b82(0x1f6),'download':'Lưu\x20dưới\x20dạng','uploading':_0x420b82(0x1eb),'uploadSuccess':_0x420b82(0x1ea),'uploadSuccessTip':_0x420b82(0x1f0),'downloading':'Đang\x20tải\x20xuống','downloadSuccess':_0x420b82(0x1ef),'unknownMistake':'Lỗi\x20không\x20xác\x20định','networkError':_0x420b82(0x1fb),'tooLarge':_0x420b82(0x1ec),'internalError':_0x420b82(0x1f3),'interrupt':'Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','fileTypeError':_0x420b82(0x1f2),'wait':_0x420b82(0x1f8),'cancel':'Hủy\x20bỏ','uploadAgain':'Tải\x20lên\x20lại'}};export{n as default};function _0x4bdc(){const _0x10296a=['201762KxbAMF','Tệp','Tải\x20lên\x20tệp\x20thành\x20công','Đang\x20tải\x20lên','Luồng\x20dữ\x20liệu\x20quá\x20lớn','3123120jGJyjB','5998972ubMufh','Tải\x20xuống\x20thành\x20công','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','1775622FODAdN','Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','Lỗi\x20không\x20xác\x20định\x20bên\x20trong','1295632bJhpwk','1397973OkPfBI','Mở\x20(Tệp)','5JPBUMS','Vui\x20lòng\x20đợi...','2952108OfMSyL','20vaEcWs','Lỗi\x20mạng','1TiBrPK'];_0x4bdc=function(){return _0x10296a;};return _0x4bdc();}
|
package/lib/locale/zh-CN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0x5071(_0x10d242,_0x538edf){const _0x567c31=_0x567c();return _0x5071=function(_0x507117,_0x207440){_0x507117=_0x507117-0x1d5;let _0x19a951=_0x567c31[_0x507117];return _0x19a951;},_0x5071(_0x10d242,_0x538edf);}const _0x261d7a=_0x5071;function _0x567c(){const _0x8baaf7=['请稍等...','未知错误','8612730mRJOCw','6219063BMQgCB','28NWgiQe','1837148CFpHLO','另存为','内部未知错误','412194aXkZQS','文件上传成功','41393feeOhU','8pWXDwa','下载成功','网络异常','85250sBtsCN','所选文件\x20[{0}]\x20不支持上传','上传中','{0}个文件上传成功','2231220RlpjAW','下载中','再次上传','15BmcitP'];_0x567c=function(){return _0x8baaf7;};return _0x567c();}(function(_0x199814,_0x648683){const _0x466ca7=_0x5071,_0x352da7=_0x199814();while(!![]){try{const _0x311d3e=parseInt(_0x466ca7(0x1dd))/0x1+parseInt(_0x466ca7(0x1e1))/0x2*(parseInt(_0x466ca7(0x1e8))/0x3)+-parseInt(_0x466ca7(0x1d8))/0x4+parseInt(_0x466ca7(0x1e5))/0x5+-parseInt(_0x466ca7(0x1db))/0x6*(-parseInt(_0x466ca7(0x1d7))/0x7)+-parseInt(_0x466ca7(0x1de))/0x8*(-parseInt(_0x466ca7(0x1d6))/0x9)+-parseInt(_0x466ca7(0x1d5))/0xa;if(_0x311d3e===_0x648683)break;else _0x352da7['push'](_0x352da7['shift']());}catch(_0x4d9b76){_0x352da7['push'](_0x352da7['shift']());}}}(_0x567c,0x54795));const o={'exchange':{'file':'文件','upload':'打开(文件)','download':_0x261d7a(0x1d9),'uploading':_0x261d7a(0x1e3),'uploadSuccess':_0x261d7a(0x1dc),'uploadSuccessTip':_0x261d7a(0x1e4),'downloading':_0x261d7a(0x1e6),'downloadSuccess':_0x261d7a(0x1df),'unknownMistake':_0x261d7a(0x1ea),'networkError':_0x261d7a(0x1e0),'tooLarge':'数据流过大','internalError':_0x261d7a(0x1da),'interrupt':'网络连接中断,文件上传失败','fileTypeError':_0x261d7a(0x1e2),'wait':_0x261d7a(0x1e9),'cancel':'取消','uploadAgain':_0x261d7a(0x1e7)}};export{o as default};
|
package/lib/locale/zh-TW.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x33b202=_0x5291;(function(_0x57abc1,_0x129de2){const _0x4c9150=_0x5291,_0x349546=_0x57abc1();while(!![]){try{const _0x27f5ff=-parseInt(_0x4c9150(0x85))/0x1*(-parseInt(_0x4c9150(0x8b))/0x2)+-parseInt(_0x4c9150(0x8e))/0x3*(-parseInt(_0x4c9150(0x8d))/0x4)+-parseInt(_0x4c9150(0x87))/0x5+-parseInt(_0x4c9150(0x7c))/0x6*(-parseInt(_0x4c9150(0x90))/0x7)+parseInt(_0x4c9150(0x82))/0x8*(-parseInt(_0x4c9150(0x84))/0x9)+parseInt(_0x4c9150(0x83))/0xa+-parseInt(_0x4c9150(0x8f))/0xb;if(_0x27f5ff===_0x129de2)break;else _0x349546['push'](_0x349546['shift']());}catch(_0xfa5458){_0x349546['push'](_0x349546['shift']());}}}(_0x17cc,0xdea1b));function _0x17cc(){const _0x2f79f2=['6471160oYEoYT','18ijTBoN','989lQtnIx','網路異常','3960720fVzVkH','未知錯誤','再次上傳','{0}個檔案上傳成功','1138WYIExU','開啟(檔案)','5181896VMATwx','3jVuxYK','23074843bVAMyS','3920847thfrMh','資料流過大','下載成功','18ZmHtdh','另存為','內部未知錯誤','所選檔案\x20[{0}]\x20不支援上傳','上傳中','網路連線中斷,檔案上傳失敗','1535752xpPhRW'];_0x17cc=function(){return _0x2f79f2;};return _0x17cc();}const o={'exchange':{'file':'檔案','upload':_0x33b202(0x8c),'download':_0x33b202(0x7d),'uploading':_0x33b202(0x80),'uploadSuccess':'檔案上傳成功','uploadSuccessTip':_0x33b202(0x8a),'downloading':'下載中','downloadSuccess':_0x33b202(0x92),'unknownMistake':_0x33b202(0x88),'networkError':_0x33b202(0x86),'tooLarge':_0x33b202(0x91),'internalError':_0x33b202(0x7e),'interrupt':_0x33b202(0x81),'fileTypeError':_0x33b202(0x7f),'wait':'請稍等...','cancel':'取消','uploadAgain':_0x33b202(0x89)}};function _0x5291(_0x50b498,_0x3c3205){const _0x17ccc7=_0x17cc();return _0x5291=function(_0x529193,_0x2d6490){_0x529193=_0x529193-0x7c;let _0xcab192=_0x17ccc7[_0x529193];return _0xcab192;},_0x5291(_0x50b498,_0x3c3205);}export{o as default};
|
@@ -1,5 +1,9 @@
|
|
1
1
|
export declare const EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY = "exchange-client.config";
|
2
2
|
export declare const configSymbol: unique symbol;
|
3
|
+
export interface IUniverExchangeClientOptions {
|
4
|
+
minSheetRowCount?: number;
|
5
|
+
minSheetColumnCount?: number;
|
6
|
+
}
|
3
7
|
export interface IUniverExchangeClientConfig {
|
4
8
|
/**
|
5
9
|
* The URL of the endpoint for downloading files.
|
@@ -12,5 +16,6 @@ export interface IUniverExchangeClientConfig {
|
|
12
16
|
getTaskServerUrl?: string;
|
13
17
|
signUrlServerUrl?: string;
|
14
18
|
maxTimeoutTime?: number;
|
19
|
+
options?: IUniverExchangeClientOptions;
|
15
20
|
}
|
16
21
|
export declare const defaultPluginConfig: IUniverExchangeClientConfig;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { IDisposable, IDocumentData, IWorkbookData, Disposable, IConfigService } from '@univerjs/core';
|
2
2
|
import { IError, UniverType } from '@univerjs/protocol';
|
3
|
-
import { RequestService } from './request.service';
|
4
3
|
import { Observable } from 'rxjs';
|
4
|
+
import { RequestService } from './request.service';
|
5
5
|
export declare enum RequestState {
|
6
6
|
UPLOAD = 0,
|
7
7
|
IMPORT = 1,
|
@@ -84,4 +84,6 @@ export declare class ExchangeService extends Disposable implements IExchangeServ
|
|
84
84
|
private _import;
|
85
85
|
private _signUrl;
|
86
86
|
private _getDownloadEndpointURL;
|
87
|
+
private _getMinSheetRowCount;
|
88
|
+
private _getMinSheetColumnCount;
|
87
89
|
}
|
@@ -30,6 +30,8 @@ export interface IImportRequest {
|
|
30
30
|
outputType: ImportOutputType;
|
31
31
|
/** not supported yet */
|
32
32
|
fileUrl: string;
|
33
|
+
minSheetColumnCount: number;
|
34
|
+
minSheetRowCount: number;
|
33
35
|
}
|
34
36
|
export interface IImportResponse {
|
35
37
|
taskID: string;
|
@@ -79,6 +81,7 @@ export interface IRequestService {
|
|
79
81
|
export(exportRequest: IExportRequest): Promise<IExportResponse | undefined>;
|
80
82
|
getTask(taskID: string): Promise<IGetTaskResponse | undefined>;
|
81
83
|
signUrl(fileID: string): Promise<ISignUrlResponse | undefined>;
|
84
|
+
getTextFromUrl(url: string): Promise<string | undefined>;
|
82
85
|
}
|
83
86
|
export declare const IRequestService: import('@wendellhu/redi').IdentifierDecorator<IRequestService>;
|
84
87
|
/**
|
@@ -98,6 +101,7 @@ export declare class RequestService implements IRequestService, IDisposable {
|
|
98
101
|
export(exportRequest: IExportRequest): Promise<IExportResponse | undefined>;
|
99
102
|
getTask(taskID: string): Promise<IGetTaskResponse | undefined>;
|
100
103
|
signUrl(fileID: string): Promise<ISignUrlResponse | undefined>;
|
104
|
+
getTextFromUrl(url: string): Promise<string | undefined>;
|
101
105
|
private _getUploadFileURL;
|
102
106
|
private _getImportURL;
|
103
107
|
private _getExportURL;
|
package/lib/umd/facade.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
(function(
|
1
|
+
function _0x410f(_0x3a1dcf,_0x9a156a){const _0x5e0e20=_0x5e0e();return _0x410f=function(_0x410f70,_0x1d5284){_0x410f70=_0x410f70-0x149;let _0x5d8d6b=_0x5e0e20[_0x410f70];return _0x5d8d6b;},_0x410f(_0x3a1dcf,_0x9a156a);}(function(_0x2a331e,_0xd3033e){const _0x3ad6d2=_0x410f,_0x2160f5=_0x2a331e();while(!![]){try{const _0x548735=parseInt(_0x3ad6d2(0x164))/0x1+parseInt(_0x3ad6d2(0x15b))/0x2*(parseInt(_0x3ad6d2(0x158))/0x3)+-parseInt(_0x3ad6d2(0x167))/0x4*(parseInt(_0x3ad6d2(0x150))/0x5)+-parseInt(_0x3ad6d2(0x156))/0x6+-parseInt(_0x3ad6d2(0x15e))/0x7*(-parseInt(_0x3ad6d2(0x159))/0x8)+-parseInt(_0x3ad6d2(0x160))/0x9+-parseInt(_0x3ad6d2(0x16b))/0xa*(parseInt(_0x3ad6d2(0x15d))/0xb);if(_0x548735===_0xd3033e)break;else _0x2160f5['push'](_0x2160f5['shift']());}catch(_0x18dc6c){_0x2160f5['push'](_0x2160f5['shift']());}}}(_0x5e0e,0x8a67d),function(_0x462087,_0x4faac0){const _0x4e8033=_0x410f;typeof exports==_0x4e8033(0x169)&&typeof module<'u'?_0x4faac0(require('@univerjs-pro/exchange-client'),require('@univerjs/core/facade')):typeof define==_0x4e8033(0x15f)&&define[_0x4e8033(0x16c)]?define([_0x4e8033(0x14c),'@univerjs/core/facade'],_0x4faac0):(_0x462087=typeof globalThis<'u'?globalThis:_0x462087||self,_0x4faac0(_0x462087[_0x4e8033(0x170)],_0x462087[_0x4e8033(0x166)]));}(this,function(_0x47ec5e,_0x14960f){'use strict';const _0x2a4749=_0x410f;var _0x18b009=(_0x2be9a4=>(_0x2be9a4[_0x2be9a4[_0x2a4749(0x168)]=0x0]=_0x2a4749(0x168),_0x2be9a4[_0x2be9a4[_0x2a4749(0x14a)]=0x1]=_0x2a4749(0x14a),_0x2be9a4[_0x2be9a4[_0x2a4749(0x162)]=0x2]='UNIVER_SHEET',_0x2be9a4[_0x2be9a4['UNIVER_SLIDE']=0x3]=_0x2a4749(0x16d),_0x2be9a4[_0x2be9a4['UNIVER_PROJECT']=0x4]=_0x2a4749(0x16f),_0x2be9a4[_0x2be9a4[_0x2a4749(0x15c)]=-0x1]=_0x2a4749(0x15c),_0x2be9a4))(_0x18b009||{});class _0x30640a extends _0x14960f[_0x2a4749(0x14d)]{async['importXLSXToUnitId'](_0x6e0e06){const _0x353c35=_0x2a4749;return this[_0x353c35(0x163)](_0x6e0e06);}async['importXLSXToUnitIdAsync'](_0x1c87b4){const _0x232087=_0x2a4749,_0x23b54f=this[_0x232087(0x165)][_0x232087(0x154)](_0x47ec5e[_0x232087(0x14f)]);if(!_0x23b54f)throw new Error(_0x232087(0x152));return _0x23b54f[_0x232087(0x157)](_0x1c87b4,_0x18b009['UNIVER_SHEET']);}async['importXLSXToSnapshot'](_0x44c08f){const _0x4028a4=_0x2a4749;return this[_0x4028a4(0x14e)](_0x44c08f);}async[_0x2a4749(0x14e)](_0x3619d4){const _0x1c4067=_0x2a4749,_0x5028f2=this[_0x1c4067(0x165)]['get'](_0x47ec5e[_0x1c4067(0x14f)]);if(!_0x5028f2)throw new Error(_0x1c4067(0x152));return _0x5028f2[_0x1c4067(0x155)](_0x3619d4);}async[_0x2a4749(0x149)](_0x5d0131){const _0x2d23d3=_0x2a4749;return this[_0x2d23d3(0x161)](_0x5d0131);}async['exportXLSXByUnitIdAsync'](_0x59e65b){const _0x2903d1=_0x2a4749,_0x581984=this[_0x2903d1(0x165)][_0x2903d1(0x154)](_0x47ec5e[_0x2903d1(0x14f)]);if(!_0x581984)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x581984[_0x2903d1(0x149)](_0x59e65b);}async['exportXLSXBySnapshot'](_0x50d2da){const _0x1e347d=_0x2a4749;return this[_0x1e347d(0x16e)](_0x50d2da);}async['exportXLSXBySnapshotAsync'](_0x3700ed){const _0x589426=_0x2a4749,_0x24a0bd=this[_0x589426(0x165)][_0x589426(0x154)](_0x47ec5e[_0x589426(0x14f)]);if(!_0x24a0bd)throw new Error(_0x589426(0x152));return _0x24a0bd[_0x589426(0x15a)](_0x3700ed);}async[_0x2a4749(0x151)](_0x471b88){const _0x209dbb=_0x2a4749;return this[_0x209dbb(0x16a)](_0x471b88);}async[_0x2a4749(0x16a)](_0x44cdae){const _0x4fe375=_0x2a4749,_0x48bae9=this['_injector'][_0x4fe375(0x154)](_0x47ec5e[_0x4fe375(0x14f)]);if(!_0x48bae9)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x48bae9[_0x4fe375(0x157)](_0x44cdae,_0x18b009[_0x4fe375(0x14a)]);}async[_0x2a4749(0x171)](_0x36070a){return this['importDOCXToSnapshotAsync'](_0x36070a);}async[_0x2a4749(0x153)](_0x2d707e){const _0x1de2fd=_0x2a4749,_0x11ae52=this[_0x1de2fd(0x165)][_0x1de2fd(0x154)](_0x47ec5e['IExchangeService']);if(!_0x11ae52)throw new Error(_0x1de2fd(0x152));return _0x11ae52[_0x1de2fd(0x171)](_0x2d707e);}}_0x14960f[_0x2a4749(0x14d)][_0x2a4749(0x14b)](_0x30640a);}));function _0x5e0e(){const _0x3f81ae=['4829bbWcrt','7FVpaKh','function','975060FWSyOF','exportXLSXByUnitIdAsync','UNIVER_SHEET','importXLSXToUnitIdAsync','714607OiGzlS','_injector','UniverCoreFacade','4CvXzys','UNIVER_UNKNOWN','object','importDOCXToUnitIdAsync','7490YKFnGQ','amd','UNIVER_SLIDE','exportXLSXBySnapshotAsync','UNIVER_PROJECT','UniverProExchangeClient','importDOCXToSnapshot','exportXLSXByUnitId','UNIVER_DOC','extend','@univerjs-pro/exchange-client','FUniver','importXLSXToSnapshotAsync','IExchangeService','879100brrPBB','importDOCXToUnitId','The\x20exchange\x20service\x20is\x20not\x20available','importDOCXToSnapshotAsync','get','importXLSXToSnapshot','3157344YwBNIQ','importFileToUnitId','18069KCsEIf','4221808iaRSHl','exportXLSXBySnapshot','154EjYFcD','UNRECOGNIZED'];_0x5e0e=function(){return _0x3f81ae;};return _0x5e0e();}
|