@univerjs-pro/exchange-client 0.5.4 → 0.5.5-experimental.20250123-34738ff

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 (41) 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/types/index.d.ts +1 -1
  20. package/lib/types/services/utils/snapshot.d.ts +7 -1
  21. package/lib/types/views/UploadNotificationContainer.d.ts +1 -2
  22. package/lib/types/views/link-list/LinkList.d.ts +1 -2
  23. package/lib/types/views/upload-again/UploadAgain.d.ts +1 -2
  24. package/lib/types/views/upload-button/UploadButton.d.ts +1 -1
  25. package/lib/types/views/upload-error/UploadError.d.ts +1 -2
  26. package/lib/types/views/upload-notification/UploadNotification.d.ts +1 -2
  27. package/lib/types/views/upload-success/UploadSuccess.d.ts +1 -2
  28. package/lib/types/views/uploading/Uploading.d.ts +1 -2
  29. package/lib/types/views/uploading/upload-cancel/UploadCancel.d.ts +1 -2
  30. package/lib/types/views/uploading/upload-progress/UploadProgress.d.ts +1 -2
  31. package/lib/umd/facade.js +1 -1
  32. package/lib/umd/index.js +2 -2
  33. package/lib/umd/locale/en-US.js +1 -1
  34. package/lib/umd/locale/fa-IR.js +1 -1
  35. package/lib/umd/locale/fr-FR.js +1 -1
  36. package/lib/umd/locale/ru-RU.js +1 -1
  37. package/lib/umd/locale/vi-VN.js +1 -1
  38. package/lib/umd/locale/zh-CN.js +1 -1
  39. package/lib/umd/locale/zh-TW.js +1 -1
  40. package/package.json +11 -11
  41. package/lib/types/services/__tests__/snapshot.spec.d.ts +0 -1
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x1f1080=_0x2e2f;function _0x2e7b(){const _0x44e916=['@univerjs/core','exportXLSXBySnapshotAsync','The\x20exchange\x20service\x20is\x20not\x20available','@univerjs-pro/exchange-client','49OcwOrY','UNIVER_SHEET','importXLSXToSnapshotAsync','importDOCXToUnitIdAsync','9CVaJLQ','get','importDOCXToUnitId','30146vDZmej','55EzcdTr','332672XYesrC','FUniver','importFileToUnitId','importXLSXToSnapshot','UNIVER_DOC','IExchangeService','356096ZMIsnH','UNIVER_UNKNOWN','1pAnOds','46356QMYobz','389685KiqnzC','UNIVER_PROJECT','_injector','importDOCXToSnapshotAsync','importXLSXToUnitId','exportXLSXByUnitIdAsync','70YMyuwi','3176510mRyzgF','importDOCXToSnapshot','596364LhosLP','exportXLSXByUnitId','extend','importXLSXToUnitIdAsync','exportXLSXBySnapshot','UNIVER_SLIDE','UNRECOGNIZED'];_0x2e7b=function(){return _0x44e916;};return _0x2e7b();}(function(_0x113e27,_0xf9f4bb){const _0x471b8e=_0x2e2f,_0x21f5ab=_0x113e27();while(!![]){try{const _0x2fd8c2=-parseInt(_0x471b8e(0x1a6))/0x1*(-parseInt(_0x471b8e(0x19c))/0x2)+-parseInt(_0x471b8e(0x1a8))/0x3+-parseInt(_0x471b8e(0x19e))/0x4+-parseInt(_0x471b8e(0x187))/0x5*(-parseInt(_0x471b8e(0x1a7))/0x6)+-parseInt(_0x471b8e(0x195))/0x7*(-parseInt(_0x471b8e(0x1a4))/0x8)+parseInt(_0x471b8e(0x199))/0x9*(parseInt(_0x471b8e(0x188))/0xa)+-parseInt(_0x471b8e(0x19d))/0xb*(parseInt(_0x471b8e(0x18a))/0xc);if(_0x2fd8c2===_0xf9f4bb)break;else _0x21f5ab['push'](_0x21f5ab['shift']());}catch(_0x4e4b13){_0x21f5ab['push'](_0x21f5ab['shift']());}}}(_0x2e7b,0x4706c));const r=require(_0x1f1080(0x194)),i=require(_0x1f1080(0x191));var o=(_0x3dc42a=>(_0x3dc42a[_0x3dc42a[_0x1f1080(0x1a5)]=0x0]='UNIVER_UNKNOWN',_0x3dc42a[_0x3dc42a[_0x1f1080(0x1a2)]=0x1]=_0x1f1080(0x1a2),_0x3dc42a[_0x3dc42a[_0x1f1080(0x196)]=0x2]='UNIVER_SHEET',_0x3dc42a[_0x3dc42a[_0x1f1080(0x18f)]=0x3]=_0x1f1080(0x18f),_0x3dc42a[_0x3dc42a[_0x1f1080(0x182)]=0x4]=_0x1f1080(0x182),_0x3dc42a[_0x3dc42a['UNRECOGNIZED']=-0x1]=_0x1f1080(0x190),_0x3dc42a))(o||{});class c extends i[_0x1f1080(0x19f)]{async[_0x1f1080(0x185)](_0x4c7a3d){const _0x1bbe7c=_0x1f1080;return this[_0x1bbe7c(0x18d)](_0x4c7a3d);}async['importXLSXToUnitIdAsync'](_0x38dda3){const _0x462301=_0x1f1080,_0xc7724a=this[_0x462301(0x183)][_0x462301(0x19a)](r['IExchangeService']);if(!_0xc7724a)throw new Error(_0x462301(0x193));return _0xc7724a[_0x462301(0x1a0)](_0x38dda3,o[_0x462301(0x196)]);}async[_0x1f1080(0x1a1)](_0x1c9595){const _0x358de=_0x1f1080;return this[_0x358de(0x197)](_0x1c9595);}async['importXLSXToSnapshotAsync'](_0x183ccc){const _0x266d95=_0x1f1080,_0x4996bd=this[_0x266d95(0x183)][_0x266d95(0x19a)](r[_0x266d95(0x1a3)]);if(!_0x4996bd)throw new Error(_0x266d95(0x193));return _0x4996bd[_0x266d95(0x1a1)](_0x183ccc);}async[_0x1f1080(0x18b)](_0x42bcc0){const _0x34e47b=_0x1f1080;return this[_0x34e47b(0x186)](_0x42bcc0);}async[_0x1f1080(0x186)](_0x5f501d){const _0x11b5c3=_0x1f1080,_0x3b6acd=this[_0x11b5c3(0x183)]['get'](r[_0x11b5c3(0x1a3)]);if(!_0x3b6acd)throw new Error(_0x11b5c3(0x193));return _0x3b6acd[_0x11b5c3(0x18b)](_0x5f501d);}async[_0x1f1080(0x18e)](_0x34f689){const _0xa4b8cb=_0x1f1080;return this[_0xa4b8cb(0x192)](_0x34f689);}async['exportXLSXBySnapshotAsync'](_0x5c44ae){const _0x2bec56=_0x1f1080,_0x3a38a2=this[_0x2bec56(0x183)][_0x2bec56(0x19a)](r[_0x2bec56(0x1a3)]);if(!_0x3a38a2)throw new Error(_0x2bec56(0x193));return _0x3a38a2[_0x2bec56(0x18e)](_0x5c44ae);}async[_0x1f1080(0x19b)](_0x519d30){const _0x3fbc74=_0x1f1080;return this[_0x3fbc74(0x198)](_0x519d30);}async[_0x1f1080(0x198)](_0x38eb1c){const _0x2c221d=_0x1f1080,_0x27754f=this[_0x2c221d(0x183)][_0x2c221d(0x19a)](r['IExchangeService']);if(!_0x27754f)throw new Error(_0x2c221d(0x193));return _0x27754f[_0x2c221d(0x1a0)](_0x38eb1c,o['UNIVER_DOC']);}async[_0x1f1080(0x189)](_0x574362){const _0x3ffa51=_0x1f1080;return this[_0x3ffa51(0x184)](_0x574362);}async[_0x1f1080(0x184)](_0x3cae2d){const _0xc27686=_0x1f1080,_0x4abe86=this['_injector'][_0xc27686(0x19a)](r['IExchangeService']);if(!_0x4abe86)throw new Error(_0xc27686(0x193));return _0x4abe86[_0xc27686(0x189)](_0x3cae2d);}}function _0x2e2f(_0x9f31ff,_0x1e46e4){const _0x2e7b40=_0x2e7b();return _0x2e2f=function(_0x2e2fe4,_0x2c69e8){_0x2e2fe4=_0x2e2fe4-0x182;let _0x3b500e=_0x2e7b40[_0x2e2fe4];return _0x3b500e;},_0x2e2f(_0x9f31ff,_0x1e46e4);}i[_0x1f1080(0x19f)][_0x1f1080(0x18c)](c);
1
+ 'use strict';const _0x2dc3aa=_0x289e;(function(_0x48cc7b,_0x5b4b20){const _0x5a4dee=_0x289e,_0x4b8d56=_0x48cc7b();while(!![]){try{const _0x5ce777=parseInt(_0x5a4dee(0x86))/0x1*(parseInt(_0x5a4dee(0x89))/0x2)+parseInt(_0x5a4dee(0x9a))/0x3+parseInt(_0x5a4dee(0xa3))/0x4*(-parseInt(_0x5a4dee(0x8f))/0x5)+parseInt(_0x5a4dee(0x96))/0x6*(parseInt(_0x5a4dee(0x85))/0x7)+parseInt(_0x5a4dee(0x99))/0x8+parseInt(_0x5a4dee(0x88))/0x9*(parseInt(_0x5a4dee(0xa9))/0xa)+parseInt(_0x5a4dee(0xaa))/0xb*(-parseInt(_0x5a4dee(0xa4))/0xc);if(_0x5ce777===_0x5b4b20)break;else _0x4b8d56['push'](_0x4b8d56['shift']());}catch(_0x34a856){_0x4b8d56['push'](_0x4b8d56['shift']());}}}(_0x41fe,0x7b118));var __defProp=Object[_0x2dc3aa(0xa5)],__name=(_0x513f86,_0x545e9a)=>__defProp(_0x513f86,_0x2dc3aa(0x9b),{'value':_0x545e9a,'configurable':!0x0});const exchangeClient=require('@univerjs-pro/exchange-client'),core=require(_0x2dc3aa(0xa1));var UniverType=(_0x299148=>(_0x299148[_0x299148['UNIVER_UNKNOWN']=0x0]=_0x2dc3aa(0xa7),_0x299148[_0x299148[_0x2dc3aa(0x90)]=0x1]='UNIVER_DOC',_0x299148[_0x299148[_0x2dc3aa(0x94)]=0x2]=_0x2dc3aa(0x94),_0x299148[_0x299148[_0x2dc3aa(0x9c)]=0x3]=_0x2dc3aa(0x9c),_0x299148[_0x299148[_0x2dc3aa(0xa2)]=0x4]='UNIVER_PROJECT',_0x299148[_0x299148[_0x2dc3aa(0x8d)]=-0x1]=_0x2dc3aa(0x8d),_0x299148))(UniverType||{});function _0x289e(_0xd22e39,_0x247801){const _0x41fecd=_0x41fe();return _0x289e=function(_0x289e3c,_0x485f0c){_0x289e3c=_0x289e3c-0x85;let _0x5f3a1c=_0x41fecd[_0x289e3c];return _0x5f3a1c;},_0x289e(_0xd22e39,_0x247801);}const _FUniverExchangeClientMixin=class _FUniverExchangeClientMixin extends core[_0x2dc3aa(0x92)]{async[_0x2dc3aa(0x8a)](_0x41e183){const _0x84ad03=_0x2dc3aa;return this[_0x84ad03(0x8b)](_0x41e183);}async['importXLSXToUnitIdAsync'](_0x4dabdc){const _0x22ab89=_0x2dc3aa,_0x45f910=this[_0x22ab89(0xab)][_0x22ab89(0x9d)](exchangeClient[_0x22ab89(0x9e)]);if(!_0x45f910)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x45f910[_0x22ab89(0x97)](_0x4dabdc,UniverType[_0x22ab89(0x94)]);}async[_0x2dc3aa(0x9f)](_0x57120b){const _0x54e4bd=_0x2dc3aa;return this[_0x54e4bd(0x8c)](_0x57120b);}async[_0x2dc3aa(0x8c)](_0x5ccfce){const _0x1e926f=_0x2dc3aa,_0x2809d0=this[_0x1e926f(0xab)]['get'](exchangeClient[_0x1e926f(0x9e)]);if(!_0x2809d0)throw new Error(_0x1e926f(0x93));return _0x2809d0[_0x1e926f(0x9f)](_0x5ccfce);}async[_0x2dc3aa(0xa8)](_0xdb9ed0){return this['exportXLSXByUnitIdAsync'](_0xdb9ed0);}async[_0x2dc3aa(0x98)](_0x39256e){const _0x57db7b=_0x2dc3aa,_0x1f3cbb=this[_0x57db7b(0xab)]['get'](exchangeClient['IExchangeService']);if(!_0x1f3cbb)throw new Error(_0x57db7b(0x93));return _0x1f3cbb['exportXLSXByUnitId'](_0x39256e);}async['exportXLSXBySnapshot'](_0x536846){return this['exportXLSXBySnapshotAsync'](_0x536846);}async['exportXLSXBySnapshotAsync'](_0x44594d){const _0x525ff8=_0x2dc3aa,_0x3cd35d=this[_0x525ff8(0xab)][_0x525ff8(0x9d)](exchangeClient[_0x525ff8(0x9e)]);if(!_0x3cd35d)throw new Error(_0x525ff8(0x93));return _0x3cd35d['exportXLSXBySnapshot'](_0x44594d);}async[_0x2dc3aa(0x95)](_0x19cec3){const _0x1960e4=_0x2dc3aa;return this[_0x1960e4(0x91)](_0x19cec3);}async[_0x2dc3aa(0x91)](_0x122db6){const _0x4c5ca4=_0x2dc3aa,_0xc8b9d=this[_0x4c5ca4(0xab)]['get'](exchangeClient['IExchangeService']);if(!_0xc8b9d)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0xc8b9d[_0x4c5ca4(0x97)](_0x122db6,UniverType[_0x4c5ca4(0x90)]);}async[_0x2dc3aa(0x87)](_0xd28f2a){return this['importDOCXToSnapshotAsync'](_0xd28f2a);}async[_0x2dc3aa(0x8e)](_0x12ea17){const _0x537c56=_0x2dc3aa,_0x3f1d81=this[_0x537c56(0xab)]['get'](exchangeClient[_0x537c56(0x9e)]);if(!_0x3f1d81)throw new Error(_0x537c56(0x93));return _0x3f1d81['importDOCXToSnapshot'](_0x12ea17);}};__name(_FUniverExchangeClientMixin,_0x2dc3aa(0xa6));let FUniverExchangeClientMixin=_FUniverExchangeClientMixin;core['FUniver'][_0x2dc3aa(0xa0)](FUniverExchangeClientMixin);function _0x41fe(){const _0x88bbc2=['name','UNIVER_SLIDE','get','IExchangeService','importXLSXToSnapshot','extend','@univerjs/core','UNIVER_PROJECT','89696KSpqEE','6241980XigYgd','defineProperty','FUniverExchangeClientMixin','UNIVER_UNKNOWN','exportXLSXByUnitId','12660JCOzxU','33QeSChi','_injector','2813524heXyFu','3IkEFDs','importDOCXToSnapshot','207xBbhow','204gecrJK','importXLSXToUnitId','importXLSXToUnitIdAsync','importXLSXToSnapshotAsync','UNRECOGNIZED','importDOCXToSnapshotAsync','55RvaNAh','UNIVER_DOC','importDOCXToUnitIdAsync','FUniver','The\x20exchange\x20service\x20is\x20not\x20available','UNIVER_SHEET','importDOCXToUnitId','6wqcgXY','importFileToUnitId','exportXLSXByUnitIdAsync','7654776gsLJgC','2769132mUgjWC'];_0x41fe=function(){return _0x88bbc2;};return _0x41fe();}