@univerjs-pro/exchange-client 0.5.0-alpha.0 → 0.5.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 (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 _0x13246f=_0x44e7;(function(_0x5131ba,_0x502eb6){const _0x4bc8e5=_0x44e7,_0x267714=_0x5131ba();while(!![]){try{const _0x10d0ae=-parseInt(_0x4bc8e5(0x82))/0x1+parseInt(_0x4bc8e5(0x81))/0x2*(-parseInt(_0x4bc8e5(0x92))/0x3)+parseInt(_0x4bc8e5(0x7e))/0x4*(-parseInt(_0x4bc8e5(0x8c))/0x5)+-parseInt(_0x4bc8e5(0x79))/0x6+-parseInt(_0x4bc8e5(0x83))/0x7+parseInt(_0x4bc8e5(0x91))/0x8+parseInt(_0x4bc8e5(0x90))/0x9;if(_0x10d0ae===_0x502eb6)break;else _0x267714['push'](_0x267714['shift']());}catch(_0x597e43){_0x267714['push'](_0x267714['shift']());}}}(_0x26a7,0x46ff7));function _0x44e7(_0x5b4784,_0x531b6d){const _0x26a7ce=_0x26a7();return _0x44e7=function(_0x44e70b,_0x21e323){_0x44e70b=_0x44e70b-0x78;let _0x3286e0=_0x26a7ce[_0x44e70b];return _0x3286e0;},_0x44e7(_0x5b4784,_0x531b6d);}function _0x26a7(){const _0x73e231=['@univerjs/core','The\x20exchange\x20service\x20is\x20not\x20available','UNIVER_DOC','extend','FUniver','get','UNIVER_SHEET','5iaSSxp','_injector','importDOCXToSnapshot','exportXLSXBySnapshot','10366164KatAVV','3712440pmTXqv','3zVIPpY','UNIVER_PROJECT','UNRECOGNIZED','2746680zPPqkb','importFileToUnitId','@univerjs-pro/exchange-client','UNIVER_SLIDE','exportXLSXByUnitId','1126372wqdKIB','IExchangeService','UNIVER_UNKNOWN','291966XkDkab','156136gNYBEy','1984864aGqwLf','importDOCXToUnitId'];_0x26a7=function(){return _0x73e231;};return _0x26a7();}const c=require(_0x13246f(0x85)),n=require(_0x13246f(0x7b));var i=(_0x3b7687=>(_0x3b7687[_0x3b7687[_0x13246f(0x80)]=0x0]=_0x13246f(0x80),_0x3b7687[_0x3b7687[_0x13246f(0x87)]=0x1]=_0x13246f(0x87),_0x3b7687[_0x3b7687[_0x13246f(0x8b)]=0x2]=_0x13246f(0x8b),_0x3b7687[_0x3b7687[_0x13246f(0x7c)]=0x3]=_0x13246f(0x7c),_0x3b7687[_0x3b7687[_0x13246f(0x93)]=0x4]='UNIVER_PROJECT',_0x3b7687[_0x3b7687['UNRECOGNIZED']=-0x1]=_0x13246f(0x78),_0x3b7687))(i||{});class o extends c['FUniver']{async['importXLSXToUnitId'](_0x4d9ace){const _0x59247f=_0x13246f,_0x4d942d=this[_0x59247f(0x8d)][_0x59247f(0x8a)](n[_0x59247f(0x7f)]);if(!_0x4d942d)throw new Error(_0x59247f(0x86));return _0x4d942d[_0x59247f(0x7a)](_0x4d9ace,i[_0x59247f(0x8b)]);}async['importXLSXToSnapshot'](_0x19a8fa){const _0x1b359f=_0x13246f,_0x32fed9=this['_injector'][_0x1b359f(0x8a)](n['IExchangeService']);if(!_0x32fed9)throw new Error(_0x1b359f(0x86));return _0x32fed9['importXLSXToSnapshot'](_0x19a8fa);}async[_0x13246f(0x7d)](_0x1f0b22){const _0x4e8fa7=_0x13246f,_0x399e91=this[_0x4e8fa7(0x8d)][_0x4e8fa7(0x8a)](n[_0x4e8fa7(0x7f)]);if(!_0x399e91)throw new Error(_0x4e8fa7(0x86));return _0x399e91[_0x4e8fa7(0x7d)](_0x1f0b22);}async[_0x13246f(0x8f)](_0x4612a5){const _0xbd8538=_0x13246f,_0x5f57e1=this[_0xbd8538(0x8d)][_0xbd8538(0x8a)](n[_0xbd8538(0x7f)]);if(!_0x5f57e1)throw new Error(_0xbd8538(0x86));return _0x5f57e1['exportXLSXBySnapshot'](_0x4612a5);}async[_0x13246f(0x84)](_0x7934f4){const _0x5ea9ef=_0x13246f,_0x3d036a=this[_0x5ea9ef(0x8d)][_0x5ea9ef(0x8a)](n[_0x5ea9ef(0x7f)]);if(!_0x3d036a)throw new Error(_0x5ea9ef(0x86));return _0x3d036a['importFileToUnitId'](_0x7934f4,i['UNIVER_DOC']);}async[_0x13246f(0x8e)](_0x1a6f88){const _0x1f38b8=_0x13246f,_0x4083e4=this[_0x1f38b8(0x8d)]['get'](n[_0x1f38b8(0x7f)]);if(!_0x4083e4)throw new Error(_0x1f38b8(0x86));return _0x4083e4[_0x1f38b8(0x8e)](_0x1a6f88);}}c[_0x13246f(0x89)][_0x13246f(0x88)](o);