@univerjs-pro/exchange-client 0.5.0-nightly.202411120616 → 0.5.0-nightly.202411131606

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 _0x2de7be=_0x5153;(function(_0x1ccd67,_0xc733){const _0x329f14=_0x5153,_0xcdea98=_0x1ccd67();while(!![]){try{const _0x2e8cf9=-parseInt(_0x329f14(0x172))/0x1+parseInt(_0x329f14(0x17d))/0x2*(-parseInt(_0x329f14(0x185))/0x3)+-parseInt(_0x329f14(0x17b))/0x4*(parseInt(_0x329f14(0x17e))/0x5)+-parseInt(_0x329f14(0x17a))/0x6+-parseInt(_0x329f14(0x18b))/0x7+parseInt(_0x329f14(0x183))/0x8*(parseInt(_0x329f14(0x178))/0x9)+parseInt(_0x329f14(0x182))/0xa;if(_0x2e8cf9===_0xc733)break;else _0xcdea98['push'](_0xcdea98['shift']());}catch(_0x4a2c8e){_0xcdea98['push'](_0xcdea98['shift']());}}}(_0x4697,0xc472c));const c=require('@univerjs/core'),n=require('@univerjs-pro/exchange-client');var i=(_0xe06fa1=>(_0xe06fa1[_0xe06fa1[_0x2de7be(0x17f)]=0x0]=_0x2de7be(0x17f),_0xe06fa1[_0xe06fa1['UNIVER_DOC']=0x1]=_0x2de7be(0x179),_0xe06fa1[_0xe06fa1['UNIVER_SHEET']=0x2]=_0x2de7be(0x189),_0xe06fa1[_0xe06fa1['UNIVER_SLIDE']=0x3]=_0x2de7be(0x181),_0xe06fa1[_0xe06fa1[_0x2de7be(0x173)]=0x4]='UNIVER_PROJECT',_0xe06fa1[_0xe06fa1[_0x2de7be(0x18a)]=-0x1]='UNRECOGNIZED',_0xe06fa1))(i||{});class o extends c[_0x2de7be(0x177)]{async[_0x2de7be(0x18c)](_0x536d8e){const _0x4bb800=_0x2de7be,_0x1a6b1e=this[_0x4bb800(0x174)]['get'](n[_0x4bb800(0x175)]);if(!_0x1a6b1e)throw new Error(_0x4bb800(0x18d));return _0x1a6b1e[_0x4bb800(0x171)](_0x536d8e,i['UNIVER_SHEET']);}async[_0x2de7be(0x186)](_0x29139e){const _0x5b5d98=_0x2de7be,_0x336ecf=this['_injector'][_0x5b5d98(0x188)](n['IExchangeService']);if(!_0x336ecf)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x336ecf[_0x5b5d98(0x186)](_0x29139e);}async[_0x2de7be(0x180)](_0x1b61de){const _0x221a54=_0x2de7be,_0x363498=this[_0x221a54(0x174)][_0x221a54(0x188)](n['IExchangeService']);if(!_0x363498)throw new Error(_0x221a54(0x18d));return _0x363498[_0x221a54(0x180)](_0x1b61de);}async['exportXLSXBySnapshot'](_0x2ec85f){const _0x1b8cd9=_0x2de7be,_0x32c1a7=this['_injector'][_0x1b8cd9(0x188)](n[_0x1b8cd9(0x175)]);if(!_0x32c1a7)throw new Error(_0x1b8cd9(0x18d));return _0x32c1a7[_0x1b8cd9(0x187)](_0x2ec85f);}async[_0x2de7be(0x184)](_0x1d0d46){const _0xd9ce6c=_0x2de7be,_0xb5022f=this[_0xd9ce6c(0x174)][_0xd9ce6c(0x188)](n[_0xd9ce6c(0x175)]);if(!_0xb5022f)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0xb5022f[_0xd9ce6c(0x171)](_0x1d0d46,i[_0xd9ce6c(0x179)]);}async[_0x2de7be(0x17c)](_0x276252){const _0x112e40=_0x2de7be,_0x25ab6f=this['_injector'][_0x112e40(0x188)](n[_0x112e40(0x175)]);if(!_0x25ab6f)throw new Error(_0x112e40(0x18d));return _0x25ab6f[_0x112e40(0x17c)](_0x276252);}}function _0x4697(){const _0x132c20=['4921056UzJkJp','76AJFKdh','importDOCXToSnapshot','26LGoqRy','288565rPjZJs','UNIVER_UNKNOWN','exportXLSXByUnitId','UNIVER_SLIDE','21545990mXGCcd','56gEnXmq','importDOCXToUnitId','7233Mjwzbc','importXLSXToSnapshot','exportXLSXBySnapshot','get','UNIVER_SHEET','UNRECOGNIZED','1107729SyiAHb','importXLSXToUnitId','The\x20exchange\x20service\x20is\x20not\x20available','importFileToUnitId','815316rdakgP','UNIVER_PROJECT','_injector','IExchangeService','extend','FUniver','2020734Xnjxxq','UNIVER_DOC'];_0x4697=function(){return _0x132c20;};return _0x4697();}function _0x5153(_0xe99173,_0x32e116){const _0x46972d=_0x4697();return _0x5153=function(_0x51538f,_0x537c16){_0x51538f=_0x51538f-0x171;let _0x358d02=_0x46972d[_0x51538f];return _0x358d02;},_0x5153(_0xe99173,_0x32e116);}c[_0x2de7be(0x177)][_0x2de7be(0x176)](o);
1
+ 'use strict';const _0x391c7f=_0x1a2f;(function(_0x1ac93e,_0x547cc6){const _0x50b1a9=_0x1a2f,_0x3e6c7c=_0x1ac93e();while(!![]){try{const _0x40e95c=parseInt(_0x50b1a9(0x7d))/0x1*(parseInt(_0x50b1a9(0x8d))/0x2)+-parseInt(_0x50b1a9(0x86))/0x3*(parseInt(_0x50b1a9(0x9a))/0x4)+-parseInt(_0x50b1a9(0x7f))/0x5+parseInt(_0x50b1a9(0x95))/0x6*(parseInt(_0x50b1a9(0x92))/0x7)+-parseInt(_0x50b1a9(0x90))/0x8+-parseInt(_0x50b1a9(0x80))/0x9+-parseInt(_0x50b1a9(0x88))/0xa*(-parseInt(_0x50b1a9(0x98))/0xb);if(_0x40e95c===_0x547cc6)break;else _0x3e6c7c['push'](_0x3e6c7c['shift']());}catch(_0x11d388){_0x3e6c7c['push'](_0x3e6c7c['shift']());}}}(_0x33d4,0x4506e));function _0x1a2f(_0x29a5ad,_0x369264){const _0x33d4f8=_0x33d4();return _0x1a2f=function(_0x1a2f47,_0x201cae){_0x1a2f47=_0x1a2f47-0x7c;let _0x46445d=_0x33d4f8[_0x1a2f47];return _0x46445d;},_0x1a2f(_0x29a5ad,_0x369264);}const c=require(_0x391c7f(0x91)),n=require(_0x391c7f(0x81));var i=(_0x5351b5=>(_0x5351b5[_0x5351b5[_0x391c7f(0x7e)]=0x0]=_0x391c7f(0x7e),_0x5351b5[_0x5351b5['UNIVER_DOC']=0x1]=_0x391c7f(0x8a),_0x5351b5[_0x5351b5[_0x391c7f(0x99)]=0x2]=_0x391c7f(0x99),_0x5351b5[_0x5351b5[_0x391c7f(0x7c)]=0x3]=_0x391c7f(0x7c),_0x5351b5[_0x5351b5['UNIVER_PROJECT']=0x4]=_0x391c7f(0x87),_0x5351b5[_0x5351b5[_0x391c7f(0x82)]=-0x1]=_0x391c7f(0x82),_0x5351b5))(i||{});function _0x33d4(){const _0xd51472=['UNIVER_SLIDE','5RlovwR','UNIVER_UNKNOWN','689155UrenXa','4123485OcPXhF','@univerjs-pro/exchange-client','UNRECOGNIZED','importFileToUnitId','IExchangeService','importXLSXToSnapshot','25926kolzul','UNIVER_PROJECT','5260QSYeLy','importDOCXToSnapshot','UNIVER_DOC','exportXLSXByUnitId','importDOCXToUnitId','45742DkBUyK','get','_injector','1348472OnhezP','@univerjs/core','42cRUnwN','FUniver','exportXLSXBySnapshot','219378MvXIUc','extend','The\x20exchange\x20service\x20is\x20not\x20available','15103OEAvcf','UNIVER_SHEET','4tGhchi'];_0x33d4=function(){return _0xd51472;};return _0x33d4();}class o extends c[_0x391c7f(0x93)]{async['importXLSXToUnitId'](_0x3186b6){const _0x23f42b=_0x391c7f,_0x1ed2c1=this[_0x23f42b(0x8f)][_0x23f42b(0x8e)](n['IExchangeService']);if(!_0x1ed2c1)throw new Error(_0x23f42b(0x97));return _0x1ed2c1[_0x23f42b(0x83)](_0x3186b6,i[_0x23f42b(0x99)]);}async[_0x391c7f(0x85)](_0x3d2558){const _0xac1837=_0x391c7f,_0x3f3903=this[_0xac1837(0x8f)]['get'](n[_0xac1837(0x84)]);if(!_0x3f3903)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x3f3903[_0xac1837(0x85)](_0x3d2558);}async[_0x391c7f(0x8b)](_0x4d4cd3){const _0x59d83a=_0x391c7f,_0x350ce1=this['_injector'][_0x59d83a(0x8e)](n[_0x59d83a(0x84)]);if(!_0x350ce1)throw new Error(_0x59d83a(0x97));return _0x350ce1['exportXLSXByUnitId'](_0x4d4cd3);}async[_0x391c7f(0x94)](_0x352a7b){const _0x3720b1=_0x391c7f,_0x3bb4ee=this[_0x3720b1(0x8f)][_0x3720b1(0x8e)](n[_0x3720b1(0x84)]);if(!_0x3bb4ee)throw new Error(_0x3720b1(0x97));return _0x3bb4ee[_0x3720b1(0x94)](_0x352a7b);}async[_0x391c7f(0x8c)](_0x2b736b){const _0x4e1113=_0x391c7f,_0x2be969=this[_0x4e1113(0x8f)][_0x4e1113(0x8e)](n['IExchangeService']);if(!_0x2be969)throw new Error(_0x4e1113(0x97));return _0x2be969[_0x4e1113(0x83)](_0x2b736b,i[_0x4e1113(0x8a)]);}async['importDOCXToSnapshot'](_0x550722){const _0x1ca152=_0x391c7f,_0x4b2ba6=this[_0x1ca152(0x8f)]['get'](n[_0x1ca152(0x84)]);if(!_0x4b2ba6)throw new Error(_0x1ca152(0x97));return _0x4b2ba6[_0x1ca152(0x89)](_0x550722);}}c[_0x391c7f(0x93)][_0x391c7f(0x96)](o);