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

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 _0x53b08e=_0x6c99;(function(_0x3c5d8e,_0x55a844){const _0x43b9de=_0x6c99,_0x471fb0=_0x3c5d8e();while(!![]){try{const _0x5c778d=-parseInt(_0x43b9de(0x1ef))/0x1*(-parseInt(_0x43b9de(0x21c))/0x2)+-parseInt(_0x43b9de(0x209))/0x3+parseInt(_0x43b9de(0x1f7))/0x4*(-parseInt(_0x43b9de(0x216))/0x5)+-parseInt(_0x43b9de(0x22c))/0x6*(-parseInt(_0x43b9de(0x20e))/0x7)+parseInt(_0x43b9de(0x213))/0x8*(parseInt(_0x43b9de(0x212))/0x9)+-parseInt(_0x43b9de(0x21b))/0xa*(parseInt(_0x43b9de(0x228))/0xb)+parseInt(_0x43b9de(0x20f))/0xc;if(_0x5c778d===_0x55a844)break;else _0x471fb0['push'](_0x471fb0['shift']());}catch(_0x10af0c){_0x471fb0['push'](_0x471fb0['shift']());}}}(_0x4fcf,0x21e1d));function _0x4fcf(){const _0x1294d6=['BUTTON','53955uinfjk','16Munynn','getMenuHiddenObservable','_commandService','5lbUGwq','OPERATION','IExchangeOperateService','MenuItemType','FILE','310kSeHeU','8874RVcjuw','UNIVER_DOC','exchange-client.operation.import-docx','length','DependentOn','@univerjs/core','UniverExchangeClientPlugin','IMenuManagerService','DirectExportSingle','IConfigService','_initMenus','FolderSingle','61292lowPKU','UniverInstanceType','docs-exchange-client.operation.exchange','get','5226wzemGw','toStringTag','Plugin','exchange.download','RibbonStartGroup','OnLifecycle','3bjqMdL','SUBITEMS','CommandType','_injector','Ready','exchange.file','ICommandService','setConfig','977612xeXZmr','Disposable','type','defineProperty','LifecycleStages','Inject','getOwnPropertyDescriptor','onReady','Injector','_configService','exchange.upload','initialize','_config','registerCommand','UniverDocsExchangeClientPlugin','forEach','ExportDOCXOperation','ImportDOCXOperation','344415ddmSwC','add','Module','_menuManagerService','@univerjs-pro/exchange-client','203bgiRQX','7441932hAztRF','docs-exchange-client.config'];_0x4fcf=function(){return _0x1294d6;};return _0x4fcf();}Object[_0x53b08e(0x1fa)](exports,Symbol[_0x53b08e(0x22d)],{'value':_0x53b08e(0x20b)});const o=require(_0x53b08e(0x221)),g=require(_0x53b08e(0x20d)),s=require('@univerjs/ui'),u={'id':_0x53b08e(0x21e),'type':o[_0x53b08e(0x1f1)][_0x53b08e(0x217)],'handler':async _0x2dbf81=>(_0x2dbf81['get'](g[_0x53b08e(0x218)])['importDOCXToUnitId'](),!0x0)},l={'id':'exchange-client.operation.export-docx','type':o[_0x53b08e(0x1f1)][_0x53b08e(0x217)],'handler':async _0x19f489=>(_0x19f489[_0x53b08e(0x22b)](g[_0x53b08e(0x218)])['exportDOCXByUnitId'](),!0x0)},_=_0x53b08e(0x22a);function C(_0x41dc8e){const _0x519edc=_0x53b08e;return{'id':_,'type':s['MenuItemType'][_0x519edc(0x1f0)],'icon':_0x519edc(0x224),'tooltip':_0x519edc(0x1f4),'hidden$':s[_0x519edc(0x214)](_0x41dc8e,o['UniverInstanceType'][_0x519edc(0x21d)])};}function O(){const _0x4d1959=_0x53b08e;return{'id':u['id'],'type':s['MenuItemType']['BUTTON'],'title':_0x4d1959(0x201),'icon':_0x4d1959(0x227)};}function I(){const _0x4e606e=_0x53b08e;return{'id':l['id'],'type':s[_0x4e606e(0x219)][_0x4e606e(0x211)],'title':_0x4e606e(0x1ec),'icon':'ExportSingle'};}const f={[s[_0x53b08e(0x1ed)][_0x53b08e(0x21a)]]:{[_]:{'order':0x4,'menuItemFactory':C,[u['id']]:{'order':0x0,'menuItemFactory':O},[l['id']]:{'order':0x1,'menuItemFactory':I}}}};var E=Object[_0x53b08e(0x1fa)],x=Object[_0x53b08e(0x1fd)],D=(_0x1194fa,_0x456561,_0x4320a8,_0x4d7d8b)=>{for(var _0x5499f9=_0x4d7d8b>0x1?void 0x0:_0x4d7d8b?x(_0x456561,_0x4320a8):_0x456561,_0x506997=_0x1194fa['length']-0x1,_0x94182;_0x506997>=0x0;_0x506997--)(_0x94182=_0x1194fa[_0x506997])&&(_0x5499f9=(_0x4d7d8b?_0x94182(_0x456561,_0x4320a8,_0x5499f9):_0x94182(_0x5499f9))||_0x5499f9);return _0x4d7d8b&&_0x5499f9&&E(_0x456561,_0x4320a8,_0x5499f9),_0x5499f9;},d=(_0x12612f,_0x358591)=>(_0x43ee14,_0x91e2d2)=>_0x358591(_0x43ee14,_0x91e2d2,_0x12612f);function _0x6c99(_0x2d6e81,_0x2eee6e){const _0x4fcf31=_0x4fcf();return _0x6c99=function(_0x6c99b2,_0x5c8ef1){_0x6c99b2=_0x6c99b2-0x1eb;let _0x57c87e=_0x4fcf31[_0x6c99b2];return _0x57c87e;},_0x6c99(_0x2d6e81,_0x2eee6e);}let p=class extends o[_0x53b08e(0x1f8)]{constructor(_0x1d7909,_0x37af09){const _0x4f779c=_0x53b08e;super(),this[_0x4f779c(0x215)]=_0x1d7909,this[_0x4f779c(0x20c)]=_0x37af09,this['_initCommands'](),this[_0x4f779c(0x226)]();}['_initCommands'](){const _0x50ca7c=_0x53b08e;[u,l][_0x50ca7c(0x206)](_0x15361b=>{const _0x345e72=_0x50ca7c;this['disposeWithMe'](this[_0x345e72(0x215)][_0x345e72(0x204)](_0x15361b));});}[_0x53b08e(0x226)](){this['_menuManagerService']['mergeMenu'](f);}};p=D([o[_0x53b08e(0x1ee)](o[_0x53b08e(0x1fb)][_0x53b08e(0x1f3)],p),d(0x0,o[_0x53b08e(0x1f5)]),d(0x1,s[_0x53b08e(0x223)])],p);const y=_0x53b08e(0x210),P={};var h=Object[_0x53b08e(0x1fa)],S=Object[_0x53b08e(0x1fd)],U=(_0x20621f,_0x4d61cd,_0x7aea03)=>_0x4d61cd in _0x20621f?h(_0x20621f,_0x4d61cd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x7aea03}):_0x20621f[_0x4d61cd]=_0x7aea03,T=(_0x453e24,_0x4f5340,_0x3a27e0,_0x4cfb39)=>{const _0x170cda=_0x53b08e;for(var _0x4dcd4c=_0x4cfb39>0x1?void 0x0:_0x4cfb39?S(_0x4f5340,_0x3a27e0):_0x4f5340,_0x3a4369=_0x453e24[_0x170cda(0x21f)]-0x1,_0x1acd4d;_0x3a4369>=0x0;_0x3a4369--)(_0x1acd4d=_0x453e24[_0x3a4369])&&(_0x4dcd4c=(_0x4cfb39?_0x1acd4d(_0x4f5340,_0x3a27e0,_0x4dcd4c):_0x1acd4d(_0x4dcd4c))||_0x4dcd4c);return _0x4cfb39&&_0x4dcd4c&&h(_0x4f5340,_0x3a27e0,_0x4dcd4c),_0x4dcd4c;},m=(_0x523325,_0x286933)=>(_0x5d065a,_0x280260)=>_0x286933(_0x5d065a,_0x280260,_0x523325),v=(_0x73550a,_0x5558ed,_0x1427b1)=>U(_0x73550a,typeof _0x5558ed!='symbol'?_0x5558ed+'':_0x5558ed,_0x1427b1);const N='DOC_EXCHANGE_CLIENT_PLUGIN';exports[_0x53b08e(0x205)]=class extends o[_0x53b08e(0x1eb)]{constructor(_0x56088b=P,_0x289d43,_0x3c147b){const _0x64582f=_0x53b08e;super(),this[_0x64582f(0x203)]=_0x56088b,this['_injector']=_0x289d43,this[_0x64582f(0x200)]=_0x3c147b;const {menu:_0x5bfd5b,..._0x3b75eb}=this[_0x64582f(0x203)];_0x5bfd5b&&this['_configService']['setConfig']('menu',_0x5bfd5b,{'merge':!0x0}),this[_0x64582f(0x200)][_0x64582f(0x1f6)](y,_0x3b75eb);}[_0x53b08e(0x202)](){const _0x1ce847=_0x53b08e;[[p]][_0x1ce847(0x206)](_0x21c6ca=>this[_0x1ce847(0x1f2)][_0x1ce847(0x20a)](_0x21c6ca));}[_0x53b08e(0x1fe)](){const _0x590968=_0x53b08e;this[_0x590968(0x202)]();}},v(exports[_0x53b08e(0x205)],'pluginName',N),v(exports[_0x53b08e(0x205)],_0x53b08e(0x1f9),o[_0x53b08e(0x229)]['UNIVER_DOC']),exports[_0x53b08e(0x205)]=T([o[_0x53b08e(0x220)](g[_0x53b08e(0x222)]),m(0x1,o[_0x53b08e(0x1fc)](o[_0x53b08e(0x1ff)])),m(0x2,o[_0x53b08e(0x225)])],exports[_0x53b08e(0x205)]),exports[_0x53b08e(0x207)]=l,exports[_0x53b08e(0x208)]=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 _0x46ec3f=_0x4c32;(function(_0x40cb16,_0x12cb52){const _0x3ab5a9=_0x4c32,_0x2d7296=_0x40cb16();while(!![]){try{const _0x5e2e70=-parseInt(_0x3ab5a9(0x1d4))/0x1+-parseInt(_0x3ab5a9(0x1d7))/0x2+parseInt(_0x3ab5a9(0x1c4))/0x3+parseInt(_0x3ab5a9(0x1b1))/0x4*(-parseInt(_0x3ab5a9(0x1bc))/0x5)+parseInt(_0x3ab5a9(0x1cd))/0x6*(-parseInt(_0x3ab5a9(0x1b0))/0x7)+parseInt(_0x3ab5a9(0x1bb))/0x8*(parseInt(_0x3ab5a9(0x1c7))/0x9)+parseInt(_0x3ab5a9(0x1c2))/0xa;if(_0x5e2e70===_0x12cb52)break;else _0x2d7296['push'](_0x2d7296['shift']());}catch(_0x52e40b){_0x2d7296['push'](_0x2d7296['shift']());}}}(_0x423f,0x5470c));import{CommandType as _0x228091,UniverInstanceType as _0x29880a,OnLifecycle as _0xd322ca,LifecycleStages as _0x49daae,Disposable as _0x196234,ICommandService as _0x51f856,DependentOn as _0x92b709,Inject as _0x5a90c4,Injector as _0xd50153,Plugin as _0x361982,IConfigService as _0x26c290}from'@univerjs/core';import{IExchangeOperateService as _0x3e8dad,UniverExchangeClientPlugin as _0xc174f8}from'@univerjs-pro/exchange-client';import{MenuItemType as _0x5d19d1,getMenuHiddenObservable as _0x2ad786,RibbonStartGroup as _0xdecc63,IMenuManagerService as _0x32adef}from'@univerjs/ui';const d={'id':_0x46ec3f(0x1c5),'type':_0x228091[_0x46ec3f(0x1cc)],'handler':async _0x5d6b5c=>(_0x5d6b5c['get'](_0x3e8dad)[_0x46ec3f(0x1d5)](),!0x0)},l={'id':_0x46ec3f(0x1ae),'type':_0x228091[_0x46ec3f(0x1cc)],'handler':async _0x4160be=>(_0x4160be[_0x46ec3f(0x1ad)](_0x3e8dad)['exportDOCXByUnitId'](),!0x0)},f='docs-exchange-client.operation.exchange';function F(_0x1f04f2){const _0x4abbac=_0x46ec3f;return{'id':f,'type':_0x5d19d1[_0x4abbac(0x1c3)],'icon':'DirectExportSingle','tooltip':_0x4abbac(0x1c1),'hidden$':_0x2ad786(_0x1f04f2,_0x29880a['UNIVER_DOC'])};}function X(){const _0x40212e=_0x46ec3f;return{'id':d['id'],'type':_0x5d19d1[_0x40212e(0x1b3)],'title':_0x40212e(0x1c0),'icon':_0x40212e(0x1ba)};}function G(){const _0x5b2f6a=_0x46ec3f;return{'id':l['id'],'type':_0x5d19d1[_0x5b2f6a(0x1b3)],'title':'exchange.download','icon':_0x5b2f6a(0x1c9)};}const L={[_0xdecc63[_0x46ec3f(0x1cf)]]:{[f]:{'order':0x4,'menuItemFactory':F,[d['id']]:{'order':0x0,'menuItemFactory':X},[l['id']]:{'order':0x1,'menuItemFactory':G}}}};function _0x4c32(_0x58f3f5,_0x39b41f){const _0x423fd1=_0x423f();return _0x4c32=function(_0x4c3272,_0x3e0f12){_0x4c3272=_0x4c3272-0x1ac;let _0x14c842=_0x423fd1[_0x4c3272];return _0x14c842;},_0x4c32(_0x58f3f5,_0x39b41f);}var R=Object[_0x46ec3f(0x1d2)],j=Object[_0x46ec3f(0x1bf)],w=(_0x314e92,_0x328a33,_0x30ec7a,_0x2c6e2d)=>{const _0x41ef3f=_0x46ec3f;for(var _0x5c00bd=_0x2c6e2d>0x1?void 0x0:_0x2c6e2d?j(_0x328a33,_0x30ec7a):_0x328a33,_0x93fd4b=_0x314e92[_0x41ef3f(0x1af)]-0x1,_0x592b9a;_0x93fd4b>=0x0;_0x93fd4b--)(_0x592b9a=_0x314e92[_0x93fd4b])&&(_0x5c00bd=(_0x2c6e2d?_0x592b9a(_0x328a33,_0x30ec7a,_0x5c00bd):_0x592b9a(_0x5c00bd))||_0x5c00bd);return _0x2c6e2d&&_0x5c00bd&&R(_0x328a33,_0x30ec7a,_0x5c00bd),_0x5c00bd;},u=(_0x580042,_0x3acf9d)=>(_0xa74de5,_0x4921b1)=>_0x3acf9d(_0xa74de5,_0x4921b1,_0x580042);let a=class extends _0x196234{constructor(_0x412c21,_0x42f01d){const _0x590353=_0x46ec3f;super(),this[_0x590353(0x1ca)]=_0x412c21,this['_menuManagerService']=_0x42f01d,this['_initCommands'](),this[_0x590353(0x1b2)]();}[_0x46ec3f(0x1c8)](){[d,l]['forEach'](_0xb5d207=>{const _0x5c5ca3=_0x4c32;this['disposeWithMe'](this['_commandService'][_0x5c5ca3(0x1b7)](_0xb5d207));});}[_0x46ec3f(0x1b2)](){const _0x888e9d=_0x46ec3f;this[_0x888e9d(0x1d3)][_0x888e9d(0x1d0)](L);}};a=w([_0xd322ca(_0x49daae[_0x46ec3f(0x1b4)],a),u(0x0,_0x51f856),u(0x1,_0x32adef)],a);const A=_0x46ec3f(0x1ce),B={};var v=Object[_0x46ec3f(0x1d2)],$=Object[_0x46ec3f(0x1bf)],H=(_0x571145,_0x679568,_0x4ddb7b)=>_0x679568 in _0x571145?v(_0x571145,_0x679568,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4ddb7b}):_0x571145[_0x679568]=_0x4ddb7b,z=(_0xc707a8,_0x22e04b,_0x4f7b47,_0x21271d)=>{const _0x2995e5=_0x46ec3f;for(var _0x5cab69=_0x21271d>0x1?void 0x0:_0x21271d?$(_0x22e04b,_0x4f7b47):_0x22e04b,_0x6697ba=_0xc707a8[_0x2995e5(0x1af)]-0x1,_0x5f2e2c;_0x6697ba>=0x0;_0x6697ba--)(_0x5f2e2c=_0xc707a8[_0x6697ba])&&(_0x5cab69=(_0x21271d?_0x5f2e2c(_0x22e04b,_0x4f7b47,_0x5cab69):_0x5f2e2c(_0x5cab69))||_0x5cab69);return _0x21271d&&_0x5cab69&&v(_0x22e04b,_0x4f7b47,_0x5cab69),_0x5cab69;},m=(_0x52543b,_0x7f094f)=>(_0x5256e6,_0x3d95ec)=>_0x7f094f(_0x5256e6,_0x3d95ec,_0x52543b),I=(_0x5a8402,_0x5d90b9,_0x3e4584)=>H(_0x5a8402,typeof _0x5d90b9!=_0x46ec3f(0x1b6)?_0x5d90b9+'':_0x5d90b9,_0x3e4584);const V=_0x46ec3f(0x1b8);function _0x423f(){const _0xa8999e=['SUBITEMS','813951iIPLTc','exchange-client.operation.import-docx','initialize','9bnWqwl','_initCommands','ExportSingle','_commandService','_configService','OPERATION','95112ItFGuc','docs-exchange-client.config','FILE','mergeMenu','_injector','defineProperty','_menuManagerService','444326LAnoyX','importDOCXToUnitId','type','936906luimsE','pluginName','get','exchange-client.operation.export-docx','length','301OqxouX','604DVlakR','_initMenus','BUTTON','Ready','_config','symbol','registerCommand','DOC_EXCHANGE_CLIENT_PLUGIN','UNIVER_DOC','FolderSingle','2905592eUJepf','8285RODiZO','onReady','add','getOwnPropertyDescriptor','exchange.upload','exchange.file','15559740KHAqxd'];_0x423f=function(){return _0xa8999e;};return _0x423f();}let s=class extends _0x361982{constructor(_0x1b5bc7=B,_0xb3ebf2,_0x1cadc1){const _0x4d665c=_0x46ec3f;super(),this[_0x4d665c(0x1b5)]=_0x1b5bc7,this[_0x4d665c(0x1d1)]=_0xb3ebf2,this[_0x4d665c(0x1cb)]=_0x1cadc1;const {menu:_0x3e9f47,..._0x4e4373}=this['_config'];_0x3e9f47&&this['_configService']['setConfig']('menu',_0x3e9f47,{'merge':!0x0}),this[_0x4d665c(0x1cb)]['setConfig'](A,_0x4e4373);}['initialize'](){const _0x2e698c=_0x46ec3f;[[a]]['forEach'](_0x5d91dd=>this[_0x2e698c(0x1d1)][_0x2e698c(0x1be)](_0x5d91dd));}[_0x46ec3f(0x1bd)](){const _0x62e615=_0x46ec3f;this[_0x62e615(0x1c6)]();}};I(s,_0x46ec3f(0x1ac),V),I(s,_0x46ec3f(0x1d6),_0x29880a[_0x46ec3f(0x1b9)]),s=z([_0x92b709(_0xc174f8),m(0x1,_0x5a90c4(_0xd50153)),m(0x2,_0x26c290)],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 _0x53a3(_0x1b87ee,_0x19d2ab){const _0x4f799e=_0x4f79();return _0x53a3=function(_0x53a3ae,_0x5caf70){_0x53a3ae=_0x53a3ae-0xfc;let _0x3ddb55=_0x4f799e[_0x53a3ae];return _0x3ddb55;},_0x53a3(_0x1b87ee,_0x19d2ab);}(function(_0x16dbca,_0x4bf9c2){const _0x4fb7c9=_0x53a3,_0x44e061=_0x16dbca();while(!![]){try{const _0x162e64=-parseInt(_0x4fb7c9(0x130))/0x1*(parseInt(_0x4fb7c9(0x118))/0x2)+-parseInt(_0x4fb7c9(0x137))/0x3*(-parseInt(_0x4fb7c9(0x147))/0x4)+-parseInt(_0x4fb7c9(0x106))/0x5*(parseInt(_0x4fb7c9(0x122))/0x6)+parseInt(_0x4fb7c9(0x142))/0x7*(parseInt(_0x4fb7c9(0x10b))/0x8)+parseInt(_0x4fb7c9(0x131))/0x9+parseInt(_0x4fb7c9(0x109))/0xa+-parseInt(_0x4fb7c9(0x108))/0xb*(parseInt(_0x4fb7c9(0x10e))/0xc);if(_0x162e64===_0x4bf9c2)break;else _0x44e061['push'](_0x44e061['shift']());}catch(_0x3645cc){_0x44e061['push'](_0x44e061['shift']());}}}(_0x4f79,0x84d1c),function(_0x3e0d0e,_0x3490e3){const _0x6b1ea6=_0x53a3;typeof exports==_0x6b1ea6(0x120)&&typeof module<'u'?_0x3490e3(exports,require(_0x6b1ea6(0x117)),require(_0x6b1ea6(0x11e)),require(_0x6b1ea6(0x145))):typeof define==_0x6b1ea6(0x111)&&define[_0x6b1ea6(0x128)]?define(['exports','@univerjs/core',_0x6b1ea6(0x11e),'@univerjs/ui'],_0x3490e3):(_0x3e0d0e=typeof globalThis<'u'?globalThis:_0x3e0d0e||self,_0x3490e3(_0x3e0d0e[_0x6b1ea6(0x12b)]={},_0x3e0d0e[_0x6b1ea6(0xff)],_0x3e0d0e[_0x6b1ea6(0x119)],_0x3e0d0e[_0x6b1ea6(0x121)]));}(this,function(_0x52f810,_0xe86ac4,_0x4ab549,_0x56211d){'use strict';const _0x406810=_0x53a3;const _0x54e5d8={'id':'exchange-client.operation.import-docx','type':_0xe86ac4[_0x406810(0x11b)][_0x406810(0x114)],'handler':async _0x112d70=>(_0x112d70[_0x406810(0x132)](_0x4ab549['IExchangeOperateService'])[_0x406810(0x144)](),!0x0)},_0x593045={'id':_0x406810(0xfe),'type':_0xe86ac4[_0x406810(0x11b)]['OPERATION'],'handler':async _0x4431e8=>(_0x4431e8[_0x406810(0x132)](_0x4ab549[_0x406810(0x12a)])[_0x406810(0x134)](),!0x0)},_0x1a8b85=_0x406810(0x13c);function _0x69a9e3(_0x2485fd){const _0x1a0029=_0x406810;return{'id':_0x1a8b85,'type':_0x56211d[_0x1a0029(0x11f)][_0x1a0029(0x135)],'icon':_0x1a0029(0x10d),'tooltip':_0x1a0029(0x133),'hidden$':_0x56211d[_0x1a0029(0x141)](_0x2485fd,_0xe86ac4[_0x1a0029(0x146)][_0x1a0029(0x140)])};}function _0x22daf8(){const _0xc3ea89=_0x406810;return{'id':_0x54e5d8['id'],'type':_0x56211d[_0xc3ea89(0x11f)][_0xc3ea89(0x103)],'title':_0xc3ea89(0xfc),'icon':_0xc3ea89(0x10c)};}function _0x4f193a(){const _0x4ebd69=_0x406810;return{'id':_0x593045['id'],'type':_0x56211d[_0x4ebd69(0x11f)][_0x4ebd69(0x103)],'title':_0x4ebd69(0x113),'icon':'ExportSingle'};}const _0x1c067e={[_0x56211d[_0x406810(0x12e)][_0x406810(0x11d)]]:{[_0x1a8b85]:{'order':0x4,'menuItemFactory':_0x69a9e3,[_0x54e5d8['id']]:{'order':0x0,'menuItemFactory':_0x22daf8},[_0x593045['id']]:{'order':0x1,'menuItemFactory':_0x4f193a}}}};var _0x448b35=Object[_0x406810(0x127)],_0x5cbde0=Object['getOwnPropertyDescriptor'],_0x47215f=(_0xd17088,_0x205024,_0x31468c,_0x24341b)=>{const _0x5caf5f=_0x406810;for(var _0x4625e3=_0x24341b>0x1?void 0x0:_0x24341b?_0x5cbde0(_0x205024,_0x31468c):_0x205024,_0x2896e9=_0xd17088[_0x5caf5f(0x110)]-0x1,_0x1f8594;_0x2896e9>=0x0;_0x2896e9--)(_0x1f8594=_0xd17088[_0x2896e9])&&(_0x4625e3=(_0x24341b?_0x1f8594(_0x205024,_0x31468c,_0x4625e3):_0x1f8594(_0x4625e3))||_0x4625e3);return _0x24341b&&_0x4625e3&&_0x448b35(_0x205024,_0x31468c,_0x4625e3),_0x4625e3;},_0x4aa77d=(_0x19cec0,_0x5e23f6)=>(_0x26a069,_0x455ded)=>_0x5e23f6(_0x26a069,_0x455ded,_0x19cec0);let _0x243c55=class extends _0xe86ac4[_0x406810(0x139)]{constructor(_0x26d007,_0xb889bd){const _0x175b10=_0x406810;super(),this['_commandService']=_0x26d007,this[_0x175b10(0x13e)]=_0xb889bd,this[_0x175b10(0x148)](),this[_0x175b10(0x136)]();}['_initCommands'](){const _0x16607e=_0x406810;[_0x54e5d8,_0x593045][_0x16607e(0x112)](_0x34bc8d=>{const _0x5477e4=_0x16607e;this['disposeWithMe'](this[_0x5477e4(0x143)][_0x5477e4(0x13f)](_0x34bc8d));});}[_0x406810(0x136)](){const _0x1f9087=_0x406810;this['_menuManagerService'][_0x1f9087(0x12d)](_0x1c067e);}};_0x243c55=_0x47215f([_0xe86ac4['OnLifecycle'](_0xe86ac4[_0x406810(0x125)][_0x406810(0x104)],_0x243c55),_0x4aa77d(0x0,_0xe86ac4[_0x406810(0x11c)]),_0x4aa77d(0x1,_0x56211d[_0x406810(0x13a)])],_0x243c55);const _0x4b2caf='docs-exchange-client.config',_0x1548d9={};var _0x4396f3=Object[_0x406810(0x127)],_0x4eaf81=Object[_0x406810(0x126)],_0x8faa1e=(_0x4fa10e,_0x56841d,_0xa0195e)=>_0x56841d in _0x4fa10e?_0x4396f3(_0x4fa10e,_0x56841d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xa0195e}):_0x4fa10e[_0x56841d]=_0xa0195e,_0x54afda=(_0x4dc5ef,_0x3e114e,_0x2c9b1a,_0x442b24)=>{for(var _0x4fb998=_0x442b24>0x1?void 0x0:_0x442b24?_0x4eaf81(_0x3e114e,_0x2c9b1a):_0x3e114e,_0x1dd015=_0x4dc5ef['length']-0x1,_0x2062ea;_0x1dd015>=0x0;_0x1dd015--)(_0x2062ea=_0x4dc5ef[_0x1dd015])&&(_0x4fb998=(_0x442b24?_0x2062ea(_0x3e114e,_0x2c9b1a,_0x4fb998):_0x2062ea(_0x4fb998))||_0x4fb998);return _0x442b24&&_0x4fb998&&_0x4396f3(_0x3e114e,_0x2c9b1a,_0x4fb998),_0x4fb998;},_0x4e8545=(_0x55f810,_0x1382a0)=>(_0x4847f1,_0x3c8089)=>_0x1382a0(_0x4847f1,_0x3c8089,_0x55f810),_0x214081=(_0x1a002e,_0x3a4ac2,_0x54bb3d)=>_0x8faa1e(_0x1a002e,typeof _0x3a4ac2!='symbol'?_0x3a4ac2+'':_0x3a4ac2,_0x54bb3d);const _0x30e212=_0x406810(0x115);_0x52f810[_0x406810(0x12c)]=class extends _0xe86ac4[_0x406810(0x107)]{constructor(_0x558e83=_0x1548d9,_0x1e1896,_0x121f1c){const _0x139563=_0x406810;super(),this['_config']=_0x558e83,this[_0x139563(0x10a)]=_0x1e1896,this['_configService']=_0x121f1c;const {menu:_0x5e1863,..._0x1403c4}=this['_config'];_0x5e1863&&this[_0x139563(0x101)][_0x139563(0x129)](_0x139563(0x13b),_0x5e1863,{'merge':!0x0}),this[_0x139563(0x101)][_0x139563(0x129)](_0x4b2caf,_0x1403c4);}['initialize'](){const _0x1202dc=_0x406810;[[_0x243c55]]['forEach'](_0x93121b=>this['_injector'][_0x1202dc(0x105)](_0x93121b));}[_0x406810(0x12f)](){const _0x3905ad=_0x406810;this[_0x3905ad(0x100)]();}},_0x214081(_0x52f810[_0x406810(0x12c)],_0x406810(0x11a),_0x30e212),_0x214081(_0x52f810[_0x406810(0x12c)],_0x406810(0xfd),_0xe86ac4['UniverInstanceType']['UNIVER_DOC']),_0x52f810[_0x406810(0x12c)]=_0x54afda([_0xe86ac4['DependentOn'](_0x4ab549[_0x406810(0x123)]),_0x4e8545(0x1,_0xe86ac4[_0x406810(0x10f)](_0xe86ac4[_0x406810(0x138)])),_0x4e8545(0x2,_0xe86ac4[_0x406810(0x124)])],_0x52f810['UniverDocsExchangeClientPlugin']),_0x52f810[_0x406810(0x116)]=_0x593045,_0x52f810[_0x406810(0x102)]=_0x54e5d8,Object['defineProperty'](_0x52f810,Symbol[_0x406810(0x13d)],{'value':'Module'});}));function _0x4f79(){const _0x870cb9=['UNIVER_DOC','getMenuHiddenObservable','2751910BTYwYr','_commandService','importDOCXToUnitId','@univerjs/ui','UniverInstanceType','2080912lIArgp','_initCommands','exchange.upload','type','exchange-client.operation.export-docx','UniverCore','initialize','_configService','ImportDOCXOperation','BUTTON','Ready','add','452465vKkmxx','Plugin','215072WCliax','3839380UlwpMA','_injector','8hKGeFU','FolderSingle','DirectExportSingle','228PAFByk','Inject','length','function','forEach','exchange.download','OPERATION','DOC_EXCHANGE_CLIENT_PLUGIN','ExportDOCXOperation','@univerjs/core','2GWiyNW','UniverExchangeClient','pluginName','CommandType','ICommandService','FILE','@univerjs-pro/exchange-client','MenuItemType','object','UniverUi','12TrBenr','UniverExchangeClientPlugin','IConfigService','LifecycleStages','getOwnPropertyDescriptor','defineProperty','amd','setConfig','IExchangeOperateService','UniverDocsExchangeClient','UniverDocsExchangeClientPlugin','mergeMenu','RibbonStartGroup','onReady','540169vJvfoq','3054375UvVnuq','get','exchange.file','exportDOCXByUnitId','SUBITEMS','_initMenus','3HmbcOo','Injector','Disposable','IMenuManagerService','menu','docs-exchange-client.operation.exchange','toStringTag','_menuManagerService','registerCommand'];_0x4f79=function(){return _0x870cb9;};return _0x4f79();}
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.14",
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/core": "0.2.14",
47
+ "@univerjs/ui": "0.2.14",
48
+ "@univerjs-pro/exchange-client": "0.2.14"
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.14",
54
+ "@univerjs/core": "0.2.14",
55
+ "@univerjs/docs": "0.2.14",
56
+ "@univerjs/protocol": "0.1.39-alpha.15",
57
+ "@univerjs/docs-ui": "0.2.14"
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.14"
67
67
  },
68
68
  "univerSpace": {
69
69
  ".": {