@univerjs-pro/exchange-client 0.6.5 → 0.6.6-experimental.20250319-2bbe26f
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
|
-
const
|
1
|
+
const _0x481008=_0x1a11;function _0x1a11(_0x56b14a,_0x1dae64){const _0x128c43=_0x128c();return _0x1a11=function(_0x1a114b,_0x353b36){_0x1a114b=_0x1a114b-0xd7;let _0x346ea2=_0x128c43[_0x1a114b];return _0x346ea2;},_0x1a11(_0x56b14a,_0x1dae64);}function _0x128c(){const _0x3c5dfd=['Download\x20success','44bqZwYf','6vDQzZZ','File\x20uploaded\x20successfully','270UoKDCi','Open(File)','217908NKMuUo','Upload\x20again','Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','12XGlLil','7heEVvx','33753wasrcX','3124146UdjzLN','Downloading','3219048WIodVd','{0}\x20file(s)\x20uploaded\x20successfully','File','Unknown\x20mistake','Internal\x20unknown\x20error','329332Orgeex','3192084SQThbM','Uploading','3609240dtrQro'];_0x128c=function(){return _0x3c5dfd;};return _0x128c();}(function(_0x4fe27b,_0x540feb){const _0x40ff89=_0x1a11,_0x129acf=_0x4fe27b();while(!![]){try{const _0x4a7a2c=-parseInt(_0x40ff89(0xe0))/0x1*(-parseInt(_0x40ff89(0xde))/0x2)+parseInt(_0x40ff89(0xd7))/0x3*(-parseInt(_0x40ff89(0xe8))/0x4)+parseInt(_0x40ff89(0xeb))/0x5+-parseInt(_0x40ff89(0xe1))/0x6*(-parseInt(_0x40ff89(0xdf))/0x7)+-parseInt(_0x40ff89(0xe3))/0x8+parseInt(_0x40ff89(0xdb))/0x9*(parseInt(_0x40ff89(0xd9))/0xa)+-parseInt(_0x40ff89(0xed))/0xb*(parseInt(_0x40ff89(0xe9))/0xc);if(_0x4a7a2c===_0x540feb)break;else _0x129acf['push'](_0x129acf['shift']());}catch(_0x21aa84){_0x129acf['push'](_0x129acf['shift']());}}}(_0x128c,0x722fa));const e={'exchange':{'file':_0x481008(0xe5),'upload':_0x481008(0xda),'download':'Save\x20As','uploading':_0x481008(0xea),'uploadSuccess':_0x481008(0xd8),'uploadSuccessTip':_0x481008(0xe4),'downloading':_0x481008(0xe2),'downloadSuccess':_0x481008(0xec),'unknownMistake':_0x481008(0xe6),'networkError':'Network\x20error','tooLarge':'Data\x20is\x20too\x20large','internalError':_0x481008(0xe7),'interrupt':'The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','fileTypeError':_0x481008(0xdd),'wait':'Please\x20wait...','cancel':'Cancel','uploadAgain':_0x481008(0xdc)}};export{e as default};
|
package/lib/es/locale/fa-IR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x13240b=_0x4f64;function _0x4f64(_0x3aa9d7,_0x5e4eeb){const _0x379d48=_0x379d();return _0x4f64=function(_0x4f6404,_0x1c3275){_0x4f6404=_0x4f6404-0x1bf;let _0x471b87=_0x379d48[_0x4f6404];return _0x471b87;},_0x4f64(_0x3aa9d7,_0x5e4eeb);}(function(_0x308848,_0x1f2248){const _0x2909a7=_0x4f64,_0x170558=_0x308848();while(!![]){try{const _0x1eef69=-parseInt(_0x2909a7(0x1cd))/0x1*(-parseInt(_0x2909a7(0x1d9))/0x2)+-parseInt(_0x2909a7(0x1d2))/0x3+-parseInt(_0x2909a7(0x1c0))/0x4*(parseInt(_0x2909a7(0x1d5))/0x5)+parseInt(_0x2909a7(0x1c7))/0x6*(-parseInt(_0x2909a7(0x1c8))/0x7)+parseInt(_0x2909a7(0x1d6))/0x8*(parseInt(_0x2909a7(0x1ca))/0x9)+parseInt(_0x2909a7(0x1d3))/0xa*(parseInt(_0x2909a7(0x1d4))/0xb)+parseInt(_0x2909a7(0x1c3))/0xc;if(_0x1eef69===_0x1f2248)break;else _0x170558['push'](_0x170558['shift']());}catch(_0x5588fc){_0x170558['push'](_0x170558['shift']());}}}(_0x379d,0xd6f60));function _0x379d(){const _0x1397be=['7QuzmEs','خطای\x20ناشناخته','فایل\x20انتخاب\x20شده\x20[{0}]\x20برای\x20بارگذاری\x20پشتیبانی\x20نمیشود','بارگذاری\x20مجدد','فایل','4017549JPHklK','30UMtklS','5578969PKVwJA','50005rnykHU','481576Ibbtgl','خطای\x20شبکه','فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','120154kpyDIU','خطای\x20داخلی\x20ناشناخته','580YmXGOY','لغو','ذخیره\x20به\x20عنوان','31570380SQqcMa','داده\x20خیلی\x20بزرگ\x20است','دانلود\x20موفقیت\x20آمیز','لطفا\x20صبر\x20کنید...','1625586wwrEtr','28cqNNgy','{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','27Hrhfbd','در\x20حال\x20دانلود','در\x20حال\x20بارگذاری'];_0x379d=function(){return _0x1397be;};return _0x379d();}const o={'exchange':{'file':_0x13240b(0x1d1),'upload':'بازکردن(فایل)','download':_0x13240b(0x1c2),'uploading':_0x13240b(0x1cc),'uploadSuccess':_0x13240b(0x1d8),'uploadSuccessTip':_0x13240b(0x1c9),'downloading':_0x13240b(0x1cb),'downloadSuccess':_0x13240b(0x1c5),'unknownMistake':_0x13240b(0x1ce),'networkError':_0x13240b(0x1d7),'tooLarge':_0x13240b(0x1c4),'internalError':_0x13240b(0x1bf),'interrupt':'اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','fileTypeError':_0x13240b(0x1cf),'wait':_0x13240b(0x1c6),'cancel':_0x13240b(0x1c1),'uploadAgain':_0x13240b(0x1d0)}};export{o as default};
|
package/lib/es/locale/fr-FR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
function _0x47af(_0x8f8b92,_0x40419c){const _0x454cc6=_0x454c();return _0x47af=function(_0x47afa9,_0x55c78a){_0x47afa9=_0x47afa9-0x17d;let _0x57d52c=_0x454cc6[_0x47afa9];return _0x57d52c;},_0x47af(_0x8f8b92,_0x40419c);}function _0x454c(){const _0x4d7b2e=['Erreur\x20inconnue','355656ROFBdw','Fichier\x20téléchargé\x20avec\x20succès','Téléchargement\x20réussi','4807430bctQjH','{0}\x20fichier(s)\x20téléchargé(s)\x20avec\x20succès','8fEEucO','Télécharger\x20à\x20nouveau','Annuler','Les\x20données\x20sont\x20trop\x20volumineuses','Le\x20fichier\x20sélectionné\x20[{0}]\x20n\x27est\x20pas\x20pris\x20en\x20charge\x20pour\x20le\x20téléchargement','Erreur\x20interne\x20inconnue','3231348NloMbr','833717AhLkSY','La\x20connexion\x20réseau\x20a\x20été\x20interrompue\x20et\x20le\x20téléchargement\x20du\x20fichier\x20a\x20échoué','Téléchargement\x20en\x20cours','Enregistrer\x20sous','3507525YySWgl','Téléchargement','Veuillez\x20patienter...','29324961whPyDt','465798xhCrKs','28OkKlYO'];_0x454c=function(){return _0x4d7b2e;};return _0x454c();}const _0x20f843=_0x47af;(function(_0x1bf148,_0x34b147){const _0x10b99f=_0x47af,_0x54d46f=_0x1bf148();while(!![]){try{const _0x5e4f38=parseInt(_0x10b99f(0x180))/0x1+-parseInt(_0x10b99f(0x18b))/0x2+parseInt(_0x10b99f(0x184))/0x3+parseInt(_0x10b99f(0x17f))/0x4+parseInt(_0x10b99f(0x18e))/0x5+parseInt(_0x10b99f(0x188))/0x6*(parseInt(_0x10b99f(0x189))/0x7)+-parseInt(_0x10b99f(0x190))/0x8*(parseInt(_0x10b99f(0x187))/0x9);if(_0x5e4f38===_0x34b147)break;else _0x54d46f['push'](_0x54d46f['shift']());}catch(_0x4eab90){_0x54d46f['push'](_0x54d46f['shift']());}}}(_0x454c,0x9ddbe));const e={'exchange':{'file':'Fichier','upload':'Ouvrir\x20(Fichier)','download':_0x20f843(0x183),'uploading':_0x20f843(0x182),'uploadSuccess':_0x20f843(0x18c),'uploadSuccessTip':_0x20f843(0x18f),'downloading':_0x20f843(0x185),'downloadSuccess':_0x20f843(0x18d),'unknownMistake':_0x20f843(0x18a),'networkError':'Erreur\x20réseau','tooLarge':_0x20f843(0x193),'internalError':_0x20f843(0x17e),'interrupt':_0x20f843(0x181),'fileTypeError':_0x20f843(0x17d),'wait':_0x20f843(0x186),'cancel':_0x20f843(0x192),'uploadAgain':_0x20f843(0x191)}};export{e as default};
|
package/lib/es/locale/ru-RU.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x105bb2=_0x3161;(function(_0x25934c,_0x2d0682){const _0x20b468=_0x3161,_0x35a47d=_0x25934c();while(!![]){try{const _0xf6b68b=-parseInt(_0x20b468(0xdd))/0x1*(parseInt(_0x20b468(0xd4))/0x2)+parseInt(_0x20b468(0xe3))/0x3+parseInt(_0x20b468(0xd7))/0x4*(-parseInt(_0x20b468(0xd2))/0x5)+-parseInt(_0x20b468(0xe6))/0x6+parseInt(_0x20b468(0xd5))/0x7*(-parseInt(_0x20b468(0xe1))/0x8)+-parseInt(_0x20b468(0xe0))/0x9+parseInt(_0x20b468(0xe5))/0xa*(parseInt(_0x20b468(0xe2))/0xb);if(_0xf6b68b===_0x2d0682)break;else _0x35a47d['push'](_0x35a47d['shift']());}catch(_0x133b36){_0x35a47d['push'](_0x35a47d['shift']());}}}(_0x540c,0x9b190));const o={'exchange':{'file':_0x105bb2(0xda),'upload':_0x105bb2(0xdb),'download':_0x105bb2(0xdc),'uploading':_0x105bb2(0xdf),'uploadSuccess':'Файл\x20успешно\x20загружен','uploadSuccessTip':_0x105bb2(0xe4),'downloading':'Скачивание','downloadSuccess':_0x105bb2(0xde),'unknownMistake':_0x105bb2(0xd0),'networkError':_0x105bb2(0xe7),'tooLarge':'Данные\x20слишком\x20большие','internalError':_0x105bb2(0xd9),'interrupt':_0x105bb2(0xd6),'fileTypeError':'Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','wait':_0x105bb2(0xd8),'cancel':_0x105bb2(0xd3),'uploadAgain':_0x105bb2(0xd1)}};function _0x3161(_0x4c73a0,_0x358d87){const _0x540c88=_0x540c();return _0x3161=function(_0x31611b,_0x4fee69){_0x31611b=_0x31611b-0xd0;let _0x782b9=_0x540c88[_0x31611b];return _0x782b9;},_0x3161(_0x4c73a0,_0x358d87);}function _0x540c(){const _0x22f5fc=['7429401aXELie','Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','1200448cVDNAa','Пожалуйста,\x20подождите...','Внутренняя\x20неизвестная\x20ошибка','Файл','Открыть(Файл)','Сохранить\x20как','3vtSOOv','Скачивание\x20успешно','Загрузка','9395514NnHmLQ','8OhGEJl','11KgewnG','2659269nSfedz','{0}\x20файл(ов)\x20успешно\x20загружен(о)','40070200MmxCdP','6241470GMjZzl','Сетевая\x20ошибка','Неизвестная\x20ошибка','Загрузить\x20снова','5GfQosk','Отмена','541678VVcLgQ'];_0x540c=function(){return _0x22f5fc;};return _0x540c();}export{o as default};
|
package/lib/es/locale/vi-VN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
const _0x1af013=_0x3941;(function(_0x1b8e9c,_0x4e23fc){const _0x476db5=_0x3941,_0x49f4a0=_0x1b8e9c();while(!![]){try{const _0x122f26=parseInt(_0x476db5(0x7a))/0x1*(-parseInt(_0x476db5(0x85))/0x2)+parseInt(_0x476db5(0x75))/0x3*(parseInt(_0x476db5(0x77))/0x4)+parseInt(_0x476db5(0x84))/0x5*(parseInt(_0x476db5(0x7c))/0x6)+parseInt(_0x476db5(0x79))/0x7*(parseInt(_0x476db5(0x7e))/0x8)+-parseInt(_0x476db5(0x76))/0x9+parseInt(_0x476db5(0x70))/0xa*(-parseInt(_0x476db5(0x74))/0xb)+-parseInt(_0x476db5(0x80))/0xc;if(_0x122f26===_0x4e23fc)break;else _0x49f4a0['push'](_0x49f4a0['shift']());}catch(_0x2706c5){_0x49f4a0['push'](_0x49f4a0['shift']());}}}(_0x5d8b,0x51f47));const n={'exchange':{'file':_0x1af013(0x89),'upload':_0x1af013(0x7b),'download':_0x1af013(0x86),'uploading':_0x1af013(0x83),'uploadSuccess':_0x1af013(0x87),'uploadSuccessTip':'{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','downloading':'Đang\x20tải\x20xuống','downloadSuccess':_0x1af013(0x72),'unknownMistake':_0x1af013(0x7f),'networkError':_0x1af013(0x78),'tooLarge':_0x1af013(0x7d),'internalError':_0x1af013(0x71),'interrupt':'Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','fileTypeError':_0x1af013(0x81),'wait':_0x1af013(0x88),'cancel':_0x1af013(0x73),'uploadAgain':_0x1af013(0x82)}};function _0x3941(_0x560a55,_0x247308){const _0x5d8bcb=_0x5d8b();return _0x3941=function(_0x39417e,_0x19a102){_0x39417e=_0x39417e-0x70;let _0x5bf80a=_0x5d8bcb[_0x39417e];return _0x5bf80a;},_0x3941(_0x560a55,_0x247308);}export{n as default};function _0x5d8b(){const _0x28010c=['Mở\x20(Tệp)','1098PKYLZv','Luồng\x20dữ\x20liệu\x20quá\x20lớn','8AwXMqd','Lỗi\x20không\x20xác\x20định','2550780KsPVSu','Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','Tải\x20lên\x20lại','Đang\x20tải\x20lên','195iRKsiv','32962vFbDTl','Lưu\x20dưới\x20dạng','Tải\x20lên\x20tệp\x20thành\x20công','Vui\x20lòng\x20đợi...','Tệp','30DAxrLW','Lỗi\x20không\x20xác\x20định\x20bên\x20trong','Tải\x20xuống\x20thành\x20công','Hủy\x20bỏ','52393JrXxsY','6gdsAgm','1174716PSHQxs','1100100DsFxSz','Lỗi\x20mạng','1066513MYCIym','1CXhMnp'];_0x5d8b=function(){return _0x28010c;};return _0x5d8b();}
|
package/lib/es/locale/zh-CN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
function _0x5b68(_0x3f76d2,_0x5d2131){const _0x515d09=_0x515d();return _0x5b68=function(_0x5b6875,_0x1f997a){_0x5b6875=_0x5b6875-0xc3;let _0xd7537b=_0x515d09[_0x5b6875];return _0xd7537b;},_0x5b68(_0x3f76d2,_0x5d2131);}const _0x4b2389=_0x5b68;function _0x515d(){const _0x4276bd=['下载成功','9PnwVre','网络连接中断,文件上传失败','另存为','7jSvCOE','网络异常','打开(文件)','所选文件\x20[{0}]\x20不支持上传','1gUQYde','40664bqHmBX','内部未知错误','2374290YSlLqz','数据流过大','9343854AKCTrW','591016aBIuKV','请稍等...','再次上传','285548zQGJwt','10709567MqNazS','10CVqxgu','2053908CaZqWp'];_0x515d=function(){return _0x4276bd;};return _0x515d();}(function(_0x339894,_0x1d1f6f){const _0xaca40c=_0x5b68,_0x2107af=_0x339894();while(!![]){try{const _0x17c941=parseInt(_0xaca40c(0xcd))/0x1*(-parseInt(_0xaca40c(0xd6))/0x2)+-parseInt(_0xaca40c(0xc6))/0x3*(-parseInt(_0xaca40c(0xce))/0x4)+parseInt(_0xaca40c(0xd0))/0x5+parseInt(_0xaca40c(0xd2))/0x6+parseInt(_0xaca40c(0xc9))/0x7*(parseInt(_0xaca40c(0xd3))/0x8)+-parseInt(_0xaca40c(0xc4))/0x9+-parseInt(_0xaca40c(0xc3))/0xa*(parseInt(_0xaca40c(0xd7))/0xb);if(_0x17c941===_0x1d1f6f)break;else _0x2107af['push'](_0x2107af['shift']());}catch(_0xe6ccf6){_0x2107af['push'](_0x2107af['shift']());}}}(_0x515d,0xc1597));const o={'exchange':{'file':'文件','upload':_0x4b2389(0xcb),'download':_0x4b2389(0xc8),'uploading':'上传中','uploadSuccess':'文件上传成功','uploadSuccessTip':'{0}个文件上传成功','downloading':'下载中','downloadSuccess':_0x4b2389(0xc5),'unknownMistake':'未知错误','networkError':_0x4b2389(0xca),'tooLarge':_0x4b2389(0xd1),'internalError':_0x4b2389(0xcf),'interrupt':_0x4b2389(0xc7),'fileTypeError':_0x4b2389(0xcc),'wait':_0x4b2389(0xd4),'cancel':'取消','uploadAgain':_0x4b2389(0xd5)}};export{o as default};
|
package/lib/es/locale/zh-TW.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x397829=_0x4fc7;(function(_0x573f60,_0x5c1870){const _0x3b443e=_0x4fc7,_0x3eceb6=_0x573f60();while(!![]){try{const _0x2d59ae=-parseInt(_0x3b443e(0x142))/0x1*(-parseInt(_0x3b443e(0x143))/0x2)+-parseInt(_0x3b443e(0x14d))/0x3+-parseInt(_0x3b443e(0x145))/0x4*(-parseInt(_0x3b443e(0x148))/0x5)+parseInt(_0x3b443e(0x152))/0x6*(-parseInt(_0x3b443e(0x150))/0x7)+-parseInt(_0x3b443e(0x144))/0x8*(parseInt(_0x3b443e(0x14b))/0x9)+parseInt(_0x3b443e(0x146))/0xa*(parseInt(_0x3b443e(0x141))/0xb)+parseInt(_0x3b443e(0x140))/0xc;if(_0x2d59ae===_0x5c1870)break;else _0x3eceb6['push'](_0x3eceb6['shift']());}catch(_0x3b0c97){_0x3eceb6['push'](_0x3eceb6['shift']());}}}(_0x2e25,0x7a93a));function _0x4fc7(_0x13d026,_0x3474d4){const _0x2e2518=_0x2e25();return _0x4fc7=function(_0x4fc7bf,_0x710274){_0x4fc7bf=_0x4fc7bf-0x140;let _0x5c93cb=_0x2e2518[_0x4fc7bf];return _0x5c93cb;},_0x4fc7(_0x13d026,_0x3474d4);}const o={'exchange':{'file':'檔案','upload':_0x397829(0x14f),'download':_0x397829(0x154),'uploading':_0x397829(0x151),'uploadSuccess':_0x397829(0x14c),'uploadSuccessTip':'{0}個檔案上傳成功','downloading':_0x397829(0x14a),'downloadSuccess':_0x397829(0x156),'unknownMistake':'未知錯誤','networkError':_0x397829(0x149),'tooLarge':'資料流過大','internalError':_0x397829(0x14e),'interrupt':_0x397829(0x155),'fileTypeError':_0x397829(0x147),'wait':'請稍等...','cancel':'取消','uploadAgain':_0x397829(0x153)}};export{o as default};function _0x2e25(){const _0x3e8935=['200CSLSSS','所選檔案\x20[{0}]\x20不支援上傳','637550olLusK','網路異常','下載中','18NOqfAV','檔案上傳成功','2575320KGBNCL','內部未知錯誤','開啟(檔案)','28mOdgsD','上傳中','717774OGztCs','再次上傳','另存為','網路連線中斷,檔案上傳失敗','下載成功','4220520vKhJSr','389213oKjdLa','2EIVuAf','652598JtjtMX','3062032VsKDvY','28yjjQiQ'];_0x2e25=function(){return _0x3e8935;};return _0x2e25();}
|
@@ -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(_0x21992b,_0xb91b6d){const _0x5f36c7=_0x2545,_0x382ee2=_0x21992b();while(!![]){try{const _0x5d7b66=parseInt(_0x5f36c7(0x15f))/0x1*(-parseInt(_0x5f36c7(0x161))/0x2)+parseInt(_0x5f36c7(0x14f))/0x3+parseInt(_0x5f36c7(0x15c))/0x4*(parseInt(_0x5f36c7(0x16c))/0x5)+-parseInt(_0x5f36c7(0x16a))/0x6*(-parseInt(_0x5f36c7(0x152))/0x7)+parseInt(_0x5f36c7(0x14c))/0x8+parseInt(_0x5f36c7(0x153))/0x9*(parseInt(_0x5f36c7(0x15e))/0xa)+-parseInt(_0x5f36c7(0x14b))/0xb;if(_0x5d7b66===_0xb91b6d)break;else _0x382ee2['push'](_0x382ee2['shift']());}catch(_0x2e5361){_0x382ee2['push'](_0x382ee2['shift']());}}}(_0xa6aa,0x18c95),function(_0x42db9a,_0x4180c2){const _0x29c4fd=_0x2545;typeof exports==_0x29c4fd(0x151)&&typeof module<'u'?_0x4180c2(require(_0x29c4fd(0x148)),require('@univerjs/core/facade')):typeof define==_0x29c4fd(0x146)&&define[_0x29c4fd(0x158)]?define([_0x29c4fd(0x148),_0x29c4fd(0x16d)],_0x4180c2):(_0x42db9a=typeof globalThis<'u'?globalThis:_0x42db9a||self,_0x4180c2(_0x42db9a['UniverProExchangeClient'],_0x42db9a[_0x29c4fd(0x168)]));}(this,function(_0x5a7f92,_0x5a15d8){'use strict';const _0x3773bf=_0x2545;var _0x1df74f=(_0x1b682e=>(_0x1b682e[_0x1b682e[_0x3773bf(0x16b)]=0x0]='UNIVER_UNKNOWN',_0x1b682e[_0x1b682e[_0x3773bf(0x14a)]=0x1]=_0x3773bf(0x14a),_0x1b682e[_0x1b682e['UNIVER_SHEET']=0x2]=_0x3773bf(0x165),_0x1b682e[_0x1b682e['UNIVER_SLIDE']=0x3]=_0x3773bf(0x157),_0x1b682e[_0x1b682e[_0x3773bf(0x15a)]=0x4]=_0x3773bf(0x15a),_0x1b682e[_0x1b682e[_0x3773bf(0x14e)]=-0x1]='UNRECOGNIZED',_0x1b682e))(_0x1df74f||{});class _0x27dd67 extends _0x5a15d8[_0x3773bf(0x150)]{async[_0x3773bf(0x164)](_0x836669){return this['importXLSXToUnitIdAsync'](_0x836669);}async['importXLSXToUnitIdAsync'](_0x3466ec){const _0x115212=_0x3773bf,_0x85eb45=this[_0x115212(0x147)][_0x115212(0x163)](_0x5a7f92[_0x115212(0x167)]);if(!_0x85eb45)throw new Error(_0x115212(0x149));return _0x85eb45['importFileToUnitId'](_0x3466ec,_0x1df74f[_0x115212(0x165)]);}async[_0x3773bf(0x160)](_0x366c19){const _0x1767c8=_0x3773bf;return this[_0x1767c8(0x166)](_0x366c19);}async[_0x3773bf(0x166)](_0x2c2650){const _0x3fd794=_0x3773bf,_0x81dda=this[_0x3fd794(0x147)][_0x3fd794(0x163)](_0x5a7f92[_0x3fd794(0x167)]);if(!_0x81dda)throw new Error(_0x3fd794(0x149));return _0x81dda[_0x3fd794(0x160)](_0x2c2650);}async[_0x3773bf(0x155)](_0x154281){const _0x5d9f35=_0x3773bf;return this[_0x5d9f35(0x15b)](_0x154281);}async['exportXLSXByUnitIdAsync'](_0xff70c5){const _0x303560=_0x3773bf,_0x1619da=this[_0x303560(0x147)][_0x303560(0x163)](_0x5a7f92[_0x303560(0x167)]);if(!_0x1619da)throw new Error(_0x303560(0x149));return _0x1619da[_0x303560(0x155)](_0xff70c5);}async[_0x3773bf(0x14d)](_0x787d9){const _0x46ff8f=_0x3773bf;return this[_0x46ff8f(0x15d)](_0x787d9);}async[_0x3773bf(0x15d)](_0x5734ee){const _0x4bd361=_0x3773bf,_0x19d05e=this[_0x4bd361(0x147)][_0x4bd361(0x163)](_0x5a7f92[_0x4bd361(0x167)]);if(!_0x19d05e)throw new Error(_0x4bd361(0x149));return _0x19d05e[_0x4bd361(0x14d)](_0x5734ee);}async[_0x3773bf(0x159)](_0x3ba4bf){const _0xa182f1=_0x3773bf;return this[_0xa182f1(0x156)](_0x3ba4bf);}async[_0x3773bf(0x156)](_0xde1b4d){const _0x180a95=_0x3773bf,_0x23fee1=this[_0x180a95(0x147)][_0x180a95(0x163)](_0x5a7f92[_0x180a95(0x167)]);if(!_0x23fee1)throw new Error(_0x180a95(0x149));return _0x23fee1[_0x180a95(0x162)](_0xde1b4d,_0x1df74f['UNIVER_DOC']);}async[_0x3773bf(0x154)](_0x1ea2a5){return this['importDOCXToSnapshotAsync'](_0x1ea2a5);}async[_0x3773bf(0x169)](_0x144390){const _0x5db5c7=_0x3773bf,_0x4aecf5=this['_injector'][_0x5db5c7(0x163)](_0x5a7f92[_0x5db5c7(0x167)]);if(!_0x4aecf5)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x4aecf5[_0x5db5c7(0x154)](_0x144390);}}_0x5a15d8[_0x3773bf(0x150)]['extend'](_0x27dd67);}));function _0x2545(_0xa7ced8,_0x26926a){const _0xa6aa3b=_0xa6aa();return _0x2545=function(_0x254549,_0x3cb817){_0x254549=_0x254549-0x146;let _0x424b2b=_0xa6aa3b[_0x254549];return _0x424b2b;},_0x2545(_0xa7ced8,_0x26926a);}function _0xa6aa(){const _0x162293=['UNRECOGNIZED','408357tErcQt','FUniver','object','1119202eCDwrD','290727jewarM','importDOCXToSnapshot','exportXLSXByUnitId','importDOCXToUnitIdAsync','UNIVER_SLIDE','amd','importDOCXToUnitId','UNIVER_PROJECT','exportXLSXByUnitIdAsync','37336oZndhz','exportXLSXBySnapshotAsync','20JzyGvh','1720OzMcdO','importXLSXToSnapshot','194cBwlqu','importFileToUnitId','get','importXLSXToUnitId','UNIVER_SHEET','importXLSXToSnapshotAsync','IExchangeService','UniverCoreFacade','importDOCXToSnapshotAsync','6OqEpwA','UNIVER_UNKNOWN','80TXwWQa','@univerjs/core/facade','function','_injector','@univerjs-pro/exchange-client','The\x20exchange\x20service\x20is\x20not\x20available','UNIVER_DOC','3409483pzjEwi','546904zQhYaf','exportXLSXBySnapshot'];_0xa6aa=function(){return _0x162293;};return _0xa6aa();}
|