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

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';var _0x3b0b25=_0xdac0;(function(_0x28f06e,_0x457e9e){var _0x2ea4fc=_0xdac0,_0x209c29=_0x28f06e();while(!![]){try{var _0x10ce8f=parseInt(_0x2ea4fc(0x189))/0x1*(parseInt(_0x2ea4fc(0x16b))/0x2)+parseInt(_0x2ea4fc(0x17b))/0x3+-parseInt(_0x2ea4fc(0x18d))/0x4+-parseInt(_0x2ea4fc(0x18c))/0x5*(parseInt(_0x2ea4fc(0x18e))/0x6)+parseInt(_0x2ea4fc(0x15f))/0x7+parseInt(_0x2ea4fc(0x15e))/0x8*(parseInt(_0x2ea4fc(0x18a))/0x9)+parseInt(_0x2ea4fc(0x160))/0xa*(-parseInt(_0x2ea4fc(0x188))/0xb);if(_0x10ce8f===_0x457e9e)break;else _0x209c29['push'](_0x209c29['shift']());}catch(_0x1a0be2){_0x209c29['push'](_0x209c29['shift']());}}}(_0x3b36,0x6dd78));Object[_0x3b0b25(0x176)](exports,Symbol[_0x3b0b25(0x187)],{'value':_0x3b0b25(0x196)});const o=require(_0x3b0b25(0x17f)),u=require(_0x3b0b25(0x19c)),a=require(_0x3b0b25(0x183)),_={'id':_0x3b0b25(0x199),'type':o[_0x3b0b25(0x182)]['OPERATION'],'handler':async _0x358505=>(_0x358505[_0x3b0b25(0x171)](u['IExchangeOperateService'])[_0x3b0b25(0x177)](),!0x0)},h={'id':_0x3b0b25(0x17c),'type':o[_0x3b0b25(0x182)][_0x3b0b25(0x163)],'handler':async _0x71d8ca=>(_0x71d8ca['get'](u['IExchangeOperateService'])['exportDOCXByUnitId'](),!0x0)},g=_0x3b0b25(0x165);function v(_0x1dcde6){var _0x226167=_0x3b0b25;return{'id':g,'group':a[_0x226167(0x15b)][_0x226167(0x175)],'type':a[_0x226167(0x18f)][_0x226167(0x173)],'icon':_0x226167(0x181),'tooltip':_0x226167(0x159),'positions':[a[_0x226167(0x161)]['TOOLBAR_START']],'hidden$':a[_0x226167(0x179)](_0x1dcde6,o[_0x226167(0x180)]['UNIVER_DOC'])};}function C(){var _0x26d594=_0x3b0b25;return{'id':_['id'],'type':a[_0x26d594(0x18f)][_0x26d594(0x19a)],'title':'exchange.upload','icon':_0x26d594(0x16d),'positions':[g]};}function _0x3b36(){var _0x5eb1e1=['Injector','onReady','exchange-client.operation.import-docx','BUTTON','invoke','@univerjs-pro/exchange-client','exchange.file','DOC_EXCHANGE_CLIENT_PLUGIN','MenuGroup','getOwnPropertyDescriptor','OnLifecycle','188248BjghdX','3277666JAoRaf','2468600xbmEeS','MenuPosition','ICommandService','OPERATION','_menuService','docs-exchange-client.operation.exchange','_initMenus','add','Disposable','_commandService','forEach','10tDDOKd','IMenuService','FolderSingle','_injector','length','pluginName','get','createInstance','SUBITEMS','symbol','TOOLBAR_LAYOUT','defineProperty','importDOCXToUnitId','ImportDOCXOperation','getMenuHiddenObservable','DependentOn','1311633nTEEhU','exchange-client.operation.export-docx','UniverDocsExchangeClientPlugin','_initCommands','@univerjs/core','UniverInstanceType','DirectExportSingle','CommandType','@univerjs/ui','Tools','addMenuItem','_config','toStringTag','11wUFuip','20924qDpvcW','81zsFuzi','LifecycleStages','2155vDcfOb','2012380dPomjH','306SqLCuS','MenuItemType','disposeWithMe','UNIVER_DOC','Plugin','Ready','Inject','UniverExchangeClientPlugin','Module'];_0x3b36=function(){return _0x5eb1e1;};return _0x3b36();}var m=Object[_0x3b0b25(0x176)],I=Object[_0x3b0b25(0x15c)],E=(_0x2234fd,_0x1b583e,_0x24ca92,_0x59e895)=>{var _0x19a522=_0x3b0b25;for(var _0xcc3eef=_0x59e895>0x1?void 0x0:_0x59e895?I(_0x1b583e,_0x24ca92):_0x1b583e,_0x32d5c0=_0x2234fd[_0x19a522(0x16f)]-0x1,_0x326a1a;_0x32d5c0>=0x0;_0x32d5c0--)(_0x326a1a=_0x2234fd[_0x32d5c0])&&(_0xcc3eef=(_0x59e895?_0x326a1a(_0x1b583e,_0x24ca92,_0xcc3eef):_0x326a1a(_0xcc3eef))||_0xcc3eef);return _0x59e895&&_0xcc3eef&&m(_0x1b583e,_0x24ca92,_0xcc3eef),_0xcc3eef;},l=(_0x4ea467,_0x39a1c6)=>(_0x59b2db,_0x56429e)=>_0x39a1c6(_0x59b2db,_0x56429e,_0x4ea467);const f={};let p=class extends o[_0x3b0b25(0x168)]{constructor(_0x60ee95,_0x5159cc,_0x3157cf,_0x43c149){var _0x22b8c3=_0x3b0b25;super(),this[_0x22b8c3(0x186)]=_0x60ee95,this[_0x22b8c3(0x16e)]=_0x5159cc,this[_0x22b8c3(0x169)]=_0x3157cf,this['_menuService']=_0x43c149,this['_initCommands'](),this[_0x22b8c3(0x166)]();}[_0x3b0b25(0x17e)](){var _0x53d752=_0x3b0b25;[_,h][_0x53d752(0x16a)](_0x4766c3=>{var _0x37ca87=_0x53d752;this[_0x37ca87(0x190)](this[_0x37ca87(0x169)]['registerCommand'](_0x4766c3));});}[_0x3b0b25(0x166)](){var _0x3d00e5=_0x3b0b25;const {menu:_0x438834={}}=this[_0x3d00e5(0x186)];[v,C]['forEach'](_0x8a074f=>{var _0x426ea5=_0x3d00e5;this[_0x426ea5(0x190)](this[_0x426ea5(0x164)][_0x426ea5(0x185)](this[_0x426ea5(0x16e)][_0x426ea5(0x19b)](_0x8a074f),_0x438834));});}};function _0xdac0(_0x78bd89,_0xc7ca97){var _0x3b3632=_0x3b36();return _0xdac0=function(_0xdac087,_0x5dc65a){_0xdac087=_0xdac087-0x159;var _0x10921d=_0x3b3632[_0xdac087];return _0x10921d;},_0xdac0(_0x78bd89,_0xc7ca97);}p=E([o[_0x3b0b25(0x15d)](o[_0x3b0b25(0x18b)][_0x3b0b25(0x193)],p),l(0x1,o['Inject'](o[_0x3b0b25(0x197)])),l(0x2,o[_0x3b0b25(0x162)]),l(0x3,a[_0x3b0b25(0x16c)])],p);var d=Object[_0x3b0b25(0x176)],D=Object[_0x3b0b25(0x15c)],x=(_0x5c667a,_0x3d9bc8,_0xb8370)=>_0x3d9bc8 in _0x5c667a?d(_0x5c667a,_0x3d9bc8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xb8370}):_0x5c667a[_0x3d9bc8]=_0xb8370,P=(_0x4b4fa2,_0x11d9c2,_0x5522de,_0x335bfe)=>{for(var _0x2db218=_0x335bfe>0x1?void 0x0:_0x335bfe?D(_0x11d9c2,_0x5522de):_0x11d9c2,_0x190522=_0x4b4fa2['length']-0x1,_0x7eb041;_0x190522>=0x0;_0x190522--)(_0x7eb041=_0x4b4fa2[_0x190522])&&(_0x2db218=(_0x335bfe?_0x7eb041(_0x11d9c2,_0x5522de,_0x2db218):_0x7eb041(_0x2db218))||_0x2db218);return _0x335bfe&&_0x2db218&&d(_0x11d9c2,_0x5522de,_0x2db218),_0x2db218;},T=(_0x411a2d,_0x1427b7)=>(_0x5b875e,_0x4968b5)=>_0x1427b7(_0x5b875e,_0x4968b5,_0x411a2d),O=(_0x210a6b,_0x5f4b08,_0x3b7520)=>x(_0x210a6b,typeof _0x5f4b08!=_0x3b0b25(0x174)?_0x5f4b08+'':_0x5f4b08,_0x3b7520);const y=_0x3b0b25(0x15a);exports[_0x3b0b25(0x17d)]=class extends o[_0x3b0b25(0x192)]{constructor(_0x398080={},_0x3abfc5){var _0x364c50=_0x3b0b25;super(),this[_0x364c50(0x186)]=_0x398080,this[_0x364c50(0x16e)]=_0x3abfc5,this[_0x364c50(0x186)]=o[_0x364c50(0x184)]['deepMerge']({},f,this[_0x364c50(0x186)]);}['initialize'](){var _0x42ed59=_0x3b0b25;[[p,{'useFactory':()=>this['_injector'][_0x42ed59(0x172)](p,this['_config'])}]][_0x42ed59(0x16a)](_0x13f78f=>this[_0x42ed59(0x16e)][_0x42ed59(0x167)](_0x13f78f));}[_0x3b0b25(0x198)](){this['initialize']();}},O(exports[_0x3b0b25(0x17d)],_0x3b0b25(0x170),y),O(exports[_0x3b0b25(0x17d)],'type',o[_0x3b0b25(0x180)][_0x3b0b25(0x191)]),exports[_0x3b0b25(0x17d)]=P([o[_0x3b0b25(0x17a)](u[_0x3b0b25(0x195)]),T(0x1,o[_0x3b0b25(0x194)](o[_0x3b0b25(0x197)]))],exports[_0x3b0b25(0x17d)]),exports['ExportDOCXOperation']=h,exports[_0x3b0b25(0x178)]=_;
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;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0xf1b538=_0x1d80;(function(_0x5a49f8,_0x425059){var _0x3f05ee=_0x1d80,_0x1bba74=_0x5a49f8();while(!![]){try{var _0x2511bf=parseInt(_0x3f05ee(0xa9))/0x1*(parseInt(_0x3f05ee(0xc6))/0x2)+-parseInt(_0x3f05ee(0xc4))/0x3+-parseInt(_0x3f05ee(0xa5))/0x4*(parseInt(_0x3f05ee(0xbd))/0x5)+-parseInt(_0x3f05ee(0xbe))/0x6+parseInt(_0x3f05ee(0xae))/0x7*(parseInt(_0x3f05ee(0xc7))/0x8)+parseInt(_0x3f05ee(0xb5))/0x9+parseInt(_0x3f05ee(0xcc))/0xa*(parseInt(_0x3f05ee(0xba))/0xb);if(_0x2511bf===_0x425059)break;else _0x1bba74['push'](_0x1bba74['shift']());}catch(_0x10fef1){_0x1bba74['push'](_0x1bba74['shift']());}}}(_0x1c89,0x23137));import{CommandType as _0x54d00e,UniverInstanceType as _0x56b6f8,OnLifecycle as _0x556b95,LifecycleStages as _0x95b1aa,Inject as _0x41beb7,Injector as _0x30d314,Disposable as _0x351f49,ICommandService as _0x2f0ca4,DependentOn as _0x42cee5,Plugin as _0x30bcff,Tools as _0x47c29a}from'@univerjs/core';import{IExchangeOperateService as _0x95d158,UniverExchangeClientPlugin as _0x2a0ff4}from'@univerjs-pro/exchange-client';import{MenuGroup as _0x263904,MenuItemType as _0x38269b,MenuPosition as _0x437da5,getMenuHiddenObservable as _0x16985c,IMenuService as _0x46ee01}from'@univerjs/ui';const O={'id':'exchange-client.operation.import-docx','type':_0x54d00e[_0xf1b538(0xca)],'handler':async _0xf9993d=>(_0xf9993d[_0xf1b538(0xbc)](_0x95d158)[_0xf1b538(0xbf)](),!0x0)},b={'id':'exchange-client.operation.export-docx','type':_0x54d00e['OPERATION'],'handler':async _0x31f595=>(_0x31f595[_0xf1b538(0xbc)](_0x95d158)[_0xf1b538(0xd0)](),!0x0)},g=_0xf1b538(0xb4);function A(_0x5da9ef){var _0x2e1ea0=_0xf1b538;return{'id':g,'group':_0x263904['TOOLBAR_LAYOUT'],'type':_0x38269b[_0x2e1ea0(0xc1)],'icon':_0x2e1ea0(0xac),'tooltip':'exchange.file','positions':[_0x437da5['TOOLBAR_START']],'hidden$':_0x16985c(_0x5da9ef,_0x56b6f8['UNIVER_DOC'])};}function R(){var _0x265462=_0xf1b538;return{'id':O['id'],'type':_0x38269b[_0x265462(0xc5)],'title':_0x265462(0xb3),'icon':_0x265462(0xb9),'positions':[g]};}var j=Object[_0xf1b538(0xaa)],L=Object[_0xf1b538(0xb2)],X=(_0xbdd879,_0x403df6,_0x1219db,_0x1af6ad)=>{var _0x3689ef=_0xf1b538;for(var _0x588577=_0x1af6ad>0x1?void 0x0:_0x1af6ad?L(_0x403df6,_0x1219db):_0x403df6,_0x2bc5cf=_0xbdd879[_0x3689ef(0xce)]-0x1,_0x37e9c6;_0x2bc5cf>=0x0;_0x2bc5cf--)(_0x37e9c6=_0xbdd879[_0x2bc5cf])&&(_0x588577=(_0x1af6ad?_0x37e9c6(_0x403df6,_0x1219db,_0x588577):_0x37e9c6(_0x588577))||_0x588577);return _0x1af6ad&&_0x588577&&j(_0x403df6,_0x1219db,_0x588577),_0x588577;},p=(_0x3b3d27,_0x279875)=>(_0x469fa9,_0x323383)=>_0x279875(_0x469fa9,_0x323383,_0x3b3d27);const G={};function _0x1c89(){var _0x436038=['581MeDpsV','add','UNIVER_DOC','initialize','getOwnPropertyDescriptor','exchange.upload','docs-exchange-client.operation.exchange','68976bOcDAm','registerCommand','onReady','createInstance','FolderSingle','1913087uWTogZ','symbol','get','5KzEIRn','849630aSeRTX','importDOCXToUnitId','Ready','SUBITEMS','_commandService','_config','156471maxEXm','BUTTON','8VJTrGF','15656KLsEMu','_initMenus','pluginName','OPERATION','_initCommands','10stDNno','_injector','length','type','exportDOCXByUnitId','DOC_EXCHANGE_CLIENT_PLUGIN','854380TMQZvr','deepMerge','invoke','_menuService','51754EjjJWS','defineProperty','disposeWithMe','DirectExportSingle','forEach'];_0x1c89=function(){return _0x436038;};return _0x1c89();}let s=class extends _0x351f49{constructor(_0x460640,_0x175ba0,_0x322df5,_0x27e5f5){var _0x4001da=_0xf1b538;super(),this[_0x4001da(0xc3)]=_0x460640,this[_0x4001da(0xcd)]=_0x175ba0,this['_commandService']=_0x322df5,this[_0x4001da(0xa8)]=_0x27e5f5,this[_0x4001da(0xcb)](),this['_initMenus']();}[_0xf1b538(0xcb)](){[O,b]['forEach'](_0x2aed9a=>{var _0x10e0c4=_0x1d80;this[_0x10e0c4(0xab)](this[_0x10e0c4(0xc2)][_0x10e0c4(0xb6)](_0x2aed9a));});}[_0xf1b538(0xc8)](){var _0x27ee9f=_0xf1b538;const {menu:_0xae1003={}}=this[_0x27ee9f(0xc3)];[A,R]['forEach'](_0x1c618c=>{var _0x428a04=_0x27ee9f;this[_0x428a04(0xab)](this['_menuService']['addMenuItem'](this['_injector'][_0x428a04(0xa7)](_0x1c618c),_0xae1003));});}};s=X([_0x556b95(_0x95b1aa[_0xf1b538(0xc0)],s),p(0x1,_0x41beb7(_0x30d314)),p(0x2,_0x2f0ca4),p(0x3,_0x46ee01)],s);var f=Object['defineProperty'],w=Object[_0xf1b538(0xb2)],B=(_0x235c5b,_0x1288b6,_0x3b9513)=>_0x1288b6 in _0x235c5b?f(_0x235c5b,_0x1288b6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b9513}):_0x235c5b[_0x1288b6]=_0x3b9513,F=(_0x2cefc2,_0x2a5a08,_0x44dfb4,_0xfeea1a)=>{var _0x546ccc=_0xf1b538;for(var _0x5b9b42=_0xfeea1a>0x1?void 0x0:_0xfeea1a?w(_0x2a5a08,_0x44dfb4):_0x2a5a08,_0x5525a9=_0x2cefc2[_0x546ccc(0xce)]-0x1,_0x3a4502;_0x5525a9>=0x0;_0x5525a9--)(_0x3a4502=_0x2cefc2[_0x5525a9])&&(_0x5b9b42=(_0xfeea1a?_0x3a4502(_0x2a5a08,_0x44dfb4,_0x5b9b42):_0x3a4502(_0x5b9b42))||_0x5b9b42);return _0xfeea1a&&_0x5b9b42&&f(_0x2a5a08,_0x44dfb4,_0x5b9b42),_0x5b9b42;},$=(_0x1fb07c,_0x43b611)=>(_0x34a8f5,_0x1853c0)=>_0x43b611(_0x34a8f5,_0x1853c0,_0x1fb07c),v=(_0x591206,_0x42dec6,_0x9f87f6)=>B(_0x591206,typeof _0x42dec6!=_0xf1b538(0xbb)?_0x42dec6+'':_0x42dec6,_0x9f87f6);const H=_0xf1b538(0xd1);let a=class extends _0x30bcff{constructor(_0x491f81={},_0x1d700b){var _0x276d5b=_0xf1b538;super(),this[_0x276d5b(0xc3)]=_0x491f81,this[_0x276d5b(0xcd)]=_0x1d700b,this['_config']=_0x47c29a[_0x276d5b(0xa6)]({},G,this[_0x276d5b(0xc3)]);}['initialize'](){var _0x39a259=_0xf1b538;[[s,{'useFactory':()=>this[_0x39a259(0xcd)][_0x39a259(0xb8)](s,this[_0x39a259(0xc3)])}]][_0x39a259(0xad)](_0x5b77d6=>this['_injector'][_0x39a259(0xaf)](_0x5b77d6));}[_0xf1b538(0xb7)](){var _0x57bd0c=_0xf1b538;this[_0x57bd0c(0xb1)]();}};function _0x1d80(_0x193832,_0x200c11){var _0x1c890d=_0x1c89();return _0x1d80=function(_0x1d80e5,_0x4a7c57){_0x1d80e5=_0x1d80e5-0xa5;var _0xf5997d=_0x1c890d[_0x1d80e5];return _0xf5997d;},_0x1d80(_0x193832,_0x200c11);}v(a,_0xf1b538(0xc9),H),v(a,_0xf1b538(0xcf),_0x56b6f8[_0xf1b538(0xb0)]),a=F([_0x42cee5(_0x2a0ff4),$(0x1,_0x41beb7(_0x30d314))],a);export{b as ExportDOCXOperation,O as ImportDOCXOperation,a as UniverDocsExchangeClientPlugin};
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};
@@ -0,0 +1,7 @@
1
+ import { MenuConfig } from '@univerjs/ui';
2
+ export declare const PLUGIN_CONFIG_KEY = "docs-exchange-client.config";
3
+ export declare const configSymbol: unique symbol;
4
+ export interface IUniverDocsExchangeClientConfig {
5
+ menu?: MenuConfig;
6
+ }
7
+ export declare const defaultPluginConfig: IUniverDocsExchangeClientConfig;
@@ -1,15 +1,9 @@
1
- import { Disposable, ICommandService, Injector } from '@univerjs/core';
2
- import { MenuConfig, IMenuService } from '@univerjs/ui';
3
- export interface IDocsExchangeClientConfig {
4
- menu: MenuConfig;
5
- }
6
- export declare const DefaultDocsExchangeClientConfig: {};
1
+ import { Disposable, ICommandService } from '@univerjs/core';
2
+ import { IMenuManagerService } from '@univerjs/ui';
7
3
  export declare class DocsExchangeClientController extends Disposable {
8
- private readonly _config;
9
- private readonly _injector;
10
4
  private readonly _commandService;
11
- private readonly _menuService;
12
- constructor(_config: Partial<IDocsExchangeClientConfig>, _injector: Injector, _commandService: ICommandService, _menuService: IMenuService);
5
+ protected readonly _menuManagerService: IMenuManagerService;
6
+ constructor(_commandService: ICommandService, _menuManagerService: IMenuManagerService);
13
7
  private _initCommands;
14
8
  private _initMenus;
15
9
  }
@@ -1,5 +1,6 @@
1
1
  import { IMenuButtonItem, IMenuSelectorItem } from '@univerjs/ui';
2
2
  import { IAccessor } from '@univerjs/core';
3
+ export declare const DOCS_EXCHANGE_OPERATION_ID = "docs-exchange-client.operation.exchange";
3
4
  export declare function DocsExchangeMenuItemFactory(accessor: IAccessor): IMenuSelectorItem<string>;
4
5
  export declare function ImportDOCXToUnitIdMenuItemFactory(): IMenuButtonItem<string>;
5
6
  export declare function ExportDOCXByUnitIdMenuItemFactory(): IMenuButtonItem<string>;
@@ -0,0 +1,2 @@
1
+ import { MenuSchemaType } from '@univerjs/ui';
2
+ export declare const menuSchema: MenuSchemaType;
@@ -1,11 +1,12 @@
1
- import { Injector, Plugin, UniverInstanceType } from '@univerjs/core';
2
- import { IDocsExchangeClientConfig } from './controllers/exchange.controller';
1
+ import { IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
2
+ import { IUniverDocsExchangeClientConfig } from './controllers/config.schema';
3
3
  export declare class UniverDocsExchangeClientPlugin extends Plugin {
4
4
  private readonly _config;
5
5
  readonly _injector: Injector;
6
+ private readonly _configService;
6
7
  static pluginName: string;
7
8
  static type: UniverInstanceType;
8
- constructor(_config: Partial<IDocsExchangeClientConfig>, _injector: Injector);
9
+ constructor(_config: Partial<IUniverDocsExchangeClientConfig>, _injector: Injector, _configService: IConfigService);
9
10
  initialize(): void;
10
11
  onReady(): void;
11
12
  }
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x4a16bc,_0x5a21de){var _0x262613=_0x23c1,_0x2db4b5=_0x4a16bc();while(!![]){try{var _0x2c75d8=parseInt(_0x262613(0x1bd))/0x1*(parseInt(_0x262613(0x1a5))/0x2)+-parseInt(_0x262613(0x1ce))/0x3*(-parseInt(_0x262613(0x1e4))/0x4)+parseInt(_0x262613(0x1c3))/0x5*(-parseInt(_0x262613(0x1d1))/0x6)+parseInt(_0x262613(0x1c7))/0x7+-parseInt(_0x262613(0x1b6))/0x8+parseInt(_0x262613(0x1cc))/0x9+parseInt(_0x262613(0x1b7))/0xa;if(_0x2c75d8===_0x5a21de)break;else _0x2db4b5['push'](_0x2db4b5['shift']());}catch(_0xa2aaef){_0x2db4b5['push'](_0x2db4b5['shift']());}}}(_0x287b,0x7b6cb),function(_0x3f1582,_0x4dcfb9){var _0x2ed269=_0x23c1;typeof exports==_0x2ed269(0x1be)&&typeof module<'u'?_0x4dcfb9(exports,require(_0x2ed269(0x1a4)),require(_0x2ed269(0x1cb)),require('@univerjs/ui')):typeof define==_0x2ed269(0x1ac)&&define[_0x2ed269(0x1e1)]?define([_0x2ed269(0x1a2),_0x2ed269(0x1a4),'@univerjs-pro/exchange-client',_0x2ed269(0x1e2)],_0x4dcfb9):(_0x3f1582=typeof globalThis<'u'?globalThis:_0x3f1582||self,_0x4dcfb9(_0x3f1582[_0x2ed269(0x1af)]={},_0x3f1582[_0x2ed269(0x1b2)],_0x3f1582['UniverExchangeClient'],_0x3f1582[_0x2ed269(0x1d7)]));}(this,function(_0x1194fb,_0x338cf2,_0x39ec35,_0x4fd024){'use strict';var _0x37a9a0=_0x23c1;const _0x2b67a6={'id':_0x37a9a0(0x1ca),'type':_0x338cf2[_0x37a9a0(0x1d0)][_0x37a9a0(0x1b1)],'handler':async _0x3f4727=>(_0x3f4727[_0x37a9a0(0x1e6)](_0x39ec35[_0x37a9a0(0x1de)])[_0x37a9a0(0x1ab)](),!0x0)},_0x1e565c={'id':_0x37a9a0(0x1c4),'type':_0x338cf2['CommandType']['OPERATION'],'handler':async _0x2a2f0f=>(_0x2a2f0f[_0x37a9a0(0x1e6)](_0x39ec35[_0x37a9a0(0x1de)])[_0x37a9a0(0x1aa)](),!0x0)},_0x20f13c=_0x37a9a0(0x1d3);function _0x436319(_0x2e89ee){var _0x4e1305=_0x37a9a0;return{'id':_0x20f13c,'group':_0x4fd024['MenuGroup'][_0x4e1305(0x1bc)],'type':_0x4fd024[_0x4e1305(0x1d8)]['SUBITEMS'],'icon':_0x4e1305(0x1dc),'tooltip':'exchange.file','positions':[_0x4fd024[_0x4e1305(0x1e0)]['TOOLBAR_START']],'hidden$':_0x4fd024[_0x4e1305(0x1d4)](_0x2e89ee,_0x338cf2[_0x4e1305(0x1d6)][_0x4e1305(0x1db)])};}function _0x5883b6(){var _0x3e5b21=_0x37a9a0;return{'id':_0x2b67a6['id'],'type':_0x4fd024[_0x3e5b21(0x1d8)]['BUTTON'],'title':_0x3e5b21(0x1b3),'icon':'FolderSingle','positions':[_0x20f13c]};}var _0x2188e1=Object[_0x37a9a0(0x1c5)],_0x56d2a0=Object[_0x37a9a0(0x1ad)],_0xa1bc21=(_0x571afc,_0xb184eb,_0x2d6ce7,_0xa3c223)=>{for(var _0x3995e3=_0xa3c223>0x1?void 0x0:_0xa3c223?_0x56d2a0(_0xb184eb,_0x2d6ce7):_0xb184eb,_0x539533=_0x571afc['length']-0x1,_0x471867;_0x539533>=0x0;_0x539533--)(_0x471867=_0x571afc[_0x539533])&&(_0x3995e3=(_0xa3c223?_0x471867(_0xb184eb,_0x2d6ce7,_0x3995e3):_0x471867(_0x3995e3))||_0x3995e3);return _0xa3c223&&_0x3995e3&&_0x2188e1(_0xb184eb,_0x2d6ce7,_0x3995e3),_0x3995e3;},_0x375797=(_0x55dd1c,_0xd880be)=>(_0x4d40e0,_0x3da6f7)=>_0xd880be(_0x4d40e0,_0x3da6f7,_0x55dd1c);const _0x130dde={};let _0x129185=class extends _0x338cf2[_0x37a9a0(0x1bb)]{constructor(_0x3cf99c,_0x2eaf59,_0x3a3641,_0x2fe215){var _0x160f06=_0x37a9a0;super(),this[_0x160f06(0x1b0)]=_0x3cf99c,this[_0x160f06(0x1ae)]=_0x2eaf59,this[_0x160f06(0x1cd)]=_0x3a3641,this['_menuService']=_0x2fe215,this[_0x160f06(0x1b5)](),this[_0x160f06(0x1c9)]();}['_initCommands'](){var _0xf1ab2e=_0x37a9a0;[_0x2b67a6,_0x1e565c][_0xf1ab2e(0x1b8)](_0x488347=>{var _0x222a12=_0xf1ab2e;this[_0x222a12(0x1b9)](this[_0x222a12(0x1cd)][_0x222a12(0x1cf)](_0x488347));});}[_0x37a9a0(0x1c9)](){var _0x428547=_0x37a9a0;const {menu:_0x12adf9={}}=this[_0x428547(0x1b0)];[_0x436319,_0x5883b6][_0x428547(0x1b8)](_0x381c55=>{var _0x45ca28=_0x428547;this[_0x45ca28(0x1b9)](this[_0x45ca28(0x1bf)][_0x45ca28(0x1e5)](this[_0x45ca28(0x1ae)][_0x45ca28(0x1e3)](_0x381c55),_0x12adf9));});}};_0x129185=_0xa1bc21([_0x338cf2[_0x37a9a0(0x1c8)](_0x338cf2[_0x37a9a0(0x1c2)][_0x37a9a0(0x1a7)],_0x129185),_0x375797(0x1,_0x338cf2[_0x37a9a0(0x1c0)](_0x338cf2[_0x37a9a0(0x1a9)])),_0x375797(0x2,_0x338cf2[_0x37a9a0(0x1d5)]),_0x375797(0x3,_0x4fd024['IMenuService'])],_0x129185);var _0x22c62e=Object[_0x37a9a0(0x1c5)],_0x543235=Object['getOwnPropertyDescriptor'],_0x33e152=(_0x32ccc2,_0x58443c,_0x361e47)=>_0x58443c in _0x32ccc2?_0x22c62e(_0x32ccc2,_0x58443c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x361e47}):_0x32ccc2[_0x58443c]=_0x361e47,_0x2c6245=(_0x40eca4,_0x49a92c,_0x22f016,_0x5a75c5)=>{var _0x30c9b3=_0x37a9a0;for(var _0x5ef5d7=_0x5a75c5>0x1?void 0x0:_0x5a75c5?_0x543235(_0x49a92c,_0x22f016):_0x49a92c,_0x3adf46=_0x40eca4[_0x30c9b3(0x1dd)]-0x1,_0x1005b2;_0x3adf46>=0x0;_0x3adf46--)(_0x1005b2=_0x40eca4[_0x3adf46])&&(_0x5ef5d7=(_0x5a75c5?_0x1005b2(_0x49a92c,_0x22f016,_0x5ef5d7):_0x1005b2(_0x5ef5d7))||_0x5ef5d7);return _0x5a75c5&&_0x5ef5d7&&_0x22c62e(_0x49a92c,_0x22f016,_0x5ef5d7),_0x5ef5d7;},_0x28db14=(_0x41df49,_0x152890)=>(_0x39fef5,_0x2076ed)=>_0x152890(_0x39fef5,_0x2076ed,_0x41df49),_0x2bdda1=(_0x1e459b,_0x468aef,_0x103fa9)=>_0x33e152(_0x1e459b,typeof _0x468aef!='symbol'?_0x468aef+'':_0x468aef,_0x103fa9);const _0x4fddf8=_0x37a9a0(0x1c6);_0x1194fb['UniverDocsExchangeClientPlugin']=class extends _0x338cf2[_0x37a9a0(0x1da)]{constructor(_0x41aa60={},_0x4e7a33){var _0x4660b7=_0x37a9a0;super(),this[_0x4660b7(0x1b0)]=_0x41aa60,this[_0x4660b7(0x1ae)]=_0x4e7a33,this[_0x4660b7(0x1b0)]=_0x338cf2[_0x4660b7(0x1d2)]['deepMerge']({},_0x130dde,this[_0x4660b7(0x1b0)]);}[_0x37a9a0(0x1a6)](){var _0x44ae6e=_0x37a9a0;[[_0x129185,{'useFactory':()=>this[_0x44ae6e(0x1ae)][_0x44ae6e(0x1b4)](_0x129185,this['_config'])}]]['forEach'](_0x36b0bc=>this[_0x44ae6e(0x1ae)][_0x44ae6e(0x1d9)](_0x36b0bc));}['onReady'](){this['initialize']();}},_0x2bdda1(_0x1194fb[_0x37a9a0(0x1ba)],'pluginName',_0x4fddf8),_0x2bdda1(_0x1194fb[_0x37a9a0(0x1ba)],_0x37a9a0(0x1df),_0x338cf2[_0x37a9a0(0x1d6)]['UNIVER_DOC']),_0x1194fb[_0x37a9a0(0x1ba)]=_0x2c6245([_0x338cf2[_0x37a9a0(0x1c1)](_0x39ec35['UniverExchangeClientPlugin']),_0x28db14(0x1,_0x338cf2[_0x37a9a0(0x1c0)](_0x338cf2[_0x37a9a0(0x1a9)]))],_0x1194fb[_0x37a9a0(0x1ba)]),_0x1194fb[_0x37a9a0(0x1a8)]=_0x1e565c,_0x1194fb[_0x37a9a0(0x1a1)]=_0x2b67a6,Object['defineProperty'](_0x1194fb,Symbol[_0x37a9a0(0x1a3)],{'value':'Module'});}));function _0x23c1(_0x2baa2f,_0x4b4d4b){var _0x287be7=_0x287b();return _0x23c1=function(_0x23c1c4,_0xa4ac8d){_0x23c1c4=_0x23c1c4-0x1a1;var _0x2dd547=_0x287be7[_0x23c1c4];return _0x2dd547;},_0x23c1(_0x2baa2f,_0x4b4d4b);}function _0x287b(){var _0x2e376d=['ExportDOCXOperation','Injector','exportDOCXByUnitId','importDOCXToUnitId','function','getOwnPropertyDescriptor','_injector','UniverDocsExchangeClient','_config','OPERATION','UniverCore','exchange.upload','createInstance','_initCommands','2442592smcnpB','4055810uaSgnt','forEach','disposeWithMe','UniverDocsExchangeClientPlugin','Disposable','TOOLBAR_LAYOUT','33CEPHEL','object','_menuService','Inject','DependentOn','LifecycleStages','5NMmYZG','exchange-client.operation.export-docx','defineProperty','DOC_EXCHANGE_CLIENT_PLUGIN','107597BNMlIO','OnLifecycle','_initMenus','exchange-client.operation.import-docx','@univerjs-pro/exchange-client','3520458vcqGjw','_commandService','1274097COJEkw','registerCommand','CommandType','3929178NWkxGY','Tools','docs-exchange-client.operation.exchange','getMenuHiddenObservable','ICommandService','UniverInstanceType','UniverUi','MenuItemType','add','Plugin','UNIVER_DOC','DirectExportSingle','length','IExchangeOperateService','type','MenuPosition','amd','@univerjs/ui','invoke','4vJTUGr','addMenuItem','get','ImportDOCXOperation','exports','toStringTag','@univerjs/core','13874KlmsXG','initialize','Ready'];_0x287b=function(){return _0x2e376d;};return _0x287b();}
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();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/docs-exchange-client",
3
- "version": "0.2.10",
3
+ "version": "0.2.12",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -43,15 +43,15 @@
43
43
  "lib"
44
44
  ],
45
45
  "peerDependencies": {
46
- "@univerjs-pro/exchange-client": "0.2.10",
47
- "@univerjs/core": "0.2.10",
48
- "@univerjs/ui": "0.2.10"
46
+ "@univerjs-pro/exchange-client": "0.2.12",
47
+ "@univerjs/ui": "0.2.12",
48
+ "@univerjs/core": "0.2.12"
49
49
  },
50
50
  "dependencies": {
51
51
  "@univerjs/icons": "^0.1.72",
52
- "@univerjs/docs": "0.2.10",
53
- "@univerjs/protocol": "0.1.39-alpha.15",
54
- "@univerjs/docs-ui": "0.2.10"
52
+ "@univerjs/docs": "0.2.12",
53
+ "@univerjs/docs-ui": "0.2.12",
54
+ "@univerjs/protocol": "0.1.39-alpha.15"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@types/pako": "^2.0.3",
@@ -61,9 +61,9 @@
61
61
  "typescript": "^5.5.4",
62
62
  "vite": "^5.4.0",
63
63
  "vitest": "^2.0.5",
64
- "@univerjs-pro/exchange-client": "0.2.10",
65
- "@univerjs/core": "0.2.10",
66
- "@univerjs/shared": "0.2.10"
64
+ "@univerjs-pro/exchange-client": "0.2.12",
65
+ "@univerjs/core": "0.2.12",
66
+ "@univerjs/shared": "0.2.12"
67
67
  },
68
68
  "univerSpace": {
69
69
  ".": {