@univerjs-pro/exchange-client 0.7.0-nightly.202505181606 → 0.7.0-nightly.202505191607
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/facade/f-univer.d.ts +28 -0
- package/lib/types/services/operate.service.d.ts +2 -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 +6 -6
package/lib/locale/en-US.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0xe157(_0x5f43dd,_0x22811e){const _0x930bf3=_0x930b();return _0xe157=function(_0xe157e1,_0x43571c){_0xe157e1=_0xe157e1-0x198;let _0x44c5fd=_0x930bf3[_0xe157e1];return _0x44c5fd;},_0xe157(_0x5f43dd,_0x22811e);}function _0x930b(){const _0x5c549c=['6BxKlPe','Please\x20wait...','Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','Data\x20is\x20too\x20large','3717813mBHRdf','188067zFQfZj','439080GGjltH','Unknown\x20mistake','803229XHaUBM','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','16ShWHEj','Cancel','660944zKqtrw','10YQOKsz','8idQJAm','Downloading','721965oOvfnh','Save\x20As','{0}\x20file(s)\x20uploaded\x20successfully','Network\x20error','3233709usLpwS','File'];_0x930b=function(){return _0x5c549c;};return _0x930b();}const _0x2357e9=_0xe157;(function(_0x48e78d,_0x39793a){const _0x37bb96=_0xe157,_0x2b2a8e=_0x48e78d();while(!![]){try{const _0x19b649=-parseInt(_0x37bb96(0x19a))/0x1+-parseInt(_0x37bb96(0x1a2))/0x2*(-parseInt(_0x37bb96(0x199))/0x3)+parseInt(_0x37bb96(0x1a0))/0x4+parseInt(_0x37bb96(0x1a4))/0x5*(-parseInt(_0x37bb96(0x1aa))/0x6)+-parseInt(_0x37bb96(0x19c))/0x7*(parseInt(_0x37bb96(0x19e))/0x8)+parseInt(_0x37bb96(0x1a8))/0x9+-parseInt(_0x37bb96(0x1a1))/0xa*(-parseInt(_0x37bb96(0x198))/0xb);if(_0x19b649===_0x39793a)break;else _0x2b2a8e['push'](_0x2b2a8e['shift']());}catch(_0xffebd1){_0x2b2a8e['push'](_0x2b2a8e['shift']());}}}(_0x930b,0x49515));const e={'exchange':{'file':_0x2357e9(0x1a9),'upload':'Open(File)','download':_0x2357e9(0x1a5),'uploading':'Uploading','uploadSuccess':'File\x20uploaded\x20successfully','uploadSuccessTip':_0x2357e9(0x1a6),'downloading':_0x2357e9(0x1a3),'downloadSuccess':'Download\x20success','unknownMistake':_0x2357e9(0x19b),'networkError':_0x2357e9(0x1a7),'tooLarge':_0x2357e9(0x1ad),'internalError':'Internal\x20unknown\x20error','interrupt':_0x2357e9(0x19d),'fileTypeError':_0x2357e9(0x1ac),'wait':_0x2357e9(0x1ab),'cancel':_0x2357e9(0x19f),'uploadAgain':'Upload\x20again'}};export{e as default};
|
package/lib/locale/fa-IR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
function _0x35fd(){const _0x4e6c5b=['392EvFvyC','136248CZSANP','1539164iioBnI','7jWQNUi','15715CNnGPD','بازکردن(فایل)','ذخیره\x20به\x20عنوان','لغو','در\x20حال\x20بارگذاری','فایل','اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','3539430ykCYvS','خطای\x20داخلی\x20ناشناخته','87498xoRDLv','14ZJCmWD','864908QLUKcE','خطای\x20شبکه','{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','داده\x20خیلی\x20بزرگ\x20است','96vMvAuS','2487714TaCioq','فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','لطفا\x20صبر\x20کنید...','بارگذاری\x20مجدد'];_0x35fd=function(){return _0x4e6c5b;};return _0x35fd();}const _0x1710e8=_0x52be;(function(_0x3b3e57,_0x5b77e3){const _0x57298a=_0x52be,_0x4718dc=_0x3b3e57();while(!![]){try{const _0x41da85=parseInt(_0x57298a(0xb2))/0x1+parseInt(_0x57298a(0xb1))/0x2*(parseInt(_0x57298a(0xbc))/0x3)+parseInt(_0x57298a(0xbb))/0x4*(-parseInt(_0x57298a(0xbf))/0x5)+parseInt(_0x57298a(0xb7))/0x6*(-parseInt(_0x57298a(0xbe))/0x7)+parseInt(_0x57298a(0xb6))/0x8*(-parseInt(_0x57298a(0xb0))/0x9)+parseInt(_0x57298a(0xae))/0xa+-parseInt(_0x57298a(0xbd))/0xb;if(_0x41da85===_0x5b77e3)break;else _0x4718dc['push'](_0x4718dc['shift']());}catch(_0x4de949){_0x4718dc['push'](_0x4718dc['shift']());}}}(_0x35fd,0x881e6));function _0x52be(_0x303989,_0x5b0140){const _0x35fda2=_0x35fd();return _0x52be=function(_0x52be71,_0x58d9a0){_0x52be71=_0x52be71-0xad;let _0x549032=_0x35fda2[_0x52be71];return _0x549032;},_0x52be(_0x303989,_0x5b0140);}const o={'exchange':{'file':_0x1710e8(0xc4),'upload':_0x1710e8(0xc0),'download':_0x1710e8(0xc1),'uploading':_0x1710e8(0xc3),'uploadSuccess':_0x1710e8(0xb8),'uploadSuccessTip':_0x1710e8(0xb4),'downloading':'در\x20حال\x20دانلود','downloadSuccess':'دانلود\x20موفقیت\x20آمیز','unknownMistake':'خطای\x20ناشناخته','networkError':_0x1710e8(0xb3),'tooLarge':_0x1710e8(0xb5),'internalError':_0x1710e8(0xaf),'interrupt':_0x1710e8(0xad),'fileTypeError':'فایل\x20انتخاب\x20شده\x20[{0}]\x20برای\x20بارگذاری\x20پشتیبانی\x20نمیشود','wait':_0x1710e8(0xb9),'cancel':_0x1710e8(0xc2),'uploadAgain':_0x1710e8(0xba)}};export{o as default};
|
package/lib/locale/fr-FR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0x748d(){const _0x52f2d6=['2649105aHHsSz','Veuillez\x20patienter...','2949762kwcEhv','Télécharger\x20à\x20nouveau','2989592sudbhU','Fichier','43880uhSuvi','Ouvrir\x20(Fichier)','464024KffmnM','Erreur\x20réseau','Erreur\x20inconnue','La\x20connexion\x20réseau\x20a\x20été\x20interrompue\x20et\x20le\x20téléchargement\x20du\x20fichier\x20a\x20échoué','{0}\x20fichier(s)\x20téléchargé(s)\x20avec\x20succès','Fichier\x20téléchargé\x20avec\x20succès','15FrgAxr','Erreur\x20interne\x20inconnue','Téléchargement','Annuler','2963088IbdirR','Téléchargement\x20réussi','33520170MqIzkN','6FegbaT','21eYnUNa'];_0x748d=function(){return _0x52f2d6;};return _0x748d();}const _0x97a57d=_0x370c;(function(_0x494294,_0x7567b8){const _0x3e9abf=_0x370c,_0x2c3262=_0x494294();while(!![]){try{const _0x16f8d2=-parseInt(_0x3e9abf(0x1cf))/0x1+parseInt(_0x3e9abf(0x1cd))/0x2+-parseInt(_0x3e9abf(0x1dc))/0x3*(parseInt(_0x3e9abf(0x1cb))/0x4)+parseInt(_0x3e9abf(0x1d5))/0x5*(-parseInt(_0x3e9abf(0x1e0))/0x6)+-parseInt(_0x3e9abf(0x1dd))/0x7*(-parseInt(_0x3e9abf(0x1d9))/0x8)+-parseInt(_0x3e9abf(0x1de))/0x9+parseInt(_0x3e9abf(0x1db))/0xa;if(_0x16f8d2===_0x7567b8)break;else _0x2c3262['push'](_0x2c3262['shift']());}catch(_0x561a2a){_0x2c3262['push'](_0x2c3262['shift']());}}}(_0x748d,0xb8d4d));function _0x370c(_0x3d8bc3,_0xea15ea){const _0x748dd8=_0x748d();return _0x370c=function(_0x370cc2,_0x121577){_0x370cc2=_0x370cc2-0x1cb;let _0x5ae4a2=_0x748dd8[_0x370cc2];return _0x5ae4a2;},_0x370c(_0x3d8bc3,_0xea15ea);}const e={'exchange':{'file':_0x97a57d(0x1cc),'upload':_0x97a57d(0x1ce),'download':'Enregistrer\x20sous','uploading':'Téléchargement\x20en\x20cours','uploadSuccess':_0x97a57d(0x1d4),'uploadSuccessTip':_0x97a57d(0x1d3),'downloading':_0x97a57d(0x1d7),'downloadSuccess':_0x97a57d(0x1da),'unknownMistake':_0x97a57d(0x1d1),'networkError':_0x97a57d(0x1d0),'tooLarge':'Les\x20données\x20sont\x20trop\x20volumineuses','internalError':_0x97a57d(0x1d6),'interrupt':_0x97a57d(0x1d2),'fileTypeError':'Le\x20fichier\x20sélectionné\x20[{0}]\x20n\x27est\x20pas\x20pris\x20en\x20charge\x20pour\x20le\x20téléchargement','wait':_0x97a57d(0x1df),'cancel':_0x97a57d(0x1d8),'uploadAgain':_0x97a57d(0x1e1)}};export{e as default};
|
package/lib/locale/ru-RU.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0x3140(_0x13121a,_0x10b616){const _0x49c2d5=_0x49c2();return _0x3140=function(_0x3140a8,_0x16b35f){_0x3140a8=_0x3140a8-0x150;let _0x278480=_0x49c2d5[_0x3140a8];return _0x278480;},_0x3140(_0x13121a,_0x10b616);}const _0x3dd67b=_0x3140;(function(_0x2e253e,_0x77eeae){const _0x4ad83e=_0x3140,_0x4b49da=_0x2e253e();while(!![]){try{const _0xd4c4de=parseInt(_0x4ad83e(0x15b))/0x1+parseInt(_0x4ad83e(0x161))/0x2+parseInt(_0x4ad83e(0x157))/0x3*(-parseInt(_0x4ad83e(0x163))/0x4)+parseInt(_0x4ad83e(0x152))/0x5+-parseInt(_0x4ad83e(0x15e))/0x6*(parseInt(_0x4ad83e(0x15f))/0x7)+parseInt(_0x4ad83e(0x159))/0x8*(-parseInt(_0x4ad83e(0x153))/0x9)+parseInt(_0x4ad83e(0x15a))/0xa;if(_0xd4c4de===_0x77eeae)break;else _0x4b49da['push'](_0x4b49da['shift']());}catch(_0x6c0a03){_0x4b49da['push'](_0x4b49da['shift']());}}}(_0x49c2,0xca549));const o={'exchange':{'file':'Файл','upload':_0x3dd67b(0x165),'download':'Сохранить\x20как','uploading':_0x3dd67b(0x15c),'uploadSuccess':'Файл\x20успешно\x20загружен','uploadSuccessTip':_0x3dd67b(0x162),'downloading':_0x3dd67b(0x156),'downloadSuccess':_0x3dd67b(0x160),'unknownMistake':_0x3dd67b(0x158),'networkError':_0x3dd67b(0x154),'tooLarge':_0x3dd67b(0x155),'internalError':_0x3dd67b(0x150),'interrupt':_0x3dd67b(0x164),'fileTypeError':'Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','wait':'Пожалуйста,\x20подождите...','cancel':_0x3dd67b(0x151),'uploadAgain':_0x3dd67b(0x15d)}};export{o as default};function _0x49c2(){const _0x131e88=['Сетевая\x20ошибка','Данные\x20слишком\x20большие','Скачивание','102JMWrxa','Неизвестная\x20ошибка','8iUTnuO','20441990uIvpQy','1566319zcvJnv','Загрузка','Загрузить\x20снова','2340SIFJZF','26803zDOuxM','Скачивание\x20успешно','207762hLuJxG','{0}\x20файл(ов)\x20успешно\x20загружен(о)','172936ewxDof','Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','Открыть(Файл)','Внутренняя\x20неизвестная\x20ошибка','Отмена','3940645zOcGxe','6394653ZEkLdc'];_0x49c2=function(){return _0x131e88;};return _0x49c2();}
|
package/lib/locale/vi-VN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x2f2424=_0x5ed9;(function(_0x5b3952,_0x40c03a){const _0xc7258f=_0x5ed9,_0x1cbfc3=_0x5b3952();while(!![]){try{const _0x51ca2e=parseInt(_0xc7258f(0xb5))/0x1+-parseInt(_0xc7258f(0xc3))/0x2*(parseInt(_0xc7258f(0xc2))/0x3)+parseInt(_0xc7258f(0xc8))/0x4*(-parseInt(_0xc7258f(0xbc))/0x5)+-parseInt(_0xc7258f(0xcc))/0x6+parseInt(_0xc7258f(0xc1))/0x7+parseInt(_0xc7258f(0xb9))/0x8+-parseInt(_0xc7258f(0xc4))/0x9*(-parseInt(_0xc7258f(0xca))/0xa);if(_0x51ca2e===_0x40c03a)break;else _0x1cbfc3['push'](_0x1cbfc3['shift']());}catch(_0x495d8e){_0x1cbfc3['push'](_0x1cbfc3['shift']());}}}(_0x190e,0x84514));function _0x5ed9(_0x3e8898,_0xe7cd44){const _0x190e61=_0x190e();return _0x5ed9=function(_0x5ed907,_0x27a91a){_0x5ed907=_0x5ed907-0xb5;let _0x166cc0=_0x190e61[_0x5ed907];return _0x166cc0;},_0x5ed9(_0x3e8898,_0xe7cd44);}const n={'exchange':{'file':_0x2f2424(0xb6),'upload':_0x2f2424(0xcb),'download':_0x2f2424(0xc9),'uploading':'Đang\x20tải\x20lên','uploadSuccess':'Tải\x20lên\x20tệp\x20thành\x20công','uploadSuccessTip':_0x2f2424(0xc0),'downloading':_0x2f2424(0xc5),'downloadSuccess':_0x2f2424(0xba),'unknownMistake':_0x2f2424(0xb7),'networkError':'Lỗi\x20mạng','tooLarge':_0x2f2424(0xc6),'internalError':_0x2f2424(0xbd),'interrupt':_0x2f2424(0xbf),'fileTypeError':_0x2f2424(0xc7),'wait':_0x2f2424(0xbb),'cancel':_0x2f2424(0xbe),'uploadAgain':_0x2f2424(0xb8)}};function _0x190e(){const _0x47b786=['Vui\x20lòng\x20đợi...','1970zAOdao','Lỗi\x20không\x20xác\x20định\x20bên\x20trong','Hủy\x20bỏ','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','6788607YmWPNI','1005XFuHod','5018duIcQj','11106UmybNj','Đang\x20tải\x20xuống','Luồng\x20dữ\x20liệu\x20quá\x20lớn','Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','6396PIhpYN','Lưu\x20dưới\x20dạng','1730GlwcrA','Mở\x20(Tệp)','1775616dGliqr','844892bPsTeQ','Tệp','Lỗi\x20không\x20xác\x20định','Tải\x20lên\x20lại','2242032fNKcDQ','Tải\x20xuống\x20thành\x20công'];_0x190e=function(){return _0x47b786;};return _0x190e();}export{n as default};
|
package/lib/locale/zh-CN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x15307b=_0x5a84;(function(_0x43244a,_0x25167e){const _0x5a03ac=_0x5a84,_0x2a4223=_0x43244a();while(!![]){try{const _0x1101ee=-parseInt(_0x5a03ac(0xa6))/0x1+parseInt(_0x5a03ac(0x9c))/0x2+-parseInt(_0x5a03ac(0x9a))/0x3+-parseInt(_0x5a03ac(0xa2))/0x4+parseInt(_0x5a03ac(0x9b))/0x5+parseInt(_0x5a03ac(0x97))/0x6*(-parseInt(_0x5a03ac(0x99))/0x7)+parseInt(_0x5a03ac(0x98))/0x8*(parseInt(_0x5a03ac(0x9d))/0x9);if(_0x1101ee===_0x25167e)break;else _0x2a4223['push'](_0x2a4223['shift']());}catch(_0x45774d){_0x2a4223['push'](_0x2a4223['shift']());}}}(_0x48c0,0x5b8a0));function _0x48c0(){const _0x539350=['打开(文件)','网络连接中断,文件上传失败','文件上传成功','1483914PZBZsJ','461432yzzXht','7FsWSGD','2094693xGTmgT','2599620icCcOt','597730wbQgcs','207McoLKk','内部未知错误','再次上传','所选文件\x20[{0}]\x20不支持上传','网络异常','1070712EHZlen','未知错误','上传中','{0}个文件上传成功','557234ftjYQY'];_0x48c0=function(){return _0x539350;};return _0x48c0();}const o={'exchange':{'file':'文件','upload':_0x15307b(0xa7),'download':'另存为','uploading':_0x15307b(0xa4),'uploadSuccess':_0x15307b(0xa9),'uploadSuccessTip':_0x15307b(0xa5),'downloading':'下载中','downloadSuccess':'下载成功','unknownMistake':_0x15307b(0xa3),'networkError':_0x15307b(0xa1),'tooLarge':'数据流过大','internalError':_0x15307b(0x9e),'interrupt':_0x15307b(0xa8),'fileTypeError':_0x15307b(0xa0),'wait':'请稍等...','cancel':'取消','uploadAgain':_0x15307b(0x9f)}};function _0x5a84(_0x2930d5,_0x8e0a08){const _0x48c0c0=_0x48c0();return _0x5a84=function(_0x5a843f,_0xe6e410){_0x5a843f=_0x5a843f-0x97;let _0x22fa1e=_0x48c0c0[_0x5a843f];return _0x22fa1e;},_0x5a84(_0x2930d5,_0x8e0a08);}export{o as default};
|
package/lib/locale/zh-TW.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
function _0x5972(){const _0xf957ef=['未知錯誤','{0}個檔案上傳成功','檔案上傳成功','6xeYMGo','62205MeAqRp','1048ghCYRU','網路連線中斷,檔案上傳失敗','上傳中','77427giNgAA','4078870PqsAcw','2981mWAFuS','另存為','網路異常','內部未知錯誤','859667krivUY','資料流過大','855blKagG','15956FIyPrA','開啟(檔案)','所選檔案\x20[{0}]\x20不支援上傳','1149610jjpWTm','下載中','4JMVyJR'];_0x5972=function(){return _0xf957ef;};return _0x5972();}const _0x243262=_0xf240;(function(_0x4ed59c,_0x34a62f){const _0x7404a8=_0xf240,_0x5d7bc0=_0x4ed59c();while(!![]){try{const _0x1b00f9=parseInt(_0x7404a8(0x1c2))/0x1+parseInt(_0x7404a8(0x1ca))/0x2*(parseInt(_0x7404a8(0x1cf))/0x3)+-parseInt(_0x7404a8(0x1c5))/0x4*(-parseInt(_0x7404a8(0x1c4))/0x5)+-parseInt(_0x7404a8(0x1ce))/0x6*(parseInt(_0x7404a8(0x1c8))/0x7)+parseInt(_0x7404a8(0x1d0))/0x8*(-parseInt(_0x7404a8(0x1d3))/0x9)+parseInt(_0x7404a8(0x1d4))/0xa+parseInt(_0x7404a8(0x1d5))/0xb;if(_0x1b00f9===_0x34a62f)break;else _0x5d7bc0['push'](_0x5d7bc0['shift']());}catch(_0x2a33da){_0x5d7bc0['push'](_0x5d7bc0['shift']());}}}(_0x5972,0xaaf1f));const o={'exchange':{'file':'檔案','upload':_0x243262(0x1c6),'download':_0x243262(0x1d6),'uploading':_0x243262(0x1d2),'uploadSuccess':_0x243262(0x1cd),'uploadSuccessTip':_0x243262(0x1cc),'downloading':_0x243262(0x1c9),'downloadSuccess':'下載成功','unknownMistake':_0x243262(0x1cb),'networkError':_0x243262(0x1d7),'tooLarge':_0x243262(0x1c3),'internalError':_0x243262(0x1d8),'interrupt':_0x243262(0x1d1),'fileTypeError':_0x243262(0x1c7),'wait':'請稍等...','cancel':'取消','uploadAgain':'再次上傳'}};function _0xf240(_0x290361,_0x31cb5a){const _0x5972c1=_0x5972();return _0xf240=function(_0xf240b,_0x9aed30){_0xf240b=_0xf240b-0x1c2;let _0x316866=_0x5972c1[_0xf240b];return _0x316866;},_0xf240(_0x290361,_0x31cb5a);}export{o as default};
|
@@ -167,6 +167,32 @@ export interface IFUniverExchangeClientMixin {
|
|
167
167
|
* ```
|
168
168
|
*/
|
169
169
|
importDOCXToSnapshotAsync(file: string | File): Promise<IDocumentData | undefined>;
|
170
|
+
/**
|
171
|
+
* Export DOCX file by snapshot
|
172
|
+
* @param snapshot Document data
|
173
|
+
* @returns DOCX file
|
174
|
+
*
|
175
|
+
* @example
|
176
|
+
* ```typescript
|
177
|
+
* const snapshot = univerAPI.getActiveDocument().save();
|
178
|
+
* const file = await univerAPI.exportDOCXBySnapshotAsync(snapshot);
|
179
|
+
* downloadFile(file, 'univer', 'docx');
|
180
|
+
* ```
|
181
|
+
*/
|
182
|
+
exportDOCXBySnapshotAsync(snapshot: IDocumentData): Promise<File | undefined>;
|
183
|
+
/**
|
184
|
+
* Export DOCX file by unit id
|
185
|
+
* @param unitId Unit id
|
186
|
+
* @returns XLSX file
|
187
|
+
*
|
188
|
+
* @example
|
189
|
+
* ```typescript
|
190
|
+
* const unitId = univerAPI.getActiveWorkbook().getId();
|
191
|
+
* const file = await univerAPI.exportDOCXByUnitIdAsync(unitId);
|
192
|
+
* downloadFile(file, 'univer', 'docx');
|
193
|
+
* ```
|
194
|
+
*/
|
195
|
+
exportDOCXByUnitIdAsync(unitId: string): Promise<File | undefined>;
|
170
196
|
}
|
171
197
|
export declare class FUniverExchangeClientMixin extends FUniver implements IFUniverExchangeClientMixin {
|
172
198
|
/**
|
@@ -229,6 +255,8 @@ export declare class FUniverExchangeClientMixin extends FUniver implements IFUni
|
|
229
255
|
* @param file File path or file object
|
230
256
|
*/
|
231
257
|
importDOCXToSnapshotAsync(file: string | File): Promise<IDocumentData | undefined>;
|
258
|
+
exportDOCXBySnapshotAsync(snapshot: IDocumentData): Promise<File | undefined>;
|
259
|
+
exportDOCXByUnitIdAsync(unitId: string): Promise<File | undefined>;
|
232
260
|
}
|
233
261
|
declare module '@univerjs/core/facade' {
|
234
262
|
interface FUniver extends IFUniverExchangeClientMixin {
|
@@ -100,8 +100,10 @@ export declare class ExchangeOperateService extends Disposable implements IExcha
|
|
100
100
|
registerLink(getLink: (unitId: string, univerType: UniverInstanceType) => string): void;
|
101
101
|
private _importFileToUnitId;
|
102
102
|
private _getUnitID;
|
103
|
+
private _getUnitIDDoc;
|
103
104
|
private _getUnitName;
|
104
105
|
private _getUnitJson;
|
106
|
+
private _getUnitDocJson;
|
105
107
|
/**
|
106
108
|
* Get unit link /?unit={unitId}&type=2
|
107
109
|
* @param unitId
|
package/lib/umd/facade.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
(function(
|
1
|
+
function _0x33a6(){const _0x235b5f=['825200DJlXKR','extend','exportDOCXByUnitIdAsync','exportDOCXBySnapshot','IExchangeService','UNIVER_UNKNOWN','6TnVSyQ','importFileToUnitId','UNIVER_SLIDE','@univerjs-pro/exchange-client','importXLSXToSnapshotAsync','262sTxZUo','exportXLSXBySnapshotAsync','572220paRCUx','@univerjs/core/facade','exportXLSXByUnitId','UniverCoreFacade','2771772pcZwno','2116373mKeNTw','exportXLSXBySnapshot','function','1312485MyJhJM','importDOCXToUnitIdAsync','UNRECOGNIZED','UNIVER_DOC','UniverProExchangeClient','importXLSXToSnapshot','exportXLSXByUnitIdAsync','FUniver','The\x20exchange\x20service\x20is\x20not\x20available','get','importDOCXToSnapshotAsync','importDOCXToUnitId','exportDOCXBySnapshotAsync','UNIVER_PROJECT','8639eoRphY','4232084qtElSE','UNIVER_SHEET','importDOCXToSnapshot','_injector'];_0x33a6=function(){return _0x235b5f;};return _0x33a6();}function _0xd716(_0x2edd54,_0x4a346c){const _0x33a67a=_0x33a6();return _0xd716=function(_0xd716c3,_0x24cb93){_0xd716c3=_0xd716c3-0x122;let _0xcfec09=_0x33a67a[_0xd716c3];return _0xcfec09;},_0xd716(_0x2edd54,_0x4a346c);}(function(_0xa32249,_0x53f05c){const _0x161a66=_0xd716,_0x56af90=_0xa32249();while(!![]){try{const _0x311c1c=-parseInt(_0x161a66(0x124))/0x1*(parseInt(_0x161a66(0x134))/0x2)+parseInt(_0x161a66(0x13a))/0x3+parseInt(_0x161a66(0x125))/0x4+-parseInt(_0x161a66(0x13e))/0x5+parseInt(_0x161a66(0x12f))/0x6*(parseInt(_0x161a66(0x13b))/0x7)+-parseInt(_0x161a66(0x129))/0x8+-parseInt(_0x161a66(0x136))/0x9;if(_0x311c1c===_0x53f05c)break;else _0x56af90['push'](_0x56af90['shift']());}catch(_0x1bfc53){_0x56af90['push'](_0x56af90['shift']());}}}(_0x33a6,0xb0994),function(_0x8bbb08,_0x6fd79e){const _0x1cf823=_0xd716;typeof exports=='object'&&typeof module<'u'?_0x6fd79e(require(_0x1cf823(0x132)),require('@univerjs/core/facade')):typeof define==_0x1cf823(0x13d)&&define['amd']?define([_0x1cf823(0x132),_0x1cf823(0x137)],_0x6fd79e):(_0x8bbb08=typeof globalThis<'u'?globalThis:_0x8bbb08||self,_0x6fd79e(_0x8bbb08[_0x1cf823(0x142)],_0x8bbb08[_0x1cf823(0x139)]));}(this,function(_0x5765b6,_0x9eb4b7){'use strict';const _0x85df04=_0xd716;var _0xfc443e=(_0x1cfeca=>(_0x1cfeca[_0x1cfeca[_0x85df04(0x12e)]=0x0]=_0x85df04(0x12e),_0x1cfeca[_0x1cfeca[_0x85df04(0x141)]=0x1]=_0x85df04(0x141),_0x1cfeca[_0x1cfeca[_0x85df04(0x126)]=0x2]='UNIVER_SHEET',_0x1cfeca[_0x1cfeca[_0x85df04(0x131)]=0x3]=_0x85df04(0x131),_0x1cfeca[_0x1cfeca[_0x85df04(0x123)]=0x4]=_0x85df04(0x123),_0x1cfeca[_0x1cfeca[_0x85df04(0x140)]=-0x1]=_0x85df04(0x140),_0x1cfeca))(_0xfc443e||{});class _0x47a95f extends _0x9eb4b7[_0x85df04(0x145)]{async['importXLSXToUnitId'](_0x25ebe9){return this['importXLSXToUnitIdAsync'](_0x25ebe9);}async['importXLSXToUnitIdAsync'](_0x5211e2){const _0x38d027=_0x85df04,_0x527496=this[_0x38d027(0x128)][_0x38d027(0x147)](_0x5765b6['IExchangeService']);if(!_0x527496)throw new Error(_0x38d027(0x146));return _0x527496[_0x38d027(0x130)](_0x5211e2,_0xfc443e[_0x38d027(0x126)]);}async[_0x85df04(0x143)](_0x435f09){const _0x41ce52=_0x85df04;return this[_0x41ce52(0x133)](_0x435f09);}async['importXLSXToSnapshotAsync'](_0x55159a){const _0x49be2f=_0x85df04,_0x283f06=this[_0x49be2f(0x128)][_0x49be2f(0x147)](_0x5765b6[_0x49be2f(0x12d)]);if(!_0x283f06)throw new Error(_0x49be2f(0x146));return _0x283f06[_0x49be2f(0x143)](_0x55159a);}async[_0x85df04(0x138)](_0x1f207a){return this['exportXLSXByUnitIdAsync'](_0x1f207a);}async[_0x85df04(0x144)](_0x26955){const _0x32a50b=_0x85df04,_0x8f1adc=this[_0x32a50b(0x128)][_0x32a50b(0x147)](_0x5765b6[_0x32a50b(0x12d)]);if(!_0x8f1adc)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x8f1adc[_0x32a50b(0x138)](_0x26955);}async[_0x85df04(0x13c)](_0x5fee50){return this['exportXLSXBySnapshotAsync'](_0x5fee50);}async[_0x85df04(0x135)](_0x52a29a){const _0x29be78=_0x85df04,_0x2a84de=this[_0x29be78(0x128)]['get'](_0x5765b6['IExchangeService']);if(!_0x2a84de)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x2a84de[_0x29be78(0x13c)](_0x52a29a);}async[_0x85df04(0x149)](_0x2982bf){const _0x31756d=_0x85df04;return this[_0x31756d(0x13f)](_0x2982bf);}async[_0x85df04(0x13f)](_0x3abccd){const _0x1fc452=_0x85df04,_0x32c4d9=this[_0x1fc452(0x128)][_0x1fc452(0x147)](_0x5765b6[_0x1fc452(0x12d)]);if(!_0x32c4d9)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x32c4d9[_0x1fc452(0x130)](_0x3abccd,_0xfc443e[_0x1fc452(0x141)]);}async[_0x85df04(0x127)](_0x547dd4){return this['importDOCXToSnapshotAsync'](_0x547dd4);}async[_0x85df04(0x148)](_0x2e5bb6){const _0x218603=_0x85df04,_0x1d8737=this['_injector'][_0x218603(0x147)](_0x5765b6['IExchangeService']);if(!_0x1d8737)throw new Error(_0x218603(0x146));return _0x1d8737['importDOCXToSnapshot'](_0x2e5bb6);}async[_0x85df04(0x122)](_0x11a518){const _0x3eb98b=_0x85df04,_0x65b3d3=this[_0x3eb98b(0x128)][_0x3eb98b(0x147)](_0x5765b6[_0x3eb98b(0x12d)]);if(!_0x65b3d3)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x65b3d3[_0x3eb98b(0x12c)](_0x11a518);}async[_0x85df04(0x12b)](_0x22535f){const _0x19a1e8=_0x85df04,_0x5da8b8=this[_0x19a1e8(0x128)][_0x19a1e8(0x147)](_0x5765b6[_0x19a1e8(0x12d)]);if(!_0x5da8b8)throw new Error(_0x19a1e8(0x146));return _0x5da8b8['exportDOCXByUnitId'](_0x22535f);}}_0x9eb4b7[_0x85df04(0x145)][_0x85df04(0x12a)](_0x47a95f);}));
|