@univerjs-pro/exchange-client 0.5.0-nightly.202411121606 → 0.5.0-nightly.202411141606

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 (54) 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/ru-RU.js +1 -1
  6. package/lib/cjs/locale/vi-VN.js +1 -1
  7. package/lib/cjs/locale/zh-CN.js +1 -1
  8. package/lib/cjs/locale/zh-TW.js +1 -1
  9. package/lib/es/facade.js +1 -1
  10. package/lib/es/index.js +2 -2
  11. package/lib/es/locale/en-US.js +1 -1
  12. package/lib/es/locale/fa-IR.js +1 -1
  13. package/lib/es/locale/ru-RU.js +1 -1
  14. package/lib/es/locale/vi-VN.js +1 -1
  15. package/lib/es/locale/zh-CN.js +1 -1
  16. package/lib/es/locale/zh-TW.js +1 -1
  17. package/lib/types/controllers/config.schema.d.ts +16 -0
  18. package/lib/types/controllers/exchange.controller.d.ts +8 -0
  19. package/lib/types/facade/f-univer.d.ts +36 -0
  20. package/lib/types/facade/index.d.ts +1 -0
  21. package/lib/types/index.d.ts +10 -483
  22. package/lib/types/locale/en-US.d.ts +3 -0
  23. package/lib/types/locale/fa-IR.d.ts +3 -0
  24. package/lib/types/locale/ru-RU.d.ts +3 -0
  25. package/lib/types/locale/vi-VN.d.ts +3 -0
  26. package/lib/types/locale/zh-CN.d.ts +21 -0
  27. package/lib/types/locale/zh-TW.d.ts +3 -0
  28. package/lib/types/plugin.d.ts +11 -0
  29. package/lib/types/services/__tests__/snapshot.spec.d.ts +1 -0
  30. package/lib/types/services/exchange.service.d.ts +87 -0
  31. package/lib/types/services/operate.service.d.ts +121 -0
  32. package/lib/types/services/request.service.d.ts +107 -0
  33. package/lib/types/services/upload-notification.service.d.ts +52 -0
  34. package/lib/types/services/utils/snapshot.d.ts +76 -0
  35. package/lib/types/services/utils/tool.d.ts +19 -0
  36. package/lib/types/views/UploadNotificationContainer.d.ts +2 -0
  37. package/lib/types/views/link-list/LinkList.d.ts +6 -0
  38. package/lib/types/views/upload-again/UploadAgain.d.ts +2 -0
  39. package/lib/types/views/upload-button/UploadButton.d.ts +7 -0
  40. package/lib/types/views/upload-error/UploadError.d.ts +2 -0
  41. package/lib/types/views/upload-notification/UploadNotification.d.ts +2 -0
  42. package/lib/types/views/upload-success/UploadSuccess.d.ts +5 -0
  43. package/lib/types/views/uploading/Uploading.d.ts +2 -0
  44. package/lib/types/views/uploading/upload-cancel/UploadCancel.d.ts +2 -0
  45. package/lib/types/views/uploading/upload-progress/UploadProgress.d.ts +5 -0
  46. package/lib/umd/facade.js +1 -1
  47. package/lib/umd/index.js +2 -2
  48. package/lib/umd/locale/en-US.js +1 -1
  49. package/lib/umd/locale/fa-IR.js +1 -1
  50. package/lib/umd/locale/ru-RU.js +1 -1
  51. package/lib/umd/locale/vi-VN.js +1 -1
  52. package/lib/umd/locale/zh-CN.js +1 -1
  53. package/lib/umd/locale/zh-TW.js +1 -1
  54. package/package.json +6 -6
@@ -1 +1 @@
1
- const _0x1af747=_0x1cb8;function _0x1cb8(_0x3fb86d,_0xe8a6eb){const _0x22b46d=_0x22b4();return _0x1cb8=function(_0x1cb858,_0x574092){_0x1cb858=_0x1cb858-0x1be;let _0x40afe3=_0x22b46d[_0x1cb858];return _0x40afe3;},_0x1cb8(_0x3fb86d,_0xe8a6eb);}(function(_0x4df9a,_0x9ddf2e){const _0x59b85a=_0x1cb8,_0xe80e30=_0x4df9a();while(!![]){try{const _0x54ce31=-parseInt(_0x59b85a(0x1c9))/0x1*(-parseInt(_0x59b85a(0x1bf))/0x2)+-parseInt(_0x59b85a(0x1cb))/0x3*(-parseInt(_0x59b85a(0x1cf))/0x4)+parseInt(_0x59b85a(0x1cc))/0x5+-parseInt(_0x59b85a(0x1c6))/0x6+parseInt(_0x59b85a(0x1c8))/0x7*(-parseInt(_0x59b85a(0x1c7))/0x8)+parseInt(_0x59b85a(0x1d1))/0x9+parseInt(_0x59b85a(0x1d2))/0xa*(-parseInt(_0x59b85a(0x1d0))/0xb);if(_0x54ce31===_0x9ddf2e)break;else _0xe80e30['push'](_0xe80e30['shift']());}catch(_0x5d66c4){_0xe80e30['push'](_0xe80e30['shift']());}}}(_0x22b4,0x2642f));function _0x22b4(){const _0x19ef7e=['3065744BnqEue','1909809WBTbzz','10XQbPqW','Download\x20success','8BnGHpo','Downloading','Open(File)','Uploading','Cancel','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed.','Unknown\x20mistake','277548PUBusI','8uVfCeF','826686zGVKnf','52356QTNWwG','Save\x20As','6KtDlNW','456870zDVJaM','Upload\x20again','{0}\x20file(s)\x20uploaded\x20successfully','173560HGGBTo'];_0x22b4=function(){return _0x19ef7e;};return _0x22b4();}const e={'exchange':{'file':'File','upload':_0x1af747(0x1c1),'download':_0x1af747(0x1ca),'uploading':_0x1af747(0x1c2),'uploadSuccess':'File\x20uploaded\x20successfully','uploadSuccessTip':_0x1af747(0x1ce),'downloading':_0x1af747(0x1c0),'downloadSuccess':_0x1af747(0x1be),'unknownMistake':_0x1af747(0x1c5),'networkError':'Network\x20error','tooLarge':'Data\x20is\x20too\x20large','internalError':'Internal\x20unknown\x20error','interrupt':_0x1af747(0x1c4),'wait':'Please\x20wait...','cancel':_0x1af747(0x1c3),'uploadAgain':_0x1af747(0x1cd)}};export{e as default};
1
+ const _0x2a2d38=_0x5c13;(function(_0x39b583,_0x4671cd){const _0x5704a8=_0x5c13,_0x944864=_0x39b583();while(!![]){try{const _0x47cef7=parseInt(_0x5704a8(0x12b))/0x1+-parseInt(_0x5704a8(0x126))/0x2*(-parseInt(_0x5704a8(0x123))/0x3)+-parseInt(_0x5704a8(0x136))/0x4+parseInt(_0x5704a8(0x137))/0x5*(-parseInt(_0x5704a8(0x132))/0x6)+-parseInt(_0x5704a8(0x128))/0x7+-parseInt(_0x5704a8(0x130))/0x8+parseInt(_0x5704a8(0x127))/0x9*(parseInt(_0x5704a8(0x12a))/0xa);if(_0x47cef7===_0x4671cd)break;else _0x944864['push'](_0x944864['shift']());}catch(_0x3e7385){_0x944864['push'](_0x944864['shift']());}}}(_0x57dc,0x48dda));const e={'exchange':{'file':_0x2a2d38(0x12c),'upload':_0x2a2d38(0x12e),'download':_0x2a2d38(0x12f),'uploading':_0x2a2d38(0x133),'uploadSuccess':'File\x20uploaded\x20successfully','uploadSuccessTip':_0x2a2d38(0x124),'downloading':'Downloading','downloadSuccess':_0x2a2d38(0x12d),'unknownMistake':'Unknown\x20mistake','networkError':'Network\x20error','tooLarge':_0x2a2d38(0x129),'internalError':_0x2a2d38(0x131),'interrupt':_0x2a2d38(0x134),'wait':_0x2a2d38(0x122),'cancel':_0x2a2d38(0x135),'uploadAgain':_0x2a2d38(0x125)}};function _0x5c13(_0x2de262,_0x4b351f){const _0x57dcd0=_0x57dc();return _0x5c13=function(_0x5c138e,_0x561810){_0x5c138e=_0x5c138e-0x122;let _0x1f47cf=_0x57dcd0[_0x5c138e];return _0x1f47cf;},_0x5c13(_0x2de262,_0x4b351f);}export{e as default};function _0x57dc(){const _0x397c6f=['Data\x20is\x20too\x20large','110tMBwCn','127317pdqZoR','File','Download\x20success','Open(File)','Save\x20As','1919512EYCkFX','Internal\x20unknown\x20error','72HcVLzS','Uploading','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed.','Cancel','1446728SpcYDD','36555HoDsZD','Please\x20wait...','699648GmPlgF','{0}\x20file(s)\x20uploaded\x20successfully','Upload\x20again','2dDLOQw','917613ujhNDj','3459743zjiygO'];_0x57dc=function(){return _0x397c6f;};return _0x57dc();}
@@ -1 +1 @@
1
- const _0x2421e0=_0x19c0;(function(_0x400f70,_0x4cf36a){const _0x43d2eb=_0x19c0,_0x22d6a9=_0x400f70();while(!![]){try{const _0x31e437=-parseInt(_0x43d2eb(0x19e))/0x1+parseInt(_0x43d2eb(0x191))/0x2*(-parseInt(_0x43d2eb(0x1a1))/0x3)+parseInt(_0x43d2eb(0x1a4))/0x4*(parseInt(_0x43d2eb(0x196))/0x5)+parseInt(_0x43d2eb(0x198))/0x6*(parseInt(_0x43d2eb(0x1a2))/0x7)+-parseInt(_0x43d2eb(0x19c))/0x8+parseInt(_0x43d2eb(0x199))/0x9+parseInt(_0x43d2eb(0x197))/0xa*(-parseInt(_0x43d2eb(0x194))/0xb);if(_0x31e437===_0x4cf36a)break;else _0x22d6a9['push'](_0x22d6a9['shift']());}catch(_0xe9ecf1){_0x22d6a9['push'](_0x22d6a9['shift']());}}}(_0x2f50,0xda564));function _0x19c0(_0x42891c,_0x2d17a6){const _0x2f50ff=_0x2f50();return _0x19c0=function(_0x19c0e5,_0x2c2d78){_0x19c0e5=_0x19c0e5-0x191;let _0x3d5386=_0x2f50ff[_0x19c0e5];return _0x3d5386;},_0x19c0(_0x42891c,_0x2d17a6);}const o={'exchange':{'file':_0x2421e0(0x193),'upload':_0x2421e0(0x19f),'download':'ذخیره\x20به\x20عنوان','uploading':'در\x20حال\x20بارگذاری','uploadSuccess':_0x2421e0(0x192),'uploadSuccessTip':_0x2421e0(0x19b),'downloading':_0x2421e0(0x1a5),'downloadSuccess':_0x2421e0(0x19a),'unknownMistake':'خطای\x20ناشناخته','networkError':'خطای\x20شبکه','tooLarge':_0x2421e0(0x195),'internalError':_0x2421e0(0x19d),'interrupt':_0x2421e0(0x1a3),'wait':'لطفا\x20صبر\x20کنید...','cancel':'لغو','uploadAgain':_0x2421e0(0x1a0)}};export{o as default};function _0x2f50(){const _0x9ecb1=['273272VjLkXn','خطای\x20داخلی\x20ناشناخته','1652144unBlgA','بازکردن(فایل)','بارگذاری\x20مجدد','42XXbgrT','1894676qJtBdM','اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','805044UWVDVt','در\x20حال\x20دانلود','40226JHzEsR','فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','فایل','44cSdgeV','داده\x20خیلی\x20بزرگ\x20است','10zBMYRz','273230YvGnLH','36mRFdwu','8504595wvaBis','دانلود\x20موفقیت\x20آمیز','{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد'];_0x2f50=function(){return _0x9ecb1;};return _0x2f50();}
1
+ const _0xd0d2f5=_0x51ef;(function(_0x39623b,_0x2b6367){const _0x3e9de2=_0x51ef,_0x5139d2=_0x39623b();while(!![]){try{const _0x2ae183=-parseInt(_0x3e9de2(0x7c))/0x1*(parseInt(_0x3e9de2(0x75))/0x2)+parseInt(_0x3e9de2(0x74))/0x3+parseInt(_0x3e9de2(0x85))/0x4+-parseInt(_0x3e9de2(0x79))/0x5+parseInt(_0x3e9de2(0x7d))/0x6*(-parseInt(_0x3e9de2(0x73))/0x7)+-parseInt(_0x3e9de2(0x80))/0x8+parseInt(_0x3e9de2(0x83))/0x9;if(_0x2ae183===_0x2b6367)break;else _0x5139d2['push'](_0x5139d2['shift']());}catch(_0x8d083){_0x5139d2['push'](_0x5139d2['shift']());}}}(_0x5d12,0x82428));const o={'exchange':{'file':_0xd0d2f5(0x72),'upload':'بازکردن(فایل)','download':_0xd0d2f5(0x84),'uploading':'در\x20حال\x20بارگذاری','uploadSuccess':_0xd0d2f5(0x81),'uploadSuccessTip':'{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','downloading':_0xd0d2f5(0x7a),'downloadSuccess':_0xd0d2f5(0x77),'unknownMistake':_0xd0d2f5(0x78),'networkError':_0xd0d2f5(0x7b),'tooLarge':_0xd0d2f5(0x76),'internalError':'خطای\x20داخلی\x20ناشناخته','interrupt':_0xd0d2f5(0x7f),'wait':_0xd0d2f5(0x7e),'cancel':'لغو','uploadAgain':_0xd0d2f5(0x82)}};export{o as default};function _0x51ef(_0x1a2641,_0x4d2996){const _0x5d12dd=_0x5d12();return _0x51ef=function(_0x51efe6,_0x5b3ed1){_0x51efe6=_0x51efe6-0x72;let _0x41aee7=_0x5d12dd[_0x51efe6];return _0x41aee7;},_0x51ef(_0x1a2641,_0x4d2996);}function _0x5d12(){const _0x1da1a5=['2082XZIxsE','لطفا\x20صبر\x20کنید...','اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','6382880ZkUAIO','فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','بارگذاری\x20مجدد','13684869USsRgO','ذخیره\x20به\x20عنوان','1883356EFPAIw','فایل','15295bJviDn','2438208YyrbvP','254872EDuAtn','داده\x20خیلی\x20بزرگ\x20است','دانلود\x20موفقیت\x20آمیز','خطای\x20ناشناخته','1661045UTtEtc','در\x20حال\x20دانلود','خطای\x20شبکه','3Otrlmf'];_0x5d12=function(){return _0x1da1a5;};return _0x5d12();}
@@ -1 +1 @@
1
- const _0x35b46a=_0x5751;(function(_0x3437f3,_0x7dc9fa){const _0x1cecfb=_0x5751,_0x48710c=_0x3437f3();while(!![]){try{const _0x3e8ac9=parseInt(_0x1cecfb(0x189))/0x1+-parseInt(_0x1cecfb(0x18c))/0x2+parseInt(_0x1cecfb(0x185))/0x3*(-parseInt(_0x1cecfb(0x18b))/0x4)+parseInt(_0x1cecfb(0x18a))/0x5*(-parseInt(_0x1cecfb(0x17f))/0x6)+-parseInt(_0x1cecfb(0x183))/0x7*(-parseInt(_0x1cecfb(0x190))/0x8)+-parseInt(_0x1cecfb(0x194))/0x9+parseInt(_0x1cecfb(0x188))/0xa;if(_0x3e8ac9===_0x7dc9fa)break;else _0x48710c['push'](_0x48710c['shift']());}catch(_0x10fdd3){_0x48710c['push'](_0x48710c['shift']());}}}(_0x2394,0x889f6));const o={'exchange':{'file':_0x35b46a(0x186),'upload':'Открыть(Файл)','download':_0x35b46a(0x181),'uploading':_0x35b46a(0x18e),'uploadSuccess':'Файл\x20успешно\x20загружен','uploadSuccessTip':_0x35b46a(0x184),'downloading':_0x35b46a(0x17e),'downloadSuccess':'Скачивание\x20успешно','unknownMistake':_0x35b46a(0x187),'networkError':_0x35b46a(0x191),'tooLarge':_0x35b46a(0x180),'internalError':_0x35b46a(0x18d),'interrupt':_0x35b46a(0x18f),'wait':_0x35b46a(0x192),'cancel':_0x35b46a(0x193),'uploadAgain':_0x35b46a(0x182)}};function _0x2394(){const _0x1e1037=['5jfNeBm','1083884OCbBKx','1020560usqSUh','Внутренняя\x20неизвестная\x20ошибка','Загрузка','Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась.','8NJTQte','Сетевая\x20ошибка','Пожалуйста,\x20подождите...','Отмена','4757355jgpVmp','Скачивание','364578hyhtNc','Данные\x20слишком\x20большие','Сохранить\x20как','Загрузить\x20снова','4670085txmdpe','{0}\x20файл(ов)\x20успешно\x20загружен(о)','3CFUehA','Файл','Неизвестная\x20ошибка','2519020qjgHFa','1011158BqTLNp'];_0x2394=function(){return _0x1e1037;};return _0x2394();}function _0x5751(_0x273236,_0x5658d5){const _0x23944d=_0x2394();return _0x5751=function(_0x57513d,_0x1feb0b){_0x57513d=_0x57513d-0x17e;let _0x3122cc=_0x23944d[_0x57513d];return _0x3122cc;},_0x5751(_0x273236,_0x5658d5);}export{o as default};
1
+ function _0xe891(_0x3787cf,_0xc40c18){const _0x37bbc9=_0x37bb();return _0xe891=function(_0xe89101,_0x2535f7){_0xe89101=_0xe89101-0x195;let _0x17862f=_0x37bbc9[_0xe89101];return _0x17862f;},_0xe891(_0x3787cf,_0xc40c18);}const _0x42db52=_0xe891;(function(_0x3262bc,_0x1c2c46){const _0xb7bd2b=_0xe891,_0xf5bc10=_0x3262bc();while(!![]){try{const _0x554047=-parseInt(_0xb7bd2b(0x19a))/0x1+-parseInt(_0xb7bd2b(0x1a3))/0x2*(parseInt(_0xb7bd2b(0x19c))/0x3)+-parseInt(_0xb7bd2b(0x1a0))/0x4+-parseInt(_0xb7bd2b(0x19f))/0x5*(-parseInt(_0xb7bd2b(0x1ab))/0x6)+parseInt(_0xb7bd2b(0x19b))/0x7+-parseInt(_0xb7bd2b(0x1a9))/0x8+-parseInt(_0xb7bd2b(0x199))/0x9*(-parseInt(_0xb7bd2b(0x1a5))/0xa);if(_0x554047===_0x1c2c46)break;else _0xf5bc10['push'](_0xf5bc10['shift']());}catch(_0x441ab2){_0xf5bc10['push'](_0xf5bc10['shift']());}}}(_0x37bb,0x6578c));function _0x37bb(){const _0x1022b4=['1474ArYFBL','Открыть(Файл)','7729130xezrrf','{0}\x20файл(ов)\x20успешно\x20загружен(о)','Загрузить\x20снова','Файл','1914816JSPkZr','Данные\x20слишком\x20большие','6YvgMOs','Загрузка','Скачивание','Пожалуйста,\x20подождите...','Сохранить\x20как','9CDLUUl','725432kwhLDY','4286268XZjjzQ','1515AxWkuG','Отмена','Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась.','3353135MGNEUT','1213068WdTjXR','Сетевая\x20ошибка','Файл\x20успешно\x20загружен'];_0x37bb=function(){return _0x1022b4;};return _0x37bb();}const o={'exchange':{'file':_0x42db52(0x1a8),'upload':_0x42db52(0x1a4),'download':_0x42db52(0x198),'uploading':_0x42db52(0x195),'uploadSuccess':_0x42db52(0x1a2),'uploadSuccessTip':_0x42db52(0x1a6),'downloading':_0x42db52(0x196),'downloadSuccess':'Скачивание\x20успешно','unknownMistake':'Неизвестная\x20ошибка','networkError':_0x42db52(0x1a1),'tooLarge':_0x42db52(0x1aa),'internalError':'Внутренняя\x20неизвестная\x20ошибка','interrupt':_0x42db52(0x19e),'wait':_0x42db52(0x197),'cancel':_0x42db52(0x19d),'uploadAgain':_0x42db52(0x1a7)}};export{o as default};
@@ -1 +1 @@
1
- function _0x2d17(_0x8004d4,_0x5fb302){const _0x309321=_0x3093();return _0x2d17=function(_0x2d1757,_0x2cc8d0){_0x2d1757=_0x2d1757-0x6d;let _0x3e3290=_0x309321[_0x2d1757];return _0x3e3290;},_0x2d17(_0x8004d4,_0x5fb302);}function _0x3093(){const _0x13a907=['11401522YjsPOv','Lỗi\x20mạng','70VoYnXR','269802VRcBxA','Hủy\x20bỏ','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','Tải\x20xuống\x20thành\x20công','440800mULhfc','Đang\x20tải\x20lên','1864vVUcfM','Lỗi\x20không\x20xác\x20định\x20bên\x20trong','2mnRlTx','6727LxoCVB','7505LvGasY','1578ALJtDi','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại.','937602wYFIsy','511283tmCcmw','Mở\x20(Tệp)','Đang\x20tải\x20xuống','Lưu\x20dưới\x20dạng'];_0x3093=function(){return _0x13a907;};return _0x3093();}const _0x2fa6d5=_0x2d17;(function(_0x305617,_0x4669ee){const _0x548655=_0x2d17,_0x2b12a1=_0x305617();while(!![]){try{const _0x591591=-parseInt(_0x548655(0x80))/0x1*(parseInt(_0x548655(0x7a))/0x2)+parseInt(_0x548655(0x7f))/0x3+-parseInt(_0x548655(0x76))/0x4+parseInt(_0x548655(0x7c))/0x5*(-parseInt(_0x548655(0x7d))/0x6)+-parseInt(_0x548655(0x7b))/0x7*(parseInt(_0x548655(0x78))/0x8)+-parseInt(_0x548655(0x72))/0x9*(-parseInt(_0x548655(0x71))/0xa)+parseInt(_0x548655(0x6f))/0xb;if(_0x591591===_0x4669ee)break;else _0x2b12a1['push'](_0x2b12a1['shift']());}catch(_0x4b8c2b){_0x2b12a1['push'](_0x2b12a1['shift']());}}}(_0x3093,0x4dd03));const n={'exchange':{'file':'Tệp','upload':_0x2fa6d5(0x81),'download':_0x2fa6d5(0x6e),'uploading':_0x2fa6d5(0x77),'uploadSuccess':'Tải\x20lên\x20tệp\x20thành\x20công','uploadSuccessTip':_0x2fa6d5(0x74),'downloading':_0x2fa6d5(0x6d),'downloadSuccess':_0x2fa6d5(0x75),'unknownMistake':'Lỗi\x20không\x20xác\x20định','networkError':_0x2fa6d5(0x70),'tooLarge':'Luồng\x20dữ\x20liệu\x20quá\x20lớn','internalError':_0x2fa6d5(0x79),'interrupt':_0x2fa6d5(0x7e),'wait':'Vui\x20lòng\x20đợi...','cancel':_0x2fa6d5(0x73),'uploadAgain':'Tải\x20lên\x20lại'}};export{n as default};
1
+ const _0x45bc38=_0x5a86;function _0x5f06(){const _0x3d481e=['216189yRRcUB','Mở\x20(Tệp)','Lỗi\x20mạng','Lưu\x20dưới\x20dạng','3060185YjKglG','831092VywoMJ','Tải\x20lên\x20tệp\x20thành\x20công','Vui\x20lòng\x20đợi...','3399192hWPdkw','972912hzVkrZ','Hủy\x20bỏ','201546MelGHX','Tải\x20lên\x20lại','Đang\x20tải\x20lên','Lỗi\x20không\x20xác\x20định\x20bên\x20trong','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại.','Lỗi\x20không\x20xác\x20định','5819046VvCevf','119SRvEiD','Đang\x20tải\x20xuống','Tệp'];_0x5f06=function(){return _0x3d481e;};return _0x5f06();}function _0x5a86(_0x54ff80,_0x3359a7){const _0x5f060f=_0x5f06();return _0x5a86=function(_0x5a86c8,_0x1c6839){_0x5a86c8=_0x5a86c8-0xd6;let _0x24ecd7=_0x5f060f[_0x5a86c8];return _0x24ecd7;},_0x5a86(_0x54ff80,_0x3359a7);}(function(_0x441833,_0x58bf67){const _0x4b4955=_0x5a86,_0x3811e5=_0x441833();while(!![]){try{const _0xafd189=-parseInt(_0x4b4955(0xe4))/0x1+parseInt(_0x4b4955(0xea))/0x2+-parseInt(_0x4b4955(0xdf))/0x3+parseInt(_0x4b4955(0xe7))/0x4+-parseInt(_0x4b4955(0xe3))/0x5+-parseInt(_0x4b4955(0xdb))/0x6+parseInt(_0x4b4955(0xdc))/0x7*(parseInt(_0x4b4955(0xe8))/0x8);if(_0xafd189===_0x58bf67)break;else _0x3811e5['push'](_0x3811e5['shift']());}catch(_0x4a9f2c){_0x3811e5['push'](_0x3811e5['shift']());}}}(_0x5f06,0x821f0));const n={'exchange':{'file':_0x45bc38(0xde),'upload':_0x45bc38(0xe0),'download':_0x45bc38(0xe2),'uploading':_0x45bc38(0xd7),'uploadSuccess':_0x45bc38(0xe5),'uploadSuccessTip':'{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','downloading':_0x45bc38(0xdd),'downloadSuccess':'Tải\x20xuống\x20thành\x20công','unknownMistake':_0x45bc38(0xda),'networkError':_0x45bc38(0xe1),'tooLarge':'Luồng\x20dữ\x20liệu\x20quá\x20lớn','internalError':_0x45bc38(0xd8),'interrupt':_0x45bc38(0xd9),'wait':_0x45bc38(0xe6),'cancel':_0x45bc38(0xe9),'uploadAgain':_0x45bc38(0xd6)}};export{n as default};
@@ -1 +1 @@
1
- const _0x3804a4=_0x32ed;(function(_0x592ae5,_0x577b2b){const _0x2871f3=_0x32ed,_0xcf2de=_0x592ae5();while(!![]){try{const _0x5a1104=-parseInt(_0x2871f3(0x88))/0x1*(-parseInt(_0x2871f3(0x83))/0x2)+parseInt(_0x2871f3(0x8c))/0x3*(-parseInt(_0x2871f3(0x7e))/0x4)+parseInt(_0x2871f3(0x8b))/0x5+-parseInt(_0x2871f3(0x82))/0x6*(parseInt(_0x2871f3(0x7b))/0x7)+-parseInt(_0x2871f3(0x8f))/0x8*(parseInt(_0x2871f3(0x85))/0x9)+-parseInt(_0x2871f3(0x7d))/0xa*(parseInt(_0x2871f3(0x81))/0xb)+parseInt(_0x2871f3(0x87))/0xc*(parseInt(_0x2871f3(0x86))/0xd);if(_0x5a1104===_0x577b2b)break;else _0xcf2de['push'](_0xcf2de['shift']());}catch(_0x442876){_0xcf2de['push'](_0xcf2de['shift']());}}}(_0x32b3,0xabbf2));const o={'exchange':{'file':'文件','upload':_0x3804a4(0x8a),'download':_0x3804a4(0x8d),'uploading':_0x3804a4(0x89),'uploadSuccess':_0x3804a4(0x8e),'uploadSuccessTip':'{0}个文件上传成功','downloading':_0x3804a4(0x84),'downloadSuccess':'下载成功','unknownMistake':_0x3804a4(0x80),'networkError':_0x3804a4(0x7c),'tooLarge':'数据流过大','internalError':_0x3804a4(0x79),'interrupt':_0x3804a4(0x7f),'wait':_0x3804a4(0x7a),'cancel':'取消','uploadAgain':'再次上传'}};function _0x32ed(_0x2e52eb,_0x5c1b86){const _0x32b3ee=_0x32b3();return _0x32ed=function(_0x32edf8,_0x2791f7){_0x32edf8=_0x32edf8-0x79;let _0x44fd3c=_0x32b3ee[_0x32edf8];return _0x44fd3c;},_0x32ed(_0x2e52eb,_0x5c1b86);}export{o as default};function _0x32b3(){const _0x2969bd=['打开(文件)','2088755TFXtyp','3xqxaRI','另存为','文件上传成功','1594592HStELj','内部未知错误','请稍等...','271159gQdMia','网络异常','130EnsEYB','2971528EDiktn','网络连接中断,文件上传失败。','未知错误','562199XXmKeq','96opurqp','6hheZyz','下载中','54uZfnip','9404356SJGuxO','36bjaaXp','446174thYoXB','上传中'];_0x32b3=function(){return _0x2969bd;};return _0x32b3();}
1
+ function _0x1ec1(_0x5cccc9,_0x14adc5){const _0x55167c=_0x5516();return _0x1ec1=function(_0x1ec1fc,_0x59a5b5){_0x1ec1fc=_0x1ec1fc-0xdc;let _0x1a2bba=_0x55167c[_0x1ec1fc];return _0x1a2bba;},_0x1ec1(_0x5cccc9,_0x14adc5);}const _0x2d6d32=_0x1ec1;function _0x5516(){const _0x28c317=['下载中','22HsJijA','209704yGcxwG','文件上传成功','{0}个文件上传成功','下载成功','4688574hIZzYU','19827vOrJlv','515844MSqjlU','2869428HHfPcn','9dZdeaO','再次上传','4110brFkxu','72lXAJbf','请稍等...','328862sGxQyk','网络异常','35JYNKNR','218476skAEOa'];_0x5516=function(){return _0x28c317;};return _0x5516();}(function(_0x16715b,_0x4e7736){const _0x3aee9e=_0x1ec1,_0x31a14e=_0x16715b();while(!![]){try{const _0x5e47d6=-parseInt(_0x3aee9e(0xe9))/0x1+parseInt(_0x3aee9e(0xe6))/0x2*(parseInt(_0x3aee9e(0xe1))/0x3)+parseInt(_0x3aee9e(0xec))/0x4*(-parseInt(_0x3aee9e(0xe8))/0x5)+parseInt(_0x3aee9e(0xdd))/0x6+-parseInt(_0x3aee9e(0xdf))/0x7*(parseInt(_0x3aee9e(0xe4))/0x8)+-parseInt(_0x3aee9e(0xde))/0x9*(-parseInt(_0x3aee9e(0xe3))/0xa)+parseInt(_0x3aee9e(0xeb))/0xb*(-parseInt(_0x3aee9e(0xe0))/0xc);if(_0x5e47d6===_0x4e7736)break;else _0x31a14e['push'](_0x31a14e['shift']());}catch(_0x4a1bfc){_0x31a14e['push'](_0x31a14e['shift']());}}}(_0x5516,0x6ea6f));const o={'exchange':{'file':'文件','upload':'打开(文件)','download':'另存为','uploading':'上传中','uploadSuccess':_0x2d6d32(0xed),'uploadSuccessTip':_0x2d6d32(0xee),'downloading':_0x2d6d32(0xea),'downloadSuccess':_0x2d6d32(0xdc),'unknownMistake':'未知错误','networkError':_0x2d6d32(0xe7),'tooLarge':'数据流过大','internalError':'内部未知错误','interrupt':'网络连接中断,文件上传失败。','wait':_0x2d6d32(0xe5),'cancel':'取消','uploadAgain':_0x2d6d32(0xe2)}};export{o as default};
@@ -1 +1 @@
1
- const _0x9e0cbc=_0x5ae5;(function(_0x444285,_0x156741){const _0x467b63=_0x5ae5,_0x31b29a=_0x444285();while(!![]){try{const _0x5f3079=-parseInt(_0x467b63(0x116))/0x1+parseInt(_0x467b63(0x10e))/0x2+-parseInt(_0x467b63(0x10a))/0x3*(parseInt(_0x467b63(0x115))/0x4)+-parseInt(_0x467b63(0x105))/0x5*(parseInt(_0x467b63(0x106))/0x6)+-parseInt(_0x467b63(0x108))/0x7+-parseInt(_0x467b63(0x10c))/0x8+-parseInt(_0x467b63(0x10b))/0x9*(-parseInt(_0x467b63(0x110))/0xa);if(_0x5f3079===_0x156741)break;else _0x31b29a['push'](_0x31b29a['shift']());}catch(_0x330c98){_0x31b29a['push'](_0x31b29a['shift']());}}}(_0x1108,0xca888));const o={'exchange':{'file':'檔案','upload':'開啟(檔案)','download':_0x9e0cbc(0x107),'uploading':'上傳中','uploadSuccess':_0x9e0cbc(0x103),'uploadSuccessTip':_0x9e0cbc(0x10f),'downloading':_0x9e0cbc(0x10d),'downloadSuccess':_0x9e0cbc(0x113),'unknownMistake':_0x9e0cbc(0x111),'networkError':_0x9e0cbc(0x112),'tooLarge':_0x9e0cbc(0x109),'internalError':_0x9e0cbc(0x114),'interrupt':'網路連線中斷,檔案上傳失敗。\x20','wait':_0x9e0cbc(0x104),'cancel':'取消','uploadAgain':'再次上傳'}};function _0x5ae5(_0x4f1dd8,_0x26cbcc){const _0x11081d=_0x1108();return _0x5ae5=function(_0x5ae57f,_0x2678de){_0x5ae57f=_0x5ae57f-0x103;let _0x40dfed=_0x11081d[_0x5ae57f];return _0x40dfed;},_0x5ae5(_0x4f1dd8,_0x26cbcc);}export{o as default};function _0x1108(){const _0x2ddf27=['346409dSNiwa','檔案上傳成功','請稍等...','370OatQSn','2910AtKppd','另存為','3636780QOsyXL','資料流過大','1354386MgcRZc','9GHZMpa','2946008MSOmoV','下載中','1886710kLOUod','{0}個檔案上傳成功','16077730gDhAWf','未知錯誤','網路異常','下載成功','內部未知錯誤','4Bvqaos'];_0x1108=function(){return _0x2ddf27;};return _0x1108();}
1
+ function _0xf003(){const _0x544d58=['3XSkbcH','275084bBgjIN','750760FlEWDw','452669WMybeX','未知錯誤','585355FbGNiu','網路連線中斷,檔案上傳失敗。\x20','12TshROf','11IPMTnN','下載成功','2516796XqxPZp','網路異常','{0}個檔案上傳成功','下載中','開啟(檔案)','1wZqdhl','另存為','資料流過大','364234SQSobe','再次上傳','572544sFOgdn','檔案上傳成功'];_0xf003=function(){return _0x544d58;};return _0xf003();}const _0x215267=_0x2934;(function(_0x37a907,_0x5d93b8){const _0x56c50a=_0x2934,_0x2577e4=_0x37a907();while(!![]){try{const _0x1d3388=parseInt(_0x56c50a(0xd5))/0x1*(parseInt(_0x56c50a(0xc2))/0x2)+parseInt(_0x56c50a(0xc6))/0x3*(-parseInt(_0x56c50a(0xc7))/0x4)+-parseInt(_0x56c50a(0xcb))/0x5+parseInt(_0x56c50a(0xcd))/0x6*(-parseInt(_0x56c50a(0xc9))/0x7)+parseInt(_0x56c50a(0xc4))/0x8+parseInt(_0x56c50a(0xd0))/0x9+parseInt(_0x56c50a(0xc8))/0xa*(-parseInt(_0x56c50a(0xce))/0xb);if(_0x1d3388===_0x5d93b8)break;else _0x2577e4['push'](_0x2577e4['shift']());}catch(_0x15182d){_0x2577e4['push'](_0x2577e4['shift']());}}}(_0xf003,0x22ee5));const o={'exchange':{'file':'檔案','upload':_0x215267(0xd4),'download':_0x215267(0xc0),'uploading':'上傳中','uploadSuccess':_0x215267(0xc5),'uploadSuccessTip':_0x215267(0xd2),'downloading':_0x215267(0xd3),'downloadSuccess':_0x215267(0xcf),'unknownMistake':_0x215267(0xca),'networkError':_0x215267(0xd1),'tooLarge':_0x215267(0xc1),'internalError':'內部未知錯誤','interrupt':_0x215267(0xcc),'wait':'請稍等...','cancel':'取消','uploadAgain':_0x215267(0xc3)}};function _0x2934(_0x127a64,_0x1cc0ff){const _0xf0033=_0xf003();return _0x2934=function(_0x29340a,_0x21b02d){_0x29340a=_0x29340a-0xc0;let _0x3ef051=_0xf0033[_0x29340a];return _0x3ef051;},_0x2934(_0x127a64,_0x1cc0ff);}export{o as default};
@@ -0,0 +1,16 @@
1
+ export declare const PLUGIN_CONFIG_KEY = "exchange-client.config";
2
+ export declare const configSymbol: unique symbol;
3
+ export interface IUniverExchangeClientConfig {
4
+ /**
5
+ * The URL of the endpoint for downloading files.
6
+ * @default 'location.origin'
7
+ */
8
+ downloadEndpointUrl?: string;
9
+ uploadFileServerUrl?: string;
10
+ importServerUrl?: string;
11
+ exportServerUrl?: string;
12
+ getTaskServerUrl?: string;
13
+ signUrlServerUrl?: string;
14
+ maxTimeoutTime?: number;
15
+ }
16
+ export declare const defaultPluginConfig: IUniverExchangeClientConfig;
@@ -0,0 +1,8 @@
1
+ import { Disposable, Injector } from '@univerjs/core';
2
+ import { IUIPartsService } from '@univerjs/ui';
3
+ export declare class ExchangeClientController extends Disposable {
4
+ private readonly _injector;
5
+ private readonly _uiPartsService;
6
+ constructor(_injector: Injector, _uiPartsService: IUIPartsService);
7
+ private _registerComponents;
8
+ }
@@ -0,0 +1,36 @@
1
+ import { IDocumentData, IWorkbookData } from '@univerjs/core';
2
+ interface IFUniverExchangeClientMixin {
3
+ /**
4
+ * Import XLSX file to unit id
5
+ * @param file File path or file object
6
+ */
7
+ importXLSXToUnitId(file: string | File): Promise<string | undefined>;
8
+ /**
9
+ * Import XLSX file to workbook data
10
+ * @param file File path or file object
11
+ */
12
+ importXLSXToSnapshot(file: string | File): Promise<IWorkbookData | undefined>;
13
+ /**
14
+ * Export XLSX file by unit id
15
+ */
16
+ exportXLSXByUnitId(unitId: string): Promise<File | undefined>;
17
+ /**
18
+ * Export XLSX file by workbook data
19
+ */
20
+ exportXLSXBySnapshot(snapshot: IWorkbookData): Promise<File | undefined>;
21
+ /**
22
+ * Import DOCX file to unit id
23
+ * @param file File path or file object
24
+ */
25
+ importDOCXToUnitId(file: string | File): Promise<string | undefined>;
26
+ /**
27
+ * Import DOCX file to document data
28
+ * @param file File path or file object
29
+ */
30
+ importDOCXToSnapshot(file: string | File): Promise<IDocumentData | undefined>;
31
+ }
32
+ declare module '@univerjs/core' {
33
+ interface FUniver extends IFUniverExchangeClientMixin {
34
+ }
35
+ }
36
+ export {};
@@ -0,0 +1 @@
1
+ import './f-univer';