@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.
Files changed (48) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +2 -2
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/fa-IR.js +1 -1
  5. package/lib/cjs/locale/fr-FR.js +1 -1
  6. package/lib/cjs/locale/ru-RU.js +1 -1
  7. package/lib/cjs/locale/vi-VN.js +1 -1
  8. package/lib/cjs/locale/zh-CN.js +1 -1
  9. package/lib/cjs/locale/zh-TW.js +1 -1
  10. package/lib/es/facade.js +1 -1
  11. package/lib/es/index.js +2 -2
  12. package/lib/es/locale/en-US.js +1 -1
  13. package/lib/es/locale/fa-IR.js +1 -1
  14. package/lib/es/locale/fr-FR.js +1 -1
  15. package/lib/es/locale/ru-RU.js +1 -1
  16. package/lib/es/locale/vi-VN.js +1 -1
  17. package/lib/es/locale/zh-CN.js +1 -1
  18. package/lib/es/locale/zh-TW.js +1 -1
  19. package/lib/facade.js +1 -1
  20. package/lib/index.css +1 -1
  21. package/lib/index.js +2 -2
  22. package/lib/locale/en-US.js +1 -1
  23. package/lib/locale/fa-IR.js +1 -1
  24. package/lib/locale/fr-FR.js +1 -1
  25. package/lib/locale/ru-RU.js +1 -1
  26. package/lib/locale/vi-VN.js +1 -1
  27. package/lib/locale/zh-CN.js +1 -1
  28. package/lib/locale/zh-TW.js +1 -1
  29. package/lib/types/facade/f-univer.d.ts +28 -0
  30. package/lib/types/locale/en-US.d.ts +21 -2
  31. package/lib/types/locale/fa-IR.d.ts +2 -2
  32. package/lib/types/locale/fr-FR.d.ts +2 -2
  33. package/lib/types/locale/ru-RU.d.ts +2 -2
  34. package/lib/types/locale/vi-VN.d.ts +2 -2
  35. package/lib/types/locale/zh-CN.d.ts +3 -22
  36. package/lib/types/locale/zh-TW.d.ts +2 -2
  37. package/lib/types/services/operate.service.d.ts +2 -0
  38. package/lib/types/services/utils/snapshot.d.ts +12 -18
  39. package/lib/umd/facade.js +1 -1
  40. package/lib/umd/index.js +2 -2
  41. package/lib/umd/locale/en-US.js +1 -1
  42. package/lib/umd/locale/fa-IR.js +1 -1
  43. package/lib/umd/locale/fr-FR.js +1 -1
  44. package/lib/umd/locale/ru-RU.js +1 -1
  45. package/lib/umd/locale/vi-VN.js +1 -1
  46. package/lib/umd/locale/zh-CN.js +1 -1
  47. package/lib/umd/locale/zh-TW.js +1 -1
  48. package/package.json +10 -10
@@ -1 +1 @@
1
- const _0x3ba535=_0x9940;(function(_0x1a46f6,_0x461ecc){const _0xd12d24=_0x9940,_0x50fc3a=_0x1a46f6();while(!![]){try{const _0x3133d3=parseInt(_0xd12d24(0x12c))/0x1*(parseInt(_0xd12d24(0x13f))/0x2)+parseInt(_0xd12d24(0x12f))/0x3+parseInt(_0xd12d24(0x138))/0x4*(parseInt(_0xd12d24(0x136))/0x5)+-parseInt(_0xd12d24(0x141))/0x6+-parseInt(_0xd12d24(0x13d))/0x7*(parseInt(_0xd12d24(0x12d))/0x8)+-parseInt(_0xd12d24(0x139))/0x9+parseInt(_0xd12d24(0x137))/0xa*(-parseInt(_0xd12d24(0x131))/0xb);if(_0x3133d3===_0x461ecc)break;else _0x50fc3a['push'](_0x50fc3a['shift']());}catch(_0x360e04){_0x50fc3a['push'](_0x50fc3a['shift']());}}}(_0x78bb,0xa55f9));function _0x9940(_0x451815,_0x5b8ff9){const _0x78bb8a=_0x78bb();return _0x9940=function(_0x99404f,_0x31010f){_0x99404f=_0x99404f-0x12a;let _0x5925f1=_0x78bb8a[_0x99404f];return _0x5925f1;},_0x9940(_0x451815,_0x5b8ff9);}const e={'exchange':{'file':'File','upload':_0x3ba535(0x134),'download':_0x3ba535(0x135),'uploading':_0x3ba535(0x13a),'uploadSuccess':'File\x20uploaded\x20successfully','uploadSuccessTip':_0x3ba535(0x140),'downloading':_0x3ba535(0x13b),'downloadSuccess':_0x3ba535(0x13e),'unknownMistake':_0x3ba535(0x12a),'networkError':_0x3ba535(0x130),'tooLarge':_0x3ba535(0x13c),'internalError':'Internal\x20unknown\x20error','interrupt':'The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','fileTypeError':_0x3ba535(0x12e),'wait':_0x3ba535(0x12b),'cancel':_0x3ba535(0x133),'uploadAgain':_0x3ba535(0x132)}};function _0x78bb(){const _0x284e96=['Unknown\x20mistake','Please\x20wait...','960109OoUbFV','4168792nAKiQV','Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','3022263NyFwuJ','Network\x20error','330PPWMWc','Upload\x20again','Cancel','Open(File)','Save\x20As','499420nvrLJi','5310cKghMM','40RMojTA','5767119dqFjmf','Uploading','Downloading','Data\x20is\x20too\x20large','14aCxQmK','Download\x20success','2tzzEOA','{0}\x20file(s)\x20uploaded\x20successfully','3540492mXDunU'];_0x78bb=function(){return _0x284e96;};return _0x78bb();}export{e as default};
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};
@@ -1 +1 @@
1
- const _0x7d9938=_0x31bf;function _0xd2c0(){const _0x38b223=['ذخیره\x20به\x20عنوان','دانلود\x20موفقیت\x20آمیز','{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','خطای\x20ناشناخته','1672671eJLlxb','خطای\x20داخلی\x20ناشناخته','139644CUaBMK','در\x20حال\x20دانلود','فایل\x20انتخاب\x20شده\x20[{0}]\x20برای\x20بارگذاری\x20پشتیبانی\x20نمی‌شود','داده\x20خیلی\x20بزرگ\x20است','2ddhAAi','779976SikRFz','بازکردن(فایل)','بارگذاری\x20مجدد','328002hOzhQj','خطای\x20شبکه','لغو','2276504xUVyUA','410SlBZNN','در\x20حال\x20بارگذاری','13232owAJTh','فایل','558879nTedXO'];_0xd2c0=function(){return _0x38b223;};return _0xd2c0();}(function(_0x1c5e59,_0xcc2702){const _0x8517cf=_0x31bf,_0x490d69=_0x1c5e59();while(!![]){try{const _0x26f7a4=parseInt(_0x8517cf(0x202))/0x1+-parseInt(_0x8517cf(0x206))/0x2*(-parseInt(_0x8517cf(0x1fb))/0x3)+-parseInt(_0x8517cf(0x1f9))/0x4*(parseInt(_0x8517cf(0x1f7))/0x5)+parseInt(_0x8517cf(0x1f3))/0x6+parseInt(_0x8517cf(0x200))/0x7+-parseInt(_0x8517cf(0x1f6))/0x8+parseInt(_0x8517cf(0x207))/0x9;if(_0x26f7a4===_0xcc2702)break;else _0x490d69['push'](_0x490d69['shift']());}catch(_0x134e92){_0x490d69['push'](_0x490d69['shift']());}}}(_0xd2c0,0x24b82));function _0x31bf(_0x405a88,_0x570fa5){const _0xd2c036=_0xd2c0();return _0x31bf=function(_0x31bfe0,_0x2c32d2){_0x31bfe0=_0x31bfe0-0x1f3;let _0x5ba02f=_0xd2c036[_0x31bfe0];return _0x5ba02f;},_0x31bf(_0x405a88,_0x570fa5);}const o={'exchange':{'file':_0x7d9938(0x1fa),'upload':_0x7d9938(0x208),'download':_0x7d9938(0x1fc),'uploading':_0x7d9938(0x1f8),'uploadSuccess':'فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','uploadSuccessTip':_0x7d9938(0x1fe),'downloading':_0x7d9938(0x203),'downloadSuccess':_0x7d9938(0x1fd),'unknownMistake':_0x7d9938(0x1ff),'networkError':_0x7d9938(0x1f4),'tooLarge':_0x7d9938(0x205),'internalError':_0x7d9938(0x201),'interrupt':'اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','fileTypeError':_0x7d9938(0x204),'wait':'لطفا\x20صبر\x20کنید...','cancel':_0x7d9938(0x1f5),'uploadAgain':_0x7d9938(0x209)}};export{o as default};
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};
@@ -1 +1 @@
1
- const _0x24c49f=_0x14d0;function _0x14d0(_0x4b12e6,_0x31f141){const _0x2787eb=_0x2787();return _0x14d0=function(_0x14d093,_0x3175d9){_0x14d093=_0x14d093-0x197;let _0x2e0f9c=_0x2787eb[_0x14d093];return _0x2e0f9c;},_0x14d0(_0x4b12e6,_0x31f141);}(function(_0x4da1e7,_0x20da32){const _0x305204=_0x14d0,_0x491b87=_0x4da1e7();while(!![]){try{const _0x3709bd=parseInt(_0x305204(0x19b))/0x1+-parseInt(_0x305204(0x1ab))/0x2*(parseInt(_0x305204(0x1a3))/0x3)+parseInt(_0x305204(0x19e))/0x4*(-parseInt(_0x305204(0x1a1))/0x5)+parseInt(_0x305204(0x1a7))/0x6*(-parseInt(_0x305204(0x1a8))/0x7)+-parseInt(_0x305204(0x199))/0x8*(parseInt(_0x305204(0x1ad))/0x9)+parseInt(_0x305204(0x19a))/0xa+-parseInt(_0x305204(0x1a5))/0xb*(-parseInt(_0x305204(0x19c))/0xc);if(_0x3709bd===_0x20da32)break;else _0x491b87['push'](_0x491b87['shift']());}catch(_0x5af46f){_0x491b87['push'](_0x491b87['shift']());}}}(_0x2787,0xd9dfb));const e={'exchange':{'file':_0x24c49f(0x1a6),'upload':'Ouvrir\x20(Fichier)','download':_0x24c49f(0x1a9),'uploading':_0x24c49f(0x1a0),'uploadSuccess':_0x24c49f(0x198),'uploadSuccessTip':_0x24c49f(0x1ac),'downloading':_0x24c49f(0x1aa),'downloadSuccess':'Téléchargement\x20réussi','unknownMistake':_0x24c49f(0x19d),'networkError':_0x24c49f(0x1a2),'tooLarge':_0x24c49f(0x1a4),'internalError':'Erreur\x20interne\x20inconnue','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':_0x24c49f(0x197),'cancel':_0x24c49f(0x19f),'uploadAgain':'Télécharger\x20à\x20nouveau'}};function _0x2787(){const _0x4f0f4f=['Enregistrer\x20sous','Téléchargement','1739854YoIaOT','{0}\x20fichier(s)\x20téléchargé(s)\x20avec\x20succès','15103521eaCYcB','Veuillez\x20patienter...','Fichier\x20téléchargé\x20avec\x20succès','8FyBNur','497410ORpOaq','1628137lFCxdo','18314928GhoWna','Erreur\x20inconnue','58228GANUhy','Annuler','Téléchargement\x20en\x20cours','195SiNKuZ','Erreur\x20réseau','3jVrrEC','Les\x20données\x20sont\x20trop\x20volumineuses','22rqFuUx','Fichier','24vgugFk','1263738zmruGz'];_0x2787=function(){return _0x4f0f4f;};return _0x2787();}export{e as default};
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};
@@ -1 +1 @@
1
- const _0xdff234=_0x46a7;function _0x46a7(_0x273824,_0x390813){const _0x268c28=_0x268c();return _0x46a7=function(_0x46a7d0,_0x32dbf3){_0x46a7d0=_0x46a7d0-0x160;let _0x116866=_0x268c28[_0x46a7d0];return _0x116866;},_0x46a7(_0x273824,_0x390813);}(function(_0x4f24df,_0x17da91){const _0x414828=_0x46a7,_0x4748b4=_0x4f24df();while(!![]){try{const _0x5dcc45=-parseInt(_0x414828(0x16f))/0x1+-parseInt(_0x414828(0x16c))/0x2*(parseInt(_0x414828(0x162))/0x3)+-parseInt(_0x414828(0x16d))/0x4+-parseInt(_0x414828(0x174))/0x5+parseInt(_0x414828(0x163))/0x6*(parseInt(_0x414828(0x164))/0x7)+parseInt(_0x414828(0x166))/0x8*(parseInt(_0x414828(0x161))/0x9)+-parseInt(_0x414828(0x172))/0xa*(-parseInt(_0x414828(0x16b))/0xb);if(_0x5dcc45===_0x17da91)break;else _0x4748b4['push'](_0x4748b4['shift']());}catch(_0x4f133d){_0x4748b4['push'](_0x4748b4['shift']());}}}(_0x268c,0xf1ac5));const o={'exchange':{'file':_0xdff234(0x16e),'upload':'Открыть(Файл)','download':_0xdff234(0x167),'uploading':_0xdff234(0x175),'uploadSuccess':_0xdff234(0x170),'uploadSuccessTip':_0xdff234(0x16a),'downloading':'Скачивание','downloadSuccess':_0xdff234(0x168),'unknownMistake':_0xdff234(0x165),'networkError':_0xdff234(0x169),'tooLarge':_0xdff234(0x173),'internalError':_0xdff234(0x171),'interrupt':'Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','fileTypeError':'Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','wait':_0xdff234(0x176),'cancel':'Отмена','uploadAgain':_0xdff234(0x160)}};function _0x268c(){const _0x3095c6=['Данные\x20слишком\x20большие','7088500ANJkpQ','Загрузка','Пожалуйста,\x20подождите...','Загрузить\x20снова','459YhrdBu','3AedpvN','462Wttugn','154833KwEuQc','Неизвестная\x20ошибка','14424LLsMFB','Сохранить\x20как','Скачивание\x20успешно','Сетевая\x20ошибка','{0}\x20файл(ов)\x20успешно\x20загружен(о)','319YkxGAJ','3858686ZQaRHN','4660332pAiyks','Файл','592318CFidQH','Файл\x20успешно\x20загружен','Внутренняя\x20неизвестная\x20ошибка','1482490zRPUcF'];_0x268c=function(){return _0x3095c6;};return _0x268c();}export{o as default};
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();}
@@ -1 +1 @@
1
- function _0x6409(){const _0x40a317=['Lưu\x20dưới\x20dạng','Luồng\x20dữ\x20liệu\x20quá\x20lớn','Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','Đang\x20tải\x20lên','1325384EYOLkS','3686916nJXJcw','1013128gbVKeS','5tRpFyh','2yhVQvI','Mở\x20(Tệp)','9162306PPMcTK','Tải\x20lên\x20lại','877825hvVmLj','1183070kNIsnd','Hủy\x20bỏ','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','Tải\x20lên\x20tệp\x20thành\x20công','Tệp','3673930bChnrV','Lỗi\x20mạng','Vui\x20lòng\x20đợi...','36svXgFd'];_0x6409=function(){return _0x40a317;};return _0x6409();}const _0x3d18a5=_0x526c;(function(_0x4eb225,_0x3697db){const _0x4fb385=_0x526c,_0x34cd4e=_0x4eb225();while(!![]){try{const _0x2d1e97=parseInt(_0x4fb385(0x157))/0x1+-parseInt(_0x4fb385(0x153))/0x2*(parseInt(_0x4fb385(0x166))/0x3)+-parseInt(_0x4fb385(0x165))/0x4*(parseInt(_0x4fb385(0x152))/0x5)+parseInt(_0x4fb385(0x155))/0x6+-parseInt(_0x4fb385(0x158))/0x7+-parseInt(_0x4fb385(0x151))/0x8*(-parseInt(_0x4fb385(0x160))/0x9)+-parseInt(_0x4fb385(0x15d))/0xa;if(_0x2d1e97===_0x3697db)break;else _0x34cd4e['push'](_0x34cd4e['shift']());}catch(_0x2b51ab){_0x34cd4e['push'](_0x34cd4e['shift']());}}}(_0x6409,0xc6e7f));function _0x526c(_0x5685c8,_0x5772cb){const _0x6409e1=_0x6409();return _0x526c=function(_0x526c1a,_0x55fc5b){_0x526c1a=_0x526c1a-0x151;let _0x1cda57=_0x6409e1[_0x526c1a];return _0x1cda57;},_0x526c(_0x5685c8,_0x5772cb);}const n={'exchange':{'file':_0x3d18a5(0x15c),'upload':_0x3d18a5(0x154),'download':_0x3d18a5(0x161),'uploading':_0x3d18a5(0x164),'uploadSuccess':_0x3d18a5(0x15b),'uploadSuccessTip':_0x3d18a5(0x15a),'downloading':'Đang\x20tải\x20xuống','downloadSuccess':'Tải\x20xuống\x20thành\x20công','unknownMistake':'Lỗi\x20không\x20xác\x20định','networkError':_0x3d18a5(0x15e),'tooLarge':_0x3d18a5(0x162),'internalError':'Lỗi\x20không\x20xác\x20định\x20bên\x20trong','interrupt':'Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','fileTypeError':_0x3d18a5(0x163),'wait':_0x3d18a5(0x15f),'cancel':_0x3d18a5(0x159),'uploadAgain':_0x3d18a5(0x156)}};export{n as default};
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};
@@ -1 +1 @@
1
- function _0x11da(_0x14a457,_0x43da57){const _0x30dc9b=_0x30dc();return _0x11da=function(_0x11da29,_0x458c45){_0x11da29=_0x11da29-0x10e;let _0x28deba=_0x30dc9b[_0x11da29];return _0x28deba;},_0x11da(_0x14a457,_0x43da57);}const _0x7f18c3=_0x11da;(function(_0x1a7651,_0x3dff9b){const _0x45392b=_0x11da,_0x22bbbf=_0x1a7651();while(!![]){try{const _0x3200f3=-parseInt(_0x45392b(0x11d))/0x1+parseInt(_0x45392b(0x112))/0x2+parseInt(_0x45392b(0x10e))/0x3+-parseInt(_0x45392b(0x124))/0x4*(parseInt(_0x45392b(0x116))/0x5)+parseInt(_0x45392b(0x117))/0x6*(parseInt(_0x45392b(0x110))/0x7)+parseInt(_0x45392b(0x10f))/0x8+-parseInt(_0x45392b(0x114))/0x9*(parseInt(_0x45392b(0x11a))/0xa);if(_0x3200f3===_0x3dff9b)break;else _0x22bbbf['push'](_0x22bbbf['shift']());}catch(_0x5e0494){_0x22bbbf['push'](_0x22bbbf['shift']());}}}(_0x30dc,0x59abd));const o={'exchange':{'file':'文件','upload':_0x7f18c3(0x121),'download':_0x7f18c3(0x119),'uploading':_0x7f18c3(0x122),'uploadSuccess':'文件上传成功','uploadSuccessTip':_0x7f18c3(0x118),'downloading':_0x7f18c3(0x115),'downloadSuccess':_0x7f18c3(0x123),'unknownMistake':_0x7f18c3(0x111),'networkError':_0x7f18c3(0x11e),'tooLarge':_0x7f18c3(0x11b),'internalError':_0x7f18c3(0x11c),'interrupt':_0x7f18c3(0x120),'fileTypeError':'所选文件\x20[{0}]\x20不支持上传','wait':_0x7f18c3(0x11f),'cancel':'取消','uploadAgain':_0x7f18c3(0x113)}};function _0x30dc(){const _0x530254=['上传中','下载成功','710964tFeGgP','1436049kGsThm','719576OGQlei','2704226gYNKZE','未知错误','1179340byKOEF','再次上传','5228019eqSgXL','下载中','15tdnmXR','6QnJviY','{0}个文件上传成功','另存为','10HxKCKw','数据流过大','内部未知错误','63211neoABN','网络异常','请稍等...','网络连接中断,文件上传失败','打开(文件)'];_0x30dc=function(){return _0x530254;};return _0x30dc();}export{o as default};
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};
@@ -1 +1 @@
1
- const _0x390e5a=_0x1a0b;function _0x1a0b(_0x3f8c37,_0x1b7830){const _0x4798c0=_0x4798();return _0x1a0b=function(_0x1a0b02,_0x5ac6fe){_0x1a0b02=_0x1a0b02-0x15c;let _0x1d8b31=_0x4798c0[_0x1a0b02];return _0x1d8b31;},_0x1a0b(_0x3f8c37,_0x1b7830);}function _0x4798(){const _0xdaacec=['{0}個檔案上傳成功','所選檔案\x20[{0}]\x20不支援上傳','開啟(檔案)','1096370eZQRcu','634059TjTpZR','342FTvltM','上傳中','內部未知錯誤','26255nhspeU','再次上傳','網路連線中斷,檔案上傳失敗','10LuVefv','網路異常','48294KUmCNx','842104ZFTMkv','請稍等...','242592GeYwQA','624444VDPUEH','48JLTRga','下載成功','7phOfXF','未知錯誤','檔案上傳成功','資料流過大'];_0x4798=function(){return _0xdaacec;};return _0x4798();}(function(_0x3018db,_0x3634c0){const _0x100bed=_0x1a0b,_0x2d47ca=_0x3018db();while(!![]){try{const _0x314360=-parseInt(_0x100bed(0x164))/0x1+-parseInt(_0x100bed(0x165))/0x2+-parseInt(_0x100bed(0x161))/0x3*(-parseInt(_0x100bed(0x166))/0x4)+-parseInt(_0x100bed(0x15c))/0x5*(-parseInt(_0x100bed(0x171))/0x6)+-parseInt(_0x100bed(0x168))/0x7*(-parseInt(_0x100bed(0x162))/0x8)+-parseInt(_0x100bed(0x170))/0x9*(-parseInt(_0x100bed(0x15f))/0xa)+parseInt(_0x100bed(0x16f))/0xb;if(_0x314360===_0x3634c0)break;else _0x2d47ca['push'](_0x2d47ca['shift']());}catch(_0x5cc6e6){_0x2d47ca['push'](_0x2d47ca['shift']());}}}(_0x4798,0x3403d));const o={'exchange':{'file':'檔案','upload':_0x390e5a(0x16e),'download':'另存為','uploading':_0x390e5a(0x172),'uploadSuccess':_0x390e5a(0x16a),'uploadSuccessTip':_0x390e5a(0x16c),'downloading':'下載中','downloadSuccess':_0x390e5a(0x167),'unknownMistake':_0x390e5a(0x169),'networkError':_0x390e5a(0x160),'tooLarge':_0x390e5a(0x16b),'internalError':_0x390e5a(0x173),'interrupt':_0x390e5a(0x15e),'fileTypeError':_0x390e5a(0x16d),'wait':_0x390e5a(0x163),'cancel':'取消','uploadAgain':_0x390e5a(0x15d)}};export{o as default};
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
- import { default as zhCN } from './zh-CN';
2
- declare const locale: typeof zhCN;
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 zhCN } from './zh-CN';
2
- declare const locale: typeof zhCN;
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 zhCN } from './zh-CN';
2
- declare const locale: typeof zhCN;
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 zhCN } from './zh-CN';
2
- declare const locale: typeof zhCN;
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 zhCN } from './zh-CN';
2
- declare const locale: typeof zhCN;
1
+ import { default as enUS } from './en-US';
2
+ declare const locale: typeof enUS;
3
3
  export default locale;
@@ -1,22 +1,3 @@
1
- declare const locales: {
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
- };
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 zhCN } from './zh-CN';
2
- declare const locale: typeof zhCN;
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 { ICopyFileMetaRequest, ICopyFileMetaResponse, IDocumentMeta, IFetchMissingChangesetsRequest, IFetchMissingChangesetsResponse, IGetDeserializedSheetBlockResponse, IGetLatestCsReqIdBySidRequest, IGetLatestCsReqIdBySidResponse, IGetResourcesRequest, IGetResourcesResponse, IGetSheetBlockRequest, IGetSheetBlockResponse, IGetUnitOnRevRequest, IGetUnitOnRevResponse, ISaveChangesetRequest, ISaveChangesetResponse, ISaveSheetBlockRequest, ISaveSheetBlockResponse, ISaveSnapshotRequest, ISaveSnapshotResponse, ISheetBlock, ISnapshot, IWorkbookMeta, IWorksheetMeta } from '@univerjs/protocol';
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
- /** Load snapshot from a database. */
66
- getUnitOnRev(context: ILogContext, params: IGetUnitOnRevRequest): Promise<IGetUnitOnRevResponse>;
67
- /** Load sheet block from a database. */
68
- getSheetBlock(context: ILogContext, params: IGetSheetBlockRequest): Promise<IGetSheetBlockResponse>;
69
- /** Load deserialized sheet block from a database. */
70
- getDeserializedSheetBlock(context: ILogContext, params: IGetSheetBlockRequest): Promise<IGetDeserializedSheetBlockResponse>;
71
- /** Fetch missing changeset */
72
- fetchMissingChangesets(context: ILogContext, params: IFetchMissingChangesetsRequest): Promise<IFetchMissingChangesetsResponse>;
73
- getResourcesRequest(context: ILogContext, params: IGetResourcesRequest): Promise<IGetResourcesResponse>;
74
- /** Save snapshot to a database. */
75
- saveSnapshot(context: ILogContext, params: ISaveSnapshotRequest): Promise<ISaveSnapshotResponse>;
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(_0x19b645,_0x42924a){const _0x5b394b=_0x2805,_0x83f3d3=_0x19b645();while(!![]){try{const _0x53db19=parseInt(_0x5b394b(0x1de))/0x1+parseInt(_0x5b394b(0x1d5))/0x2+parseInt(_0x5b394b(0x1e1))/0x3+-parseInt(_0x5b394b(0x1c9))/0x4*(-parseInt(_0x5b394b(0x1c7))/0x5)+-parseInt(_0x5b394b(0x1d9))/0x6+-parseInt(_0x5b394b(0x1cc))/0x7+-parseInt(_0x5b394b(0x1cb))/0x8*(parseInt(_0x5b394b(0x1e6))/0x9);if(_0x53db19===_0x42924a)break;else _0x83f3d3['push'](_0x83f3d3['shift']());}catch(_0x12f364){_0x83f3d3['push'](_0x83f3d3['shift']());}}}(_0x5392,0x58c1c),function(_0x2d0024,_0x23366c){const _0x31d4b5=_0x2805;typeof exports==_0x31d4b5(0x1dd)&&typeof module<'u'?_0x23366c(require('@univerjs-pro/exchange-client'),require(_0x31d4b5(0x1db))):typeof define==_0x31d4b5(0x1cd)&&define[_0x31d4b5(0x1e0)]?define(['@univerjs-pro/exchange-client',_0x31d4b5(0x1db)],_0x23366c):(_0x2d0024=typeof globalThis<'u'?globalThis:_0x2d0024||self,_0x23366c(_0x2d0024['UniverProExchangeClient'],_0x2d0024[_0x31d4b5(0x1d3)]));}(this,function(_0x4c1af9,_0x208007){'use strict';const _0x1b6998=_0x2805;var _0x2351bb=(_0x5263d6=>(_0x5263d6[_0x5263d6[_0x1b6998(0x1e7)]=0x0]='UNIVER_UNKNOWN',_0x5263d6[_0x5263d6['UNIVER_DOC']=0x1]='UNIVER_DOC',_0x5263d6[_0x5263d6['UNIVER_SHEET']=0x2]='UNIVER_SHEET',_0x5263d6[_0x5263d6[_0x1b6998(0x1d2)]=0x3]=_0x1b6998(0x1d2),_0x5263d6[_0x5263d6[_0x1b6998(0x1e4)]=0x4]=_0x1b6998(0x1e4),_0x5263d6[_0x5263d6[_0x1b6998(0x1e2)]=-0x1]=_0x1b6998(0x1e2),_0x5263d6))(_0x2351bb||{});class _0x263ff3 extends _0x208007[_0x1b6998(0x1e5)]{async[_0x1b6998(0x1df)](_0x3b3ae3){const _0x36791e=_0x1b6998;return this[_0x36791e(0x1ca)](_0x3b3ae3);}async[_0x1b6998(0x1ca)](_0x16c030){const _0x4962cf=_0x1b6998,_0x15288b=this['_injector'][_0x4962cf(0x1e9)](_0x4c1af9[_0x4962cf(0x1c6)]);if(!_0x15288b)throw new Error(_0x4962cf(0x1e3));return _0x15288b[_0x4962cf(0x1eb)](_0x16c030,_0x2351bb[_0x4962cf(0x1d8)]);}async['importXLSXToSnapshot'](_0x4b51dd){const _0x1968a5=_0x1b6998;return this[_0x1968a5(0x1d4)](_0x4b51dd);}async[_0x1b6998(0x1d4)](_0x1fec3b){const _0x4b5f0d=_0x1b6998,_0x3175f8=this[_0x4b5f0d(0x1d7)][_0x4b5f0d(0x1e9)](_0x4c1af9[_0x4b5f0d(0x1c6)]);if(!_0x3175f8)throw new Error(_0x4b5f0d(0x1e3));return _0x3175f8['importXLSXToSnapshot'](_0x1fec3b);}async['exportXLSXByUnitId'](_0x3ebd2b){const _0x599a51=_0x1b6998;return this[_0x599a51(0x1ce)](_0x3ebd2b);}async['exportXLSXByUnitIdAsync'](_0x321666){const _0xf8aeef=_0x1b6998,_0x5d105c=this['_injector']['get'](_0x4c1af9[_0xf8aeef(0x1c6)]);if(!_0x5d105c)throw new Error(_0xf8aeef(0x1e3));return _0x5d105c[_0xf8aeef(0x1ea)](_0x321666);}async['exportXLSXBySnapshot'](_0x569db4){const _0x18dbcd=_0x1b6998;return this[_0x18dbcd(0x1dc)](_0x569db4);}async['exportXLSXBySnapshotAsync'](_0x9bcf85){const _0x241f8c=_0x1b6998,_0x322b51=this[_0x241f8c(0x1d7)]['get'](_0x4c1af9[_0x241f8c(0x1c6)]);if(!_0x322b51)throw new Error(_0x241f8c(0x1e3));return _0x322b51[_0x241f8c(0x1d0)](_0x9bcf85);}async[_0x1b6998(0x1e8)](_0xc63ae4){const _0xd1a09a=_0x1b6998;return this[_0xd1a09a(0x1da)](_0xc63ae4);}async[_0x1b6998(0x1da)](_0xfc0377){const _0x358678=_0x1b6998,_0xbba2fe=this[_0x358678(0x1d7)][_0x358678(0x1e9)](_0x4c1af9['IExchangeService']);if(!_0xbba2fe)throw new Error(_0x358678(0x1e3));return _0xbba2fe[_0x358678(0x1eb)](_0xfc0377,_0x2351bb[_0x358678(0x1d1)]);}async['importDOCXToSnapshot'](_0x356e36){const _0xb65505=_0x1b6998;return this[_0xb65505(0x1cf)](_0x356e36);}async[_0x1b6998(0x1cf)](_0x1d6c2f){const _0x1d5a77=_0x1b6998,_0x4fe4e2=this[_0x1d5a77(0x1d7)]['get'](_0x4c1af9[_0x1d5a77(0x1c6)]);if(!_0x4fe4e2)throw new Error(_0x1d5a77(0x1e3));return _0x4fe4e2[_0x1d5a77(0x1c8)](_0x1d6c2f);}}_0x208007[_0x1b6998(0x1e5)][_0x1b6998(0x1d6)](_0x263ff3);}));function _0x2805(_0x2083c3,_0x312b3b){const _0x539228=_0x5392();return _0x2805=function(_0x280590,_0x244fe9){_0x280590=_0x280590-0x1c6;let _0x737c9f=_0x539228[_0x280590];return _0x737c9f;},_0x2805(_0x2083c3,_0x312b3b);}function _0x5392(){const _0x19f846=['3162972lvsjTN','importDOCXToUnitIdAsync','@univerjs/core/facade','exportXLSXBySnapshotAsync','object','344652gxRgrZ','importXLSXToUnitId','amd','814086JQuZVY','UNRECOGNIZED','The\x20exchange\x20service\x20is\x20not\x20available','UNIVER_PROJECT','FUniver','261495Buxovo','UNIVER_UNKNOWN','importDOCXToUnitId','get','exportXLSXByUnitId','importFileToUnitId','IExchangeService','100IJOoBC','importDOCXToSnapshot','26036NNfXXx','importXLSXToUnitIdAsync','72zGmzEM','120526lsltME','function','exportXLSXByUnitIdAsync','importDOCXToSnapshotAsync','exportXLSXBySnapshot','UNIVER_DOC','UNIVER_SLIDE','UniverCoreFacade','importXLSXToSnapshotAsync','846458cAujcf','extend','_injector','UNIVER_SHEET'];_0x5392=function(){return _0x19f846;};return _0x5392();}
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();}