@univerjs-pro/exchange-client 0.5.0-alpha.0 → 0.5.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 (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 +12 -12
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x3d1819=_0x4241;(function(_0xd4efc6,_0x36b381){const _0x5e2824=_0x4241,_0x54831b=_0xd4efc6();while(!![]){try{const _0x565fd6=parseInt(_0x5e2824(0x8b))/0x1+-parseInt(_0x5e2824(0xa3))/0x2*(parseInt(_0x5e2824(0x9a))/0x3)+-parseInt(_0x5e2824(0x98))/0x4*(-parseInt(_0x5e2824(0x8c))/0x5)+parseInt(_0x5e2824(0x97))/0x6+parseInt(_0x5e2824(0x8e))/0x7+parseInt(_0x5e2824(0x90))/0x8*(parseInt(_0x5e2824(0x94))/0x9)+parseInt(_0x5e2824(0x87))/0xa*(-parseInt(_0x5e2824(0x9b))/0xb);if(_0x565fd6===_0x36b381)break;else _0x54831b['push'](_0x54831b['shift']());}catch(_0x9d7977){_0x54831b['push'](_0x54831b['shift']());}}}(_0x5115,0x5a251));const c=require('@univerjs/core'),n=require(_0x3d1819(0x9c));var i=(_0x4b55c6=>(_0x4b55c6[_0x4b55c6[_0x3d1819(0x9d)]=0x0]='UNIVER_UNKNOWN',_0x4b55c6[_0x4b55c6['UNIVER_DOC']=0x1]=_0x3d1819(0x9f),_0x4b55c6[_0x4b55c6['UNIVER_SHEET']=0x2]=_0x3d1819(0x8a),_0x4b55c6[_0x4b55c6[_0x3d1819(0xa2)]=0x3]=_0x3d1819(0xa2),_0x4b55c6[_0x4b55c6[_0x3d1819(0x8f)]=0x4]=_0x3d1819(0x8f),_0x4b55c6[_0x4b55c6[_0x3d1819(0x92)]=-0x1]=_0x3d1819(0x92),_0x4b55c6))(i||{});function _0x5115(){const _0x352318=['IExchangeService','1311540ZFGicO','28suwyCa','The\x20exchange\x20service\x20is\x20not\x20available','18MzAHht','465707SUghyk','@univerjs-pro/exchange-client','UNIVER_UNKNOWN','extend','UNIVER_DOC','importFileToUnitId','_injector','UNIVER_SLIDE','187158qrejgF','get','170vNtNni','importXLSXToSnapshot','importXLSXToUnitId','UNIVER_SHEET','311457aHHJkG','66635wULweH','exportXLSXBySnapshot','2407097jllyGw','UNIVER_PROJECT','5465832kqeATA','FUniver','UNRECOGNIZED','exportXLSXByUnitId','9ljwdDo','importDOCXToSnapshot'];_0x5115=function(){return _0x352318;};return _0x5115();}function _0x4241(_0x3081ab,_0x5a85da){const _0x511505=_0x5115();return _0x4241=function(_0x424125,_0x14b4d0){_0x424125=_0x424125-0x87;let _0x392080=_0x511505[_0x424125];return _0x392080;},_0x4241(_0x3081ab,_0x5a85da);}class o extends c[_0x3d1819(0x91)]{async[_0x3d1819(0x89)](_0x52de4d){const _0x43061f=_0x3d1819,_0x573444=this['_injector']['get'](n[_0x43061f(0x96)]);if(!_0x573444)throw new Error(_0x43061f(0x99));return _0x573444[_0x43061f(0xa0)](_0x52de4d,i[_0x43061f(0x8a)]);}async['importXLSXToSnapshot'](_0x35df1e){const _0x1e60f7=_0x3d1819,_0x544f85=this[_0x1e60f7(0xa1)]['get'](n[_0x1e60f7(0x96)]);if(!_0x544f85)throw new Error(_0x1e60f7(0x99));return _0x544f85[_0x1e60f7(0x88)](_0x35df1e);}async[_0x3d1819(0x93)](_0xa10e54){const _0x170b67=_0x3d1819,_0x369539=this[_0x170b67(0xa1)][_0x170b67(0xa4)](n[_0x170b67(0x96)]);if(!_0x369539)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x369539[_0x170b67(0x93)](_0xa10e54);}async[_0x3d1819(0x8d)](_0xe86bd9){const _0x3e2ed7=_0x3d1819,_0x22711a=this[_0x3e2ed7(0xa1)][_0x3e2ed7(0xa4)](n['IExchangeService']);if(!_0x22711a)throw new Error(_0x3e2ed7(0x99));return _0x22711a[_0x3e2ed7(0x8d)](_0xe86bd9);}async['importDOCXToUnitId'](_0x57f826){const _0xd47a1=_0x3d1819,_0x45fbaf=this[_0xd47a1(0xa1)][_0xd47a1(0xa4)](n[_0xd47a1(0x96)]);if(!_0x45fbaf)throw new Error(_0xd47a1(0x99));return _0x45fbaf[_0xd47a1(0xa0)](_0x57f826,i[_0xd47a1(0x9f)]);}async[_0x3d1819(0x95)](_0x82e4de){const _0x2f0765=_0x3d1819,_0x25e319=this[_0x2f0765(0xa1)][_0x2f0765(0xa4)](n[_0x2f0765(0x96)]);if(!_0x25e319)throw new Error(_0x2f0765(0x99));return _0x25e319[_0x2f0765(0x95)](_0x82e4de);}}c['FUniver'][_0x3d1819(0x9e)](o);
1
+ 'use strict';const _0x1112c2=_0x4b17;function _0x582d(){const _0x3a88bf=['importXLSXToUnitId','55294PbjlOC','3623665OHGLcY','27488164uBDGaA','exportXLSXBySnapshot','@univerjs-pro/exchange-client','IExchangeService','UNIVER_PROJECT','10oBnqkp','52EgASoe','UNIVER_DOC','102270rPBGAB','UNRECOGNIZED','UNIVER_SLIDE','_injector','importDOCXToSnapshot','729918czuUKw','@univerjs/core','importFileToUnitId','99483ZghyQV','208VfltUA','4680294XqXxTY','UNIVER_SHEET','FUniver','The\x20exchange\x20service\x20is\x20not\x20available','importXLSXToSnapshot','extend','exportXLSXByUnitId','get','UNIVER_UNKNOWN','4XDlXpS'];_0x582d=function(){return _0x3a88bf;};return _0x582d();}function _0x4b17(_0x3a1000,_0x2a1feb){const _0x582dd5=_0x582d();return _0x4b17=function(_0x4b17c0,_0xfc215d){_0x4b17c0=_0x4b17c0-0xf9;let _0x3f1873=_0x582dd5[_0x4b17c0];return _0x3f1873;},_0x4b17(_0x3a1000,_0x2a1feb);}(function(_0x1b1fb4,_0x4d466a){const _0x48c20d=_0x4b17,_0x356f9d=_0x1b1fb4();while(!![]){try{const _0x13eabb=parseInt(_0x48c20d(0x101))/0x1+-parseInt(_0x48c20d(0x109))/0x2*(parseInt(_0x48c20d(0x113))/0x3)+-parseInt(_0x48c20d(0xff))/0x4*(parseInt(_0x48c20d(0x102))/0x5)+-parseInt(_0x48c20d(0x115))/0x6+-parseInt(_0x48c20d(0x10b))/0x7*(-parseInt(_0x48c20d(0x114))/0x8)+parseInt(_0x48c20d(0x110))/0x9*(-parseInt(_0x48c20d(0x108))/0xa)+parseInt(_0x48c20d(0x103))/0xb;if(_0x13eabb===_0x4d466a)break;else _0x356f9d['push'](_0x356f9d['shift']());}catch(_0x584842){_0x356f9d['push'](_0x356f9d['shift']());}}}(_0x582d,0x76a78));const c=require(_0x1112c2(0x111)),n=require(_0x1112c2(0x105));var i=(_0x465fb0=>(_0x465fb0[_0x465fb0[_0x1112c2(0xfe)]=0x0]=_0x1112c2(0xfe),_0x465fb0[_0x465fb0[_0x1112c2(0x10a)]=0x1]='UNIVER_DOC',_0x465fb0[_0x465fb0[_0x1112c2(0x116)]=0x2]=_0x1112c2(0x116),_0x465fb0[_0x465fb0[_0x1112c2(0x10d)]=0x3]='UNIVER_SLIDE',_0x465fb0[_0x465fb0[_0x1112c2(0x107)]=0x4]=_0x1112c2(0x107),_0x465fb0[_0x465fb0[_0x1112c2(0x10c)]=-0x1]=_0x1112c2(0x10c),_0x465fb0))(i||{});class o extends c[_0x1112c2(0x117)]{async[_0x1112c2(0x100)](_0x5b367c){const _0x3ce2ec=_0x1112c2,_0x781aa9=this[_0x3ce2ec(0x10e)][_0x3ce2ec(0xfd)](n['IExchangeService']);if(!_0x781aa9)throw new Error(_0x3ce2ec(0xf9));return _0x781aa9[_0x3ce2ec(0x112)](_0x5b367c,i[_0x3ce2ec(0x116)]);}async[_0x1112c2(0xfa)](_0x2cbbad){const _0x30ca14=_0x1112c2,_0x3034e2=this[_0x30ca14(0x10e)][_0x30ca14(0xfd)](n[_0x30ca14(0x106)]);if(!_0x3034e2)throw new Error(_0x30ca14(0xf9));return _0x3034e2[_0x30ca14(0xfa)](_0x2cbbad);}async[_0x1112c2(0xfc)](_0x38d688){const _0x461855=_0x1112c2,_0x20fad9=this[_0x461855(0x10e)]['get'](n[_0x461855(0x106)]);if(!_0x20fad9)throw new Error(_0x461855(0xf9));return _0x20fad9['exportXLSXByUnitId'](_0x38d688);}async[_0x1112c2(0x104)](_0x1cc01a){const _0x210037=_0x1112c2,_0xa8d97f=this['_injector'][_0x210037(0xfd)](n['IExchangeService']);if(!_0xa8d97f)throw new Error(_0x210037(0xf9));return _0xa8d97f[_0x210037(0x104)](_0x1cc01a);}async['importDOCXToUnitId'](_0x3c1aa3){const _0x360919=_0x1112c2,_0x3d0f51=this[_0x360919(0x10e)]['get'](n[_0x360919(0x106)]);if(!_0x3d0f51)throw new Error(_0x360919(0xf9));return _0x3d0f51['importFileToUnitId'](_0x3c1aa3,i['UNIVER_DOC']);}async[_0x1112c2(0x10f)](_0x1bbaa2){const _0x1139c5=_0x1112c2,_0x4c34ed=this[_0x1139c5(0x10e)][_0x1139c5(0xfd)](n['IExchangeService']);if(!_0x4c34ed)throw new Error(_0x1139c5(0xf9));return _0x4c34ed['importDOCXToSnapshot'](_0x1bbaa2);}}c[_0x1112c2(0x117)][_0x1112c2(0xfb)](o);