@univerjs-pro/exchange-client 0.5.3-experimental.20250106-4af1f4e → 0.5.3-experimental.20250107-3e6579c
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
|
-
function
|
1
|
+
const _0x4add53=_0x3aa8;function _0x3aa8(_0x471c12,_0x56db5e){const _0x458f40=_0x458f();return _0x3aa8=function(_0x3aa824,_0x2127fe){_0x3aa824=_0x3aa824-0x1bb;let _0x29f42a=_0x458f40[_0x3aa824];return _0x29f42a;},_0x3aa8(_0x471c12,_0x56db5e);}(function(_0x50ca36,_0x4f5d0b){const _0x38b05a=_0x3aa8,_0x84b18f=_0x50ca36();while(!![]){try{const _0x12a7dc=parseInt(_0x38b05a(0x1c7))/0x1*(-parseInt(_0x38b05a(0x1c5))/0x2)+parseInt(_0x38b05a(0x1c8))/0x3*(parseInt(_0x38b05a(0x1cc))/0x4)+parseInt(_0x38b05a(0x1c0))/0x5*(parseInt(_0x38b05a(0x1c1))/0x6)+-parseInt(_0x38b05a(0x1cb))/0x7+parseInt(_0x38b05a(0x1c4))/0x8+parseInt(_0x38b05a(0x1cd))/0x9*(parseInt(_0x38b05a(0x1bf))/0xa)+-parseInt(_0x38b05a(0x1bb))/0xb;if(_0x12a7dc===_0x4f5d0b)break;else _0x84b18f['push'](_0x84b18f['shift']());}catch(_0x2928a8){_0x84b18f['push'](_0x84b18f['shift']());}}}(_0x458f,0xd7167));function _0x458f(){const _0x18d6da=['Uploading','Please\x20wait...','10171808CRrRLv','2rTlRUd','{0}\x20file(s)\x20uploaded\x20successfully','915737VopROu','1749rTXXxT','Downloading','Network\x20error','4936869KzKoIT','3356JKQnjU','5346765nTcFSf','1546611ZhcPEu','Download\x20success','Unknown\x20mistake','Internal\x20unknown\x20error','10Qpkzrp','719765rBTtFJ','12TmRnLa'];_0x458f=function(){return _0x18d6da;};return _0x458f();}const e={'exchange':{'file':'File','upload':'Open(File)','download':'Save\x20As','uploading':_0x4add53(0x1c2),'uploadSuccess':'File\x20uploaded\x20successfully','uploadSuccessTip':_0x4add53(0x1c6),'downloading':_0x4add53(0x1c9),'downloadSuccess':_0x4add53(0x1bc),'unknownMistake':_0x4add53(0x1bd),'networkError':_0x4add53(0x1ca),'tooLarge':'Data\x20is\x20too\x20large','internalError':_0x4add53(0x1be),'interrupt':'The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed.','wait':_0x4add53(0x1c3),'cancel':'Cancel','uploadAgain':'Upload\x20again'}};export{e as default};
|
package/lib/es/locale/fa-IR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x104612=_0x2e63;(function(_0x4f7d90,_0x3caefb){const _0x59c7ce=_0x2e63,_0x3e2ceb=_0x4f7d90();while(!![]){try{const _0x5cbc80=parseInt(_0x59c7ce(0xd2))/0x1*(-parseInt(_0x59c7ce(0xd0))/0x2)+parseInt(_0x59c7ce(0xdf))/0x3+parseInt(_0x59c7ce(0xce))/0x4*(parseInt(_0x59c7ce(0xcd))/0x5)+-parseInt(_0x59c7ce(0xcf))/0x6+parseInt(_0x59c7ce(0xd4))/0x7+parseInt(_0x59c7ce(0xcb))/0x8*(parseInt(_0x59c7ce(0xdb))/0x9)+-parseInt(_0x59c7ce(0xe2))/0xa;if(_0x5cbc80===_0x3caefb)break;else _0x3e2ceb['push'](_0x3e2ceb['shift']());}catch(_0x4bf3c9){_0x3e2ceb['push'](_0x3e2ceb['shift']());}}}(_0x5afb,0x42618));function _0x5afb(){const _0x3ee623=['9051820vyYPgw','776YCxkyP','خطای\x20ناشناخته','10VClBoQ','749332GzCAtx','1614102AmYFxG','344156IiHzeu','فایل','2sbcovs','خطای\x20شبکه','3224592NcIuRR','بارگذاری\x20مجدد','داده\x20خیلی\x20بزرگ\x20است','بازکردن(فایل)','دانلود\x20موفقیت\x20آمیز','فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','خطای\x20داخلی\x20ناشناخته','38403sGXagG','{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','لطفا\x20صبر\x20کنید...','1623090VCNJzH','ذخیره\x20به\x20عنوان','لغو'];_0x5afb=function(){return _0x3ee623;};return _0x5afb();}const o={'exchange':{'file':_0x104612(0xd1),'upload':_0x104612(0xd7),'download':_0x104612(0xe0),'uploading':'در\x20حال\x20بارگذاری','uploadSuccess':_0x104612(0xd9),'uploadSuccessTip':_0x104612(0xdc),'downloading':'در\x20حال\x20دانلود','downloadSuccess':_0x104612(0xd8),'unknownMistake':_0x104612(0xcc),'networkError':_0x104612(0xd3),'tooLarge':_0x104612(0xd6),'internalError':_0x104612(0xda),'interrupt':_0x104612(0xdd),'wait':_0x104612(0xde),'cancel':_0x104612(0xe1),'uploadAgain':_0x104612(0xd5)}};function _0x2e63(_0x526701,_0x53a529){const _0x5afb7d=_0x5afb();return _0x2e63=function(_0x2e63e8,_0xd37b59){_0x2e63e8=_0x2e63e8-0xcb;let _0x40e8ef=_0x5afb7d[_0x2e63e8];return _0x40e8ef;},_0x2e63(_0x526701,_0x53a529);}export{o as default};
|
package/lib/es/locale/fr-FR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0x28e7(_0x17014d,_0x2243e9){const _0x44786b=_0x4478();return _0x28e7=function(_0x28e78b,_0x3f1907){_0x28e78b=_0x28e78b-0x13f;let _0xf83a29=_0x44786b[_0x28e78b];return _0xf83a29;},_0x28e7(_0x17014d,_0x2243e9);}const _0x19a654=_0x28e7;(function(_0x496202,_0x2bfe02){const _0x193bbb=_0x28e7,_0x1acf1b=_0x496202();while(!![]){try{const _0x34b232=-parseInt(_0x193bbb(0x152))/0x1+parseInt(_0x193bbb(0x145))/0x2*(-parseInt(_0x193bbb(0x150))/0x3)+parseInt(_0x193bbb(0x146))/0x4+parseInt(_0x193bbb(0x14e))/0x5+parseInt(_0x193bbb(0x14a))/0x6+parseInt(_0x193bbb(0x151))/0x7*(parseInt(_0x193bbb(0x13f))/0x8)+parseInt(_0x193bbb(0x142))/0x9*(-parseInt(_0x193bbb(0x148))/0xa);if(_0x34b232===_0x2bfe02)break;else _0x1acf1b['push'](_0x1acf1b['shift']());}catch(_0x59dab3){_0x1acf1b['push'](_0x1acf1b['shift']());}}}(_0x4478,0x194de));const e={'exchange':{'file':'File','upload':'Open(File)','download':_0x19a654(0x143),'uploading':_0x19a654(0x149),'uploadSuccess':_0x19a654(0x14b),'uploadSuccessTip':'{0}\x20file(s)\x20uploaded\x20successfully','downloading':'Downloading','downloadSuccess':'Download\x20success','unknownMistake':'Unknown\x20mistake','networkError':_0x19a654(0x144),'tooLarge':_0x19a654(0x14d),'internalError':_0x19a654(0x140),'interrupt':_0x19a654(0x147),'wait':_0x19a654(0x14c),'cancel':_0x19a654(0x14f),'uploadAgain':_0x19a654(0x141)}},o=e;export{o as default};function _0x4478(){const _0x2a91d2=['14XOUgsH','162493WadmNN','742912yUfBvT','Internal\x20unknown\x20error','Upload\x20again','1678779yCGjHM','Save\x20As','Network\x20error','3482Socmqz','289252yjvqBp','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed.','10InpFfE','Uploading','1137210wvxZNQ','File\x20uploaded\x20successfully','Please\x20wait...','Data\x20is\x20too\x20large','739280WiuhRn','Cancel','246QJvgEy'];_0x4478=function(){return _0x2a91d2;};return _0x4478();}
|
package/lib/es/locale/ru-RU.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
const _0x1e0111=_0x5966;(function(_0x2829e3,_0x220287){const _0x8eb073=_0x5966,_0xc13b2f=_0x2829e3();while(!![]){try{const _0x2c81ce=parseInt(_0x8eb073(0x7a))/0x1+parseInt(_0x8eb073(0x7c))/0x2+parseInt(_0x8eb073(0x76))/0x3+-parseInt(_0x8eb073(0x85))/0x4+-parseInt(_0x8eb073(0x7d))/0x5+-parseInt(_0x8eb073(0x80))/0x6*(parseInt(_0x8eb073(0x77))/0x7)+-parseInt(_0x8eb073(0x79))/0x8*(-parseInt(_0x8eb073(0x81))/0x9);if(_0x2c81ce===_0x220287)break;else _0xc13b2f['push'](_0xc13b2f['shift']());}catch(_0x132258){_0xc13b2f['push'](_0xc13b2f['shift']());}}}(_0x4bb8,0x36337));function _0x5966(_0x1b9442,_0x26a1f8){const _0x4bb80c=_0x4bb8();return _0x5966=function(_0x5966f5,_0x43f35e){_0x5966f5=_0x5966f5-0x76;let _0x6fe372=_0x4bb80c[_0x5966f5];return _0x6fe372;},_0x5966(_0x1b9442,_0x26a1f8);}function _0x4bb8(){const _0x3c6e83=['532fasJxS','Неизвестная\x20ошибка','8SRGJCM','429802GcLrXU','Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась.','876286NVNfgN','2199230CDtbPg','Скачивание\x20успешно','Загрузка','13494skrgVa','1308402kzBSpB','Данные\x20слишком\x20большие','{0}\x20файл(ов)\x20успешно\x20загружен(о)','Файл','911548BWJuLe','Внутренняя\x20неизвестная\x20ошибка','Сохранить\x20как','Файл\x20успешно\x20загружен','Сетевая\x20ошибка','142023kDELTw'];_0x4bb8=function(){return _0x3c6e83;};return _0x4bb8();}const o={'exchange':{'file':_0x1e0111(0x84),'upload':'Открыть(Файл)','download':_0x1e0111(0x87),'uploading':_0x1e0111(0x7f),'uploadSuccess':_0x1e0111(0x88),'uploadSuccessTip':_0x1e0111(0x83),'downloading':'Скачивание','downloadSuccess':_0x1e0111(0x7e),'unknownMistake':_0x1e0111(0x78),'networkError':_0x1e0111(0x89),'tooLarge':_0x1e0111(0x82),'internalError':_0x1e0111(0x86),'interrupt':_0x1e0111(0x7b),'wait':'Пожалуйста,\x20подождите...','cancel':'Отмена','uploadAgain':'Загрузить\x20снова'}};export{o as default};
|
package/lib/es/locale/vi-VN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x4811bf=_0x33cc;(function(_0x4bbdfb,_0xec6f76){const _0x528105=_0x33cc,_0xd6d757=_0x4bbdfb();while(!![]){try{const _0x4870a9=-parseInt(_0x528105(0xeb))/0x1*(-parseInt(_0x528105(0xe4))/0x2)+parseInt(_0x528105(0xec))/0x3*(parseInt(_0x528105(0xe0))/0x4)+parseInt(_0x528105(0xe6))/0x5+-parseInt(_0x528105(0xe8))/0x6+parseInt(_0x528105(0xe3))/0x7*(parseInt(_0x528105(0xf8))/0x8)+-parseInt(_0x528105(0xf1))/0x9*(-parseInt(_0x528105(0xee))/0xa)+parseInt(_0x528105(0xed))/0xb*(-parseInt(_0x528105(0xe7))/0xc);if(_0x4870a9===_0xec6f76)break;else _0xd6d757['push'](_0xd6d757['shift']());}catch(_0x1ca47f){_0xd6d757['push'](_0xd6d757['shift']());}}}(_0x2f8b,0x3167e));function _0x2f8b(){const _0x140fa6=['1167918zQHUHw','Vui\x20lòng\x20đợi...','Lỗi\x20không\x20xác\x20định','2KSrldQ','3HSldVn','781ZvTxeg','196330TkLjID','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','Lỗi\x20không\x20xác\x20định\x20bên\x20trong','9pebovX','Tệp','Tải\x20lên\x20lại','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.','Mở\x20(Tệp)','Đang\x20tải\x20lên','136arDiUi','Lỗi\x20mạng','913916XOUGme','Lưu\x20dưới\x20dạng','Tải\x20xuống\x20thành\x20công','88193YcCPXh','88016FxqRfd','Luồng\x20dữ\x20liệu\x20quá\x20lớn','1065695ZOzxYw','61932vwePDM'];_0x2f8b=function(){return _0x140fa6;};return _0x2f8b();}function _0x33cc(_0x5e4c1e,_0x568307){const _0x2f8bfd=_0x2f8b();return _0x33cc=function(_0x33ccd2,_0x204501){_0x33ccd2=_0x33ccd2-0xe0;let _0x4f2c6b=_0x2f8bfd[_0x33ccd2];return _0x4f2c6b;},_0x33cc(_0x5e4c1e,_0x568307);}const n={'exchange':{'file':_0x4811bf(0xf2),'upload':_0x4811bf(0xf6),'download':_0x4811bf(0xe1),'uploading':_0x4811bf(0xf7),'uploadSuccess':'Tải\x20lên\x20tệp\x20thành\x20công','uploadSuccessTip':_0x4811bf(0xef),'downloading':'Đang\x20tải\x20xuống','downloadSuccess':_0x4811bf(0xe2),'unknownMistake':_0x4811bf(0xea),'networkError':_0x4811bf(0xf9),'tooLarge':_0x4811bf(0xe5),'internalError':_0x4811bf(0xf0),'interrupt':_0x4811bf(0xf5),'wait':_0x4811bf(0xe9),'cancel':_0x4811bf(0xf4),'uploadAgain':_0x4811bf(0xf3)}};export{n as default};
|
package/lib/es/locale/zh-CN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
function _0x495d(_0x1f45e7,_0x2ff380){const _0x5b7f24=_0x5b7f();return _0x495d=function(_0x495dec,_0x2183c4){_0x495dec=_0x495dec-0x15f;let _0x2d3aa0=_0x5b7f24[_0x495dec];return _0x2d3aa0;},_0x495d(_0x1f45e7,_0x2ff380);}function _0x5b7f(){const _0x3a529c=['打开(文件)','197930fYlPcv','505803PjXbdQ','16553746jfvmTS','3018624xHfGkN','另存为','16JINrQZ','数据流过大','5813580ldtRgA','网络异常','664990WXkguG','网络连接中断,文件上传失败。','9VCypFx','未知错误','再次上传','{0}个文件上传成功','下载成功','12cRuFoM','3028137qoyPpr','文件上传成功','27afjkMu','请稍等...'];_0x5b7f=function(){return _0x3a529c;};return _0x5b7f();}const _0x1c9efe=_0x495d;(function(_0x424d84,_0x58a8e9){const _0x47e833=_0x495d,_0x4b97fe=_0x424d84();while(!![]){try{const _0x3b2806=-parseInt(_0x47e833(0x161))/0x1+-parseInt(_0x47e833(0x160))/0x2*(-parseInt(_0x47e833(0x173))/0x3)+parseInt(_0x47e833(0x163))/0x4+-parseInt(_0x47e833(0x169))/0x5*(parseInt(_0x47e833(0x170))/0x6)+-parseInt(_0x47e833(0x171))/0x7*(-parseInt(_0x47e833(0x165))/0x8)+parseInt(_0x47e833(0x16b))/0x9*(parseInt(_0x47e833(0x167))/0xa)+-parseInt(_0x47e833(0x162))/0xb;if(_0x3b2806===_0x58a8e9)break;else _0x4b97fe['push'](_0x4b97fe['shift']());}catch(_0x270c94){_0x4b97fe['push'](_0x4b97fe['shift']());}}}(_0x5b7f,0xc705c));const o={'exchange':{'file':'文件','upload':_0x1c9efe(0x15f),'download':_0x1c9efe(0x164),'uploading':'上传中','uploadSuccess':_0x1c9efe(0x172),'uploadSuccessTip':_0x1c9efe(0x16e),'downloading':'下载中','downloadSuccess':_0x1c9efe(0x16f),'unknownMistake':_0x1c9efe(0x16c),'networkError':_0x1c9efe(0x168),'tooLarge':_0x1c9efe(0x166),'internalError':'内部未知错误','interrupt':_0x1c9efe(0x16a),'wait':_0x1c9efe(0x174),'cancel':'取消','uploadAgain':_0x1c9efe(0x16d)}};export{o as default};
|
package/lib/es/locale/zh-TW.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
const _0x1b6fce=_0x1267;(function(_0xafa066,_0x3f259b){const _0x38b5f2=_0x1267,_0x564ca2=_0xafa066();while(!![]){try{const _0x1c1558=-parseInt(_0x38b5f2(0x12d))/0x1+parseInt(_0x38b5f2(0x12f))/0x2+parseInt(_0x38b5f2(0x12c))/0x3+-parseInt(_0x38b5f2(0x133))/0x4+-parseInt(_0x38b5f2(0x137))/0x5+-parseInt(_0x38b5f2(0x138))/0x6+parseInt(_0x38b5f2(0x134))/0x7;if(_0x1c1558===_0x3f259b)break;else _0x564ca2['push'](_0x564ca2['shift']());}catch(_0x1625b0){_0x564ca2['push'](_0x564ca2['shift']());}}}(_0x5915,0xbdc84));const o={'exchange':{'file':'檔案','upload':_0x1b6fce(0x130),'download':_0x1b6fce(0x131),'uploading':'上傳中','uploadSuccess':_0x1b6fce(0x12e),'uploadSuccessTip':'{0}個檔案上傳成功','downloading':'下載中','downloadSuccess':_0x1b6fce(0x139),'unknownMistake':'未知錯誤','networkError':_0x1b6fce(0x136),'tooLarge':'資料流過大','internalError':_0x1b6fce(0x132),'interrupt':_0x1b6fce(0x135),'wait':'請稍等...','cancel':'取消','uploadAgain':_0x1b6fce(0x12b)}};function _0x5915(){const _0x36bb0a=['再次上傳','1331958lpDWFX','1398000rjpxQs','檔案上傳成功','1734286ACOVbH','開啟(檔案)','另存為','內部未知錯誤','5851212wgUxHj','26132519deTRGk','網路連線中斷,檔案上傳失敗。\x20','網路異常','3255565ABMZLg','4530492QvbZCO','下載成功'];_0x5915=function(){return _0x36bb0a;};return _0x5915();}function _0x1267(_0xbd969a,_0x3f7628){const _0x59154b=_0x5915();return _0x1267=function(_0x126770,_0x597f80){_0x126770=_0x126770-0x12b;let _0x15c189=_0x59154b[_0x126770];return _0x15c189;},_0x1267(_0xbd969a,_0x3f7628);}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 _0x3543(_0x5192ed,_0x232d0e){const _0x178e35=_0x178e();return _0x3543=function(_0x35432f,_0x4572bd){_0x35432f=_0x35432f-0x17c;let _0x177e72=_0x178e35[_0x35432f];return _0x177e72;},_0x3543(_0x5192ed,_0x232d0e);}function _0x178e(){const _0x2e14b0=['importXLSXToSnapshotAsync','exportXLSXByUnitId','28KNZJWe','872658tHcpze','809793PConhZ','1463152ZSFmJD','importDOCXToUnitIdAsync','214750sHYUmm','importXLSXToUnitId','FUniver','2OSJtad','_injector','UNIVER_SHEET','@univerjs/core','UNRECOGNIZED','importXLSXToUnitIdAsync','get','importFileToUnitId','UNIVER_SLIDE','1455UpvSyp','exportXLSXBySnapshot','12378SaUBhg','importDOCXToSnapshot','UNIVER_DOC','IExchangeService','UniverProExchangeClient','amd','exportXLSXBySnapshotAsync','function','1778410AojHsb','@univerjs-pro/exchange-client','UNIVER_UNKNOWN','exportXLSXByUnitIdAsync','importDOCXToSnapshotAsync','importDOCXToUnitId','2944156nDRGtH','The\x20exchange\x20service\x20is\x20not\x20available','importXLSXToSnapshot'];_0x178e=function(){return _0x2e14b0;};return _0x178e();}(function(_0x5ae674,_0x5217b9){const _0x350f81=_0x3543,_0x40040c=_0x5ae674();while(!![]){try{const _0x8a9c64=-parseInt(_0x350f81(0x195))/0x1+-parseInt(_0x350f81(0x198))/0x2*(parseInt(_0x350f81(0x192))/0x3)+-parseInt(_0x350f81(0x18b))/0x4+-parseInt(_0x350f81(0x1a1))/0x5*(-parseInt(_0x350f81(0x17d))/0x6)+-parseInt(_0x350f81(0x190))/0x7*(-parseInt(_0x350f81(0x193))/0x8)+parseInt(_0x350f81(0x191))/0x9+parseInt(_0x350f81(0x185))/0xa;if(_0x8a9c64===_0x5217b9)break;else _0x40040c['push'](_0x40040c['shift']());}catch(_0xdab8ba){_0x40040c['push'](_0x40040c['shift']());}}}(_0x178e,0x5e3c8),function(_0x1f1c33,_0x3b9c83){const _0x18c058=_0x3543;typeof exports=='object'&&typeof module<'u'?_0x3b9c83(require(_0x18c058(0x186)),require('@univerjs/core')):typeof define==_0x18c058(0x184)&&define[_0x18c058(0x182)]?define([_0x18c058(0x186),_0x18c058(0x19b)],_0x3b9c83):(_0x1f1c33=typeof globalThis<'u'?globalThis:_0x1f1c33||self,_0x3b9c83(_0x1f1c33[_0x18c058(0x181)],_0x1f1c33['UniverCore']));}(this,function(_0x1aa6b8,_0x25f304){'use strict';const _0x328a27=_0x3543;var _0x51ce1b=(_0x2cb056=>(_0x2cb056[_0x2cb056[_0x328a27(0x187)]=0x0]=_0x328a27(0x187),_0x2cb056[_0x2cb056[_0x328a27(0x17f)]=0x1]='UNIVER_DOC',_0x2cb056[_0x2cb056['UNIVER_SHEET']=0x2]=_0x328a27(0x19a),_0x2cb056[_0x2cb056[_0x328a27(0x1a0)]=0x3]=_0x328a27(0x1a0),_0x2cb056[_0x2cb056['UNIVER_PROJECT']=0x4]='UNIVER_PROJECT',_0x2cb056[_0x2cb056['UNRECOGNIZED']=-0x1]=_0x328a27(0x19c),_0x2cb056))(_0x51ce1b||{});class _0x1e8420 extends _0x25f304[_0x328a27(0x197)]{async[_0x328a27(0x196)](_0x2e82ea){const _0xefa340=_0x328a27;return this[_0xefa340(0x19d)](_0x2e82ea);}async['importXLSXToUnitIdAsync'](_0x5be2fd){const _0xa99f95=_0x328a27,_0x36a3c3=this[_0xa99f95(0x199)]['get'](_0x1aa6b8[_0xa99f95(0x180)]);if(!_0x36a3c3)throw new Error(_0xa99f95(0x18c));return _0x36a3c3[_0xa99f95(0x19f)](_0x5be2fd,_0x51ce1b['UNIVER_SHEET']);}async[_0x328a27(0x18d)](_0x57c5b5){const _0x525937=_0x328a27;return this[_0x525937(0x18e)](_0x57c5b5);}async[_0x328a27(0x18e)](_0x3bae20){const _0x59c4d3=_0x328a27,_0x51eb71=this['_injector'][_0x59c4d3(0x19e)](_0x1aa6b8['IExchangeService']);if(!_0x51eb71)throw new Error(_0x59c4d3(0x18c));return _0x51eb71[_0x59c4d3(0x18d)](_0x3bae20);}async[_0x328a27(0x18f)](_0x4a6138){const _0x1458b8=_0x328a27;return this[_0x1458b8(0x188)](_0x4a6138);}async[_0x328a27(0x188)](_0x1aeb6b){const _0x46c072=_0x328a27,_0x55db8a=this['_injector']['get'](_0x1aa6b8['IExchangeService']);if(!_0x55db8a)throw new Error(_0x46c072(0x18c));return _0x55db8a[_0x46c072(0x18f)](_0x1aeb6b);}async[_0x328a27(0x17c)](_0xf82ee4){const _0xfc7dd2=_0x328a27;return this[_0xfc7dd2(0x183)](_0xf82ee4);}async[_0x328a27(0x183)](_0x10601e){const _0x57102e=_0x328a27,_0x4d748b=this[_0x57102e(0x199)][_0x57102e(0x19e)](_0x1aa6b8[_0x57102e(0x180)]);if(!_0x4d748b)throw new Error(_0x57102e(0x18c));return _0x4d748b[_0x57102e(0x17c)](_0x10601e);}async[_0x328a27(0x18a)](_0x2089c3){const _0xe0ef36=_0x328a27;return this[_0xe0ef36(0x194)](_0x2089c3);}async[_0x328a27(0x194)](_0x80d461){const _0x2106bc=_0x328a27,_0x46d7b2=this[_0x2106bc(0x199)][_0x2106bc(0x19e)](_0x1aa6b8[_0x2106bc(0x180)]);if(!_0x46d7b2)throw new Error(_0x2106bc(0x18c));return _0x46d7b2['importFileToUnitId'](_0x80d461,_0x51ce1b['UNIVER_DOC']);}async[_0x328a27(0x17e)](_0x3236e4){const _0x184eff=_0x328a27;return this[_0x184eff(0x189)](_0x3236e4);}async['importDOCXToSnapshotAsync'](_0x3f152e){const _0x428c8b=_0x328a27,_0x42ab17=this[_0x428c8b(0x199)]['get'](_0x1aa6b8[_0x428c8b(0x180)]);if(!_0x42ab17)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x42ab17[_0x428c8b(0x17e)](_0x3f152e);}}_0x25f304['FUniver']['extend'](_0x1e8420);}));
|