@univerjs-pro/exchange-client 0.7.0 → 0.8.0-nightly.202505261607

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 (48) 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/fr-FR.js +1 -1
  6. package/lib/cjs/locale/ru-RU.js +1 -1
  7. package/lib/cjs/locale/vi-VN.js +1 -1
  8. package/lib/cjs/locale/zh-CN.js +1 -1
  9. package/lib/cjs/locale/zh-TW.js +1 -1
  10. package/lib/es/facade.js +1 -1
  11. package/lib/es/index.js +2 -2
  12. package/lib/es/locale/en-US.js +1 -1
  13. package/lib/es/locale/fa-IR.js +1 -1
  14. package/lib/es/locale/fr-FR.js +1 -1
  15. package/lib/es/locale/ru-RU.js +1 -1
  16. package/lib/es/locale/vi-VN.js +1 -1
  17. package/lib/es/locale/zh-CN.js +1 -1
  18. package/lib/es/locale/zh-TW.js +1 -1
  19. package/lib/facade.js +1 -1
  20. package/lib/index.css +1 -1
  21. package/lib/index.js +2 -2
  22. package/lib/locale/en-US.js +1 -1
  23. package/lib/locale/fa-IR.js +1 -1
  24. package/lib/locale/fr-FR.js +1 -1
  25. package/lib/locale/ru-RU.js +1 -1
  26. package/lib/locale/vi-VN.js +1 -1
  27. package/lib/locale/zh-CN.js +1 -1
  28. package/lib/locale/zh-TW.js +1 -1
  29. package/lib/types/facade/f-univer.d.ts +28 -0
  30. package/lib/types/locale/en-US.d.ts +21 -2
  31. package/lib/types/locale/fa-IR.d.ts +2 -2
  32. package/lib/types/locale/fr-FR.d.ts +2 -2
  33. package/lib/types/locale/ru-RU.d.ts +2 -2
  34. package/lib/types/locale/vi-VN.d.ts +2 -2
  35. package/lib/types/locale/zh-CN.d.ts +3 -22
  36. package/lib/types/locale/zh-TW.d.ts +2 -2
  37. package/lib/types/services/operate.service.d.ts +2 -0
  38. package/lib/types/services/utils/snapshot.d.ts +12 -18
  39. package/lib/umd/facade.js +1 -1
  40. package/lib/umd/index.js +2 -2
  41. package/lib/umd/locale/en-US.js +1 -1
  42. package/lib/umd/locale/fa-IR.js +1 -1
  43. package/lib/umd/locale/fr-FR.js +1 -1
  44. package/lib/umd/locale/ru-RU.js +1 -1
  45. package/lib/umd/locale/vi-VN.js +1 -1
  46. package/lib/umd/locale/zh-CN.js +1 -1
  47. package/lib/umd/locale/zh-TW.js +1 -1
  48. package/package.json +9 -9
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x2133a3=_0xfd28;(function(_0x5c4958,_0x1ea1f9){const _0x40623d=_0xfd28,_0x2c638c=_0x5c4958();while(!![]){try{const _0x8e09f3=-parseInt(_0x40623d(0xfe))/0x1+-parseInt(_0x40623d(0x106))/0x2*(parseInt(_0x40623d(0xf9))/0x3)+parseInt(_0x40623d(0x110))/0x4*(parseInt(_0x40623d(0x115))/0x5)+parseInt(_0x40623d(0xfc))/0x6+parseInt(_0x40623d(0x108))/0x7*(-parseInt(_0x40623d(0x10c))/0x8)+parseInt(_0x40623d(0x100))/0x9*(parseInt(_0x40623d(0x10a))/0xa)+parseInt(_0x40623d(0x105))/0xb*(parseInt(_0x40623d(0xfa))/0xc);if(_0x8e09f3===_0x1ea1f9)break;else _0x2c638c['push'](_0x2c638c['shift']());}catch(_0x1b5037){_0x2c638c['push'](_0x2c638c['shift']());}}}(_0x3b2c,0x94b08));const r=require('@univerjs-pro/exchange-client'),i=require(_0x2133a3(0x10b));function _0xfd28(_0x28ea5a,_0x2717db){const _0x3b2cc2=_0x3b2c();return _0xfd28=function(_0x41a229,_0x57cb3d){_0x41a229=_0x41a229-0xf6;let _0x453014=_0x3b2cc2[_0x41a229];return _0x453014;},_0xfd28(_0x28ea5a,_0x2717db);}function _0x3b2c(){const _0x2f1d75=['importFileToUnitId','IExchangeService','3OCXglK','18372XZSrup','UNIVER_DOC','528342Fkiman','UNRECOGNIZED','388237EdlhuY','FUniver','18vMLUNu','importXLSXToSnapshotAsync','exportXLSXBySnapshot','importXLSXToSnapshot','extend','4873KfZoVv','1811306hjLJcB','UNIVER_PROJECT','7QcEYzC','exportXLSXByUnitIdAsync','4635320jKyLcY','@univerjs/core/facade','5260648rmGHPZ','importDOCXToSnapshot','exportXLSXBySnapshotAsync','importDOCXToUnitIdAsync','17972phyBoC','The\x20exchange\x20service\x20is\x20not\x20available','UNIVER_UNKNOWN','UNIVER_SLIDE','get','965QbgYIF','UNIVER_SHEET','_injector','importXLSXToUnitIdAsync'];_0x3b2c=function(){return _0x2f1d75;};return _0x3b2c();}var o=(_0x50eded=>(_0x50eded[_0x50eded[_0x2133a3(0x112)]=0x0]=_0x2133a3(0x112),_0x50eded[_0x50eded[_0x2133a3(0xfb)]=0x1]='UNIVER_DOC',_0x50eded[_0x50eded['UNIVER_SHEET']=0x2]='UNIVER_SHEET',_0x50eded[_0x50eded[_0x2133a3(0x113)]=0x3]=_0x2133a3(0x113),_0x50eded[_0x50eded[_0x2133a3(0x107)]=0x4]=_0x2133a3(0x107),_0x50eded[_0x50eded[_0x2133a3(0xfd)]=-0x1]=_0x2133a3(0xfd),_0x50eded))(o||{});class c extends i[_0x2133a3(0xff)]{async['importXLSXToUnitId'](_0xcceb3d){return this['importXLSXToUnitIdAsync'](_0xcceb3d);}async[_0x2133a3(0xf6)](_0x43585a){const _0x2198db=_0x2133a3,_0x5a9a85=this[_0x2198db(0x117)][_0x2198db(0x114)](r[_0x2198db(0xf8)]);if(!_0x5a9a85)throw new Error(_0x2198db(0x111));return _0x5a9a85[_0x2198db(0xf7)](_0x43585a,o[_0x2198db(0x116)]);}async[_0x2133a3(0x103)](_0x186e5e){const _0x594914=_0x2133a3;return this[_0x594914(0x101)](_0x186e5e);}async[_0x2133a3(0x101)](_0xafaac4){const _0x152ac4=_0x2133a3,_0x5e3837=this[_0x152ac4(0x117)]['get'](r[_0x152ac4(0xf8)]);if(!_0x5e3837)throw new Error(_0x152ac4(0x111));return _0x5e3837[_0x152ac4(0x103)](_0xafaac4);}async['exportXLSXByUnitId'](_0x2644fa){const _0x1f70bc=_0x2133a3;return this[_0x1f70bc(0x109)](_0x2644fa);}async[_0x2133a3(0x109)](_0x66252f){const _0x5f285d=_0x2133a3,_0x41ef0a=this[_0x5f285d(0x117)][_0x5f285d(0x114)](r[_0x5f285d(0xf8)]);if(!_0x41ef0a)throw new Error(_0x5f285d(0x111));return _0x41ef0a['exportXLSXByUnitId'](_0x66252f);}async['exportXLSXBySnapshot'](_0xe30861){const _0x517681=_0x2133a3;return this[_0x517681(0x10e)](_0xe30861);}async[_0x2133a3(0x10e)](_0x1ce464){const _0x47fe82=_0x2133a3,_0x841222=this[_0x47fe82(0x117)]['get'](r['IExchangeService']);if(!_0x841222)throw new Error(_0x47fe82(0x111));return _0x841222[_0x47fe82(0x102)](_0x1ce464);}async['importDOCXToUnitId'](_0xd75741){const _0xf4f7a0=_0x2133a3;return this[_0xf4f7a0(0x10f)](_0xd75741);}async[_0x2133a3(0x10f)](_0x4d23de){const _0x172319=_0x2133a3,_0x1d4b53=this[_0x172319(0x117)][_0x172319(0x114)](r['IExchangeService']);if(!_0x1d4b53)throw new Error(_0x172319(0x111));return _0x1d4b53['importFileToUnitId'](_0x4d23de,o[_0x172319(0xfb)]);}async[_0x2133a3(0x10d)](_0xa76a66){return this['importDOCXToSnapshotAsync'](_0xa76a66);}async['importDOCXToSnapshotAsync'](_0x7d2051){const _0x1c8872=_0x2133a3,_0x13abc3=this[_0x1c8872(0x117)][_0x1c8872(0x114)](r[_0x1c8872(0xf8)]);if(!_0x13abc3)throw new Error(_0x1c8872(0x111));return _0x13abc3['importDOCXToSnapshot'](_0x7d2051);}}i['FUniver'][_0x2133a3(0x104)](c);
1
+ 'use strict';const _0x4ef310=_0x1fd4;function _0x1607(){const _0x5afa64=['extend','The\x20exchange\x20service\x20is\x20not\x20available','UNRECOGNIZED','importDOCXToSnapshot','1005402OKOCeS','UNIVER_PROJECT','922008nhCcki','@univerjs-pro/exchange-client','5995808rJVkVu','importDOCXToSnapshotAsync','28002168JfwAKs','exportDOCXByUnitId','exportXLSXBySnapshotAsync','importDOCXToUnitIdAsync','exportXLSXByUnitIdAsync','importFileToUnitId','exportDOCXBySnapshotAsync','exportXLSXByUnitId','importXLSXToSnapshotAsync','FUniver','importXLSXToUnitId','UNIVER_DOC','IExchangeService','importXLSXToUnitIdAsync','1274543DpHSie','11912616VoeaUW','importXLSXToSnapshot','get','21otHzcE','exportDOCXBySnapshot','1055825iRfSgH','@univerjs/core/facade','UNIVER_UNKNOWN','_injector','exportXLSXBySnapshot','exportDOCXByUnitIdAsync','importDOCXToUnitId','6YCjnIJ','UNIVER_SLIDE','UNIVER_SHEET'];_0x1607=function(){return _0x5afa64;};return _0x1607();}(function(_0x45a146,_0x3d67ea){const _0x344b92=_0x1fd4,_0x222c09=_0x45a146();while(!![]){try{const _0x1e0031=-parseInt(_0x344b92(0x84))/0x1+-parseInt(_0x344b92(0x98))/0x2+parseInt(_0x344b92(0x88))/0x3*(parseInt(_0x344b92(0x9a))/0x4)+parseInt(_0x344b92(0x8a))/0x5*(parseInt(_0x344b92(0x91))/0x6)+-parseInt(_0x344b92(0x9c))/0x7+-parseInt(_0x344b92(0x85))/0x8+parseInt(_0x344b92(0x76))/0x9;if(_0x1e0031===_0x3d67ea)break;else _0x222c09['push'](_0x222c09['shift']());}catch(_0x1e5bbd){_0x222c09['push'](_0x222c09['shift']());}}}(_0x1607,0xc686e));const r=require(_0x4ef310(0x9b)),o=require(_0x4ef310(0x8b));var i=(_0x288a28=>(_0x288a28[_0x288a28[_0x4ef310(0x8c)]=0x0]=_0x4ef310(0x8c),_0x288a28[_0x288a28['UNIVER_DOC']=0x1]='UNIVER_DOC',_0x288a28[_0x288a28['UNIVER_SHEET']=0x2]='UNIVER_SHEET',_0x288a28[_0x288a28['UNIVER_SLIDE']=0x3]=_0x4ef310(0x92),_0x288a28[_0x288a28[_0x4ef310(0x99)]=0x4]=_0x4ef310(0x99),_0x288a28[_0x288a28[_0x4ef310(0x96)]=-0x1]=_0x4ef310(0x96),_0x288a28))(i||{});class c extends o[_0x4ef310(0x7f)]{async[_0x4ef310(0x80)](_0xa435a8){return this['importXLSXToUnitIdAsync'](_0xa435a8);}async[_0x4ef310(0x83)](_0x2e2542){const _0x12930c=_0x4ef310,_0x4e8f11=this[_0x12930c(0x8d)]['get'](r[_0x12930c(0x82)]);if(!_0x4e8f11)throw new Error(_0x12930c(0x95));return _0x4e8f11[_0x12930c(0x7b)](_0x2e2542,i[_0x12930c(0x93)]);}async[_0x4ef310(0x86)](_0x527fbd){const _0x109286=_0x4ef310;return this[_0x109286(0x7e)](_0x527fbd);}async[_0x4ef310(0x7e)](_0x193515){const _0xa537fd=_0x4ef310,_0x7eaba4=this[_0xa537fd(0x8d)]['get'](r[_0xa537fd(0x82)]);if(!_0x7eaba4)throw new Error(_0xa537fd(0x95));return _0x7eaba4[_0xa537fd(0x86)](_0x193515);}async[_0x4ef310(0x7d)](_0x5809ec){const _0xf2a209=_0x4ef310;return this[_0xf2a209(0x7a)](_0x5809ec);}async['exportXLSXByUnitIdAsync'](_0x1e91ec){const _0x672053=_0x4ef310,_0xda3ac2=this[_0x672053(0x8d)][_0x672053(0x87)](r[_0x672053(0x82)]);if(!_0xda3ac2)throw new Error(_0x672053(0x95));return _0xda3ac2['exportXLSXByUnitId'](_0x1e91ec);}async['exportXLSXBySnapshot'](_0xf33f60){const _0x3e6872=_0x4ef310;return this[_0x3e6872(0x78)](_0xf33f60);}async['exportXLSXBySnapshotAsync'](_0x5dda86){const _0x1b3d85=_0x4ef310,_0x2f720f=this[_0x1b3d85(0x8d)]['get'](r[_0x1b3d85(0x82)]);if(!_0x2f720f)throw new Error(_0x1b3d85(0x95));return _0x2f720f[_0x1b3d85(0x8e)](_0x5dda86);}async[_0x4ef310(0x90)](_0x53fd93){return this['importDOCXToUnitIdAsync'](_0x53fd93);}async[_0x4ef310(0x79)](_0x4ade9f){const _0x34cf0d=_0x4ef310,_0x1f14d1=this[_0x34cf0d(0x8d)][_0x34cf0d(0x87)](r['IExchangeService']);if(!_0x1f14d1)throw new Error(_0x34cf0d(0x95));return _0x1f14d1['importFileToUnitId'](_0x4ade9f,i[_0x34cf0d(0x81)]);}async[_0x4ef310(0x97)](_0x5727a4){const _0x1869c2=_0x4ef310;return this[_0x1869c2(0x75)](_0x5727a4);}async[_0x4ef310(0x75)](_0x581073){const _0x5d3fca=_0x4ef310,_0x28b71c=this[_0x5d3fca(0x8d)]['get'](r[_0x5d3fca(0x82)]);if(!_0x28b71c)throw new Error(_0x5d3fca(0x95));return _0x28b71c[_0x5d3fca(0x97)](_0x581073);}async[_0x4ef310(0x7c)](_0x87b41a){const _0x3fcdb7=_0x4ef310,_0x3f3b29=this[_0x3fcdb7(0x8d)][_0x3fcdb7(0x87)](r[_0x3fcdb7(0x82)]);if(!_0x3f3b29)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x3f3b29[_0x3fcdb7(0x89)](_0x87b41a);}async[_0x4ef310(0x8f)](_0x5035f0){const _0x24c801=_0x4ef310,_0x25c59b=this['_injector']['get'](r[_0x24c801(0x82)]);if(!_0x25c59b)throw new Error(_0x24c801(0x95));return _0x25c59b[_0x24c801(0x77)](_0x5035f0);}}function _0x1fd4(_0x400100,_0x249d3b){const _0x160768=_0x1607();return _0x1fd4=function(_0x1fd402,_0x5c7b37){_0x1fd402=_0x1fd402-0x75;let _0x2a73aa=_0x160768[_0x1fd402];return _0x2a73aa;},_0x1fd4(_0x400100,_0x249d3b);}o['FUniver'][_0x4ef310(0x94)](c);