@univerjs-pro/exchange-client 0.5.0-nightly.202411121606 → 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 _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 _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);