@univerjs-pro/exchange-client 0.7.0 → 0.8.0-beta.1
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 +10 -10
package/lib/locale/en-US.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x372cb2=_0x4e45;(function(_0x151f88,_0xd1065b){const _0x3fbc50=_0x4e45,_0x3bf4e4=_0x151f88();while(!![]){try{const _0x50a268=-parseInt(_0x3fbc50(0x1da))/0x1+-parseInt(_0x3fbc50(0x1e3))/0x2*(parseInt(_0x3fbc50(0x1d4))/0x3)+parseInt(_0x3fbc50(0x1de))/0x4*(parseInt(_0x3fbc50(0x1e7))/0x5)+parseInt(_0x3fbc50(0x1e8))/0x6+parseInt(_0x3fbc50(0x1ea))/0x7+-parseInt(_0x3fbc50(0x1e0))/0x8*(parseInt(_0x3fbc50(0x1d7))/0x9)+-parseInt(_0x3fbc50(0x1e9))/0xa*(-parseInt(_0x3fbc50(0x1d8))/0xb);if(_0x50a268===_0xd1065b)break;else _0x3bf4e4['push'](_0x3bf4e4['shift']());}catch(_0x4ca64b){_0x3bf4e4['push'](_0x3bf4e4['shift']());}}}(_0x1f26,0x20727));const e={'exchange':{'file':_0x372cb2(0x1d3),'upload':_0x372cb2(0x1e2),'download':_0x372cb2(0x1e6),'uploading':'Uploading','uploadSuccess':_0x372cb2(0x1dc),'uploadSuccessTip':_0x372cb2(0x1d9),'downloading':_0x372cb2(0x1e1),'downloadSuccess':'Download\x20success','unknownMistake':'Unknown\x20mistake','networkError':_0x372cb2(0x1e5),'tooLarge':'Data\x20is\x20too\x20large','internalError':_0x372cb2(0x1db),'interrupt':_0x372cb2(0x1dd),'fileTypeError':_0x372cb2(0x1df),'wait':_0x372cb2(0x1e4),'cancel':_0x372cb2(0x1d5),'uploadAgain':_0x372cb2(0x1d6)}};function _0x4e45(_0x474e8d,_0x548d05){const _0x1f267b=_0x1f26();return _0x4e45=function(_0x4e45aa,_0x13c672){_0x4e45aa=_0x4e45aa-0x1d3;let _0x5f1a77=_0x1f267b[_0x4e45aa];return _0x5f1a77;},_0x4e45(_0x474e8d,_0x548d05);}function _0x1f26(){const _0xc620ee=['183180RyXAZv','170205sTuJqE','File','339lMhbFy','Cancel','Upload\x20again','871605eHfbSH','385CdDEsB','{0}\x20file(s)\x20uploaded\x20successfully','223107zUxuaX','Internal\x20unknown\x20error','File\x20uploaded\x20successfully','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','166028hocegO','Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','16eEKdPg','Downloading','Open(File)','4148RGenmk','Please\x20wait...','Network\x20error','Save\x20As','10MgWaqV','213618WiBNDf'];_0x1f26=function(){return _0xc620ee;};return _0x1f26();}export{e as default};
|
package/lib/locale/fa-IR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x2b0399=_0x41ff;function _0x41ff(_0x4f4583,_0x4b96fe){const _0x30b996=_0x30b9();return _0x41ff=function(_0x41ff01,_0x30e753){_0x41ff01=_0x41ff01-0x1d4;let _0x1507b3=_0x30b996[_0x41ff01];return _0x1507b3;},_0x41ff(_0x4f4583,_0x4b96fe);}function _0x30b9(){const _0x4cc79f=['دانلود\x20موفقیت\x20آمیز','850510LTpySs','{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','لغو','در\x20حال\x20بارگذاری','داده\x20خیلی\x20بزرگ\x20است','در\x20حال\x20دانلود','1220229nLYGDJ','2047810BcvptU','خطای\x20داخلی\x20ناشناخته','بارگذاری\x20مجدد','بازکردن(فایل)','5QrdVdY','1yPNThm','510564MlMqTn','فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','1739202DrXFRg','خطای\x20شبکه','11xetTTI','10776PVhqbe','1429516KHXCcb','اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','خطای\x20ناشناخته','ذخیره\x20به\x20عنوان','2737FDbIYK','فایل\x20انتخاب\x20شده\x20[{0}]\x20برای\x20بارگذاری\x20پشتیبانی\x20نمیشود'];_0x30b9=function(){return _0x4cc79f;};return _0x30b9();}(function(_0x176293,_0x286fae){const _0x35e199=_0x41ff,_0x11d13a=_0x176293();while(!![]){try{const _0x253a41=-parseInt(_0x35e199(0x1e2))/0x1*(parseInt(_0x35e199(0x1d6))/0x2)+parseInt(_0x35e199(0x1e5))/0x3+parseInt(_0x35e199(0x1e9))/0x4*(parseInt(_0x35e199(0x1e1))/0x5)+parseInt(_0x35e199(0x1e3))/0x6+parseInt(_0x35e199(0x1ed))/0x7*(-parseInt(_0x35e199(0x1e8))/0x8)+parseInt(_0x35e199(0x1dc))/0x9+-parseInt(_0x35e199(0x1dd))/0xa*(-parseInt(_0x35e199(0x1e7))/0xb);if(_0x253a41===_0x286fae)break;else _0x11d13a['push'](_0x11d13a['shift']());}catch(_0x17a92b){_0x11d13a['push'](_0x11d13a['shift']());}}}(_0x30b9,0x6440d));const o={'exchange':{'file':'فایل','upload':_0x2b0399(0x1e0),'download':_0x2b0399(0x1ec),'uploading':_0x2b0399(0x1d9),'uploadSuccess':_0x2b0399(0x1e4),'uploadSuccessTip':_0x2b0399(0x1d7),'downloading':_0x2b0399(0x1db),'downloadSuccess':_0x2b0399(0x1d5),'unknownMistake':_0x2b0399(0x1eb),'networkError':_0x2b0399(0x1e6),'tooLarge':_0x2b0399(0x1da),'internalError':_0x2b0399(0x1de),'interrupt':_0x2b0399(0x1ea),'fileTypeError':_0x2b0399(0x1d4),'wait':'لطفا\x20صبر\x20کنید...','cancel':_0x2b0399(0x1d8),'uploadAgain':_0x2b0399(0x1df)}};export{o as default};
|
package/lib/locale/fr-FR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x62142d=_0x15b9;function _0x15b9(_0x566e9b,_0x2208dc){const _0x48a11f=_0x48a1();return _0x15b9=function(_0x15b9e2,_0x2cfdc7){_0x15b9e2=_0x15b9e2-0x154;let _0x50df85=_0x48a11f[_0x15b9e2];return _0x50df85;},_0x15b9(_0x566e9b,_0x2208dc);}function _0x48a1(){const _0x5ed6d6=['La\x20connexion\x20réseau\x20a\x20été\x20interrompue\x20et\x20le\x20téléchargement\x20du\x20fichier\x20a\x20échoué','9996EULBmy','772ibKygE','Télécharger\x20à\x20nouveau','Téléchargement\x20en\x20cours','Annuler','6590sbrCuj','Les\x20données\x20sont\x20trop\x20volumineuses','Le\x20fichier\x20sélectionné\x20[{0}]\x20n\x27est\x20pas\x20pris\x20en\x20charge\x20pour\x20le\x20téléchargement','{0}\x20fichier(s)\x20téléchargé(s)\x20avec\x20succès','8335984TfygNg','754902zmrGki','Erreur\x20interne\x20inconnue','10niiFsr','Fichier','Veuillez\x20patienter...','Téléchargement\x20réussi','3786bBECNT','Enregistrer\x20sous','95mmRrzM','19507323uMVVyh','Fichier\x20téléchargé\x20avec\x20succès','7869fSNVyY','Téléchargement','Erreur\x20inconnue','1182335DgiyEI'];_0x48a1=function(){return _0x5ed6d6;};return _0x48a1();}(function(_0x1ee20d,_0x45f1ad){const _0x5049ed=_0x15b9,_0x2453a=_0x1ee20d();while(!![]){try{const _0x73fc38=-parseInt(_0x5049ed(0x161))/0x1*(-parseInt(_0x5049ed(0x154))/0x2)+-parseInt(_0x5049ed(0x164))/0x3*(-parseInt(_0x5049ed(0x16a))/0x4)+parseInt(_0x5049ed(0x167))/0x5+-parseInt(_0x5049ed(0x15f))/0x6*(parseInt(_0x5049ed(0x169))/0x7)+-parseInt(_0x5049ed(0x158))/0x8+-parseInt(_0x5049ed(0x159))/0x9*(parseInt(_0x5049ed(0x15b))/0xa)+parseInt(_0x5049ed(0x162))/0xb;if(_0x73fc38===_0x45f1ad)break;else _0x2453a['push'](_0x2453a['shift']());}catch(_0x505358){_0x2453a['push'](_0x2453a['shift']());}}}(_0x48a1,0xc3d84));const e={'exchange':{'file':_0x62142d(0x15c),'upload':'Ouvrir\x20(Fichier)','download':_0x62142d(0x160),'uploading':_0x62142d(0x16c),'uploadSuccess':_0x62142d(0x163),'uploadSuccessTip':_0x62142d(0x157),'downloading':_0x62142d(0x165),'downloadSuccess':_0x62142d(0x15e),'unknownMistake':_0x62142d(0x166),'networkError':'Erreur\x20réseau','tooLarge':_0x62142d(0x155),'internalError':_0x62142d(0x15a),'interrupt':_0x62142d(0x168),'fileTypeError':_0x62142d(0x156),'wait':_0x62142d(0x15d),'cancel':_0x62142d(0x16d),'uploadAgain':_0x62142d(0x16b)}};export{e as default};
|
package/lib/locale/ru-RU.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x593d58=_0x17fe;(function(_0x49f422,_0x5b97c7){const _0x4b326d=_0x17fe,_0x321177=_0x49f422();while(!![]){try{const _0x3f8516=parseInt(_0x4b326d(0x81))/0x1+parseInt(_0x4b326d(0x82))/0x2+-parseInt(_0x4b326d(0x70))/0x3+parseInt(_0x4b326d(0x74))/0x4*(parseInt(_0x4b326d(0x7b))/0x5)+-parseInt(_0x4b326d(0x72))/0x6+-parseInt(_0x4b326d(0x73))/0x7+parseInt(_0x4b326d(0x7d))/0x8;if(_0x3f8516===_0x5b97c7)break;else _0x321177['push'](_0x321177['shift']());}catch(_0x8c0f16){_0x321177['push'](_0x321177['shift']());}}}(_0x4889,0x3f76d));function _0x17fe(_0x3182d5,_0x3b65f2){const _0x488999=_0x4889();return _0x17fe=function(_0x17fe0d,_0x342141){_0x17fe0d=_0x17fe0d-0x6d;let _0x73d544=_0x488999[_0x17fe0d];return _0x73d544;},_0x17fe(_0x3182d5,_0x3b65f2);}const o={'exchange':{'file':'Файл','upload':_0x593d58(0x78),'download':_0x593d58(0x76),'uploading':_0x593d58(0x6d),'uploadSuccess':_0x593d58(0x7e),'uploadSuccessTip':_0x593d58(0x7f),'downloading':_0x593d58(0x75),'downloadSuccess':_0x593d58(0x80),'unknownMistake':_0x593d58(0x77),'networkError':'Сетевая\x20ошибка','tooLarge':_0x593d58(0x6e),'internalError':'Внутренняя\x20неизвестная\x20ошибка','interrupt':_0x593d58(0x79),'fileTypeError':_0x593d58(0x71),'wait':_0x593d58(0x7a),'cancel':_0x593d58(0x6f),'uploadAgain':_0x593d58(0x7c)}};export{o as default};function _0x4889(){const _0x40be2a=['Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','301548UbWTUy','1823731ZWnjGr','23992jwFRlh','Скачивание','Сохранить\x20как','Неизвестная\x20ошибка','Открыть(Файл)','Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','Пожалуйста,\x20подождите...','165LxLFyp','Загрузить\x20снова','276056mYBRtZ','Файл\x20успешно\x20загружен','{0}\x20файл(ов)\x20успешно\x20загружен(о)','Скачивание\x20успешно','248376FnSMNw','195866KZgxEH','Загрузка','Данные\x20слишком\x20большие','Отмена','24030mpIlNs'];_0x4889=function(){return _0x40be2a;};return _0x4889();}
|
package/lib/locale/vi-VN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
const _0x19f0d4=_0x32dd;(function(_0x39042a,_0x2f228e){const _0x155b0e=_0x32dd,_0x2e577f=_0x39042a();while(!![]){try{const _0xfe2715=-parseInt(_0x155b0e(0x1b1))/0x1*(-parseInt(_0x155b0e(0x1ba))/0x2)+parseInt(_0x155b0e(0x1a6))/0x3*(-parseInt(_0x155b0e(0x1bb))/0x4)+-parseInt(_0x155b0e(0x1ac))/0x5*(parseInt(_0x155b0e(0x1ad))/0x6)+-parseInt(_0x155b0e(0x1bc))/0x7*(-parseInt(_0x155b0e(0x1a7))/0x8)+parseInt(_0x155b0e(0x1b2))/0x9*(parseInt(_0x155b0e(0x1ae))/0xa)+parseInt(_0x155b0e(0x1b0))/0xb+parseInt(_0x155b0e(0x1b8))/0xc*(-parseInt(_0x155b0e(0x1a3))/0xd);if(_0xfe2715===_0x2f228e)break;else _0x2e577f['push'](_0x2e577f['shift']());}catch(_0x42c867){_0x2e577f['push'](_0x2e577f['shift']());}}}(_0x5f47,0xbde45));const n={'exchange':{'file':_0x19f0d4(0x1b7),'upload':'Mở\x20(Tệp)','download':_0x19f0d4(0x1b9),'uploading':_0x19f0d4(0x1b5),'uploadSuccess':'Tải\x20lên\x20tệp\x20thành\x20công','uploadSuccessTip':_0x19f0d4(0x1b6),'downloading':_0x19f0d4(0x1b3),'downloadSuccess':_0x19f0d4(0x1a5),'unknownMistake':_0x19f0d4(0x1a8),'networkError':'Lỗi\x20mạng','tooLarge':_0x19f0d4(0x1b4),'internalError':_0x19f0d4(0x1a4),'interrupt':_0x19f0d4(0x1a9),'fileTypeError':_0x19f0d4(0x1ab),'wait':_0x19f0d4(0x1aa),'cancel':'Hủy\x20bỏ','uploadAgain':_0x19f0d4(0x1af)}};function _0x32dd(_0x4aeae7,_0x3a2553){const _0x5f47d2=_0x5f47();return _0x32dd=function(_0x32dd7e,_0x1852c2){_0x32dd7e=_0x32dd7e-0x1a3;let _0x25b683=_0x5f47d2[_0x32dd7e];return _0x25b683;},_0x32dd(_0x4aeae7,_0x3a2553);}function _0x5f47(){const _0x295cd9=['Lỗi\x20không\x20xác\x20định\x20bên\x20trong','Tải\x20xuống\x20thành\x20công','21MxVciX','177896zHidrc','Lỗi\x20không\x20xác\x20định','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','Vui\x20lòng\x20đợi...','Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','6561335SrEvuP','6YCDfxb','13776010AXRktn','Tải\x20lên\x20lại','8392791pPbgbv','1117015xySalf','9rPJhCA','Đang\x20tải\x20xuống','Luồng\x20dữ\x20liệu\x20quá\x20lớn','Đang\x20tải\x20lên','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','Tệp','6972204ZRhzMa','Lưu\x20dưới\x20dạng','2lDUQoX','522492LcCXjF','469CkrioT','39NOPEuq'];_0x5f47=function(){return _0x295cd9;};return _0x5f47();}export{n as default};
|
package/lib/locale/zh-CN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
const _0x4d46ea=_0x47ae;function _0x47ae(_0x5ea62d,_0x38ab9f){const _0x301178=_0x3011();return _0x47ae=function(_0x47ae53,_0x43eb86){_0x47ae53=_0x47ae53-0xb5;let _0x18b6ff=_0x301178[_0x47ae53];return _0x18b6ff;},_0x47ae(_0x5ea62d,_0x38ab9f);}(function(_0x42ad2e,_0xd6aef1){const _0x5378e7=_0x47ae,_0xc4dad4=_0x42ad2e();while(!![]){try{const _0x435d74=parseInt(_0x5378e7(0xc8))/0x1+parseInt(_0x5378e7(0xc2))/0x2+parseInt(_0x5378e7(0xbe))/0x3+parseInt(_0x5378e7(0xc5))/0x4*(parseInt(_0x5378e7(0xba))/0x5)+-parseInt(_0x5378e7(0xc9))/0x6*(parseInt(_0x5378e7(0xc1))/0x7)+parseInt(_0x5378e7(0xb5))/0x8+-parseInt(_0x5378e7(0xc3))/0x9*(parseInt(_0x5378e7(0xc7))/0xa);if(_0x435d74===_0xd6aef1)break;else _0xc4dad4['push'](_0xc4dad4['shift']());}catch(_0x356e69){_0xc4dad4['push'](_0xc4dad4['shift']());}}}(_0x3011,0x848c2));function _0x3011(){const _0x786091=['网络异常','{0}个文件上传成功','1757vLovKs','1130990txDZUV','8470782RBWMze','所选文件\x20[{0}]\x20不支持上传','4elKRjk','下载成功','20jLtoUb','907252rwPuDR','17058VSBbfi','网络连接中断,文件上传失败','1511800TeofaI','文件上传成功','数据流过大','未知错误','内部未知错误','4451885TQzPIu','再次上传','上传中','下载中','1760412WEvUfw'];_0x3011=function(){return _0x786091;};return _0x3011();}const o={'exchange':{'file':'文件','upload':'打开(文件)','download':'另存为','uploading':_0x4d46ea(0xbc),'uploadSuccess':_0x4d46ea(0xb6),'uploadSuccessTip':_0x4d46ea(0xc0),'downloading':_0x4d46ea(0xbd),'downloadSuccess':_0x4d46ea(0xc6),'unknownMistake':_0x4d46ea(0xb8),'networkError':_0x4d46ea(0xbf),'tooLarge':_0x4d46ea(0xb7),'internalError':_0x4d46ea(0xb9),'interrupt':_0x4d46ea(0xca),'fileTypeError':_0x4d46ea(0xc4),'wait':'请稍等...','cancel':'取消','uploadAgain':_0x4d46ea(0xbb)}};export{o as default};
|
package/lib/locale/zh-TW.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x504c21=_0x3217;(function(_0x41bd59,_0x2d6a78){const _0x33bf12=_0x3217,_0x5075dd=_0x41bd59();while(!![]){try{const _0x130c9b=parseInt(_0x33bf12(0x1f1))/0x1*(-parseInt(_0x33bf12(0x1ee))/0x2)+-parseInt(_0x33bf12(0x1f0))/0x3+parseInt(_0x33bf12(0x1eb))/0x4*(parseInt(_0x33bf12(0x1f2))/0x5)+-parseInt(_0x33bf12(0x1de))/0x6+parseInt(_0x33bf12(0x1e0))/0x7+parseInt(_0x33bf12(0x1df))/0x8*(parseInt(_0x33bf12(0x1ef))/0x9)+parseInt(_0x33bf12(0x1e8))/0xa;if(_0x130c9b===_0x2d6a78)break;else _0x5075dd['push'](_0x5075dd['shift']());}catch(_0x5162d8){_0x5075dd['push'](_0x5075dd['shift']());}}}(_0x2cff,0x36de2));function _0x2cff(){const _0x2e256d=['729958yLhIfi','20439vUawRe','582765ZMPySW','1pCFzlN','25TiXITv','資料流過大','2006460KJxHux','1208OKlmEP','2722454bkmcIu','上傳中','內部未知錯誤','網路異常','下載中','{0}個檔案上傳成功','檔案上傳成功','另存為','142040RzgItE','網路連線中斷,檔案上傳失敗','下載成功','297868QpkFVG','未知錯誤','請稍等...'];_0x2cff=function(){return _0x2e256d;};return _0x2cff();}function _0x3217(_0xf5ffe7,_0x35da6b){const _0x2cff9c=_0x2cff();return _0x3217=function(_0x3217af,_0x57e8a9){_0x3217af=_0x3217af-0x1de;let _0x8621bd=_0x2cff9c[_0x3217af];return _0x8621bd;},_0x3217(_0xf5ffe7,_0x35da6b);}const o={'exchange':{'file':'檔案','upload':'開啟(檔案)','download':_0x504c21(0x1e7),'uploading':_0x504c21(0x1e1),'uploadSuccess':_0x504c21(0x1e6),'uploadSuccessTip':_0x504c21(0x1e5),'downloading':_0x504c21(0x1e4),'downloadSuccess':_0x504c21(0x1ea),'unknownMistake':_0x504c21(0x1ec),'networkError':_0x504c21(0x1e3),'tooLarge':_0x504c21(0x1f3),'internalError':_0x504c21(0x1e2),'interrupt':_0x504c21(0x1e9),'fileTypeError':'所選檔案\x20[{0}]\x20不支援上傳','wait':_0x504c21(0x1ed),'cancel':'取消','uploadAgain':'再次上傳'}};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 _0x32ab(_0x44b18f,_0x497b26){const _0x28d12d=_0x28d1();return _0x32ab=function(_0x32abd3,_0x56514f){_0x32abd3=_0x32abd3-0x7c;let _0x2f0e5f=_0x28d12d[_0x32abd3];return _0x2f0e5f;},_0x32ab(_0x44b18f,_0x497b26);}(function(_0x35f38a,_0x7e7787){const _0x1c3b94=_0x32ab,_0x5b9525=_0x35f38a();while(!![]){try{const _0x211161=-parseInt(_0x1c3b94(0x97))/0x1+-parseInt(_0x1c3b94(0x8a))/0x2*(parseInt(_0x1c3b94(0x7e))/0x3)+-parseInt(_0x1c3b94(0xa3))/0x4+-parseInt(_0x1c3b94(0x89))/0x5+parseInt(_0x1c3b94(0x7d))/0x6+-parseInt(_0x1c3b94(0xa4))/0x7*(-parseInt(_0x1c3b94(0x85))/0x8)+-parseInt(_0x1c3b94(0x92))/0x9*(-parseInt(_0x1c3b94(0x9e))/0xa);if(_0x211161===_0x7e7787)break;else _0x5b9525['push'](_0x5b9525['shift']());}catch(_0x305de4){_0x5b9525['push'](_0x5b9525['shift']());}}}(_0x28d1,0x23b91),function(_0x1c82bf,_0x47099b){const _0x300405=_0x32ab;typeof exports==_0x300405(0x93)&&typeof module<'u'?_0x47099b(require(_0x300405(0x9b)),require(_0x300405(0x80))):typeof define==_0x300405(0x9a)&&define[_0x300405(0x96)]?define([_0x300405(0x9b),_0x300405(0x80)],_0x47099b):(_0x1c82bf=typeof globalThis<'u'?globalThis:_0x1c82bf||self,_0x47099b(_0x1c82bf['UniverProExchangeClient'],_0x1c82bf[_0x300405(0xa5)]));}(this,function(_0x10403d,_0x5d1fd9){'use strict';const _0x7cdc0a=_0x32ab;var _0x5411b8=(_0x163c2d=>(_0x163c2d[_0x163c2d[_0x7cdc0a(0x86)]=0x0]='UNIVER_UNKNOWN',_0x163c2d[_0x163c2d[_0x7cdc0a(0x8d)]=0x1]=_0x7cdc0a(0x8d),_0x163c2d[_0x163c2d[_0x7cdc0a(0x84)]=0x2]=_0x7cdc0a(0x84),_0x163c2d[_0x163c2d[_0x7cdc0a(0x90)]=0x3]=_0x7cdc0a(0x90),_0x163c2d[_0x163c2d[_0x7cdc0a(0x9d)]=0x4]=_0x7cdc0a(0x9d),_0x163c2d[_0x163c2d[_0x7cdc0a(0x7f)]=-0x1]=_0x7cdc0a(0x7f),_0x163c2d))(_0x5411b8||{});class _0x39e5e3 extends _0x5d1fd9['FUniver']{async[_0x7cdc0a(0x8b)](_0x5b6f9f){const _0x17ff65=_0x7cdc0a;return this[_0x17ff65(0x87)](_0x5b6f9f);}async[_0x7cdc0a(0x87)](_0x5f7f31){const _0x330e8d=_0x7cdc0a,_0x4ae641=this[_0x330e8d(0xa1)][_0x330e8d(0x8c)](_0x10403d[_0x330e8d(0x83)]);if(!_0x4ae641)throw new Error(_0x330e8d(0x82));return _0x4ae641[_0x330e8d(0x98)](_0x5f7f31,_0x5411b8['UNIVER_SHEET']);}async[_0x7cdc0a(0x94)](_0x36005d){const _0x13452e=_0x7cdc0a;return this[_0x13452e(0x7c)](_0x36005d);}async[_0x7cdc0a(0x7c)](_0x413367){const _0x1b7384=_0x7cdc0a,_0x3dc94c=this['_injector'][_0x1b7384(0x8c)](_0x10403d[_0x1b7384(0x83)]);if(!_0x3dc94c)throw new Error(_0x1b7384(0x82));return _0x3dc94c[_0x1b7384(0x94)](_0x413367);}async[_0x7cdc0a(0x88)](_0x190edf){const _0x289d17=_0x7cdc0a;return this[_0x289d17(0xa2)](_0x190edf);}async[_0x7cdc0a(0xa2)](_0x2a3c4c){const _0x3c57b5=_0x7cdc0a,_0x451ad6=this['_injector'][_0x3c57b5(0x8c)](_0x10403d[_0x3c57b5(0x83)]);if(!_0x451ad6)throw new Error(_0x3c57b5(0x82));return _0x451ad6[_0x3c57b5(0x88)](_0x2a3c4c);}async[_0x7cdc0a(0xa0)](_0x5ccc8e){const _0x14b31c=_0x7cdc0a;return this[_0x14b31c(0x9f)](_0x5ccc8e);}async[_0x7cdc0a(0x9f)](_0x42f604){const _0x3f8e3b=_0x7cdc0a,_0x33b88f=this[_0x3f8e3b(0xa1)][_0x3f8e3b(0x8c)](_0x10403d['IExchangeService']);if(!_0x33b88f)throw new Error(_0x3f8e3b(0x82));return _0x33b88f[_0x3f8e3b(0xa0)](_0x42f604);}async[_0x7cdc0a(0x9c)](_0x4a446b){const _0xbebc2c=_0x7cdc0a;return this[_0xbebc2c(0x91)](_0x4a446b);}async[_0x7cdc0a(0x91)](_0x58d00d){const _0x252ac4=_0x7cdc0a,_0xc5c83f=this[_0x252ac4(0xa1)]['get'](_0x10403d[_0x252ac4(0x83)]);if(!_0xc5c83f)throw new Error(_0x252ac4(0x82));return _0xc5c83f[_0x252ac4(0x98)](_0x58d00d,_0x5411b8[_0x252ac4(0x8d)]);}async['importDOCXToSnapshot'](_0x83803a){const _0x52231e=_0x7cdc0a;return this[_0x52231e(0x99)](_0x83803a);}async[_0x7cdc0a(0x99)](_0x2a3b6a){const _0x1243a1=_0x7cdc0a,_0x5ee013=this[_0x1243a1(0xa1)][_0x1243a1(0x8c)](_0x10403d['IExchangeService']);if(!_0x5ee013)throw new Error(_0x1243a1(0x82));return _0x5ee013[_0x1243a1(0x95)](_0x2a3b6a);}async[_0x7cdc0a(0x8e)](_0x1adc3b){const _0x5d82a3=_0x7cdc0a,_0x357e81=this[_0x5d82a3(0xa1)][_0x5d82a3(0x8c)](_0x10403d[_0x5d82a3(0x83)]);if(!_0x357e81)throw new Error(_0x5d82a3(0x82));return _0x357e81[_0x5d82a3(0x8f)](_0x1adc3b);}async[_0x7cdc0a(0x81)](_0x3cbd27){const _0x18593b=_0x7cdc0a,_0x394f47=this[_0x18593b(0xa1)][_0x18593b(0x8c)](_0x10403d[_0x18593b(0x83)]);if(!_0x394f47)throw new Error(_0x18593b(0x82));return _0x394f47['exportDOCXByUnitId'](_0x3cbd27);}}_0x5d1fd9['FUniver']['extend'](_0x39e5e3);}));function _0x28d1(){const _0x1aaa8b=['importDOCXToUnitIdAsync','31653iCAobx','object','importXLSXToSnapshot','importDOCXToSnapshot','amd','78632KtnKmm','importFileToUnitId','importDOCXToSnapshotAsync','function','@univerjs-pro/exchange-client','importDOCXToUnitId','UNIVER_PROJECT','1210XtfkCS','exportXLSXBySnapshotAsync','exportXLSXBySnapshot','_injector','exportXLSXByUnitIdAsync','742864vscjTS','140xdPjyd','UniverCoreFacade','importXLSXToSnapshotAsync','986316lgjwuU','9uAiYNz','UNRECOGNIZED','@univerjs/core/facade','exportDOCXByUnitIdAsync','The\x20exchange\x20service\x20is\x20not\x20available','IExchangeService','UNIVER_SHEET','9040xqKEJj','UNIVER_UNKNOWN','importXLSXToUnitIdAsync','exportXLSXByUnitId','219515ACzFbM','105314vBVTSV','importXLSXToUnitId','get','UNIVER_DOC','exportDOCXBySnapshotAsync','exportDOCXBySnapshot','UNIVER_SLIDE'];_0x28d1=function(){return _0x1aaa8b;};return _0x28d1();}
|