@univerjs-pro/exchange-client 0.5.0 → 0.5.1-nightly.202412011605
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 _0x26bdcf=_0x2b59;function _0x4db7(){const _0x4d82d7=['File','7665616qxxfyV','360WQzTuy','10426570XXxgVp','21503mhQhYJ','Download\x20success','34mTdWDo','586180xPFdUT','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed.','4PvsoiA','42csJpuW','File\x20uploaded\x20successfully','Downloading','2950724hUDRlv','2325399GMIaYK','Upload\x20again','1557yAEpqj'];_0x4db7=function(){return _0x4d82d7;};return _0x4db7();}(function(_0x32ba72,_0x482679){const _0x473fad=_0x2b59,_0x5bc3b6=_0x32ba72();while(!![]){try{const _0x19a141=-parseInt(_0x473fad(0x156))/0x1*(-parseInt(_0x473fad(0x147))/0x2)+parseInt(_0x473fad(0x14f))/0x3*(parseInt(_0x473fad(0x14a))/0x4)+parseInt(_0x473fad(0x148))/0x5*(parseInt(_0x473fad(0x14b))/0x6)+parseInt(_0x473fad(0x14e))/0x7+-parseInt(_0x473fad(0x153))/0x8+-parseInt(_0x473fad(0x151))/0x9*(-parseInt(_0x473fad(0x154))/0xa)+-parseInt(_0x473fad(0x155))/0xb;if(_0x19a141===_0x482679)break;else _0x5bc3b6['push'](_0x5bc3b6['shift']());}catch(_0x319a89){_0x5bc3b6['push'](_0x5bc3b6['shift']());}}}(_0x4db7,0x75ed0));function _0x2b59(_0x2a550c,_0x5e29e6){const _0x4db71c=_0x4db7();return _0x2b59=function(_0x2b59fc,_0x31910f){_0x2b59fc=_0x2b59fc-0x146;let _0x1d2404=_0x4db71c[_0x2b59fc];return _0x1d2404;},_0x2b59(_0x2a550c,_0x5e29e6);}const e={'exchange':{'file':_0x26bdcf(0x152),'upload':'Open(File)','download':'Save\x20As','uploading':'Uploading','uploadSuccess':_0x26bdcf(0x14c),'uploadSuccessTip':'{0}\x20file(s)\x20uploaded\x20successfully','downloading':_0x26bdcf(0x14d),'downloadSuccess':_0x26bdcf(0x146),'unknownMistake':'Unknown\x20mistake','networkError':'Network\x20error','tooLarge':'Data\x20is\x20too\x20large','internalError':'Internal\x20unknown\x20error','interrupt':_0x26bdcf(0x149),'wait':'Please\x20wait...','cancel':'Cancel','uploadAgain':_0x26bdcf(0x150)}};export{e as default};
|
package/lib/es/locale/fa-IR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0xe8ec(_0x5432ba,_0x481e72){const _0x16f677=_0x16f6();return _0xe8ec=function(_0xe8ec13,_0x64da1c){_0xe8ec13=_0xe8ec13-0x197;let _0xd7678=_0x16f677[_0xe8ec13];return _0xd7678;},_0xe8ec(_0x5432ba,_0x481e72);}const _0x5bbc96=_0xe8ec;function _0x16f6(){const _0x3fb1dc=['در\x20حال\x20بارگذاری','4rGOBSl','3656830OkKajV','بارگذاری\x20مجدد','1728906aGNNtm','1186lTHAgQ','2188850fgqmAm','1038VeEQAq','5846769ZiAvYf','{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','خطای\x20داخلی\x20ناشناخته','11noopXq','بازکردن(فایل)','لطفا\x20صبر\x20کنید...','اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','فایل','29GiMetX','لغو','6261480YncnoT','خطای\x20شبکه','31339kSisvR','در\x20حال\x20دانلود','دانلود\x20موفقیت\x20آمیز'];_0x16f6=function(){return _0x3fb1dc;};return _0x16f6();}(function(_0x13f6e7,_0x3a3a46){const _0x584432=_0xe8ec,_0x27d3e7=_0x13f6e7();while(!![]){try{const _0x3cf4e4=parseInt(_0x584432(0x19d))/0x1*(-parseInt(_0x584432(0x1a9))/0x2)+parseInt(_0x584432(0x1a8))/0x3+-parseInt(_0x584432(0x1a5))/0x4*(parseInt(_0x584432(0x1a6))/0x5)+-parseInt(_0x584432(0x1ab))/0x6*(-parseInt(_0x584432(0x1a1))/0x7)+parseInt(_0x584432(0x19f))/0x8+-parseInt(_0x584432(0x1ac))/0x9+parseInt(_0x584432(0x1aa))/0xa*(-parseInt(_0x584432(0x198))/0xb);if(_0x3cf4e4===_0x3a3a46)break;else _0x27d3e7['push'](_0x27d3e7['shift']());}catch(_0x1ca432){_0x27d3e7['push'](_0x27d3e7['shift']());}}}(_0x16f6,0x7e143));const o={'exchange':{'file':_0x5bbc96(0x19c),'upload':_0x5bbc96(0x199),'download':'ذخیره\x20به\x20عنوان','uploading':_0x5bbc96(0x1a4),'uploadSuccess':'فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','uploadSuccessTip':_0x5bbc96(0x1ad),'downloading':_0x5bbc96(0x1a2),'downloadSuccess':_0x5bbc96(0x1a3),'unknownMistake':'خطای\x20ناشناخته','networkError':_0x5bbc96(0x1a0),'tooLarge':'داده\x20خیلی\x20بزرگ\x20است','internalError':_0x5bbc96(0x197),'interrupt':_0x5bbc96(0x19b),'wait':_0x5bbc96(0x19a),'cancel':_0x5bbc96(0x19e),'uploadAgain':_0x5bbc96(0x1a7)}};export{o as default};
|
@@ -0,0 +1 @@
|
|
1
|
+
const _0x22ad75=_0x229f;(function(_0x4ecdab,_0x48a8dc){const _0x31b386=_0x229f,_0x1d1c5b=_0x4ecdab();while(!![]){try{const _0x52f427=-parseInt(_0x31b386(0x198))/0x1+parseInt(_0x31b386(0x199))/0x2+-parseInt(_0x31b386(0x1aa))/0x3+-parseInt(_0x31b386(0x195))/0x4+parseInt(_0x31b386(0x1a0))/0x5*(parseInt(_0x31b386(0x1a3))/0x6)+-parseInt(_0x31b386(0x197))/0x7*(parseInt(_0x31b386(0x1a5))/0x8)+parseInt(_0x31b386(0x19c))/0x9;if(_0x52f427===_0x48a8dc)break;else _0x1d1c5b['push'](_0x1d1c5b['shift']());}catch(_0x3b7d1e){_0x1d1c5b['push'](_0x1d1c5b['shift']());}}}(_0x49fb,0x6e25d));const e={'exchange':{'file':_0x22ad75(0x1a2),'upload':_0x22ad75(0x1a1),'download':_0x22ad75(0x1ac),'uploading':_0x22ad75(0x1a9),'uploadSuccess':_0x22ad75(0x19b),'uploadSuccessTip':_0x22ad75(0x196),'downloading':_0x22ad75(0x19a),'downloadSuccess':_0x22ad75(0x1ab),'unknownMistake':_0x22ad75(0x1a6),'networkError':_0x22ad75(0x19d),'tooLarge':_0x22ad75(0x19f),'internalError':_0x22ad75(0x1a4),'interrupt':_0x22ad75(0x1a7),'wait':_0x22ad75(0x1a8),'cancel':_0x22ad75(0x19e),'uploadAgain':'Upload\x20again'}},o=e;export{o as default};function _0x229f(_0x13139f,_0xf6a268){const _0x49fbe8=_0x49fb();return _0x229f=function(_0x229f98,_0x2d9327){_0x229f98=_0x229f98-0x195;let _0x2e5ece=_0x49fbe8[_0x229f98];return _0x2e5ece;},_0x229f(_0x13139f,_0xf6a268);}function _0x49fb(){const _0x36b339=['Uploading','1857387kjbmUF','Download\x20success','Save\x20As','764228IRnxQB','{0}\x20file(s)\x20uploaded\x20successfully','42469bAhYqo','740908soXQiq','205572zctAxr','Downloading','File\x20uploaded\x20successfully','18212706SvQoFx','Network\x20error','Cancel','Data\x20is\x20too\x20large','1342855TItVqx','Open(File)','File','12AxnaUJ','Internal\x20unknown\x20error','872GFAiVn','Unknown\x20mistake','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed.','Please\x20wait...'];_0x49fb=function(){return _0x36b339;};return _0x49fb();}
|
package/lib/es/locale/ru-RU.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x3f75b3=_0x57ec;(function(_0x16d488,_0x30d0a2){const _0x58a7ea=_0x57ec,_0x403bee=_0x16d488();while(!![]){try{const _0x5a90ec=-parseInt(_0x58a7ea(0x8b))/0x1+-parseInt(_0x58a7ea(0x9a))/0x2+parseInt(_0x58a7ea(0x8e))/0x3+parseInt(_0x58a7ea(0x90))/0x4+parseInt(_0x58a7ea(0x87))/0x5+-parseInt(_0x58a7ea(0x8c))/0x6*(-parseInt(_0x58a7ea(0x8f))/0x7)+parseInt(_0x58a7ea(0x8d))/0x8*(-parseInt(_0x58a7ea(0x96))/0x9);if(_0x5a90ec===_0x30d0a2)break;else _0x403bee['push'](_0x403bee['shift']());}catch(_0x4d1f74){_0x403bee['push'](_0x403bee['shift']());}}}(_0x3d00,0x44617));const o={'exchange':{'file':_0x3f75b3(0x95),'upload':_0x3f75b3(0x86),'download':_0x3f75b3(0x8a),'uploading':_0x3f75b3(0x93),'uploadSuccess':'Файл\x20успешно\x20загружен','uploadSuccessTip':_0x3f75b3(0x92),'downloading':_0x3f75b3(0x97),'downloadSuccess':'Скачивание\x20успешно','unknownMistake':_0x3f75b3(0x91),'networkError':'Сетевая\x20ошибка','tooLarge':_0x3f75b3(0x89),'internalError':'Внутренняя\x20неизвестная\x20ошибка','interrupt':_0x3f75b3(0x98),'wait':_0x3f75b3(0x88),'cancel':_0x3f75b3(0x99),'uploadAgain':_0x3f75b3(0x94)}};function _0x57ec(_0x4378cd,_0x895ec){const _0x3d00bd=_0x3d00();return _0x57ec=function(_0x57ec6e,_0x5b015a){_0x57ec6e=_0x57ec6e-0x86;let _0xaaba8c=_0x3d00bd[_0x57ec6e];return _0xaaba8c;},_0x57ec(_0x4378cd,_0x895ec);}function _0x3d00(){const _0x4caca5=['807034gUGOlj','Открыть(Файл)','1625255HPZpvK','Пожалуйста,\x20подождите...','Данные\x20слишком\x20большие','Сохранить\x20как','64969AqdooI','194652eHZvzl','1273816hEmbxQ','701931VvVQly','42MjkitD','616480utiMON','Неизвестная\x20ошибка','{0}\x20файл(ов)\x20успешно\x20загружен(о)','Загрузка','Загрузить\x20снова','Файл','9vrxArN','Скачивание','Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась.','Отмена'];_0x3d00=function(){return _0x4caca5;};return _0x3d00();}export{o as default};
|
package/lib/es/locale/vi-VN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x5b0ee8=_0x5e0e;(function(_0x426f00,_0x2ca3cb){const _0x32ce86=_0x5e0e,_0x11e408=_0x426f00();while(!![]){try{const _0x592952=-parseInt(_0x32ce86(0xdb))/0x1*(-parseInt(_0x32ce86(0xd9))/0x2)+-parseInt(_0x32ce86(0xd6))/0x3*(parseInt(_0x32ce86(0xce))/0x4)+parseInt(_0x32ce86(0xd3))/0x5*(parseInt(_0x32ce86(0xdc))/0x6)+parseInt(_0x32ce86(0xd4))/0x7+-parseInt(_0x32ce86(0xda))/0x8+-parseInt(_0x32ce86(0xde))/0x9*(parseInt(_0x32ce86(0xd7))/0xa)+parseInt(_0x32ce86(0xe0))/0xb;if(_0x592952===_0x2ca3cb)break;else _0x11e408['push'](_0x11e408['shift']());}catch(_0x47b122){_0x11e408['push'](_0x11e408['shift']());}}}(_0x416c,0x3c760));function _0x416c(){const _0x59e9a0=['859011YiaCWs','29760eIjMjf','Tải\x20lên\x20tệp\x20thành\x20công','1944JUAdcU','3400288NFbrix','249zuXYDI','502974qWmjlj','Lỗi\x20mạng','324nYSGcf','Mở\x20(Tệp)','4059363InuxdK','Hủy\x20bỏ','Đang\x20tải\x20xuống','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','4VkgEXZ','Lỗi\x20không\x20xác\x20định\x20bên\x20trong','Vui\x20lòng\x20đợi...','Tệp','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại.','20QZdNxQ','838460KNQQIB','Lưu\x20dưới\x20dạng'];_0x416c=function(){return _0x59e9a0;};return _0x416c();}function _0x5e0e(_0x156ce0,_0x373042){const _0x416c60=_0x416c();return _0x5e0e=function(_0x5e0e8f,_0x12f2cc){_0x5e0e8f=_0x5e0e8f-0xce;let _0x2611a1=_0x416c60[_0x5e0e8f];return _0x2611a1;},_0x5e0e(_0x156ce0,_0x373042);}const n={'exchange':{'file':_0x5b0ee8(0xd1),'upload':_0x5b0ee8(0xdf),'download':_0x5b0ee8(0xd5),'uploading':'Đang\x20tải\x20lên','uploadSuccess':_0x5b0ee8(0xd8),'uploadSuccessTip':_0x5b0ee8(0xe3),'downloading':_0x5b0ee8(0xe2),'downloadSuccess':'Tải\x20xuống\x20thành\x20công','unknownMistake':'Lỗi\x20không\x20xác\x20định','networkError':_0x5b0ee8(0xdd),'tooLarge':'Luồng\x20dữ\x20liệu\x20quá\x20lớn','internalError':_0x5b0ee8(0xcf),'interrupt':_0x5b0ee8(0xd2),'wait':_0x5b0ee8(0xd0),'cancel':_0x5b0ee8(0xe1),'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 _0x2279(){const _0x351a71=['1ivofZb','内部未知错误','1337166MNFSIt','请稍等...','再次上传','数据流过大','2661113uNuWEQ','6705459giCdkQ','打开(文件)','下载中','网络连接中断,文件上传失败。','下载成功','2632418WwcciK','12sGiuBS','2388xogIrd','{0}个文件上传成功','38401QsoqMk','文件上传成功','10ktyOrQ','20veqfLG','另存为','631832utKsQK','1685622KARdLG'];_0x2279=function(){return _0x351a71;};return _0x2279();}const _0x2f12f8=_0x4218;function _0x4218(_0x711315,_0x5ec0fa){const _0x2279fc=_0x2279();return _0x4218=function(_0x421871,_0x4e9bbf){_0x421871=_0x421871-0x188;let _0x397813=_0x2279fc[_0x421871];return _0x397813;},_0x4218(_0x711315,_0x5ec0fa);}(function(_0x4d1d46,_0x478e0d){const _0x2d7134=_0x4218,_0x1fe379=_0x4d1d46();while(!![]){try{const _0x5754ab=-parseInt(_0x2d7134(0x191))/0x1*(-parseInt(_0x2d7134(0x19d))/0x2)+parseInt(_0x2d7134(0x193))/0x3*(-parseInt(_0x2d7134(0x19e))/0x4)+parseInt(_0x2d7134(0x18d))/0x5*(parseInt(_0x2d7134(0x190))/0x6)+-parseInt(_0x2d7134(0x197))/0x7+-parseInt(_0x2d7134(0x18f))/0x8+-parseInt(_0x2d7134(0x198))/0x9*(-parseInt(_0x2d7134(0x18c))/0xa)+-parseInt(_0x2d7134(0x18a))/0xb*(parseInt(_0x2d7134(0x188))/0xc);if(_0x5754ab===_0x478e0d)break;else _0x1fe379['push'](_0x1fe379['shift']());}catch(_0x248562){_0x1fe379['push'](_0x1fe379['shift']());}}}(_0x2279,0xa96eb));const o={'exchange':{'file':'文件','upload':_0x2f12f8(0x199),'download':_0x2f12f8(0x18e),'uploading':'上传中','uploadSuccess':_0x2f12f8(0x18b),'uploadSuccessTip':_0x2f12f8(0x189),'downloading':_0x2f12f8(0x19a),'downloadSuccess':_0x2f12f8(0x19c),'unknownMistake':'未知错误','networkError':'网络异常','tooLarge':_0x2f12f8(0x196),'internalError':_0x2f12f8(0x192),'interrupt':_0x2f12f8(0x19b),'wait':_0x2f12f8(0x194),'cancel':'取消','uploadAgain':_0x2f12f8(0x195)}};export{o as default};
|
package/lib/es/locale/zh-TW.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
const _0xe55f84=_0x3c03;function _0x3c03(_0x263e35,_0x547d0c){const _0x5e95ab=_0x5e95();return _0x3c03=function(_0x3c0348,_0x509022){_0x3c0348=_0x3c0348-0xa3;let _0x5aa38f=_0x5e95ab[_0x3c0348];return _0x5aa38f;},_0x3c03(_0x263e35,_0x547d0c);}(function(_0x3d933f,_0x174368){const _0x315fcc=_0x3c03,_0x5bafca=_0x3d933f();while(!![]){try{const _0x13c70e=-parseInt(_0x315fcc(0xab))/0x1+-parseInt(_0x315fcc(0xa5))/0x2*(parseInt(_0x315fcc(0xac))/0x3)+-parseInt(_0x315fcc(0xaa))/0x4+parseInt(_0x315fcc(0xb8))/0x5*(-parseInt(_0x315fcc(0xa3))/0x6)+-parseInt(_0x315fcc(0xb6))/0x7*(parseInt(_0x315fcc(0xb7))/0x8)+parseInt(_0x315fcc(0xaf))/0x9*(parseInt(_0x315fcc(0xa7))/0xa)+parseInt(_0x315fcc(0xa6))/0xb;if(_0x13c70e===_0x174368)break;else _0x5bafca['push'](_0x5bafca['shift']());}catch(_0x1350dd){_0x5bafca['push'](_0x5bafca['shift']());}}}(_0x5e95,0x68f82));const o={'exchange':{'file':'檔案','upload':'開啟(檔案)','download':_0xe55f84(0xb0),'uploading':_0xe55f84(0xa4),'uploadSuccess':'檔案上傳成功','uploadSuccessTip':_0xe55f84(0xb4),'downloading':_0xe55f84(0xae),'downloadSuccess':_0xe55f84(0xad),'unknownMistake':_0xe55f84(0xb3),'networkError':'網路異常','tooLarge':_0xe55f84(0xb5),'internalError':_0xe55f84(0xa8),'interrupt':_0xe55f84(0xa9),'wait':_0xe55f84(0xb2),'cancel':'取消','uploadAgain':_0xe55f84(0xb1)}};export{o as default};function _0x5e95(){const _0x32d0e7=['內部未知錯誤','網路連線中斷,檔案上傳失敗。\x20','111448vkpmdH','429058RbPZvf','5199jpTGjD','下載成功','下載中','786042ySEydZ','另存為','再次上傳','請稍等...','未知錯誤','{0}個檔案上傳成功','資料流過大','91rOpSlH','310584kobYgm','15IUZjNs','1208436BfLLGQ','上傳中','932EQAlNs','25072751IKWOVN','60dQoMmD'];_0x5e95=function(){return _0x32d0e7;};return _0x5e95();}
|
@@ -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 _0x1286(){const _0x567469=['2906995qNtPTt','importDOCXToSnapshot','UNIVER_SLIDE','UNRECOGNIZED','27RnrSMi','108JDuDYY','UNIVER_UNKNOWN','IExchangeService','35738CsgTco','14CWTPpi','UNIVER_DOC','_injector','1572MjqPhz','512586KFcsdr','@univerjs-pro/exchange-client','9779qDnXnu','importXLSXToUnitId','130tbayAf','The\x20exchange\x20service\x20is\x20not\x20available','importFileToUnitId','importXLSXToSnapshot','8mlbYOV','amd','UniverProExchangeClient','UNIVER_PROJECT','UNIVER_SHEET','206840FzxMTa','15342288WOxLFz','FUniver','object','get','importDOCXToUnitId','exportXLSXBySnapshot','@univerjs/core','12VEwmOO','UniverCore','76404PIayDN'];_0x1286=function(){return _0x567469;};return _0x1286();}function _0x3852(_0x23434d,_0x2ebdb6){const _0x1286bf=_0x1286();return _0x3852=function(_0x3852c8,_0x225ae2){_0x3852c8=_0x3852c8-0x1c8;let _0x3ae1f5=_0x1286bf[_0x3852c8];return _0x3ae1f5;},_0x3852(_0x23434d,_0x2ebdb6);}(function(_0x3f6336,_0x36c528){const _0x3add8d=_0x3852,_0xcb4a90=_0x3f6336();while(!![]){try{const _0x1b3096=-parseInt(_0x3add8d(0x1d7))/0x1*(-parseInt(_0x3add8d(0x1db))/0x2)+-parseInt(_0x3add8d(0x1e0))/0x3*(parseInt(_0x3add8d(0x1d0))/0x4)+-parseInt(_0x3add8d(0x1e4))/0x5*(parseInt(_0x3add8d(0x1d2))/0x6)+-parseInt(_0x3add8d(0x1d3))/0x7*(parseInt(_0x3add8d(0x1e8))/0x8)+parseInt(_0x3add8d(0x1d8))/0x9*(-parseInt(_0x3add8d(0x1c8))/0xa)+-parseInt(_0x3add8d(0x1e2))/0xb*(-parseInt(_0x3add8d(0x1df))/0xc)+-parseInt(_0x3add8d(0x1c9))/0xd*(-parseInt(_0x3add8d(0x1dc))/0xe);if(_0x1b3096===_0x36c528)break;else _0xcb4a90['push'](_0xcb4a90['shift']());}catch(_0x4463a2){_0xcb4a90['push'](_0xcb4a90['shift']());}}}(_0x1286,0x4263f),function(_0xab7032,_0x1e6370){const _0x4e4fc9=_0x3852;typeof exports==_0x4e4fc9(0x1cb)&&typeof module<'u'?_0x1e6370(require(_0x4e4fc9(0x1cf)),require(_0x4e4fc9(0x1e1))):typeof define=='function'&&define[_0x4e4fc9(0x1e9)]?define(['@univerjs/core',_0x4e4fc9(0x1e1)],_0x1e6370):(_0xab7032=typeof globalThis<'u'?globalThis:_0xab7032||self,_0x1e6370(_0xab7032[_0x4e4fc9(0x1d1)],_0xab7032[_0x4e4fc9(0x1ea)]));}(this,function(_0x4e5eba,_0x4f2a78){'use strict';const _0x512c3a=_0x3852;var _0xe8e4ed=(_0x1a9856=>(_0x1a9856[_0x1a9856[_0x512c3a(0x1d9)]=0x0]=_0x512c3a(0x1d9),_0x1a9856[_0x1a9856['UNIVER_DOC']=0x1]=_0x512c3a(0x1dd),_0x1a9856[_0x1a9856['UNIVER_SHEET']=0x2]=_0x512c3a(0x1ec),_0x1a9856[_0x1a9856[_0x512c3a(0x1d5)]=0x3]='UNIVER_SLIDE',_0x1a9856[_0x1a9856['UNIVER_PROJECT']=0x4]=_0x512c3a(0x1eb),_0x1a9856[_0x1a9856[_0x512c3a(0x1d6)]=-0x1]='UNRECOGNIZED',_0x1a9856))(_0xe8e4ed||{});class _0x4c2b2d extends _0x4e5eba[_0x512c3a(0x1ca)]{async[_0x512c3a(0x1e3)](_0x4e1e37){const _0x36303f=_0x512c3a,_0x5742dc=this[_0x36303f(0x1de)][_0x36303f(0x1cc)](_0x4f2a78[_0x36303f(0x1da)]);if(!_0x5742dc)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x5742dc[_0x36303f(0x1e6)](_0x4e1e37,_0xe8e4ed['UNIVER_SHEET']);}async[_0x512c3a(0x1e7)](_0x2c1271){const _0x3df571=_0x512c3a,_0x4af7e7=this[_0x3df571(0x1de)][_0x3df571(0x1cc)](_0x4f2a78[_0x3df571(0x1da)]);if(!_0x4af7e7)throw new Error(_0x3df571(0x1e5));return _0x4af7e7[_0x3df571(0x1e7)](_0x2c1271);}async['exportXLSXByUnitId'](_0x1df394){const _0x233698=_0x512c3a,_0x2e522e=this[_0x233698(0x1de)][_0x233698(0x1cc)](_0x4f2a78[_0x233698(0x1da)]);if(!_0x2e522e)throw new Error(_0x233698(0x1e5));return _0x2e522e['exportXLSXByUnitId'](_0x1df394);}async[_0x512c3a(0x1ce)](_0x5cceeb){const _0x3e7402=_0x512c3a,_0x5d7da2=this[_0x3e7402(0x1de)][_0x3e7402(0x1cc)](_0x4f2a78[_0x3e7402(0x1da)]);if(!_0x5d7da2)throw new Error(_0x3e7402(0x1e5));return _0x5d7da2[_0x3e7402(0x1ce)](_0x5cceeb);}async[_0x512c3a(0x1cd)](_0x14774d){const _0xfafa61=_0x512c3a,_0x29d987=this[_0xfafa61(0x1de)][_0xfafa61(0x1cc)](_0x4f2a78[_0xfafa61(0x1da)]);if(!_0x29d987)throw new Error(_0xfafa61(0x1e5));return _0x29d987['importFileToUnitId'](_0x14774d,_0xe8e4ed[_0xfafa61(0x1dd)]);}async[_0x512c3a(0x1d4)](_0xa91429){const _0x5a89f1=_0x512c3a,_0x57dfaa=this[_0x5a89f1(0x1de)][_0x5a89f1(0x1cc)](_0x4f2a78[_0x5a89f1(0x1da)]);if(!_0x57dfaa)throw new Error(_0x5a89f1(0x1e5));return _0x57dfaa[_0x5a89f1(0x1d4)](_0xa91429);}}_0x4e5eba['FUniver']['extend'](_0x4c2b2d);}));
|