@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
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x2f17c1=_0x4ba8;(function(_0xd9263c,_0x4796a1){const _0x31a213=_0x4ba8,_0x2ba08c=_0xd9263c();while(!![]){try{const _0xbdb1da=-parseInt(_0x31a213(0xa5))/0x1+-parseInt(_0x31a213(0xac))/0x2*(parseInt(_0x31a213(0xb6))/0x3)+-parseInt(_0x31a213(0xbf))/0x4+-parseInt(_0x31a213(0xae))/0x5*(-parseInt(_0x31a213(0xc0))/0x6)+parseInt(_0x31a213(0xbe))/0x7*(-parseInt(_0x31a213(0xaa))/0x8)+parseInt(_0x31a213(0xb1))/0x9+-parseInt(_0x31a213(0xa6))/0xa*(-parseInt(_0x31a213(0xb9))/0xb);if(_0xbdb1da===_0x4796a1)break;else _0x2ba08c['push'](_0x2ba08c['shift']());}catch(_0x83bb8c){_0x2ba08c['push'](_0x2ba08c['shift']());}}}(_0x38ba,0xa412e));function _0x38ba(){const _0x17c7c5=['3483544rfeZQE','UNIVER_DOC','163276tHFiZQ','importFileToUnitId','5524645zWrrGW','UNRECOGNIZED','The\x20exchange\x20service\x20is\x20not\x20available','3633165ZvYtID','UNIVER_PROJECT','FUniver','exportXLSXBySnapshot','importDOCXToUnitId','3ELFXma','UNIVER_SLIDE','importXLSXToSnapshot','44eMRNgw','IExchangeService','get','importXLSXToUnitId','_injector','21onyPYO','4766736dyVIlc','6RbWeGU','@univerjs/core','997581aCkyCV','6851660BvEFAK','UNIVER_SHEET','UNIVER_UNKNOWN','exportXLSXByUnitId'];_0x38ba=function(){return _0x17c7c5;};return _0x38ba();}const c=require(_0x2f17c1(0xc1)),n=require('@univerjs-pro/exchange-client');function _0x4ba8(_0x560837,_0x35b719){const _0x38ba87=_0x38ba();return _0x4ba8=function(_0x4ba843,_0x174ebf){_0x4ba843=_0x4ba843-0xa5;let _0x4b9548=_0x38ba87[_0x4ba843];return _0x4b9548;},_0x4ba8(_0x560837,_0x35b719);}var i=(_0x508cbe=>(_0x508cbe[_0x508cbe[_0x2f17c1(0xa8)]=0x0]=_0x2f17c1(0xa8),_0x508cbe[_0x508cbe[_0x2f17c1(0xab)]=0x1]='UNIVER_DOC',_0x508cbe[_0x508cbe['UNIVER_SHEET']=0x2]=_0x2f17c1(0xa7),_0x508cbe[_0x508cbe[_0x2f17c1(0xb7)]=0x3]=_0x2f17c1(0xb7),_0x508cbe[_0x508cbe[_0x2f17c1(0xb2)]=0x4]=_0x2f17c1(0xb2),_0x508cbe[_0x508cbe[_0x2f17c1(0xaf)]=-0x1]='UNRECOGNIZED',_0x508cbe))(i||{});class o extends c[_0x2f17c1(0xb3)]{async[_0x2f17c1(0xbc)](_0x238575){const _0x62f1fb=_0x2f17c1,_0x413726=this[_0x62f1fb(0xbd)][_0x62f1fb(0xbb)](n['IExchangeService']);if(!_0x413726)throw new Error(_0x62f1fb(0xb0));return _0x413726[_0x62f1fb(0xad)](_0x238575,i[_0x62f1fb(0xa7)]);}async[_0x2f17c1(0xb8)](_0x402ed8){const _0x59db02=_0x2f17c1,_0x3cb5be=this[_0x59db02(0xbd)][_0x59db02(0xbb)](n[_0x59db02(0xba)]);if(!_0x3cb5be)throw new Error(_0x59db02(0xb0));return _0x3cb5be['importXLSXToSnapshot'](_0x402ed8);}async[_0x2f17c1(0xa9)](_0x241af6){const _0x27ba19=_0x2f17c1,_0x1c3d63=this[_0x27ba19(0xbd)][_0x27ba19(0xbb)](n[_0x27ba19(0xba)]);if(!_0x1c3d63)throw new Error(_0x27ba19(0xb0));return _0x1c3d63[_0x27ba19(0xa9)](_0x241af6);}async['exportXLSXBySnapshot'](_0x4aff9b){const _0x16963b=_0x2f17c1,_0x1495b7=this[_0x16963b(0xbd)][_0x16963b(0xbb)](n[_0x16963b(0xba)]);if(!_0x1495b7)throw new Error(_0x16963b(0xb0));return _0x1495b7[_0x16963b(0xb4)](_0x4aff9b);}async[_0x2f17c1(0xb5)](_0x1bbda2){const _0x5e4509=_0x2f17c1,_0x450d59=this[_0x5e4509(0xbd)][_0x5e4509(0xbb)](n[_0x5e4509(0xba)]);if(!_0x450d59)throw new Error(_0x5e4509(0xb0));return _0x450d59[_0x5e4509(0xad)](_0x1bbda2,i['UNIVER_DOC']);}async['importDOCXToSnapshot'](_0x832d55){const _0x533e4b=_0x2f17c1,_0x1f3098=this[_0x533e4b(0xbd)][_0x533e4b(0xbb)](n[_0x533e4b(0xba)]);if(!_0x1f3098)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x1f3098['importDOCXToSnapshot'](_0x832d55);}}c[_0x2f17c1(0xb3)]['extend'](o);
1
+ 'use strict';const _0x59a49a=_0x3f35;(function(_0x15de65,_0x2c819c){const _0x3812db=_0x3f35,_0x3a7367=_0x15de65();while(!![]){try{const _0x395d0=parseInt(_0x3812db(0x16a))/0x1+parseInt(_0x3812db(0x15f))/0x2*(parseInt(_0x3812db(0x15b))/0x3)+parseInt(_0x3812db(0x162))/0x4+parseInt(_0x3812db(0x156))/0x5+parseInt(_0x3812db(0x169))/0x6+-parseInt(_0x3812db(0x152))/0x7*(parseInt(_0x3812db(0x165))/0x8)+-parseInt(_0x3812db(0x155))/0x9;if(_0x395d0===_0x2c819c)break;else _0x3a7367['push'](_0x3a7367['shift']());}catch(_0x155764){_0x3a7367['push'](_0x3a7367['shift']());}}}(_0x4c6a,0xdbcb7));function _0x4c6a(){const _0x44933b=['FUniver','9CoYwMW','UNIVER_PROJECT','UNIVER_DOC','The\x20exchange\x20service\x20is\x20not\x20available','265634GcoraW','importXLSXToSnapshot','get','6486116ZakuKi','exportXLSXByUnitId','_injector','14298728oZMkyp','importDOCXToSnapshot','UNIVER_SLIDE','extend','5001624mYoFSC','1201644pNBZYp','importFileToUnitId','exportXLSXBySnapshot','UNRECOGNIZED','7OWVHaV','@univerjs-pro/exchange-client','UNIVER_UNKNOWN','24120252bvyYqD','6562100Ghikny','importDOCXToUnitId','UNIVER_SHEET','IExchangeService'];_0x4c6a=function(){return _0x44933b;};return _0x4c6a();}const c=require('@univerjs/core'),n=require(_0x59a49a(0x153));var i=(_0x126547=>(_0x126547[_0x126547[_0x59a49a(0x154)]=0x0]=_0x59a49a(0x154),_0x126547[_0x126547[_0x59a49a(0x15d)]=0x1]=_0x59a49a(0x15d),_0x126547[_0x126547[_0x59a49a(0x158)]=0x2]=_0x59a49a(0x158),_0x126547[_0x126547[_0x59a49a(0x167)]=0x3]=_0x59a49a(0x167),_0x126547[_0x126547[_0x59a49a(0x15c)]=0x4]=_0x59a49a(0x15c),_0x126547[_0x126547[_0x59a49a(0x16d)]=-0x1]=_0x59a49a(0x16d),_0x126547))(i||{});function _0x3f35(_0x503541,_0x4fe2c4){const _0x4c6a7e=_0x4c6a();return _0x3f35=function(_0x3f35c7,_0x1c204c){_0x3f35c7=_0x3f35c7-0x152;let _0x2c7420=_0x4c6a7e[_0x3f35c7];return _0x2c7420;},_0x3f35(_0x503541,_0x4fe2c4);}class o extends c['FUniver']{async['importXLSXToUnitId'](_0x5da0ee){const _0xab2bb1=_0x59a49a,_0x536fed=this[_0xab2bb1(0x164)][_0xab2bb1(0x161)](n[_0xab2bb1(0x159)]);if(!_0x536fed)throw new Error(_0xab2bb1(0x15e));return _0x536fed[_0xab2bb1(0x16b)](_0x5da0ee,i[_0xab2bb1(0x158)]);}async['importXLSXToSnapshot'](_0x521645){const _0x143148=_0x59a49a,_0x292f6f=this[_0x143148(0x164)]['get'](n[_0x143148(0x159)]);if(!_0x292f6f)throw new Error(_0x143148(0x15e));return _0x292f6f[_0x143148(0x160)](_0x521645);}async[_0x59a49a(0x163)](_0x14c452){const _0x553539=_0x59a49a,_0x2e344c=this[_0x553539(0x164)][_0x553539(0x161)](n['IExchangeService']);if(!_0x2e344c)throw new Error(_0x553539(0x15e));return _0x2e344c[_0x553539(0x163)](_0x14c452);}async[_0x59a49a(0x16c)](_0x3d2745){const _0x5e4fad=_0x59a49a,_0x321dc0=this[_0x5e4fad(0x164)]['get'](n[_0x5e4fad(0x159)]);if(!_0x321dc0)throw new Error(_0x5e4fad(0x15e));return _0x321dc0[_0x5e4fad(0x16c)](_0x3d2745);}async[_0x59a49a(0x157)](_0x1a22a2){const _0x24a08d=_0x59a49a,_0x7d8943=this[_0x24a08d(0x164)]['get'](n[_0x24a08d(0x159)]);if(!_0x7d8943)throw new Error(_0x24a08d(0x15e));return _0x7d8943[_0x24a08d(0x16b)](_0x1a22a2,i['UNIVER_DOC']);}async[_0x59a49a(0x166)](_0x4f1ddb){const _0x57b9e2=_0x59a49a,_0x505299=this[_0x57b9e2(0x164)]['get'](n[_0x57b9e2(0x159)]);if(!_0x505299)throw new Error(_0x57b9e2(0x15e));return _0x505299[_0x57b9e2(0x166)](_0x4f1ddb);}}c[_0x59a49a(0x15a)][_0x59a49a(0x168)](o);