@univerjs-pro/exchange-client 1.0.0-beta.0 → 1.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.css +6 -36
  45. package/lib/index.js +1 -1
  46. package/lib/locale/ar-SA.js +1 -1
  47. package/lib/locale/ca-ES.js +1 -1
  48. package/lib/locale/de-DE.js +1 -1
  49. package/lib/locale/en-US.js +1 -1
  50. package/lib/locale/es-ES.js +1 -1
  51. package/lib/locale/fa-IR.js +1 -1
  52. package/lib/locale/fr-FR.js +1 -1
  53. package/lib/locale/id-ID.js +1 -1
  54. package/lib/locale/it-IT.js +1 -1
  55. package/lib/locale/ja-JP.js +1 -1
  56. package/lib/locale/ko-KR.js +1 -1
  57. package/lib/locale/pl-PL.js +1 -1
  58. package/lib/locale/pt-BR.js +1 -1
  59. package/lib/locale/ru-RU.js +1 -1
  60. package/lib/locale/sk-SK.js +1 -1
  61. package/lib/locale/vi-VN.js +1 -1
  62. package/lib/locale/zh-CN.js +1 -1
  63. package/lib/locale/zh-HK.js +1 -1
  64. package/lib/locale/zh-TW.js +1 -1
  65. package/lib/types/services/exchange.service.d.ts +3 -0
  66. package/lib/types/services/utils/tool.d.ts +2 -0
  67. package/lib/umd/facade.js +1 -1
  68. package/lib/umd/index.js +1 -1
  69. package/lib/umd/locale/ar-SA.js +1 -1
  70. package/lib/umd/locale/ca-ES.js +1 -1
  71. package/lib/umd/locale/de-DE.js +1 -1
  72. package/lib/umd/locale/en-US.js +1 -1
  73. package/lib/umd/locale/es-ES.js +1 -1
  74. package/lib/umd/locale/fa-IR.js +1 -1
  75. package/lib/umd/locale/fr-FR.js +1 -1
  76. package/lib/umd/locale/id-ID.js +1 -1
  77. package/lib/umd/locale/it-IT.js +1 -1
  78. package/lib/umd/locale/ja-JP.js +1 -1
  79. package/lib/umd/locale/ko-KR.js +1 -1
  80. package/lib/umd/locale/pl-PL.js +1 -1
  81. package/lib/umd/locale/pt-BR.js +1 -1
  82. package/lib/umd/locale/ru-RU.js +1 -1
  83. package/lib/umd/locale/sk-SK.js +1 -1
  84. package/lib/umd/locale/vi-VN.js +1 -1
  85. package/lib/umd/locale/zh-CN.js +1 -1
  86. package/lib/umd/locale/zh-HK.js +1 -1
  87. package/lib/umd/locale/zh-TW.js +1 -1
  88. package/package.json +9 -9
@@ -1 +1 @@
1
- const _0x13b4dc=_0x1693;function _0x32a4(){const _0x589467=['Vybraný\x20súbor\x20[{0}]\x20nie\x20je\x20podporovaný\x20na\x20nahrávanie','Dáta\x20sú\x20príliš\x20veľké','6918PJEUjA','1910095FSrBpk','572868VrHdsN','5253072maTTIm','Nahrať\x20znova','12430530PjllwJ','Nahrávanie','Prosím\x20počkajte...','Neznáma\x20chyba','48600vlTnqs','Úspešne\x20nahraných\x20{0}\x20súborov','Interná\x20neznáma\x20chyba','Sťahovanie\x20úspešné','343314IhDUWv','Potvrdiť','Súbor\x20bol\x20úspešne\x20nahraný','4739mzWPZw','8xjygVZ','Sieťová\x20chyba'];_0x32a4=function(){return _0x589467;};return _0x32a4();}function _0x1693(_0x5675db,_0x2fbce4){_0x5675db=_0x5675db-0x11b;const _0x32a47f=_0x32a4();let _0x1693cc=_0x32a47f[_0x5675db];return _0x1693cc;}(function(_0x50d5ab,_0x59fe05){const _0x3d43c1=_0x1693,_0xb8c87d=_0x50d5ab();while(!![]){try{const _0x1404a0=parseInt(_0x3d43c1(0x126))/0x1+-parseInt(_0x3d43c1(0x120))/0x2*(parseInt(_0x3d43c1(0x11c))/0x3)+-parseInt(_0x3d43c1(0x12d))/0x4+parseInt(_0x3d43c1(0x125))/0x5+-parseInt(_0x3d43c1(0x124))/0x6*(parseInt(_0x3d43c1(0x11f))/0x7)+-parseInt(_0x3d43c1(0x127))/0x8+parseInt(_0x3d43c1(0x129))/0x9;if(_0x1404a0===_0x59fe05)break;else _0xb8c87d['push'](_0xb8c87d['shift']());}catch(_0x164251){_0xb8c87d['push'](_0xb8c87d['shift']());}}}(_0x32a4,0x68b8c));const e={'exchange-client':{'uploading':_0x13b4dc(0x12a),'uploadSuccess':_0x13b4dc(0x11e),'uploadSuccessTip':_0x13b4dc(0x12e),'downloading':'Sťahovanie','downloadSuccess':_0x13b4dc(0x11b),'unknownMistake':_0x13b4dc(0x12c),'networkError':_0x13b4dc(0x121),'tooLarge':_0x13b4dc(0x123),'internalError':_0x13b4dc(0x12f),'interrupt':'Sieťové\x20pripojenie\x20bolo\x20prerušené\x20a\x20nahrávanie\x20súboru\x20zlyhalo','fileTypeError':_0x13b4dc(0x122),'wait':_0x13b4dc(0x12b),'cancel':'Zrušiť','confirm':_0x13b4dc(0x11d),'uploadAgain':_0x13b4dc(0x128)}};export{e as default};
1
+ function _0x389e(_0x44ef98,_0x2dcd6b){_0x44ef98=_0x44ef98-0x96;const _0x39fcbb=_0x39fc();let _0x389e80=_0x39fcbb[_0x44ef98];return _0x389e80;}function _0x39fc(){const _0x5b8e37=['2619525wFihwA','Úspešne\x20nahraných\x20{0}\x20súborov','Sieťová\x20chyba','Nahrať\x20znova','3065072YWOqHT','Sťahovanie\x20úspešné','742584HPqWsA','2MXYbPs','131828QyLbQf','Neznáma\x20chyba','Súbor\x20bol\x20úspešne\x20nahraný','Vybraný\x20súbor\x20[{0}]\x20nie\x20je\x20podporovaný\x20na\x20nahrávanie','Sťahovanie','Potvrdiť','8012592AMkbzz','Prosím\x20počkajte...','Nahrávanie','3hFexxV','4089666uPIBDV','3783816KWYGXl','Dáta\x20sú\x20príliš\x20veľké','Interná\x20neznáma\x20chyba'];_0x39fc=function(){return _0x5b8e37;};return _0x39fc();}const _0xdea452=_0x389e;(function(_0x4d063c,_0x4b1294){const _0x381ffd=_0x389e,_0x146462=_0x4d063c();while(!![]){try{const _0x4b3011=-parseInt(_0x381ffd(0xa6))/0x1*(parseInt(_0x381ffd(0xa7))/0x2)+-parseInt(_0x381ffd(0x9b))/0x3*(parseInt(_0x381ffd(0xa8))/0x4)+-parseInt(_0x381ffd(0xa0))/0x5+parseInt(_0x381ffd(0x9d))/0x6+parseInt(_0x381ffd(0x9c))/0x7+-parseInt(_0x381ffd(0xa4))/0x8+parseInt(_0x381ffd(0x98))/0x9;if(_0x4b3011===_0x4b1294)break;else _0x146462['push'](_0x146462['shift']());}catch(_0x5d2304){_0x146462['push'](_0x146462['shift']());}}}(_0x39fc,0x672b6));const e={'exchange-client':{'uploading':_0xdea452(0x9a),'uploadSuccess':_0xdea452(0xaa),'uploadSuccessTip':_0xdea452(0xa1),'downloading':_0xdea452(0x96),'downloadSuccess':_0xdea452(0xa5),'unknownMistake':_0xdea452(0xa9),'networkError':_0xdea452(0xa2),'tooLarge':_0xdea452(0x9e),'internalError':_0xdea452(0x9f),'interrupt':'Sieťové\x20pripojenie\x20bolo\x20prerušené\x20a\x20nahrávanie\x20súboru\x20zlyhalo','fileTypeError':_0xdea452(0xab),'wait':_0xdea452(0x99),'cancel':'Zrušiť','confirm':_0xdea452(0x97),'uploadAgain':_0xdea452(0xa3)}};export{e as default};
@@ -1 +1 @@
1
- const _0x33e11e=_0x3e28;function _0x3e28(_0x22cf86,_0x40e9e8){_0x22cf86=_0x22cf86-0xbc;const _0x2700ec=_0x2700();let _0x3e2847=_0x2700ec[_0x22cf86];return _0x3e2847;}function _0x2700(){const _0x418751=['6kUcCcf','Lỗi\x20không\x20xác\x20định','44QXpFsg','10099054TUpKCO','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','73572FQIIBF','280WSSlPl','Luồng\x20dữ\x20liệu\x20quá\x20lớn','10766264ZJAuCU','20390nCNeBp','14yviyhe','Đang\x20tải\x20xuống','Tải\x20lên\x20tệp\x20thành\x20công','115558sdWYQq','8974692TbMhZN','2804108EMoKlV','Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','Tải\x20lên\x20lại','Đang\x20tải\x20lên','9YsmUFX','Tải\x20xuống\x20thành\x20công'];_0x2700=function(){return _0x418751;};return _0x2700();}(function(_0x3bb7be,_0x5135ef){const _0x116363=_0x3e28,_0x58d87f=_0x3bb7be();while(!![]){try{const _0x4616f7=parseInt(_0x116363(0xbe))/0x1*(parseInt(_0x116363(0xd0))/0x2)+-parseInt(_0x116363(0xc6))/0x3*(parseInt(_0x116363(0xc0))/0x4)+-parseInt(_0x116363(0xcc))/0x5*(-parseInt(_0x116363(0xcb))/0x6)+-parseInt(_0x116363(0xc9))/0x7+parseInt(_0x116363(0xce))/0x8*(parseInt(_0x116363(0xc4))/0x9)+-parseInt(_0x116363(0xcf))/0xa*(-parseInt(_0x116363(0xc8))/0xb)+parseInt(_0x116363(0xbf))/0xc;if(_0x4616f7===_0x5135ef)break;else _0x58d87f['push'](_0x58d87f['shift']());}catch(_0x12dae2){_0x58d87f['push'](_0x58d87f['shift']());}}}(_0x2700,0xb7bf8));const e={'exchange-client':{'uploading':_0x33e11e(0xc3),'uploadSuccess':_0x33e11e(0xbd),'uploadSuccessTip':'{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','downloading':_0x33e11e(0xbc),'downloadSuccess':_0x33e11e(0xc5),'unknownMistake':_0x33e11e(0xc7),'networkError':'Lỗi\x20mạng','tooLarge':_0x33e11e(0xcd),'internalError':'Lỗi\x20không\x20xác\x20định\x20bên\x20trong','interrupt':_0x33e11e(0xca),'fileTypeError':_0x33e11e(0xc1),'wait':'Vui\x20lòng\x20đợi...','cancel':'Hủy\x20bỏ','confirm':'Xác\x20nhận','uploadAgain':_0x33e11e(0xc2)}};export{e as default};
1
+ function _0x23fd(_0x431d86,_0x4f93ac){_0x431d86=_0x431d86-0x13c;const _0x3c2ccf=_0x3c2c();let _0x23fdfc=_0x3c2ccf[_0x431d86];return _0x23fdfc;}const _0x29a7f8=_0x23fd;(function(_0x17f99f,_0x25dc6f){const _0x3ad57c=_0x23fd,_0xba8a03=_0x17f99f();while(!![]){try{const _0x545c55=parseInt(_0x3ad57c(0x143))/0x1*(parseInt(_0x3ad57c(0x144))/0x2)+parseInt(_0x3ad57c(0x14f))/0x3*(parseInt(_0x3ad57c(0x148))/0x4)+-parseInt(_0x3ad57c(0x13f))/0x5*(parseInt(_0x3ad57c(0x13e))/0x6)+parseInt(_0x3ad57c(0x153))/0x7+parseInt(_0x3ad57c(0x147))/0x8*(-parseInt(_0x3ad57c(0x14d))/0x9)+-parseInt(_0x3ad57c(0x152))/0xa*(parseInt(_0x3ad57c(0x14e))/0xb)+-parseInt(_0x3ad57c(0x14b))/0xc*(-parseInt(_0x3ad57c(0x13c))/0xd);if(_0x545c55===_0x25dc6f)break;else _0xba8a03['push'](_0xba8a03['shift']());}catch(_0x4ca48e){_0xba8a03['push'](_0xba8a03['shift']());}}}(_0x3c2c,0x9fc9e));function _0x3c2c(){const _0x256ac5=['Lỗi\x20không\x20xác\x20định\x20bên\x20trong','Đang\x20tải\x20xuống','5DzkKuR','53302ZmImCA','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','Lỗi\x20không\x20xác\x20định','216064AGjBEu','2533796XJRmPF','Đang\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','8069808zrtMMr','Tải\x20lên\x20tệp\x20thành\x20công','9CQcWJs','22HBORBK','3HgBNGR','Tải\x20lên\x20lại','Luồng\x20dữ\x20liệu\x20quá\x20lớn','5095970mrBdnS','5531869ipnHzU','13AdtTUe','Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','352506iKGbNC','45yOiWRd','Xác\x20nhận'];_0x3c2c=function(){return _0x256ac5;};return _0x3c2c();}const e={'exchange-client':{'uploading':_0x29a7f8(0x149),'uploadSuccess':_0x29a7f8(0x14c),'uploadSuccessTip':_0x29a7f8(0x145),'downloading':_0x29a7f8(0x142),'downloadSuccess':'Tải\x20xuống\x20thành\x20công','unknownMistake':_0x29a7f8(0x146),'networkError':'Lỗi\x20mạng','tooLarge':_0x29a7f8(0x151),'internalError':_0x29a7f8(0x141),'interrupt':_0x29a7f8(0x14a),'fileTypeError':_0x29a7f8(0x13d),'wait':'Vui\x20lòng\x20đợi...','cancel':'Hủy\x20bỏ','confirm':_0x29a7f8(0x140),'uploadAgain':_0x29a7f8(0x150)}};export{e as default};
@@ -1 +1 @@
1
- const _0x4db0c3=_0x33c7;(function(_0x292073,_0x59ab55){const _0x2e5134=_0x33c7,_0x5917f0=_0x292073();while(!![]){try{const _0x2a5830=-parseInt(_0x2e5134(0x176))/0x1+-parseInt(_0x2e5134(0x174))/0x2*(-parseInt(_0x2e5134(0x168))/0x3)+parseInt(_0x2e5134(0x170))/0x4*(parseInt(_0x2e5134(0x171))/0x5)+-parseInt(_0x2e5134(0x172))/0x6*(-parseInt(_0x2e5134(0x175))/0x7)+-parseInt(_0x2e5134(0x167))/0x8*(parseInt(_0x2e5134(0x178))/0x9)+-parseInt(_0x2e5134(0x16f))/0xa+parseInt(_0x2e5134(0x16e))/0xb;if(_0x2a5830===_0x59ab55)break;else _0x5917f0['push'](_0x5917f0['shift']());}catch(_0x54142f){_0x5917f0['push'](_0x5917f0['shift']());}}}(_0x467b,0x8a010));function _0x33c7(_0x60a3c6,_0x3671f5){_0x60a3c6=_0x60a3c6-0x166;const _0x467bba=_0x467b();let _0x33c768=_0x467bba[_0x60a3c6];return _0x33c768;}const e={'exchange-client':{'uploading':_0x4db0c3(0x16d),'uploadSuccess':_0x4db0c3(0x16b),'uploadSuccessTip':'{0}个文件上传成功','downloading':_0x4db0c3(0x16a),'downloadSuccess':_0x4db0c3(0x179),'unknownMistake':_0x4db0c3(0x16c),'networkError':_0x4db0c3(0x166),'tooLarge':'数据流过大','internalError':_0x4db0c3(0x169),'interrupt':'网络连接中断,文件上传失败','fileTypeError':'所选文件\x20[{0}]\x20不支持上传','wait':_0x4db0c3(0x177),'cancel':'取消','confirm':'确认','uploadAgain':_0x4db0c3(0x173)}};function _0x467b(){const _0x317547=['内部未知错误','下载中','文件上传成功','未知错误','上传中','18505718PLrHjB','1818830XgVONy','32huASvD','289440qKnRRW','6dKFdqY','再次上传','167058yEgryU','73325VeYnww','1060399FePBDr','请稍等...','99zLqCXU','下载成功','网络异常','800096WVUqNH','27MZDjIc'];_0x467b=function(){return _0x317547;};return _0x467b();}export{e as default};
1
+ const _0x4def48=_0x303d;function _0x3bed(){const _0x2dc6ad=['204253BsVcVc','下载中','再次上传','请稍等...','142803VTcuuw','212POpLpG','248OkHiiy','内部未知错误','1402164zfROSr','未知错误','所选文件\x20[{0}]\x20不支持上传','32553pANebr','16765914JiqFSR','408860RzJvCR','网络连接中断,文件上传失败','36ecnzYZ','6006282wLIoEB','网络异常','820XNWvqB'];_0x3bed=function(){return _0x2dc6ad;};return _0x3bed();}(function(_0x2c9fe2,_0x1c5f5c){const _0x1359d6=_0x303d,_0x1bbeef=_0x2c9fe2();while(!![]){try{const _0x3455ba=-parseInt(_0x1359d6(0x1ce))/0x1+-parseInt(_0x1359d6(0x1cb))/0x2*(-parseInt(_0x1359d6(0x1be))/0x3)+parseInt(_0x1359d6(0x1c2))/0x4*(parseInt(_0x1359d6(0x1c0))/0x5)+parseInt(_0x1359d6(0x1c3))/0x6+-parseInt(_0x1359d6(0x1c6))/0x7*(parseInt(_0x1359d6(0x1cc))/0x8)+parseInt(_0x1359d6(0x1ca))/0x9*(-parseInt(_0x1359d6(0x1c5))/0xa)+parseInt(_0x1359d6(0x1bf))/0xb;if(_0x3455ba===_0x1c5f5c)break;else _0x1bbeef['push'](_0x1bbeef['shift']());}catch(_0x54e764){_0x1bbeef['push'](_0x1bbeef['shift']());}}}(_0x3bed,0xc42f0));const e={'exchange-client':{'uploading':'上传中','uploadSuccess':'文件上传成功','uploadSuccessTip':'{0}个文件上传成功','downloading':_0x4def48(0x1c7),'downloadSuccess':'下载成功','unknownMistake':_0x4def48(0x1bc),'networkError':_0x4def48(0x1c4),'tooLarge':'数据流过大','internalError':_0x4def48(0x1cd),'interrupt':_0x4def48(0x1c1),'fileTypeError':_0x4def48(0x1bd),'wait':_0x4def48(0x1c9),'cancel':'取消','confirm':'确认','uploadAgain':_0x4def48(0x1c8)}};function _0x303d(_0x233ab8,_0x450db8){_0x233ab8=_0x233ab8-0x1bc;const _0x3bed66=_0x3bed();let _0x303d45=_0x3bed66[_0x233ab8];return _0x303d45;}export{e as default};
@@ -1 +1 @@
1
- function _0x1a38(_0x2be3a4,_0x151359){_0x2be3a4=_0x2be3a4-0x6f;const _0x55230f=_0x5523();let _0x1a38ae=_0x55230f[_0x2be3a4];return _0x1a38ae;}const _0x5c3680=_0x1a38;function _0x5523(){const _0x457f2b=['檔案上傳成功','1119203jyYDHi','5309220DsNWbS','上傳中','34294120sYTDSm','27ItJWQO','{0}個檔案上傳成功','內部未知錯誤','再次上傳','9677563euzjWq','4664vJfdUs','3350355UvVSed','網絡異常','資料流過大','319053cZsBuf','2Cfjiyf','請稍等...','所選檔案\x20[{0}]\x20不支援上傳','16gxAKEm'];_0x5523=function(){return _0x457f2b;};return _0x5523();}(function(_0x3934cf,_0xa203c6){const _0x41989d=_0x1a38,_0x14121b=_0x3934cf();while(!![]){try{const _0x4fd564=parseInt(_0x41989d(0x7f))/0x1*(-parseInt(_0x41989d(0x7a))/0x2)+parseInt(_0x41989d(0x79))/0x3*(-parseInt(_0x41989d(0x7d))/0x4)+-parseInt(_0x41989d(0x76))/0x5+parseInt(_0x41989d(0x80))/0x6+-parseInt(_0x41989d(0x74))/0x7+parseInt(_0x41989d(0x75))/0x8*(parseInt(_0x41989d(0x70))/0x9)+parseInt(_0x41989d(0x6f))/0xa;if(_0x4fd564===_0xa203c6)break;else _0x14121b['push'](_0x14121b['shift']());}catch(_0x39debb){_0x14121b['push'](_0x14121b['shift']());}}}(_0x5523,0xaf7fc));const e={'exchange-client':{'uploading':_0x5c3680(0x81),'uploadSuccess':_0x5c3680(0x7e),'uploadSuccessTip':_0x5c3680(0x71),'downloading':'下載中','downloadSuccess':'下載成功','unknownMistake':'未知錯誤','networkError':_0x5c3680(0x77),'tooLarge':_0x5c3680(0x78),'internalError':_0x5c3680(0x72),'interrupt':'網絡連線中斷,檔案上傳失敗','fileTypeError':_0x5c3680(0x7c),'wait':_0x5c3680(0x7b),'cancel':'取消','confirm':'確認','uploadAgain':_0x5c3680(0x73)}};export{e as default};
1
+ function _0x2ec8(){const _0x313f73=['4000402mweqjG','15795pYWCqw','下載成功','下載中','402676pcJNNJ','59762UFQzKX','180Jryvgg','內部未知錯誤','資料流過大','1326psYDuh','504020HWeSWW','22iFXjqt','網絡連線中斷,檔案上傳失敗','檔案上傳成功','再次上傳','35748996MDnFvZ','98752LjsXCw','29vGkwfT','{0}個檔案上傳成功','30XZSIKw','網絡異常','所選檔案\x20[{0}]\x20不支援上傳'];_0x2ec8=function(){return _0x313f73;};return _0x2ec8();}const _0x484d55=_0x4dc1;(function(_0x1c4ea7,_0xc75476){const _0x1dbc60=_0x4dc1,_0xcd07e3=_0x1c4ea7();while(!![]){try{const _0x1c5023=-parseInt(_0x1dbc60(0x14f))/0x1*(parseInt(_0x1dbc60(0x143))/0x2)+parseInt(_0x1dbc60(0x13b))/0x3*(-parseInt(_0x1dbc60(0x142))/0x4)+-parseInt(_0x1dbc60(0x13f))/0x5*(parseInt(_0x1dbc60(0x147))/0x6)+parseInt(_0x1dbc60(0x13e))/0x7+-parseInt(_0x1dbc60(0x14e))/0x8*(parseInt(_0x1dbc60(0x144))/0x9)+-parseInt(_0x1dbc60(0x148))/0xa*(parseInt(_0x1dbc60(0x149))/0xb)+parseInt(_0x1dbc60(0x14d))/0xc;if(_0x1c5023===_0xc75476)break;else _0xcd07e3['push'](_0xcd07e3['shift']());}catch(_0x23ddd0){_0xcd07e3['push'](_0xcd07e3['shift']());}}}(_0x2ec8,0x9a2d3));function _0x4dc1(_0x56bc64,_0xeefbd0){_0x56bc64=_0x56bc64-0x13a;const _0x2ec887=_0x2ec8();let _0x4dc1be=_0x2ec887[_0x56bc64];return _0x4dc1be;}const e={'exchange-client':{'uploading':'上傳中','uploadSuccess':_0x484d55(0x14b),'uploadSuccessTip':_0x484d55(0x13a),'downloading':_0x484d55(0x141),'downloadSuccess':_0x484d55(0x140),'unknownMistake':'未知錯誤','networkError':_0x484d55(0x13c),'tooLarge':_0x484d55(0x146),'internalError':_0x484d55(0x145),'interrupt':_0x484d55(0x14a),'fileTypeError':_0x484d55(0x13d),'wait':'請稍等...','cancel':'取消','confirm':'確認','uploadAgain':_0x484d55(0x14c)}};export{e as default};
@@ -1 +1 @@
1
- const _0x59871b=_0x4184;(function(_0x387261,_0x36f0ad){const _0x88377c=_0x4184,_0x25ee60=_0x387261();while(!![]){try{const _0x3c2472=-parseInt(_0x88377c(0x173))/0x1+parseInt(_0x88377c(0x16c))/0x2*(parseInt(_0x88377c(0x169))/0x3)+parseInt(_0x88377c(0x171))/0x4*(parseInt(_0x88377c(0x16f))/0x5)+parseInt(_0x88377c(0x164))/0x6+parseInt(_0x88377c(0x16d))/0x7*(-parseInt(_0x88377c(0x170))/0x8)+parseInt(_0x88377c(0x163))/0x9*(parseInt(_0x88377c(0x166))/0xa)+parseInt(_0x88377c(0x16e))/0xb*(parseInt(_0x88377c(0x168))/0xc);if(_0x3c2472===_0x36f0ad)break;else _0x25ee60['push'](_0x25ee60['shift']());}catch(_0x3df55c){_0x25ee60['push'](_0x25ee60['shift']());}}}(_0x459e,0x9c9dd));function _0x4184(_0x448fbd,_0xac0582){_0x448fbd=_0x448fbd-0x161;const _0x459e2a=_0x459e();let _0x418477=_0x459e2a[_0x448fbd];return _0x418477;}const e={'exchange-client':{'uploading':_0x59871b(0x162),'uploadSuccess':_0x59871b(0x16b),'uploadSuccessTip':_0x59871b(0x165),'downloading':_0x59871b(0x16a),'downloadSuccess':'下載成功','unknownMistake':'未知錯誤','networkError':'網路異常','tooLarge':'資料流過大','internalError':_0x59871b(0x172),'interrupt':_0x59871b(0x167),'fileTypeError':'所選檔案\x20[{0}]\x20不支援上傳','wait':'請稍等...','cancel':'取消','confirm':'確認','uploadAgain':_0x59871b(0x161)}};function _0x459e(){const _0x4c7b8a=['{0}個檔案上傳成功','150090cYCZzO','網路連線中斷,檔案上傳失敗','1272YAOliS','6wotKvu','下載中','檔案上傳成功','443314ZgHQuM','10598djEJNQ','46871okewol','146835vuzDhw','2584zXXTBo','56FDaTOR','內部未知錯誤','776906qpgvRh','再次上傳','上傳中','189heWHbb','1716732bSdocy'];_0x459e=function(){return _0x4c7b8a;};return _0x459e();}export{e as default};
1
+ const _0x3f385b=_0x203b;(function(_0x473e88,_0x92544f){const _0xb2a36e=_0x203b,_0xbfdb62=_0x473e88();while(!![]){try{const _0x58e4e8=parseInt(_0xb2a36e(0x17e))/0x1+parseInt(_0xb2a36e(0x181))/0x2+parseInt(_0xb2a36e(0x173))/0x3*(parseInt(_0xb2a36e(0x17b))/0x4)+parseInt(_0xb2a36e(0x17c))/0x5+-parseInt(_0xb2a36e(0x172))/0x6+parseInt(_0xb2a36e(0x17a))/0x7+-parseInt(_0xb2a36e(0x183))/0x8;if(_0x58e4e8===_0x92544f)break;else _0xbfdb62['push'](_0xbfdb62['shift']());}catch(_0xaad544){_0xbfdb62['push'](_0xbfdb62['shift']());}}}(_0x2d9f,0xb851d));function _0x203b(_0x4556ba,_0xfda01f){_0x4556ba=_0x4556ba-0x171;const _0x2d9f2b=_0x2d9f();let _0x203bad=_0x2d9f2b[_0x4556ba];return _0x203bad;}function _0x2d9f(){const _0x10361=['再次上傳','下載中','8127434cGrSZg','1156PFpTdo','3498555yBzpZi','下載成功','1251319IGXhQg','上傳中','網路連線中斷,檔案上傳失敗','71520MPjkTI','網路異常','10702280JCRQRw','{0}個檔案上傳成功','7670946dvJXnA','2319HJjgIO','請稍等...','資料流過大','內部未知錯誤','檔案上傳成功'];_0x2d9f=function(){return _0x10361;};return _0x2d9f();}const e={'exchange-client':{'uploading':_0x3f385b(0x17f),'uploadSuccess':_0x3f385b(0x177),'uploadSuccessTip':_0x3f385b(0x171),'downloading':_0x3f385b(0x179),'downloadSuccess':_0x3f385b(0x17d),'unknownMistake':'未知錯誤','networkError':_0x3f385b(0x182),'tooLarge':_0x3f385b(0x175),'internalError':_0x3f385b(0x176),'interrupt':_0x3f385b(0x180),'fileTypeError':'所選檔案\x20[{0}]\x20不支援上傳','wait':_0x3f385b(0x174),'cancel':'取消','confirm':'確認','uploadAgain':_0x3f385b(0x178)}};export{e as default};
@@ -24,6 +24,8 @@ export interface IExchangeService {
24
24
  * Download a file in the browser.
25
25
  */
26
26
  downloadFile(file: File | Blob, filename: string, fileExt: string): void;
27
+ /** Resolve and fetch one file artifact by protocol file id. */
28
+ getFileById(fileId: string, signal?: AbortSignal): Promise<File | undefined>;
27
29
  exportFileByUnitId(unitId: string, univerType: UniverInstanceType, format: ExchangeFormat, options?: IExchangeExportOptions): Promise<File | undefined>;
28
30
  exportFileBySnapshot(snapshot: ISnapshotBlockJson, univerType: UniverInstanceType, format: ExchangeFormat, options?: IExchangeExportOptions): Promise<File | undefined>;
29
31
  /**
@@ -47,6 +49,7 @@ export declare class ExchangeService extends Disposable implements IExchangeServ
47
49
  constructor(_configService: IConfigService, _httpService: HTTPService, _requestService: RequestService);
48
50
  dispose(): void;
49
51
  downloadFile(file: File | Blob, filename: string, fileExt: string): void;
52
+ getFileById(fileId: string, signal?: AbortSignal): Promise<File | undefined>;
50
53
  importFileToUnitId(file: File | string, univerType: UniverInstanceType, options?: IExchangeImportOptions): Promise<string | undefined>;
51
54
  importFileToJson<T = unknown>(file: File | string, univerType: UniverInstanceType, options?: IExchangeImportOptions): Promise<T | undefined>;
52
55
  exportFileByUnitId(unitId: string, univerType: UniverInstanceType, format: ExchangeFormat, options?: IExchangeExportOptions): Promise<File | undefined>;
@@ -10,6 +10,8 @@ export declare function getUniverInstanceTypeByFile(file: File): UniverInstanceT
10
10
  export declare function isSupportedFileType(file: File, univerType: UniverInstanceType): boolean;
11
11
  export declare function getUploadFile(types: UniverInstanceType[], multiple?: boolean): Promise<FileList | null>;
12
12
  export declare function getFileByURL(url: string, httpService: HTTPService): Promise<File | undefined>;
13
+ /** Fetch a signed file URL and reject when an optional cancellation signal aborts. */
14
+ export declare function fetchFileByURL(url: string, httpService: HTTPService, signal?: AbortSignal): Promise<File>;
13
15
  export declare function getFileNameFromURL(url: string): string | undefined;
14
16
  export declare function blobToString(blob: Blob): Promise<string>;
15
17
  export declare function bufferToFile(buffer: Uint8Array): File;
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0xa35d(_0x3a5908,_0x2cd682){_0x3a5908=_0x3a5908-0x148;var _0x42dd26=_0x42dd();var _0xa35d1f=_0x42dd26[_0x3a5908];return _0xa35d1f;}(function(_0x99db09,_0x875413){var _0x128661=_0xa35d,_0x201c8a=_0x99db09();while(!![]){try{var _0xdb54a8=-parseInt(_0x128661(0x156))/0x1*(parseInt(_0x128661(0x150))/0x2)+-parseInt(_0x128661(0x151))/0x3+parseInt(_0x128661(0x157))/0x4+parseInt(_0x128661(0x14e))/0x5*(parseInt(_0x128661(0x14d))/0x6)+-parseInt(_0x128661(0x14a))/0x7+-parseInt(_0x128661(0x153))/0x8*(parseInt(_0x128661(0x158))/0x9)+parseInt(_0x128661(0x14b))/0xa;if(_0xdb54a8===_0x875413)break;else _0x201c8a['push'](_0x201c8a['shift']());}catch(_0x2c8d48){_0x201c8a['push'](_0x201c8a['shift']());}}}(_0x42dd,0x3aa5b),function(_0x21e37e,_0x39b389){var _0x442bb6=_0xa35d;typeof exports==_0x442bb6(0x14f)&&typeof module<'u'?_0x39b389(require('@univerjs-pro/exchange-client'),require('@univerjs/core/facade')):typeof define=='function'&&define['amd']?define(['@univerjs-pro/exchange-client','@univerjs/core/facade'],_0x39b389):(_0x21e37e=typeof globalThis<'u'?globalThis:_0x21e37e||self,_0x39b389(_0x21e37e['UniverProExchangeClient'],_0x21e37e[_0x442bb6(0x155)]));}(this,function(_0x9e699e,_0x598d11){var _0x3d0e92=_0xa35d,_0x375357=class extends _0x598d11[_0x3d0e92(0x14c)]{['downloadFile'](_0x45f75a,_0x1eea23,_0x232f7a){var _0x2df643=_0x3d0e92;this[_0x2df643(0x154)]['get'](_0x9e699e[_0x2df643(0x152)])[_0x2df643(0x149)](_0x45f75a,_0x1eea23,_0x232f7a);}};_0x598d11[_0x3d0e92(0x14c)][_0x3d0e92(0x148)](_0x375357);}));function _0x42dd(){var _0x1fb7e1=['1747QJiAcZ','107500FsXTNQ','603CgsFOc','extend','downloadFile','2029503sDKcKQ','9223010LdjjWS','FUniver','54nARoFY','161145KVAwXd','object','26nFydUM','867807LQdnga','IExchangeService','47416yhJjYE','_injector','UniverCoreFacade'];_0x42dd=function(){return _0x1fb7e1;};return _0x42dd();}
1
+ (function(_0x351399,_0x5ccf77){var _0x4554e6=_0x3e9f,_0x2c44e5=_0x351399();while(!![]){try{var _0x2a1dbe=-parseInt(_0x4554e6(0x9a))/0x1+-parseInt(_0x4554e6(0x9e))/0x2+-parseInt(_0x4554e6(0x95))/0x3*(parseInt(_0x4554e6(0x9f))/0x4)+parseInt(_0x4554e6(0x97))/0x5*(-parseInt(_0x4554e6(0x94))/0x6)+parseInt(_0x4554e6(0x92))/0x7*(-parseInt(_0x4554e6(0x96))/0x8)+parseInt(_0x4554e6(0x99))/0x9*(parseInt(_0x4554e6(0x8f))/0xa)+parseInt(_0x4554e6(0x93))/0xb;if(_0x2a1dbe===_0x5ccf77)break;else _0x2c44e5['push'](_0x2c44e5['shift']());}catch(_0x18b0a7){_0x2c44e5['push'](_0x2c44e5['shift']());}}}(_0x5646,0xc63a1),function(_0x24f486,_0x1b648d){var _0x3040a8=_0x3e9f;typeof exports=='object'&&typeof module<'u'?_0x1b648d(require('@univerjs-pro/exchange-client'),require('@univerjs/core/facade')):typeof define=='function'&&define[_0x3040a8(0x98)]?define([_0x3040a8(0x9b),_0x3040a8(0xa0)],_0x1b648d):(_0x24f486=typeof globalThis<'u'?globalThis:_0x24f486||self,_0x1b648d(_0x24f486['UniverProExchangeClient'],_0x24f486['UniverCoreFacade']));}(this,function(_0x157fd4,_0x353f0b){var _0x4b90c2=_0x3e9f,_0x49ebd6=class extends _0x353f0b[_0x4b90c2(0x9c)]{[_0x4b90c2(0x91)](_0x39c2c1,_0xddd6e1,_0x531727){var _0x400fbb=_0x4b90c2;this[_0x400fbb(0xa1)]['get'](_0x157fd4[_0x400fbb(0x90)])['downloadFile'](_0x39c2c1,_0xddd6e1,_0x531727);}};_0x353f0b[_0x4b90c2(0x9c)][_0x4b90c2(0x9d)](_0x49ebd6);}));function _0x3e9f(_0x4b21a9,_0x376c78){_0x4b21a9=_0x4b21a9-0x8f;var _0x5646c9=_0x5646();var _0x3e9f86=_0x5646c9[_0x4b21a9];return _0x3e9f86;}function _0x5646(){var _0x2fe2be=['36537842zMwswJ','12NrclUN','11169rhTRfM','8712440jPKfYA','2530875JRhnOC','amd','369nQzAXT','671617gKlgQf','@univerjs-pro/exchange-client','FUniver','extend','1116752FGDrqT','508HJnkUA','@univerjs/core/facade','_injector','315740hwohIP','IExchangeService','downloadFile','7uNOPtE'];_0x5646=function(){return _0x2fe2be;};return _0x5646();}