@univerjs-pro/docs-exchange-client 0.2.12 → 0.2.13

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.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x5d3106=_0x7527;(function(_0x3c08aa,_0x4f107b){const _0x19ba31=_0x7527,_0x207371=_0x3c08aa();while(!![]){try{const _0x1f1268=-parseInt(_0x19ba31(0x102))/0x1+-parseInt(_0x19ba31(0x11b))/0x2+parseInt(_0x19ba31(0x11f))/0x3*(-parseInt(_0x19ba31(0x130))/0x4)+parseInt(_0x19ba31(0x121))/0x5*(-parseInt(_0x19ba31(0x129))/0x6)+parseInt(_0x19ba31(0x107))/0x7*(-parseInt(_0x19ba31(0x10a))/0x8)+-parseInt(_0x19ba31(0x127))/0x9+-parseInt(_0x19ba31(0x118))/0xa*(-parseInt(_0x19ba31(0x112))/0xb);if(_0x1f1268===_0x4f107b)break;else _0x207371['push'](_0x207371['shift']());}catch(_0x3cec02){_0x207371['push'](_0x207371['shift']());}}}(_0xd3fd,0x420e6));Object['defineProperty'](exports,Symbol[_0x5d3106(0x128)],{'value':_0x5d3106(0x131)});const o=require('@univerjs/core'),g=require(_0x5d3106(0x12d)),s=require('@univerjs/ui'),u={'id':_0x5d3106(0x120),'type':o['CommandType'][_0x5d3106(0x12c)],'handler':async _0x18309d=>(_0x18309d['get'](g['IExchangeOperateService'])[_0x5d3106(0x103)](),!0x0)},l={'id':'exchange-client.operation.export-docx','type':o[_0x5d3106(0x11d)][_0x5d3106(0x12c)],'handler':async _0x50fd9a=>(_0x50fd9a['get'](g[_0x5d3106(0xff)])[_0x5d3106(0x12a)](),!0x0)},_=_0x5d3106(0x10e);function _0x7527(_0x512c2b,_0x581458){const _0xd3fd87=_0xd3fd();return _0x7527=function(_0x752783,_0x1a5206){_0x752783=_0x752783-0xff;let _0x1773ed=_0xd3fd87[_0x752783];return _0x1773ed;},_0x7527(_0x512c2b,_0x581458);}function C(_0x15a392){const _0x17c1dd=_0x5d3106;return{'id':_,'type':s['MenuItemType'][_0x17c1dd(0x12b)],'icon':'DirectExportSingle','tooltip':_0x17c1dd(0x122),'hidden$':s[_0x17c1dd(0x11a)](_0x15a392,o[_0x17c1dd(0x10d)][_0x17c1dd(0x100)])};}function O(){const _0x1f1a51=_0x5d3106;return{'id':u['id'],'type':s[_0x1f1a51(0x117)][_0x1f1a51(0x12f)],'title':'exchange.upload','icon':_0x1f1a51(0x11c)};}function I(){const _0x22ba19=_0x5d3106;return{'id':l['id'],'type':s[_0x22ba19(0x117)]['BUTTON'],'title':_0x22ba19(0x111),'icon':'ExportSingle'};}const f={[s[_0x5d3106(0x116)]['FILE']]:{[_]:{'order':0x4,'menuItemFactory':C,[u['id']]:{'order':0x0,'menuItemFactory':O},[l['id']]:{'order':0x1,'menuItemFactory':I}}}};var E=Object[_0x5d3106(0x109)],x=Object[_0x5d3106(0x11e)],D=(_0x407f43,_0x3cc1b9,_0x5800d3,_0x1865c0)=>{const _0xa75be1=_0x5d3106;for(var _0x3095de=_0x1865c0>0x1?void 0x0:_0x1865c0?x(_0x3cc1b9,_0x5800d3):_0x3cc1b9,_0x4b5a61=_0x407f43[_0xa75be1(0x105)]-0x1,_0x1a8972;_0x4b5a61>=0x0;_0x4b5a61--)(_0x1a8972=_0x407f43[_0x4b5a61])&&(_0x3095de=(_0x1865c0?_0x1a8972(_0x3cc1b9,_0x5800d3,_0x3095de):_0x1a8972(_0x3095de))||_0x3095de);return _0x1865c0&&_0x3095de&&E(_0x3cc1b9,_0x5800d3,_0x3095de),_0x3095de;},d=(_0x55ca9a,_0x451f02)=>(_0x4e77e7,_0x2fe5d0)=>_0x451f02(_0x4e77e7,_0x2fe5d0,_0x55ca9a);let p=class extends o['Disposable']{constructor(_0x42e427,_0x441935){const _0x249266=_0x5d3106;super(),this[_0x249266(0x104)]=_0x42e427,this['_menuManagerService']=_0x441935,this[_0x249266(0x123)](),this[_0x249266(0x115)]();}[_0x5d3106(0x123)](){const _0x543ae3=_0x5d3106;[u,l][_0x543ae3(0x134)](_0xd22037=>{const _0x2d8a7c=_0x543ae3;this['disposeWithMe'](this['_commandService'][_0x2d8a7c(0x137)](_0xd22037));});}[_0x5d3106(0x115)](){const _0x2475ca=_0x5d3106;this[_0x2475ca(0x10f)][_0x2475ca(0x136)](f);}};p=D([o['OnLifecycle'](o[_0x5d3106(0x10b)][_0x5d3106(0x119)],p),d(0x0,o['ICommandService']),d(0x1,s[_0x5d3106(0x132)])],p);const y=_0x5d3106(0x139),P={};var h=Object[_0x5d3106(0x109)],S=Object[_0x5d3106(0x11e)],U=(_0x5adbf5,_0x10b6da,_0x5267f4)=>_0x10b6da in _0x5adbf5?h(_0x5adbf5,_0x10b6da,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5267f4}):_0x5adbf5[_0x10b6da]=_0x5267f4,T=(_0x2bd595,_0x26e17a,_0x4212fa,_0x49e6f7)=>{for(var _0x21ab5f=_0x49e6f7>0x1?void 0x0:_0x49e6f7?S(_0x26e17a,_0x4212fa):_0x26e17a,_0x368726=_0x2bd595['length']-0x1,_0x182f63;_0x368726>=0x0;_0x368726--)(_0x182f63=_0x2bd595[_0x368726])&&(_0x21ab5f=(_0x49e6f7?_0x182f63(_0x26e17a,_0x4212fa,_0x21ab5f):_0x182f63(_0x21ab5f))||_0x21ab5f);return _0x49e6f7&&_0x21ab5f&&h(_0x26e17a,_0x4212fa,_0x21ab5f),_0x21ab5f;},m=(_0x50c10a,_0x39f1b0)=>(_0x2f8bd1,_0x14cefb)=>_0x39f1b0(_0x2f8bd1,_0x14cefb,_0x50c10a),v=(_0x16824e,_0x2c71d2,_0x5b4292)=>U(_0x16824e,typeof _0x2c71d2!=_0x5d3106(0x108)?_0x2c71d2+'':_0x2c71d2,_0x5b4292);const N='DOC_EXCHANGE_CLIENT_PLUGIN';function _0xd3fd(){const _0x4be1b4=['Ready','getMenuHiddenObservable','881858aVwvAu','FolderSingle','CommandType','getOwnPropertyDescriptor','3HDUXeL','exchange-client.operation.import-docx','5npQOSy','exchange.file','_initCommands','Inject','_configService','add','1676916KRckum','toStringTag','1655538LilIEz','exportDOCXByUnitId','SUBITEMS','OPERATION','@univerjs-pro/exchange-client','ExportDOCXOperation','BUTTON','123356Einazw','Module','IMenuManagerService','UniverDocsExchangeClientPlugin','forEach','_injector','mergeMenu','registerCommand','setConfig','docs-exchange-client.config','pluginName','IExchangeOperateService','UNIVER_DOC','menu','537243LPFANZ','importDOCXToUnitId','_commandService','length','initialize','45311efCGxQ','symbol','defineProperty','392wTxFcS','LifecycleStages','type','UniverInstanceType','docs-exchange-client.operation.exchange','_menuManagerService','onReady','exchange.download','211673CUbsDA','UniverExchangeClientPlugin','_config','_initMenus','RibbonStartGroup','MenuItemType','1070LDDLjA'];_0xd3fd=function(){return _0x4be1b4;};return _0xd3fd();}exports['UniverDocsExchangeClientPlugin']=class extends o['Plugin']{constructor(_0x2d112e=P,_0x1a5689,_0x361150){const _0x2806aa=_0x5d3106;super(),this[_0x2806aa(0x114)]=_0x2d112e,this[_0x2806aa(0x135)]=_0x1a5689,this[_0x2806aa(0x125)]=_0x361150;const {menu:_0x1534be,..._0x25a2fc}=this[_0x2806aa(0x114)];_0x1534be&&this[_0x2806aa(0x125)][_0x2806aa(0x138)](_0x2806aa(0x101),_0x1534be,{'merge':!0x0}),this['_configService'][_0x2806aa(0x138)](y,_0x25a2fc);}['initialize'](){const _0x65d88=_0x5d3106;[[p]][_0x65d88(0x134)](_0x35dd3d=>this['_injector'][_0x65d88(0x126)](_0x35dd3d));}[_0x5d3106(0x110)](){const _0x45b666=_0x5d3106;this[_0x45b666(0x106)]();}},v(exports[_0x5d3106(0x133)],_0x5d3106(0x13a),N),v(exports[_0x5d3106(0x133)],_0x5d3106(0x10c),o[_0x5d3106(0x10d)][_0x5d3106(0x100)]),exports[_0x5d3106(0x133)]=T([o['DependentOn'](g[_0x5d3106(0x113)]),m(0x1,o[_0x5d3106(0x124)](o['Injector'])),m(0x2,o['IConfigService'])],exports[_0x5d3106(0x133)]),exports[_0x5d3106(0x12e)]=l,exports['ImportDOCXOperation']=u;
1
+ 'use strict';const _0x409c64=_0x53bb;(function(_0x2209d7,_0x41f6a9){const _0x2920f1=_0x53bb,_0x3fbf68=_0x2209d7();while(!![]){try{const _0x40d711=-parseInt(_0x2920f1(0xed))/0x1*(-parseInt(_0x2920f1(0x11a))/0x2)+parseInt(_0x2920f1(0xef))/0x3+parseInt(_0x2920f1(0x11f))/0x4+parseInt(_0x2920f1(0xfd))/0x5*(parseInt(_0x2920f1(0xe9))/0x6)+-parseInt(_0x2920f1(0x100))/0x7*(parseInt(_0x2920f1(0x113))/0x8)+-parseInt(_0x2920f1(0x124))/0x9*(parseInt(_0x2920f1(0x106))/0xa)+-parseInt(_0x2920f1(0x112))/0xb*(parseInt(_0x2920f1(0x104))/0xc);if(_0x40d711===_0x41f6a9)break;else _0x3fbf68['push'](_0x3fbf68['shift']());}catch(_0xa0a4d3){_0x3fbf68['push'](_0x3fbf68['shift']());}}}(_0xe9df,0x6fd02));function _0xe9df(){const _0x4dd4c8=['Module','410788rQvGUL','exchange-client.operation.import-docx','exportDOCXByUnitId','get','12duBZrb','Disposable','10DAYtcR','exchange.download','onReady','type','ICommandService','exchange-client.operation.export-docx','BUTTON','forEach','RibbonStartGroup','LifecycleStages','_initCommands','_initMenus','2399507omiKkK','16TZOTsB','CommandType','Ready','defineProperty','docs-exchange-client.config','MenuItemType','UNIVER_DOC','432526dpbCdo','@univerjs-pro/exchange-client','initialize','toStringTag','registerCommand','2764388FEpuWG','@univerjs/core','mergeMenu','menu','OPERATION','8067366ZieweC','FolderSingle','SUBITEMS','exchange.upload','Plugin','UniverDocsExchangeClientPlugin','6SlESSC','getOwnPropertyDescriptor','_menuManagerService','UniverInstanceType','1RMYXtp','Injector','465126vxnkvO','ImportDOCXOperation','IMenuManagerService','exchange.file','setConfig','IConfigService','_injector','_config','getMenuHiddenObservable','DependentOn','pluginName','disposeWithMe','_configService','importDOCXToUnitId','3137315tvqPpl','length'];_0xe9df=function(){return _0x4dd4c8;};return _0xe9df();}Object['defineProperty'](exports,Symbol[_0x409c64(0x11d)],{'value':_0x409c64(0xff)});const o=require(_0x409c64(0x120)),g=require(_0x409c64(0x11b)),s=require('@univerjs/ui'),u={'id':_0x409c64(0x101),'type':o[_0x409c64(0x114)][_0x409c64(0x123)],'handler':async _0x5ee5f0=>(_0x5ee5f0[_0x409c64(0x103)](g['IExchangeOperateService'])[_0x409c64(0xfc)](),!0x0)},l={'id':_0x409c64(0x10b),'type':o[_0x409c64(0x114)][_0x409c64(0x123)],'handler':async _0x3d851c=>(_0x3d851c[_0x409c64(0x103)](g['IExchangeOperateService'])[_0x409c64(0x102)](),!0x0)},_='docs-exchange-client.operation.exchange';function C(_0x222b72){const _0x350750=_0x409c64;return{'id':_,'type':s[_0x350750(0x118)][_0x350750(0x126)],'icon':'DirectExportSingle','tooltip':_0x350750(0xf2),'hidden$':s[_0x350750(0xf7)](_0x222b72,o['UniverInstanceType'][_0x350750(0x119)])};}function O(){const _0x13af04=_0x409c64;return{'id':u['id'],'type':s['MenuItemType'][_0x13af04(0x10c)],'title':_0x13af04(0x127),'icon':_0x13af04(0x125)};}function I(){const _0x17ef46=_0x409c64;return{'id':l['id'],'type':s['MenuItemType'][_0x17ef46(0x10c)],'title':_0x17ef46(0x107),'icon':'ExportSingle'};}const f={[s[_0x409c64(0x10e)]['FILE']]:{[_]:{'order':0x4,'menuItemFactory':C,[u['id']]:{'order':0x0,'menuItemFactory':O},[l['id']]:{'order':0x1,'menuItemFactory':I}}}};function _0x53bb(_0x2bb83e,_0x15f530){const _0xe9dfa9=_0xe9df();return _0x53bb=function(_0x53bb2f,_0x362777){_0x53bb2f=_0x53bb2f-0xe7;let _0x43ae5e=_0xe9dfa9[_0x53bb2f];return _0x43ae5e;},_0x53bb(_0x2bb83e,_0x15f530);}var E=Object[_0x409c64(0x116)],x=Object['getOwnPropertyDescriptor'],D=(_0x13919a,_0x292b97,_0x15d585,_0x312dfd)=>{const _0xbd89f2=_0x409c64;for(var _0x2ba5ca=_0x312dfd>0x1?void 0x0:_0x312dfd?x(_0x292b97,_0x15d585):_0x292b97,_0x577147=_0x13919a[_0xbd89f2(0xfe)]-0x1,_0x1698fb;_0x577147>=0x0;_0x577147--)(_0x1698fb=_0x13919a[_0x577147])&&(_0x2ba5ca=(_0x312dfd?_0x1698fb(_0x292b97,_0x15d585,_0x2ba5ca):_0x1698fb(_0x2ba5ca))||_0x2ba5ca);return _0x312dfd&&_0x2ba5ca&&E(_0x292b97,_0x15d585,_0x2ba5ca),_0x2ba5ca;},d=(_0x36e8c2,_0xe580de)=>(_0x2c55bc,_0x33c8b0)=>_0xe580de(_0x2c55bc,_0x33c8b0,_0x36e8c2);let p=class extends o[_0x409c64(0x105)]{constructor(_0x39f6b2,_0x1cffef){const _0x496daa=_0x409c64;super(),this['_commandService']=_0x39f6b2,this[_0x496daa(0xeb)]=_0x1cffef,this[_0x496daa(0x110)](),this[_0x496daa(0x111)]();}[_0x409c64(0x110)](){const _0x1a2cd3=_0x409c64;[u,l][_0x1a2cd3(0x10d)](_0x24eb8c=>{const _0x599d7d=_0x1a2cd3;this[_0x599d7d(0xfa)](this['_commandService'][_0x599d7d(0x11e)](_0x24eb8c));});}[_0x409c64(0x111)](){const _0x4b639c=_0x409c64;this[_0x4b639c(0xeb)][_0x4b639c(0x121)](f);}};p=D([o['OnLifecycle'](o[_0x409c64(0x10f)][_0x409c64(0x115)],p),d(0x0,o[_0x409c64(0x10a)]),d(0x1,s[_0x409c64(0xf1)])],p);const y=_0x409c64(0x117),P={};var h=Object['defineProperty'],S=Object[_0x409c64(0xea)],U=(_0x31028b,_0x1e181e,_0x5e567c)=>_0x1e181e in _0x31028b?h(_0x31028b,_0x1e181e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e567c}):_0x31028b[_0x1e181e]=_0x5e567c,T=(_0x47a959,_0x10aedb,_0x3ea7af,_0x1446af)=>{const _0x2d3540=_0x409c64;for(var _0x46cdee=_0x1446af>0x1?void 0x0:_0x1446af?S(_0x10aedb,_0x3ea7af):_0x10aedb,_0x47637c=_0x47a959[_0x2d3540(0xfe)]-0x1,_0x36011c;_0x47637c>=0x0;_0x47637c--)(_0x36011c=_0x47a959[_0x47637c])&&(_0x46cdee=(_0x1446af?_0x36011c(_0x10aedb,_0x3ea7af,_0x46cdee):_0x36011c(_0x46cdee))||_0x46cdee);return _0x1446af&&_0x46cdee&&h(_0x10aedb,_0x3ea7af,_0x46cdee),_0x46cdee;},m=(_0x28e8af,_0x5492c6)=>(_0x3cdd1d,_0x4815cb)=>_0x5492c6(_0x3cdd1d,_0x4815cb,_0x28e8af),v=(_0x39f90b,_0x1bd252,_0x1f79d4)=>U(_0x39f90b,typeof _0x1bd252!='symbol'?_0x1bd252+'':_0x1bd252,_0x1f79d4);const N='DOC_EXCHANGE_CLIENT_PLUGIN';exports[_0x409c64(0xe8)]=class extends o[_0x409c64(0xe7)]{constructor(_0x4842cd=P,_0x342310,_0x3fcd22){const _0x26c2a1=_0x409c64;super(),this[_0x26c2a1(0xf6)]=_0x4842cd,this['_injector']=_0x342310,this[_0x26c2a1(0xfb)]=_0x3fcd22;const {menu:_0x5e0f41,..._0x329df7}=this[_0x26c2a1(0xf6)];_0x5e0f41&&this[_0x26c2a1(0xfb)][_0x26c2a1(0xf3)](_0x26c2a1(0x122),_0x5e0f41,{'merge':!0x0}),this[_0x26c2a1(0xfb)][_0x26c2a1(0xf3)](y,_0x329df7);}[_0x409c64(0x11c)](){const _0x1c5063=_0x409c64;[[p]]['forEach'](_0x55031d=>this[_0x1c5063(0xf5)]['add'](_0x55031d));}[_0x409c64(0x108)](){const _0x19b957=_0x409c64;this[_0x19b957(0x11c)]();}},v(exports[_0x409c64(0xe8)],_0x409c64(0xf9),N),v(exports['UniverDocsExchangeClientPlugin'],_0x409c64(0x109),o[_0x409c64(0xec)][_0x409c64(0x119)]),exports[_0x409c64(0xe8)]=T([o[_0x409c64(0xf8)](g['UniverExchangeClientPlugin']),m(0x1,o['Inject'](o[_0x409c64(0xee)])),m(0x2,o[_0x409c64(0xf4)])],exports['UniverDocsExchangeClientPlugin']),exports['ExportDOCXOperation']=l,exports[_0x409c64(0xf0)]=u;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x5ab593=_0xba7b;(function(_0x14bd98,_0x1cd5fe){const _0x148085=_0xba7b,_0x509c76=_0x14bd98();while(!![]){try{const _0x426301=-parseInt(_0x148085(0x132))/0x1+parseInt(_0x148085(0x12a))/0x2*(parseInt(_0x148085(0x14b))/0x3)+parseInt(_0x148085(0x149))/0x4*(-parseInt(_0x148085(0x14f))/0x5)+-parseInt(_0x148085(0x134))/0x6*(-parseInt(_0x148085(0x157))/0x7)+-parseInt(_0x148085(0x12c))/0x8+-parseInt(_0x148085(0x143))/0x9*(-parseInt(_0x148085(0x13b))/0xa)+-parseInt(_0x148085(0x13d))/0xb*(parseInt(_0x148085(0x130))/0xc);if(_0x426301===_0x1cd5fe)break;else _0x509c76['push'](_0x509c76['shift']());}catch(_0x71d8a9){_0x509c76['push'](_0x509c76['shift']());}}}(_0x2e46,0x50672));import{CommandType as _0x1c239d,UniverInstanceType as _0x23ae67,OnLifecycle as _0x243ca6,LifecycleStages as _0x3aeb31,Disposable as _0x125f76,ICommandService as _0x3d72c6,DependentOn as _0x529155,Inject as _0x3f54d3,Injector as _0x5a62d4,Plugin as _0x4882f2,IConfigService as _0x46301f}from'@univerjs/core';import{IExchangeOperateService as _0x4f79f5,UniverExchangeClientPlugin as _0x2d8460}from'@univerjs-pro/exchange-client';import{MenuItemType as _0x38c53,getMenuHiddenObservable as _0x279ce1,RibbonStartGroup as _0x35bbf1,IMenuManagerService as _0x4e0704}from'@univerjs/ui';const d={'id':'exchange-client.operation.import-docx','type':_0x1c239d[_0x5ab593(0x152)],'handler':async _0x463fb3=>(_0x463fb3['get'](_0x4f79f5)[_0x5ab593(0x151)](),!0x0)},l={'id':_0x5ab593(0x12d),'type':_0x1c239d[_0x5ab593(0x152)],'handler':async _0x5eedec=>(_0x5eedec[_0x5ab593(0x142)](_0x4f79f5)[_0x5ab593(0x141)](),!0x0)},f=_0x5ab593(0x13c);function F(_0xb210e6){const _0x165ebe=_0x5ab593;return{'id':f,'type':_0x38c53[_0x165ebe(0x133)],'icon':_0x165ebe(0x12e),'tooltip':'exchange.file','hidden$':_0x279ce1(_0xb210e6,_0x23ae67[_0x165ebe(0x13f)])};}function X(){const _0x551248=_0x5ab593;return{'id':d['id'],'type':_0x38c53[_0x551248(0x138)],'title':_0x551248(0x13a),'icon':_0x551248(0x13e)};}function G(){const _0x50e47f=_0x5ab593;return{'id':l['id'],'type':_0x38c53[_0x50e47f(0x138)],'title':_0x50e47f(0x129),'icon':'ExportSingle'};}function _0xba7b(_0x205f00,_0x285c8b){const _0x2e461d=_0x2e46();return _0xba7b=function(_0xba7be4,_0x3a1da5){_0xba7be4=_0xba7be4-0x129;let _0x4680aa=_0x2e461d[_0xba7be4];return _0x4680aa;},_0xba7b(_0x205f00,_0x285c8b);}const L={[_0x35bbf1[_0x5ab593(0x139)]]:{[f]:{'order':0x4,'menuItemFactory':F,[d['id']]:{'order':0x0,'menuItemFactory':X},[l['id']]:{'order':0x1,'menuItemFactory':G}}}};var R=Object[_0x5ab593(0x147)],j=Object[_0x5ab593(0x146)],w=(_0x1dcc85,_0x32b168,_0x6e03d0,_0xf2560e)=>{const _0x418499=_0x5ab593;for(var _0x5acc74=_0xf2560e>0x1?void 0x0:_0xf2560e?j(_0x32b168,_0x6e03d0):_0x32b168,_0x303d6f=_0x1dcc85[_0x418499(0x135)]-0x1,_0x53af08;_0x303d6f>=0x0;_0x303d6f--)(_0x53af08=_0x1dcc85[_0x303d6f])&&(_0x5acc74=(_0xf2560e?_0x53af08(_0x32b168,_0x6e03d0,_0x5acc74):_0x53af08(_0x5acc74))||_0x5acc74);return _0xf2560e&&_0x5acc74&&R(_0x32b168,_0x6e03d0,_0x5acc74),_0x5acc74;},u=(_0x12415e,_0x8ed05d)=>(_0x3ef8f0,_0x15074f)=>_0x8ed05d(_0x3ef8f0,_0x15074f,_0x12415e);let a=class extends _0x125f76{constructor(_0x4bc3f1,_0x4fb92b){const _0x351bf5=_0x5ab593;super(),this['_commandService']=_0x4bc3f1,this[_0x351bf5(0x12b)]=_0x4fb92b,this[_0x351bf5(0x154)](),this[_0x351bf5(0x158)]();}[_0x5ab593(0x154)](){[d,l]['forEach'](_0x24a7db=>{const _0x143324=_0xba7b;this[_0x143324(0x153)](this[_0x143324(0x131)][_0x143324(0x155)](_0x24a7db));});}['_initMenus'](){const _0x5708aa=_0x5ab593;this['_menuManagerService'][_0x5708aa(0x136)](L);}};function _0x2e46(){const _0x5d83e6=['length','mergeMenu','_configService','BUTTON','FILE','exchange.upload','1007420KmhFaZ','docs-exchange-client.operation.exchange','16852bHgkKJ','FolderSingle','UNIVER_DOC','add','exportDOCXByUnitId','get','36cWwhoD','onReady','Ready','getOwnPropertyDescriptor','defineProperty','DOC_EXCHANGE_CLIENT_PLUGIN','442628cXTXKX','setConfig','3GJoPjB','initialize','_injector','_config','5vEqOAL','type','importDOCXToUnitId','OPERATION','disposeWithMe','_initCommands','registerCommand','docs-exchange-client.config','1039108ahLckp','_initMenus','exchange.download','863908xoNdFX','_menuManagerService','141216nUepQc','exchange-client.operation.export-docx','DirectExportSingle','symbol','6336iNKbUD','_commandService','13719yFRyrX','SUBITEMS','18NrTueK'];_0x2e46=function(){return _0x5d83e6;};return _0x2e46();}a=w([_0x243ca6(_0x3aeb31[_0x5ab593(0x145)],a),u(0x0,_0x3d72c6),u(0x1,_0x4e0704)],a);const A=_0x5ab593(0x156),B={};var v=Object[_0x5ab593(0x147)],$=Object['getOwnPropertyDescriptor'],H=(_0x292834,_0x38c9ad,_0x1a56a7)=>_0x38c9ad in _0x292834?v(_0x292834,_0x38c9ad,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1a56a7}):_0x292834[_0x38c9ad]=_0x1a56a7,z=(_0x56b651,_0x386688,_0x22fb97,_0x319aa5)=>{const _0x5072c1=_0x5ab593;for(var _0x10c094=_0x319aa5>0x1?void 0x0:_0x319aa5?$(_0x386688,_0x22fb97):_0x386688,_0x2e3882=_0x56b651[_0x5072c1(0x135)]-0x1,_0x36b9a3;_0x2e3882>=0x0;_0x2e3882--)(_0x36b9a3=_0x56b651[_0x2e3882])&&(_0x10c094=(_0x319aa5?_0x36b9a3(_0x386688,_0x22fb97,_0x10c094):_0x36b9a3(_0x10c094))||_0x10c094);return _0x319aa5&&_0x10c094&&v(_0x386688,_0x22fb97,_0x10c094),_0x10c094;},m=(_0x57a937,_0x37afda)=>(_0x53b264,_0x5990af)=>_0x37afda(_0x53b264,_0x5990af,_0x57a937),I=(_0x2f9111,_0x36b8bf,_0x1297be)=>H(_0x2f9111,typeof _0x36b8bf!=_0x5ab593(0x12f)?_0x36b8bf+'':_0x36b8bf,_0x1297be);const V=_0x5ab593(0x148);let s=class extends _0x4882f2{constructor(_0x141772=B,_0x1063a9,_0x48d250){const _0xdd2197=_0x5ab593;super(),this[_0xdd2197(0x14e)]=_0x141772,this['_injector']=_0x1063a9,this[_0xdd2197(0x137)]=_0x48d250;const {menu:_0x1ea5ab,..._0x432be8}=this[_0xdd2197(0x14e)];_0x1ea5ab&&this['_configService']['setConfig']('menu',_0x1ea5ab,{'merge':!0x0}),this[_0xdd2197(0x137)][_0xdd2197(0x14a)](A,_0x432be8);}['initialize'](){const _0x538486=_0x5ab593;[[a]]['forEach'](_0x140fe3=>this[_0x538486(0x14d)][_0x538486(0x140)](_0x140fe3));}[_0x5ab593(0x144)](){const _0x175a9b=_0x5ab593;this[_0x175a9b(0x14c)]();}};I(s,'pluginName',V),I(s,_0x5ab593(0x150),_0x23ae67[_0x5ab593(0x13f)]),s=z([_0x529155(_0x2d8460),m(0x1,_0x3f54d3(_0x5a62d4)),m(0x2,_0x46301f)],s);export{l as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
1
+ const _0x4435a0=_0x2aad;function _0x5677(){const _0x5a1263=['pluginName','exchange-client.operation.export-docx','Ready','symbol','_config','DOC_EXCHANGE_CLIENT_PLUGIN','358WPDjdH','docs-exchange-client.config','onReady','exchange.download','604iHWghp','_initMenus','FolderSingle','581XqFzJc','FILE','defineProperty','exchange.upload','length','BUTTON','importDOCXToUnitId','1316034iQrvfK','SUBITEMS','_initCommands','getOwnPropertyDescriptor','_menuManagerService','ExportSingle','_commandService','_configService','get','_injector','exchange.file','775092lOYFnY','initialize','1915KxLMPu','2653820lGEJSH','setConfig','DirectExportSingle','registerCommand','type','65769OKBwbq','1828utcNig','25736QmJPuZ','add','UNIVER_DOC','disposeWithMe','exportDOCXByUnitId','forEach','OPERATION'];_0x5677=function(){return _0x5a1263;};return _0x5677();}(function(_0x341a0e,_0x2bbd56){const _0x213558=_0x2aad,_0x3df9ae=_0x341a0e();while(!![]){try{const _0x2384aa=-parseInt(_0x213558(0x1f6))/0x1*(parseInt(_0x213558(0x1f2))/0x2)+parseInt(_0x213558(0x1e3))/0x3+-parseInt(_0x213558(0x1e4))/0x4*(parseInt(_0x213558(0x1dd))/0x5)+parseInt(_0x213558(0x1db))/0x6+-parseInt(_0x213558(0x1f9))/0x7*(-parseInt(_0x213558(0x1e5))/0x8)+-parseInt(_0x213558(0x1d0))/0x9+parseInt(_0x213558(0x1de))/0xa;if(_0x2384aa===_0x2bbd56)break;else _0x3df9ae['push'](_0x3df9ae['shift']());}catch(_0x207ec1){_0x3df9ae['push'](_0x3df9ae['shift']());}}}(_0x5677,0x3e0ad));import{CommandType as _0x275069,UniverInstanceType as _0x3c205c,OnLifecycle as _0x11c9db,LifecycleStages as _0x5d1f64,Disposable as _0x93484f,ICommandService as _0x244c2c,DependentOn as _0x19e90a,Inject as _0x14d0d0,Injector as _0x17307f,Plugin as _0x473b6e,IConfigService as _0xd78ae3}from'@univerjs/core';import{IExchangeOperateService as _0x591837,UniverExchangeClientPlugin as _0x5332a6}from'@univerjs-pro/exchange-client';import{MenuItemType as _0x1ed95a,getMenuHiddenObservable as _0x59af1e,RibbonStartGroup as _0xc9a05c,IMenuManagerService as _0x9ff945}from'@univerjs/ui';const d={'id':'exchange-client.operation.import-docx','type':_0x275069[_0x4435a0(0x1eb)],'handler':async _0x1c415c=>(_0x1c415c[_0x4435a0(0x1d8)](_0x591837)[_0x4435a0(0x1cf)](),!0x0)},l={'id':_0x4435a0(0x1ed),'type':_0x275069[_0x4435a0(0x1eb)],'handler':async _0xbb72f1=>(_0xbb72f1[_0x4435a0(0x1d8)](_0x591837)[_0x4435a0(0x1e9)](),!0x0)},f='docs-exchange-client.operation.exchange';function F(_0x495af8){const _0x3ba6e3=_0x4435a0;return{'id':f,'type':_0x1ed95a[_0x3ba6e3(0x1d1)],'icon':_0x3ba6e3(0x1e0),'tooltip':_0x3ba6e3(0x1da),'hidden$':_0x59af1e(_0x495af8,_0x3c205c[_0x3ba6e3(0x1e7)])};}function X(){const _0x1a3db6=_0x4435a0;return{'id':d['id'],'type':_0x1ed95a[_0x1a3db6(0x1ce)],'title':_0x1a3db6(0x1cc),'icon':_0x1a3db6(0x1f8)};}function _0x2aad(_0x4fd29a,_0x259a52){const _0x56775e=_0x5677();return _0x2aad=function(_0x2aadd5,_0xb8e56f){_0x2aadd5=_0x2aadd5-0x1cb;let _0x29466d=_0x56775e[_0x2aadd5];return _0x29466d;},_0x2aad(_0x4fd29a,_0x259a52);}function G(){const _0x41bb2b=_0x4435a0;return{'id':l['id'],'type':_0x1ed95a['BUTTON'],'title':_0x41bb2b(0x1f5),'icon':_0x41bb2b(0x1d5)};}const L={[_0xc9a05c[_0x4435a0(0x1fa)]]:{[f]:{'order':0x4,'menuItemFactory':F,[d['id']]:{'order':0x0,'menuItemFactory':X},[l['id']]:{'order':0x1,'menuItemFactory':G}}}};var R=Object[_0x4435a0(0x1cb)],j=Object[_0x4435a0(0x1d3)],w=(_0x23912d,_0x5492b5,_0x62da53,_0x398409)=>{for(var _0x3994bb=_0x398409>0x1?void 0x0:_0x398409?j(_0x5492b5,_0x62da53):_0x5492b5,_0x2a0d59=_0x23912d['length']-0x1,_0x1e4cd6;_0x2a0d59>=0x0;_0x2a0d59--)(_0x1e4cd6=_0x23912d[_0x2a0d59])&&(_0x3994bb=(_0x398409?_0x1e4cd6(_0x5492b5,_0x62da53,_0x3994bb):_0x1e4cd6(_0x3994bb))||_0x3994bb);return _0x398409&&_0x3994bb&&R(_0x5492b5,_0x62da53,_0x3994bb),_0x3994bb;},u=(_0x5bdf95,_0x1184f7)=>(_0x23c214,_0x287ff9)=>_0x1184f7(_0x23c214,_0x287ff9,_0x5bdf95);let a=class extends _0x93484f{constructor(_0x32e56d,_0x1c049d){const _0x2f494f=_0x4435a0;super(),this[_0x2f494f(0x1d6)]=_0x32e56d,this[_0x2f494f(0x1d4)]=_0x1c049d,this[_0x2f494f(0x1d2)](),this[_0x2f494f(0x1f7)]();}[_0x4435a0(0x1d2)](){const _0x658977=_0x4435a0;[d,l][_0x658977(0x1ea)](_0x3a162d=>{const _0x32cff9=_0x658977;this[_0x32cff9(0x1e8)](this[_0x32cff9(0x1d6)][_0x32cff9(0x1e1)](_0x3a162d));});}[_0x4435a0(0x1f7)](){const _0x375af1=_0x4435a0;this[_0x375af1(0x1d4)]['mergeMenu'](L);}};a=w([_0x11c9db(_0x5d1f64[_0x4435a0(0x1ee)],a),u(0x0,_0x244c2c),u(0x1,_0x9ff945)],a);const A=_0x4435a0(0x1f3),B={};var v=Object['defineProperty'],$=Object[_0x4435a0(0x1d3)],H=(_0x2731d5,_0xb9a2d,_0x445548)=>_0xb9a2d in _0x2731d5?v(_0x2731d5,_0xb9a2d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x445548}):_0x2731d5[_0xb9a2d]=_0x445548,z=(_0x5c4e28,_0x505edc,_0xeec63e,_0xa085e)=>{const _0x446ea1=_0x4435a0;for(var _0x321483=_0xa085e>0x1?void 0x0:_0xa085e?$(_0x505edc,_0xeec63e):_0x505edc,_0x891b13=_0x5c4e28[_0x446ea1(0x1cd)]-0x1,_0x4d9f29;_0x891b13>=0x0;_0x891b13--)(_0x4d9f29=_0x5c4e28[_0x891b13])&&(_0x321483=(_0xa085e?_0x4d9f29(_0x505edc,_0xeec63e,_0x321483):_0x4d9f29(_0x321483))||_0x321483);return _0xa085e&&_0x321483&&v(_0x505edc,_0xeec63e,_0x321483),_0x321483;},m=(_0x2627d6,_0x4c54e0)=>(_0x15257f,_0x4fd8a4)=>_0x4c54e0(_0x15257f,_0x4fd8a4,_0x2627d6),I=(_0x3785b9,_0x1d9aba,_0x43aa81)=>H(_0x3785b9,typeof _0x1d9aba!=_0x4435a0(0x1ef)?_0x1d9aba+'':_0x1d9aba,_0x43aa81);const V=_0x4435a0(0x1f1);let s=class extends _0x473b6e{constructor(_0x4b3fe3=B,_0x48495a,_0x1d4ff1){const _0xac9b2e=_0x4435a0;super(),this['_config']=_0x4b3fe3,this[_0xac9b2e(0x1d9)]=_0x48495a,this[_0xac9b2e(0x1d7)]=_0x1d4ff1;const {menu:_0x11f176,..._0x328643}=this[_0xac9b2e(0x1f0)];_0x11f176&&this[_0xac9b2e(0x1d7)][_0xac9b2e(0x1df)]('menu',_0x11f176,{'merge':!0x0}),this[_0xac9b2e(0x1d7)][_0xac9b2e(0x1df)](A,_0x328643);}[_0x4435a0(0x1dc)](){const _0x50615c=_0x4435a0;[[a]][_0x50615c(0x1ea)](_0x2457bb=>this[_0x50615c(0x1d9)][_0x50615c(0x1e6)](_0x2457bb));}[_0x4435a0(0x1f4)](){this['initialize']();}};I(s,_0x4435a0(0x1ec),V),I(s,_0x4435a0(0x1e2),_0x3c205c['UNIVER_DOC']),s=z([_0x19e90a(_0x5332a6),m(0x1,_0x14d0d0(_0x17307f)),m(0x2,_0xd78ae3)],s);export{l as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
@@ -6,7 +6,7 @@ export declare class UniverDocsExchangeClientPlugin extends Plugin {
6
6
  private readonly _configService;
7
7
  static pluginName: string;
8
8
  static type: UniverInstanceType;
9
- constructor(_config: Partial<IUniverDocsExchangeClientConfig>, _injector: Injector, _configService: IConfigService);
9
+ constructor(_config: Partial<IUniverDocsExchangeClientConfig> | undefined, _injector: Injector, _configService: IConfigService);
10
10
  initialize(): void;
11
11
  onReady(): void;
12
12
  }
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x25a9(_0x43f095,_0x491b53){const _0x54f2ac=_0x54f2();return _0x25a9=function(_0x25a950,_0x48bf7a){_0x25a950=_0x25a950-0xe9;let _0x4e1b47=_0x54f2ac[_0x25a950];return _0x4e1b47;},_0x25a9(_0x43f095,_0x491b53);}(function(_0x5aa857,_0x534e67){const _0x4e92a5=_0x25a9,_0x3cbfc7=_0x5aa857();while(!![]){try{const _0xb26496=parseInt(_0x4e92a5(0xf5))/0x1+-parseInt(_0x4e92a5(0x110))/0x2*(-parseInt(_0x4e92a5(0x10c))/0x3)+-parseInt(_0x4e92a5(0x130))/0x4+-parseInt(_0x4e92a5(0x131))/0x5+-parseInt(_0x4e92a5(0x126))/0x6*(parseInt(_0x4e92a5(0x120))/0x7)+parseInt(_0x4e92a5(0x103))/0x8*(-parseInt(_0x4e92a5(0x111))/0x9)+parseInt(_0x4e92a5(0x11c))/0xa*(parseInt(_0x4e92a5(0x128))/0xb);if(_0xb26496===_0x534e67)break;else _0x3cbfc7['push'](_0x3cbfc7['shift']());}catch(_0xd3d9a8){_0x3cbfc7['push'](_0x3cbfc7['shift']());}}}(_0x54f2,0x55d63),function(_0x2d1057,_0x5e160f){const _0x29703e=_0x25a9;typeof exports==_0x29703e(0xe9)&&typeof module<'u'?_0x5e160f(exports,require('@univerjs/core'),require(_0x29703e(0xf1)),require(_0x29703e(0xf9))):typeof define==_0x29703e(0x12c)&&define[_0x29703e(0x116)]?define([_0x29703e(0xfc),_0x29703e(0x12d),_0x29703e(0xf1),_0x29703e(0xf9)],_0x5e160f):(_0x2d1057=typeof globalThis<'u'?globalThis:_0x2d1057||self,_0x5e160f(_0x2d1057[_0x29703e(0xfb)]={},_0x2d1057[_0x29703e(0x114)],_0x2d1057['UniverExchangeClient'],_0x2d1057[_0x29703e(0x117)]));}(this,function(_0x3a8159,_0x5e1f8b,_0x5b6527,_0x292363){'use strict';const _0x36887a=_0x25a9;const _0x55b417={'id':_0x36887a(0xf2),'type':_0x5e1f8b[_0x36887a(0xfe)][_0x36887a(0xff)],'handler':async _0x5b6f2e=>(_0x5b6f2e['get'](_0x5b6527[_0x36887a(0xf6)])['importDOCXToUnitId'](),!0x0)},_0x250374={'id':_0x36887a(0x11e),'type':_0x5e1f8b['CommandType'][_0x36887a(0xff)],'handler':async _0xd66250=>(_0xd66250[_0x36887a(0xf3)](_0x5b6527['IExchangeOperateService'])[_0x36887a(0x119)](),!0x0)},_0x4976a1=_0x36887a(0xf4);function _0x2ab1d4(_0x3897fc){const _0x242cd4=_0x36887a;return{'id':_0x4976a1,'type':_0x292363[_0x242cd4(0x10a)][_0x242cd4(0x124)],'icon':_0x242cd4(0x104),'tooltip':'exchange.file','hidden$':_0x292363['getMenuHiddenObservable'](_0x3897fc,_0x5e1f8b[_0x242cd4(0x106)][_0x242cd4(0x121)])};}function _0x44abd9(){const _0x54ef6a=_0x36887a;return{'id':_0x55b417['id'],'type':_0x292363[_0x54ef6a(0x10a)][_0x54ef6a(0xfa)],'title':_0x54ef6a(0x11f),'icon':_0x54ef6a(0x12f)};}function _0x455538(){const _0x34da63=_0x36887a;return{'id':_0x250374['id'],'type':_0x292363[_0x34da63(0x10a)]['BUTTON'],'title':_0x34da63(0xea),'icon':'ExportSingle'};}const _0x5363bb={[_0x292363[_0x36887a(0xef)][_0x36887a(0xf8)]]:{[_0x4976a1]:{'order':0x4,'menuItemFactory':_0x2ab1d4,[_0x55b417['id']]:{'order':0x0,'menuItemFactory':_0x44abd9},[_0x250374['id']]:{'order':0x1,'menuItemFactory':_0x455538}}}};var _0x2b38fa=Object[_0x36887a(0xee)],_0x57c75c=Object[_0x36887a(0x125)],_0xc01cf2=(_0x3d249a,_0x495c55,_0x30e18b,_0x58ccde)=>{const _0x4a4ad6=_0x36887a;for(var _0x1a1107=_0x58ccde>0x1?void 0x0:_0x58ccde?_0x57c75c(_0x495c55,_0x30e18b):_0x495c55,_0x1f1392=_0x3d249a[_0x4a4ad6(0xf0)]-0x1,_0xde9c08;_0x1f1392>=0x0;_0x1f1392--)(_0xde9c08=_0x3d249a[_0x1f1392])&&(_0x1a1107=(_0x58ccde?_0xde9c08(_0x495c55,_0x30e18b,_0x1a1107):_0xde9c08(_0x1a1107))||_0x1a1107);return _0x58ccde&&_0x1a1107&&_0x2b38fa(_0x495c55,_0x30e18b,_0x1a1107),_0x1a1107;},_0xad1d4e=(_0x463e76,_0x556839)=>(_0x21a972,_0x4bcdb4)=>_0x556839(_0x21a972,_0x4bcdb4,_0x463e76);let _0x21dfa0=class extends _0x5e1f8b['Disposable']{constructor(_0xc9fff0,_0x13ca69){const _0x11b538=_0x36887a;super(),this['_commandService']=_0xc9fff0,this[_0x11b538(0xeb)]=_0x13ca69,this['_initCommands'](),this[_0x11b538(0x11b)]();}['_initCommands'](){const _0x15bd74=_0x36887a;[_0x55b417,_0x250374][_0x15bd74(0x10b)](_0x1a07f3=>{const _0x4df04a=_0x15bd74;this[_0x4df04a(0x109)](this['_commandService']['registerCommand'](_0x1a07f3));});}[_0x36887a(0x11b)](){const _0x455f92=_0x36887a;this[_0x455f92(0xeb)][_0x455f92(0x102)](_0x5363bb);}};_0x21dfa0=_0xc01cf2([_0x5e1f8b[_0x36887a(0x10e)](_0x5e1f8b[_0x36887a(0xfd)][_0x36887a(0x100)],_0x21dfa0),_0xad1d4e(0x0,_0x5e1f8b[_0x36887a(0x115)]),_0xad1d4e(0x1,_0x292363['IMenuManagerService'])],_0x21dfa0);const _0x5c41fa=_0x36887a(0x129),_0xd798c6={};var _0x1757d2=Object[_0x36887a(0xee)],_0x154ce5=Object[_0x36887a(0x125)],_0x2b8711=(_0x386532,_0xf96525,_0x3acb92)=>_0xf96525 in _0x386532?_0x1757d2(_0x386532,_0xf96525,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3acb92}):_0x386532[_0xf96525]=_0x3acb92,_0x2ced94=(_0x1ce205,_0x5512b2,_0x43db16,_0x5f5289)=>{const _0x169d12=_0x36887a;for(var _0x5e6616=_0x5f5289>0x1?void 0x0:_0x5f5289?_0x154ce5(_0x5512b2,_0x43db16):_0x5512b2,_0x13512b=_0x1ce205[_0x169d12(0xf0)]-0x1,_0x4cbf58;_0x13512b>=0x0;_0x13512b--)(_0x4cbf58=_0x1ce205[_0x13512b])&&(_0x5e6616=(_0x5f5289?_0x4cbf58(_0x5512b2,_0x43db16,_0x5e6616):_0x4cbf58(_0x5e6616))||_0x5e6616);return _0x5f5289&&_0x5e6616&&_0x1757d2(_0x5512b2,_0x43db16,_0x5e6616),_0x5e6616;},_0x18f988=(_0x26120b,_0x5cd18a)=>(_0x1d05ed,_0x2321ae)=>_0x5cd18a(_0x1d05ed,_0x2321ae,_0x26120b),_0x2d67e3=(_0xc8ccbb,_0x1eb5fd,_0x2794fa)=>_0x2b8711(_0xc8ccbb,typeof _0x1eb5fd!=_0x36887a(0x112)?_0x1eb5fd+'':_0x1eb5fd,_0x2794fa);const _0x191f5b=_0x36887a(0x107);_0x3a8159[_0x36887a(0xf7)]=class extends _0x5e1f8b[_0x36887a(0xed)]{constructor(_0x4e3e4b=_0xd798c6,_0xfb9817,_0x11c352){const _0x407f93=_0x36887a;super(),this[_0x407f93(0x105)]=_0x4e3e4b,this[_0x407f93(0x113)]=_0xfb9817,this[_0x407f93(0x122)]=_0x11c352;const {menu:_0x5f1076,..._0x5c94ae}=this[_0x407f93(0x105)];_0x5f1076&&this[_0x407f93(0x122)][_0x407f93(0x127)](_0x407f93(0x11d),_0x5f1076,{'merge':!0x0}),this[_0x407f93(0x122)][_0x407f93(0x127)](_0x5c41fa,_0x5c94ae);}['initialize'](){const _0x4d6ce3=_0x36887a;[[_0x21dfa0]][_0x4d6ce3(0x10b)](_0x4ef05e=>this[_0x4d6ce3(0x113)][_0x4d6ce3(0x101)](_0x4ef05e));}[_0x36887a(0xec)](){const _0x593004=_0x36887a;this[_0x593004(0x12b)]();}},_0x2d67e3(_0x3a8159[_0x36887a(0xf7)],_0x36887a(0x12e),_0x191f5b),_0x2d67e3(_0x3a8159[_0x36887a(0xf7)],_0x36887a(0x123),_0x5e1f8b[_0x36887a(0x106)][_0x36887a(0x121)]),_0x3a8159[_0x36887a(0xf7)]=_0x2ced94([_0x5e1f8b[_0x36887a(0x10d)](_0x5b6527['UniverExchangeClientPlugin']),_0x18f988(0x1,_0x5e1f8b[_0x36887a(0x118)](_0x5e1f8b[_0x36887a(0x11a)])),_0x18f988(0x2,_0x5e1f8b['IConfigService'])],_0x3a8159[_0x36887a(0xf7)]),_0x3a8159[_0x36887a(0x10f)]=_0x250374,_0x3a8159[_0x36887a(0x108)]=_0x55b417,Object['defineProperty'](_0x3a8159,Symbol[_0x36887a(0x12a)],{'value':'Module'});}));function _0x54f2(){const _0x281c5e=['Ready','add','mergeMenu','8QYxgIR','DirectExportSingle','_config','UniverInstanceType','DOC_EXCHANGE_CLIENT_PLUGIN','ImportDOCXOperation','disposeWithMe','MenuItemType','forEach','1031595PQKWvK','DependentOn','OnLifecycle','ExportDOCXOperation','4zpPdoW','5240043DiHiVV','symbol','_injector','UniverCore','ICommandService','amd','UniverUi','Inject','exportDOCXByUnitId','Injector','_initMenus','825710LLJNtD','menu','exchange-client.operation.export-docx','exchange.upload','4431KBQePT','UNIVER_DOC','_configService','type','SUBITEMS','getOwnPropertyDescriptor','1692ksgizL','setConfig','77FGcDLN','docs-exchange-client.config','toStringTag','initialize','function','@univerjs/core','pluginName','FolderSingle','2193036XGKWNU','555500UOCISD','object','exchange.download','_menuManagerService','onReady','Plugin','defineProperty','RibbonStartGroup','length','@univerjs-pro/exchange-client','exchange-client.operation.import-docx','get','docs-exchange-client.operation.exchange','505952ojVbAz','IExchangeOperateService','UniverDocsExchangeClientPlugin','FILE','@univerjs/ui','BUTTON','UniverDocsExchangeClient','exports','LifecycleStages','CommandType','OPERATION'];_0x54f2=function(){return _0x281c5e;};return _0x54f2();}
1
+ (function(_0x1cdc05,_0xef365e){const _0x1144aa=_0x4878,_0x222472=_0x1cdc05();while(!![]){try{const _0x34dcef=parseInt(_0x1144aa(0x17a))/0x1*(-parseInt(_0x1144aa(0x172))/0x2)+parseInt(_0x1144aa(0x19d))/0x3+-parseInt(_0x1144aa(0x19a))/0x4+-parseInt(_0x1144aa(0x196))/0x5+-parseInt(_0x1144aa(0x19b))/0x6+-parseInt(_0x1144aa(0x182))/0x7*(parseInt(_0x1144aa(0x19c))/0x8)+parseInt(_0x1144aa(0x16f))/0x9*(parseInt(_0x1144aa(0x18e))/0xa);if(_0x34dcef===_0xef365e)break;else _0x222472['push'](_0x222472['shift']());}catch(_0x4ac4d0){_0x222472['push'](_0x222472['shift']());}}}(_0x2f5c,0x9f8d3),function(_0x482fba,_0x1e7d9a){const _0x358072=_0x4878;typeof exports==_0x358072(0x17b)&&typeof module<'u'?_0x1e7d9a(exports,require(_0x358072(0x1a0)),require(_0x358072(0x18a)),require('@univerjs/ui')):typeof define==_0x358072(0x1a3)&&define[_0x358072(0x18c)]?define([_0x358072(0x18b),_0x358072(0x1a0),_0x358072(0x18a),_0x358072(0x176)],_0x1e7d9a):(_0x482fba=typeof globalThis<'u'?globalThis:_0x482fba||self,_0x1e7d9a(_0x482fba['UniverDocsExchangeClient']={},_0x482fba[_0x358072(0x17f)],_0x482fba[_0x358072(0x192)],_0x482fba[_0x358072(0x1ab)]));}(this,function(_0x583355,_0x117494,_0x4b144c,_0x390d0b){'use strict';const _0x15887a=_0x4878;const _0x9dc6db={'id':'exchange-client.operation.import-docx','type':_0x117494['CommandType'][_0x15887a(0x1a9)],'handler':async _0x2e2061=>(_0x2e2061['get'](_0x4b144c[_0x15887a(0x178)])[_0x15887a(0x18d)](),!0x0)},_0x5d7415={'id':_0x15887a(0x1a7),'type':_0x117494['CommandType'][_0x15887a(0x1a9)],'handler':async _0x36b4dc=>(_0x36b4dc[_0x15887a(0x193)](_0x4b144c[_0x15887a(0x178)])[_0x15887a(0x180)](),!0x0)},_0x56f6dc=_0x15887a(0x184);function _0x5847fa(_0x5ecdc0){const _0x296432=_0x15887a;return{'id':_0x56f6dc,'type':_0x390d0b[_0x296432(0x1a8)]['SUBITEMS'],'icon':'DirectExportSingle','tooltip':'exchange.file','hidden$':_0x390d0b[_0x296432(0x190)](_0x5ecdc0,_0x117494['UniverInstanceType']['UNIVER_DOC'])};}function _0x280aea(){const _0x1f9202=_0x15887a;return{'id':_0x9dc6db['id'],'type':_0x390d0b[_0x1f9202(0x1a8)][_0x1f9202(0x198)],'title':_0x1f9202(0x188),'icon':_0x1f9202(0x187)};}function _0x280447(){const _0x21eaf7=_0x15887a;return{'id':_0x5d7415['id'],'type':_0x390d0b[_0x21eaf7(0x1a8)][_0x21eaf7(0x198)],'title':_0x21eaf7(0x185),'icon':_0x21eaf7(0x175)};}const _0x217deb={[_0x390d0b['RibbonStartGroup'][_0x15887a(0x195)]]:{[_0x56f6dc]:{'order':0x4,'menuItemFactory':_0x5847fa,[_0x9dc6db['id']]:{'order':0x0,'menuItemFactory':_0x280aea},[_0x5d7415['id']]:{'order':0x1,'menuItemFactory':_0x280447}}}};var _0x584ad1=Object['defineProperty'],_0xc7e7a0=Object['getOwnPropertyDescriptor'],_0x16c246=(_0x3443fd,_0x33bb36,_0x22d267,_0x29d0e0)=>{for(var _0x9eea75=_0x29d0e0>0x1?void 0x0:_0x29d0e0?_0xc7e7a0(_0x33bb36,_0x22d267):_0x33bb36,_0x5a0e9a=_0x3443fd['length']-0x1,_0x356150;_0x5a0e9a>=0x0;_0x5a0e9a--)(_0x356150=_0x3443fd[_0x5a0e9a])&&(_0x9eea75=(_0x29d0e0?_0x356150(_0x33bb36,_0x22d267,_0x9eea75):_0x356150(_0x9eea75))||_0x9eea75);return _0x29d0e0&&_0x9eea75&&_0x584ad1(_0x33bb36,_0x22d267,_0x9eea75),_0x9eea75;},_0x2922f5=(_0x203d56,_0x10dff9)=>(_0x286376,_0x3501b5)=>_0x10dff9(_0x286376,_0x3501b5,_0x203d56);let _0x15f090=class extends _0x117494['Disposable']{constructor(_0x2b02fe,_0x1b49e9){const _0x40a025=_0x15887a;super(),this['_commandService']=_0x2b02fe,this[_0x40a025(0x177)]=_0x1b49e9,this[_0x40a025(0x186)](),this[_0x40a025(0x189)]();}['_initCommands'](){const _0x326e42=_0x15887a;[_0x9dc6db,_0x5d7415][_0x326e42(0x183)](_0x23ec52=>{const _0x44ee13=_0x326e42;this[_0x44ee13(0x1a1)](this[_0x44ee13(0x1ac)][_0x44ee13(0x194)](_0x23ec52));});}[_0x15887a(0x189)](){const _0x3eaf39=_0x15887a;this[_0x3eaf39(0x177)][_0x3eaf39(0x170)](_0x217deb);}};_0x15f090=_0x16c246([_0x117494[_0x15887a(0x1ad)](_0x117494[_0x15887a(0x173)]['Ready'],_0x15f090),_0x2922f5(0x0,_0x117494[_0x15887a(0x1aa)]),_0x2922f5(0x1,_0x390d0b['IMenuManagerService'])],_0x15f090);const _0x82d8f9=_0x15887a(0x1b0),_0x561914={};var _0x34fca1=Object[_0x15887a(0x19f)],_0x436d9b=Object['getOwnPropertyDescriptor'],_0x4656d7=(_0x4e18ee,_0x4e8cf5,_0x26a3e2)=>_0x4e8cf5 in _0x4e18ee?_0x34fca1(_0x4e18ee,_0x4e8cf5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26a3e2}):_0x4e18ee[_0x4e8cf5]=_0x26a3e2,_0x3bd73d=(_0xa28192,_0x121188,_0xfd7a82,_0x54a98a)=>{for(var _0x1ce375=_0x54a98a>0x1?void 0x0:_0x54a98a?_0x436d9b(_0x121188,_0xfd7a82):_0x121188,_0x1f6330=_0xa28192['length']-0x1,_0x463387;_0x1f6330>=0x0;_0x1f6330--)(_0x463387=_0xa28192[_0x1f6330])&&(_0x1ce375=(_0x54a98a?_0x463387(_0x121188,_0xfd7a82,_0x1ce375):_0x463387(_0x1ce375))||_0x1ce375);return _0x54a98a&&_0x1ce375&&_0x34fca1(_0x121188,_0xfd7a82,_0x1ce375),_0x1ce375;},_0xdccbf9=(_0x5f25dc,_0x1af478)=>(_0x34719b,_0x423c38)=>_0x1af478(_0x34719b,_0x423c38,_0x5f25dc),_0x577b67=(_0xde247f,_0x85d929,_0x4696e2)=>_0x4656d7(_0xde247f,typeof _0x85d929!=_0x15887a(0x1a5)?_0x85d929+'':_0x85d929,_0x4696e2);const _0x284a45='DOC_EXCHANGE_CLIENT_PLUGIN';_0x583355[_0x15887a(0x171)]=class extends _0x117494['Plugin']{constructor(_0x9d4e1=_0x561914,_0x21b5c8,_0x3eff0f){const _0x40bee5=_0x15887a;super(),this['_config']=_0x9d4e1,this['_injector']=_0x21b5c8,this[_0x40bee5(0x179)]=_0x3eff0f;const {menu:_0x53ffbd,..._0x1783cf}=this[_0x40bee5(0x197)];_0x53ffbd&&this[_0x40bee5(0x179)]['setConfig'](_0x40bee5(0x1a2),_0x53ffbd,{'merge':!0x0}),this['_configService']['setConfig'](_0x82d8f9,_0x1783cf);}[_0x15887a(0x18f)](){const _0x248b34=_0x15887a;[[_0x15f090]][_0x248b34(0x183)](_0x2262a9=>this[_0x248b34(0x1a6)][_0x248b34(0x191)](_0x2262a9));}[_0x15887a(0x17c)](){this['initialize']();}},_0x577b67(_0x583355[_0x15887a(0x171)],_0x15887a(0x17d),_0x284a45),_0x577b67(_0x583355[_0x15887a(0x171)],_0x15887a(0x1af),_0x117494[_0x15887a(0x199)][_0x15887a(0x1ae)]),_0x583355[_0x15887a(0x171)]=_0x3bd73d([_0x117494[_0x15887a(0x181)](_0x4b144c[_0x15887a(0x17e)]),_0xdccbf9(0x1,_0x117494[_0x15887a(0x19e)](_0x117494[_0x15887a(0x174)])),_0xdccbf9(0x2,_0x117494['IConfigService'])],_0x583355[_0x15887a(0x171)]),_0x583355[_0x15887a(0x1a4)]=_0x5d7415,_0x583355['ImportDOCXOperation']=_0x9dc6db,Object['defineProperty'](_0x583355,Symbol['toStringTag'],{'value':'Module'});}));function _0x4878(_0x57f875,_0x2b2fd2){const _0x2f5ce2=_0x2f5c();return _0x4878=function(_0x487826,_0x488917){_0x487826=_0x487826-0x16f;let _0x806197=_0x2f5ce2[_0x487826];return _0x806197;},_0x4878(_0x57f875,_0x2b2fd2);}function _0x2f5c(){const _0x3e1acd=['_initMenus','@univerjs-pro/exchange-client','exports','amd','importDOCXToUnitId','43455770nMviOg','initialize','getMenuHiddenObservable','add','UniverExchangeClient','get','registerCommand','FILE','4657360GymeTS','_config','BUTTON','UniverInstanceType','2496240MRlcaW','4885668UvpAKc','86168jDMdZB','1621125NgccNp','Inject','defineProperty','@univerjs/core','disposeWithMe','menu','function','ExportDOCXOperation','symbol','_injector','exchange-client.operation.export-docx','MenuItemType','OPERATION','ICommandService','UniverUi','_commandService','OnLifecycle','UNIVER_DOC','type','docs-exchange-client.config','9CzKgsD','mergeMenu','UniverDocsExchangeClientPlugin','2444IlLciu','LifecycleStages','Injector','ExportSingle','@univerjs/ui','_menuManagerService','IExchangeOperateService','_configService','634KwBHBh','object','onReady','pluginName','UniverExchangeClientPlugin','UniverCore','exportDOCXByUnitId','DependentOn','707eKRHpK','forEach','docs-exchange-client.operation.exchange','exchange.download','_initCommands','FolderSingle','exchange.upload'];_0x2f5c=function(){return _0x3e1acd;};return _0x2f5c();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/docs-exchange-client",
3
- "version": "0.2.12",
3
+ "version": "0.2.13",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -43,27 +43,27 @@
43
43
  "lib"
44
44
  ],
45
45
  "peerDependencies": {
46
- "@univerjs-pro/exchange-client": "0.2.12",
47
- "@univerjs/ui": "0.2.12",
48
- "@univerjs/core": "0.2.12"
46
+ "@univerjs-pro/exchange-client": "0.2.13",
47
+ "@univerjs/ui": "0.2.13",
48
+ "@univerjs/core": "0.2.13"
49
49
  },
50
50
  "dependencies": {
51
- "@univerjs/icons": "^0.1.72",
52
- "@univerjs/docs": "0.2.12",
53
- "@univerjs/docs-ui": "0.2.12",
54
- "@univerjs/protocol": "0.1.39-alpha.15"
51
+ "@univerjs/icons": "^0.1.78",
52
+ "pako": "^2.1.0",
53
+ "@univerjs-pro/exchange-client": "0.2.13",
54
+ "@univerjs/core": "0.2.13",
55
+ "@univerjs/docs": "0.2.13",
56
+ "@univerjs/protocol": "0.1.39-alpha.15",
57
+ "@univerjs/docs-ui": "0.2.13"
55
58
  },
56
59
  "devDependencies": {
57
60
  "@types/pako": "^2.0.3",
58
61
  "less": "^4.2.0",
59
- "pako": "^2.1.0",
60
62
  "rxjs": "^7.8.1",
61
- "typescript": "^5.5.4",
62
- "vite": "^5.4.0",
63
+ "typescript": "^5.6.2",
64
+ "vite": "^5.4.3",
63
65
  "vitest": "^2.0.5",
64
- "@univerjs-pro/exchange-client": "0.2.12",
65
- "@univerjs/core": "0.2.12",
66
- "@univerjs/shared": "0.2.12"
66
+ "@univerjs-infra/shared": "0.2.13"
67
67
  },
68
68
  "univerSpace": {
69
69
  ".": {