@univerjs-pro/exchange-client 0.8.0-nightly.202506041607 → 0.8.0
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/facade.js +1 -1
- package/lib/index.js +2 -2
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/index.d.ts +1 -1
- package/lib/types/services/exchange.service.d.ts +1 -1
- package/lib/types/services/utils/snapshot.d.ts +15 -7
- 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 -7
package/lib/locale/en-US.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x4db20e=_0x45e4;function _0x45e4(_0x5cdf02,_0x2f05ac){const _0x11965f=_0x1196();return _0x45e4=function(_0x45e40b,_0x209fb2){_0x45e40b=_0x45e40b-0x67;let _0x42a290=_0x11965f[_0x45e40b];return _0x42a290;},_0x45e4(_0x5cdf02,_0x2f05ac);}(function(_0x4bbc8a,_0x26a542){const _0x35152a=_0x45e4,_0x54bd26=_0x4bbc8a();while(!![]){try{const _0x360963=parseInt(_0x35152a(0x72))/0x1*(-parseInt(_0x35152a(0x7c))/0x2)+-parseInt(_0x35152a(0x74))/0x3*(-parseInt(_0x35152a(0x69))/0x4)+-parseInt(_0x35152a(0x6f))/0x5*(parseInt(_0x35152a(0x6d))/0x6)+-parseInt(_0x35152a(0x7e))/0x7*(-parseInt(_0x35152a(0x67))/0x8)+parseInt(_0x35152a(0x70))/0x9*(-parseInt(_0x35152a(0x6c))/0xa)+-parseInt(_0x35152a(0x7a))/0xb*(parseInt(_0x35152a(0x81))/0xc)+-parseInt(_0x35152a(0x71))/0xd*(-parseInt(_0x35152a(0x79))/0xe);if(_0x360963===_0x26a542)break;else _0x54bd26['push'](_0x54bd26['shift']());}catch(_0x259c5b){_0x54bd26['push'](_0x54bd26['shift']());}}}(_0x1196,0x85732));const e={'exchange':{'file':_0x4db20e(0x78),'upload':_0x4db20e(0x6e),'download':_0x4db20e(0x6a),'uploading':_0x4db20e(0x77),'uploadSuccess':'File\x20uploaded\x20successfully','uploadSuccessTip':'{0}\x20file(s)\x20uploaded\x20successfully','downloading':_0x4db20e(0x80),'downloadSuccess':'Download\x20success','unknownMistake':_0x4db20e(0x7d),'networkError':_0x4db20e(0x73),'tooLarge':_0x4db20e(0x7b),'internalError':_0x4db20e(0x75),'interrupt':'The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','fileTypeError':_0x4db20e(0x7f),'wait':_0x4db20e(0x6b),'cancel':_0x4db20e(0x68),'uploadAgain':_0x4db20e(0x76)}};function _0x1196(){const _0x248432=['6gFuGqd','Open(File)','5084465FVWUqv','1136988uWIlpN','13hBtRiT','2TPfXzq','Network\x20error','15ePqbeR','Internal\x20unknown\x20error','Upload\x20again','Uploading','File','16694902WYnyBM','275WEmMcl','Data\x20is\x20too\x20large','919478iIGJGR','Unknown\x20mistake','5508377mGybjx','Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','Downloading','38400wQcjNE','8xndqDf','Cancel','871124hPTEyF','Save\x20As','Please\x20wait...','40WUBemk'];_0x1196=function(){return _0x248432;};return _0x1196();}export{e as default};
|
package/lib/locale/fa-IR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0xbe25(){const _0x53969c=['در\x20حال\x20دانلود','لطفا\x20صبر\x20کنید...','{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','لغو','150TPfmkb','در\x20حال\x20بارگذاری','785548vQlBVG','297006MLEZYi','بارگذاری\x20مجدد','اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','داده\x20خیلی\x20بزرگ\x20است','992604MtyIME','خطای\x20ناشناخته','45xMKYDN','فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','3191800zUXRub','4bZRTvI','5646256BSdwvM','فایل\x20انتخاب\x20شده\x20[{0}]\x20برای\x20بارگذاری\x20پشتیبانی\x20نمیشود','بازکردن(فایل)','خطای\x20داخلی\x20ناشناخته','638FNNiLY','3447VUyAmP','3791032HSjgNy','فایل','1748ovdAhE'];_0xbe25=function(){return _0x53969c;};return _0xbe25();}const _0x2af4d5=_0x2485;function _0x2485(_0x5b4d35,_0xbbd0d9){const _0xbe2597=_0xbe25();return _0x2485=function(_0x2485a1,_0x49628a){_0x2485a1=_0x2485a1-0xb6;let _0x4a2cf5=_0xbe2597[_0x2485a1];return _0x4a2cf5;},_0x2485(_0x5b4d35,_0xbbd0d9);}(function(_0x4baf28,_0x540c06){const _0x56ea35=_0x2485,_0x5a97b8=_0x4baf28();while(!![]){try{const _0xd86780=-parseInt(_0x56ea35(0xbc))/0x1*(parseInt(_0x56ea35(0xcc))/0x2)+-parseInt(_0x56ea35(0xc2))/0x3*(-parseInt(_0x56ea35(0xc5))/0x4)+parseInt(_0x56ea35(0xca))/0x5*(-parseInt(_0x56ea35(0xcd))/0x6)+-parseInt(_0x56ea35(0xc3))/0x7+parseInt(_0x56ea35(0xbd))/0x8+parseInt(_0x56ea35(0xb9))/0x9*(-parseInt(_0x56ea35(0xbb))/0xa)+parseInt(_0x56ea35(0xc1))/0xb*(parseInt(_0x56ea35(0xb7))/0xc);if(_0xd86780===_0x540c06)break;else _0x5a97b8['push'](_0x5a97b8['shift']());}catch(_0x336b01){_0x5a97b8['push'](_0x5a97b8['shift']());}}}(_0xbe25,0xc6367));const o={'exchange':{'file':_0x2af4d5(0xc4),'upload':_0x2af4d5(0xbf),'download':'ذخیره\x20به\x20عنوان','uploading':_0x2af4d5(0xcb),'uploadSuccess':_0x2af4d5(0xba),'uploadSuccessTip':_0x2af4d5(0xc8),'downloading':_0x2af4d5(0xc6),'downloadSuccess':'دانلود\x20موفقیت\x20آمیز','unknownMistake':_0x2af4d5(0xb8),'networkError':'خطای\x20شبکه','tooLarge':_0x2af4d5(0xb6),'internalError':_0x2af4d5(0xc0),'interrupt':_0x2af4d5(0xcf),'fileTypeError':_0x2af4d5(0xbe),'wait':_0x2af4d5(0xc7),'cancel':_0x2af4d5(0xc9),'uploadAgain':_0x2af4d5(0xce)}};export{o as default};
|
package/lib/locale/fr-FR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
function _0x4291(){const _0x250c6a=['Veuillez\x20patienter...','175mfIRfa','Téléchargement','233416CbNDQA','833CWjffm','Erreur\x20réseau','1123652cpurMR','Erreur\x20inconnue','Les\x20données\x20sont\x20trop\x20volumineuses','13488OXaINJ','1414989fLcCBK','Ouvrir\x20(Fichier)','545218payMjB','53224lRkuMi','63ArUGRP','Téléchargement\x20réussi','4737750GXZyZN','Erreur\x20interne\x20inconnue','Fichier','Annuler','Télécharger\x20à\x20nouveau'];_0x4291=function(){return _0x250c6a;};return _0x4291();}const _0x502a8e=_0x5ab6;(function(_0x2c8335,_0x1effe2){const _0x29d2ec=_0x5ab6,_0x9b32f2=_0x2c8335();while(!![]){try{const _0x4c110c=-parseInt(_0x29d2ec(0xe9))/0x1+-parseInt(_0x29d2ec(0xe3))/0x2+parseInt(_0x29d2ec(0xe7))/0x3+parseInt(_0x29d2ec(0xea))/0x4*(parseInt(_0x29d2ec(0xde))/0x5)+-parseInt(_0x29d2ec(0xe6))/0x6*(-parseInt(_0x29d2ec(0xe1))/0x7)+-parseInt(_0x29d2ec(0xe0))/0x8*(parseInt(_0x29d2ec(0xeb))/0x9)+parseInt(_0x29d2ec(0xed))/0xa;if(_0x4c110c===_0x1effe2)break;else _0x9b32f2['push'](_0x9b32f2['shift']());}catch(_0x8cfd52){_0x9b32f2['push'](_0x9b32f2['shift']());}}}(_0x4291,0x59b11));function _0x5ab6(_0x1bb381,_0x46c689){const _0x4291d0=_0x4291();return _0x5ab6=function(_0x5ab6a7,_0x280456){_0x5ab6a7=_0x5ab6a7-0xdb;let _0x4f6088=_0x4291d0[_0x5ab6a7];return _0x4f6088;},_0x5ab6(_0x1bb381,_0x46c689);}const e={'exchange':{'file':_0x502a8e(0xef),'upload':_0x502a8e(0xe8),'download':'Enregistrer\x20sous','uploading':'Téléchargement\x20en\x20cours','uploadSuccess':'Fichier\x20téléchargé\x20avec\x20succès','uploadSuccessTip':'{0}\x20fichier(s)\x20téléchargé(s)\x20avec\x20succès','downloading':_0x502a8e(0xdf),'downloadSuccess':_0x502a8e(0xec),'unknownMistake':_0x502a8e(0xe4),'networkError':_0x502a8e(0xe2),'tooLarge':_0x502a8e(0xe5),'internalError':_0x502a8e(0xee),'interrupt':'La\x20connexion\x20réseau\x20a\x20été\x20interrompue\x20et\x20le\x20téléchargement\x20du\x20fichier\x20a\x20échoué','fileTypeError':'Le\x20fichier\x20sélectionné\x20[{0}]\x20n\x27est\x20pas\x20pris\x20en\x20charge\x20pour\x20le\x20téléchargement','wait':_0x502a8e(0xdd),'cancel':_0x502a8e(0xdb),'uploadAgain':_0x502a8e(0xdc)}};export{e as default};
|
package/lib/locale/ru-RU.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
function _0x3a3e(_0x181d47,_0x262c56){const _0x1dc478=_0x1dc4();return _0x3a3e=function(_0x3a3ec1,_0x15b714){_0x3a3ec1=_0x3a3ec1-0xe2;let _0x537caa=_0x1dc478[_0x3a3ec1];return _0x537caa;},_0x3a3e(_0x181d47,_0x262c56);}const _0x3c1e27=_0x3a3e;function _0x1dc4(){const _0x4f117a=['Открыть(Файл)','205647ealYzb','3147879mjdiiP','Скачивание\x20успешно','282045LbbRBe','Отмена','Загрузка','Данные\x20слишком\x20большие','1151766GEcifG','1230792oVuWFo','28gmNpBG','Пожалуйста,\x20подождите...','29525499wkbsdv','Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','16raNVmN','{0}\x20файл(ов)\x20успешно\x20загружен(о)','Файл','Загрузить\x20снова','Неизвестная\x20ошибка','2455544HPoOHt','Файл\x20успешно\x20загружен'];_0x1dc4=function(){return _0x4f117a;};return _0x1dc4();}(function(_0x489160,_0xc84c1d){const _0x27d1d3=_0x3a3e,_0x6530a9=_0x489160();while(!![]){try{const _0x4f6e74=-parseInt(_0x27d1d3(0xe8))/0x1+-parseInt(_0x27d1d3(0xe5))/0x2+parseInt(_0x27d1d3(0xf0))/0x3+parseInt(_0x27d1d3(0xf1))/0x4*(-parseInt(_0x27d1d3(0xeb))/0x5)+-parseInt(_0x27d1d3(0xef))/0x6+parseInt(_0x27d1d3(0xe9))/0x7*(-parseInt(_0x27d1d3(0xf6))/0x8)+parseInt(_0x27d1d3(0xf3))/0x9;if(_0x4f6e74===_0xc84c1d)break;else _0x6530a9['push'](_0x6530a9['shift']());}catch(_0x2a57a6){_0x6530a9['push'](_0x6530a9['shift']());}}}(_0x1dc4,0xbc4a6));const o={'exchange':{'file':_0x3c1e27(0xe2),'upload':_0x3c1e27(0xe7),'download':'Сохранить\x20как','uploading':_0x3c1e27(0xed),'uploadSuccess':_0x3c1e27(0xe6),'uploadSuccessTip':_0x3c1e27(0xf7),'downloading':'Скачивание','downloadSuccess':_0x3c1e27(0xea),'unknownMistake':_0x3c1e27(0xe4),'networkError':'Сетевая\x20ошибка','tooLarge':_0x3c1e27(0xee),'internalError':'Внутренняя\x20неизвестная\x20ошибка','interrupt':_0x3c1e27(0xf5),'fileTypeError':_0x3c1e27(0xf4),'wait':_0x3c1e27(0xf2),'cancel':_0x3c1e27(0xec),'uploadAgain':_0x3c1e27(0xe3)}};export{o as default};
|
package/lib/locale/vi-VN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0x3aa4(_0x4c41f2,_0xbf74ad){const _0x8d74e7=_0x8d74();return _0x3aa4=function(_0x3aa4c6,_0x73c04b){_0x3aa4c6=_0x3aa4c6-0x165;let _0x2c7e2c=_0x8d74e7[_0x3aa4c6];return _0x2c7e2c;},_0x3aa4(_0x4c41f2,_0xbf74ad);}const _0x156d44=_0x3aa4;function _0x8d74(){const _0x4d76f8=['17405210rprFFq','9502423aecazb','596352ydUFng','Đang\x20tải\x20lên','6870275ZLFIFb','36SWpgKC','Tải\x20lên\x20lại','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','6774240vfgmli','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','Luồng\x20dữ\x20liệu\x20quá\x20lớn','2091576WNvLoi','Lưu\x20dưới\x20dạng','Lỗi\x20không\x20xác\x20định','Vui\x20lòng\x20đợi...','Tải\x20xuống\x20thành\x20công','Mở\x20(Tệp)','Hủy\x20bỏ','Lỗi\x20mạng','Đang\x20tải\x20xuống','4WXUamK','440HhWLkR','6571RKPUgu'];_0x8d74=function(){return _0x4d76f8;};return _0x8d74();}(function(_0x422b37,_0x142f19){const _0x138bec=_0x3aa4,_0x1095f5=_0x422b37();while(!![]){try{const _0x337c55=parseInt(_0x138bec(0x177))/0x1*(-parseInt(_0x138bec(0x176))/0x2)+-parseInt(_0x138bec(0x16c))/0x3*(parseInt(_0x138bec(0x175))/0x4)+parseInt(_0x138bec(0x165))/0x5+-parseInt(_0x138bec(0x169))/0x6+parseInt(_0x138bec(0x179))/0x7+-parseInt(_0x138bec(0x17a))/0x8*(parseInt(_0x138bec(0x166))/0x9)+parseInt(_0x138bec(0x178))/0xa;if(_0x337c55===_0x142f19)break;else _0x1095f5['push'](_0x1095f5['shift']());}catch(_0x5e6b8e){_0x1095f5['push'](_0x1095f5['shift']());}}}(_0x8d74,0xdc395));const n={'exchange':{'file':'Tệp','upload':_0x156d44(0x171),'download':_0x156d44(0x16d),'uploading':_0x156d44(0x17b),'uploadSuccess':'Tải\x20lên\x20tệp\x20thành\x20công','uploadSuccessTip':_0x156d44(0x168),'downloading':_0x156d44(0x174),'downloadSuccess':_0x156d44(0x170),'unknownMistake':_0x156d44(0x16e),'networkError':_0x156d44(0x173),'tooLarge':_0x156d44(0x16b),'internalError':'Lỗi\x20không\x20xác\x20định\x20bên\x20trong','interrupt':_0x156d44(0x16a),'fileTypeError':'Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','wait':_0x156d44(0x16f),'cancel':_0x156d44(0x172),'uploadAgain':_0x156d44(0x167)}};export{n as default};
|
package/lib/locale/zh-CN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
const _0xe352b8=_0x12f1;(function(_0x551ef5,_0x4bf099){const _0x410e07=_0x12f1,_0x5584a1=_0x551ef5();while(!![]){try{const _0x34c517=parseInt(_0x410e07(0x142))/0x1*(parseInt(_0x410e07(0x137))/0x2)+-parseInt(_0x410e07(0x136))/0x3*(-parseInt(_0x410e07(0x13d))/0x4)+parseInt(_0x410e07(0x138))/0x5+-parseInt(_0x410e07(0x141))/0x6+-parseInt(_0x410e07(0x13f))/0x7+parseInt(_0x410e07(0x133))/0x8*(parseInt(_0x410e07(0x130))/0x9)+-parseInt(_0x410e07(0x146))/0xa*(parseInt(_0x410e07(0x13c))/0xb);if(_0x34c517===_0x4bf099)break;else _0x5584a1['push'](_0x5584a1['shift']());}catch(_0x4e4708){_0x5584a1['push'](_0x5584a1['shift']());}}}(_0x5d25,0x8caf5));function _0x12f1(_0x570bd8,_0x3665af){const _0x5d2558=_0x5d25();return _0x12f1=function(_0x12f18b,_0x800359){_0x12f18b=_0x12f18b-0x130;let _0x5b419f=_0x5d2558[_0x12f18b];return _0x5b419f;},_0x12f1(_0x570bd8,_0x3665af);}function _0x5d25(){const _0x2fc0af=['6081RpGhSQ','16750iTUrRK','1270155kEmVtV','内部未知错误','网络连接中断,文件上传失败','文件上传成功','5582401rbPdcJ','1412KaLzzc','{0}个文件上传成功','4216562OGBBfz','另存为','3027834VWEEMk','15kmsdvC','所选文件\x20[{0}]\x20不支持上传','未知错误','下载成功','10SFmrUL','18jWtTPb','再次上传','上传中','4382216zAPAjF','数据流过大','请稍等...'];_0x5d25=function(){return _0x2fc0af;};return _0x5d25();}const o={'exchange':{'file':'文件','upload':'打开(文件)','download':_0xe352b8(0x140),'uploading':_0xe352b8(0x132),'uploadSuccess':_0xe352b8(0x13b),'uploadSuccessTip':_0xe352b8(0x13e),'downloading':'下载中','downloadSuccess':_0xe352b8(0x145),'unknownMistake':_0xe352b8(0x144),'networkError':'网络异常','tooLarge':_0xe352b8(0x134),'internalError':_0xe352b8(0x139),'interrupt':_0xe352b8(0x13a),'fileTypeError':_0xe352b8(0x143),'wait':_0xe352b8(0x135),'cancel':'取消','uploadAgain':_0xe352b8(0x131)}};export{o as default};
|
package/lib/locale/zh-TW.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
function _0x5d45(){const _0x568aea=['4JZxEdb','另存為','1159165VJFpFA','開啟(檔案)','網路連線中斷,檔案上傳失敗','網路異常','180055sqcRrO','11421NApKim','所選檔案\x20[{0}]\x20不支援上傳','96280qEJfmp','2BZNmFF','{0}個檔案上傳成功','1744698HCLkkQ','檔案上傳成功','482977ivwBQZ','216CwYzmI','請稍等...','下載中','259761DQMmnE','下載成功','30JKomFD'];_0x5d45=function(){return _0x568aea;};return _0x5d45();}const _0x3a92c8=_0x4f08;(function(_0x125d3f,_0x2688fd){const _0x162928=_0x4f08,_0x2231dc=_0x125d3f();while(!![]){try{const _0x4d768c=parseInt(_0x162928(0xa6))/0x1+parseInt(_0x162928(0xa9))/0x2*(parseInt(_0x162928(0x9c))/0x3)+-parseInt(_0x162928(0x9f))/0x4*(-parseInt(_0x162928(0xa5))/0x5)+parseInt(_0x162928(0x96))/0x6+parseInt(_0x162928(0xa1))/0x7+-parseInt(_0x162928(0xa8))/0x8*(parseInt(_0x162928(0x99))/0x9)+parseInt(_0x162928(0x9e))/0xa*(-parseInt(_0x162928(0x98))/0xb);if(_0x4d768c===_0x2688fd)break;else _0x2231dc['push'](_0x2231dc['shift']());}catch(_0x5af06d){_0x2231dc['push'](_0x2231dc['shift']());}}}(_0x5d45,0x2976c));const o={'exchange':{'file':'檔案','upload':_0x3a92c8(0xa2),'download':_0x3a92c8(0xa0),'uploading':'上傳中','uploadSuccess':_0x3a92c8(0x97),'uploadSuccessTip':_0x3a92c8(0x95),'downloading':_0x3a92c8(0x9b),'downloadSuccess':_0x3a92c8(0x9d),'unknownMistake':'未知錯誤','networkError':_0x3a92c8(0xa4),'tooLarge':'資料流過大','internalError':'內部未知錯誤','interrupt':_0x3a92c8(0xa3),'fileTypeError':_0x3a92c8(0xa7),'wait':_0x3a92c8(0x9a),'cancel':'取消','uploadAgain':'再次上傳'}};function _0x4f08(_0x49f570,_0x4a84fc){const _0x5d4581=_0x5d45();return _0x4f08=function(_0x4f08dd,_0x2dd0d0){_0x4f08dd=_0x4f08dd-0x95;let _0x213d5b=_0x5d4581[_0x4f08dd];return _0x213d5b;},_0x4f08(_0x49f570,_0x4a84fc);}export{o as default};
|
package/lib/types/index.d.ts
CHANGED
@@ -8,6 +8,6 @@ export { EXCHANGE_EXPORT_SERVER_URL_KEY, EXCHANGE_GET_TASK_SERVER_URL_KEY, EXCHA
|
|
8
8
|
export { IUploadNotificationService, UploadNotificationService, UploadNotificationState } from './services/upload-notification.service';
|
9
9
|
export { downloadFile, getUniverTypeByFile, getUploadFile } from './services/utils/tool';
|
10
10
|
export { UploadNotificationContainer } from './views/UploadNotificationContainer';
|
11
|
-
export { transformSnapshotJsonToWorkbookData, transformWorkbookDataToSnapshotJson } from './services/utils/snapshot';
|
11
|
+
export { transformDocumentDataToSnapshotJson, transformSnapshotJsonToDocumentData, transformSnapshotJsonToWorkbookData, transformWorkbookDataToSnapshotJson } from './services/utils/snapshot';
|
12
12
|
export type { ISnapshotBlockJsonResponse } from './services/utils/snapshot';
|
13
13
|
export { EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY, type IUniverExchangeClientOptions } from './controllers/config.schema';
|
@@ -66,7 +66,7 @@ export declare class ExchangeService extends Disposable implements IExchangeServ
|
|
66
66
|
dispose(): void;
|
67
67
|
importDOCXToSnapshot(file: File | string): Promise<IDocumentData | undefined>;
|
68
68
|
exportDOCXByUnitId(unitId: string): Promise<File | undefined>;
|
69
|
-
exportDOCXBySnapshot(
|
69
|
+
exportDOCXBySnapshot(data: IDocumentData): Promise<File | undefined>;
|
70
70
|
importXLSXToSnapshot(file: File | string): Promise<IWorkbookData | undefined>;
|
71
71
|
exportXLSXByUnitId(unitId: string): Promise<File | undefined>;
|
72
72
|
exportXLSXBySnapshot(data: IWorkbookData): Promise<File | undefined>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ILogContext, ISnapshotServerService } from '@univerjs-pro/collaboration';
|
2
|
-
import { IWorkbookData, Nullable } from '@univerjs/core';
|
2
|
+
import { IDocumentData, IWorkbookData, Nullable } from '@univerjs/core';
|
3
3
|
import { ICopyFileMetaResponse, IDocumentMeta, IFetchMissingChangesetsResponse, IGetDeserializedSheetBlockResponse, IGetLatestCsReqIdBySidResponse, IGetResourcesResponse, IGetSheetBlockRequest, IGetSheetBlockResponse, IGetUnitOnRevResponse, ISaveChangesetResponse, ISaveSheetBlockRequest, ISaveSheetBlockResponse, ISaveSnapshotResponse, ISheetBlock, ISnapshot, IWorkbookMeta, IWorksheetMeta } from '@univerjs/protocol';
|
4
4
|
export interface IWorksheetMetaJson extends Omit<IWorksheetMeta, 'originalMeta'> {
|
5
5
|
originalMeta: string;
|
@@ -36,9 +36,13 @@ export interface ISnapshotBlockJsonResponse {
|
|
36
36
|
/**
|
37
37
|
* Convert the Uint8Array in the snapshot to a string for easy transmission to the backend
|
38
38
|
* @param snapshot
|
39
|
-
* @returns
|
40
39
|
*/
|
41
|
-
export declare function
|
40
|
+
export declare function transformWorkbookSnapshotMetaToString(snapshot: ISnapshot): Nullable<ISnapshotJson>;
|
41
|
+
/**
|
42
|
+
* Convert the Uint8Array in the snapshot to a string for easy transmission to the backend
|
43
|
+
* @param snapshot
|
44
|
+
*/
|
45
|
+
export declare function transformDocumentSnapshotMetaToString(snapshot: ISnapshot): Nullable<ISnapshotJson>;
|
42
46
|
/**
|
43
47
|
* Convert the Uint8Array in the sheet block to a string for easy transmission to the backend
|
44
48
|
* @param sheetBlocks
|
@@ -47,16 +51,20 @@ export declare function transformSnapshotMetaToString(snapshot: ISnapshot): Null
|
|
47
51
|
export declare function transformSheetBlockMetaToString(sheetBlocks: ISheetBlock[]): ISheetBlockJson;
|
48
52
|
/**
|
49
53
|
* Convert the workbook data to snapshot data
|
50
|
-
* @param workbookData
|
51
|
-
* @returns
|
52
54
|
*/
|
53
55
|
export declare function transformWorkbookDataToSnapshotJson(workbookData: IWorkbookData): Promise<ISnapshotBlockJson>;
|
56
|
+
/**
|
57
|
+
* Convert the document data to snapshot data
|
58
|
+
*/
|
59
|
+
export declare function transformDocumentDataToSnapshotJson(documentData: IDocumentData): Promise<ISnapshotBlockJson>;
|
54
60
|
/**
|
55
61
|
* Convert the Snapshot data to workbook data
|
56
|
-
* @param json
|
57
|
-
* @returns
|
58
62
|
*/
|
59
63
|
export declare function transformSnapshotJsonToWorkbookData(json: ISnapshotBlockJsonResponse): IWorkbookData;
|
64
|
+
/**
|
65
|
+
* Convert the Snapshot data to workbook data
|
66
|
+
*/
|
67
|
+
export declare function transformSnapshotJsonToDocumentData(json: ISnapshotBlockJsonResponse): IDocumentData;
|
60
68
|
/**
|
61
69
|
* The server needs to fully implement all interfaces, but when used by the client, use saveSheetBlock to cache the sheet block locally, and use getSheetBlock to obtain the sheet block.
|
62
70
|
*/
|
package/lib/umd/facade.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
(function(
|
1
|
+
function _0x19ad(_0xfd83bf,_0x113a0f){const _0x53837f=_0x5383();return _0x19ad=function(_0x19adf8,_0x1a63ab){_0x19adf8=_0x19adf8-0xc0;let _0x29c169=_0x53837f[_0x19adf8];return _0x29c169;},_0x19ad(_0xfd83bf,_0x113a0f);}(function(_0x20244b,_0x3e3e64){const _0x37613f=_0x19ad,_0x44043d=_0x20244b();while(!![]){try{const _0x56aa26=-parseInt(_0x37613f(0xe4))/0x1*(parseInt(_0x37613f(0xd2))/0x2)+-parseInt(_0x37613f(0xd9))/0x3+-parseInt(_0x37613f(0xc3))/0x4+-parseInt(_0x37613f(0xc6))/0x5+parseInt(_0x37613f(0xc8))/0x6*(parseInt(_0x37613f(0xcd))/0x7)+parseInt(_0x37613f(0xd6))/0x8*(-parseInt(_0x37613f(0xde))/0x9)+parseInt(_0x37613f(0xdc))/0xa;if(_0x56aa26===_0x3e3e64)break;else _0x44043d['push'](_0x44043d['shift']());}catch(_0x4c4352){_0x44043d['push'](_0x44043d['shift']());}}}(_0x5383,0x2af96),function(_0x5bef05,_0x33d342){const _0x355c78=_0x19ad;typeof exports=='object'&&typeof module<'u'?_0x33d342(require('@univerjs-pro/exchange-client'),require('@univerjs/core/facade')):typeof define=='function'&&define['amd']?define([_0x355c78(0xd1),'@univerjs/core/facade'],_0x33d342):(_0x5bef05=typeof globalThis<'u'?globalThis:_0x5bef05||self,_0x33d342(_0x5bef05[_0x355c78(0xe1)],_0x5bef05[_0x355c78(0xc9)]));}(this,function(_0x3e434e,_0x25dcf3){'use strict';const _0x26cc09=_0x19ad;var _0x30362d=(_0x38bc69=>(_0x38bc69[_0x38bc69['UNIVER_UNKNOWN']=0x0]=_0x26cc09(0xce),_0x38bc69[_0x38bc69[_0x26cc09(0xd0)]=0x1]='UNIVER_DOC',_0x38bc69[_0x38bc69[_0x26cc09(0xd4)]=0x2]=_0x26cc09(0xd4),_0x38bc69[_0x38bc69['UNIVER_SLIDE']=0x3]=_0x26cc09(0xc4),_0x38bc69[_0x38bc69[_0x26cc09(0xcc)]=0x4]=_0x26cc09(0xcc),_0x38bc69[_0x38bc69[_0x26cc09(0xd5)]=-0x1]=_0x26cc09(0xd5),_0x38bc69))(_0x30362d||{});class _0x84c9fd extends _0x25dcf3[_0x26cc09(0xc5)]{async[_0x26cc09(0xc2)](_0x12d84c){const _0x570381=_0x26cc09;return this[_0x570381(0xe3)](_0x12d84c);}async[_0x26cc09(0xe3)](_0x50890f){const _0x503f05=_0x26cc09,_0x41f066=this['_injector'][_0x503f05(0xd7)](_0x3e434e[_0x503f05(0xcf)]);if(!_0x41f066)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x41f066[_0x503f05(0xd8)](_0x50890f,_0x30362d[_0x503f05(0xd4)]);}async['importXLSXToSnapshot'](_0x11b743){const _0xd158b9=_0x26cc09;return this[_0xd158b9(0xda)](_0x11b743);}async['importXLSXToSnapshotAsync'](_0x482665){const _0x5b68de=_0x26cc09,_0x4c432a=this[_0x5b68de(0xc7)]['get'](_0x3e434e['IExchangeService']);if(!_0x4c432a)throw new Error(_0x5b68de(0xcb));return _0x4c432a['importXLSXToSnapshot'](_0x482665);}async[_0x26cc09(0xe2)](_0x3802c0){const _0x4a2029=_0x26cc09;return this[_0x4a2029(0xca)](_0x3802c0);}async['exportXLSXByUnitIdAsync'](_0x449e46){const _0x5c0c8c=_0x26cc09,_0x115129=this[_0x5c0c8c(0xc7)]['get'](_0x3e434e['IExchangeService']);if(!_0x115129)throw new Error(_0x5c0c8c(0xcb));return _0x115129[_0x5c0c8c(0xe2)](_0x449e46);}async[_0x26cc09(0xe5)](_0x5098d9){return this['exportXLSXBySnapshotAsync'](_0x5098d9);}async[_0x26cc09(0xdb)](_0x3d4eb5){const _0x331732=_0x26cc09,_0x2480f5=this[_0x331732(0xc7)][_0x331732(0xd7)](_0x3e434e['IExchangeService']);if(!_0x2480f5)throw new Error(_0x331732(0xcb));return _0x2480f5[_0x331732(0xe5)](_0x3d4eb5);}async['importDOCXToUnitId'](_0x419681){const _0x548886=_0x26cc09;return this[_0x548886(0xc0)](_0x419681);}async[_0x26cc09(0xc0)](_0x3cc17e){const _0x2c0417=_0x26cc09,_0x3a1c70=this['_injector']['get'](_0x3e434e[_0x2c0417(0xcf)]);if(!_0x3a1c70)throw new Error(_0x2c0417(0xcb));return _0x3a1c70[_0x2c0417(0xd8)](_0x3cc17e,_0x30362d[_0x2c0417(0xd0)]);}async[_0x26cc09(0xe0)](_0x431091){const _0x4c1598=_0x26cc09;return this[_0x4c1598(0xdd)](_0x431091);}async[_0x26cc09(0xdd)](_0x2b595d){const _0x39104b=_0x26cc09,_0x4584cf=this[_0x39104b(0xc7)][_0x39104b(0xd7)](_0x3e434e['IExchangeService']);if(!_0x4584cf)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x4584cf['importDOCXToSnapshot'](_0x2b595d);}async[_0x26cc09(0xc1)](_0x18956a){const _0x255da5=_0x26cc09,_0x42f2bf=this[_0x255da5(0xc7)][_0x255da5(0xd7)](_0x3e434e[_0x255da5(0xcf)]);if(!_0x42f2bf)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x42f2bf[_0x255da5(0xd3)](_0x18956a);}async[_0x26cc09(0xdf)](_0x5931d2){const _0x595535=_0x26cc09,_0x1227c0=this[_0x595535(0xc7)]['get'](_0x3e434e['IExchangeService']);if(!_0x1227c0)throw new Error(_0x595535(0xcb));return _0x1227c0['exportDOCXByUnitId'](_0x5931d2);}}_0x25dcf3[_0x26cc09(0xc5)]['extend'](_0x84c9fd);}));function _0x5383(){const _0x49769e=['get','importFileToUnitId','842391IjGQWC','importXLSXToSnapshotAsync','exportXLSXBySnapshotAsync','8834840sazOWr','importDOCXToSnapshotAsync','61344JVZmHA','exportDOCXByUnitIdAsync','importDOCXToSnapshot','UniverProExchangeClient','exportXLSXByUnitId','importXLSXToUnitIdAsync','85yULHCt','exportXLSXBySnapshot','importDOCXToUnitIdAsync','exportDOCXBySnapshotAsync','importXLSXToUnitId','1141540OcazcN','UNIVER_SLIDE','FUniver','635400fzDGjY','_injector','6aLUrwV','UniverCoreFacade','exportXLSXByUnitIdAsync','The\x20exchange\x20service\x20is\x20not\x20available','UNIVER_PROJECT','1438577FwtaAq','UNIVER_UNKNOWN','IExchangeService','UNIVER_DOC','@univerjs-pro/exchange-client','198UsVyqL','exportDOCXBySnapshot','UNIVER_SHEET','UNRECOGNIZED','248ZjDpVC'];_0x5383=function(){return _0x49769e;};return _0x5383();}
|