@univerjs-pro/exchange-client 0.5.0 → 0.5.1
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 -0
- 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 -0
- 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/controllers/config.schema.d.ts +1 -1
- package/lib/types/facade/f-univer.d.ts +32 -3
- package/lib/types/facade/index.d.ts +1 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/locale/fr-FR.d.ts +3 -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 -0
- 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 +15 -13
package/lib/es/locale/en-US.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x35cf34=_0x53ff;function _0x53ff(_0x29b468,_0x38abb6){const _0x14a2f4=_0x14a2();return _0x53ff=function(_0x53ff09,_0x46babc){_0x53ff09=_0x53ff09-0x78;let _0x557594=_0x14a2f4[_0x53ff09];return _0x557594;},_0x53ff(_0x29b468,_0x38abb6);}(function(_0x193596,_0x38660f){const _0x2860a5=_0x53ff,_0x250ecf=_0x193596();while(!![]){try{const _0x4d7d37=-parseInt(_0x2860a5(0x88))/0x1+parseInt(_0x2860a5(0x7d))/0x2+parseInt(_0x2860a5(0x87))/0x3+-parseInt(_0x2860a5(0x86))/0x4+parseInt(_0x2860a5(0x7c))/0x5+-parseInt(_0x2860a5(0x81))/0x6*(parseInt(_0x2860a5(0x83))/0x7)+parseInt(_0x2860a5(0x79))/0x8;if(_0x4d7d37===_0x38660f)break;else _0x250ecf['push'](_0x250ecf['shift']());}catch(_0x3b48b4){_0x250ecf['push'](_0x250ecf['shift']());}}}(_0x14a2,0xcaa1a));const e={'exchange':{'file':_0x35cf34(0x85),'upload':_0x35cf34(0x7a),'download':_0x35cf34(0x7e),'uploading':_0x35cf34(0x78),'uploadSuccess':'File\x20uploaded\x20successfully','uploadSuccessTip':_0x35cf34(0x8a),'downloading':_0x35cf34(0x7b),'downloadSuccess':_0x35cf34(0x80),'unknownMistake':_0x35cf34(0x8c),'networkError':_0x35cf34(0x7f),'tooLarge':'Data\x20is\x20too\x20large','internalError':'Internal\x20unknown\x20error','interrupt':_0x35cf34(0x84),'wait':_0x35cf34(0x82),'cancel':_0x35cf34(0x8b),'uploadAgain':_0x35cf34(0x89)}};function _0x14a2(){const _0x3cc14a=['File','658832lWhUur','91266tTIIck','1002636aCOvaH','Upload\x20again','{0}\x20file(s)\x20uploaded\x20successfully','Cancel','Unknown\x20mistake','Uploading','9078784yNPTSx','Open(File)','Downloading','4882525nYjmSz','961414SOtJgU','Save\x20As','Network\x20error','Download\x20success','3750960QbmQBk','Please\x20wait...','7GSLaJF','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed.'];_0x14a2=function(){return _0x3cc14a;};return _0x14a2();}export{e as default};
|
package/lib/es/locale/fa-IR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0x56e6(_0x310232,_0x578ab1){const _0x2bed44=_0x2bed();return _0x56e6=function(_0x56e6e2,_0x22306a){_0x56e6e2=_0x56e6e2-0x1a7;let _0x684362=_0x2bed44[_0x56e6e2];return _0x684362;},_0x56e6(_0x310232,_0x578ab1);}const _0x4519c8=_0x56e6;(function(_0x127646,_0x516051){const _0x66546c=_0x56e6,_0x1b59dd=_0x127646();while(!![]){try{const _0x40a5b0=parseInt(_0x66546c(0x1ad))/0x1+parseInt(_0x66546c(0x1ae))/0x2*(-parseInt(_0x66546c(0x1b6))/0x3)+parseInt(_0x66546c(0x1b7))/0x4+-parseInt(_0x66546c(0x1b4))/0x5*(-parseInt(_0x66546c(0x1ab))/0x6)+-parseInt(_0x66546c(0x1a7))/0x7+-parseInt(_0x66546c(0x1a8))/0x8+parseInt(_0x66546c(0x1b2))/0x9;if(_0x40a5b0===_0x516051)break;else _0x1b59dd['push'](_0x1b59dd['shift']());}catch(_0x5bf39d){_0x1b59dd['push'](_0x1b59dd['shift']());}}}(_0x2bed,0xeb1d8));function _0x2bed(){const _0x750994=['ذخیره\x20به\x20عنوان','داده\x20خیلی\x20بزرگ\x20است','6738cscxFs','دانلود\x20موفقیت\x20آمیز','224033FbIIwg','284650DygVkx','خطای\x20داخلی\x20ناشناخته','خطای\x20ناشناخته','اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','7430058SdUPQd','{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','2815GZdZcA','بارگذاری\x20مجدد','15xSspPZ','6942992mEIHDt','6334391XzLYfT','6704176XlrBgq'];_0x2bed=function(){return _0x750994;};return _0x2bed();}const o={'exchange':{'file':'فایل','upload':'بازکردن(فایل)','download':_0x4519c8(0x1a9),'uploading':'در\x20حال\x20بارگذاری','uploadSuccess':'فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','uploadSuccessTip':_0x4519c8(0x1b3),'downloading':'در\x20حال\x20دانلود','downloadSuccess':_0x4519c8(0x1ac),'unknownMistake':_0x4519c8(0x1b0),'networkError':'خطای\x20شبکه','tooLarge':_0x4519c8(0x1aa),'internalError':_0x4519c8(0x1af),'interrupt':_0x4519c8(0x1b1),'wait':'لطفا\x20صبر\x20کنید...','cancel':'لغو','uploadAgain':_0x4519c8(0x1b5)}};export{o as default};
|
@@ -0,0 +1 @@
|
|
1
|
+
const _0x16d8ff=_0x39c2;(function(_0x1dfabe,_0x42ca12){const _0xee0637=_0x39c2,_0x53b1c9=_0x1dfabe();while(!![]){try{const _0x1c51da=-parseInt(_0xee0637(0x197))/0x1+parseInt(_0xee0637(0x1a2))/0x2+parseInt(_0xee0637(0x18f))/0x3+-parseInt(_0xee0637(0x190))/0x4*(parseInt(_0xee0637(0x19b))/0x5)+-parseInt(_0xee0637(0x18d))/0x6*(-parseInt(_0xee0637(0x1a1))/0x7)+-parseInt(_0xee0637(0x19f))/0x8*(-parseInt(_0xee0637(0x195))/0x9)+-parseInt(_0xee0637(0x199))/0xa*(parseInt(_0xee0637(0x193))/0xb);if(_0x1c51da===_0x42ca12)break;else _0x53b1c9['push'](_0x53b1c9['shift']());}catch(_0x565f6c){_0x53b1c9['push'](_0x53b1c9['shift']());}}}(_0xefd8,0x3b292));function _0x39c2(_0x2a08b7,_0x2d8f7b){const _0xefd853=_0xefd8();return _0x39c2=function(_0x39c28e,_0x10e381){_0x39c28e=_0x39c28e-0x18d;let _0x31508f=_0xefd853[_0x39c28e];return _0x31508f;},_0x39c2(_0x2a08b7,_0x2d8f7b);}function _0xefd8(){const _0x5c3d7d=['218106ZLpJVZ','364604huLDMb','Unknown\x20mistake','Cancel','12639fRfbru','Save\x20As','387sizQhS','File','359511lpICBb','Uploading','2140rjsciP','Downloading','15yzooAw','Upload\x20again','Internal\x20unknown\x20error','Download\x20success','88688URpmqp','Data\x20is\x20too\x20large','2916893VXLiyq','310146zVubXt','Network\x20error','6CpTmMz','File\x20uploaded\x20successfully'];_0xefd8=function(){return _0x5c3d7d;};return _0xefd8();}const e={'exchange':{'file':_0x16d8ff(0x196),'upload':'Open(File)','download':_0x16d8ff(0x194),'uploading':_0x16d8ff(0x198),'uploadSuccess':_0x16d8ff(0x18e),'uploadSuccessTip':'{0}\x20file(s)\x20uploaded\x20successfully','downloading':_0x16d8ff(0x19a),'downloadSuccess':_0x16d8ff(0x19e),'unknownMistake':_0x16d8ff(0x191),'networkError':_0x16d8ff(0x1a3),'tooLarge':_0x16d8ff(0x1a0),'internalError':_0x16d8ff(0x19d),'interrupt':'The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed.','wait':'Please\x20wait...','cancel':_0x16d8ff(0x192),'uploadAgain':_0x16d8ff(0x19c)}},o=e;export{o as default};
|
package/lib/es/locale/ru-RU.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
function _0x34a4(){const _0x239b71=['1219154aqGaNw','216kAKNMT','Сохранить\x20как','Загрузка','Скачивание\x20успешно','2UFnGpw','1465810DfVLyL','Сетевая\x20ошибка','Отмена','35XigLXi','2181537IDsFrS','33FWlHCX','Данные\x20слишком\x20большие','1675562yQRYZk','Файл','{0}\x20файл(ов)\x20успешно\x20загружен(о)','Скачивание','Файл\x20успешно\x20загружен','490977fgtKJV','Загрузить\x20снова','Неизвестная\x20ошибка','5828598hNGwUD','714508yAuQWE','Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась.'];_0x34a4=function(){return _0x239b71;};return _0x34a4();}function _0x308d(_0x583155,_0x228b95){const _0x34a41c=_0x34a4();return _0x308d=function(_0x308dde,_0x25a7fc){_0x308dde=_0x308dde-0xb6;let _0x14ede9=_0x34a41c[_0x308dde];return _0x14ede9;},_0x308d(_0x583155,_0x228b95);}const _0x3db67d=_0x308d;(function(_0x27ffed,_0x230b10){const _0x347e1d=_0x308d,_0x2a1ae9=_0x27ffed();while(!![]){try{const _0x5f41a0=-parseInt(_0x347e1d(0xb6))/0x1*(parseInt(_0x347e1d(0xc9))/0x2)+parseInt(_0x347e1d(0xbb))/0x3+parseInt(_0x347e1d(0xc7))/0x4*(parseInt(_0x347e1d(0xba))/0x5)+parseInt(_0x347e1d(0xc6))/0x6+parseInt(_0x347e1d(0xbe))/0x7+parseInt(_0x347e1d(0xca))/0x8*(-parseInt(_0x347e1d(0xc3))/0x9)+-parseInt(_0x347e1d(0xb7))/0xa*(-parseInt(_0x347e1d(0xbc))/0xb);if(_0x5f41a0===_0x230b10)break;else _0x2a1ae9['push'](_0x2a1ae9['shift']());}catch(_0x1ef0a2){_0x2a1ae9['push'](_0x2a1ae9['shift']());}}}(_0x34a4,0xe4859));const o={'exchange':{'file':_0x3db67d(0xbf),'upload':'Открыть(Файл)','download':_0x3db67d(0xcb),'uploading':_0x3db67d(0xcc),'uploadSuccess':_0x3db67d(0xc2),'uploadSuccessTip':_0x3db67d(0xc0),'downloading':_0x3db67d(0xc1),'downloadSuccess':_0x3db67d(0xcd),'unknownMistake':_0x3db67d(0xc5),'networkError':_0x3db67d(0xb8),'tooLarge':_0x3db67d(0xbd),'internalError':'Внутренняя\x20неизвестная\x20ошибка','interrupt':_0x3db67d(0xc8),'wait':'Пожалуйста,\x20подождите...','cancel':_0x3db67d(0xb9),'uploadAgain':_0x3db67d(0xc4)}};export{o as default};
|
package/lib/es/locale/vi-VN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
function _0x2696(_0x237153,_0x56da17){const _0x495215=_0x4952();return _0x2696=function(_0x2696ba,_0x313a8c){_0x2696ba=_0x2696ba-0x117;let _0x1d3ecd=_0x495215[_0x2696ba];return _0x1d3ecd;},_0x2696(_0x237153,_0x56da17);}const _0x3ed02b=_0x2696;(function(_0x712a1d,_0x5a9179){const _0x39340c=_0x2696,_0xd3e540=_0x712a1d();while(!![]){try{const _0x2c8ce1=parseInt(_0x39340c(0x119))/0x1*(parseInt(_0x39340c(0x12b))/0x2)+parseInt(_0x39340c(0x12a))/0x3*(parseInt(_0x39340c(0x11a))/0x4)+parseInt(_0x39340c(0x123))/0x5*(-parseInt(_0x39340c(0x125))/0x6)+-parseInt(_0x39340c(0x11d))/0x7+parseInt(_0x39340c(0x127))/0x8+parseInt(_0x39340c(0x120))/0x9*(-parseInt(_0x39340c(0x11e))/0xa)+-parseInt(_0x39340c(0x11f))/0xb*(-parseInt(_0x39340c(0x118))/0xc);if(_0x2c8ce1===_0x5a9179)break;else _0xd3e540['push'](_0xd3e540['shift']());}catch(_0x386471){_0xd3e540['push'](_0xd3e540['shift']());}}}(_0x4952,0xc9ca8));function _0x4952(){const _0xf94591=['Đang\x20tải\x20xuống','Lỗi\x20không\x20xác\x20định\x20bên\x20trong','5VLWNdf','Tải\x20xuống\x20thành\x20công','322026FYdsLo','Hủy\x20bỏ','1639568auKqey','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','Tải\x20lên\x20lại','384FmDGUX','1378XIslXK','Mở\x20(Tệp)','Tệp','Vui\x20lòng\x20đợi...','Luồng\x20dữ\x20liệu\x20quá\x20lớn','420636hfppnr','1523eWphiU','11164comnDo','Đang\x20tải\x20lên','Lỗi\x20không\x20xác\x20định','3716027utLwvQ','120BTrgsL','253WiXBxO','755019oGRTmk'];_0x4952=function(){return _0xf94591;};return _0x4952();}const n={'exchange':{'file':_0x3ed02b(0x12d),'upload':_0x3ed02b(0x12c),'download':'Lưu\x20dưới\x20dạng','uploading':_0x3ed02b(0x11b),'uploadSuccess':'Tải\x20lên\x20tệp\x20thành\x20công','uploadSuccessTip':_0x3ed02b(0x128),'downloading':_0x3ed02b(0x121),'downloadSuccess':_0x3ed02b(0x124),'unknownMistake':_0x3ed02b(0x11c),'networkError':'Lỗi\x20mạng','tooLarge':_0x3ed02b(0x117),'internalError':_0x3ed02b(0x122),'interrupt':'Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại.','wait':_0x3ed02b(0x12e),'cancel':_0x3ed02b(0x126),'uploadAgain':_0x3ed02b(0x129)}};export{n as default};
|
package/lib/es/locale/zh-CN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x38643c=_0x5019;(function(_0x2b9164,_0x4e4673){const _0x356ef4=_0x5019,_0x1d7bed=_0x2b9164();while(!![]){try{const _0x238025=-parseInt(_0x356ef4(0x1d4))/0x1*(parseInt(_0x356ef4(0x1df))/0x2)+-parseInt(_0x356ef4(0x1ca))/0x3*(parseInt(_0x356ef4(0x1d7))/0x4)+-parseInt(_0x356ef4(0x1cd))/0x5*(-parseInt(_0x356ef4(0x1d8))/0x6)+-parseInt(_0x356ef4(0x1cb))/0x7+-parseInt(_0x356ef4(0x1de))/0x8*(-parseInt(_0x356ef4(0x1d0))/0x9)+parseInt(_0x356ef4(0x1db))/0xa*(parseInt(_0x356ef4(0x1d3))/0xb)+parseInt(_0x356ef4(0x1da))/0xc;if(_0x238025===_0x4e4673)break;else _0x1d7bed['push'](_0x1d7bed['shift']());}catch(_0x4a74ce){_0x1d7bed['push'](_0x1d7bed['shift']());}}}(_0x30c1,0xd9992));const o={'exchange':{'file':'文件','upload':_0x38643c(0x1dc),'download':_0x38643c(0x1d2),'uploading':_0x38643c(0x1cc),'uploadSuccess':_0x38643c(0x1d1),'uploadSuccessTip':_0x38643c(0x1d9),'downloading':_0x38643c(0x1d5),'downloadSuccess':'下载成功','unknownMistake':_0x38643c(0x1c9),'networkError':_0x38643c(0x1dd),'tooLarge':'数据流过大','internalError':_0x38643c(0x1c8),'interrupt':_0x38643c(0x1ce),'wait':_0x38643c(0x1d6),'cancel':'取消','uploadAgain':_0x38643c(0x1cf)}};function _0x30c1(){const _0x50d0a1=['32493252fXuxPU','870rQPkES','打开(文件)','网络异常','21656eDOIbp','3220196JFgVYn','内部未知错误','未知错误','2569596qiPtEo','7110614wntsxg','上传中','5665aZpiNi','网络连接中断,文件上传失败。','再次上传','4005dApOsI','文件上传成功','另存为','105457fRRtfw','1XiyfiK','下载中','请稍等...','8wuWjKQ','2562nbtTGQ','{0}个文件上传成功'];_0x30c1=function(){return _0x50d0a1;};return _0x30c1();}function _0x5019(_0x238578,_0x3c2a10){const _0x30c1b1=_0x30c1();return _0x5019=function(_0x5019ec,_0x38cb14){_0x5019ec=_0x5019ec-0x1c8;let _0x32535c=_0x30c1b1[_0x5019ec];return _0x32535c;},_0x5019(_0x238578,_0x3c2a10);}export{o as default};
|
package/lib/es/locale/zh-TW.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
const _0xd5df35=_0x2143;function _0x4807(){const _0x543aa2=['開啟(檔案)','90bfXLQm','{0}個檔案上傳成功','24UGeTWk','檔案上傳成功','3115836PIyMjp','85976rodfGV','再次上傳','上傳中','下載中','另存為','373072ydouLV','53933sSZFTQ','內部未知錯誤','971847ltyCEj','164tBLjGA','網路異常','網路連線中斷,檔案上傳失敗。\x20','978018HdRDGx','9197qLENqd','下載成功','930TLcTII','請稍等...'];_0x4807=function(){return _0x543aa2;};return _0x4807();}function _0x2143(_0x286242,_0x27c0b5){const _0x4807c1=_0x4807();return _0x2143=function(_0x214391,_0x527410){_0x214391=_0x214391-0xfe;let _0x413e5b=_0x4807c1[_0x214391];return _0x413e5b;},_0x2143(_0x286242,_0x27c0b5);}(function(_0x49cce1,_0x4a75b4){const _0x5065f5=_0x2143,_0x2c246d=_0x49cce1();while(!![]){try{const _0x1d6600=parseInt(_0x5065f5(0x101))/0x1*(-parseInt(_0x5065f5(0x114))/0x2)+-parseInt(_0x5065f5(0x113))/0x3+-parseInt(_0x5065f5(0x10b))/0x4*(-parseInt(_0x5065f5(0x106))/0x5)+-parseInt(_0x5065f5(0x100))/0x6+-parseInt(_0x5065f5(0x110))/0x7+parseInt(_0x5065f5(0x108))/0x8*(parseInt(_0x5065f5(0x10a))/0x9)+-parseInt(_0x5065f5(0x103))/0xa*(-parseInt(_0x5065f5(0x111))/0xb);if(_0x1d6600===_0x4a75b4)break;else _0x2c246d['push'](_0x2c246d['shift']());}catch(_0x17c768){_0x2c246d['push'](_0x2c246d['shift']());}}}(_0x4807,0x8f549));const o={'exchange':{'file':'檔案','upload':_0xd5df35(0x105),'download':_0xd5df35(0x10f),'uploading':_0xd5df35(0x10d),'uploadSuccess':_0xd5df35(0x109),'uploadSuccessTip':_0xd5df35(0x107),'downloading':_0xd5df35(0x10e),'downloadSuccess':_0xd5df35(0x102),'unknownMistake':'未知錯誤','networkError':_0xd5df35(0xfe),'tooLarge':'資料流過大','internalError':_0xd5df35(0x112),'interrupt':_0xd5df35(0xff),'wait':_0xd5df35(0x104),'cancel':'取消','uploadAgain':_0xd5df35(0x10c)}};export{o as default};
|
@@ -1,5 +1,35 @@
|
|
1
|
-
import { IDocumentData, IWorkbookData } from '@univerjs/core';
|
2
|
-
interface IFUniverExchangeClientMixin {
|
1
|
+
import { IDocumentData, IWorkbookData, FUniver } from '@univerjs/core';
|
2
|
+
export interface IFUniverExchangeClientMixin {
|
3
|
+
/**
|
4
|
+
* Import XLSX file to unit id
|
5
|
+
* @param file File path or file object
|
6
|
+
*/
|
7
|
+
importXLSXToUnitId(file: string | File): Promise<string | undefined>;
|
8
|
+
/**
|
9
|
+
* Import XLSX file to workbook data
|
10
|
+
* @param file File path or file object
|
11
|
+
*/
|
12
|
+
importXLSXToSnapshot(file: string | File): Promise<IWorkbookData | undefined>;
|
13
|
+
/**
|
14
|
+
* Export XLSX file by unit id
|
15
|
+
*/
|
16
|
+
exportXLSXByUnitId(unitId: string): Promise<File | undefined>;
|
17
|
+
/**
|
18
|
+
* Export XLSX file by workbook data
|
19
|
+
*/
|
20
|
+
exportXLSXBySnapshot(snapshot: IWorkbookData): Promise<File | undefined>;
|
21
|
+
/**
|
22
|
+
* Import DOCX file to unit id
|
23
|
+
* @param file File path or file object
|
24
|
+
*/
|
25
|
+
importDOCXToUnitId(file: string | File): Promise<string | undefined>;
|
26
|
+
/**
|
27
|
+
* Import DOCX file to document data
|
28
|
+
* @param file File path or file object
|
29
|
+
*/
|
30
|
+
importDOCXToSnapshot(file: string | File): Promise<IDocumentData | undefined>;
|
31
|
+
}
|
32
|
+
export declare class FUniverExchangeClientMixin extends FUniver implements IFUniverExchangeClientMixin {
|
3
33
|
/**
|
4
34
|
* Import XLSX file to unit id
|
5
35
|
* @param file File path or file object
|
@@ -33,4 +63,3 @@ declare module '@univerjs/core' {
|
|
33
63
|
interface FUniver extends IFUniverExchangeClientMixin {
|
34
64
|
}
|
35
65
|
}
|
36
|
-
export {};
|
package/lib/types/index.d.ts
CHANGED
package/lib/umd/facade.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0x3bb3(_0x1078dd,_0x356d92){const _0x4f10cb=_0x4f10();return _0x3bb3=function(_0x3bb370,_0x5a2ff3){_0x3bb370=_0x3bb370-0xc3;let _0x5349cf=_0x4f10cb[_0x3bb370];return _0x5349cf;},_0x3bb3(_0x1078dd,_0x356d92);}(function(_0x13a1b0,_0x4f1a19){const _0x4aa972=_0x3bb3,_0x3c7c78=_0x13a1b0();while(!![]){try{const _0x1d6288=parseInt(_0x4aa972(0xc6))/0x1+-parseInt(_0x4aa972(0xe4))/0x2+-parseInt(_0x4aa972(0xce))/0x3*(parseInt(_0x4aa972(0xdc))/0x4)+parseInt(_0x4aa972(0xc5))/0x5*(-parseInt(_0x4aa972(0xc3))/0x6)+-parseInt(_0x4aa972(0xcd))/0x7*(parseInt(_0x4aa972(0xc9))/0x8)+parseInt(_0x4aa972(0xd0))/0x9*(-parseInt(_0x4aa972(0xe1))/0xa)+parseInt(_0x4aa972(0xde))/0xb;if(_0x1d6288===_0x4f1a19)break;else _0x3c7c78['push'](_0x3c7c78['shift']());}catch(_0x169723){_0x3c7c78['push'](_0x3c7c78['shift']());}}}(_0x4f10,0xe0e19),function(_0x2ca458,_0x1f8af0){const _0x124332=_0x3bb3;typeof exports==_0x124332(0xd1)&&typeof module<'u'?_0x1f8af0(require(_0x124332(0xc4)),require(_0x124332(0xd6))):typeof define==_0x124332(0xc7)&&define[_0x124332(0xd8)]?define(['@univerjs/core',_0x124332(0xd6)],_0x1f8af0):(_0x2ca458=typeof globalThis<'u'?globalThis:_0x2ca458||self,_0x1f8af0(_0x2ca458['UniverCore'],_0x2ca458[_0x124332(0xcc)]));}(this,function(_0x26d073,_0x1399b7){'use strict';const _0x4be234=_0x3bb3;var _0x4d522e=(_0x58482e=>(_0x58482e[_0x58482e[_0x4be234(0xd2)]=0x0]='UNIVER_UNKNOWN',_0x58482e[_0x58482e[_0x4be234(0xdd)]=0x1]=_0x4be234(0xdd),_0x58482e[_0x58482e[_0x4be234(0xcb)]=0x2]=_0x4be234(0xcb),_0x58482e[_0x58482e[_0x4be234(0xc8)]=0x3]=_0x4be234(0xc8),_0x58482e[_0x58482e[_0x4be234(0xe3)]=0x4]='UNIVER_PROJECT',_0x58482e[_0x58482e[_0x4be234(0xca)]=-0x1]='UNRECOGNIZED',_0x58482e))(_0x4d522e||{});class _0x1d85cc extends _0x26d073[_0x4be234(0xe2)]{async[_0x4be234(0xda)](_0x1e4b77){const _0x2633d4=_0x4be234,_0x4e046e=this[_0x2633d4(0xe5)][_0x2633d4(0xd7)](_0x1399b7[_0x2633d4(0xd9)]);if(!_0x4e046e)throw new Error(_0x2633d4(0xdb));return _0x4e046e[_0x2633d4(0xdf)](_0x1e4b77,_0x4d522e[_0x2633d4(0xcb)]);}async[_0x4be234(0xd3)](_0x1e64a2){const _0x321382=_0x4be234,_0x3a66bc=this[_0x321382(0xe5)][_0x321382(0xd7)](_0x1399b7[_0x321382(0xd9)]);if(!_0x3a66bc)throw new Error(_0x321382(0xdb));return _0x3a66bc[_0x321382(0xd3)](_0x1e64a2);}async[_0x4be234(0xcf)](_0x2d1b71){const _0x47342f=_0x4be234,_0x2de677=this['_injector']['get'](_0x1399b7[_0x47342f(0xd9)]);if(!_0x2de677)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x2de677[_0x47342f(0xcf)](_0x2d1b71);}async[_0x4be234(0xe0)](_0xb80541){const _0x46a905=_0x4be234,_0x3081a8=this[_0x46a905(0xe5)][_0x46a905(0xd7)](_0x1399b7[_0x46a905(0xd9)]);if(!_0x3081a8)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x3081a8[_0x46a905(0xe0)](_0xb80541);}async['importDOCXToUnitId'](_0x146f60){const _0x3f8c77=_0x4be234,_0x466dfc=this[_0x3f8c77(0xe5)][_0x3f8c77(0xd7)](_0x1399b7['IExchangeService']);if(!_0x466dfc)throw new Error(_0x3f8c77(0xdb));return _0x466dfc['importFileToUnitId'](_0x146f60,_0x4d522e[_0x3f8c77(0xdd)]);}async[_0x4be234(0xd4)](_0x5565f){const _0x459e79=_0x4be234,_0x327b91=this[_0x459e79(0xe5)][_0x459e79(0xd7)](_0x1399b7[_0x459e79(0xd9)]);if(!_0x327b91)throw new Error(_0x459e79(0xdb));return _0x327b91['importDOCXToSnapshot'](_0x5565f);}}_0x26d073[_0x4be234(0xe2)][_0x4be234(0xd5)](_0x1d85cc);}));function _0x4f10(){const _0x4d0ac3=['The\x20exchange\x20service\x20is\x20not\x20available','179976xEkcSf','UNIVER_DOC','52370901EHGHKk','importFileToUnitId','exportXLSXBySnapshot','4010Kuntge','FUniver','UNIVER_PROJECT','622188xfiMZx','_injector','9570126aURtns','@univerjs/core','5OhZiEP','527708MimLzg','function','UNIVER_SLIDE','24udjNkf','UNRECOGNIZED','UNIVER_SHEET','UniverProExchangeClient','3976469Erbyun','36soCnEz','exportXLSXByUnitId','4878fNplwK','object','UNIVER_UNKNOWN','importXLSXToSnapshot','importDOCXToSnapshot','extend','@univerjs-pro/exchange-client','get','amd','IExchangeService','importXLSXToUnitId'];_0x4f10=function(){return _0x4d0ac3;};return _0x4f10();}
|