@univerjs-pro/exchange-client 0.7.0 → 0.8.0-nightly.202505261607

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 _0xe3719f=_0x1c2c;(function(_0x48c6cc,_0x13d136){const _0x2a0473=_0x1c2c,_0x20fcee=_0x48c6cc();while(!![]){try{const _0x41f06f=parseInt(_0x2a0473(0x94))/0x1+-parseInt(_0x2a0473(0xa3))/0x2*(parseInt(_0x2a0473(0x96))/0x3)+parseInt(_0x2a0473(0x9b))/0x4*(-parseInt(_0x2a0473(0x9d))/0x5)+parseInt(_0x2a0473(0x90))/0x6*(parseInt(_0x2a0473(0x9f))/0x7)+-parseInt(_0x2a0473(0x8d))/0x8*(parseInt(_0x2a0473(0xa2))/0x9)+parseInt(_0x2a0473(0x99))/0xa+parseInt(_0x2a0473(0x93))/0xb;if(_0x41f06f===_0x13d136)break;else _0x20fcee['push'](_0x20fcee['shift']());}catch(_0x271aca){_0x20fcee['push'](_0x20fcee['shift']());}}}(_0x5ecd,0x99ebf));function _0x1c2c(_0x48415e,_0x138784){const _0x5ecd4c=_0x5ecd();return _0x1c2c=function(_0x1c2c56,_0xc39628){_0x1c2c56=_0x1c2c56-0x8c;let _0x57cde3=_0x5ecd4c[_0x1c2c56];return _0x57cde3;},_0x1c2c(_0x48415e,_0x138784);}function _0x5ecd(){const _0x1bcdbd=['Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','213510QkVTiH','Downloading','203UWZAva','Save\x20As','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','2175102fmydkY','425910acjoKr','Upload\x20again','32xiUwxq','Please\x20wait...','Internal\x20unknown\x20error','217614XYYomg','Data\x20is\x20too\x20large','File','5320260nqRqBz','984678IybdNn','Open(File)','15LnNPOR','File\x20uploaded\x20successfully','Cancel','2699170gHCcem','{0}\x20file(s)\x20uploaded\x20successfully','12mbQpDw'];_0x5ecd=function(){return _0x1bcdbd;};return _0x5ecd();}const e={'exchange':{'file':_0xe3719f(0x92),'upload':_0xe3719f(0x95),'download':_0xe3719f(0xa0),'uploading':'Uploading','uploadSuccess':_0xe3719f(0x97),'uploadSuccessTip':_0xe3719f(0x9a),'downloading':_0xe3719f(0x9e),'downloadSuccess':'Download\x20success','unknownMistake':'Unknown\x20mistake','networkError':'Network\x20error','tooLarge':_0xe3719f(0x91),'internalError':_0xe3719f(0x8f),'interrupt':_0xe3719f(0xa1),'fileTypeError':_0xe3719f(0x9c),'wait':_0xe3719f(0x8e),'cancel':_0xe3719f(0x98),'uploadAgain':_0xe3719f(0x8c)}};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 _0x20f08c=_0x5901;(function(_0x32d3ad,_0x219a78){const _0x36dd99=_0x5901,_0x29a604=_0x32d3ad();while(!![]){try{const _0x42ab1a=parseInt(_0x36dd99(0x1f8))/0x1+-parseInt(_0x36dd99(0x1ee))/0x2+parseInt(_0x36dd99(0x1e9))/0x3+parseInt(_0x36dd99(0x1eb))/0x4+-parseInt(_0x36dd99(0x1f9))/0x5+-parseInt(_0x36dd99(0x1ea))/0x6*(-parseInt(_0x36dd99(0x1ec))/0x7)+parseInt(_0x36dd99(0x1fc))/0x8*(parseInt(_0x36dd99(0x1f6))/0x9);if(_0x42ab1a===_0x219a78)break;else _0x29a604['push'](_0x29a604['shift']());}catch(_0x18de0e){_0x29a604['push'](_0x29a604['shift']());}}}(_0xfcb3,0x94dbf));const o={'exchange':{'file':_0x20f08c(0x1fa),'upload':'بازکردن(فایل)','download':'ذخیره\x20به\x20عنوان','uploading':'در\x20حال\x20بارگذاری','uploadSuccess':_0x20f08c(0x1f2),'uploadSuccessTip':_0x20f08c(0x1f4),'downloading':_0x20f08c(0x1f3),'downloadSuccess':_0x20f08c(0x1f0),'unknownMistake':'خطای\x20ناشناخته','networkError':_0x20f08c(0x1ed),'tooLarge':_0x20f08c(0x1f1),'internalError':'خطای\x20داخلی\x20ناشناخته','interrupt':_0x20f08c(0x1e8),'fileTypeError':_0x20f08c(0x1f5),'wait':_0x20f08c(0x1f7),'cancel':_0x20f08c(0x1ef),'uploadAgain':_0x20f08c(0x1fb)}};function _0x5901(_0x393229,_0x5e4627){const _0xfcb3b1=_0xfcb3();return _0x5901=function(_0x59012f,_0x3e230e){_0x59012f=_0x59012f-0x1e8;let _0x244c17=_0xfcb3b1[_0x59012f];return _0x244c17;},_0x5901(_0x393229,_0x5e4627);}function _0xfcb3(){const _0x200cc1=['7GNGWEA','خطای\x20شبکه','2421742VxfJuz','لغو','دانلود\x20موفقیت\x20آمیز','داده\x20خیلی\x20بزرگ\x20است','فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','در\x20حال\x20دانلود','{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','فایل\x20انتخاب\x20شده\x20[{0}]\x20برای\x20بارگذاری\x20پشتیبانی\x20نمی‌شود','97506fQjnKe','لطفا\x20صبر\x20کنید...','4920WdXlec','4676540XOTthQ','فایل','بارگذاری\x20مجدد','736ysjfGc','اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','1553988JVnayq','5613594XCwVVD','1202652jvaKNl'];_0xfcb3=function(){return _0x200cc1;};return _0xfcb3();}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 _0x2f91(){const _0x576474=['9396592hthTeB','849802JaJqlP','Téléchargement\x20en\x20cours','Veuillez\x20patienter...','Erreur\x20interne\x20inconnue','37593xccNzD','2857030StAMsn','1792931eWKoMO','Annuler','Ouvrir\x20(Fichier)','Téléchargement\x20réussi','Erreur\x20inconnue','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','Téléchargement','Fichier','20uLGgXU','3047288JIgEFv','Les\x20données\x20sont\x20trop\x20volumineuses','1250367Hxyzhi','6YwfPdT','2xjGMit','Télécharger\x20à\x20nouveau','La\x20connexion\x20réseau\x20a\x20été\x20interrompue\x20et\x20le\x20téléchargement\x20du\x20fichier\x20a\x20échoué'];_0x2f91=function(){return _0x576474;};return _0x2f91();}const _0x13dd2c=_0x5f38;function _0x5f38(_0x47c419,_0x1d81b0){const _0x2f91e4=_0x2f91();return _0x5f38=function(_0x5f38d9,_0xe98ca){_0x5f38d9=_0x5f38d9-0xff;let _0x3ff64e=_0x2f91e4[_0x5f38d9];return _0x3ff64e;},_0x5f38(_0x47c419,_0x1d81b0);}(function(_0x15f574,_0x3bbd3c){const _0x191d9f=_0x5f38,_0x36e515=_0x15f574();while(!![]){try{const _0x5d38dd=parseInt(_0x191d9f(0x10b))/0x1*(-parseInt(_0x191d9f(0x10f))/0x2)+parseInt(_0x191d9f(0x109))/0x3+-parseInt(_0x191d9f(0x107))/0x4+parseInt(_0x191d9f(0x114))/0x5+parseInt(_0x191d9f(0x10a))/0x6*(parseInt(_0x191d9f(0x115))/0x7)+parseInt(_0x191d9f(0x10e))/0x8+-parseInt(_0x191d9f(0x113))/0x9*(parseInt(_0x191d9f(0x106))/0xa);if(_0x5d38dd===_0x3bbd3c)break;else _0x36e515['push'](_0x36e515['shift']());}catch(_0x1ae091){_0x36e515['push'](_0x36e515['shift']());}}}(_0x2f91,0xc30cc));const e={'exchange':{'file':_0x13dd2c(0x105),'upload':_0x13dd2c(0xff),'download':'Enregistrer\x20sous','uploading':_0x13dd2c(0x110),'uploadSuccess':'Fichier\x20téléchargé\x20avec\x20succès','uploadSuccessTip':_0x13dd2c(0x103),'downloading':_0x13dd2c(0x104),'downloadSuccess':_0x13dd2c(0x100),'unknownMistake':_0x13dd2c(0x101),'networkError':'Erreur\x20réseau','tooLarge':_0x13dd2c(0x108),'internalError':_0x13dd2c(0x112),'interrupt':_0x13dd2c(0x10d),'fileTypeError':_0x13dd2c(0x102),'wait':_0x13dd2c(0x111),'cancel':_0x13dd2c(0x116),'uploadAgain':_0x13dd2c(0x10c)}};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 _0x298885=_0x4fcd;function _0x4fcd(_0x3168f4,_0x1f2672){const _0x1d4fe3=_0x1d4f();return _0x4fcd=function(_0x4fcdde,_0x51031c){_0x4fcdde=_0x4fcdde-0x158;let _0x513f88=_0x1d4fe3[_0x4fcdde];return _0x513f88;},_0x4fcd(_0x3168f4,_0x1f2672);}(function(_0x4afcac,_0x34be58){const _0x41e338=_0x4fcd,_0xd5392a=_0x4afcac();while(!![]){try{const _0x1b7a39=-parseInt(_0x41e338(0x164))/0x1+-parseInt(_0x41e338(0x168))/0x2+parseInt(_0x41e338(0x16a))/0x3*(-parseInt(_0x41e338(0x163))/0x4)+-parseInt(_0x41e338(0x15a))/0x5+parseInt(_0x41e338(0x162))/0x6*(parseInt(_0x41e338(0x169))/0x7)+parseInt(_0x41e338(0x15f))/0x8+-parseInt(_0x41e338(0x167))/0x9*(-parseInt(_0x41e338(0x16b))/0xa);if(_0x1b7a39===_0x34be58)break;else _0xd5392a['push'](_0xd5392a['shift']());}catch(_0x240036){_0xd5392a['push'](_0xd5392a['shift']());}}}(_0x1d4f,0x30b11));const o={'exchange':{'file':_0x298885(0x16c),'upload':_0x298885(0x15d),'download':_0x298885(0x166),'uploading':_0x298885(0x165),'uploadSuccess':'Файл\x20успешно\x20загружен','uploadSuccessTip':_0x298885(0x15c),'downloading':_0x298885(0x161),'downloadSuccess':'Скачивание\x20успешно','unknownMistake':_0x298885(0x15b),'networkError':_0x298885(0x16d),'tooLarge':_0x298885(0x160),'internalError':_0x298885(0x15e),'interrupt':'Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','fileTypeError':_0x298885(0x158),'wait':'Пожалуйста,\x20подождите...','cancel':'Отмена','uploadAgain':_0x298885(0x159)}};function _0x1d4f(){const _0x21f2c9=['974439uPKLkj','35804KNIfzI','84LceBWs','959187qcGXqC','90toXdUs','Файл','Сетевая\x20ошибка','Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','Загрузить\x20снова','1709360REvZgL','Неизвестная\x20ошибка','{0}\x20файл(ов)\x20успешно\x20загружен(о)','Открыть(Файл)','Внутренняя\x20неизвестная\x20ошибка','414584OSlhcD','Данные\x20слишком\x20большие','Скачивание','3168zUOurM','4QTbEeD','153654DRafrH','Загрузка','Сохранить\x20как'];_0x1d4f=function(){return _0x21f2c9;};return _0x1d4f();}export{o as default};
@@ -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 _0x2d6ba9=_0x20f4;function _0x3762(){const _0x4161be=['42nZvLRN','Tải\x20xuống\x20thành\x20công','Tải\x20lên\x20lại','5carFDM','575208xCbjxI','Tệp','Lỗi\x20không\x20xác\x20định','Tải\x20lên\x20tệp\x20thành\x20công','13khsJrd','1370826FuEqOS','1685192pqiCgY','Hủy\x20bỏ','Vui\x20lòng\x20đợi...','660SsUViu','Luồng\x20dữ\x20liệu\x20quá\x20lớn','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','3039212gcssef','81582ntyNaB','Lỗi\x20mạng','Lỗi\x20không\x20xác\x20định\x20bên\x20trong','2600994lKccGx','Đang\x20tải\x20lên','36938gkdARz'];_0x3762=function(){return _0x4161be;};return _0x3762();}(function(_0xbc5d65,_0x349796){const _0x1bdad5=_0x20f4,_0x59af2f=_0xbc5d65();while(!![]){try{const _0x48cdc8=parseInt(_0x1bdad5(0x1c1))/0x1*(-parseInt(_0x1bdad5(0x1b3))/0x2)+-parseInt(_0x1bdad5(0x1c2))/0x3+parseInt(_0x1bdad5(0x1b2))/0x4+-parseInt(_0x1bdad5(0x1bc))/0x5*(parseInt(_0x1bdad5(0x1b6))/0x6)+-parseInt(_0x1bdad5(0x1b9))/0x7*(-parseInt(_0x1bdad5(0x1c3))/0x8)+parseInt(_0x1bdad5(0x1bd))/0x9+-parseInt(_0x1bdad5(0x1ae))/0xa*(-parseInt(_0x1bdad5(0x1b8))/0xb);if(_0x48cdc8===_0x349796)break;else _0x59af2f['push'](_0x59af2f['shift']());}catch(_0x2dbe62){_0x59af2f['push'](_0x59af2f['shift']());}}}(_0x3762,0xd8ec1));const n={'exchange':{'file':_0x2d6ba9(0x1be),'upload':'Mở\x20(Tệp)','download':'Lưu\x20dưới\x20dạng','uploading':_0x2d6ba9(0x1b7),'uploadSuccess':_0x2d6ba9(0x1c0),'uploadSuccessTip':_0x2d6ba9(0x1b0),'downloading':'Đang\x20tải\x20xuống','downloadSuccess':_0x2d6ba9(0x1ba),'unknownMistake':_0x2d6ba9(0x1bf),'networkError':_0x2d6ba9(0x1b4),'tooLarge':_0x2d6ba9(0x1af),'internalError':_0x2d6ba9(0x1b5),'interrupt':'Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','fileTypeError':_0x2d6ba9(0x1b1),'wait':_0x2d6ba9(0x1ad),'cancel':_0x2d6ba9(0x1c4),'uploadAgain':_0x2d6ba9(0x1bb)}};function _0x20f4(_0x34df9c,_0xc4fe2c){const _0x3762ea=_0x3762();return _0x20f4=function(_0x20f439,_0x3f621b){_0x20f439=_0x20f439-0x1ad;let _0xafea12=_0x3762ea[_0x20f439];return _0xafea12;},_0x20f4(_0x34df9c,_0xc4fe2c);}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
+ function _0x3462(_0x12c93b,_0x224901){const _0x35ebad=_0x35eb();return _0x3462=function(_0x346265,_0x35bd07){_0x346265=_0x346265-0x1e0;let _0x2bc9ab=_0x35ebad[_0x346265];return _0x2bc9ab;},_0x3462(_0x12c93b,_0x224901);}const _0x2fdeef=_0x3462;function _0x35eb(){const _0x272be6=['417345OonsYg','18250vKCNds','490365TpktTx','60816vXHvfA','1710ZWccWR','上传中','文件上传成功','4tUWvdV','8144PJkQpU','{0}个文件上传成功','另存为','网络连接中断,文件上传失败','17oqceAg','84486ONphrB','打开(文件)','下载中','1866630vscGSl','内部未知错误'];_0x35eb=function(){return _0x272be6;};return _0x35eb();}(function(_0xcdc333,_0x379a10){const _0x75e90=_0x3462,_0x1387c4=_0xcdc333();while(!![]){try{const _0x5a508b=-parseInt(_0x75e90(0x1e1))/0x1*(-parseInt(_0x75e90(0x1e8))/0x2)+-parseInt(_0x75e90(0x1e7))/0x3*(parseInt(_0x75e90(0x1ee))/0x4)+parseInt(_0x75e90(0x1e9))/0x5+-parseInt(_0x75e90(0x1e2))/0x6+parseInt(_0x75e90(0x1ea))/0x7+parseInt(_0x75e90(0x1ef))/0x8*(-parseInt(_0x75e90(0x1eb))/0x9)+parseInt(_0x75e90(0x1e5))/0xa;if(_0x5a508b===_0x379a10)break;else _0x1387c4['push'](_0x1387c4['shift']());}catch(_0x592db0){_0x1387c4['push'](_0x1387c4['shift']());}}}(_0x35eb,0x18e2d));const o={'exchange':{'file':'文件','upload':_0x2fdeef(0x1e3),'download':_0x2fdeef(0x1f1),'uploading':_0x2fdeef(0x1ec),'uploadSuccess':_0x2fdeef(0x1ed),'uploadSuccessTip':_0x2fdeef(0x1f0),'downloading':_0x2fdeef(0x1e4),'downloadSuccess':'下载成功','unknownMistake':'未知错误','networkError':'网络异常','tooLarge':'数据流过大','internalError':_0x2fdeef(0x1e6),'interrupt':_0x2fdeef(0x1e0),'fileTypeError':'所选文件\x20[{0}]\x20不支持上传','wait':'请稍等...','cancel':'取消','uploadAgain':'再次上传'}};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 _0x163f34=_0x560c;function _0x560c(_0xc39b98,_0x3cbf19){const _0x2d4f45=_0x2d4f();return _0x560c=function(_0x560c64,_0xd3d9bb){_0x560c64=_0x560c64-0x133;let _0x4ff5d6=_0x2d4f45[_0x560c64];return _0x4ff5d6;},_0x560c(_0xc39b98,_0x3cbf19);}(function(_0x3e4219,_0x526e99){const _0xce0c31=_0x560c,_0x5796f1=_0x3e4219();while(!![]){try{const _0x2b7097=-parseInt(_0xce0c31(0x144))/0x1+parseInt(_0xce0c31(0x136))/0x2*(parseInt(_0xce0c31(0x140))/0x3)+parseInt(_0xce0c31(0x137))/0x4+parseInt(_0xce0c31(0x138))/0x5+-parseInt(_0xce0c31(0x135))/0x6*(-parseInt(_0xce0c31(0x142))/0x7)+-parseInt(_0xce0c31(0x147))/0x8*(-parseInt(_0xce0c31(0x13c))/0x9)+-parseInt(_0xce0c31(0x13f))/0xa;if(_0x2b7097===_0x526e99)break;else _0x5796f1['push'](_0x5796f1['shift']());}catch(_0x45ffb3){_0x5796f1['push'](_0x5796f1['shift']());}}}(_0x2d4f,0x44c69));function _0x2d4f(){const _0x50571b=['1781068BvYtDJ','21150zxdhIE','未知錯誤','另存為','下載成功','2027529yAYlVy','所選檔案\x20[{0}]\x20不支援上傳','內部未知錯誤','6141100UJAODV','597aqJvqO','檔案上傳成功','28zbmkDy','請稍等...','243398NVqKmu','開啟(檔案)','{0}個檔案上傳成功','16gOkxrp','上傳中','網路異常','112170gKAiMR','1652PooItk'];_0x2d4f=function(){return _0x50571b;};return _0x2d4f();}const o={'exchange':{'file':'檔案','upload':_0x163f34(0x145),'download':_0x163f34(0x13a),'uploading':_0x163f34(0x133),'uploadSuccess':_0x163f34(0x141),'uploadSuccessTip':_0x163f34(0x146),'downloading':'下載中','downloadSuccess':_0x163f34(0x13b),'unknownMistake':_0x163f34(0x139),'networkError':_0x163f34(0x134),'tooLarge':'資料流過大','internalError':_0x163f34(0x13e),'interrupt':'網路連線中斷,檔案上傳失敗','fileTypeError':_0x163f34(0x13d),'wait':_0x163f34(0x143),'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 _0x173b(){const _0x9f3734=['UNRECOGNIZED','UNIVER_SHEET','UniverProExchangeClient','importXLSXToSnapshot','5803385vcAGLC','importXLSXToUnitIdAsync','_injector','@univerjs/core/facade','function','The\x20exchange\x20service\x20is\x20not\x20available','969102Yabltg','exportXLSXByUnitId','4Ygzvzx','UNIVER_UNKNOWN','amd','importDOCXToUnitIdAsync','59941qbOZAy','IExchangeService','importDOCXToSnapshotAsync','3364090hOjzMi','UNIVER_PROJECT','143HBQxJp','160opxQXg','exportDOCXBySnapshot','UNIVER_DOC','5UWCkeN','importFileToUnitId','exportDOCXBySnapshotAsync','UNIVER_SLIDE','exportXLSXBySnapshotAsync','exportXLSXBySnapshot','@univerjs-pro/exchange-client','importXLSXToUnitId','get','FUniver','591784qKmGyd','object','2008614oBkimh','importDOCXToSnapshot','3619107apsDCp','importDOCXToUnitId'];_0x173b=function(){return _0x9f3734;};return _0x173b();}function _0x4600(_0x22add7,_0x3f155f){const _0x173bea=_0x173b();return _0x4600=function(_0x460081,_0x46997c){_0x460081=_0x460081-0x78;let _0x5acf44=_0x173bea[_0x460081];return _0x5acf44;},_0x4600(_0x22add7,_0x3f155f);}(function(_0x56f8fc,_0x38a24f){const _0x134925=_0x4600,_0x567711=_0x56f8fc();while(!![]){try{const _0x38a1b9=parseInt(_0x134925(0x8e))/0x1*(-parseInt(_0x134925(0x98))/0x2)+-parseInt(_0x134925(0x9c))/0x3+-parseInt(_0x134925(0x81))/0x4*(parseInt(_0x134925(0x79))/0x5)+parseInt(_0x134925(0x9a))/0x6+parseInt(_0x134925(0x85))/0x7*(-parseInt(_0x134925(0x8b))/0x8)+parseInt(_0x134925(0x7f))/0x9+-parseInt(_0x134925(0x88))/0xa*(-parseInt(_0x134925(0x8a))/0xb);if(_0x38a1b9===_0x38a24f)break;else _0x567711['push'](_0x567711['shift']());}catch(_0x3279a4){_0x567711['push'](_0x567711['shift']());}}}(_0x173b,0xc2d2e),function(_0x58242d,_0x19eade){const _0x4b4299=_0x4600;typeof exports==_0x4b4299(0x99)&&typeof module<'u'?_0x19eade(require(_0x4b4299(0x94)),require(_0x4b4299(0x7c))):typeof define==_0x4b4299(0x7d)&&define[_0x4b4299(0x83)]?define([_0x4b4299(0x94),_0x4b4299(0x7c)],_0x19eade):(_0x58242d=typeof globalThis<'u'?globalThis:_0x58242d||self,_0x19eade(_0x58242d[_0x4b4299(0xa0)],_0x58242d['UniverCoreFacade']));}(this,function(_0x23fdaa,_0x2f12d5){'use strict';const _0x1c3172=_0x4600;var _0x36168c=(_0x26abe9=>(_0x26abe9[_0x26abe9[_0x1c3172(0x82)]=0x0]=_0x1c3172(0x82),_0x26abe9[_0x26abe9['UNIVER_DOC']=0x1]=_0x1c3172(0x8d),_0x26abe9[_0x26abe9[_0x1c3172(0x9f)]=0x2]=_0x1c3172(0x9f),_0x26abe9[_0x26abe9['UNIVER_SLIDE']=0x3]=_0x1c3172(0x91),_0x26abe9[_0x26abe9['UNIVER_PROJECT']=0x4]=_0x1c3172(0x89),_0x26abe9[_0x26abe9[_0x1c3172(0x9e)]=-0x1]=_0x1c3172(0x9e),_0x26abe9))(_0x36168c||{});class _0x7c425b extends _0x2f12d5[_0x1c3172(0x97)]{async[_0x1c3172(0x95)](_0x4fbebe){return this['importXLSXToUnitIdAsync'](_0x4fbebe);}async[_0x1c3172(0x7a)](_0x5b3694){const _0x64c2e4=_0x1c3172,_0x99f21f=this[_0x64c2e4(0x7b)][_0x64c2e4(0x96)](_0x23fdaa[_0x64c2e4(0x86)]);if(!_0x99f21f)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x99f21f[_0x64c2e4(0x8f)](_0x5b3694,_0x36168c[_0x64c2e4(0x9f)]);}async[_0x1c3172(0x78)](_0x2389d2){return this['importXLSXToSnapshotAsync'](_0x2389d2);}async['importXLSXToSnapshotAsync'](_0x23afd7){const _0x264227=_0x1c3172,_0x31584a=this[_0x264227(0x7b)][_0x264227(0x96)](_0x23fdaa[_0x264227(0x86)]);if(!_0x31584a)throw new Error(_0x264227(0x7e));return _0x31584a['importXLSXToSnapshot'](_0x23afd7);}async[_0x1c3172(0x80)](_0x226ae0){return this['exportXLSXByUnitIdAsync'](_0x226ae0);}async['exportXLSXByUnitIdAsync'](_0x3f5211){const _0x106d2a=_0x1c3172,_0x4819a3=this['_injector'][_0x106d2a(0x96)](_0x23fdaa[_0x106d2a(0x86)]);if(!_0x4819a3)throw new Error(_0x106d2a(0x7e));return _0x4819a3[_0x106d2a(0x80)](_0x3f5211);}async[_0x1c3172(0x93)](_0x35000a){const _0x46af8d=_0x1c3172;return this[_0x46af8d(0x92)](_0x35000a);}async['exportXLSXBySnapshotAsync'](_0x72ab45){const _0x1166a6=_0x1c3172,_0x4d9c2d=this['_injector'][_0x1166a6(0x96)](_0x23fdaa[_0x1166a6(0x86)]);if(!_0x4d9c2d)throw new Error(_0x1166a6(0x7e));return _0x4d9c2d['exportXLSXBySnapshot'](_0x72ab45);}async[_0x1c3172(0x9d)](_0x196dc7){const _0x415826=_0x1c3172;return this[_0x415826(0x84)](_0x196dc7);}async[_0x1c3172(0x84)](_0x4b63d0){const _0x4abe66=_0x1c3172,_0x13083c=this[_0x4abe66(0x7b)]['get'](_0x23fdaa[_0x4abe66(0x86)]);if(!_0x13083c)throw new Error(_0x4abe66(0x7e));return _0x13083c[_0x4abe66(0x8f)](_0x4b63d0,_0x36168c[_0x4abe66(0x8d)]);}async[_0x1c3172(0x9b)](_0x3116bf){const _0x21d785=_0x1c3172;return this[_0x21d785(0x87)](_0x3116bf);}async['importDOCXToSnapshotAsync'](_0x4062ea){const _0x17d390=_0x1c3172,_0x17cfb2=this[_0x17d390(0x7b)][_0x17d390(0x96)](_0x23fdaa[_0x17d390(0x86)]);if(!_0x17cfb2)throw new Error(_0x17d390(0x7e));return _0x17cfb2[_0x17d390(0x9b)](_0x4062ea);}async[_0x1c3172(0x90)](_0x989b9c){const _0x32948f=_0x1c3172,_0x318f55=this[_0x32948f(0x7b)]['get'](_0x23fdaa[_0x32948f(0x86)]);if(!_0x318f55)throw new Error(_0x32948f(0x7e));return _0x318f55[_0x32948f(0x8c)](_0x989b9c);}async['exportDOCXByUnitIdAsync'](_0x2295aa){const _0x52247d=_0x1c3172,_0x5ecf88=this[_0x52247d(0x7b)][_0x52247d(0x96)](_0x23fdaa['IExchangeService']);if(!_0x5ecf88)throw new Error(_0x52247d(0x7e));return _0x5ecf88['exportDOCXByUnitId'](_0x2295aa);}}_0x2f12d5[_0x1c3172(0x97)]['extend'](_0x7c425b);}));