@univerjs-pro/exchange-client 0.7.0 → 0.8.0-beta.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.css +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/facade/f-univer.d.ts +28 -0
- package/lib/types/locale/en-US.d.ts +21 -2
- package/lib/types/locale/fa-IR.d.ts +2 -2
- package/lib/types/locale/fr-FR.d.ts +2 -2
- package/lib/types/locale/ru-RU.d.ts +2 -2
- package/lib/types/locale/vi-VN.d.ts +2 -2
- package/lib/types/locale/zh-CN.d.ts +3 -22
- package/lib/types/locale/zh-TW.d.ts +2 -2
- package/lib/types/services/operate.service.d.ts +2 -0
- package/lib/types/services/utils/snapshot.d.ts +12 -18
- 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 +9 -9
package/lib/locale/en-US.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0xe4c7e3=_0x5ad3;(function(_0x496080,_0x38c3d5){const _0x5f3a9b=_0x5ad3,_0x1a78dd=_0x496080();while(!![]){try{const _0x4591d5=-parseInt(_0x5f3a9b(0xa7))/0x1*(parseInt(_0x5f3a9b(0xa8))/0x2)+parseInt(_0x5f3a9b(0x9a))/0x3+-parseInt(_0x5f3a9b(0x9c))/0x4*(parseInt(_0x5f3a9b(0x9e))/0x5)+-parseInt(_0x5f3a9b(0xa3))/0x6+-parseInt(_0x5f3a9b(0xaf))/0x7+-parseInt(_0x5f3a9b(0xa0))/0x8*(-parseInt(_0x5f3a9b(0xa1))/0x9)+parseInt(_0x5f3a9b(0x9f))/0xa;if(_0x4591d5===_0x38c3d5)break;else _0x1a78dd['push'](_0x1a78dd['shift']());}catch(_0x187ca4){_0x1a78dd['push'](_0x1a78dd['shift']());}}}(_0x50a1,0x70d40));const e={'exchange':{'file':_0xe4c7e3(0xa6),'upload':'Open(File)','download':_0xe4c7e3(0xaa),'uploading':_0xe4c7e3(0xac),'uploadSuccess':_0xe4c7e3(0xad),'uploadSuccessTip':_0xe4c7e3(0xa4),'downloading':_0xe4c7e3(0xa2),'downloadSuccess':_0xe4c7e3(0x9d),'unknownMistake':_0xe4c7e3(0x9b),'networkError':_0xe4c7e3(0xa9),'tooLarge':_0xe4c7e3(0xab),'internalError':_0xe4c7e3(0xae),'interrupt':_0xe4c7e3(0xa5),'fileTypeError':'Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','wait':'Please\x20wait...','cancel':'Cancel','uploadAgain':'Upload\x20again'}};function _0x50a1(){const _0x4d6a4d=['Data\x20is\x20too\x20large','Uploading','File\x20uploaded\x20successfully','Internal\x20unknown\x20error','444535VlBNdH','2704260YJqUZW','Unknown\x20mistake','201752EstiFn','Download\x20success','5ReyguO','6342970OtVARE','1112cdIULW','23787IMPuaa','Downloading','4672308uYvyWj','{0}\x20file(s)\x20uploaded\x20successfully','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','File','21QJuaBG','52218UDlran','Network\x20error','Save\x20As'];_0x50a1=function(){return _0x4d6a4d;};return _0x50a1();}function _0x5ad3(_0x1aa8b1,_0xcb970e){const _0x50a1f0=_0x50a1();return _0x5ad3=function(_0x5ad3bf,_0x40810e){_0x5ad3bf=_0x5ad3bf-0x9a;let _0x58a7b5=_0x50a1f0[_0x5ad3bf];return _0x58a7b5;},_0x5ad3(_0x1aa8b1,_0xcb970e);}export{e as default};
|
package/lib/locale/fa-IR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
function _0x4b4a(_0x3e9fe7,_0x14519c){const _0x99c95c=_0x99c9();return _0x4b4a=function(_0x4b4a4b,_0x4a9b19){_0x4b4a4b=_0x4b4a4b-0xd3;let _0x9eb29d=_0x99c95c[_0x4b4a4b];return _0x9eb29d;},_0x4b4a(_0x3e9fe7,_0x14519c);}const _0x831919=_0x4b4a;(function(_0x125747,_0x264548){const _0x25830e=_0x4b4a,_0x40584f=_0x125747();while(!![]){try{const _0x565a19=parseInt(_0x25830e(0xe6))/0x1+-parseInt(_0x25830e(0xe2))/0x2*(parseInt(_0x25830e(0xe9))/0x3)+-parseInt(_0x25830e(0xdb))/0x4+-parseInt(_0x25830e(0xde))/0x5*(parseInt(_0x25830e(0xdf))/0x6)+-parseInt(_0x25830e(0xd4))/0x7+-parseInt(_0x25830e(0xd6))/0x8+parseInt(_0x25830e(0xd8))/0x9;if(_0x565a19===_0x264548)break;else _0x40584f['push'](_0x40584f['shift']());}catch(_0x4143a6){_0x40584f['push'](_0x40584f['shift']());}}}(_0x99c9,0x6fe46));const o={'exchange':{'file':'فایل','upload':_0x831919(0xe3),'download':_0x831919(0xe8),'uploading':_0x831919(0xe1),'uploadSuccess':_0x831919(0xe5),'uploadSuccessTip':'{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','downloading':_0x831919(0xe7),'downloadSuccess':_0x831919(0xd7),'unknownMistake':_0x831919(0xe4),'networkError':_0x831919(0xda),'tooLarge':'داده\x20خیلی\x20بزرگ\x20است','internalError':_0x831919(0xd9),'interrupt':_0x831919(0xe0),'fileTypeError':_0x831919(0xdc),'wait':_0x831919(0xd5),'cancel':_0x831919(0xdd),'uploadAgain':_0x831919(0xd3)}};function _0x99c9(){const _0xaf28ba=['1188468TNQCYU','بازکردن(فایل)','خطای\x20ناشناخته','فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','706494eXMXrJ','در\x20حال\x20دانلود','ذخیره\x20به\x20عنوان','3ueOypO','بارگذاری\x20مجدد','1636887pJCUMZ','لطفا\x20صبر\x20کنید...','3265152YujgxO','دانلود\x20موفقیت\x20آمیز','19727622oCEvYi','خطای\x20داخلی\x20ناشناخته','خطای\x20شبکه','2578296pWSXxS','فایل\x20انتخاب\x20شده\x20[{0}]\x20برای\x20بارگذاری\x20پشتیبانی\x20نمیشود','لغو','35IGWgoC','479442OOSyIn','اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','در\x20حال\x20بارگذاری'];_0x99c9=function(){return _0xaf28ba;};return _0x99c9();}export{o as default};
|
package/lib/locale/fr-FR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
function _0x4dab(_0xce7bf2,_0x440e9f){const _0x50575d=_0x5057();return _0x4dab=function(_0x4dab82,_0x21c657){_0x4dab82=_0x4dab82-0x106;let _0x598127=_0x50575d[_0x4dab82];return _0x598127;},_0x4dab(_0xce7bf2,_0x440e9f);}const _0x456850=_0x4dab;function _0x5057(){const _0x110ebb=['Le\x20fichier\x20sélectionné\x20[{0}]\x20n\x27est\x20pas\x20pris\x20en\x20charge\x20pour\x20le\x20téléchargement','35710NAwuYz','Télécharger\x20à\x20nouveau','Téléchargement','Téléchargement\x20réussi','6404662GNDoSd','Ouvrir\x20(Fichier)','Erreur\x20interne\x20inconnue','365548zhyDbw','Enregistrer\x20sous','Fichier\x20téléchargé\x20avec\x20succès','Erreur\x20inconnue','2099336LDPwHQ','Fichier','Erreur\x20réseau','7BbdoNu','La\x20connexion\x20réseau\x20a\x20été\x20interrompue\x20et\x20le\x20téléchargement\x20du\x20fichier\x20a\x20échoué','477702qzScwB','18Ppunto','103912SSlWKS','282jgGyHx','3980MHJvgt','3gzMeXB'];_0x5057=function(){return _0x110ebb;};return _0x5057();}(function(_0x1727b5,_0x1d4892){const _0x4be20c=_0x4dab,_0x54b1f9=_0x1727b5();while(!![]){try{const _0x5f3c62=-parseInt(_0x4be20c(0x10a))/0x1+parseInt(_0x4be20c(0x108))/0x2*(-parseInt(_0x4be20c(0x10d))/0x3)+-parseInt(_0x4be20c(0x116))/0x4+-parseInt(_0x4be20c(0x10f))/0x5*(-parseInt(_0x4be20c(0x10b))/0x6)+-parseInt(_0x4be20c(0x106))/0x7*(parseInt(_0x4be20c(0x11a))/0x8)+parseInt(_0x4be20c(0x109))/0x9*(parseInt(_0x4be20c(0x10c))/0xa)+parseInt(_0x4be20c(0x113))/0xb;if(_0x5f3c62===_0x1d4892)break;else _0x54b1f9['push'](_0x54b1f9['shift']());}catch(_0xb4f00d){_0x54b1f9['push'](_0x54b1f9['shift']());}}}(_0x5057,0x363c1));const e={'exchange':{'file':_0x456850(0x11b),'upload':_0x456850(0x114),'download':_0x456850(0x117),'uploading':'Téléchargement\x20en\x20cours','uploadSuccess':_0x456850(0x118),'uploadSuccessTip':'{0}\x20fichier(s)\x20téléchargé(s)\x20avec\x20succès','downloading':_0x456850(0x111),'downloadSuccess':_0x456850(0x112),'unknownMistake':_0x456850(0x119),'networkError':_0x456850(0x11c),'tooLarge':'Les\x20données\x20sont\x20trop\x20volumineuses','internalError':_0x456850(0x115),'interrupt':_0x456850(0x107),'fileTypeError':_0x456850(0x10e),'wait':'Veuillez\x20patienter...','cancel':'Annuler','uploadAgain':_0x456850(0x110)}};export{e as default};
|
package/lib/locale/ru-RU.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x83278b=_0x49a6;(function(_0x5a93c8,_0x3dcb7d){const _0xb11df8=_0x49a6,_0x1f6bcd=_0x5a93c8();while(!![]){try{const _0x2cfa56=-parseInt(_0xb11df8(0x144))/0x1+-parseInt(_0xb11df8(0x146))/0x2*(parseInt(_0xb11df8(0x157))/0x3)+-parseInt(_0xb11df8(0x152))/0x4*(-parseInt(_0xb11df8(0x15b))/0x5)+parseInt(_0xb11df8(0x14d))/0x6*(parseInt(_0xb11df8(0x14c))/0x7)+-parseInt(_0xb11df8(0x156))/0x8*(parseInt(_0xb11df8(0x158))/0x9)+parseInt(_0xb11df8(0x150))/0xa*(-parseInt(_0xb11df8(0x14f))/0xb)+parseInt(_0xb11df8(0x145))/0xc;if(_0x2cfa56===_0x3dcb7d)break;else _0x1f6bcd['push'](_0x1f6bcd['shift']());}catch(_0x6f6b20){_0x1f6bcd['push'](_0x1f6bcd['shift']());}}}(_0x38ac,0x38e8a));const o={'exchange':{'file':_0x83278b(0x155),'upload':_0x83278b(0x148),'download':_0x83278b(0x151),'uploading':_0x83278b(0x154),'uploadSuccess':_0x83278b(0x159),'uploadSuccessTip':_0x83278b(0x153),'downloading':'Скачивание','downloadSuccess':'Скачивание\x20успешно','unknownMistake':_0x83278b(0x14a),'networkError':_0x83278b(0x14e),'tooLarge':_0x83278b(0x15a),'internalError':'Внутренняя\x20неизвестная\x20ошибка','interrupt':'Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','fileTypeError':'Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','wait':_0x83278b(0x14b),'cancel':_0x83278b(0x149),'uploadAgain':_0x83278b(0x147)}};export{o as default};function _0x49a6(_0xe5813c,_0x1ed72a){const _0x38ac26=_0x38ac();return _0x49a6=function(_0x49a6da,_0x25d0f6){_0x49a6da=_0x49a6da-0x144;let _0x4d152a=_0x38ac26[_0x49a6da];return _0x4d152a;},_0x49a6(_0xe5813c,_0x1ed72a);}function _0x38ac(){const _0x2b299f=['Файл\x20успешно\x20загружен','Данные\x20слишком\x20большие','5680HxyiWw','289997tFAoZm','2855028BSTNai','125390wZqeOT','Загрузить\x20снова','Открыть(Файл)','Отмена','Неизвестная\x20ошибка','Пожалуйста,\x20подождите...','1421WQYGcg','10608LLGmsZ','Сетевая\x20ошибка','1065152rDvcgs','10cjgbOf','Сохранить\x20как','964JPVKuX','{0}\x20файл(ов)\x20успешно\x20загружен(о)','Загрузка','Файл','8orwNjm','9tDClDt','563283OVmuQD'];_0x38ac=function(){return _0x2b299f;};return _0x38ac();}
|
package/lib/locale/vi-VN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0x4069(){const _0x48db04=['Lỗi\x20mạng','6ifsHch','Vui\x20lòng\x20đợi...','2920160WyaQnS','3XNPQBb','Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','Đang\x20tải\x20xuống','Tệp','1791356qWLDXW','Mở\x20(Tệp)','9521910luKxFK','241743tGLYGi','Tải\x20lên\x20tệp\x20thành\x20công','4605580YXrwUX','Lưu\x20dưới\x20dạng','Lỗi\x20không\x20xác\x20định\x20bên\x20trong','Luồng\x20dữ\x20liệu\x20quá\x20lớn','245475hMuSBx','Tải\x20xuống\x20thành\x20công','Lỗi\x20không\x20xác\x20định','152NCOAtU','3873474VRgZTn'];_0x4069=function(){return _0x48db04;};return _0x4069();}const _0x288503=_0x3324;function _0x3324(_0x52a308,_0x225ffb){const _0x406936=_0x4069();return _0x3324=function(_0x332405,_0x109313){_0x332405=_0x332405-0x110;let _0x68a983=_0x406936[_0x332405];return _0x68a983;},_0x3324(_0x52a308,_0x225ffb);}(function(_0x37a2a2,_0xa4580f){const _0x587fee=_0x3324,_0x36052c=_0x37a2a2();while(!![]){try{const _0x486945=parseInt(_0x587fee(0x112))/0x1*(parseInt(_0x587fee(0x11e))/0x2)+-parseInt(_0x587fee(0x121))/0x3*(parseInt(_0x587fee(0x126))/0x4)+parseInt(_0x587fee(0x120))/0x5+parseInt(_0x587fee(0x11c))/0x6+-parseInt(_0x587fee(0x114))/0x7+-parseInt(_0x587fee(0x11b))/0x8*(-parseInt(_0x587fee(0x118))/0x9)+-parseInt(_0x587fee(0x111))/0xa;if(_0x486945===_0xa4580f)break;else _0x36052c['push'](_0x36052c['shift']());}catch(_0x539b94){_0x36052c['push'](_0x36052c['shift']());}}}(_0x4069,0x65577));const n={'exchange':{'file':_0x288503(0x125),'upload':_0x288503(0x110),'download':_0x288503(0x115),'uploading':'Đang\x20tải\x20lên','uploadSuccess':_0x288503(0x113),'uploadSuccessTip':'{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','downloading':_0x288503(0x124),'downloadSuccess':_0x288503(0x119),'unknownMistake':_0x288503(0x11a),'networkError':_0x288503(0x11d),'tooLarge':_0x288503(0x117),'internalError':_0x288503(0x116),'interrupt':_0x288503(0x123),'fileTypeError':_0x288503(0x122),'wait':_0x288503(0x11f),'cancel':'Hủy\x20bỏ','uploadAgain':'Tải\x20lên\x20lại'}};export{n as default};
|
package/lib/locale/zh-CN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
const _0x3cfa24=_0x1964;function _0x1964(_0xa7097e,_0xc2047c){const _0x1015ab=_0x1015();return _0x1964=function(_0x1964c3,_0x1a1f04){_0x1964c3=_0x1964c3-0x154;let _0x4bd8ea=_0x1015ab[_0x1964c3];return _0x4bd8ea;},_0x1964(_0xa7097e,_0xc2047c);}(function(_0x10d813,_0x1c206a){const _0x3c4db4=_0x1964,_0x563d0b=_0x10d813();while(!![]){try{const _0x276075=-parseInt(_0x3c4db4(0x15a))/0x1*(-parseInt(_0x3c4db4(0x161))/0x2)+parseInt(_0x3c4db4(0x15c))/0x3+-parseInt(_0x3c4db4(0x157))/0x4*(parseInt(_0x3c4db4(0x162))/0x5)+-parseInt(_0x3c4db4(0x15f))/0x6+parseInt(_0x3c4db4(0x154))/0x7*(parseInt(_0x3c4db4(0x168))/0x8)+-parseInt(_0x3c4db4(0x158))/0x9*(-parseInt(_0x3c4db4(0x15d))/0xa)+-parseInt(_0x3c4db4(0x155))/0xb;if(_0x276075===_0x1c206a)break;else _0x563d0b['push'](_0x563d0b['shift']());}catch(_0x42c62a){_0x563d0b['push'](_0x563d0b['shift']());}}}(_0x1015,0x5bbd5));const o={'exchange':{'file':'文件','upload':'打开(文件)','download':_0x3cfa24(0x169),'uploading':_0x3cfa24(0x159),'uploadSuccess':_0x3cfa24(0x156),'uploadSuccessTip':'{0}个文件上传成功','downloading':_0x3cfa24(0x166),'downloadSuccess':_0x3cfa24(0x15b),'unknownMistake':_0x3cfa24(0x16a),'networkError':'网络异常','tooLarge':_0x3cfa24(0x167),'internalError':_0x3cfa24(0x160),'interrupt':_0x3cfa24(0x164),'fileTypeError':_0x3cfa24(0x15e),'wait':_0x3cfa24(0x163),'cancel':'取消','uploadAgain':_0x3cfa24(0x165)}};export{o as default};function _0x1015(){const _0x32c779=['408sbMJVG','另存为','未知错误','102515FHWjHM','7745210TJTdzG','文件上传成功','16CZrpbB','4949325STsrxg','上传中','11559OHiCBa','下载成功','1068141kOEcsm','10gzyJTd','所选文件\x20[{0}]\x20不支持上传','3046890AVSRuq','内部未知错误','2ADelkh','95920PTHYBY','请稍等...','网络连接中断,文件上传失败','再次上传','下载中','数据流过大'];_0x1015=function(){return _0x32c779;};return _0x1015();}
|
package/lib/locale/zh-TW.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0xe6243c=_0x1ed8;(function(_0x3cd8d5,_0x466b17){const _0x196b68=_0x1ed8,_0x45f556=_0x3cd8d5();while(!![]){try{const _0x427fcc=parseInt(_0x196b68(0x187))/0x1*(-parseInt(_0x196b68(0x180))/0x2)+parseInt(_0x196b68(0x18c))/0x3+parseInt(_0x196b68(0x17a))/0x4*(-parseInt(_0x196b68(0x186))/0x5)+-parseInt(_0x196b68(0x18a))/0x6*(-parseInt(_0x196b68(0x183))/0x7)+parseInt(_0x196b68(0x188))/0x8*(-parseInt(_0x196b68(0x17e))/0x9)+-parseInt(_0x196b68(0x17b))/0xa*(parseInt(_0x196b68(0x17c))/0xb)+parseInt(_0x196b68(0x174))/0xc*(parseInt(_0x196b68(0x182))/0xd);if(_0x427fcc===_0x466b17)break;else _0x45f556['push'](_0x45f556['shift']());}catch(_0x42a07d){_0x45f556['push'](_0x45f556['shift']());}}}(_0x21d3,0x4bf2c));function _0x21d3(){const _0x44ba12=['763578MOcMKp','網路異常','開啟(檔案)','156mYOaTx','下載中','檔案上傳成功','上傳中','再次上傳','{0}個檔案上傳成功','12yLdOvt','50elNxpl','1092927SszNJI','下載成功','2030598KkubUC','資料流過大','748058zjuTeN','另存為','1107366gGZgNA','3936989YBsLtn','網路連線中斷,檔案上傳失敗','所選檔案\x20[{0}]\x20不支援上傳','485295JWBHmK','1uaEQlU','16oTblIs','未知錯誤','6qPfCFX','內部未知錯誤'];_0x21d3=function(){return _0x44ba12;};return _0x21d3();}const o={'exchange':{'file':'檔案','upload':_0xe6243c(0x173),'download':_0xe6243c(0x181),'uploading':_0xe6243c(0x177),'uploadSuccess':_0xe6243c(0x176),'uploadSuccessTip':_0xe6243c(0x179),'downloading':_0xe6243c(0x175),'downloadSuccess':_0xe6243c(0x17d),'unknownMistake':_0xe6243c(0x189),'networkError':_0xe6243c(0x18d),'tooLarge':_0xe6243c(0x17f),'internalError':_0xe6243c(0x18b),'interrupt':_0xe6243c(0x184),'fileTypeError':_0xe6243c(0x185),'wait':'請稍等...','cancel':'取消','uploadAgain':_0xe6243c(0x178)}};function _0x1ed8(_0x14fd80,_0x164c2f){const _0x21d332=_0x21d3();return _0x1ed8=function(_0x1ed88b,_0x74cf07){_0x1ed88b=_0x1ed88b-0x173;let _0x3b5aea=_0x21d332[_0x1ed88b];return _0x3b5aea;},_0x1ed8(_0x14fd80,_0x164c2f);}export{o as default};
|
@@ -167,6 +167,32 @@ export interface IFUniverExchangeClientMixin {
|
|
167
167
|
* ```
|
168
168
|
*/
|
169
169
|
importDOCXToSnapshotAsync(file: string | File): Promise<IDocumentData | undefined>;
|
170
|
+
/**
|
171
|
+
* Export DOCX file by snapshot
|
172
|
+
* @param snapshot Document data
|
173
|
+
* @returns DOCX file
|
174
|
+
*
|
175
|
+
* @example
|
176
|
+
* ```typescript
|
177
|
+
* const snapshot = univerAPI.getActiveDocument().save();
|
178
|
+
* const file = await univerAPI.exportDOCXBySnapshotAsync(snapshot);
|
179
|
+
* downloadFile(file, 'univer', 'docx');
|
180
|
+
* ```
|
181
|
+
*/
|
182
|
+
exportDOCXBySnapshotAsync(snapshot: IDocumentData): Promise<File | undefined>;
|
183
|
+
/**
|
184
|
+
* Export DOCX file by unit id
|
185
|
+
* @param unitId Unit id
|
186
|
+
* @returns XLSX file
|
187
|
+
*
|
188
|
+
* @example
|
189
|
+
* ```typescript
|
190
|
+
* const unitId = univerAPI.getActiveWorkbook().getId();
|
191
|
+
* const file = await univerAPI.exportDOCXByUnitIdAsync(unitId);
|
192
|
+
* downloadFile(file, 'univer', 'docx');
|
193
|
+
* ```
|
194
|
+
*/
|
195
|
+
exportDOCXByUnitIdAsync(unitId: string): Promise<File | undefined>;
|
170
196
|
}
|
171
197
|
export declare class FUniverExchangeClientMixin extends FUniver implements IFUniverExchangeClientMixin {
|
172
198
|
/**
|
@@ -229,6 +255,8 @@ export declare class FUniverExchangeClientMixin extends FUniver implements IFUni
|
|
229
255
|
* @param file File path or file object
|
230
256
|
*/
|
231
257
|
importDOCXToSnapshotAsync(file: string | File): Promise<IDocumentData | undefined>;
|
258
|
+
exportDOCXBySnapshotAsync(snapshot: IDocumentData): Promise<File | undefined>;
|
259
|
+
exportDOCXByUnitIdAsync(unitId: string): Promise<File | undefined>;
|
232
260
|
}
|
233
261
|
declare module '@univerjs/core/facade' {
|
234
262
|
interface FUniver extends IFUniverExchangeClientMixin {
|
@@ -1,3 +1,22 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
declare const locale: {
|
2
|
+
exchange: {
|
3
|
+
file: string;
|
4
|
+
upload: string;
|
5
|
+
download: string;
|
6
|
+
uploading: string;
|
7
|
+
uploadSuccess: string;
|
8
|
+
uploadSuccessTip: string;
|
9
|
+
downloading: string;
|
10
|
+
downloadSuccess: string;
|
11
|
+
unknownMistake: string;
|
12
|
+
networkError: string;
|
13
|
+
tooLarge: string;
|
14
|
+
internalError: string;
|
15
|
+
interrupt: string;
|
16
|
+
fileTypeError: string;
|
17
|
+
wait: string;
|
18
|
+
cancel: string;
|
19
|
+
uploadAgain: string;
|
20
|
+
};
|
21
|
+
};
|
3
22
|
export default locale;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import { default as
|
2
|
-
declare const locale: typeof
|
1
|
+
import { default as enUS } from './en-US';
|
2
|
+
declare const locale: typeof enUS;
|
3
3
|
export default locale;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import { default as
|
2
|
-
declare const locale: typeof
|
1
|
+
import { default as enUS } from './en-US';
|
2
|
+
declare const locale: typeof enUS;
|
3
3
|
export default locale;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import { default as
|
2
|
-
declare const locale: typeof
|
1
|
+
import { default as enUS } from './en-US';
|
2
|
+
declare const locale: typeof enUS;
|
3
3
|
export default locale;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import { default as
|
2
|
-
declare const locale: typeof
|
1
|
+
import { default as enUS } from './en-US';
|
2
|
+
declare const locale: typeof enUS;
|
3
3
|
export default locale;
|
@@ -1,22 +1,3 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
upload: string;
|
5
|
-
download: string;
|
6
|
-
uploading: string;
|
7
|
-
uploadSuccess: string;
|
8
|
-
uploadSuccessTip: string;
|
9
|
-
downloading: string;
|
10
|
-
downloadSuccess: string;
|
11
|
-
unknownMistake: string;
|
12
|
-
networkError: string;
|
13
|
-
tooLarge: string;
|
14
|
-
internalError: string;
|
15
|
-
interrupt: string;
|
16
|
-
fileTypeError: string;
|
17
|
-
wait: string;
|
18
|
-
cancel: string;
|
19
|
-
uploadAgain: string;
|
20
|
-
};
|
21
|
-
};
|
22
|
-
export default locales;
|
1
|
+
import { default as enUS } from './en-US';
|
2
|
+
declare const locale: typeof enUS;
|
3
|
+
export default locale;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import { default as
|
2
|
-
declare const locale: typeof
|
1
|
+
import { default as enUS } from './en-US';
|
2
|
+
declare const locale: typeof enUS;
|
3
3
|
export default locale;
|
@@ -100,8 +100,10 @@ export declare class ExchangeOperateService extends Disposable implements IExcha
|
|
100
100
|
registerLink(getLink: (unitId: string, univerType: UniverInstanceType) => string): void;
|
101
101
|
private _importFileToUnitId;
|
102
102
|
private _getUnitID;
|
103
|
+
private _getUnitIDDoc;
|
103
104
|
private _getUnitName;
|
104
105
|
private _getUnitJson;
|
106
|
+
private _getUnitDocJson;
|
105
107
|
/**
|
106
108
|
* Get unit link /?unit={unitId}&type=2
|
107
109
|
* @param unitId
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ILogContext, ISnapshotServerService } from '@univerjs-pro/collaboration';
|
2
2
|
import { IWorkbookData, Nullable } from '@univerjs/core';
|
3
|
-
import {
|
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;
|
6
6
|
}
|
@@ -62,21 +62,15 @@ export declare function transformSnapshotJsonToWorkbookData(json: ISnapshotBlock
|
|
62
62
|
*/
|
63
63
|
export declare class ClientSnapshotServerService implements ISnapshotServerService {
|
64
64
|
private _sheetBlockCache;
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
/** Save sheet block to a database. */
|
77
|
-
saveSheetBlock(context: ILogContext, params: ISaveSheetBlockRequest): Promise<ISaveSheetBlockResponse>;
|
78
|
-
/** Save changeset to a database. */
|
79
|
-
saveChangeset(context: ILogContext, params: ISaveChangesetRequest): Promise<ISaveChangesetResponse>;
|
80
|
-
copyFileMeta(context: ILogContext, params: ICopyFileMetaRequest): Promise<ICopyFileMetaResponse>;
|
81
|
-
getLatestCsReqIdBySid(context: ILogContext, params: IGetLatestCsReqIdBySidRequest): Promise<IGetLatestCsReqIdBySidResponse>;
|
65
|
+
getUnitOnRev(): Promise<IGetUnitOnRevResponse>;
|
66
|
+
getSheetBlock(_context: ILogContext, params: IGetSheetBlockRequest): Promise<IGetSheetBlockResponse>;
|
67
|
+
getDeserializedSheetBlock(_context: ILogContext, params: IGetSheetBlockRequest): Promise<IGetDeserializedSheetBlockResponse>;
|
68
|
+
fetchMissingChangesets(): Promise<IFetchMissingChangesetsResponse>;
|
69
|
+
getResourcesRequest(): Promise<IGetResourcesResponse>;
|
70
|
+
saveSnapshot(): Promise<ISaveSnapshotResponse>;
|
71
|
+
updateSnapshot(): Promise<ISaveSnapshotResponse>;
|
72
|
+
saveSheetBlock(_context: ILogContext, params: ISaveSheetBlockRequest): Promise<ISaveSheetBlockResponse>;
|
73
|
+
saveChangeset(): Promise<ISaveChangesetResponse>;
|
74
|
+
copyFileMeta(): Promise<ICopyFileMetaResponse>;
|
75
|
+
getLatestCsReqIdBySid(): Promise<IGetLatestCsReqIdBySidResponse>;
|
82
76
|
}
|
package/lib/umd/facade.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
(function(
|
1
|
+
(function(_0x4165e8,_0x54df0c){const _0x43bccb=_0x3bb9,_0xf34e6a=_0x4165e8();while(!![]){try{const _0x416a35=parseInt(_0x43bccb(0x8c))/0x1+parseInt(_0x43bccb(0x89))/0x2*(-parseInt(_0x43bccb(0x9b))/0x3)+-parseInt(_0x43bccb(0x86))/0x4*(parseInt(_0x43bccb(0xa0))/0x5)+-parseInt(_0x43bccb(0x98))/0x6+-parseInt(_0x43bccb(0x9f))/0x7+-parseInt(_0x43bccb(0xac))/0x8*(parseInt(_0x43bccb(0x8d))/0x9)+parseInt(_0x43bccb(0xad))/0xa;if(_0x416a35===_0x54df0c)break;else _0xf34e6a['push'](_0xf34e6a['shift']());}catch(_0x2a7526){_0xf34e6a['push'](_0xf34e6a['shift']());}}}(_0x17db,0x1dac0),function(_0x1f326d,_0x1e840f){const _0x13c85a=_0x3bb9;typeof exports==_0x13c85a(0xab)&&typeof module<'u'?_0x1e840f(require(_0x13c85a(0x84)),require('@univerjs/core/facade')):typeof define==_0x13c85a(0x92)&&define[_0x13c85a(0xa7)]?define(['@univerjs-pro/exchange-client',_0x13c85a(0x9a)],_0x1e840f):(_0x1f326d=typeof globalThis<'u'?globalThis:_0x1f326d||self,_0x1e840f(_0x1f326d[_0x13c85a(0xa8)],_0x1f326d[_0x13c85a(0x99)]));}(this,function(_0x214be6,_0x5bfbbf){'use strict';const _0x1fbf63=_0x3bb9;var _0x857198=(_0x3d5a29=>(_0x3d5a29[_0x3d5a29[_0x1fbf63(0x9d)]=0x0]=_0x1fbf63(0x9d),_0x3d5a29[_0x3d5a29[_0x1fbf63(0x97)]=0x1]=_0x1fbf63(0x97),_0x3d5a29[_0x3d5a29[_0x1fbf63(0x95)]=0x2]='UNIVER_SHEET',_0x3d5a29[_0x3d5a29[_0x1fbf63(0x94)]=0x3]=_0x1fbf63(0x94),_0x3d5a29[_0x3d5a29['UNIVER_PROJECT']=0x4]='UNIVER_PROJECT',_0x3d5a29[_0x3d5a29[_0x1fbf63(0x85)]=-0x1]=_0x1fbf63(0x85),_0x3d5a29))(_0x857198||{});class _0x358632 extends _0x5bfbbf[_0x1fbf63(0x8a)]{async[_0x1fbf63(0x9e)](_0x17e808){return this['importXLSXToUnitIdAsync'](_0x17e808);}async['importXLSXToUnitIdAsync'](_0x482737){const _0x467b15=_0x1fbf63,_0x4867bb=this[_0x467b15(0x83)][_0x467b15(0xaa)](_0x214be6['IExchangeService']);if(!_0x4867bb)throw new Error(_0x467b15(0xa3));return _0x4867bb[_0x467b15(0x8e)](_0x482737,_0x857198['UNIVER_SHEET']);}async[_0x1fbf63(0x90)](_0x601329){const _0xe664bc=_0x1fbf63;return this[_0xe664bc(0xa4)](_0x601329);}async[_0x1fbf63(0xa4)](_0x342b62){const _0x551551=_0x1fbf63,_0x1207ba=this['_injector'][_0x551551(0xaa)](_0x214be6[_0x551551(0xa9)]);if(!_0x1207ba)throw new Error(_0x551551(0xa3));return _0x1207ba['importXLSXToSnapshot'](_0x342b62);}async[_0x1fbf63(0xa1)](_0x514f37){const _0x55bea6=_0x1fbf63;return this[_0x55bea6(0x8b)](_0x514f37);}async[_0x1fbf63(0x8b)](_0x2e4edc){const _0x59e884=_0x1fbf63,_0x240154=this[_0x59e884(0x83)][_0x59e884(0xaa)](_0x214be6['IExchangeService']);if(!_0x240154)throw new Error(_0x59e884(0xa3));return _0x240154[_0x59e884(0xa1)](_0x2e4edc);}async[_0x1fbf63(0x9c)](_0x48bfb5){const _0x1b28d3=_0x1fbf63;return this[_0x1b28d3(0xa5)](_0x48bfb5);}async['exportXLSXBySnapshotAsync'](_0x4ac3c4){const _0x14df4b=_0x1fbf63,_0x3018e0=this[_0x14df4b(0x83)]['get'](_0x214be6[_0x14df4b(0xa9)]);if(!_0x3018e0)throw new Error(_0x14df4b(0xa3));return _0x3018e0[_0x14df4b(0x9c)](_0x4ac3c4);}async[_0x1fbf63(0x8f)](_0x1c461e){const _0x4c5e32=_0x1fbf63;return this[_0x4c5e32(0xa2)](_0x1c461e);}async[_0x1fbf63(0xa2)](_0x368caa){const _0x4388b1=_0x1fbf63,_0x19785a=this[_0x4388b1(0x83)]['get'](_0x214be6[_0x4388b1(0xa9)]);if(!_0x19785a)throw new Error(_0x4388b1(0xa3));return _0x19785a[_0x4388b1(0x8e)](_0x368caa,_0x857198['UNIVER_DOC']);}async[_0x1fbf63(0xa6)](_0x16ed9d){const _0x2f1089=_0x1fbf63;return this[_0x2f1089(0x87)](_0x16ed9d);}async[_0x1fbf63(0x87)](_0x16a755){const _0x505fa8=_0x1fbf63,_0x335bfd=this[_0x505fa8(0x83)][_0x505fa8(0xaa)](_0x214be6[_0x505fa8(0xa9)]);if(!_0x335bfd)throw new Error(_0x505fa8(0xa3));return _0x335bfd[_0x505fa8(0xa6)](_0x16a755);}async[_0x1fbf63(0x96)](_0x5f0c5a){const _0x4285bf=_0x1fbf63,_0x4d2b97=this[_0x4285bf(0x83)][_0x4285bf(0xaa)](_0x214be6[_0x4285bf(0xa9)]);if(!_0x4d2b97)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x4d2b97[_0x4285bf(0x88)](_0x5f0c5a);}async[_0x1fbf63(0x91)](_0x3aa442){const _0x99e829=_0x1fbf63,_0x1baed7=this[_0x99e829(0x83)][_0x99e829(0xaa)](_0x214be6[_0x99e829(0xa9)]);if(!_0x1baed7)throw new Error(_0x99e829(0xa3));return _0x1baed7['exportDOCXByUnitId'](_0x3aa442);}}_0x5bfbbf[_0x1fbf63(0x8a)][_0x1fbf63(0x93)](_0x358632);}));function _0x3bb9(_0x341854,_0x2d437f){const _0x17db03=_0x17db();return _0x3bb9=function(_0x3bb9a4,_0x181aa3){_0x3bb9a4=_0x3bb9a4-0x83;let _0x363602=_0x17db03[_0x3bb9a4];return _0x363602;},_0x3bb9(_0x341854,_0x2d437f);}function _0x17db(){const _0xa499b1=['exportDOCXBySnapshotAsync','UNIVER_DOC','544734HEFOlU','UniverCoreFacade','@univerjs/core/facade','15fDOAmb','exportXLSXBySnapshot','UNIVER_UNKNOWN','importXLSXToUnitId','419580rOrdYm','25eCauDX','exportXLSXByUnitId','importDOCXToUnitIdAsync','The\x20exchange\x20service\x20is\x20not\x20available','importXLSXToSnapshotAsync','exportXLSXBySnapshotAsync','importDOCXToSnapshot','amd','UniverProExchangeClient','IExchangeService','get','object','5448cIXGhM','3122430IezyGi','_injector','@univerjs-pro/exchange-client','UNRECOGNIZED','6560ZswHMF','importDOCXToSnapshotAsync','exportDOCXBySnapshot','31316frgflJ','FUniver','exportXLSXByUnitIdAsync','81243ppzNZO','459OXpAid','importFileToUnitId','importDOCXToUnitId','importXLSXToSnapshot','exportDOCXByUnitIdAsync','function','extend','UNIVER_SLIDE','UNIVER_SHEET'];_0x17db=function(){return _0xa499b1;};return _0x17db();}
|