@univerjs-pro/exchange-client 0.5.3-nightly.202501061606 → 0.5.3-nightly.202501070959
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 +114 -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 +8 -8
package/lib/es/locale/en-US.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
function _0x5d0d(_0x4c6ea1,_0x342cd1){const _0x251bec=_0x251b();return _0x5d0d=function(_0x5d0d9e,_0x47956d){_0x5d0d9e=_0x5d0d9e-0x149;let _0x113d89=_0x251bec[_0x5d0d9e];return _0x113d89;},_0x5d0d(_0x4c6ea1,_0x342cd1);}const _0x9835e5=_0x5d0d;(function(_0x428251,_0x7e6531){const _0x29c927=_0x5d0d,_0x2ff6d7=_0x428251();while(!![]){try{const _0x2986ee=parseInt(_0x29c927(0x152))/0x1+-parseInt(_0x29c927(0x14c))/0x2+-parseInt(_0x29c927(0x158))/0x3*(parseInt(_0x29c927(0x14e))/0x4)+-parseInt(_0x29c927(0x153))/0x5*(parseInt(_0x29c927(0x15e))/0x6)+-parseInt(_0x29c927(0x14b))/0x7*(-parseInt(_0x29c927(0x156))/0x8)+-parseInt(_0x29c927(0x154))/0x9*(parseInt(_0x29c927(0x15f))/0xa)+parseInt(_0x29c927(0x14a))/0xb;if(_0x2986ee===_0x7e6531)break;else _0x2ff6d7['push'](_0x2ff6d7['shift']());}catch(_0x52a73a){_0x2ff6d7['push'](_0x2ff6d7['shift']());}}}(_0x251b,0x51d3c));const e={'exchange':{'file':_0x9835e5(0x15c),'upload':_0x9835e5(0x14f),'download':'Save\x20As','uploading':_0x9835e5(0x155),'uploadSuccess':_0x9835e5(0x15d),'uploadSuccessTip':_0x9835e5(0x157),'downloading':_0x9835e5(0x14d),'downloadSuccess':_0x9835e5(0x150),'unknownMistake':_0x9835e5(0x159),'networkError':'Network\x20error','tooLarge':_0x9835e5(0x149),'internalError':_0x9835e5(0x15b),'interrupt':_0x9835e5(0x15a),'wait':_0x9835e5(0x151),'cancel':'Cancel','uploadAgain':'Upload\x20again'}};function _0x251b(){const _0x17cf84=['Data\x20is\x20too\x20large','14406931VvqFWd','133lGUqev','508362sUxMBj','Downloading','105836lUpmyj','Open(File)','Download\x20success','Please\x20wait...','241518nRlGRn','5nlCJcQ','945OAFoVU','Uploading','40072MzqbJu','{0}\x20file(s)\x20uploaded\x20successfully','39fiPplY','Unknown\x20mistake','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed.','Internal\x20unknown\x20error','File','File\x20uploaded\x20successfully','2767218TQPEwh','23990kwHhoN'];_0x251b=function(){return _0x17cf84;};return _0x251b();}export{e as default};
|
package/lib/es/locale/fa-IR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x34267a=_0x5c19;function _0x5c19(_0xc22bed,_0x321d46){const _0x338bf7=_0x338b();return _0x5c19=function(_0x5c19b6,_0x41de01){_0x5c19b6=_0x5c19b6-0x14e;let _0x324726=_0x338bf7[_0x5c19b6];return _0x324726;},_0x5c19(_0xc22bed,_0x321d46);}(function(_0x4b6825,_0x2524b5){const _0x50f64c=_0x5c19,_0x4fb8d3=_0x4b6825();while(!![]){try{const _0x25c7fd=parseInt(_0x50f64c(0x15c))/0x1+-parseInt(_0x50f64c(0x153))/0x2*(-parseInt(_0x50f64c(0x164))/0x3)+-parseInt(_0x50f64c(0x157))/0x4*(-parseInt(_0x50f64c(0x163))/0x5)+parseInt(_0x50f64c(0x159))/0x6*(parseInt(_0x50f64c(0x150))/0x7)+parseInt(_0x50f64c(0x14e))/0x8*(parseInt(_0x50f64c(0x154))/0x9)+parseInt(_0x50f64c(0x155))/0xa+-parseInt(_0x50f64c(0x15a))/0xb*(parseInt(_0x50f64c(0x161))/0xc);if(_0x25c7fd===_0x2524b5)break;else _0x4fb8d3['push'](_0x4fb8d3['shift']());}catch(_0x391c76){_0x4fb8d3['push'](_0x4fb8d3['shift']());}}}(_0x338b,0xe6005));function _0x338b(){const _0x211b1d=['287880XwMseH','فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','577787DUyeGu','خطای\x20داخلی\x20ناشناخته','در\x20حال\x20بارگذاری','199466hlgKGd','396UfBoVp','9902610IvqVRY','داده\x20خیلی\x20بزرگ\x20است','212okrxhN','اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','132GtoTdR','45632466ZfJIXE','فایل','51671VfoLHC','در\x20حال\x20دانلود','{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','دانلود\x20موفقیت\x20آمیز','لغو','12DKQgDE','ذخیره\x20به\x20عنوان','33030JijlST','9zCYZcu'];_0x338b=function(){return _0x211b1d;};return _0x338b();}const o={'exchange':{'file':_0x34267a(0x15b),'upload':'بازکردن(فایل)','download':_0x34267a(0x162),'uploading':_0x34267a(0x152),'uploadSuccess':_0x34267a(0x14f),'uploadSuccessTip':_0x34267a(0x15e),'downloading':_0x34267a(0x15d),'downloadSuccess':_0x34267a(0x15f),'unknownMistake':'خطای\x20ناشناخته','networkError':'خطای\x20شبکه','tooLarge':_0x34267a(0x156),'internalError':_0x34267a(0x151),'interrupt':_0x34267a(0x158),'wait':'لطفا\x20صبر\x20کنید...','cancel':_0x34267a(0x160),'uploadAgain':'بارگذاری\x20مجدد'}};export{o as default};
|
package/lib/es/locale/fr-FR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
const _0x3c629=_0x584d;function _0x584d(_0x5d9aa8,_0xa5030){const _0xd7bc7=_0xd7bc();return _0x584d=function(_0x584dab,_0x4bb69d){_0x584dab=_0x584dab-0x153;let _0x56b06c=_0xd7bc7[_0x584dab];return _0x56b06c;},_0x584d(_0x5d9aa8,_0xa5030);}(function(_0x25b7e6,_0x46640f){const _0x1ac3a0=_0x584d,_0x5651cb=_0x25b7e6();while(!![]){try{const _0x31d80c=-parseInt(_0x1ac3a0(0x154))/0x1*(-parseInt(_0x1ac3a0(0x155))/0x2)+-parseInt(_0x1ac3a0(0x15d))/0x3*(-parseInt(_0x1ac3a0(0x168))/0x4)+-parseInt(_0x1ac3a0(0x15e))/0x5+parseInt(_0x1ac3a0(0x167))/0x6*(parseInt(_0x1ac3a0(0x153))/0x7)+-parseInt(_0x1ac3a0(0x165))/0x8*(-parseInt(_0x1ac3a0(0x166))/0x9)+parseInt(_0x1ac3a0(0x162))/0xa*(-parseInt(_0x1ac3a0(0x159))/0xb)+-parseInt(_0x1ac3a0(0x169))/0xc;if(_0x31d80c===_0x46640f)break;else _0x5651cb['push'](_0x5651cb['shift']());}catch(_0x9a4533){_0x5651cb['push'](_0x5651cb['shift']());}}}(_0xd7bc,0x243bb));function _0xd7bc(){const _0x9a2c4f=['Uploading','Open(File)','3FuGoDL','1086595FvWTYw','{0}\x20file(s)\x20uploaded\x20successfully','Unknown\x20mistake','Network\x20error','241290tpCZkM','Please\x20wait...','File\x20uploaded\x20successfully','8zeVZdG','1467171AgfnKi','85530kfWpun','881188SQdiKk','1006428TbXRhc','7iaAdnM','76157opkUQl','2ritYGW','Internal\x20unknown\x20error','Downloading','Download\x20success','11BagCdU','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed.'];_0xd7bc=function(){return _0x9a2c4f;};return _0xd7bc();}const e={'exchange':{'file':'File','upload':_0x3c629(0x15c),'download':'Save\x20As','uploading':_0x3c629(0x15b),'uploadSuccess':_0x3c629(0x164),'uploadSuccessTip':_0x3c629(0x15f),'downloading':_0x3c629(0x157),'downloadSuccess':_0x3c629(0x158),'unknownMistake':_0x3c629(0x160),'networkError':_0x3c629(0x161),'tooLarge':'Data\x20is\x20too\x20large','internalError':_0x3c629(0x156),'interrupt':_0x3c629(0x15a),'wait':_0x3c629(0x163),'cancel':'Cancel','uploadAgain':'Upload\x20again'}},o=e;export{o as default};
|
package/lib/es/locale/ru-RU.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
const _0xbbdbf6=_0x12f0;function _0x12f0(_0x3af6a7,_0x98903d){const _0x4e665d=_0x4e66();return _0x12f0=function(_0x12f0a3,_0x1ec5b3){_0x12f0a3=_0x12f0a3-0x11a;let _0xbbb24f=_0x4e665d[_0x12f0a3];return _0xbbb24f;},_0x12f0(_0x3af6a7,_0x98903d);}(function(_0x2c8719,_0x452e46){const _0x1277fb=_0x12f0,_0x4ad738=_0x2c8719();while(!![]){try{const _0x32e9b5=parseInt(_0x1277fb(0x124))/0x1+-parseInt(_0x1277fb(0x11f))/0x2*(parseInt(_0x1277fb(0x11b))/0x3)+-parseInt(_0x1277fb(0x125))/0x4*(parseInt(_0x1277fb(0x129))/0x5)+parseInt(_0x1277fb(0x12d))/0x6*(parseInt(_0x1277fb(0x123))/0x7)+parseInt(_0x1277fb(0x11c))/0x8*(-parseInt(_0x1277fb(0x121))/0x9)+-parseInt(_0x1277fb(0x12a))/0xa+parseInt(_0x1277fb(0x12e))/0xb;if(_0x32e9b5===_0x452e46)break;else _0x4ad738['push'](_0x4ad738['shift']());}catch(_0x4f183f){_0x4ad738['push'](_0x4ad738['shift']());}}}(_0x4e66,0x24444));const o={'exchange':{'file':'Файл','upload':_0xbbdbf6(0x126),'download':_0xbbdbf6(0x11a),'uploading':_0xbbdbf6(0x12c),'uploadSuccess':_0xbbdbf6(0x12b),'uploadSuccessTip':'{0}\x20файл(ов)\x20успешно\x20загружен(о)','downloading':_0xbbdbf6(0x127),'downloadSuccess':_0xbbdbf6(0x128),'unknownMistake':'Неизвестная\x20ошибка','networkError':_0xbbdbf6(0x11d),'tooLarge':_0xbbdbf6(0x122),'internalError':'Внутренняя\x20неизвестная\x20ошибка','interrupt':'Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась.','wait':_0xbbdbf6(0x11e),'cancel':'Отмена','uploadAgain':_0xbbdbf6(0x120)}};function _0x4e66(){const _0x33a699=['4MBNphV','Открыть(Файл)','Скачивание','Скачивание\x20успешно','240920ryoxsS','2210760pogEIN','Файл\x20успешно\x20загружен','Загрузка','6eMhxCc','5401583cnSRuA','Сохранить\x20как','11409FIJIfP','1366880kwkHFf','Сетевая\x20ошибка','Пожалуйста,\x20подождите...','74kzQWXW','Загрузить\x20снова','9sOFvFM','Данные\x20слишком\x20большие','157150sLSroJ','215876CzAmwG'];_0x4e66=function(){return _0x33a699;};return _0x4e66();}export{o as default};
|
package/lib/es/locale/vi-VN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x4c61b9=_0x140a;function _0x140a(_0x124e4c,_0x563706){const _0x3ea325=_0x3ea3();return _0x140a=function(_0x140a95,_0x58d562){_0x140a95=_0x140a95-0x1ca;let _0x533eaa=_0x3ea325[_0x140a95];return _0x533eaa;},_0x140a(_0x124e4c,_0x563706);}(function(_0x28027d,_0x56c0ed){const _0x1e5169=_0x140a,_0x5db596=_0x28027d();while(!![]){try{const _0x47d45c=parseInt(_0x1e5169(0x1da))/0x1*(-parseInt(_0x1e5169(0x1cf))/0x2)+-parseInt(_0x1e5169(0x1cb))/0x3+parseInt(_0x1e5169(0x1d3))/0x4*(parseInt(_0x1e5169(0x1d7))/0x5)+parseInt(_0x1e5169(0x1de))/0x6*(parseInt(_0x1e5169(0x1dd))/0x7)+-parseInt(_0x1e5169(0x1d5))/0x8*(parseInt(_0x1e5169(0x1cc))/0x9)+-parseInt(_0x1e5169(0x1cd))/0xa*(-parseInt(_0x1e5169(0x1dc))/0xb)+parseInt(_0x1e5169(0x1db))/0xc;if(_0x47d45c===_0x56c0ed)break;else _0x5db596['push'](_0x5db596['shift']());}catch(_0x220891){_0x5db596['push'](_0x5db596['shift']());}}}(_0x3ea3,0x3a502));function _0x3ea3(){const _0x1b4d84=['1EiVdfo','7264224xwEyqV','11EWklRB','910RERJul','15396vFGlLG','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại.','Tải\x20lên\x20tệp\x20thành\x20công','Hủy\x20bỏ','Lưu\x20dưới\x20dạng','1208799JgaxRX','45FtGwQq','3720430DAWADl','Luồng\x20dữ\x20liệu\x20quá\x20lớn','886882Gtepqr','Lỗi\x20không\x20xác\x20định\x20bên\x20trong','Tệp','Tải\x20xuống\x20thành\x20công','4GGpiba','Vui\x20lòng\x20đợi...','671040SsYWZD','Đang\x20tải\x20lên','968245hvMYmS','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','Lỗi\x20không\x20xác\x20định'];_0x3ea3=function(){return _0x1b4d84;};return _0x3ea3();}const n={'exchange':{'file':_0x4c61b9(0x1d1),'upload':'Mở\x20(Tệp)','download':_0x4c61b9(0x1ca),'uploading':_0x4c61b9(0x1d6),'uploadSuccess':_0x4c61b9(0x1e0),'uploadSuccessTip':_0x4c61b9(0x1d8),'downloading':'Đang\x20tải\x20xuống','downloadSuccess':_0x4c61b9(0x1d2),'unknownMistake':_0x4c61b9(0x1d9),'networkError':'Lỗi\x20mạng','tooLarge':_0x4c61b9(0x1ce),'internalError':_0x4c61b9(0x1d0),'interrupt':_0x4c61b9(0x1df),'wait':_0x4c61b9(0x1d4),'cancel':_0x4c61b9(0x1e1),'uploadAgain':'Tải\x20lên\x20lại'}};export{n as default};
|
package/lib/es/locale/zh-CN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
function _0x5a7b(_0x524617,_0x27fe53){const _0x2aa5a7=_0x2aa5();return _0x5a7b=function(_0x5a7b43,_0x3a664a){_0x5a7b43=_0x5a7b43-0x170;let _0x5682c5=_0x2aa5a7[_0x5a7b43];return _0x5682c5;},_0x5a7b(_0x524617,_0x27fe53);}const _0xda7d47=_0x5a7b;function _0x2aa5(){const _0x445c50=['5TMuvnq','91ZQgcdh','上传中','37080cQmQtK','432156fuVTwt','26kiZWxW','数据流过大','再次上传','22PwkJlQ','网络异常','12558430CIFraL','请稍等...','未知错误','2754368FTLDgO','24064116pSUhhC','601758mwsuii','{0}个文件上传成功','27357ZMbJIf','18KXRdoc','下载中'];_0x2aa5=function(){return _0x445c50;};return _0x2aa5();}(function(_0x360200,_0x8910c6){const _0x4ee350=_0x5a7b,_0x366703=_0x360200();while(!![]){try{const _0x472d0d=-parseInt(_0x4ee350(0x17d))/0x1+parseInt(_0x4ee350(0x173))/0x2*(parseInt(_0x4ee350(0x17f))/0x3)+-parseInt(_0x4ee350(0x171))/0x4*(parseInt(_0x4ee350(0x182))/0x5)+parseInt(_0x4ee350(0x172))/0x6*(-parseInt(_0x4ee350(0x183))/0x7)+-parseInt(_0x4ee350(0x17b))/0x8*(parseInt(_0x4ee350(0x180))/0x9)+-parseInt(_0x4ee350(0x178))/0xa+parseInt(_0x4ee350(0x176))/0xb*(parseInt(_0x4ee350(0x17c))/0xc);if(_0x472d0d===_0x8910c6)break;else _0x366703['push'](_0x366703['shift']());}catch(_0xfa2a62){_0x366703['push'](_0x366703['shift']());}}}(_0x2aa5,0x9b9f8));const o={'exchange':{'file':'文件','upload':'打开(文件)','download':'另存为','uploading':_0xda7d47(0x170),'uploadSuccess':'文件上传成功','uploadSuccessTip':_0xda7d47(0x17e),'downloading':_0xda7d47(0x181),'downloadSuccess':'下载成功','unknownMistake':_0xda7d47(0x17a),'networkError':_0xda7d47(0x177),'tooLarge':_0xda7d47(0x174),'internalError':'内部未知错误','interrupt':'网络连接中断,文件上传失败。','wait':_0xda7d47(0x179),'cancel':'取消','uploadAgain':_0xda7d47(0x175)}};export{o as default};
|
package/lib/es/locale/zh-TW.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x2485f2=_0x5c96;function _0x5c96(_0x9c56f7,_0x102995){const _0x1ef77b=_0x1ef7();return _0x5c96=function(_0x5c96f8,_0x53eac4){_0x5c96f8=_0x5c96f8-0xdc;let _0x46b5b7=_0x1ef77b[_0x5c96f8];return _0x46b5b7;},_0x5c96(_0x9c56f7,_0x102995);}(function(_0x2ee170,_0x330896){const _0x49338f=_0x5c96,_0x17e373=_0x2ee170();while(!![]){try{const _0x339e07=-parseInt(_0x49338f(0xe3))/0x1+parseInt(_0x49338f(0xec))/0x2*(-parseInt(_0x49338f(0xdf))/0x3)+-parseInt(_0x49338f(0xe1))/0x4+-parseInt(_0x49338f(0xe0))/0x5*(-parseInt(_0x49338f(0xee))/0x6)+parseInt(_0x49338f(0xdd))/0x7+-parseInt(_0x49338f(0xe6))/0x8+parseInt(_0x49338f(0xe4))/0x9;if(_0x339e07===_0x330896)break;else _0x17e373['push'](_0x17e373['shift']());}catch(_0x8c9b10){_0x17e373['push'](_0x17e373['shift']());}}}(_0x1ef7,0xd4033));const o={'exchange':{'file':'檔案','upload':_0x2485f2(0xdc),'download':'另存為','uploading':'上傳中','uploadSuccess':_0x2485f2(0xeb),'uploadSuccessTip':_0x2485f2(0xea),'downloading':_0x2485f2(0xe2),'downloadSuccess':'下載成功','unknownMistake':_0x2485f2(0xe9),'networkError':_0x2485f2(0xde),'tooLarge':_0x2485f2(0xe5),'internalError':_0x2485f2(0xe8),'interrupt':_0x2485f2(0xe7),'wait':_0x2485f2(0xed),'cancel':'取消','uploadAgain':'再次上傳'}};function _0x1ef7(){const _0x84c9be=['4284546FphkiX','網路異常','6JmVhUN','5nYZlYE','3316200aVyFZO','下載中','1521027pReylx','32407083zRXHQs','資料流過大','10699456HtZeQZ','網路連線中斷,檔案上傳失敗。\x20','內部未知錯誤','未知錯誤','{0}個檔案上傳成功','檔案上傳成功','609094DeIFGC','請稍等...','5712846ZWUcSo','開啟(檔案)'];_0x1ef7=function(){return _0x84c9be;};return _0x1ef7();}export{o as default};
|
@@ -2,32 +2,118 @@ import { IDocumentData, IWorkbookData, FUniver } from '@univerjs/core';
|
|
2
2
|
export interface IFUniverExchangeClientMixin {
|
3
3
|
/**
|
4
4
|
* Import XLSX file to unit id
|
5
|
+
*
|
6
|
+
* @deprecated Please use `importXLSXToUnitIdAsync` instead.
|
5
7
|
* @param file File path or file object
|
8
|
+
* @returns Unit id
|
6
9
|
*/
|
7
10
|
importXLSXToUnitId(file: string | File): Promise<string | undefined>;
|
11
|
+
/**
|
12
|
+
* Import XLSX file to unit id
|
13
|
+
* @param file File path or file object
|
14
|
+
* @returns Unit id
|
15
|
+
*
|
16
|
+
* @example
|
17
|
+
* ```typescript
|
18
|
+
* const unitId = await univerAPI.importXLSXToUnitIdAsync(file);
|
19
|
+
* ```
|
20
|
+
*/
|
21
|
+
importXLSXToUnitIdAsync(file: string | File): Promise<string | undefined>;
|
8
22
|
/**
|
9
23
|
* Import XLSX file to workbook data
|
24
|
+
*
|
25
|
+
* @deprecated Please use `importXLSXToSnapshotAsync` instead.
|
10
26
|
* @param file File path or file object
|
27
|
+
* @returns Workbook data
|
11
28
|
*/
|
12
29
|
importXLSXToSnapshot(file: string | File): Promise<IWorkbookData | undefined>;
|
30
|
+
/**
|
31
|
+
* Import XLSX file to workbook data
|
32
|
+
* @param file File path or file object
|
33
|
+
* @returns Workbook data
|
34
|
+
*
|
35
|
+
* @example
|
36
|
+
* ```typescript
|
37
|
+
* const snapshot = await univerAPI.importXLSXToSnapshotAsync(file);
|
38
|
+
* ```
|
39
|
+
*/
|
40
|
+
importXLSXToSnapshotAsync(file: string | File): Promise<IWorkbookData | undefined>;
|
13
41
|
/**
|
14
42
|
* Export XLSX file by unit id
|
43
|
+
*
|
44
|
+
* @deprecated Please use `exportXLSXByUnitIdAsync` instead.
|
45
|
+
* @param unitId Unit id
|
46
|
+
* @returns XLSX file
|
15
47
|
*/
|
16
48
|
exportXLSXByUnitId(unitId: string): Promise<File | undefined>;
|
49
|
+
/**
|
50
|
+
* Export XLSX file by unit id
|
51
|
+
* @param unitId Unit id
|
52
|
+
* @returns XLSX file
|
53
|
+
*
|
54
|
+
* @example
|
55
|
+
* ```typescript
|
56
|
+
* const file = await univerAPI.exportXLSXByUnitIdAsync(unitId);
|
57
|
+
* ```
|
58
|
+
*/
|
59
|
+
exportXLSXByUnitIdAsync(unitId: string): Promise<File | undefined>;
|
17
60
|
/**
|
18
61
|
* Export XLSX file by workbook data
|
62
|
+
*
|
63
|
+
* @deprecated Please use `exportXLSXBySnapshotAsync` instead.
|
64
|
+
* @param snapshot Workbook data
|
65
|
+
* @returns XLSX file
|
19
66
|
*/
|
20
67
|
exportXLSXBySnapshot(snapshot: IWorkbookData): Promise<File | undefined>;
|
68
|
+
/**
|
69
|
+
* Export XLSX file by workbook data
|
70
|
+
* @param snapshot Workbook data
|
71
|
+
* @returns XLSX file
|
72
|
+
*
|
73
|
+
* @example
|
74
|
+
* ```typescript
|
75
|
+
* const file = await univerAPI.exportXLSXBySnapshotAsync(snapshot);
|
76
|
+
* ```
|
77
|
+
*/
|
78
|
+
exportXLSXBySnapshotAsync(snapshot: IWorkbookData): Promise<File | undefined>;
|
21
79
|
/**
|
22
80
|
* Import DOCX file to unit id
|
81
|
+
*
|
82
|
+
* @deprecated Please use `importDOCXToUnitIdAsync` instead.
|
23
83
|
* @param file File path or file object
|
84
|
+
* @returns Unit id
|
24
85
|
*/
|
25
86
|
importDOCXToUnitId(file: string | File): Promise<string | undefined>;
|
87
|
+
/**
|
88
|
+
* Import DOCX file to unit id
|
89
|
+
* @param file File path or file object
|
90
|
+
* @returns Unit id
|
91
|
+
*
|
92
|
+
* @example
|
93
|
+
* ```typescript
|
94
|
+
* const unitId = await univerAPI.importDOCXToUnitIdAsync(file);
|
95
|
+
* ```
|
96
|
+
*/
|
97
|
+
importDOCXToUnitIdAsync(file: string | File): Promise<string | undefined>;
|
26
98
|
/**
|
27
99
|
* Import DOCX file to document data
|
100
|
+
*
|
101
|
+
* @deprecated Please use `importDOCXToSnapshotAsync` instead.
|
28
102
|
* @param file File path or file object
|
103
|
+
* @returns Document data
|
29
104
|
*/
|
30
105
|
importDOCXToSnapshot(file: string | File): Promise<IDocumentData | undefined>;
|
106
|
+
/**
|
107
|
+
* Import DOCX file to document data
|
108
|
+
* @param file File path or file object
|
109
|
+
* @returns Document data
|
110
|
+
*
|
111
|
+
* @example
|
112
|
+
* ```typescript
|
113
|
+
* const snapshot = await univerAPI.importDOCXToSnapshotAsync(file);
|
114
|
+
* ```
|
115
|
+
*/
|
116
|
+
importDOCXToSnapshotAsync(file: string | File): Promise<IDocumentData | undefined>;
|
31
117
|
}
|
32
118
|
export declare class FUniverExchangeClientMixin extends FUniver implements IFUniverExchangeClientMixin {
|
33
119
|
/**
|
@@ -35,29 +121,57 @@ export declare class FUniverExchangeClientMixin extends FUniver implements IFUni
|
|
35
121
|
* @param file File path or file object
|
36
122
|
*/
|
37
123
|
importXLSXToUnitId(file: string | File): Promise<string | undefined>;
|
124
|
+
/**
|
125
|
+
* Import XLSX file to unit id
|
126
|
+
* @param file File path or file object
|
127
|
+
*/
|
128
|
+
importXLSXToUnitIdAsync(file: string | File): Promise<string | undefined>;
|
38
129
|
/**
|
39
130
|
* Import XLSX file to workbook data
|
40
131
|
* @param file File path or file object
|
41
132
|
*/
|
42
133
|
importXLSXToSnapshot(file: string | File): Promise<IWorkbookData | undefined>;
|
134
|
+
/**
|
135
|
+
* Import XLSX file to workbook data
|
136
|
+
* @param file File path or file object
|
137
|
+
*/
|
138
|
+
importXLSXToSnapshotAsync(file: string | File): Promise<IWorkbookData | undefined>;
|
43
139
|
/**
|
44
140
|
* Export XLSX file by unit id
|
45
141
|
*/
|
46
142
|
exportXLSXByUnitId(unitId: string): Promise<File | undefined>;
|
143
|
+
/**
|
144
|
+
* Export XLSX file by unit id
|
145
|
+
*/
|
146
|
+
exportXLSXByUnitIdAsync(unitId: string): Promise<File | undefined>;
|
47
147
|
/**
|
48
148
|
* Export XLSX file by workbook data
|
49
149
|
*/
|
50
150
|
exportXLSXBySnapshot(snapshot: IWorkbookData): Promise<File | undefined>;
|
151
|
+
/**
|
152
|
+
* Export XLSX file by workbook data
|
153
|
+
*/
|
154
|
+
exportXLSXBySnapshotAsync(snapshot: IWorkbookData): Promise<File | undefined>;
|
51
155
|
/**
|
52
156
|
* Import DOCX file to unit id
|
53
157
|
* @param file File path or file object
|
54
158
|
*/
|
55
159
|
importDOCXToUnitId(file: string | File): Promise<string | undefined>;
|
160
|
+
/**
|
161
|
+
* Import DOCX file to unit id
|
162
|
+
* @param file File path or file object
|
163
|
+
*/
|
164
|
+
importDOCXToUnitIdAsync(file: string | File): Promise<string | undefined>;
|
56
165
|
/**
|
57
166
|
* Import DOCX file to document data
|
58
167
|
* @param file File path or file object
|
59
168
|
*/
|
60
169
|
importDOCXToSnapshot(file: string | File): Promise<IDocumentData | undefined>;
|
170
|
+
/**
|
171
|
+
* Import DOCX file to document data
|
172
|
+
* @param file File path or file object
|
173
|
+
*/
|
174
|
+
importDOCXToSnapshotAsync(file: string | File): Promise<IDocumentData | undefined>;
|
61
175
|
}
|
62
176
|
declare module '@univerjs/core' {
|
63
177
|
interface FUniver extends IFUniverExchangeClientMixin {
|
package/lib/umd/facade.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0x25f6(_0x194ba0,_0x5c8fd9){const _0x3cfe9c=_0x3cfe();return _0x25f6=function(_0x25f610,_0x50bf52){_0x25f610=_0x25f610-0x6c;let _0x5f3bf3=_0x3cfe9c[_0x25f610];return _0x5f3bf3;},_0x25f6(_0x194ba0,_0x5c8fd9);}(function(_0xd102c7,_0x859219){const _0x177167=_0x25f6,_0x56dd73=_0xd102c7();while(!![]){try{const _0x1a6c9e=-parseInt(_0x177167(0x6d))/0x1*(parseInt(_0x177167(0x82))/0x2)+parseInt(_0x177167(0x92))/0x3*(parseInt(_0x177167(0x79))/0x4)+-parseInt(_0x177167(0x71))/0x5*(parseInt(_0x177167(0x78))/0x6)+parseInt(_0x177167(0x73))/0x7+parseInt(_0x177167(0x81))/0x8+parseInt(_0x177167(0x85))/0x9*(parseInt(_0x177167(0x7f))/0xa)+parseInt(_0x177167(0x6e))/0xb;if(_0x1a6c9e===_0x859219)break;else _0x56dd73['push'](_0x56dd73['shift']());}catch(_0xbce8d9){_0x56dd73['push'](_0x56dd73['shift']());}}}(_0x3cfe,0xde019),function(_0x33f6f6,_0x3ca45c){const _0xc2dd42=_0x25f6;typeof exports=='object'&&typeof module<'u'?_0x3ca45c(require('@univerjs-pro/exchange-client'),require(_0xc2dd42(0x76))):typeof define==_0xc2dd42(0x87)&&define[_0xc2dd42(0x6c)]?define([_0xc2dd42(0x6f),_0xc2dd42(0x76)],_0x3ca45c):(_0x33f6f6=typeof globalThis<'u'?globalThis:_0x33f6f6||self,_0x3ca45c(_0x33f6f6['UniverProExchangeClient'],_0x33f6f6[_0xc2dd42(0x74)]));}(this,function(_0x24f2c6,_0x34e4e9){'use strict';const _0x10a817=_0x25f6;var _0x78cf0a=(_0x252d09=>(_0x252d09[_0x252d09[_0x10a817(0x83)]=0x0]='UNIVER_UNKNOWN',_0x252d09[_0x252d09[_0x10a817(0x8a)]=0x1]=_0x10a817(0x8a),_0x252d09[_0x252d09[_0x10a817(0x7d)]=0x2]=_0x10a817(0x7d),_0x252d09[_0x252d09[_0x10a817(0x80)]=0x3]='UNIVER_SLIDE',_0x252d09[_0x252d09[_0x10a817(0x8e)]=0x4]=_0x10a817(0x8e),_0x252d09[_0x252d09[_0x10a817(0x90)]=-0x1]='UNRECOGNIZED',_0x252d09))(_0x78cf0a||{});class _0x268788 extends _0x34e4e9[_0x10a817(0x89)]{async[_0x10a817(0x72)](_0x548b38){const _0x571dbe=_0x10a817;return this[_0x571dbe(0x77)](_0x548b38);}async[_0x10a817(0x77)](_0xa40032){const _0x35399d=_0x10a817,_0x4a0966=this[_0x35399d(0x8d)][_0x35399d(0x88)](_0x24f2c6[_0x35399d(0x91)]);if(!_0x4a0966)throw new Error(_0x35399d(0x84));return _0x4a0966[_0x35399d(0x75)](_0xa40032,_0x78cf0a[_0x35399d(0x7d)]);}async['importXLSXToSnapshot'](_0x5fb0c3){const _0x44bfa3=_0x10a817;return this[_0x44bfa3(0x8b)](_0x5fb0c3);}async[_0x10a817(0x8b)](_0x295278){const _0x24f7fb=_0x10a817,_0x59a778=this[_0x24f7fb(0x8d)]['get'](_0x24f2c6[_0x24f7fb(0x91)]);if(!_0x59a778)throw new Error(_0x24f7fb(0x84));return _0x59a778[_0x24f7fb(0x7e)](_0x295278);}async['exportXLSXByUnitId'](_0x1dc77d){const _0x17a812=_0x10a817;return this[_0x17a812(0x8f)](_0x1dc77d);}async[_0x10a817(0x8f)](_0x20f766){const _0x30d95e=_0x10a817,_0x385b83=this['_injector'][_0x30d95e(0x88)](_0x24f2c6[_0x30d95e(0x91)]);if(!_0x385b83)throw new Error(_0x30d95e(0x84));return _0x385b83[_0x30d95e(0x70)](_0x20f766);}async[_0x10a817(0x7b)](_0x520d0d){return this['exportXLSXBySnapshotAsync'](_0x520d0d);}async[_0x10a817(0x8c)](_0xaadeaa){const _0x1f2705=_0x10a817,_0x340619=this[_0x1f2705(0x8d)][_0x1f2705(0x88)](_0x24f2c6[_0x1f2705(0x91)]);if(!_0x340619)throw new Error(_0x1f2705(0x84));return _0x340619[_0x1f2705(0x7b)](_0xaadeaa);}async[_0x10a817(0x7a)](_0x22322f){const _0x522c77=_0x10a817;return this[_0x522c77(0x7c)](_0x22322f);}async[_0x10a817(0x7c)](_0x5672dc){const _0x420c31=_0x10a817,_0x29398f=this['_injector'][_0x420c31(0x88)](_0x24f2c6[_0x420c31(0x91)]);if(!_0x29398f)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x29398f[_0x420c31(0x75)](_0x5672dc,_0x78cf0a[_0x420c31(0x8a)]);}async[_0x10a817(0x93)](_0x54e079){const _0x573ac0=_0x10a817;return this[_0x573ac0(0x86)](_0x54e079);}async[_0x10a817(0x86)](_0x2b8b69){const _0x455ba0=_0x10a817,_0x52a039=this[_0x455ba0(0x8d)][_0x455ba0(0x88)](_0x24f2c6['IExchangeService']);if(!_0x52a039)throw new Error(_0x455ba0(0x84));return _0x52a039[_0x455ba0(0x93)](_0x2b8b69);}}_0x34e4e9[_0x10a817(0x89)][_0x10a817(0x94)](_0x268788);}));function _0x3cfe(){const _0x439130=['UNRECOGNIZED','IExchangeService','12qZXaPe','importDOCXToSnapshot','extend','amd','405371SNsGRU','5391705BoJIbq','@univerjs-pro/exchange-client','exportXLSXByUnitId','965RCafdX','importXLSXToUnitId','4321849QgvWQq','UniverCore','importFileToUnitId','@univerjs/core','importXLSXToUnitIdAsync','52770MvUjSJ','238956kEXYlg','importDOCXToUnitId','exportXLSXBySnapshot','importDOCXToUnitIdAsync','UNIVER_SHEET','importXLSXToSnapshot','109280liYtRH','UNIVER_SLIDE','7117896IVfify','2OZRynw','UNIVER_UNKNOWN','The\x20exchange\x20service\x20is\x20not\x20available','639jacbwe','importDOCXToSnapshotAsync','function','get','FUniver','UNIVER_DOC','importXLSXToSnapshotAsync','exportXLSXBySnapshotAsync','_injector','UNIVER_PROJECT','exportXLSXByUnitIdAsync'];_0x3cfe=function(){return _0x439130;};return _0x3cfe();}
|