@univerjs-pro/exchange-client 0.5.4 → 0.5.5-experimental.20250122-3362a4a

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 (40) 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 +9 -9
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';function _0x4642(){const _0x44327b=['UNIVER_DOC','defineProperty','5926248byoCya','1120bWyJBv','1445864bBJOIk','extend','UNIVER_SLIDE','1733OxxYTY','importDOCXToSnapshotAsync','IExchangeService','exportXLSXBySnapshotAsync','966800usrUlj','importXLSXToUnitId','FUniver','importXLSXToSnapshotAsync','UNIVER_PROJECT','108IcnslA','get','FUniverExchangeClientMixin','38455geNUyS','importDOCXToSnapshot','importXLSXToUnitIdAsync','importFileToUnitId','The\x20exchange\x20service\x20is\x20not\x20available','159928wKxWsQ','exportXLSXByUnitIdAsync','exportXLSXBySnapshot','1354lTesGR','_injector','UNIVER_UNKNOWN','@univerjs-pro/exchange-client','exportXLSXByUnitId','@univerjs/core','51EFbcMG','21758DZuxhk','name','45AHIZzj','UNIVER_SHEET','UNRECOGNIZED'];_0x4642=function(){return _0x44327b;};return _0x4642();}const _0xf4294f=_0xf41c;(function(_0x13d041,_0x29cd8c){const _0x3aa10e=_0xf41c,_0x3a8a13=_0x13d041();while(!![]){try{const _0xd27c0b=-parseInt(_0x3aa10e(0x1cd))/0x1*(-parseInt(_0x3aa10e(0x1ba))/0x2)+parseInt(_0x3aa10e(0x1c0))/0x3*(parseInt(_0x3aa10e(0x1b7))/0x4)+-parseInt(_0x3aa10e(0x1b2))/0x5*(parseInt(_0x3aa10e(0x1af))/0x6)+-parseInt(_0x3aa10e(0x1ca))/0x7+parseInt(_0x3aa10e(0x1d1))/0x8*(-parseInt(_0x3aa10e(0x1c3))/0x9)+parseInt(_0x3aa10e(0x1c9))/0xa*(parseInt(_0x3aa10e(0x1c1))/0xb)+-parseInt(_0x3aa10e(0x1c8))/0xc;if(_0xd27c0b===_0x29cd8c)break;else _0x3a8a13['push'](_0x3a8a13['shift']());}catch(_0x388a63){_0x3a8a13['push'](_0x3a8a13['shift']());}}}(_0x4642,0x9a251));function _0xf41c(_0x40b3c9,_0x31a1a6){const _0x46422b=_0x4642();return _0xf41c=function(_0xf41c9a,_0x41c967){_0xf41c9a=_0xf41c9a-0x1ae;let _0x21946b=_0x46422b[_0xf41c9a];return _0x21946b;},_0xf41c(_0x40b3c9,_0x31a1a6);}var __defProp=Object[_0xf4294f(0x1c7)],__name=(_0x34d72a,_0x5e87a0)=>__defProp(_0x34d72a,_0xf4294f(0x1c2),{'value':_0x5e87a0,'configurable':!0x0});const exchangeClient=require(_0xf4294f(0x1bd)),core=require(_0xf4294f(0x1bf));var UniverType=(_0x2c0401=>(_0x2c0401[_0x2c0401['UNIVER_UNKNOWN']=0x0]=_0xf4294f(0x1bc),_0x2c0401[_0x2c0401[_0xf4294f(0x1c6)]=0x1]='UNIVER_DOC',_0x2c0401[_0x2c0401[_0xf4294f(0x1c4)]=0x2]='UNIVER_SHEET',_0x2c0401[_0x2c0401[_0xf4294f(0x1cc)]=0x3]=_0xf4294f(0x1cc),_0x2c0401[_0x2c0401[_0xf4294f(0x1ae)]=0x4]=_0xf4294f(0x1ae),_0x2c0401[_0x2c0401['UNRECOGNIZED']=-0x1]=_0xf4294f(0x1c5),_0x2c0401))(UniverType||{});const _FUniverExchangeClientMixin=class _FUniverExchangeClientMixin extends core[_0xf4294f(0x1d3)]{async[_0xf4294f(0x1d2)](_0x1172b6){const _0x149c50=_0xf4294f;return this[_0x149c50(0x1b4)](_0x1172b6);}async[_0xf4294f(0x1b4)](_0x24d481){const _0x44cc42=_0xf4294f,_0x40a24b=this[_0x44cc42(0x1bb)][_0x44cc42(0x1b0)](exchangeClient[_0x44cc42(0x1cf)]);if(!_0x40a24b)throw new Error(_0x44cc42(0x1b6));return _0x40a24b[_0x44cc42(0x1b5)](_0x24d481,UniverType[_0x44cc42(0x1c4)]);}async['importXLSXToSnapshot'](_0x500fbd){const _0x1a88cf=_0xf4294f;return this[_0x1a88cf(0x1d4)](_0x500fbd);}async[_0xf4294f(0x1d4)](_0x2b4d99){const _0x27ef53=_0xf4294f,_0x5df7b6=this[_0x27ef53(0x1bb)][_0x27ef53(0x1b0)](exchangeClient['IExchangeService']);if(!_0x5df7b6)throw new Error(_0x27ef53(0x1b6));return _0x5df7b6['importXLSXToSnapshot'](_0x2b4d99);}async[_0xf4294f(0x1be)](_0x1414c3){const _0x2d7bde=_0xf4294f;return this[_0x2d7bde(0x1b8)](_0x1414c3);}async[_0xf4294f(0x1b8)](_0x3ba318){const _0x19afd3=_0xf4294f,_0x23f9de=this[_0x19afd3(0x1bb)][_0x19afd3(0x1b0)](exchangeClient[_0x19afd3(0x1cf)]);if(!_0x23f9de)throw new Error(_0x19afd3(0x1b6));return _0x23f9de[_0x19afd3(0x1be)](_0x3ba318);}async[_0xf4294f(0x1b9)](_0x48e6d6){const _0x8efc35=_0xf4294f;return this[_0x8efc35(0x1d0)](_0x48e6d6);}async[_0xf4294f(0x1d0)](_0x5c6133){const _0x22e4c6=_0xf4294f,_0x528cc5=this[_0x22e4c6(0x1bb)][_0x22e4c6(0x1b0)](exchangeClient['IExchangeService']);if(!_0x528cc5)throw new Error(_0x22e4c6(0x1b6));return _0x528cc5[_0x22e4c6(0x1b9)](_0x5c6133);}async['importDOCXToUnitId'](_0xa53b03){return this['importDOCXToUnitIdAsync'](_0xa53b03);}async['importDOCXToUnitIdAsync'](_0xc3a463){const _0x589ad5=_0xf4294f,_0x4dc972=this['_injector']['get'](exchangeClient['IExchangeService']);if(!_0x4dc972)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x4dc972[_0x589ad5(0x1b5)](_0xc3a463,UniverType[_0x589ad5(0x1c6)]);}async[_0xf4294f(0x1b3)](_0x2037a5){const _0x5a2ba3=_0xf4294f;return this[_0x5a2ba3(0x1ce)](_0x2037a5);}async[_0xf4294f(0x1ce)](_0x361724){const _0x30efeb=_0xf4294f,_0x2e37c0=this[_0x30efeb(0x1bb)][_0x30efeb(0x1b0)](exchangeClient[_0x30efeb(0x1cf)]);if(!_0x2e37c0)throw new Error(_0x30efeb(0x1b6));return _0x2e37c0[_0x30efeb(0x1b3)](_0x361724);}};__name(_FUniverExchangeClientMixin,_0xf4294f(0x1b1));let FUniverExchangeClientMixin=_FUniverExchangeClientMixin;core['FUniver'][_0xf4294f(0x1cb)](FUniverExchangeClientMixin);