@univerjs-pro/exchange-client 1.0.0-alpha.8 → 1.0.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 (99) 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 +42 -4
  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/config/config.d.ts +0 -23
  66. package/lib/types/controllers/components.controller.d.ts +3 -3
  67. package/lib/types/facade/f-univer.d.ts +5 -279
  68. package/lib/types/index.d.ts +5 -2
  69. package/lib/types/locale/en-US.d.ts +1 -0
  70. package/lib/types/services/exchange.service.d.ts +12 -82
  71. package/lib/types/services/operate.service.d.ts +17 -96
  72. package/lib/types/services/request.service.d.ts +78 -10
  73. package/lib/types/services/utils/content-type.d.ts +6 -2
  74. package/lib/types/services/utils/snapshot.d.ts +7 -39
  75. package/lib/types/services/utils/tool.d.ts +1 -0
  76. package/lib/types/views/export-format-dialog/ExportFormatDialog.d.ts +14 -0
  77. package/lib/umd/facade.js +1 -1
  78. package/lib/umd/index.js +1 -1
  79. package/lib/umd/locale/ar-SA.js +1 -1
  80. package/lib/umd/locale/ca-ES.js +1 -1
  81. package/lib/umd/locale/de-DE.js +1 -1
  82. package/lib/umd/locale/en-US.js +1 -1
  83. package/lib/umd/locale/es-ES.js +1 -1
  84. package/lib/umd/locale/fa-IR.js +1 -1
  85. package/lib/umd/locale/fr-FR.js +1 -1
  86. package/lib/umd/locale/id-ID.js +1 -1
  87. package/lib/umd/locale/it-IT.js +1 -1
  88. package/lib/umd/locale/ja-JP.js +1 -1
  89. package/lib/umd/locale/ko-KR.js +1 -1
  90. package/lib/umd/locale/pl-PL.js +1 -1
  91. package/lib/umd/locale/pt-BR.js +1 -1
  92. package/lib/umd/locale/ru-RU.js +1 -1
  93. package/lib/umd/locale/sk-SK.js +1 -1
  94. package/lib/umd/locale/vi-VN.js +1 -1
  95. package/lib/umd/locale/zh-CN.js +1 -1
  96. package/lib/umd/locale/zh-HK.js +1 -1
  97. package/lib/umd/locale/zh-TW.js +1 -1
  98. package/package.json +11 -12
  99. package/lib/types/views/UploadNotificationContainer.d.ts +0 -1
@@ -1 +1 @@
1
- const _0x4733a3=_0x592a;(function(_0x35e2e5,_0x2cfe19){const _0x48581c=_0x592a,_0x4ca606=_0x35e2e5();while(!![]){try{const _0x1947d2=parseInt(_0x48581c(0x1d1))/0x1+-parseInt(_0x48581c(0x1d0))/0x2+-parseInt(_0x48581c(0x1d9))/0x3+parseInt(_0x48581c(0x1d4))/0x4*(parseInt(_0x48581c(0x1da))/0x5)+-parseInt(_0x48581c(0x1db))/0x6*(parseInt(_0x48581c(0x1d8))/0x7)+parseInt(_0x48581c(0x1d6))/0x8*(parseInt(_0x48581c(0x1de))/0x9)+-parseInt(_0x48581c(0x1dd))/0xa;if(_0x1947d2===_0x2cfe19)break;else _0x4ca606['push'](_0x4ca606['shift']());}catch(_0x59761e){_0x4ca606['push'](_0x4ca606['shift']());}}}(_0x283d,0xf3b1a));function _0x592a(_0x5c42f6,_0x56a198){_0x5c42f6=_0x5c42f6-0x1cb;const _0x283d03=_0x283d();let _0x592a1c=_0x283d03[_0x5c42f6];return _0x592a1c;}const e={'exchange-client':{'uploading':_0x4733a3(0x1d3),'uploadSuccess':'Arquivo\x20enviado\x20com\x20sucesso','uploadSuccessTip':_0x4733a3(0x1dc),'downloading':_0x4733a3(0x1d7),'downloadSuccess':_0x4733a3(0x1cc),'unknownMistake':_0x4733a3(0x1cb),'networkError':_0x4733a3(0x1cf),'tooLarge':_0x4733a3(0x1cd),'internalError':'Erro\x20interno\x20desconhecido','interrupt':_0x4733a3(0x1ce),'fileTypeError':_0x4733a3(0x1d2),'wait':'Aguarde...','cancel':_0x4733a3(0x1d5),'uploadAgain':'Enviar\x20novamente'}};function _0x283d(){const _0x4f65f6=['O\x20arquivo\x20selecionado\x20[{0}]\x20não\x20é\x20suportado\x20para\x20envio','Enviando','4PMwvWO','Cancelar','8DQORUZ','Baixando','350hhqPfq','1614843SPrFmy','8015HMXWrJ','52728lJSHRa','{0}\x20arquivo(s)\x20enviado(s)\x20com\x20sucesso','7143480AaNGLq','12756213ANJLCI','Erro\x20desconhecido','Download\x20concluído\x20com\x20sucesso','Os\x20dados\x20são\x20muito\x20grandes','A\x20conexão\x20de\x20rede\x20foi\x20interrompida\x20e\x20o\x20envio\x20do\x20arquivo\x20falhou','Erro\x20de\x20rede','1099120BuWfbs','1820799TbTiDt'];_0x283d=function(){return _0x4f65f6;};return _0x283d();}export{e as default};
1
+ const _0x1adfbc=_0x59d8;(function(_0x22c2f3,_0x3ba071){const _0xe2bd32=_0x59d8,_0x3be9ad=_0x22c2f3();while(!![]){try{const _0x4483aa=-parseInt(_0xe2bd32(0xc0))/0x1*(parseInt(_0xe2bd32(0xb7))/0x2)+parseInt(_0xe2bd32(0xb6))/0x3+parseInt(_0xe2bd32(0xb8))/0x4+parseInt(_0xe2bd32(0xbf))/0x5*(-parseInt(_0xe2bd32(0xc1))/0x6)+-parseInt(_0xe2bd32(0xbb))/0x7+parseInt(_0xe2bd32(0xbc))/0x8+parseInt(_0xe2bd32(0xb4))/0x9*(parseInt(_0xe2bd32(0xae))/0xa);if(_0x4483aa===_0x3ba071)break;else _0x3be9ad['push'](_0x3be9ad['shift']());}catch(_0x28f40e){_0x3be9ad['push'](_0x3be9ad['shift']());}}}(_0x12ee,0x5315c));const e={'exchange-client':{'uploading':_0x1adfbc(0xbe),'uploadSuccess':_0x1adfbc(0xb3),'uploadSuccessTip':_0x1adfbc(0xb2),'downloading':_0x1adfbc(0xad),'downloadSuccess':_0x1adfbc(0xb0),'unknownMistake':_0x1adfbc(0xc3),'networkError':'Erro\x20de\x20rede','tooLarge':'Os\x20dados\x20são\x20muito\x20grandes','internalError':_0x1adfbc(0xba),'interrupt':_0x1adfbc(0xb9),'fileTypeError':_0x1adfbc(0xaf),'wait':_0x1adfbc(0xb1),'cancel':_0x1adfbc(0xbd),'confirm':_0x1adfbc(0xc2),'uploadAgain':_0x1adfbc(0xb5)}};function _0x12ee(){const _0x57ba1c=['544030DKiyXB','O\x20arquivo\x20selecionado\x20[{0}]\x20não\x20é\x20suportado\x20para\x20envio','Download\x20concluído\x20com\x20sucesso','Aguarde...','{0}\x20arquivo(s)\x20enviado(s)\x20com\x20sucesso','Arquivo\x20enviado\x20com\x20sucesso','90YhjZCr','Enviar\x20novamente','1099698xWOYtp','122exKLwA','1407544NTQIiF','A\x20conexão\x20de\x20rede\x20foi\x20interrompida\x20e\x20o\x20envio\x20do\x20arquivo\x20falhou','Erro\x20interno\x20desconhecido','4120256HTSibv','3215072dQCIQO','Cancelar','Enviando','1029505KDYTXK','8681btzeba','6PniOcy','Confirmar','Erro\x20desconhecido','Baixando'];_0x12ee=function(){return _0x57ba1c;};return _0x12ee();}function _0x59d8(_0x186485,_0x56fc29){_0x186485=_0x186485-0xad;const _0x12ee5d=_0x12ee();let _0x59d88b=_0x12ee5d[_0x186485];return _0x59d88b;}export{e as default};
@@ -1 +1 @@
1
- const _0x3c6c4c=_0x670a;(function(_0x404e72,_0x569404){const _0x24ef9f=_0x670a,_0xa59449=_0x404e72();while(!![]){try{const _0x4b0e41=parseInt(_0x24ef9f(0x16e))/0x1*(-parseInt(_0x24ef9f(0x16c))/0x2)+parseInt(_0x24ef9f(0x166))/0x3+-parseInt(_0x24ef9f(0x15f))/0x4*(parseInt(_0x24ef9f(0x168))/0x5)+-parseInt(_0x24ef9f(0x173))/0x6*(parseInt(_0x24ef9f(0x164))/0x7)+-parseInt(_0x24ef9f(0x163))/0x8+parseInt(_0x24ef9f(0x16b))/0x9+parseInt(_0x24ef9f(0x174))/0xa*(parseInt(_0x24ef9f(0x162))/0xb);if(_0x4b0e41===_0x569404)break;else _0xa59449['push'](_0xa59449['shift']());}catch(_0x329b9d){_0xa59449['push'](_0xa59449['shift']());}}}(_0x2fc8,0x2d543));function _0x670a(_0x619781,_0x4c5ae3){_0x619781=_0x619781-0x15f;const _0x2fc86c=_0x2fc8();let _0x670a40=_0x2fc86c[_0x619781];return _0x670a40;}function _0x2fc8(){const _0x31d4a8=['495mdykkX','2793072DzDWkf','7231ymyVwT','Скачивание','172161ZdPYaL','Сетевая\x20ошибка','5vIeyTx','{0}\x20файл(ов)\x20успешно\x20загружен(о)','Пожалуйста,\x20подождите...','2646441ubYVln','36230vfekBO','Загрузка','13UaCnHF','Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','Скачивание\x20успешно','Данные\x20слишком\x20большие','1254FiBEgW','176140svaKWT','Внутренняя\x20неизвестная\x20ошибка','631492yCOZga','Файл\x20успешно\x20загружен','Загрузить\x20снова'];_0x2fc8=function(){return _0x31d4a8;};return _0x2fc8();}const e={'exchange-client':{'uploading':_0x3c6c4c(0x16d),'uploadSuccess':_0x3c6c4c(0x160),'uploadSuccessTip':_0x3c6c4c(0x169),'downloading':_0x3c6c4c(0x165),'downloadSuccess':_0x3c6c4c(0x171),'unknownMistake':'Неизвестная\x20ошибка','networkError':_0x3c6c4c(0x167),'tooLarge':_0x3c6c4c(0x172),'internalError':_0x3c6c4c(0x175),'interrupt':_0x3c6c4c(0x170),'fileTypeError':_0x3c6c4c(0x16f),'wait':_0x3c6c4c(0x16a),'cancel':'Отмена','uploadAgain':_0x3c6c4c(0x161)}};export{e as default};
1
+ const _0x50a3bf=_0x5dd2;(function(_0x447a74,_0x4e9c0c){const _0x1ea970=_0x5dd2,_0x472d73=_0x447a74();while(!![]){try{const _0x128599=-parseInt(_0x1ea970(0x15f))/0x1*(-parseInt(_0x1ea970(0x16e))/0x2)+-parseInt(_0x1ea970(0x16a))/0x3*(-parseInt(_0x1ea970(0x169))/0x4)+parseInt(_0x1ea970(0x15d))/0x5+-parseInt(_0x1ea970(0x168))/0x6+-parseInt(_0x1ea970(0x163))/0x7*(parseInt(_0x1ea970(0x16d))/0x8)+parseInt(_0x1ea970(0x15b))/0x9+-parseInt(_0x1ea970(0x16c))/0xa*(parseInt(_0x1ea970(0x164))/0xb);if(_0x128599===_0x4e9c0c)break;else _0x472d73['push'](_0x472d73['shift']());}catch(_0x4dd21a){_0x472d73['push'](_0x472d73['shift']());}}}(_0x1fa7,0xe9bd2));function _0x5dd2(_0x14c9f6,_0x10c876){_0x14c9f6=_0x14c9f6-0x158;const _0x1fa796=_0x1fa7();let _0x5dd268=_0x1fa796[_0x14c9f6];return _0x5dd268;}function _0x1fa7(){const _0x5be65a=['2956840mPeufL','578440RkoWvM','Отмена','Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','Скачивание\x20успешно','Загрузка','Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','10566468kMxVpk','Неизвестная\x20ошибка','7020895OXgPUn','Внутренняя\x20неизвестная\x20ошибка','4HsARiC','{0}\x20файл(ов)\x20успешно\x20загружен(о)','Скачивание','Подтвердить','35nZukAY','9795478MNWFuX','Пожалуйста,\x20подождите...','Сетевая\x20ошибка','Загрузить\x20снова','6018480nZFPuP','175252SZjnpd','66ZWRIGR','Файл\x20успешно\x20загружен','10EYSxxx'];_0x1fa7=function(){return _0x5be65a;};return _0x1fa7();}const e={'exchange-client':{'uploading':_0x50a3bf(0x159),'uploadSuccess':_0x50a3bf(0x16b),'uploadSuccessTip':_0x50a3bf(0x160),'downloading':_0x50a3bf(0x161),'downloadSuccess':_0x50a3bf(0x158),'unknownMistake':_0x50a3bf(0x15c),'networkError':_0x50a3bf(0x166),'tooLarge':'Данные\x20слишком\x20большие','internalError':_0x50a3bf(0x15e),'interrupt':_0x50a3bf(0x170),'fileTypeError':_0x50a3bf(0x15a),'wait':_0x50a3bf(0x165),'cancel':_0x50a3bf(0x16f),'confirm':_0x50a3bf(0x162),'uploadAgain':_0x50a3bf(0x167)}};export{e as default};
@@ -1 +1 @@
1
- const _0x2fbc9b=_0x53d2;function _0x299a(){const _0x20ad34=['24WIwzRz','139746vzsXOR','Sieťová\x20chyba','Vybraný\x20súbor\x20[{0}]\x20nie\x20je\x20podporovaný\x20na\x20nahrávanie','3492896cysgMZ','Sieťové\x20pripojenie\x20bolo\x20prerušené\x20a\x20nahrávanie\x20súboru\x20zlyhalo','3221410exCVsE','14XwXsYx','Sťahovanie','9kQJkrJ','Prosím\x20počkajte...','Nahrať\x20znova','2907785nTUots','7557BxZpVc','1864afLPtQ','Interná\x20neznáma\x20chyba','244tmUHSA','Nahrávanie','Neznáma\x20chyba','Dáta\x20sú\x20príliš\x20veľké','1044942Uibcep','Súbor\x20bol\x20úspešne\x20nahraný'];_0x299a=function(){return _0x20ad34;};return _0x299a();}(function(_0x4d1f40,_0x4d599c){const _0x4c20e8=_0x53d2,_0x1c344a=_0x4d1f40();while(!![]){try{const _0x3030f7=parseInt(_0x4c20e8(0x9f))/0x1*(-parseInt(_0x4c20e8(0xa1))/0x2)+parseInt(_0x4c20e8(0xa8))/0x3*(parseInt(_0x4c20e8(0xa7))/0x4)+parseInt(_0x4c20e8(0x9d))/0x5+-parseInt(_0x4c20e8(0xa5))/0x6*(parseInt(_0x4c20e8(0x98))/0x7)+parseInt(_0x4c20e8(0x95))/0x8*(parseInt(_0x4c20e8(0x9a))/0x9)+-parseInt(_0x4c20e8(0x97))/0xa+-parseInt(_0x4c20e8(0x9e))/0xb;if(_0x3030f7===_0x4d599c)break;else _0x1c344a['push'](_0x1c344a['shift']());}catch(_0x26192d){_0x1c344a['push'](_0x1c344a['shift']());}}}(_0x299a,0x61707));function _0x53d2(_0x3ec542,_0x5b61ff){_0x3ec542=_0x3ec542-0x93;const _0x299aa6=_0x299a();let _0x53d2be=_0x299aa6[_0x3ec542];return _0x53d2be;}const e={'exchange-client':{'uploading':_0x2fbc9b(0xa2),'uploadSuccess':_0x2fbc9b(0xa6),'uploadSuccessTip':'Úspešne\x20nahraných\x20{0}\x20súborov','downloading':_0x2fbc9b(0x99),'downloadSuccess':'Sťahovanie\x20úspešné','unknownMistake':_0x2fbc9b(0xa3),'networkError':_0x2fbc9b(0x93),'tooLarge':_0x2fbc9b(0xa4),'internalError':_0x2fbc9b(0xa0),'interrupt':_0x2fbc9b(0x96),'fileTypeError':_0x2fbc9b(0x94),'wait':_0x2fbc9b(0x9b),'cancel':'Zrušiť','uploadAgain':_0x2fbc9b(0x9c)}};export{e as default};
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 +1 @@
1
- function _0x1285(){const _0x4f2d4c=['24521OxPBTd','52773lsSARH','45NOOsbh','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','Đang\x20tải\x20xuống','86884RtuqmX','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','237462htiHte','15846kRelwa','Hủy\x20bỏ','923292dHtupt','Vui\x20lòng\x20đợi...','Tải\x20lên\x20tệp\x20thành\x20công','Lỗi\x20mạng','152cWOMhr','1181010XWPFPD','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','395oGKRWO','Tải\x20xuống\x20thành\x20công'];_0x1285=function(){return _0x4f2d4c;};return _0x1285();}const _0x5df3c6=_0x582d;(function(_0x5b9c12,_0x529d8d){const _0x1bbb44=_0x582d,_0x514647=_0x5b9c12();while(!![]){try{const _0x10c06d=parseInt(_0x1bbb44(0x180))/0x1+-parseInt(_0x1bbb44(0x17e))/0x2+parseInt(_0x1bbb44(0x17a))/0x3+parseInt(_0x1bbb44(0x16f))/0x4+-parseInt(_0x1bbb44(0x177))/0x5*(-parseInt(_0x1bbb44(0x181))/0x6)+parseInt(_0x1bbb44(0x179))/0x7*(parseInt(_0x1bbb44(0x173))/0x8)+-parseInt(_0x1bbb44(0x17b))/0x9*(parseInt(_0x1bbb44(0x174))/0xa);if(_0x10c06d===_0x529d8d)break;else _0x514647['push'](_0x514647['shift']());}catch(_0x38df48){_0x514647['push'](_0x514647['shift']());}}}(_0x1285,0x1f095));function _0x582d(_0xea8c10,_0x1fbfe2){_0xea8c10=_0xea8c10-0x16f;const _0x128523=_0x1285();let _0x582dfa=_0x128523[_0xea8c10];return _0x582dfa;}const e={'exchange-client':{'uploading':'Đang\x20tải\x20lên','uploadSuccess':_0x5df3c6(0x171),'uploadSuccessTip':_0x5df3c6(0x17c),'downloading':_0x5df3c6(0x17d),'downloadSuccess':_0x5df3c6(0x178),'unknownMistake':'Lỗi\x20không\x20xác\x20định','networkError':_0x5df3c6(0x172),'tooLarge':'Luồng\x20dữ\x20liệu\x20quá\x20lớn','internalError':'Lỗi\x20không\x20xác\x20định\x20bên\x20trong','interrupt':_0x5df3c6(0x17f),'fileTypeError':_0x5df3c6(0x175),'wait':_0x5df3c6(0x170),'cancel':_0x5df3c6(0x182),'uploadAgain':_0x5df3c6(0x176)}};export{e as default};
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 +1 @@
1
- const _0x242af7=_0x5b1a;function _0x5b1a(_0x2bd721,_0x45f881){_0x2bd721=_0x2bd721-0xc0;const _0x85c1d8=_0x85c1();let _0x5b1a6f=_0x85c1d8[_0x2bd721];return _0x5b1a6f;}function _0x85c1(){const _0x50d596=['请稍等...','1359896BOcRpX','5278860UYoKMU','未知错误','2964928jtQDPd','文件上传成功','内部未知错误','14954233vPIzpZ','7074010evczOM','网络异常','下载成功','下载中','586558nKtLjt','再次上传','8534436yiIKZK','所选文件\x20[{0}]\x20不支持上传'];_0x85c1=function(){return _0x50d596;};return _0x85c1();}(function(_0xb22067,_0x132f57){const _0x22be40=_0x5b1a,_0x1bf78f=_0xb22067();while(!![]){try{const _0x38cfb7=-parseInt(_0x22be40(0xcb))/0x1+parseInt(_0x22be40(0xc3))/0x2+-parseInt(_0x22be40(0xc1))/0x3+-parseInt(_0x22be40(0xc0))/0x4+-parseInt(_0x22be40(0xc7))/0x5+parseInt(_0x22be40(0xcd))/0x6+parseInt(_0x22be40(0xc6))/0x7;if(_0x38cfb7===_0x132f57)break;else _0x1bf78f['push'](_0x1bf78f['shift']());}catch(_0x242278){_0x1bf78f['push'](_0x1bf78f['shift']());}}}(_0x85c1,0xe58cb));const e={'exchange-client':{'uploading':'上传中','uploadSuccess':_0x242af7(0xc4),'uploadSuccessTip':'{0}个文件上传成功','downloading':_0x242af7(0xca),'downloadSuccess':_0x242af7(0xc9),'unknownMistake':_0x242af7(0xc2),'networkError':_0x242af7(0xc8),'tooLarge':'数据流过大','internalError':_0x242af7(0xc5),'interrupt':'网络连接中断,文件上传失败','fileTypeError':_0x242af7(0xce),'wait':_0x242af7(0xcf),'cancel':'取消','uploadAgain':_0x242af7(0xcc)}};export{e as default};
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 +1 @@
1
- const _0x3debc8=_0x30f3;(function(_0x4f70a8,_0x5a06f7){const _0x1b642b=_0x30f3,_0x413a57=_0x4f70a8();while(!![]){try{const _0x2439d0=-parseInt(_0x1b642b(0x143))/0x1*(-parseInt(_0x1b642b(0x13d))/0x2)+-parseInt(_0x1b642b(0x147))/0x3*(-parseInt(_0x1b642b(0x142))/0x4)+parseInt(_0x1b642b(0x140))/0x5+parseInt(_0x1b642b(0x146))/0x6*(-parseInt(_0x1b642b(0x14a))/0x7)+-parseInt(_0x1b642b(0x149))/0x8*(parseInt(_0x1b642b(0x14c))/0x9)+-parseInt(_0x1b642b(0x145))/0xa+parseInt(_0x1b642b(0x14e))/0xb;if(_0x2439d0===_0x5a06f7)break;else _0x413a57['push'](_0x413a57['shift']());}catch(_0x1e1741){_0x413a57['push'](_0x413a57['shift']());}}}(_0x3337,0xb264a));function _0x30f3(_0x342412,_0x30fc3a){_0x342412=_0x342412-0x13b;const _0x33371d=_0x3337();let _0x30f397=_0x33371d[_0x342412];return _0x30f397;}function _0x3337(){const _0x5e6759=['資料流過大','1048912aHyFIb','10051WjkFSn','所選檔案\x20[{0}]\x20不支援上傳','665260WmVEcG','16782bWpena','6GLAPNj','下載成功','692352jQzgQj','2828oERgva','{0}個檔案上傳成功','108VLXajl','請稍等...','13496670mpnIrr','再次上傳','網絡異常','108raDeFp','下載中','檔案上傳成功','3357800hTYuPa'];_0x3337=function(){return _0x5e6759;};return _0x3337();}const e={'exchange-client':{'uploading':'上傳中','uploadSuccess':_0x3debc8(0x13f),'uploadSuccessTip':_0x3debc8(0x14b),'downloading':_0x3debc8(0x13e),'downloadSuccess':_0x3debc8(0x148),'unknownMistake':'未知錯誤','networkError':_0x3debc8(0x13c),'tooLarge':_0x3debc8(0x141),'internalError':'內部未知錯誤','interrupt':'網絡連線中斷,檔案上傳失敗','fileTypeError':_0x3debc8(0x144),'wait':_0x3debc8(0x14d),'cancel':'取消','uploadAgain':_0x3debc8(0x13b)}};export{e as default};
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 +1 @@
1
- function _0x4746(_0x1d2261,_0x310531){_0x1d2261=_0x1d2261-0xd7;const _0x190e63=_0x190e();let _0x47468b=_0x190e63[_0x1d2261];return _0x47468b;}const _0x155241=_0x4746;(function(_0x426a5b,_0x86b4c6){const _0x5417c7=_0x4746,_0x53f1b0=_0x426a5b();while(!![]){try{const _0x59b225=-parseInt(_0x5417c7(0xe2))/0x1*(-parseInt(_0x5417c7(0xdc))/0x2)+parseInt(_0x5417c7(0xdd))/0x3+-parseInt(_0x5417c7(0xe9))/0x4*(-parseInt(_0x5417c7(0xe4))/0x5)+parseInt(_0x5417c7(0xd7))/0x6+-parseInt(_0x5417c7(0xde))/0x7*(parseInt(_0x5417c7(0xe0))/0x8)+parseInt(_0x5417c7(0xe5))/0x9*(parseInt(_0x5417c7(0xdb))/0xa)+-parseInt(_0x5417c7(0xd8))/0xb;if(_0x59b225===_0x86b4c6)break;else _0x53f1b0['push'](_0x53f1b0['shift']());}catch(_0x5ad2f2){_0x53f1b0['push'](_0x53f1b0['shift']());}}}(_0x190e,0xe7385));function _0x190e(){const _0x2ddd85=['{0}個檔案上傳成功','再次上傳','未知錯誤','2174820urFNMA','檔案上傳成功','2998362Hlmmyu','24053700aeoJkw','上傳中','資料流過大','20XHuBnn','24FNwxGm','1031955hEOMHj','35xirvhO','下載中','1498088PiBxuV','網路異常','27428oCKBND','所選檔案\x20[{0}]\x20不支援上傳','10Yjdjxo','8144208ydIJAG'];_0x190e=function(){return _0x2ddd85;};return _0x190e();}const e={'exchange-client':{'uploading':_0x155241(0xd9),'uploadSuccess':_0x155241(0xea),'uploadSuccessTip':_0x155241(0xe6),'downloading':_0x155241(0xdf),'downloadSuccess':'下載成功','unknownMistake':_0x155241(0xe8),'networkError':_0x155241(0xe1),'tooLarge':_0x155241(0xda),'internalError':'內部未知錯誤','interrupt':'網路連線中斷,檔案上傳失敗','fileTypeError':_0x155241(0xe3),'wait':'請稍等...','cancel':'取消','uploadAgain':_0x155241(0xe7)}};export{e as default};
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,27 +1,5 @@
1
1
  export declare const EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY = "exchange-client.config";
2
2
  export declare const configSymbol: unique symbol;
3
- export interface IUniverExchangeClientOptions {
4
- /**
5
- * The minimum number of rows in the worksheet after import.
6
- */
7
- minSheetRowCount?: number;
8
- /**
9
- * The minimum number of columns in the worksheet after import.
10
- */
11
- minSheetColumnCount?: number;
12
- /**
13
- * Whether to disable converting cell images to link on export.
14
- * If the cell image source is a URL, the default behavior is to convert the url to the cell value on export.
15
- * Because the server will download all the resource files, when there are many images, it will consume a lot of resources and take a long time.
16
- * @default true
17
- */
18
- disableCellImageConversion?: boolean;
19
- /**
20
- * Whether to ignore Table when exporting.
21
- * @default false
22
- */
23
- ignoreTableExport?: boolean;
24
- }
25
3
  export interface IUniverExchangeClientConfig {
26
4
  /**
27
5
  * The URL of the endpoint for downloading files.
@@ -34,6 +12,5 @@ export interface IUniverExchangeClientConfig {
34
12
  getTaskServerUrl?: string;
35
13
  signUrlServerUrl?: string;
36
14
  maxTimeoutTime?: number;
37
- options?: IUniverExchangeClientOptions;
38
15
  }
39
16
  export declare const defaultPluginConfig: IUniverExchangeClientConfig;
@@ -1,7 +1,7 @@
1
1
  import { Disposable } from '@univerjs/core';
2
- import { IconManager } from '@univerjs/ui';
2
+ import { ComponentManager, IconManager } from '@univerjs/ui';
3
3
  export declare class ComponentsController extends Disposable {
4
4
  private readonly _iconManager;
5
- constructor(_iconManager: IconManager);
6
- private _registerIcons;
5
+ private readonly _componentManager;
6
+ constructor(_iconManager: IconManager, _componentManager: ComponentManager);
7
7
  }
@@ -1,5 +1,3 @@
1
- import type { IExchangeSlideDocumentData, ISnapshotBlockJson, ISnapshotBlockJsonResponse } from '@univerjs-pro/exchange-client';
2
- import type { IDocumentData, IWorkbookData } from '@univerjs/core';
3
1
  import { FUniver } from '@univerjs/core/facade';
4
2
  /**
5
3
  * @ignore
@@ -7,293 +5,21 @@ import { FUniver } from '@univerjs/core/facade';
7
5
  export interface IFUniverExchangeClientMixin {
8
6
  /**
9
7
  * Trigger a browser download for a file or blob.
10
- * @param file File or blob to download
11
- * @param filename Filename without extension
12
- * @param fileExt File extension without a leading dot
8
+ * @param {File | Blob} file File or blob to download
9
+ * @param {string} filename Filename without extension
10
+ * @param {string} fileExt File extension without a leading dot
11
+ * @returns {void}
13
12
  *
14
13
  * @example
15
14
  * ```typescript
16
- * const file = await univerAPI.exportXLSXByUnitIdAsync(unitId);
15
+ * const file = await univerAPI.exportSheetByUnitIdAsync(unitId);
17
16
  * if (file) univerAPI.downloadFile(file, 'univer', 'xlsx');
18
17
  * ```
19
18
  */
20
19
  downloadFile(file: File | Blob, filename: string, fileExt: string): void;
21
- /**
22
- * Transform snapshot JSON returned by the exchange service to workbook data.
23
- * @param json Snapshot JSON returned by the exchange service
24
- * @returns Workbook data
25
- */
26
- transformSnapshotJsonToWorkbookDataAsync(json: ISnapshotBlockJsonResponse): Promise<IWorkbookData>;
27
- /**
28
- * Transform workbook data to snapshot JSON accepted by the exchange service.
29
- * @param workbookData Workbook data
30
- * @returns Snapshot JSON
31
- */
32
- transformWorkbookDataToSnapshotJsonAsync(workbookData: IWorkbookData): Promise<ISnapshotBlockJson>;
33
- /**
34
- * Import XLSX file to unit id
35
- * @param {string | File} file File path or file object
36
- * @returns {Promise<string | undefined>} A promise that resolves to the unit id
37
- *
38
- * @example
39
- * ```typescript
40
- * // Accepts a File object
41
- * const unitId = await univerAPI.importXLSXToUnitIdAsync(file);
42
- * // Or accepts a URL to a remote file
43
- * // const unitId = await univerAPI.importXLSXToUnitIdAsync('https://example.com/filename.xlsx');
44
- *
45
- * // Utilize automatic data loading in conjunction with collaborative editing. https://docs.univer.ai/en-US/guides/sheets/features/collaboration#loading-collaborative-documents
46
- * const url = new URL(window.location.href);
47
- * const unit = url.searchParams.get('unit');
48
- * url.searchParams.set('unit', unitId);
49
- * url.searchParams.set('type', "2"); // The meaning of "2" is String(UniverInstanceType.UNIVER_SHEET)
50
- * console.log('Unit URL:', url.toString());
51
- *
52
- * // Open the unit in the new window
53
- * window.open(url.toString(), '_blank');
54
- * ```
55
- */
56
- importXLSXToUnitIdAsync(file: string | File): Promise<string | undefined>;
57
- /**
58
- * Import XLSX file to workbook data
59
- * @param {string | File} file File path or file object
60
- * @returns {Promise<IWorkbookData | undefined>} A promise that resolves to the workbook data
61
- *
62
- * @example
63
- * ```typescript
64
- * // Accepts a File object
65
- * const snapshot = await univerAPI.importXLSXToSnapshotAsync(file);
66
- * // Or accepts a URL to a remote file
67
- * // const snapshot = await univerAPI.importXLSXToSnapshotAsync('https://example.com/filename.xlsx');
68
- * console.log('Snapshot created:', snapshot); // see more: https://docs.univer.ai/en-US/guides/sheets/getting-started/workbook-data
69
- *
70
- * // Create a new workbook with the snapshot
71
- * univerAPI.createWorkbook(snapshot);
72
- * ```
73
- */
74
- importXLSXToSnapshotAsync(file: string | File): Promise<IWorkbookData | undefined>;
75
- /**
76
- * Export XLSX file by unit id
77
- * @param {string} unitId Unit id
78
- * @returns {Promise<File | undefined>} A promise that resolves to the XLSX file
79
- *
80
- * @example
81
- * ```typescript
82
- * const fWorkbook = univerAPI.getActiveWorkbook();
83
- * const unitId = fWorkbook.getId();
84
- * const file = await univerAPI.exportXLSXByUnitIdAsync(unitId);
85
- * // or with server-side calculation enabled
86
- * // const file = await univerAPI.exportXLSXByUnitIdAsync(unitId);
87
- *
88
- * // Download the file
89
- * univerAPI.downloadFile(file, 'univer', 'xlsx');
90
- * ```
91
- */
92
- exportXLSXByUnitIdAsync(unitId: string): Promise<File | undefined>;
93
- /**
94
- * Export XLSX file by workbook data
95
- * @param {IWorkbookData} snapshot Workbook data
96
- * @returns {Promise<File | undefined>} A promise that resolves to the XLSX file
97
- *
98
- * @example
99
- * ```typescript
100
- * const fWorkbook = univerAPI.getActiveWorkbook();
101
- * const snapshot = fWorkbook.save();
102
- * const file = await univerAPI.exportXLSXBySnapshotAsync(snapshot);
103
- * // or with server-side calculation enabled
104
- * // const file = await univerAPI.exportXLSXBySnapshotAsync(snapshot, { enableServerCalculation: true });
105
- *
106
- * // Download the file
107
- * univerAPI.downloadFile(file, 'univer', 'xlsx');
108
- * ```
109
- */
110
- exportXLSXBySnapshotAsync(snapshot: IWorkbookData): Promise<File | undefined>;
111
- /**
112
- * Import DOCX file to unit id
113
- * @param {string | File} file File path or file object
114
- * @returns {Promise<string | undefined>} A promise that resolves to the unit id
115
- *
116
- * @example
117
- * ```typescript
118
- * // Accepts a File object
119
- * const unitId = await univerAPI.importDOCXToUnitIdAsync(file);
120
- * // Or accepts a URL to a remote file
121
- * // const unitId = await univerAPI.importDOCXToUnitIdAsync('https://example.com/filename.docx');
122
- *
123
- * const url = new URL(window.location.href);
124
- * const unit = url.searchParams.get('unit');
125
- * url.searchParams.set('unit', unitId);
126
- * url.searchParams.set('type', "1"); // The meaning of "1" is String(UniverInstanceType.UNIVER_DOC)
127
- *
128
- * // Open the unit in the new window
129
- * window.open(url.toString(), '_blank');
130
- * ```
131
- */
132
- importDOCXToUnitIdAsync(file: string | File): Promise<string | undefined>;
133
- /**
134
- * Import DOCX file to document data
135
- * @param {string | File} file File path or file object
136
- * @returns {Promise<IDocumentData | undefined>} A promise that resolves to the document data
137
- *
138
- * @example
139
- * ```typescript
140
- * // Accepts a File object
141
- * const snapshot = await univerAPI.importDOCXToSnapshotAsync(file);
142
- * // Or accepts a URL to a remote file
143
- * // const snapshot = await univerAPI.importDOCXToSnapshotAsync('https://example.com/filename.docx');
144
- * console.log('Snapshot created:', snapshot);
145
- * ```
146
- */
147
- importDOCXToSnapshotAsync(file: string | File): Promise<IDocumentData | undefined>;
148
- /**
149
- * Export DOCX file by snapshot
150
- * @param snapshot Document data
151
- * @returns DOCX file
152
- *
153
- * @example
154
- * ```typescript
155
- * const snapshot = univerAPI.getActiveDocument().save();
156
- * const file = await univerAPI.exportDOCXBySnapshotAsync(snapshot);
157
- * univerAPI.downloadFile(file, 'univer', 'docx');
158
- * ```
159
- */
160
- exportDOCXBySnapshotAsync(snapshot: IDocumentData): Promise<File | undefined>;
161
- /**
162
- * Export DOCX file by unit id
163
- * @param unitId Unit id
164
- * @returns XLSX file
165
- *
166
- * @example
167
- * ```typescript
168
- * const unitId = univerAPI.getActiveWorkbook().getId();
169
- * const file = await univerAPI.exportDOCXByUnitIdAsync(unitId);
170
- * univerAPI.downloadFile(file, 'univer', 'docx');
171
- * ```
172
- */
173
- exportDOCXByUnitIdAsync(unitId: string): Promise<File | undefined>;
174
- /**
175
- * Import PPTX file to unit id
176
- * @param {string | File} file File path or file object
177
- * @returns {Promise<string | undefined>} A promise that resolves to the unit id
178
- *
179
- * @example
180
- * ```typescript
181
- * // Accepts a File object
182
- * const unitId = await univerAPI.importPPTXToUnitIdAsync(file);
183
- * // Or accepts a URL to a remote file
184
- * // const unitId = await univerAPI.importPPTXToUnitIdAsync('https://example.com/filename.pptx');
185
- *
186
- * const url = new URL(window.location.href);
187
- * url.searchParams.set('unit', unitId);
188
- * url.searchParams.set('type', "3"); // The meaning of "3" is String(UniverInstanceType.UNIVER_SLIDE)
189
- *
190
- * // Open the unit in the new window
191
- * window.open(url.toString(), '_blank');
192
- * ```
193
- */
194
- importPPTXToUnitIdAsync(file: string | File): Promise<string | undefined>;
195
- /**
196
- * Import PPTX file to slide data
197
- * @param {string | File} file File path or file object
198
- * @returns {Promise<IExchangeSlideDocumentData | undefined>} A promise that resolves to the slide data
199
- *
200
- * @example
201
- * ```typescript
202
- * // Accepts a File object
203
- * const snapshot = await univerAPI.importPPTXToSnapshotAsync(file);
204
- * // Or accepts a URL to a remote file
205
- * // const snapshot = await univerAPI.importPPTXToSnapshotAsync('https://example.com/filename.pptx');
206
- * console.log('Snapshot created:', snapshot);
207
- * ```
208
- */
209
- importPPTXToSnapshotAsync(file: string | File): Promise<IExchangeSlideDocumentData | undefined>;
210
- /**
211
- * Export PPTX file by unit id
212
- * @param {string} unitId Unit id
213
- * @returns {Promise<File | undefined>} A promise that resolves to the PPTX file
214
- *
215
- * @example
216
- * ```typescript
217
- * const fPresentation = univerAPI.getActivePresentation();
218
- * const unitId = fPresentation.getId();
219
- * const file = await univerAPI.exportPPTXByUnitIdAsync(unitId);
220
- *
221
- * // Download the file
222
- * univerAPI.downloadFile(file, 'univer', 'pptx');
223
- * ```
224
- */
225
- exportPPTXByUnitIdAsync(unitId: string): Promise<File | undefined>;
226
- /**
227
- * Export PPTX file by slide data
228
- * @param {IExchangeSlideDocumentData} snapshot Slide data
229
- * @returns {Promise<File | undefined>} A promise that resolves to the PPTX file
230
- *
231
- * @example
232
- * ```typescript
233
- * const snapshot = univerAPI.getActivePresentation().save();
234
- * const file = await univerAPI.exportPPTXBySnapshotAsync(snapshot);
235
- *
236
- * // Download the file
237
- * univerAPI.downloadFile(file, 'univer', 'pptx');
238
- * ```
239
- */
240
- exportPPTXBySnapshotAsync(snapshot: IExchangeSlideDocumentData): Promise<File | undefined>;
241
20
  }
242
21
  export declare class FUniverExchangeClientMixin extends FUniver implements IFUniverExchangeClientMixin {
243
- /**
244
- * Trigger a browser download for a file or blob.
245
- */
246
22
  downloadFile(file: File | Blob, filename: string, fileExt: string): void;
247
- /**
248
- * Transform snapshot JSON to workbook data.
249
- */
250
- transformSnapshotJsonToWorkbookDataAsync(json: ISnapshotBlockJsonResponse): Promise<IWorkbookData>;
251
- /**
252
- * Transform workbook data to snapshot JSON.
253
- */
254
- transformWorkbookDataToSnapshotJsonAsync(workbookData: IWorkbookData): Promise<ISnapshotBlockJson>;
255
- /**
256
- * Import XLSX file to unit id
257
- */
258
- importXLSXToUnitIdAsync(file: string | File): Promise<string | undefined>;
259
- /**
260
- * Import XLSX file to workbook data
261
- */
262
- importXLSXToSnapshotAsync(file: string | File): Promise<IWorkbookData | undefined>;
263
- /**
264
- * Export XLSX file by unit id
265
- */
266
- exportXLSXByUnitIdAsync(unitId: string): Promise<File | undefined>;
267
- /**
268
- * Export XLSX file by workbook data
269
- */
270
- exportXLSXBySnapshotAsync(snapshot: IWorkbookData): Promise<File | undefined>;
271
- /**
272
- * Import DOCX file to unit id
273
- */
274
- importDOCXToUnitIdAsync(file: string | File): Promise<string | undefined>;
275
- /**
276
- * Import DOCX file to document data
277
- */
278
- importDOCXToSnapshotAsync(file: string | File): Promise<IDocumentData | undefined>;
279
- exportDOCXBySnapshotAsync(snapshot: IDocumentData): Promise<File | undefined>;
280
- exportDOCXByUnitIdAsync(unitId: string): Promise<File | undefined>;
281
- /**
282
- * Import PPTX file to unit id
283
- */
284
- importPPTXToUnitIdAsync(file: string | File): Promise<string | undefined>;
285
- /**
286
- * Import PPTX file to slide data
287
- */
288
- importPPTXToSnapshotAsync(file: string | File): Promise<IExchangeSlideDocumentData | undefined>;
289
- /**
290
- * Export PPTX file by unit id
291
- */
292
- exportPPTXByUnitIdAsync(unitId: string): Promise<File | undefined>;
293
- /**
294
- * Export PPTX file by slide data
295
- */
296
- exportPPTXBySnapshotAsync(snapshot: IExchangeSlideDocumentData): Promise<File | undefined>;
297
23
  }
298
24
  declare module '@univerjs/core/facade' {
299
25
  interface FUniver extends IFUniverExchangeClientMixin {
@@ -1,7 +1,10 @@
1
1
  import './global.css';
2
- export type { IUniverExchangeClientOptions } from './config/config';
3
2
  export { UniverExchangeClientPlugin } from './plugin';
4
3
  export { IExchangeService } from './services/exchange.service';
5
4
  export { IExchangeOperateService } from './services/operate.service';
5
+ export { ExchangeBaseExportMode, ExchangeBaseFormulaPolicy, ExchangeBaseImportMode, ExchangeFormat, ImportOutputType, } from './services/request.service';
6
+ export type { IExchangeBaseExportOption, IExchangeBaseImportOption, IExchangeExportOptions, IExchangeImportOptions, IExchangeSheetExportOption, IExchangeSheetImportOption, IExportRequest, IImportRequest, } from './services/request.service';
6
7
  export { isCurrentUnitLoadedFromServer } from './services/utils/collaboration';
7
- export type { IExchangeSlideDocumentData, IPdfMetaJson, ISnapshotBlockJson, ISnapshotBlockJsonResponse, } from './services/utils/snapshot';
8
+ export { ClientSnapshotServerService, transformSheetBlockMetaToString, transformWorkbookSnapshotMetaToString, } from './services/utils/snapshot';
9
+ export type { ISnapshotBlockJson, ISnapshotBlockJsonResponse, ISnapshotJson, } from './services/utils/snapshot';
10
+ export { EXPORT_FORMAT_DIALOG } from './views/export-format-dialog/ExportFormatDialog';
@@ -13,6 +13,7 @@ declare const locale: {
13
13
  fileTypeError: string;
14
14
  wait: string;
15
15
  cancel: string;
16
+ confirm: string;
16
17
  uploadAgain: string;
17
18
  };
18
19
  };
@@ -1,10 +1,9 @@
1
- import type { IPdfUnitData } from '@univerjs-pro/pdfs';
2
- import type { IDisposable, IDocumentData, IWorkbookData } from '@univerjs/core';
1
+ import type { IDisposable, UniverInstanceType } from '@univerjs/core';
3
2
  import type { IError } from '@univerjs/protocol';
4
3
  import type { Observable } from 'rxjs';
5
- import type { RequestService } from './request.service';
6
- import type { IExchangeSlideDocumentData, ISnapshotBlockJson, ISnapshotBlockJsonResponse } from './utils/snapshot';
7
- import { Disposable, IConfigService, UniverInstanceType } from '@univerjs/core';
4
+ import type { ExchangeFormat, IExchangeExportOptions, IExchangeImportOptions, RequestService } from './request.service';
5
+ import type { ISnapshotBlockJson } from './utils/snapshot';
6
+ import { Disposable, IConfigService } from '@univerjs/core';
8
7
  import { HTTPService } from '@univerjs/network';
9
8
  export declare enum RequestState {
10
9
  UPLOAD = 0,
@@ -25,68 +24,16 @@ export interface IExchangeService {
25
24
  * Download a file in the browser.
26
25
  */
27
26
  downloadFile(file: File | Blob, filename: string, fileExt: string): void;
28
- /**
29
- * Transform snapshot JSON to workbook data.
30
- */
31
- transformSnapshotJsonToWorkbookData(json: ISnapshotBlockJsonResponse): Promise<IWorkbookData>;
32
- /**
33
- * Transform workbook data to snapshot JSON.
34
- */
35
- transformWorkbookDataToSnapshotJson(workbookData: IWorkbookData): Promise<ISnapshotBlockJson>;
36
- /**
37
- * Import XLSX file to workbook data
38
- */
39
- importXLSXToSnapshot(file: File | string): Promise<IWorkbookData | undefined>;
40
- /**
41
- * Export XLSX file by unit id
42
- */
43
- exportXLSXByUnitId(unitId: string): Promise<File | undefined>;
44
- /**
45
- * Export XLSX file by workbook data
46
- */
47
- exportXLSXBySnapshot(snapshot: IWorkbookData): Promise<File | undefined>;
48
- /**
49
- * Import DOCX file to document data
50
- */
51
- importDOCXToSnapshot(file: File | string): Promise<IDocumentData | undefined>;
52
- /**
53
- * Export DOCX file by unit id
54
- */
55
- exportDOCXByUnitId(unitId: string): Promise<File | undefined>;
56
- /**
57
- * Export DOCX file by document data
58
- */
59
- exportDOCXBySnapshot(snapshot: IDocumentData): Promise<File | undefined>;
60
- /**
61
- * Import PPTX file to slide data
62
- */
63
- importPPTXToSnapshot(file: File | string): Promise<IExchangeSlideDocumentData | undefined>;
64
- /**
65
- * Export PPTX file by unit id
66
- */
67
- exportPPTXByUnitId(unitId: string): Promise<File | undefined>;
68
- /**
69
- * Export PPTX file by slide data
70
- */
71
- exportPPTXBySnapshot(snapshot: IExchangeSlideDocumentData): Promise<File | undefined>;
72
- /** Import PDF file to PDF unit data. */
73
- importPDFToSnapshot(file: File | string): Promise<IPdfUnitData | undefined>;
74
- /** Export PDF file by unit id. */
75
- exportPDFByUnitId(unitId: string): Promise<File | undefined>;
76
- /** Export PDF file by PDF unit data. */
77
- exportPDFBySnapshot(snapshot: IPdfUnitData): Promise<File | undefined>;
27
+ exportFileByUnitId(unitId: string, univerType: UniverInstanceType, format: ExchangeFormat, options?: IExchangeExportOptions): Promise<File | undefined>;
28
+ exportFileBySnapshot(snapshot: ISnapshotBlockJson, univerType: UniverInstanceType, format: ExchangeFormat, options?: IExchangeExportOptions): Promise<File | undefined>;
78
29
  /**
79
30
  * Import file to unit id
80
31
  */
81
- importFileToUnitId(file: File | string, univerType: UniverInstanceType): Promise<string | undefined>;
32
+ importFileToUnitId(file: File | string, univerType: UniverInstanceType, options?: IExchangeImportOptions): Promise<string | undefined>;
82
33
  /**
83
34
  * Import file to json without creating a unit
84
35
  */
85
- importFileToJson<T = unknown>(file: File | string, univerType: UniverInstanceType): Promise<T | undefined>;
86
- /**
87
- * Import workbook data to unit id
88
- */
89
- importWorkbookDataToUnitId(snapshot: IWorkbookData): Promise<string | undefined>;
36
+ importFileToJson<T = unknown>(file: File | string, univerType: UniverInstanceType, options?: IExchangeImportOptions): Promise<T | undefined>;
90
37
  interruptImportTask(): void;
91
38
  }
92
39
  export declare const IExchangeService: import("@wendellhu/redi").IdentifierDecorator<IExchangeService>;
@@ -100,23 +47,10 @@ export declare class ExchangeService extends Disposable implements IExchangeServ
100
47
  constructor(_configService: IConfigService, _httpService: HTTPService, _requestService: RequestService);
101
48
  dispose(): void;
102
49
  downloadFile(file: File | Blob, filename: string, fileExt: string): void;
103
- transformSnapshotJsonToWorkbookData(json: ISnapshotBlockJsonResponse): Promise<IWorkbookData>;
104
- transformWorkbookDataToSnapshotJson(workbookData: IWorkbookData): Promise<ISnapshotBlockJson>;
105
- importDOCXToSnapshot(file: File | string): Promise<IDocumentData | undefined>;
106
- exportDOCXByUnitId(unitId: string): Promise<File | undefined>;
107
- exportDOCXBySnapshot(data: IDocumentData): Promise<File | undefined>;
108
- importPPTXToSnapshot(file: File | string): Promise<IExchangeSlideDocumentData | undefined>;
109
- exportPPTXByUnitId(unitId: string): Promise<File | undefined>;
110
- exportPPTXBySnapshot(data: IExchangeSlideDocumentData): Promise<File | undefined>;
111
- importPDFToSnapshot(file: File | string): Promise<IPdfUnitData | undefined>;
112
- exportPDFByUnitId(unitId: string): Promise<File | undefined>;
113
- exportPDFBySnapshot(data: IPdfUnitData): Promise<File | undefined>;
114
- importXLSXToSnapshot(file: File | string): Promise<IWorkbookData | undefined>;
115
- exportXLSXByUnitId(unitId: string): Promise<File | undefined>;
116
- exportXLSXBySnapshot(data: IWorkbookData): Promise<File | undefined>;
117
- importFileToUnitId(file: File | string, univerType: UniverInstanceType): Promise<string | undefined>;
118
- importFileToJson<T = unknown>(file: File | string, univerType: UniverInstanceType): Promise<T | undefined>;
119
- importWorkbookDataToUnitId(snapshot: IWorkbookData): Promise<string | undefined>;
50
+ importFileToUnitId(file: File | string, univerType: UniverInstanceType, options?: IExchangeImportOptions): Promise<string | undefined>;
51
+ importFileToJson<T = unknown>(file: File | string, univerType: UniverInstanceType, options?: IExchangeImportOptions): Promise<T | undefined>;
52
+ exportFileByUnitId(unitId: string, univerType: UniverInstanceType, format: ExchangeFormat, options?: IExchangeExportOptions): Promise<File | undefined>;
53
+ exportFileBySnapshot(snapshot: ISnapshotBlockJson, univerType: UniverInstanceType, format: ExchangeFormat, options?: IExchangeExportOptions): Promise<File | undefined>;
120
54
  interruptImportTask(): void;
121
55
  private _importToJson;
122
56
  /**
@@ -131,8 +65,4 @@ export declare class ExchangeService extends Disposable implements IExchangeServ
131
65
  private _import;
132
66
  private _signUrl;
133
67
  private _getDownloadEndpointURL;
134
- private _getMinSheetRowCount;
135
- private _getMinSheetColumnCount;
136
- private _getDisableCellImageConversion;
137
- private _getIgnoreTableExport;
138
68
  }