@univerjs-pro/exchange-client 0.6.10-nightly.202504151606 → 0.6.10-nightly.202504171607
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
|
-
const
|
1
|
+
function _0x5f43(){const _0x240030=['3538476KZUZhq','16592QOZAXV','File\x20uploaded\x20successfully','Uploading','3aqNXSH','{0}\x20file(s)\x20uploaded\x20successfully','Cancel','3506845DEHetS','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','10279140nHrjaO','Download\x20success','1935ZLquQi','680134XoCJqS','Data\x20is\x20too\x20large','4665654VqyEox','Network\x20error','File','Internal\x20unknown\x20error','943236NQvflq','Please\x20wait...','6wuNvuO','Downloading'];_0x5f43=function(){return _0x240030;};return _0x5f43();}const _0x4dfdcb=_0x52a4;(function(_0x56e51e,_0x3f24c1){const _0x363f62=_0x52a4,_0x2d7b54=_0x56e51e();while(!![]){try{const _0x260396=parseInt(_0x363f62(0x1cf))/0x1+-parseInt(_0x363f62(0x1c9))/0x2+-parseInt(_0x363f62(0x1c0))/0x3*(parseInt(_0x363f62(0x1bc))/0x4)+parseInt(_0x363f62(0x1c3))/0x5*(parseInt(_0x363f62(0x1d1))/0x6)+parseInt(_0x363f62(0x1cb))/0x7+-parseInt(_0x363f62(0x1bd))/0x8*(-parseInt(_0x363f62(0x1c8))/0x9)+-parseInt(_0x363f62(0x1c6))/0xa;if(_0x260396===_0x3f24c1)break;else _0x2d7b54['push'](_0x2d7b54['shift']());}catch(_0x28a85a){_0x2d7b54['push'](_0x2d7b54['shift']());}}}(_0x5f43,0x7b275));const e={'exchange':{'file':_0x4dfdcb(0x1cd),'upload':'Open(File)','download':'Save\x20As','uploading':_0x4dfdcb(0x1bf),'uploadSuccess':_0x4dfdcb(0x1be),'uploadSuccessTip':_0x4dfdcb(0x1c1),'downloading':_0x4dfdcb(0x1bb),'downloadSuccess':_0x4dfdcb(0x1c7),'unknownMistake':'Unknown\x20mistake','networkError':_0x4dfdcb(0x1cc),'tooLarge':_0x4dfdcb(0x1ca),'internalError':_0x4dfdcb(0x1ce),'interrupt':_0x4dfdcb(0x1c4),'fileTypeError':_0x4dfdcb(0x1c5),'wait':_0x4dfdcb(0x1d0),'cancel':_0x4dfdcb(0x1c2),'uploadAgain':'Upload\x20again'}};function _0x52a4(_0x46d488,_0x3d4472){const _0x5f436a=_0x5f43();return _0x52a4=function(_0x52a469,_0x45abf4){_0x52a469=_0x52a469-0x1bb;let _0x1a1f2a=_0x5f436a[_0x52a469];return _0x1a1f2a;},_0x52a4(_0x46d488,_0x3d4472);}export{e as default};
|
package/lib/locale/fa-IR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
const _0x3470f6=_0x4670;(function(_0x26999c,_0x388034){const _0x216f4d=_0x4670,_0x476230=_0x26999c();while(!![]){try{const _0x4042af=-parseInt(_0x216f4d(0x1ad))/0x1*(parseInt(_0x216f4d(0x1a8))/0x2)+parseInt(_0x216f4d(0x1b4))/0x3*(-parseInt(_0x216f4d(0x1b2))/0x4)+parseInt(_0x216f4d(0x1b0))/0x5+-parseInt(_0x216f4d(0x1af))/0x6+parseInt(_0x216f4d(0x1a6))/0x7+-parseInt(_0x216f4d(0x1ac))/0x8+-parseInt(_0x216f4d(0x1a3))/0x9*(-parseInt(_0x216f4d(0x1b3))/0xa);if(_0x4042af===_0x388034)break;else _0x476230['push'](_0x476230['shift']());}catch(_0x1007ce){_0x476230['push'](_0x476230['shift']());}}}(_0x401f,0x188f0));function _0x401f(){const _0x477c08=['43CsCmid','بارگذاری\x20مجدد','912036fBkcCT','412110yvZZcP','فایل','4sIJfDw','702290fOOQHX','272562aoRozr','خطای\x20داخلی\x20ناشناخته','خطای\x20شبکه','{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','45DrgmlC','فایل\x20انتخاب\x20شده\x20[{0}]\x20برای\x20بارگذاری\x20پشتیبانی\x20نمیشود','لغو','1392895oMmSec','لطفا\x20صبر\x20کنید...','6054yJZWSr','بازکردن(فایل)','ذخیره\x20به\x20عنوان','داده\x20خیلی\x20بزرگ\x20است','1271512MMIbrb'];_0x401f=function(){return _0x477c08;};return _0x401f();}function _0x4670(_0x24fd3d,_0x2ea112){const _0x401f85=_0x401f();return _0x4670=function(_0x46707b,_0x1c18e5){_0x46707b=_0x46707b-0x1a3;let _0x5315cf=_0x401f85[_0x46707b];return _0x5315cf;},_0x4670(_0x24fd3d,_0x2ea112);}const o={'exchange':{'file':_0x3470f6(0x1b1),'upload':_0x3470f6(0x1a9),'download':_0x3470f6(0x1aa),'uploading':'در\x20حال\x20بارگذاری','uploadSuccess':'فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','uploadSuccessTip':_0x3470f6(0x1b7),'downloading':'در\x20حال\x20دانلود','downloadSuccess':'دانلود\x20موفقیت\x20آمیز','unknownMistake':'خطای\x20ناشناخته','networkError':_0x3470f6(0x1b6),'tooLarge':_0x3470f6(0x1ab),'internalError':_0x3470f6(0x1b5),'interrupt':'اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','fileTypeError':_0x3470f6(0x1a4),'wait':_0x3470f6(0x1a7),'cancel':_0x3470f6(0x1a5),'uploadAgain':_0x3470f6(0x1ae)}};export{o as default};
|
package/lib/locale/fr-FR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
const _0x579ba4=_0x473f;(function(_0x12475e,_0x13924d){const _0x2fe64c=_0x473f,_0x46bb0b=_0x12475e();while(!![]){try{const _0x1e725a=parseInt(_0x2fe64c(0xc6))/0x1+parseInt(_0x2fe64c(0xb8))/0x2*(-parseInt(_0x2fe64c(0xba))/0x3)+-parseInt(_0x2fe64c(0xc1))/0x4*(-parseInt(_0x2fe64c(0xca))/0x5)+-parseInt(_0x2fe64c(0xc3))/0x6+parseInt(_0x2fe64c(0xc9))/0x7*(parseInt(_0x2fe64c(0xbd))/0x8)+-parseInt(_0x2fe64c(0xc8))/0x9+parseInt(_0x2fe64c(0xbc))/0xa;if(_0x1e725a===_0x13924d)break;else _0x46bb0b['push'](_0x46bb0b['shift']());}catch(_0x46d635){_0x46bb0b['push'](_0x46bb0b['shift']());}}}(_0x399b,0xdb3f9));const e={'exchange':{'file':_0x579ba4(0xc2),'upload':'Ouvrir\x20(Fichier)','download':'Enregistrer\x20sous','uploading':_0x579ba4(0xb9),'uploadSuccess':_0x579ba4(0xc4),'uploadSuccessTip':_0x579ba4(0xc5),'downloading':_0x579ba4(0xbe),'downloadSuccess':'Téléchargement\x20réussi','unknownMistake':_0x579ba4(0xbb),'networkError':'Erreur\x20réseau','tooLarge':_0x579ba4(0xbf),'internalError':_0x579ba4(0xcb),'interrupt':_0x579ba4(0xc7),'fileTypeError':'Le\x20fichier\x20sélectionné\x20[{0}]\x20n\x27est\x20pas\x20pris\x20en\x20charge\x20pour\x20le\x20téléchargement','wait':'Veuillez\x20patienter...','cancel':'Annuler','uploadAgain':_0x579ba4(0xc0)}};export{e as default};function _0x473f(_0x386c44,_0x1416d9){const _0x399b05=_0x399b();return _0x473f=function(_0x473f2c,_0x1fe228){_0x473f2c=_0x473f2c-0xb8;let _0x188848=_0x399b05[_0x473f2c];return _0x188848;},_0x473f(_0x386c44,_0x1416d9);}function _0x399b(){const _0x48b4f2=['2614RdAkEP','Téléchargement\x20en\x20cours','2427yZkTRx','Erreur\x20inconnue','18124870obvCzU','2293160cgFJAt','Téléchargement','Les\x20données\x20sont\x20trop\x20volumineuses','Télécharger\x20à\x20nouveau','4pMGMiF','Fichier','6070506yjwHki','Fichier\x20téléchargé\x20avec\x20succès','{0}\x20fichier(s)\x20téléchargé(s)\x20avec\x20succès','450837cjLEzq','La\x20connexion\x20réseau\x20a\x20été\x20interrompue\x20et\x20le\x20téléchargement\x20du\x20fichier\x20a\x20échoué','12766581NPMWCp','21PtoVPU','6312025bpMvcO','Erreur\x20interne\x20inconnue'];_0x399b=function(){return _0x48b4f2;};return _0x399b();}
|
package/lib/locale/ru-RU.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
const _0x36c485=_0x36be;(function(_0x28eedd,_0x391d94){const _0x35144b=_0x36be,_0x4c97c2=_0x28eedd();while(!![]){try{const _0x1f0e1f=-parseInt(_0x35144b(0x1e4))/0x1*(parseInt(_0x35144b(0x1db))/0x2)+-parseInt(_0x35144b(0x1d8))/0x3*(parseInt(_0x35144b(0x1d5))/0x4)+-parseInt(_0x35144b(0x1e0))/0x5*(parseInt(_0x35144b(0x1ea))/0x6)+parseInt(_0x35144b(0x1da))/0x7+-parseInt(_0x35144b(0x1e9))/0x8*(parseInt(_0x35144b(0x1dc))/0x9)+parseInt(_0x35144b(0x1e5))/0xa*(parseInt(_0x35144b(0x1d7))/0xb)+parseInt(_0x35144b(0x1e2))/0xc;if(_0x1f0e1f===_0x391d94)break;else _0x4c97c2['push'](_0x4c97c2['shift']());}catch(_0xe01b69){_0x4c97c2['push'](_0x4c97c2['shift']());}}}(_0x574f,0x3fb09));function _0x36be(_0x25f5f7,_0x554dfc){const _0x574f98=_0x574f();return _0x36be=function(_0x36be1f,_0x473f62){_0x36be1f=_0x36be1f-0x1d4;let _0x50cdbd=_0x574f98[_0x36be1f];return _0x50cdbd;},_0x36be(_0x25f5f7,_0x554dfc);}const o={'exchange':{'file':_0x36c485(0x1e3),'upload':_0x36c485(0x1ed),'download':_0x36c485(0x1d4),'uploading':_0x36c485(0x1e1),'uploadSuccess':'Файл\x20успешно\x20загружен','uploadSuccessTip':_0x36c485(0x1de),'downloading':'Скачивание','downloadSuccess':_0x36c485(0x1d9),'unknownMistake':_0x36c485(0x1e8),'networkError':'Сетевая\x20ошибка','tooLarge':_0x36c485(0x1ec),'internalError':_0x36c485(0x1d6),'interrupt':_0x36c485(0x1dd),'fileTypeError':_0x36c485(0x1eb),'wait':_0x36c485(0x1df),'cancel':_0x36c485(0x1e7),'uploadAgain':_0x36c485(0x1e6)}};function _0x574f(){const _0x5c6601=['9LTbfEU','Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','{0}\x20файл(ов)\x20успешно\x20загружен(о)','Пожалуйста,\x20подождите...','15665sPUaEC','Загрузка','10974804iWDDWq','Файл','23vUqLPd','61730IjqNaP','Загрузить\x20снова','Отмена','Неизвестная\x20ошибка','2552392gEsBtc','66gynVDr','Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','Данные\x20слишком\x20большие','Открыть(Файл)','Сохранить\x20как','376TunWjh','Внутренняя\x20неизвестная\x20ошибка','363wALUXb','10419mfLFfC','Скачивание\x20успешно','322756gKPZTR','19438xONMQQ'];_0x574f=function(){return _0x5c6601;};return _0x574f();}export{o as default};
|
package/lib/locale/vi-VN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
function _0x5f21(_0x160ecb,_0x3ecbc5){const _0x44dd19=_0x44dd();return _0x5f21=function(_0x5f2129,_0x14120b){_0x5f2129=_0x5f2129-0xf4;let _0x39f8a1=_0x44dd19[_0x5f2129];return _0x39f8a1;},_0x5f21(_0x160ecb,_0x3ecbc5);}const _0x42bb0e=_0x5f21;(function(_0x440b08,_0x2018f0){const _0x4441f6=_0x5f21,_0x4c8ebd=_0x440b08();while(!![]){try{const _0x4121d9=parseInt(_0x4441f6(0x105))/0x1+parseInt(_0x4441f6(0xff))/0x2*(-parseInt(_0x4441f6(0x100))/0x3)+parseInt(_0x4441f6(0x101))/0x4*(-parseInt(_0x4441f6(0xfd))/0x5)+-parseInt(_0x4441f6(0xf8))/0x6+-parseInt(_0x4441f6(0xfc))/0x7*(parseInt(_0x4441f6(0xf7))/0x8)+parseInt(_0x4441f6(0x10a))/0x9+parseInt(_0x4441f6(0x103))/0xa*(parseInt(_0x4441f6(0xf6))/0xb);if(_0x4121d9===_0x2018f0)break;else _0x4c8ebd['push'](_0x4c8ebd['shift']());}catch(_0x347694){_0x4c8ebd['push'](_0x4c8ebd['shift']());}}}(_0x44dd,0x20f4d));function _0x44dd(){const _0xddd3bc=['Vui\x20lòng\x20đợi...','438364zznhhA','3AhJCnT','3904tKeWHp','Lưu\x20dưới\x20dạng','1130branEj','Tải\x20lên\x20tệp\x20thành\x20công','27535SKItHZ','Tải\x20xuống\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ệp','Tải\x20lên\x20lại','108891eYARSs','Đang\x20tải\x20xuống','Lỗi\x20không\x20xác\x20định\x20bên\x20trong','Luồng\x20dữ\x20liệu\x20quá\x20lớn','70972IetLuT','823528ExSgYf','402822ZlMtri','Lỗi\x20không\x20xác\x20định','Đang\x20tải\x20lên','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','14jVyGsw','725xCZCCU'];_0x44dd=function(){return _0xddd3bc;};return _0x44dd();}const n={'exchange':{'file':_0x42bb0e(0x108),'upload':'Mở\x20(Tệp)','download':_0x42bb0e(0x102),'uploading':_0x42bb0e(0xfa),'uploadSuccess':_0x42bb0e(0x104),'uploadSuccessTip':_0x42bb0e(0xfb),'downloading':_0x42bb0e(0x10b),'downloadSuccess':_0x42bb0e(0x106),'unknownMistake':_0x42bb0e(0xf9),'networkError':'Lỗi\x20mạng','tooLarge':_0x42bb0e(0xf5),'internalError':_0x42bb0e(0xf4),'interrupt':_0x42bb0e(0x107),'fileTypeError':'Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','wait':_0x42bb0e(0xfe),'cancel':'Hủy\x20bỏ','uploadAgain':_0x42bb0e(0x109)}};export{n as default};
|
package/lib/locale/zh-CN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0x348d(){const _0xf5ef5b=['网络异常','{0}个文件上传成功','下载成功','416346UZUfLn','请稍等...','再次上传','内部未知错误','上传中','4IXrAyf','18HUiiyf','下载中','另存为','5660544wMJSrf','744zPVnNE','6374074fwOWpE','5rYGBrC','9916830goWZFD','2476fQIfPs','打开(文件)','数据流过大','850686isNKZp','4343170NTlYhK'];_0x348d=function(){return _0xf5ef5b;};return _0x348d();}const _0x5eab9d=_0x5c05;function _0x5c05(_0x1f2d79,_0x8618af){const _0x348d99=_0x348d();return _0x5c05=function(_0x5c05c1,_0xee8980){_0x5c05c1=_0x5c05c1-0x11d;let _0x1e7f4c=_0x348d99[_0x5c05c1];return _0x1e7f4c;},_0x5c05(_0x1f2d79,_0x8618af);}(function(_0x306b4f,_0x1a9669){const _0x1a9e1a=_0x5c05,_0x47c332=_0x306b4f();while(!![]){try{const _0x363e21=-parseInt(_0x1a9e1a(0x11d))/0x1*(-parseInt(_0x1a9e1a(0x121))/0x2)+-parseInt(_0x1a9e1a(0x124))/0x3*(parseInt(_0x1a9e1a(0x12e))/0x4)+parseInt(_0x1a9e1a(0x11f))/0x5*(parseInt(_0x1a9e1a(0x129))/0x6)+-parseInt(_0x1a9e1a(0x11e))/0x7+parseInt(_0x1a9e1a(0x132))/0x8+parseInt(_0x1a9e1a(0x12f))/0x9*(-parseInt(_0x1a9e1a(0x125))/0xa)+parseInt(_0x1a9e1a(0x120))/0xb;if(_0x363e21===_0x1a9669)break;else _0x47c332['push'](_0x47c332['shift']());}catch(_0x215344){_0x47c332['push'](_0x47c332['shift']());}}}(_0x348d,0x830cf));const o={'exchange':{'file':'文件','upload':_0x5eab9d(0x122),'download':_0x5eab9d(0x131),'uploading':_0x5eab9d(0x12d),'uploadSuccess':'文件上传成功','uploadSuccessTip':_0x5eab9d(0x127),'downloading':_0x5eab9d(0x130),'downloadSuccess':_0x5eab9d(0x128),'unknownMistake':'未知错误','networkError':_0x5eab9d(0x126),'tooLarge':_0x5eab9d(0x123),'internalError':_0x5eab9d(0x12c),'interrupt':'网络连接中断,文件上传失败','fileTypeError':'所选文件\x20[{0}]\x20不支持上传','wait':_0x5eab9d(0x12a),'cancel':'取消','uploadAgain':_0x5eab9d(0x12b)}};export{o as default};
|
package/lib/locale/zh-TW.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
function _0x3893(){const _0x188dbc=['117330SVzwOa','12QBKdRB','54659220ZdIrWh','566975wczYub','40HiVxUp','資料流過大','{0}個檔案上傳成功','407kQGRjZ','247554xlgxQd','729435GsdCRS','開啟(檔案)','9757041dMWvJg','網路異常','431306klVhDF','6yzxFsH','檔案上傳成功','另存為','下載成功','184gcUcht','網路連線中斷,檔案上傳失敗','未知錯誤'];_0x3893=function(){return _0x188dbc;};return _0x3893();}const _0x54a83c=_0x153d;(function(_0x1e621d,_0x7c631c){const _0x300c2b=_0x153d,_0x686022=_0x1e621d();while(!![]){try{const _0x1d9e33=parseInt(_0x300c2b(0x145))/0x1+parseInt(_0x300c2b(0x139))/0x2*(parseInt(_0x300c2b(0x141))/0x3)+parseInt(_0x300c2b(0x13c))/0x4*(parseInt(_0x300c2b(0x13b))/0x5)+parseInt(_0x300c2b(0x146))/0x6*(parseInt(_0x300c2b(0x143))/0x7)+-parseInt(_0x300c2b(0x14a))/0x8*(-parseInt(_0x300c2b(0x140))/0x9)+parseInt(_0x300c2b(0x14d))/0xa*(parseInt(_0x300c2b(0x13f))/0xb)+-parseInt(_0x300c2b(0x13a))/0xc;if(_0x1d9e33===_0x7c631c)break;else _0x686022['push'](_0x686022['shift']());}catch(_0x69dccb){_0x686022['push'](_0x686022['shift']());}}}(_0x3893,0xe3015));const o={'exchange':{'file':'檔案','upload':_0x54a83c(0x142),'download':_0x54a83c(0x148),'uploading':'上傳中','uploadSuccess':_0x54a83c(0x147),'uploadSuccessTip':_0x54a83c(0x13e),'downloading':'下載中','downloadSuccess':_0x54a83c(0x149),'unknownMistake':_0x54a83c(0x14c),'networkError':_0x54a83c(0x144),'tooLarge':_0x54a83c(0x13d),'internalError':'內部未知錯誤','interrupt':_0x54a83c(0x14b),'fileTypeError':'所選檔案\x20[{0}]\x20不支援上傳','wait':'請稍等...','cancel':'取消','uploadAgain':'再次上傳'}};function _0x153d(_0x555a7b,_0x32cbb5){const _0x3893f6=_0x3893();return _0x153d=function(_0x153d46,_0xfffa14){_0x153d46=_0x153d46-0x139;let _0x5e8fb8=_0x3893f6[_0x153d46];return _0x5e8fb8;},_0x153d(_0x555a7b,_0x32cbb5);}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 _0x523f(_0x22e386,_0x3472da){const _0x8bae2a=_0x8bae();return _0x523f=function(_0x523f5c,_0x2405ab){_0x523f5c=_0x523f5c-0x112;let _0xfef989=_0x8bae2a[_0x523f5c];return _0xfef989;},_0x523f(_0x22e386,_0x3472da);}(function(_0x36a693,_0x30011d){const _0x3fe4f0=_0x523f,_0xf2fd29=_0x36a693();while(!![]){try{const _0x27dc52=parseInt(_0x3fe4f0(0x112))/0x1*(-parseInt(_0x3fe4f0(0x125))/0x2)+-parseInt(_0x3fe4f0(0x119))/0x3*(-parseInt(_0x3fe4f0(0x11d))/0x4)+parseInt(_0x3fe4f0(0x12b))/0x5*(parseInt(_0x3fe4f0(0x11f))/0x6)+parseInt(_0x3fe4f0(0x127))/0x7*(-parseInt(_0x3fe4f0(0x13c))/0x8)+-parseInt(_0x3fe4f0(0x129))/0x9+parseInt(_0x3fe4f0(0x12d))/0xa*(parseInt(_0x3fe4f0(0x137))/0xb)+-parseInt(_0x3fe4f0(0x123))/0xc*(-parseInt(_0x3fe4f0(0x13b))/0xd);if(_0x27dc52===_0x30011d)break;else _0xf2fd29['push'](_0xf2fd29['shift']());}catch(_0x3c89a9){_0xf2fd29['push'](_0xf2fd29['shift']());}}}(_0x8bae,0xe3599),function(_0x1cf2e1,_0x298e2c){const _0x2c576a=_0x523f;typeof exports==_0x2c576a(0x131)&&typeof module<'u'?_0x298e2c(require(_0x2c576a(0x115)),require('@univerjs/core/facade')):typeof define==_0x2c576a(0x138)&&define['amd']?define([_0x2c576a(0x115),_0x2c576a(0x134)],_0x298e2c):(_0x1cf2e1=typeof globalThis<'u'?globalThis:_0x1cf2e1||self,_0x298e2c(_0x1cf2e1[_0x2c576a(0x118)],_0x1cf2e1[_0x2c576a(0x13a)]));}(this,function(_0x23cc5b,_0x5a80aa){'use strict';const _0x47b74f=_0x523f;var _0xbfd3c0=(_0x1ddeb8=>(_0x1ddeb8[_0x1ddeb8['UNIVER_UNKNOWN']=0x0]=_0x47b74f(0x121),_0x1ddeb8[_0x1ddeb8[_0x47b74f(0x120)]=0x1]=_0x47b74f(0x120),_0x1ddeb8[_0x1ddeb8[_0x47b74f(0x113)]=0x2]=_0x47b74f(0x113),_0x1ddeb8[_0x1ddeb8[_0x47b74f(0x126)]=0x3]=_0x47b74f(0x126),_0x1ddeb8[_0x1ddeb8['UNIVER_PROJECT']=0x4]=_0x47b74f(0x12e),_0x1ddeb8[_0x1ddeb8['UNRECOGNIZED']=-0x1]=_0x47b74f(0x124),_0x1ddeb8))(_0xbfd3c0||{});class _0x8c9e37 extends _0x5a80aa[_0x47b74f(0x11c)]{async[_0x47b74f(0x133)](_0x31da55){const _0x7aebda=_0x47b74f;return this[_0x7aebda(0x12c)](_0x31da55);}async[_0x47b74f(0x12c)](_0x30725f){const _0x4dd656=_0x47b74f,_0x2d6c4a=this[_0x4dd656(0x130)]['get'](_0x23cc5b[_0x4dd656(0x11e)]);if(!_0x2d6c4a)throw new Error(_0x4dd656(0x122));return _0x2d6c4a[_0x4dd656(0x132)](_0x30725f,_0xbfd3c0['UNIVER_SHEET']);}async['importXLSXToSnapshot'](_0x3fdbf7){return this['importXLSXToSnapshotAsync'](_0x3fdbf7);}async[_0x47b74f(0x12a)](_0x2d9d77){const _0x590338=_0x47b74f,_0xeca68d=this[_0x590338(0x130)]['get'](_0x23cc5b[_0x590338(0x11e)]);if(!_0xeca68d)throw new Error(_0x590338(0x122));return _0xeca68d[_0x590338(0x117)](_0x2d9d77);}async[_0x47b74f(0x11b)](_0x5d6a34){return this['exportXLSXByUnitIdAsync'](_0x5d6a34);}async['exportXLSXByUnitIdAsync'](_0x34f37b){const _0x53cb0a=_0x47b74f,_0x2ff7d7=this['_injector'][_0x53cb0a(0x114)](_0x23cc5b[_0x53cb0a(0x11e)]);if(!_0x2ff7d7)throw new Error(_0x53cb0a(0x122));return _0x2ff7d7[_0x53cb0a(0x11b)](_0x34f37b);}async[_0x47b74f(0x136)](_0x5c416e){const _0x3a43ae=_0x47b74f;return this[_0x3a43ae(0x11a)](_0x5c416e);}async[_0x47b74f(0x11a)](_0x11e740){const _0x3a8e9a=_0x47b74f,_0x4ce45c=this[_0x3a8e9a(0x130)][_0x3a8e9a(0x114)](_0x23cc5b[_0x3a8e9a(0x11e)]);if(!_0x4ce45c)throw new Error(_0x3a8e9a(0x122));return _0x4ce45c['exportXLSXBySnapshot'](_0x11e740);}async[_0x47b74f(0x116)](_0x448550){const _0x2aeb13=_0x47b74f;return this[_0x2aeb13(0x139)](_0x448550);}async[_0x47b74f(0x139)](_0x4d295c){const _0x1aed29=_0x47b74f,_0x28ca6d=this[_0x1aed29(0x130)][_0x1aed29(0x114)](_0x23cc5b['IExchangeService']);if(!_0x28ca6d)throw new Error(_0x1aed29(0x122));return _0x28ca6d[_0x1aed29(0x132)](_0x4d295c,_0xbfd3c0[_0x1aed29(0x120)]);}async['importDOCXToSnapshot'](_0x58892c){const _0x3f3921=_0x47b74f;return this[_0x3f3921(0x128)](_0x58892c);}async[_0x47b74f(0x128)](_0x231fd3){const _0x11a041=_0x47b74f,_0x36e28c=this['_injector']['get'](_0x23cc5b['IExchangeService']);if(!_0x36e28c)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x36e28c[_0x11a041(0x12f)](_0x231fd3);}}_0x5a80aa[_0x47b74f(0x11c)][_0x47b74f(0x135)](_0x8c9e37);}));function _0x8bae(){const _0x4b831f=['function','importDOCXToUnitIdAsync','UniverCoreFacade','5551JgJFal','11824088UCwIaL','67eyuvqq','UNIVER_SHEET','get','@univerjs-pro/exchange-client','importDOCXToUnitId','importXLSXToSnapshot','UniverProExchangeClient','1473vVsSZX','exportXLSXBySnapshotAsync','exportXLSXByUnitId','FUniver','14028xOxlXX','IExchangeService','414EJCjzq','UNIVER_DOC','UNIVER_UNKNOWN','The\x20exchange\x20service\x20is\x20not\x20available','25692TwssYh','UNRECOGNIZED','47514vuQyHF','UNIVER_SLIDE','7slYUhH','importDOCXToSnapshotAsync','10713024QfkGgm','importXLSXToSnapshotAsync','109240LCitoh','importXLSXToUnitIdAsync','10WxIAmU','UNIVER_PROJECT','importDOCXToSnapshot','_injector','object','importFileToUnitId','importXLSXToUnitId','@univerjs/core/facade','extend','exportXLSXBySnapshot','11523985NgTCcz'];_0x8bae=function(){return _0x4b831f;};return _0x8bae();}
|