@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.
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 +9 -9
@@ -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 _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};
@@ -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
+ 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};
@@ -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
+ 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};
@@ -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 _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();}
@@ -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
+ 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};
@@ -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 _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();}
@@ -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 _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
- 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(_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();}