@univerjs-pro/exchange-client 0.6.5-nightly.202503131607 → 0.6.6-experimental.20250317-28d180b
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/types/facade/f-univer.d.ts +6 -12
- package/lib/types/index.d.ts +1 -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 +9 -9
package/lib/es/locale/en-US.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0x3ab3(){const _0x483517=['Unknown\x20mistake','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','9924003teLMaH','Uploading','Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','Cancel','4692mjeynQ','596CqprDf','22UyEkxL','10034610ztAYCl','10oTHiop','131191xHJYwT','Please\x20wait...','682028lxChGV','Download\x20success','Internal\x20unknown\x20error','File','Downloading','{0}\x20file(s)\x20uploaded\x20successfully','2862510QppSzq','8YJTifm','1009113EYDfeQ'];_0x3ab3=function(){return _0x483517;};return _0x3ab3();}const _0x445866=_0x13c9;(function(_0x4076e4,_0x16e557){const _0x3f26cf=_0x13c9,_0x5cf9e=_0x4076e4();while(!![]){try{const _0x1b8988=-parseInt(_0x3f26cf(0x8a))/0x1+parseInt(_0x3f26cf(0x86))/0x2*(-parseInt(_0x3f26cf(0x85))/0x3)+-parseInt(_0x3f26cf(0x8c))/0x4*(parseInt(_0x3f26cf(0x89))/0x5)+parseInt(_0x3f26cf(0x92))/0x6+parseInt(_0x3f26cf(0x94))/0x7*(parseInt(_0x3f26cf(0x93))/0x8)+-parseInt(_0x3f26cf(0x97))/0x9+-parseInt(_0x3f26cf(0x88))/0xa*(-parseInt(_0x3f26cf(0x87))/0xb);if(_0x1b8988===_0x16e557)break;else _0x5cf9e['push'](_0x5cf9e['shift']());}catch(_0x406262){_0x5cf9e['push'](_0x5cf9e['shift']());}}}(_0x3ab3,0x8f5d6));function _0x13c9(_0x86d77d,_0x333802){const _0x3ab343=_0x3ab3();return _0x13c9=function(_0x13c9e2,_0x3d1500){_0x13c9e2=_0x13c9e2-0x84;let _0x46e408=_0x3ab343[_0x13c9e2];return _0x46e408;},_0x13c9(_0x86d77d,_0x333802);}const e={'exchange':{'file':_0x445866(0x8f),'upload':'Open(File)','download':'Save\x20As','uploading':_0x445866(0x98),'uploadSuccess':'File\x20uploaded\x20successfully','uploadSuccessTip':_0x445866(0x91),'downloading':_0x445866(0x90),'downloadSuccess':_0x445866(0x8d),'unknownMistake':_0x445866(0x95),'networkError':'Network\x20error','tooLarge':'Data\x20is\x20too\x20large','internalError':_0x445866(0x8e),'interrupt':_0x445866(0x96),'fileTypeError':_0x445866(0x99),'wait':_0x445866(0x8b),'cancel':_0x445866(0x84),'uploadAgain':'Upload\x20again'}};export{e as default};
|
package/lib/es/locale/fa-IR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x417fd1=_0x934a;(function(_0x246455,_0x35bbcc){const _0xc7cb86=_0x934a,_0x57ee8b=_0x246455();while(!![]){try{const _0x559a15=-parseInt(_0xc7cb86(0x158))/0x1*(-parseInt(_0xc7cb86(0x15f))/0x2)+-parseInt(_0xc7cb86(0x15c))/0x3*(parseInt(_0xc7cb86(0x14d))/0x4)+parseInt(_0xc7cb86(0x154))/0x5+parseInt(_0xc7cb86(0x151))/0x6*(parseInt(_0xc7cb86(0x15a))/0x7)+parseInt(_0xc7cb86(0x160))/0x8+parseInt(_0xc7cb86(0x148))/0x9*(-parseInt(_0xc7cb86(0x155))/0xa)+parseInt(_0xc7cb86(0x15e))/0xb*(-parseInt(_0xc7cb86(0x14a))/0xc);if(_0x559a15===_0x35bbcc)break;else _0x57ee8b['push'](_0x57ee8b['shift']());}catch(_0xfddc){_0x57ee8b['push'](_0x57ee8b['shift']());}}}(_0x1134,0xab049));const o={'exchange':{'file':'فایل','upload':'بازکردن(فایل)','download':'ذخیره\x20به\x20عنوان','uploading':_0x417fd1(0x14b),'uploadSuccess':_0x417fd1(0x156),'uploadSuccessTip':_0x417fd1(0x153),'downloading':_0x417fd1(0x14e),'downloadSuccess':_0x417fd1(0x157),'unknownMistake':_0x417fd1(0x152),'networkError':'خطای\x20شبکه','tooLarge':_0x417fd1(0x150),'internalError':_0x417fd1(0x14c),'interrupt':_0x417fd1(0x159),'fileTypeError':_0x417fd1(0x14f),'wait':_0x417fd1(0x149),'cancel':_0x417fd1(0x15b),'uploadAgain':_0x417fd1(0x15d)}};function _0x934a(_0x5c7d98,_0x4d408a){const _0x113467=_0x1134();return _0x934a=function(_0x934a8,_0x3e8afe){_0x934a8=_0x934a8-0x148;let _0x5a6704=_0x113467[_0x934a8];return _0x5a6704;},_0x934a(_0x5c7d98,_0x4d408a);}export{o as default};function _0x1134(){const _0x373982=['108hqZiMZ','لطفا\x20صبر\x20کنید...','24vXXUWD','در\x20حال\x20بارگذاری','خطای\x20داخلی\x20ناشناخته','228GNxete','در\x20حال\x20دانلود','فایل\x20انتخاب\x20شده\x20[{0}]\x20برای\x20بارگذاری\x20پشتیبانی\x20نمیشود','داده\x20خیلی\x20بزرگ\x20است','72LLdSqA','خطای\x20ناشناخته','{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','1685330rzgqQS','348410DJiTuq','فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','دانلود\x20موفقیت\x20آمیز','743896PLOoXM','اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','755461uTopaj','لغو','63033WjEwzP','بارگذاری\x20مجدد','1254143kEmtHI','2CTnjTp','1345568fECrCD'];_0x1134=function(){return _0x373982;};return _0x1134();}
|
package/lib/es/locale/fr-FR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0x1798(_0x23c428,_0x250e38){const _0xd35550=_0xd355();return _0x1798=function(_0x179853,_0x50016f){_0x179853=_0x179853-0x19f;let _0x2ea6c2=_0xd35550[_0x179853];return _0x2ea6c2;},_0x1798(_0x23c428,_0x250e38);}const _0x583c88=_0x1798;(function(_0x37edc2,_0x3913ba){const _0x178928=_0x1798,_0x1d1eeb=_0x37edc2();while(!![]){try{const _0x297d4c=parseInt(_0x178928(0x1b7))/0x1*(-parseInt(_0x178928(0x1af))/0x2)+-parseInt(_0x178928(0x1b8))/0x3+parseInt(_0x178928(0x1a4))/0x4*(-parseInt(_0x178928(0x1b1))/0x5)+parseInt(_0x178928(0x1ae))/0x6+-parseInt(_0x178928(0x1a8))/0x7*(parseInt(_0x178928(0x1b9))/0x8)+parseInt(_0x178928(0x1b0))/0x9*(parseInt(_0x178928(0x1b2))/0xa)+parseInt(_0x178928(0x1ab))/0xb;if(_0x297d4c===_0x3913ba)break;else _0x1d1eeb['push'](_0x1d1eeb['shift']());}catch(_0x52f894){_0x1d1eeb['push'](_0x1d1eeb['shift']());}}}(_0xd355,0x92f81));const e={'exchange':{'file':_0x583c88(0x1a5),'upload':_0x583c88(0x1b5),'download':_0x583c88(0x1b4),'uploading':_0x583c88(0x19f),'uploadSuccess':_0x583c88(0x1aa),'uploadSuccessTip':_0x583c88(0x1ac),'downloading':_0x583c88(0x1a9),'downloadSuccess':_0x583c88(0x1b3),'unknownMistake':_0x583c88(0x1a2),'networkError':_0x583c88(0x1a7),'tooLarge':'Les\x20données\x20sont\x20trop\x20volumineuses','internalError':_0x583c88(0x1b6),'interrupt':_0x583c88(0x1ad),'fileTypeError':_0x583c88(0x1a1),'wait':_0x583c88(0x1a0),'cancel':_0x583c88(0x1a3),'uploadAgain':_0x583c88(0x1a6)}};function _0xd355(){const _0x377dbe=['Annuler','4824MGaaTq','Fichier','Télécharger\x20à\x20nouveau','Erreur\x20réseau','1876EQXLuj','Téléchargement','Fichier\x20téléchargé\x20avec\x20succès','9056179TcSxse','{0}\x20fichier(s)\x20téléchargé(s)\x20avec\x20succès','La\x20connexion\x20réseau\x20a\x20été\x20interrompue\x20et\x20le\x20téléchargement\x20du\x20fichier\x20a\x20échoué','6840600bQTEcu','14ohkuhW','1719mHKBEd','1195YFPxSe','23740oUjcxe','Téléchargement\x20réussi','Enregistrer\x20sous','Ouvrir\x20(Fichier)','Erreur\x20interne\x20inconnue','11303YxgckL','3145293TtLmbd','11912MbUgkY','Téléchargement\x20en\x20cours','Veuillez\x20patienter...','Le\x20fichier\x20sélectionné\x20[{0}]\x20n\x27est\x20pas\x20pris\x20en\x20charge\x20pour\x20le\x20téléchargement','Erreur\x20inconnue'];_0xd355=function(){return _0x377dbe;};return _0xd355();}export{e as default};
|
package/lib/es/locale/ru-RU.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x25816a=_0x2065;function _0x7036(){const _0x3a0c2a=['Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','Файл','857244HpYMaa','3890504fCaBBa','2965524Tfuate','2448177mHxDQQ','Неизвестная\x20ошибка','Загрузить\x20снова','Сохранить\x20как','5eIPzJB','11203272pMZDGT','Сетевая\x20ошибка','8TIsXBi','Отмена','Скачивание','Внутренняя\x20неизвестная\x20ошибка','{0}\x20файл(ов)\x20успешно\x20загружен(о)','4813781cYoWju','2579500JuySlm','Файл\x20успешно\x20загружен','Пожалуйста,\x20подождите...','Открыть(Файл)','Данные\x20слишком\x20большие'];_0x7036=function(){return _0x3a0c2a;};return _0x7036();}function _0x2065(_0x1a34b1,_0x46b4d0){const _0x7036f2=_0x7036();return _0x2065=function(_0x2065d0,_0xf2fab7){_0x2065d0=_0x2065d0-0x1db;let _0x432e63=_0x7036f2[_0x2065d0];return _0x432e63;},_0x2065(_0x1a34b1,_0x46b4d0);}(function(_0x302a43,_0x39fd2f){const _0xc7ff89=_0x2065,_0x2240fa=_0x302a43();while(!![]){try{const _0x54d0f9=-parseInt(_0xc7ff89(0x1e2))/0x1+parseInt(_0xc7ff89(0x1db))/0x2+parseInt(_0xc7ff89(0x1e5))/0x3+parseInt(_0xc7ff89(0x1e3))/0x4*(parseInt(_0xc7ff89(0x1e9))/0x5)+parseInt(_0xc7ff89(0x1e4))/0x6+parseInt(_0xc7ff89(0x1f1))/0x7*(-parseInt(_0xc7ff89(0x1ec))/0x8)+-parseInt(_0xc7ff89(0x1ea))/0x9;if(_0x54d0f9===_0x39fd2f)break;else _0x2240fa['push'](_0x2240fa['shift']());}catch(_0x18dd66){_0x2240fa['push'](_0x2240fa['shift']());}}}(_0x7036,0xbf26a));const o={'exchange':{'file':_0x25816a(0x1e1),'upload':_0x25816a(0x1de),'download':_0x25816a(0x1e8),'uploading':'Загрузка','uploadSuccess':_0x25816a(0x1dc),'uploadSuccessTip':_0x25816a(0x1f0),'downloading':_0x25816a(0x1ee),'downloadSuccess':'Скачивание\x20успешно','unknownMistake':_0x25816a(0x1e6),'networkError':_0x25816a(0x1eb),'tooLarge':_0x25816a(0x1df),'internalError':_0x25816a(0x1ef),'interrupt':'Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','fileTypeError':_0x25816a(0x1e0),'wait':_0x25816a(0x1dd),'cancel':_0x25816a(0x1ed),'uploadAgain':_0x25816a(0x1e7)}};export{o as default};
|
package/lib/es/locale/vi-VN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
const _0x5dcb53=_0x2830;function _0x2830(_0x5a4263,_0x3442b9){const _0x4b73f4=_0x4b73();return _0x2830=function(_0x283014,_0x551365){_0x283014=_0x283014-0xf8;let _0x28f70b=_0x4b73f4[_0x283014];return _0x28f70b;},_0x2830(_0x5a4263,_0x3442b9);}function _0x4b73(){const _0x4059fc=['Lỗi\x20không\x20xác\x20định\x20bên\x20trong','Tải\x20xuống\x20thành\x20công','8yOgQlF','9321472BvQiNq','Tải\x20lên\x20lại','Đang\x20tải\x20lên','Tệp','15854859VzcAIZ','282kFCNAj','Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','1039498wWxKvQ','Lỗi\x20không\x20xác\x20định','Luồng\x20dữ\x20liệu\x20quá\x20lớn','Hủy\x20bỏ','74482DzDqwF','38709550CzKrKG','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','20uxjhuJ','69CreQxa','Lỗi\x20mạng','4364485LNUQgK','202629JiTYLM','Đang\x20tải\x20xuống','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','Tải\x20lên\x20tệp\x20thành\x20công'];_0x4b73=function(){return _0x4059fc;};return _0x4b73();}(function(_0x4cc89a,_0x1375f1){const _0x458060=_0x2830,_0x2af2c5=_0x4cc89a();while(!![]){try{const _0x2d8973=parseInt(_0x458060(0x110))/0x1+parseInt(_0x458060(0xfb))/0x2*(parseInt(_0x458060(0xff))/0x3)+-parseInt(_0x458060(0x108))/0x4*(-parseInt(_0x458060(0x101))/0x5)+parseInt(_0x458060(0x10e))/0x6*(parseInt(_0x458060(0x102))/0x7)+parseInt(_0x458060(0x109))/0x8+parseInt(_0x458060(0x10d))/0x9+-parseInt(_0x458060(0xfe))/0xa*(parseInt(_0x458060(0xfc))/0xb);if(_0x2d8973===_0x1375f1)break;else _0x2af2c5['push'](_0x2af2c5['shift']());}catch(_0x3ef7ab){_0x2af2c5['push'](_0x2af2c5['shift']());}}}(_0x4b73,0xd98c7));const n={'exchange':{'file':_0x5dcb53(0x10c),'upload':'Mở\x20(Tệp)','download':'Lưu\x20dưới\x20dạng','uploading':_0x5dcb53(0x10b),'uploadSuccess':_0x5dcb53(0x105),'uploadSuccessTip':_0x5dcb53(0x104),'downloading':_0x5dcb53(0x103),'downloadSuccess':_0x5dcb53(0x107),'unknownMistake':_0x5dcb53(0xf8),'networkError':_0x5dcb53(0x100),'tooLarge':_0x5dcb53(0xf9),'internalError':_0x5dcb53(0x106),'interrupt':_0x5dcb53(0xfd),'fileTypeError':_0x5dcb53(0x10f),'wait':'Vui\x20lòng\x20đợi...','cancel':_0x5dcb53(0xfa),'uploadAgain':_0x5dcb53(0x10a)}};export{n as default};
|
package/lib/es/locale/zh-CN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
function _0x5932(_0x407df0,_0x272bf1){const _0x53b7e4=_0x53b7();return _0x5932=function(_0x5932c6,_0x1cbd68){_0x5932c6=_0x5932c6-0x105;let _0x59e3d2=_0x53b7e4[_0x5932c6];return _0x59e3d2;},_0x5932(_0x407df0,_0x272bf1);}function _0x53b7(){const _0x3c79b8=['请稍等...','网络连接中断,文件上传失败','数据流过大','打开(文件)','文件上传成功','2660zNOFIQ','24344GwBHVE','3781668lSywuD','1760108ODPSTR','11XDOpvM','35237676QQOdKt','7227212ctgvze','再次上传','上传中','网络异常','下载中','下载成功','1019960pjGWQq','所选文件\x20[{0}]\x20不支持上传','10WnTLyw','126lHTfgX','另存为','未知错误','{0}个文件上传成功','187004tMjOKS','3EVnuqw'];_0x53b7=function(){return _0x3c79b8;};return _0x53b7();}const _0x3c0de5=_0x5932;(function(_0x4502c8,_0x21e1a6){const _0x5d0e27=_0x5932,_0x315b94=_0x4502c8();while(!![]){try{const _0x100776=parseInt(_0x5d0e27(0x114))/0x1+parseInt(_0x5d0e27(0x11e))/0x2+-parseInt(_0x5d0e27(0x115))/0x3*(-parseInt(_0x5d0e27(0x107))/0x4)+-parseInt(_0x5d0e27(0x10f))/0x5*(-parseInt(_0x5d0e27(0x11d))/0x6)+-parseInt(_0x5d0e27(0x11b))/0x7*(-parseInt(_0x5d0e27(0x11c))/0x8)+parseInt(_0x5d0e27(0x110))/0x9*(-parseInt(_0x5d0e27(0x10d))/0xa)+-parseInt(_0x5d0e27(0x105))/0xb*(parseInt(_0x5d0e27(0x106))/0xc);if(_0x100776===_0x21e1a6)break;else _0x315b94['push'](_0x315b94['shift']());}catch(_0x19737e){_0x315b94['push'](_0x315b94['shift']());}}}(_0x53b7,0xe2284));const o={'exchange':{'file':'文件','upload':_0x3c0de5(0x119),'download':_0x3c0de5(0x111),'uploading':_0x3c0de5(0x109),'uploadSuccess':_0x3c0de5(0x11a),'uploadSuccessTip':_0x3c0de5(0x113),'downloading':_0x3c0de5(0x10b),'downloadSuccess':_0x3c0de5(0x10c),'unknownMistake':_0x3c0de5(0x112),'networkError':_0x3c0de5(0x10a),'tooLarge':_0x3c0de5(0x118),'internalError':'内部未知错误','interrupt':_0x3c0de5(0x117),'fileTypeError':_0x3c0de5(0x10e),'wait':_0x3c0de5(0x116),'cancel':'取消','uploadAgain':_0x3c0de5(0x108)}};export{o as default};
|
package/lib/es/locale/zh-TW.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x53236a=_0x14f6;(function(_0x21db56,_0x314947){const _0x23f955=_0x14f6,_0xf0c96=_0x21db56();while(!![]){try{const _0x241f22=-parseInt(_0x23f955(0xda))/0x1+parseInt(_0x23f955(0xd4))/0x2+parseInt(_0x23f955(0xdd))/0x3+parseInt(_0x23f955(0xe0))/0x4*(parseInt(_0x23f955(0xd5))/0x5)+-parseInt(_0x23f955(0xd6))/0x6+parseInt(_0x23f955(0xe1))/0x7+parseInt(_0x23f955(0xdb))/0x8*(-parseInt(_0x23f955(0xe2))/0x9);if(_0x241f22===_0x314947)break;else _0xf0c96['push'](_0xf0c96['shift']());}catch(_0x2d954c){_0xf0c96['push'](_0xf0c96['shift']());}}}(_0x3a9c,0x9c56e));const o={'exchange':{'file':'檔案','upload':_0x53236a(0xdc),'download':_0x53236a(0xd9),'uploading':'上傳中','uploadSuccess':_0x53236a(0xd2),'uploadSuccessTip':'{0}個檔案上傳成功','downloading':'下載中','downloadSuccess':'下載成功','unknownMistake':_0x53236a(0xd8),'networkError':'網路異常','tooLarge':_0x53236a(0xdf),'internalError':_0x53236a(0xd3),'interrupt':_0x53236a(0xd7),'fileTypeError':'所選檔案\x20[{0}]\x20不支援上傳','wait':_0x53236a(0xde),'cancel':'取消','uploadAgain':'再次上傳'}};function _0x14f6(_0x211ac7,_0x17253d){const _0x3a9c08=_0x3a9c();return _0x14f6=function(_0x14f67c,_0x5c520c){_0x14f67c=_0x14f67c-0xd2;let _0x443498=_0x3a9c08[_0x14f67c];return _0x443498;},_0x14f6(_0x211ac7,_0x17253d);}function _0x3a9c(){const _0x398a7a=['開啟(檔案)','3441906gZhKUi','請稍等...','資料流過大','698240PcvTvd','7722015pegBye','16412607uibuDL','檔案上傳成功','內部未知錯誤','1179794GxMtGk','15JdEynw','1580892XyYitw','網路連線中斷,檔案上傳失敗','未知錯誤','另存為','636553zscRle','8Lmuivl'];_0x3a9c=function(){return _0x398a7a;};return _0x3a9c();}export{o as default};
|
@@ -77,17 +77,14 @@ export interface IFUniverExchangeClientMixin {
|
|
77
77
|
*
|
78
78
|
* @example
|
79
79
|
* ```typescript
|
80
|
+
* import { downloadFile } from '@univerjs-pro/exchange-client';
|
81
|
+
*
|
80
82
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
81
83
|
* const unitId = fWorkbook.getId();
|
82
84
|
* const file = await univerAPI.exportXLSXByUnitIdAsync(unitId);
|
83
85
|
*
|
84
86
|
* // Download the file
|
85
|
-
*
|
86
|
-
* const a = document.createElement('a');
|
87
|
-
* a.href = url;
|
88
|
-
* a.download = 'filename.xlsx';
|
89
|
-
* a.click();
|
90
|
-
* URL.revokeObjectURL(url);
|
87
|
+
* downloadFile(file, 'univer', 'xlsx');
|
91
88
|
* ```
|
92
89
|
*/
|
93
90
|
exportXLSXByUnitIdAsync(unitId: string): Promise<File | undefined>;
|
@@ -106,17 +103,14 @@ export interface IFUniverExchangeClientMixin {
|
|
106
103
|
*
|
107
104
|
* @example
|
108
105
|
* ```typescript
|
106
|
+
* import { downloadFile } from '@univerjs-pro/exchange-client';
|
107
|
+
*
|
109
108
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
110
109
|
* const snapshot = fWorkbook.save();
|
111
110
|
* const file = await univerAPI.exportXLSXBySnapshotAsync(snapshot);
|
112
111
|
*
|
113
112
|
* // Download the file
|
114
|
-
*
|
115
|
-
* const a = document.createElement('a');
|
116
|
-
* a.href = url;
|
117
|
-
* a.download = 'filename.xlsx';
|
118
|
-
* a.click();
|
119
|
-
* URL.revokeObjectURL(url);
|
113
|
+
* downloadFile(file, 'univer', 'xlsx');
|
120
114
|
* ```
|
121
115
|
*/
|
122
116
|
exportXLSXBySnapshotAsync(snapshot: IWorkbookData): Promise<File | undefined>;
|
package/lib/types/index.d.ts
CHANGED
@@ -10,3 +10,4 @@ export { downloadFile, getUniverTypeByFile, getUploadFile } from './services/uti
|
|
10
10
|
export { UploadNotificationContainer } from './views/UploadNotificationContainer';
|
11
11
|
export { transformSnapshotJsonToWorkbookData, transformWorkbookDataToSnapshotJson } from './services/utils/snapshot';
|
12
12
|
export type { ISnapshotBlockJsonResponse } from './services/utils/snapshot';
|
13
|
+
export { EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY } from './controllers/config.schema';
|
package/lib/umd/facade.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
(function(_0x474fc5,_0x299073){const _0x3ea9c5=_0x1208,_0x165a58=_0x474fc5();while(!![]){try{const _0x4ec67a=parseInt(_0x3ea9c5(0x8b))/0x1+-parseInt(_0x3ea9c5(0xa0))/0x2*(-parseInt(_0x3ea9c5(0x81))/0x3)+parseInt(_0x3ea9c5(0x8e))/0x4+parseInt(_0x3ea9c5(0x99))/0x5+-parseInt(_0x3ea9c5(0x9c))/0x6*(parseInt(_0x3ea9c5(0x95))/0x7)+-parseInt(_0x3ea9c5(0x96))/0x8+-parseInt(_0x3ea9c5(0xa5))/0x9;if(_0x4ec67a===_0x299073)break;else _0x165a58['push'](_0x165a58['shift']());}catch(_0x2c63d7){_0x165a58['push'](_0x165a58['shift']());}}}(_0x4b93,0x22c39),function(_0x3f6347,_0x78e64f){const _0x73868a=_0x1208;typeof exports==_0x73868a(0x9b)&&typeof module<'u'?_0x78e64f(require('@univerjs-pro/exchange-client'),require('@univerjs/core/facade')):typeof define=='function'&&define[_0x73868a(0x9d)]?define(['@univerjs-pro/exchange-client',_0x73868a(0x9a)],_0x78e64f):(_0x3f6347=typeof globalThis<'u'?globalThis:_0x3f6347||self,_0x78e64f(_0x3f6347[_0x73868a(0x98)],_0x3f6347[_0x73868a(0x86)]));}(this,function(_0x4ef169,_0x609de8){'use strict';const _0x1fd012=_0x1208;var _0x165d91=(_0xfb48d1=>(_0xfb48d1[_0xfb48d1[_0x1fd012(0x85)]=0x0]='UNIVER_UNKNOWN',_0xfb48d1[_0xfb48d1[_0x1fd012(0xa4)]=0x1]=_0x1fd012(0xa4),_0xfb48d1[_0xfb48d1[_0x1fd012(0x97)]=0x2]=_0x1fd012(0x97),_0xfb48d1[_0xfb48d1[_0x1fd012(0x89)]=0x3]=_0x1fd012(0x89),_0xfb48d1[_0xfb48d1[_0x1fd012(0x93)]=0x4]=_0x1fd012(0x93),_0xfb48d1[_0xfb48d1[_0x1fd012(0x82)]=-0x1]=_0x1fd012(0x82),_0xfb48d1))(_0x165d91||{});class _0x4a85d3 extends _0x609de8['FUniver']{async[_0x1fd012(0x91)](_0x3be01b){const _0x4201b0=_0x1fd012;return this[_0x4201b0(0x88)](_0x3be01b);}async[_0x1fd012(0x88)](_0x8c59b5){const _0x348795=_0x1fd012,_0xc5a4cc=this[_0x348795(0x8a)][_0x348795(0x80)](_0x4ef169[_0x348795(0x8f)]);if(!_0xc5a4cc)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0xc5a4cc[_0x348795(0x87)](_0x8c59b5,_0x165d91['UNIVER_SHEET']);}async[_0x1fd012(0x9e)](_0x12cc77){return this['importXLSXToSnapshotAsync'](_0x12cc77);}async[_0x1fd012(0x90)](_0x9b0da8){const _0x3c5933=_0x1fd012,_0x1cd49d=this['_injector'][_0x3c5933(0x80)](_0x4ef169[_0x3c5933(0x8f)]);if(!_0x1cd49d)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x1cd49d['importXLSXToSnapshot'](_0x9b0da8);}async[_0x1fd012(0x92)](_0x34fbe){const _0x48424a=_0x1fd012;return this[_0x48424a(0xa3)](_0x34fbe);}async[_0x1fd012(0xa3)](_0x1f01b3){const _0x57d172=_0x1fd012,_0x13f431=this[_0x57d172(0x8a)][_0x57d172(0x80)](_0x4ef169['IExchangeService']);if(!_0x13f431)throw new Error(_0x57d172(0xa1));return _0x13f431['exportXLSXByUnitId'](_0x1f01b3);}async[_0x1fd012(0x8d)](_0x907885){const _0x48b681=_0x1fd012;return this[_0x48b681(0x9f)](_0x907885);}async[_0x1fd012(0x9f)](_0x3ebfef){const _0x1e2428=_0x1fd012,_0x8ef064=this[_0x1e2428(0x8a)]['get'](_0x4ef169[_0x1e2428(0x8f)]);if(!_0x8ef064)throw new Error(_0x1e2428(0xa1));return _0x8ef064[_0x1e2428(0x8d)](_0x3ebfef);}async[_0x1fd012(0x8c)](_0x187c46){const _0x3fe8bc=_0x1fd012;return this[_0x3fe8bc(0x94)](_0x187c46);}async[_0x1fd012(0x94)](_0x527b36){const _0x1a235f=_0x1fd012,_0x33f71c=this[_0x1a235f(0x8a)]['get'](_0x4ef169[_0x1a235f(0x8f)]);if(!_0x33f71c)throw new Error(_0x1a235f(0xa1));return _0x33f71c[_0x1a235f(0x87)](_0x527b36,_0x165d91[_0x1a235f(0xa4)]);}async[_0x1fd012(0x84)](_0x492237){return this['importDOCXToSnapshotAsync'](_0x492237);}async[_0x1fd012(0x83)](_0xa64de0){const _0x5eed5a=_0x1fd012,_0x2bfd90=this[_0x5eed5a(0x8a)]['get'](_0x4ef169['IExchangeService']);if(!_0x2bfd90)throw new Error(_0x5eed5a(0xa1));return _0x2bfd90[_0x5eed5a(0x84)](_0xa64de0);}}_0x609de8[_0x1fd012(0xa2)][_0x1fd012(0xa6)](_0x4a85d3);}));function _0x1208(_0x270695,_0x569a16){const _0x4b9352=_0x4b93();return _0x1208=function(_0x120818,_0x52562d){_0x120818=_0x120818-0x80;let _0x275874=_0x4b9352[_0x120818];return _0x275874;},_0x1208(_0x270695,_0x569a16);}function _0x4b93(){const _0x30aa37=['UniverCoreFacade','importFileToUnitId','importXLSXToUnitIdAsync','UNIVER_SLIDE','_injector','44407TqUknr','importDOCXToUnitId','exportXLSXBySnapshot','1129868nnNvMp','IExchangeService','importXLSXToSnapshotAsync','importXLSXToUnitId','exportXLSXByUnitId','UNIVER_PROJECT','importDOCXToUnitIdAsync','941458mAmheG','1141760DCcAVs','UNIVER_SHEET','UniverProExchangeClient','439075fZYUgw','@univerjs/core/facade','object','6jZpPZt','amd','importXLSXToSnapshot','exportXLSXBySnapshotAsync','455044LmTUTs','The\x20exchange\x20service\x20is\x20not\x20available','FUniver','exportXLSXByUnitIdAsync','UNIVER_DOC','2003436eBpTje','extend','get','3IPcKid','UNRECOGNIZED','importDOCXToSnapshotAsync','importDOCXToSnapshot','UNIVER_UNKNOWN'];_0x4b93=function(){return _0x30aa37;};return _0x4b93();}
|