@univerjs-pro/exchange-client 0.17.0 → 0.18.0

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 (79) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/sk-SK.js +1 -1
  12. package/lib/cjs/locale/vi-VN.js +1 -1
  13. package/lib/cjs/locale/zh-CN.js +1 -1
  14. package/lib/cjs/locale/zh-TW.js +1 -1
  15. package/lib/es/facade.js +1 -1
  16. package/lib/es/index.js +1 -1
  17. package/lib/es/locale/ca-ES.js +1 -1
  18. package/lib/es/locale/en-US.js +1 -1
  19. package/lib/es/locale/es-ES.js +1 -1
  20. package/lib/es/locale/fa-IR.js +1 -1
  21. package/lib/es/locale/fr-FR.js +1 -1
  22. package/lib/es/locale/ja-JP.js +1 -1
  23. package/lib/es/locale/ko-KR.js +1 -1
  24. package/lib/es/locale/ru-RU.js +1 -1
  25. package/lib/es/locale/sk-SK.js +1 -1
  26. package/lib/es/locale/vi-VN.js +1 -1
  27. package/lib/es/locale/zh-CN.js +1 -1
  28. package/lib/es/locale/zh-TW.js +1 -1
  29. package/lib/facade.js +1 -1
  30. package/lib/index.css +353 -1
  31. package/lib/index.js +1 -1
  32. package/lib/locale/ca-ES.js +1 -1
  33. package/lib/locale/en-US.js +1 -1
  34. package/lib/locale/es-ES.js +1 -1
  35. package/lib/locale/fa-IR.js +1 -1
  36. package/lib/locale/fr-FR.js +1 -1
  37. package/lib/locale/ja-JP.js +1 -1
  38. package/lib/locale/ko-KR.js +1 -1
  39. package/lib/locale/ru-RU.js +1 -1
  40. package/lib/locale/sk-SK.js +1 -1
  41. package/lib/locale/vi-VN.js +1 -1
  42. package/lib/locale/zh-CN.js +1 -1
  43. package/lib/locale/zh-TW.js +1 -1
  44. package/lib/types/facade/f-univer.d.ts +1 -1
  45. package/lib/types/locale/ca-ES.d.ts +1 -1
  46. package/lib/types/locale/es-ES.d.ts +1 -1
  47. package/lib/types/locale/fa-IR.d.ts +1 -1
  48. package/lib/types/locale/fr-FR.d.ts +1 -1
  49. package/lib/types/locale/ja-JP.d.ts +1 -1
  50. package/lib/types/locale/ko-KR.d.ts +1 -1
  51. package/lib/types/locale/ru-RU.d.ts +1 -1
  52. package/lib/types/locale/sk-SK.d.ts +1 -1
  53. package/lib/types/locale/vi-VN.d.ts +1 -1
  54. package/lib/types/locale/zh-CN.d.ts +1 -1
  55. package/lib/types/locale/zh-TW.d.ts +1 -1
  56. package/lib/types/plugin.d.ts +1 -1
  57. package/lib/types/services/exchange.service.d.ts +16 -8
  58. package/lib/types/services/operate.service.d.ts +6 -5
  59. package/lib/types/services/request.service.d.ts +9 -5
  60. package/lib/types/services/upload-notification.service.d.ts +5 -4
  61. package/lib/types/services/utils/snapshot.d.ts +3 -3
  62. package/lib/types/services/utils/tool.d.ts +1 -1
  63. package/lib/types/views/link-list/LinkList.d.ts +1 -1
  64. package/lib/types/views/upload-button/UploadButton.d.ts +1 -1
  65. package/lib/umd/facade.js +1 -1
  66. package/lib/umd/index.js +1 -1
  67. package/lib/umd/locale/ca-ES.js +1 -1
  68. package/lib/umd/locale/en-US.js +1 -1
  69. package/lib/umd/locale/es-ES.js +1 -1
  70. package/lib/umd/locale/fa-IR.js +1 -1
  71. package/lib/umd/locale/fr-FR.js +1 -1
  72. package/lib/umd/locale/ja-JP.js +1 -1
  73. package/lib/umd/locale/ko-KR.js +1 -1
  74. package/lib/umd/locale/ru-RU.js +1 -1
  75. package/lib/umd/locale/sk-SK.js +1 -1
  76. package/lib/umd/locale/vi-VN.js +1 -1
  77. package/lib/umd/locale/zh-CN.js +1 -1
  78. package/lib/umd/locale/zh-TW.js +1 -1
  79. package/package.json +12 -11
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x309083=_0x54b4;(function(_0x30f518,_0x2dafb8){const _0x18bc23=_0x54b4,_0x1447c5=_0x30f518();while(!![]){try{const _0x415938=parseInt(_0x18bc23(0x15d))/0x1*(parseInt(_0x18bc23(0x162))/0x2)+parseInt(_0x18bc23(0x16d))/0x3+parseInt(_0x18bc23(0x177))/0x4*(-parseInt(_0x18bc23(0x178))/0x5)+parseInt(_0x18bc23(0x159))/0x6*(parseInt(_0x18bc23(0x16e))/0x7)+parseInt(_0x18bc23(0x161))/0x8*(parseInt(_0x18bc23(0x17b))/0x9)+parseInt(_0x18bc23(0x157))/0xa*(-parseInt(_0x18bc23(0x169))/0xb)+-parseInt(_0x18bc23(0x15a))/0xc;if(_0x415938===_0x2dafb8)break;else _0x1447c5['push'](_0x1447c5['shift']());}catch(_0x40088b){_0x1447c5['push'](_0x1447c5['shift']());}}}(_0x2b74,0xc803b));const r=require('@univerjs-pro/exchange-client'),o=require('@univerjs/core/facade');var i=(_0x5053b9=>(_0x5053b9[_0x5053b9[_0x309083(0x16a)]=0x0]='UNIVER_UNKNOWN',_0x5053b9[_0x5053b9[_0x309083(0x15f)]=0x1]=_0x309083(0x15f),_0x5053b9[_0x5053b9[_0x309083(0x165)]=0x2]=_0x309083(0x165),_0x5053b9[_0x5053b9[_0x309083(0x16f)]=0x3]='UNIVER_SLIDE',_0x5053b9[_0x5053b9['UNIVER_PROJECT']=0x4]=_0x309083(0x172),_0x5053b9[_0x5053b9[_0x309083(0x166)]=-0x1]=_0x309083(0x166),_0x5053b9))(i||{});class c extends o['FUniver']{async[_0x309083(0x160)](_0xd40552){const _0x39aeb8=_0x309083;return this[_0x39aeb8(0x15c)](_0xd40552);}async[_0x309083(0x15c)](_0x276271){const _0x399d50=_0x309083,_0x2ad250=this[_0x399d50(0x16c)][_0x399d50(0x179)](r['IExchangeService']);if(!_0x2ad250)throw new Error(_0x399d50(0x17a));return _0x2ad250[_0x399d50(0x15b)](_0x276271,i[_0x399d50(0x165)]);}async[_0x309083(0x171)](_0xe2a8f7){const _0x4db7f3=_0x309083;return this[_0x4db7f3(0x15e)](_0xe2a8f7);}async[_0x309083(0x15e)](_0x228091){const _0x359135=_0x309083,_0x2b9ceb=this['_injector'][_0x359135(0x179)](r[_0x359135(0x168)]);if(!_0x2b9ceb)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x2b9ceb['importXLSXToSnapshot'](_0x228091);}async[_0x309083(0x175)](_0x56c4ad){const _0x5b32e3=_0x309083;return this[_0x5b32e3(0x173)](_0x56c4ad);}async[_0x309083(0x173)](_0x996e5e){const _0x2bf3b6=_0x309083,_0x4686f1=this[_0x2bf3b6(0x16c)][_0x2bf3b6(0x179)](r['IExchangeService']);if(!_0x4686f1)throw new Error(_0x2bf3b6(0x17a));return _0x4686f1[_0x2bf3b6(0x175)](_0x996e5e);}async[_0x309083(0x176)](_0x11380b){const _0x4949c8=_0x309083;return this[_0x4949c8(0x17d)](_0x11380b);}async[_0x309083(0x17d)](_0x28e33a){const _0x1320ca=_0x309083,_0x2caeda=this[_0x1320ca(0x16c)][_0x1320ca(0x179)](r['IExchangeService']);if(!_0x2caeda)throw new Error(_0x1320ca(0x17a));return _0x2caeda[_0x1320ca(0x176)](_0x28e33a);}async['importDOCXToUnitId'](_0x22fd92){const _0x253122=_0x309083;return this[_0x253122(0x163)](_0x22fd92);}async['importDOCXToUnitIdAsync'](_0x160bab){const _0x5c6a3e=_0x309083,_0x2427bc=this[_0x5c6a3e(0x16c)][_0x5c6a3e(0x179)](r[_0x5c6a3e(0x168)]);if(!_0x2427bc)throw new Error(_0x5c6a3e(0x17a));return _0x2427bc[_0x5c6a3e(0x15b)](_0x160bab,i['UNIVER_DOC']);}async[_0x309083(0x156)](_0xe40272){const _0x15ea9b=_0x309083;return this[_0x15ea9b(0x16b)](_0xe40272);}async[_0x309083(0x16b)](_0x387cee){const _0x5a2d84=_0x309083,_0x3ef749=this[_0x5a2d84(0x16c)][_0x5a2d84(0x179)](r[_0x5a2d84(0x168)]);if(!_0x3ef749)throw new Error(_0x5a2d84(0x17a));return _0x3ef749['importDOCXToSnapshot'](_0x387cee);}async[_0x309083(0x17c)](_0x48f010){const _0x2ffaa7=_0x309083,_0x3488c2=this[_0x2ffaa7(0x16c)][_0x2ffaa7(0x179)](r['IExchangeService']);if(!_0x3488c2)throw new Error(_0x2ffaa7(0x17a));return _0x3488c2[_0x2ffaa7(0x170)](_0x48f010);}async[_0x309083(0x174)](_0x446314){const _0x6528bf=_0x309083,_0x4b066f=this[_0x6528bf(0x16c)][_0x6528bf(0x179)](r[_0x6528bf(0x168)]);if(!_0x4b066f)throw new Error(_0x6528bf(0x17a));return _0x4b066f[_0x6528bf(0x158)](_0x446314);}}function _0x54b4(_0x4da818,_0x2646e8){_0x4da818=_0x4da818-0x156;const _0x2b748c=_0x2b74();let _0x54b4a5=_0x2b748c[_0x4da818];return _0x54b4a5;}o[_0x309083(0x164)][_0x309083(0x167)](c);function _0x2b74(){const _0x70d103=['FUniver','UNIVER_SHEET','UNRECOGNIZED','extend','IExchangeService','448811XoZIkf','UNIVER_UNKNOWN','importDOCXToSnapshotAsync','_injector','4899240EidvXe','2459821odxgGu','UNIVER_SLIDE','exportDOCXBySnapshot','importXLSXToSnapshot','UNIVER_PROJECT','exportXLSXByUnitIdAsync','exportDOCXByUnitIdAsync','exportXLSXByUnitId','exportXLSXBySnapshot','12692WBTcUX','1365fxfIRc','get','The\x20exchange\x20service\x20is\x20not\x20available','18SqWcSn','exportDOCXBySnapshotAsync','exportXLSXBySnapshotAsync','importDOCXToSnapshot','390dwgkOO','exportDOCXByUnitId','12JrGYTo','20373996FGZWcw','importFileToUnitId','importXLSXToUnitIdAsync','27rNUXrC','importXLSXToSnapshotAsync','UNIVER_DOC','importXLSXToUnitId','5627520iSVpfv','91244JXtHFl','importDOCXToUnitIdAsync'];_0x2b74=function(){return _0x70d103;};return _0x2b74();}
1
+ const _0x95362c=_0x3496;(function(_0x347506,_0x5be53d){const _0x29eb4e=_0x3496,_0x4a7761=_0x347506();while(!![]){try{const _0x3d022f=-parseInt(_0x29eb4e(0xa4))/0x1*(-parseInt(_0x29eb4e(0xa9))/0x2)+parseInt(_0x29eb4e(0xaf))/0x3*(-parseInt(_0x29eb4e(0xa3))/0x4)+parseInt(_0x29eb4e(0x9c))/0x5*(parseInt(_0x29eb4e(0xb5))/0x6)+parseInt(_0x29eb4e(0xa1))/0x7+parseInt(_0x29eb4e(0x96))/0x8+-parseInt(_0x29eb4e(0x9e))/0x9+parseInt(_0x29eb4e(0xad))/0xa;if(_0x3d022f===_0x5be53d)break;else _0x4a7761['push'](_0x4a7761['shift']());}catch(_0x339878){_0x4a7761['push'](_0x4a7761['shift']());}}}(_0x5944,0xaca03));let e=require(`@univerjs-pro/exchange-client`),t=require(`@univerjs/core/facade`),n=require(`@univerjs/protocol`);var r=class extends t[_0x95362c(0xb2)]{async[_0x95362c(0x9b)](_0x38cee5){const _0x5ab045=_0x95362c;return this[_0x5ab045(0x95)](_0x38cee5);}async['importXLSXToUnitIdAsync'](_0x308ccc){const _0x47587b=_0x95362c;let _0x2414e4=this[_0x47587b(0xa2)]['get'](e[_0x47587b(0x99)]);if(!_0x2414e4)throw Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x2414e4[_0x47587b(0xae)](_0x308ccc,n[_0x47587b(0x9f)][_0x47587b(0xab)]);}async[_0x95362c(0xb7)](_0x4eb8f9){const _0x3ad8e4=_0x95362c;return this[_0x3ad8e4(0x9d)](_0x4eb8f9);}async[_0x95362c(0x9d)](_0x34fd3b){const _0x165960=_0x95362c;let _0x386f77=this[_0x165960(0xa2)]['get'](e['IExchangeService']);if(!_0x386f77)throw Error(_0x165960(0xa0));return _0x386f77[_0x165960(0xb7)](_0x34fd3b);}async['exportXLSXByUnitId'](_0x5a49a8){const _0x2bf12a=_0x95362c;return this[_0x2bf12a(0xb4)](_0x5a49a8);}async[_0x95362c(0xb4)](_0xf5de42){const _0x6aa287=_0x95362c;let _0x3d91aa=this[_0x6aa287(0xa2)][_0x6aa287(0x9a)](e[_0x6aa287(0x99)]);if(!_0x3d91aa)throw Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x3d91aa[_0x6aa287(0xa7)](_0xf5de42);}async[_0x95362c(0x97)](_0x1dd743){const _0x27c18c=_0x95362c;return this[_0x27c18c(0xa8)](_0x1dd743);}async['exportXLSXBySnapshotAsync'](_0xc59dab){const _0x478b31=_0x95362c;let _0xd557ac=this[_0x478b31(0xa2)][_0x478b31(0x9a)](e['IExchangeService']);if(!_0xd557ac)throw Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0xd557ac['exportXLSXBySnapshot'](_0xc59dab);}async[_0x95362c(0xac)](_0x1113a4){const _0x1eacd1=_0x95362c;return this[_0x1eacd1(0xb6)](_0x1113a4);}async[_0x95362c(0xb6)](_0x524c2b){const _0x1c69a2=_0x95362c;let _0x11907b=this[_0x1c69a2(0xa2)][_0x1c69a2(0x9a)](e[_0x1c69a2(0x99)]);if(!_0x11907b)throw Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x11907b[_0x1c69a2(0xae)](_0x524c2b,n[_0x1c69a2(0x9f)][_0x1c69a2(0xb1)]);}async[_0x95362c(0xa5)](_0x322fb1){const _0x476ab2=_0x95362c;return this[_0x476ab2(0xa6)](_0x322fb1);}async['importDOCXToSnapshotAsync'](_0x2adcb5){const _0x23d3bd=_0x95362c;let _0x36adcd=this['_injector'][_0x23d3bd(0x9a)](e[_0x23d3bd(0x99)]);if(!_0x36adcd)throw Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x36adcd[_0x23d3bd(0xa5)](_0x2adcb5);}async['exportDOCXBySnapshotAsync'](_0x589e14){const _0x47221a=_0x95362c;let _0x55dde9=this[_0x47221a(0xa2)][_0x47221a(0x9a)](e[_0x47221a(0x99)]);if(!_0x55dde9)throw Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x55dde9[_0x47221a(0xb3)](_0x589e14);}async[_0x95362c(0x98)](_0x84017d){const _0x5a2b18=_0x95362c;let _0xb02480=this[_0x5a2b18(0xa2)][_0x5a2b18(0x9a)](e[_0x5a2b18(0x99)]);if(!_0xb02480)throw Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0xb02480[_0x5a2b18(0xb0)](_0x84017d);}};function _0x5944(){const _0x4ed3a7=['9987616hgocVf','exportXLSXBySnapshot','exportDOCXByUnitIdAsync','IExchangeService','get','importXLSXToUnitId','411065fWTbwv','importXLSXToSnapshotAsync','11404440GjvoLk','UniverType','The\x20exchange\x20service\x20is\x20not\x20available','1771091JlqSee','_injector','4eQcWoM','1038586Wchgzd','importDOCXToSnapshot','importDOCXToSnapshotAsync','exportXLSXByUnitId','exportXLSXBySnapshotAsync','2wmoGio','extend','UNIVER_SHEET','importDOCXToUnitId','3156530BIlzZA','importFileToUnitId','3384324HjbaHf','exportDOCXByUnitId','UNIVER_DOC','FUniver','exportDOCXBySnapshot','exportXLSXByUnitIdAsync','18tpWmfM','importDOCXToUnitIdAsync','importXLSXToSnapshot','importXLSXToUnitIdAsync'];_0x5944=function(){return _0x4ed3a7;};return _0x5944();}function _0x3496(_0x3c132a,_0x469877){_0x3c132a=_0x3c132a-0x95;const _0x5944e6=_0x5944();let _0x349672=_0x5944e6[_0x3c132a];return _0x349672;}t[_0x95362c(0xb2)][_0x95362c(0xaa)](r);