@univerjs-pro/docs-exchange-client 0.2.15 → 0.3.0-alpha.1

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 _0x44a4b6=_0x50f2;(function(_0x27c7f2,_0x1cedbd){const _0xef50b1=_0x50f2,_0x434335=_0x27c7f2();while(!![]){try{const _0x10e017=-parseInt(_0xef50b1(0x1b9))/0x1*(parseInt(_0xef50b1(0x1b6))/0x2)+parseInt(_0xef50b1(0x1bb))/0x3*(parseInt(_0xef50b1(0x199))/0x4)+-parseInt(_0xef50b1(0x1b2))/0x5*(-parseInt(_0xef50b1(0x196))/0x6)+-parseInt(_0xef50b1(0x1c2))/0x7+parseInt(_0xef50b1(0x1a3))/0x8+parseInt(_0xef50b1(0x19a))/0x9*(-parseInt(_0xef50b1(0x1ab))/0xa)+parseInt(_0xef50b1(0x1bc))/0xb;if(_0x10e017===_0x1cedbd)break;else _0x434335['push'](_0x434335['shift']());}catch(_0x50ff6d){_0x434335['push'](_0x434335['shift']());}}}(_0x791d,0x371fc));Object[_0x44a4b6(0x19d)](exports,Symbol[_0x44a4b6(0x18a)],{'value':_0x44a4b6(0x18f)});const o=require(_0x44a4b6(0x1a4)),g=require('@univerjs-pro/exchange-client'),s=require(_0x44a4b6(0x18c)),u={'id':_0x44a4b6(0x195),'type':o[_0x44a4b6(0x18d)]['OPERATION'],'handler':async _0x573fc7=>(_0x573fc7[_0x44a4b6(0x1a6)](g[_0x44a4b6(0x188)])[_0x44a4b6(0x1a5)](),!0x0)},l={'id':_0x44a4b6(0x19c),'type':o[_0x44a4b6(0x18d)]['OPERATION'],'handler':async _0x5452b3=>(_0x5452b3['get'](g[_0x44a4b6(0x188)])[_0x44a4b6(0x1a2)](),!0x0)},_=_0x44a4b6(0x197);function C(_0xa9dbc7){const _0x468515=_0x44a4b6;return{'id':_,'type':s[_0x468515(0x18e)][_0x468515(0x1c6)],'icon':'DirectExportSingle','tooltip':_0x468515(0x1a7),'hidden$':s[_0x468515(0x1b4)](_0xa9dbc7,o['UniverInstanceType'][_0x468515(0x1af)])};}function O(){const _0xde36bd=_0x44a4b6;return{'id':u['id'],'type':s[_0xde36bd(0x18e)][_0xde36bd(0x19f)],'title':_0xde36bd(0x1a0),'icon':_0xde36bd(0x190)};}function I(){const _0x5e4d75=_0x44a4b6;return{'id':l['id'],'type':s[_0x5e4d75(0x18e)][_0x5e4d75(0x19f)],'title':_0x5e4d75(0x1c5),'icon':'ExportSingle'};}const f={[s[_0x44a4b6(0x193)][_0x44a4b6(0x198)]]:{[_]:{'order':0x4,'menuItemFactory':C,[u['id']]:{'order':0x0,'menuItemFactory':O},[l['id']]:{'order':0x1,'menuItemFactory':I}}}};var E=Object[_0x44a4b6(0x19d)],x=Object[_0x44a4b6(0x1bd)],D=(_0x52737f,_0x257f37,_0x4d06fa,_0x407bf9)=>{for(var _0xff7a3d=_0x407bf9>0x1?void 0x0:_0x407bf9?x(_0x257f37,_0x4d06fa):_0x257f37,_0x4163d7=_0x52737f['length']-0x1,_0x6aaec2;_0x4163d7>=0x0;_0x4163d7--)(_0x6aaec2=_0x52737f[_0x4163d7])&&(_0xff7a3d=(_0x407bf9?_0x6aaec2(_0x257f37,_0x4d06fa,_0xff7a3d):_0x6aaec2(_0xff7a3d))||_0xff7a3d);return _0x407bf9&&_0xff7a3d&&E(_0x257f37,_0x4d06fa,_0xff7a3d),_0xff7a3d;},d=(_0x30a422,_0x3b9984)=>(_0x4d9143,_0x2e4cbd)=>_0x3b9984(_0x4d9143,_0x2e4cbd,_0x30a422);let p=class extends o['Disposable']{constructor(_0x3505d2,_0x127325){const _0x2b8860=_0x44a4b6;super(),this['_commandService']=_0x3505d2,this['_menuManagerService']=_0x127325,this[_0x2b8860(0x1c7)](),this[_0x2b8860(0x189)]();}[_0x44a4b6(0x1c7)](){[u,l]['forEach'](_0x507856=>{const _0x453219=_0x50f2;this[_0x453219(0x19b)](this['_commandService'][_0x453219(0x1ad)](_0x507856));});}[_0x44a4b6(0x189)](){const _0x2bace4=_0x44a4b6;this[_0x2bace4(0x1a8)][_0x2bace4(0x1b8)](f);}};p=D([o[_0x44a4b6(0x1c0)](o[_0x44a4b6(0x1a9)]['Ready'],p),d(0x0,o[_0x44a4b6(0x192)]),d(0x1,s[_0x44a4b6(0x194)])],p);const y=_0x44a4b6(0x1b3),P={};var h=Object[_0x44a4b6(0x19d)],S=Object[_0x44a4b6(0x1bd)],U=(_0x10650c,_0x3e1f66,_0x16d614)=>_0x3e1f66 in _0x10650c?h(_0x10650c,_0x3e1f66,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x16d614}):_0x10650c[_0x3e1f66]=_0x16d614,T=(_0x32dae1,_0x1fbcda,_0x193061,_0x293b7c)=>{const _0x49cd2d=_0x44a4b6;for(var _0x302bd4=_0x293b7c>0x1?void 0x0:_0x293b7c?S(_0x1fbcda,_0x193061):_0x1fbcda,_0x2068f0=_0x32dae1[_0x49cd2d(0x1b7)]-0x1,_0x59d1af;_0x2068f0>=0x0;_0x2068f0--)(_0x59d1af=_0x32dae1[_0x2068f0])&&(_0x302bd4=(_0x293b7c?_0x59d1af(_0x1fbcda,_0x193061,_0x302bd4):_0x59d1af(_0x302bd4))||_0x302bd4);return _0x293b7c&&_0x302bd4&&h(_0x1fbcda,_0x193061,_0x302bd4),_0x302bd4;},m=(_0x104ba7,_0x4e3256)=>(_0x3ee478,_0x1c2127)=>_0x4e3256(_0x3ee478,_0x1c2127,_0x104ba7),v=(_0x51bd6d,_0x2f03c5,_0x158905)=>U(_0x51bd6d,typeof _0x2f03c5!=_0x44a4b6(0x1ae)?_0x2f03c5+'':_0x2f03c5,_0x158905);function _0x50f2(_0x103dd3,_0x4966d4){const _0x791d8d=_0x791d();return _0x50f2=function(_0x50f2ad,_0x37b3e4){_0x50f2ad=_0x50f2ad-0x186;let _0x5bab66=_0x791d8d[_0x50f2ad];return _0x5bab66;},_0x50f2(_0x103dd3,_0x4966d4);}const N='DOC_EXCHANGE_CLIENT_PLUGIN';function _0x791d(){const _0x27c3e6=['4400vtvaPW','add','registerCommand','symbol','UNIVER_DOC','onReady','ImportDOCXOperation','465NYmSvV','docs-exchange-client.config','getMenuHiddenObservable','Injector','258082GioVqX','length','mergeMenu','1GNdyvT','forEach','93GWocYq','1692416kmCiGa','getOwnPropertyDescriptor','UniverInstanceType','menu','OnLifecycle','UniverDocsExchangeClientPlugin','2303644yYjixC','IConfigService','setConfig','exchange.download','SUBITEMS','_initCommands','pluginName','_injector','IExchangeOperateService','_initMenus','toStringTag','ExportDOCXOperation','@univerjs/ui','CommandType','MenuItemType','Module','FolderSingle','DependentOn','ICommandService','RibbonStartGroup','IMenuManagerService','exchange-client.operation.import-docx','18420MVlhIW','docs-exchange-client.operation.exchange','FILE','45028cLftpc','8001JTjHVg','disposeWithMe','exchange-client.operation.export-docx','defineProperty','Plugin','BUTTON','exchange.upload','_configService','exportDOCXByUnitId','2293984bKsbik','@univerjs/core','importDOCXToUnitId','get','exchange.file','_menuManagerService','LifecycleStages','_config'];_0x791d=function(){return _0x27c3e6;};return _0x791d();}exports[_0x44a4b6(0x1c1)]=class extends o[_0x44a4b6(0x19e)]{constructor(_0x5eb57e=P,_0x378e2a,_0x1eb333){const _0x203931=_0x44a4b6;super(),this[_0x203931(0x1aa)]=_0x5eb57e,this['_injector']=_0x378e2a,this[_0x203931(0x1a1)]=_0x1eb333;const {menu:_0x3455f5,..._0xadbdf7}=this['_config'];_0x3455f5&&this[_0x203931(0x1a1)][_0x203931(0x1c4)](_0x203931(0x1bf),_0x3455f5,{'merge':!0x0}),this[_0x203931(0x1a1)][_0x203931(0x1c4)](y,_0xadbdf7);}['initialize'](){const _0x23f4df=_0x44a4b6;[[p]][_0x23f4df(0x1ba)](_0x4709bb=>this[_0x23f4df(0x187)][_0x23f4df(0x1ac)](_0x4709bb));}[_0x44a4b6(0x1b0)](){this['initialize']();}},v(exports['UniverDocsExchangeClientPlugin'],_0x44a4b6(0x186),N),v(exports[_0x44a4b6(0x1c1)],'type',o[_0x44a4b6(0x1be)][_0x44a4b6(0x1af)]),exports['UniverDocsExchangeClientPlugin']=T([o[_0x44a4b6(0x191)](g['UniverExchangeClientPlugin']),m(0x1,o['Inject'](o[_0x44a4b6(0x1b5)])),m(0x2,o[_0x44a4b6(0x1c3)])],exports['UniverDocsExchangeClientPlugin']),exports[_0x44a4b6(0x18b)]=l,exports[_0x44a4b6(0x1b1)]=u;
1
+ 'use strict';const _0x35ef0e=_0x4b50;function _0x341d(){const _0x2d550e=['Ready','mergeMenu','13438040PIZOWf','DOC_EXCHANGE_CLIENT_PLUGIN','disposeWithMe','RibbonStartGroup','Disposable','959724mlHlMD','docs-exchange-client.operation.exchange','Inject','IMenuManagerService','get','63ZAnplI','importDOCXToUnitId','add','ExportSingle','menu','LifecycleStages','OnLifecycle','40aidjlc','defineProperty','exchange.file','DirectExportSingle','_commandService','setConfig','@univerjs/ui','6WLwYek','initialize','SUBITEMS','getOwnPropertyDescriptor','exchange.upload','type','CommandType','@univerjs/core','pluginName','MenuItemType','@univerjs-pro/exchange-client','registerCommand','forEach','175704DNDhxV','ExportDOCXOperation','_config','UniverExchangeClientPlugin','ImportDOCXOperation','UniverDocsExchangeClientPlugin','Plugin','exchange.download','length','Injector','IExchangeOperateService','_menuManagerService','_configService','Module','15iHJoQP','858861GBjdTN','FILE','UNIVER_DOC','_initCommands','BUTTON','_injector','FolderSingle','OPERATION','exportDOCXByUnitId','onReady','541790JPtjlY','IConfigService','UniverInstanceType','getMenuHiddenObservable','1452540HoVycM','359317EmCCWN','_initMenus'];_0x341d=function(){return _0x2d550e;};return _0x341d();}(function(_0x5ecaed,_0x4dffe0){const _0x3377d2=_0x4b50,_0x3cbf08=_0x5ecaed();while(!![]){try{const _0x3ff156=-parseInt(_0x3377d2(0xe6))/0x1+-parseInt(_0x3377d2(0x103))/0x2*(-parseInt(_0x3377d2(0xd8))/0x3)+parseInt(_0x3377d2(0xf0))/0x4*(parseInt(_0x3377d2(0xd7))/0x5)+parseInt(_0x3377d2(0x110))/0x6+-parseInt(_0x3377d2(0xe7))/0x7*(parseInt(_0x3377d2(0xfc))/0x8)+-parseInt(_0x3377d2(0xf5))/0x9*(parseInt(_0x3377d2(0xe2))/0xa)+parseInt(_0x3377d2(0xeb))/0xb;if(_0x3ff156===_0x4dffe0)break;else _0x3cbf08['push'](_0x3cbf08['shift']());}catch(_0x4a01b){_0x3cbf08['push'](_0x3cbf08['shift']());}}}(_0x341d,0xb4f0a));Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x35ef0e(0xd6)});const o=require(_0x35ef0e(0x10a)),g=require(_0x35ef0e(0x10d)),s=require(_0x35ef0e(0x102)),u={'id':'exchange-client.operation.import-docx','type':o['CommandType'][_0x35ef0e(0xdf)],'handler':async _0x2098de=>(_0x2098de[_0x35ef0e(0xf4)](g[_0x35ef0e(0xd3)])[_0x35ef0e(0xf6)](),!0x0)},l={'id':'exchange-client.operation.export-docx','type':o[_0x35ef0e(0x109)]['OPERATION'],'handler':async _0x234598=>(_0x234598[_0x35ef0e(0xf4)](g[_0x35ef0e(0xd3)])[_0x35ef0e(0xe0)](),!0x0)},_=_0x35ef0e(0xf1);function C(_0x2a9aa2){const _0x49932e=_0x35ef0e;return{'id':_,'type':s[_0x49932e(0x10c)][_0x49932e(0x105)],'icon':_0x49932e(0xff),'tooltip':_0x49932e(0xfe),'hidden$':s[_0x49932e(0xe5)](_0x2a9aa2,o['UniverInstanceType']['UNIVER_DOC'])};}function O(){const _0x1d870f=_0x35ef0e;return{'id':u['id'],'type':s[_0x1d870f(0x10c)][_0x1d870f(0xdc)],'title':_0x1d870f(0x107),'icon':_0x1d870f(0xde)};}function _0x4b50(_0x5085da,_0x2c56f4){const _0x341d72=_0x341d();return _0x4b50=function(_0x4b5082,_0x15ff49){_0x4b5082=_0x4b5082-0xd3;let _0x2f6166=_0x341d72[_0x4b5082];return _0x2f6166;},_0x4b50(_0x5085da,_0x2c56f4);}function I(){const _0x5c7448=_0x35ef0e;return{'id':l['id'],'type':s['MenuItemType'][_0x5c7448(0xdc)],'title':_0x5c7448(0x117),'icon':_0x5c7448(0xf8)};}const f={[s[_0x35ef0e(0xee)][_0x35ef0e(0xd9)]]:{[_]:{'order':0x4,'menuItemFactory':C,[u['id']]:{'order':0x0,'menuItemFactory':O},[l['id']]:{'order':0x1,'menuItemFactory':I}}}};var E=Object['defineProperty'],x=Object['getOwnPropertyDescriptor'],D=(_0x338f10,_0x3fe777,_0x4cba24,_0x426a97)=>{for(var _0x390b79=_0x426a97>0x1?void 0x0:_0x426a97?x(_0x3fe777,_0x4cba24):_0x3fe777,_0x22b226=_0x338f10['length']-0x1,_0xfa2d8;_0x22b226>=0x0;_0x22b226--)(_0xfa2d8=_0x338f10[_0x22b226])&&(_0x390b79=(_0x426a97?_0xfa2d8(_0x3fe777,_0x4cba24,_0x390b79):_0xfa2d8(_0x390b79))||_0x390b79);return _0x426a97&&_0x390b79&&E(_0x3fe777,_0x4cba24,_0x390b79),_0x390b79;},d=(_0x14e627,_0x231575)=>(_0x4ad6cd,_0x14777d)=>_0x231575(_0x4ad6cd,_0x14777d,_0x14e627);let p=class extends o[_0x35ef0e(0xef)]{constructor(_0x48ca55,_0x5435ac){const _0x970930=_0x35ef0e;super(),this[_0x970930(0x100)]=_0x48ca55,this[_0x970930(0xd4)]=_0x5435ac,this[_0x970930(0xdb)](),this[_0x970930(0xe8)]();}[_0x35ef0e(0xdb)](){const _0x3fb7e9=_0x35ef0e;[u,l][_0x3fb7e9(0x10f)](_0xffd2c3=>{const _0x5d523e=_0x3fb7e9;this[_0x5d523e(0xed)](this[_0x5d523e(0x100)][_0x5d523e(0x10e)](_0xffd2c3));});}[_0x35ef0e(0xe8)](){const _0x458533=_0x35ef0e;this[_0x458533(0xd4)][_0x458533(0xea)](f);}};p=D([o[_0x35ef0e(0xfb)](o[_0x35ef0e(0xfa)][_0x35ef0e(0xe9)],p),d(0x0,o['ICommandService']),d(0x1,s[_0x35ef0e(0xf3)])],p);const y='docs-exchange-client.config',P={};var h=Object[_0x35ef0e(0xfd)],S=Object[_0x35ef0e(0x106)],U=(_0x55effd,_0x51371a,_0x1b46af)=>_0x51371a in _0x55effd?h(_0x55effd,_0x51371a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b46af}):_0x55effd[_0x51371a]=_0x1b46af,T=(_0x1a4043,_0x3f8309,_0xc41e66,_0x5b0010)=>{const _0x585777=_0x35ef0e;for(var _0x19626b=_0x5b0010>0x1?void 0x0:_0x5b0010?S(_0x3f8309,_0xc41e66):_0x3f8309,_0x42d761=_0x1a4043[_0x585777(0x118)]-0x1,_0x1d4406;_0x42d761>=0x0;_0x42d761--)(_0x1d4406=_0x1a4043[_0x42d761])&&(_0x19626b=(_0x5b0010?_0x1d4406(_0x3f8309,_0xc41e66,_0x19626b):_0x1d4406(_0x19626b))||_0x19626b);return _0x5b0010&&_0x19626b&&h(_0x3f8309,_0xc41e66,_0x19626b),_0x19626b;},m=(_0x5ecd51,_0x437555)=>(_0x44e5bd,_0x599df1)=>_0x437555(_0x44e5bd,_0x599df1,_0x5ecd51),v=(_0x1a7d7c,_0x43f70f,_0x544280)=>U(_0x1a7d7c,typeof _0x43f70f!='symbol'?_0x43f70f+'':_0x43f70f,_0x544280);const N=_0x35ef0e(0xec);exports['UniverDocsExchangeClientPlugin']=class extends o[_0x35ef0e(0x116)]{constructor(_0x162966=P,_0x33c761,_0x10d6b8){const _0x23d4da=_0x35ef0e;super(),this[_0x23d4da(0x112)]=_0x162966,this[_0x23d4da(0xdd)]=_0x33c761,this['_configService']=_0x10d6b8;const {menu:_0x3482c7,..._0x53cff1}=this[_0x23d4da(0x112)];_0x3482c7&&this[_0x23d4da(0xd5)]['setConfig'](_0x23d4da(0xf9),_0x3482c7,{'merge':!0x0}),this[_0x23d4da(0xd5)][_0x23d4da(0x101)](y,_0x53cff1);}['initialize'](){const _0x25a43a=_0x35ef0e;[[p]][_0x25a43a(0x10f)](_0x56eced=>this[_0x25a43a(0xdd)][_0x25a43a(0xf7)](_0x56eced));}[_0x35ef0e(0xe1)](){const _0x373708=_0x35ef0e;this[_0x373708(0x104)]();}},v(exports[_0x35ef0e(0x115)],_0x35ef0e(0x10b),N),v(exports[_0x35ef0e(0x115)],_0x35ef0e(0x108),o[_0x35ef0e(0xe4)][_0x35ef0e(0xda)]),exports[_0x35ef0e(0x115)]=T([o['DependentOn'](g[_0x35ef0e(0x113)]),m(0x1,o[_0x35ef0e(0xf2)](o[_0x35ef0e(0x119)])),m(0x2,o[_0x35ef0e(0xe3)])],exports[_0x35ef0e(0x115)]),exports[_0x35ef0e(0x111)]=l,exports[_0x35ef0e(0x114)]=u;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x2edeaf=_0x595d;(function(_0x5e4714,_0x2259ea){const _0x5e179b=_0x595d,_0x5e36f6=_0x5e4714();while(!![]){try{const _0x508dd2=parseInt(_0x5e179b(0xd9))/0x1+parseInt(_0x5e179b(0xc2))/0x2*(-parseInt(_0x5e179b(0xca))/0x3)+-parseInt(_0x5e179b(0xbe))/0x4+-parseInt(_0x5e179b(0xc0))/0x5+parseInt(_0x5e179b(0xd1))/0x6+-parseInt(_0x5e179b(0xd4))/0x7+parseInt(_0x5e179b(0xbc))/0x8;if(_0x508dd2===_0x2259ea)break;else _0x5e36f6['push'](_0x5e36f6['shift']());}catch(_0x2e3a43){_0x5e36f6['push'](_0x5e36f6['shift']());}}}(_0x3cf3,0x480ca));import{CommandType as _0x213e27,UniverInstanceType as _0x3e7e4e,OnLifecycle as _0x2fe7d7,LifecycleStages as _0x299a44,Disposable as _0x493cf1,ICommandService as _0x581055,DependentOn as _0x263f26,Inject as _0x1eb59b,Injector as _0x27c60b,Plugin as _0x4a3560,IConfigService as _0x117238}from'@univerjs/core';import{IExchangeOperateService as _0x693790,UniverExchangeClientPlugin as _0x4366c2}from'@univerjs-pro/exchange-client';import{MenuItemType as _0x28b9f9,getMenuHiddenObservable as _0x3e15fb,RibbonStartGroup as _0x51e88e,IMenuManagerService as _0xb9ab11}from'@univerjs/ui';const d={'id':_0x2edeaf(0xdb),'type':_0x213e27[_0x2edeaf(0xc8)],'handler':async _0x137630=>(_0x137630['get'](_0x693790)[_0x2edeaf(0xd6)](),!0x0)},l={'id':_0x2edeaf(0xba),'type':_0x213e27[_0x2edeaf(0xc8)],'handler':async _0x5a2760=>(_0x5a2760[_0x2edeaf(0xc7)](_0x693790)[_0x2edeaf(0xc6)](),!0x0)},f=_0x2edeaf(0xd2);function F(_0x4cd920){const _0x3f6c6f=_0x2edeaf;return{'id':f,'type':_0x28b9f9[_0x3f6c6f(0xe1)],'icon':'DirectExportSingle','tooltip':_0x3f6c6f(0xcd),'hidden$':_0x3e15fb(_0x4cd920,_0x3e7e4e[_0x3f6c6f(0xc1)])};}function X(){const _0x274642=_0x2edeaf;return{'id':d['id'],'type':_0x28b9f9[_0x274642(0xe0)],'title':_0x274642(0xc5),'icon':_0x274642(0xcc)};}function G(){const _0x27fdc2=_0x2edeaf;return{'id':l['id'],'type':_0x28b9f9[_0x27fdc2(0xe0)],'title':_0x27fdc2(0xd8),'icon':_0x27fdc2(0xc4)};}const L={[_0x51e88e['FILE']]:{[f]:{'order':0x4,'menuItemFactory':F,[d['id']]:{'order':0x0,'menuItemFactory':X},[l['id']]:{'order':0x1,'menuItemFactory':G}}}};var R=Object[_0x2edeaf(0xc9)],j=Object[_0x2edeaf(0xdc)],w=(_0x1c545f,_0x1b642e,_0x110737,_0x11997c)=>{for(var _0x164a9b=_0x11997c>0x1?void 0x0:_0x11997c?j(_0x1b642e,_0x110737):_0x1b642e,_0x83235c=_0x1c545f['length']-0x1,_0x35da91;_0x83235c>=0x0;_0x83235c--)(_0x35da91=_0x1c545f[_0x83235c])&&(_0x164a9b=(_0x11997c?_0x35da91(_0x1b642e,_0x110737,_0x164a9b):_0x35da91(_0x164a9b))||_0x164a9b);return _0x11997c&&_0x164a9b&&R(_0x1b642e,_0x110737,_0x164a9b),_0x164a9b;},u=(_0x2d897b,_0x53ed53)=>(_0x464d9e,_0x5c813d)=>_0x53ed53(_0x464d9e,_0x5c813d,_0x2d897b);function _0x595d(_0x43f8bd,_0x11cfa4){const _0x3cf305=_0x3cf3();return _0x595d=function(_0x595d38,_0x5acb74){_0x595d38=_0x595d38-0xb7;let _0x3c743f=_0x3cf305[_0x595d38];return _0x3c743f;},_0x595d(_0x43f8bd,_0x11cfa4);}let a=class extends _0x493cf1{constructor(_0x112af2,_0x50f2be){const _0x513993=_0x2edeaf;super(),this[_0x513993(0xd7)]=_0x112af2,this[_0x513993(0xd0)]=_0x50f2be,this['_initCommands'](),this[_0x513993(0xb8)]();}[_0x2edeaf(0xd5)](){const _0x509efb=_0x2edeaf;[d,l][_0x509efb(0xce)](_0x3c4ff9=>{const _0x289d6f=_0x509efb;this[_0x289d6f(0xbb)](this[_0x289d6f(0xd7)]['registerCommand'](_0x3c4ff9));});}['_initMenus'](){const _0x43efba=_0x2edeaf;this[_0x43efba(0xd0)][_0x43efba(0xd3)](L);}};a=w([_0x2fe7d7(_0x299a44[_0x2edeaf(0xde)],a),u(0x0,_0x581055),u(0x1,_0xb9ab11)],a);const A=_0x2edeaf(0xc3),B={};function _0x3cf3(){const _0x220272=['disposeWithMe','9501432SXtpSj','pluginName','1780100DLYeSt','setConfig','2339810rQUXeb','UNIVER_DOC','3490YDjfaC','docs-exchange-client.config','ExportSingle','exchange.upload','exportDOCXByUnitId','get','OPERATION','defineProperty','963boLlda','initialize','FolderSingle','exchange.file','forEach','_configService','_menuManagerService','3400350tyECZR','docs-exchange-client.operation.exchange','mergeMenu','857668PZUGDw','_initCommands','importDOCXToUnitId','_commandService','exchange.download','136366MysMig','add','exchange-client.operation.import-docx','getOwnPropertyDescriptor','_config','Ready','menu','BUTTON','SUBITEMS','onReady','_initMenus','_injector','exchange-client.operation.export-docx'];_0x3cf3=function(){return _0x220272;};return _0x3cf3();}var v=Object[_0x2edeaf(0xc9)],$=Object[_0x2edeaf(0xdc)],H=(_0x5d3f25,_0x505fca,_0x4557c6)=>_0x505fca in _0x5d3f25?v(_0x5d3f25,_0x505fca,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4557c6}):_0x5d3f25[_0x505fca]=_0x4557c6,z=(_0x401ea5,_0x204339,_0x19e753,_0x302eab)=>{for(var _0x1ece5d=_0x302eab>0x1?void 0x0:_0x302eab?$(_0x204339,_0x19e753):_0x204339,_0x3aa858=_0x401ea5['length']-0x1,_0x5d3ab5;_0x3aa858>=0x0;_0x3aa858--)(_0x5d3ab5=_0x401ea5[_0x3aa858])&&(_0x1ece5d=(_0x302eab?_0x5d3ab5(_0x204339,_0x19e753,_0x1ece5d):_0x5d3ab5(_0x1ece5d))||_0x1ece5d);return _0x302eab&&_0x1ece5d&&v(_0x204339,_0x19e753,_0x1ece5d),_0x1ece5d;},m=(_0x1de028,_0xc10afd)=>(_0x3321f4,_0x16e579)=>_0xc10afd(_0x3321f4,_0x16e579,_0x1de028),I=(_0xac8e4,_0x2a2e54,_0x1a7136)=>H(_0xac8e4,typeof _0x2a2e54!='symbol'?_0x2a2e54+'':_0x2a2e54,_0x1a7136);const V='DOC_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x4a3560{constructor(_0x2cf97e=B,_0x2c40db,_0x81da14){const _0x389ae3=_0x2edeaf;super(),this['_config']=_0x2cf97e,this[_0x389ae3(0xb9)]=_0x2c40db,this[_0x389ae3(0xcf)]=_0x81da14;const {menu:_0x37af92,..._0x51a7e6}=this[_0x389ae3(0xdd)];_0x37af92&&this[_0x389ae3(0xcf)][_0x389ae3(0xbf)](_0x389ae3(0xdf),_0x37af92,{'merge':!0x0}),this['_configService']['setConfig'](A,_0x51a7e6);}[_0x2edeaf(0xcb)](){const _0x5e48b9=_0x2edeaf;[[a]][_0x5e48b9(0xce)](_0x1c5997=>this[_0x5e48b9(0xb9)][_0x5e48b9(0xda)](_0x1c5997));}[_0x2edeaf(0xb7)](){const _0x3f47e9=_0x2edeaf;this[_0x3f47e9(0xcb)]();}};I(s,_0x2edeaf(0xbd),V),I(s,'type',_0x3e7e4e[_0x2edeaf(0xc1)]),s=z([_0x263f26(_0x4366c2),m(0x1,_0x1eb59b(_0x27c60b)),m(0x2,_0x117238)],s);export{l as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
1
+ const _0x467031=_0x59c6;function _0xf331(){const _0x27a587=['registerCommand','Ready','menu','20174UQYGXS','add','_initCommands','304xILxPL','defineProperty','828RyZFNz','184uOwWBg','210YqOlCB','ExportSingle','docs-exchange-client.operation.exchange','type','4744890AweIQd','exportDOCXByUnitId','_injector','55JxfgkT','DOC_EXCHANGE_CLIENT_PLUGIN','pluginName','158034vXLSPY','BUTTON','exchange.download','331aYrsJw','symbol','get','initialize','12tXDFnh','_configService','UNIVER_DOC','disposeWithMe','_config','327821UmlDGJ','exchange.file','98854oTfaqo','setConfig','length','forEach','exchange.upload','_commandService','FILE','exchange-client.operation.export-docx','exchange-client.operation.import-docx','_menuManagerService','OPERATION','7305uFSxLh','DirectExportSingle'];_0xf331=function(){return _0x27a587;};return _0xf331();}(function(_0x275fd9,_0x58761f){const _0x3faf28=_0x59c6,_0x3a5dd5=_0x275fd9();while(!![]){try{const _0x382458=-parseInt(_0x3faf28(0x123))/0x1*(parseInt(_0x3faf28(0x143))/0x2)+-parseInt(_0x3faf28(0x139))/0x3*(-parseInt(_0x3faf28(0x144))/0x4)+-parseInt(_0x3faf28(0x11d))/0x5*(-parseInt(_0x3faf28(0x120))/0x6)+-parseInt(_0x3faf28(0x12e))/0x7*(-parseInt(_0x3faf28(0x141))/0x8)+-parseInt(_0x3faf28(0x149))/0x9+-parseInt(_0x3faf28(0x145))/0xa*(-parseInt(_0x3faf28(0x13e))/0xb)+-parseInt(_0x3faf28(0x127))/0xc*(parseInt(_0x3faf28(0x12c))/0xd);if(_0x382458===_0x58761f)break;else _0x3a5dd5['push'](_0x3a5dd5['shift']());}catch(_0x256a77){_0x3a5dd5['push'](_0x3a5dd5['shift']());}}}(_0xf331,0x462c4));import{CommandType as _0x11d022,UniverInstanceType as _0x279c49,OnLifecycle as _0x517583,LifecycleStages as _0x3ea010,Disposable as _0x1d198e,ICommandService as _0x2bb081,DependentOn as _0x5d630d,Inject as _0x5909cf,Injector as _0x533837,Plugin as _0x5afacb,IConfigService as _0x13478a}from'@univerjs/core';import{IExchangeOperateService as _0x1f4326,UniverExchangeClientPlugin as _0x2645c4}from'@univerjs-pro/exchange-client';import{MenuItemType as _0x5906a0,getMenuHiddenObservable as _0x2c0011,RibbonStartGroup as _0x2ded56,IMenuManagerService as _0x1aae3c}from'@univerjs/ui';const d={'id':_0x467031(0x136),'type':_0x11d022[_0x467031(0x138)],'handler':async _0x2d4acb=>(_0x2d4acb[_0x467031(0x125)](_0x1f4326)['importDOCXToUnitId'](),!0x0)},l={'id':_0x467031(0x135),'type':_0x11d022['OPERATION'],'handler':async _0x25658e=>(_0x25658e[_0x467031(0x125)](_0x1f4326)[_0x467031(0x14a)](),!0x0)},f=_0x467031(0x147);function _0x59c6(_0x2b5389,_0x1389da){const _0xf33192=_0xf331();return _0x59c6=function(_0x59c66a,_0x20d82d){_0x59c66a=_0x59c66a-0x11d;let _0x1a2bd7=_0xf33192[_0x59c66a];return _0x1a2bd7;},_0x59c6(_0x2b5389,_0x1389da);}function F(_0x64ffb5){const _0x3cc044=_0x467031;return{'id':f,'type':_0x5906a0['SUBITEMS'],'icon':_0x3cc044(0x13a),'tooltip':_0x3cc044(0x12d),'hidden$':_0x2c0011(_0x64ffb5,_0x279c49[_0x3cc044(0x129)])};}function X(){const _0x3bcd00=_0x467031;return{'id':d['id'],'type':_0x5906a0[_0x3bcd00(0x121)],'title':_0x3bcd00(0x132),'icon':'FolderSingle'};}function G(){const _0x1c6260=_0x467031;return{'id':l['id'],'type':_0x5906a0['BUTTON'],'title':_0x1c6260(0x122),'icon':_0x1c6260(0x146)};}const L={[_0x2ded56[_0x467031(0x134)]]:{[f]:{'order':0x4,'menuItemFactory':F,[d['id']]:{'order':0x0,'menuItemFactory':X},[l['id']]:{'order':0x1,'menuItemFactory':G}}}};var R=Object[_0x467031(0x142)],j=Object['getOwnPropertyDescriptor'],w=(_0x159b50,_0x3c9a96,_0xdc7edb,_0x136f57)=>{for(var _0x42bacd=_0x136f57>0x1?void 0x0:_0x136f57?j(_0x3c9a96,_0xdc7edb):_0x3c9a96,_0x5ae901=_0x159b50['length']-0x1,_0x3a616b;_0x5ae901>=0x0;_0x5ae901--)(_0x3a616b=_0x159b50[_0x5ae901])&&(_0x42bacd=(_0x136f57?_0x3a616b(_0x3c9a96,_0xdc7edb,_0x42bacd):_0x3a616b(_0x42bacd))||_0x42bacd);return _0x136f57&&_0x42bacd&&R(_0x3c9a96,_0xdc7edb,_0x42bacd),_0x42bacd;},u=(_0x10d605,_0xd88cf0)=>(_0x8b4f36,_0x1f3884)=>_0xd88cf0(_0x8b4f36,_0x1f3884,_0x10d605);let a=class extends _0x1d198e{constructor(_0x502fab,_0x514027){const _0x101b09=_0x467031;super(),this[_0x101b09(0x133)]=_0x502fab,this['_menuManagerService']=_0x514027,this['_initCommands'](),this['_initMenus']();}[_0x467031(0x140)](){[d,l]['forEach'](_0x54c605=>{const _0x4bcaf0=_0x59c6;this[_0x4bcaf0(0x12a)](this['_commandService'][_0x4bcaf0(0x13b)](_0x54c605));});}['_initMenus'](){const _0x3e12c2=_0x467031;this[_0x3e12c2(0x137)]['mergeMenu'](L);}};a=w([_0x517583(_0x3ea010[_0x467031(0x13c)],a),u(0x0,_0x2bb081),u(0x1,_0x1aae3c)],a);const A='docs-exchange-client.config',B={};var v=Object[_0x467031(0x142)],$=Object['getOwnPropertyDescriptor'],H=(_0x5309d,_0x210386,_0x2f899d)=>_0x210386 in _0x5309d?v(_0x5309d,_0x210386,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2f899d}):_0x5309d[_0x210386]=_0x2f899d,z=(_0x1e3fea,_0x2b6094,_0xa142a6,_0x3c2f48)=>{const _0x3984ce=_0x467031;for(var _0xf0d1bd=_0x3c2f48>0x1?void 0x0:_0x3c2f48?$(_0x2b6094,_0xa142a6):_0x2b6094,_0x42832f=_0x1e3fea[_0x3984ce(0x130)]-0x1,_0x150781;_0x42832f>=0x0;_0x42832f--)(_0x150781=_0x1e3fea[_0x42832f])&&(_0xf0d1bd=(_0x3c2f48?_0x150781(_0x2b6094,_0xa142a6,_0xf0d1bd):_0x150781(_0xf0d1bd))||_0xf0d1bd);return _0x3c2f48&&_0xf0d1bd&&v(_0x2b6094,_0xa142a6,_0xf0d1bd),_0xf0d1bd;},m=(_0x4bbc0b,_0x121ea9)=>(_0x25b448,_0x337071)=>_0x121ea9(_0x25b448,_0x337071,_0x4bbc0b),I=(_0x41af59,_0xaba88d,_0x1dc7ce)=>H(_0x41af59,typeof _0xaba88d!=_0x467031(0x124)?_0xaba88d+'':_0xaba88d,_0x1dc7ce);const V=_0x467031(0x11e);let s=class extends _0x5afacb{constructor(_0x29bae4=B,_0x21e88f,_0x3b6566){const _0x2dbd4c=_0x467031;super(),this[_0x2dbd4c(0x12b)]=_0x29bae4,this[_0x2dbd4c(0x14b)]=_0x21e88f,this['_configService']=_0x3b6566;const {menu:_0x29ea9f,..._0x588028}=this[_0x2dbd4c(0x12b)];_0x29ea9f&&this[_0x2dbd4c(0x128)][_0x2dbd4c(0x12f)](_0x2dbd4c(0x13d),_0x29ea9f,{'merge':!0x0}),this[_0x2dbd4c(0x128)][_0x2dbd4c(0x12f)](A,_0x588028);}[_0x467031(0x126)](){const _0x1ac3b3=_0x467031;[[a]][_0x1ac3b3(0x131)](_0x274ccb=>this[_0x1ac3b3(0x14b)][_0x1ac3b3(0x13f)](_0x274ccb));}['onReady'](){this['initialize']();}};I(s,_0x467031(0x11f),V),I(s,_0x467031(0x148),_0x279c49[_0x467031(0x129)]),s=z([_0x5d630d(_0x2645c4),m(0x1,_0x5909cf(_0x533837)),m(0x2,_0x13478a)],s);export{l as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
@@ -1,2 +1,2 @@
1
1
  export { UniverDocsExchangeClientPlugin } from './plugin';
2
- export { ImportDOCXOperation, ExportDOCXOperation, } from './commands/operations/exchange.operation';
2
+ export { ExportDOCXOperation, ImportDOCXOperation, } from './commands/operations/exchange.operation';
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x1725e8,_0x4f5401){const _0x307d3e=_0x4f72,_0x16f775=_0x1725e8();while(!![]){try{const _0x541ab3=parseInt(_0x307d3e(0x14e))/0x1+parseInt(_0x307d3e(0x183))/0x2*(-parseInt(_0x307d3e(0x17c))/0x3)+parseInt(_0x307d3e(0x144))/0x4+parseInt(_0x307d3e(0x145))/0x5+-parseInt(_0x307d3e(0x184))/0x6+-parseInt(_0x307d3e(0x169))/0x7+parseInt(_0x307d3e(0x175))/0x8;if(_0x541ab3===_0x4f5401)break;else _0x16f775['push'](_0x16f775['shift']());}catch(_0xb3f42a){_0x16f775['push'](_0x16f775['shift']());}}}(_0x1b27,0xdb3c1),function(_0x509faa,_0x57808e){const _0x12761b=_0x4f72;typeof exports==_0x12761b(0x17f)&&typeof module<'u'?_0x57808e(exports,require(_0x12761b(0x165)),require('@univerjs-pro/exchange-client'),require(_0x12761b(0x172))):typeof define==_0x12761b(0x156)&&define[_0x12761b(0x17b)]?define(['exports',_0x12761b(0x165),_0x12761b(0x16e),_0x12761b(0x172)],_0x57808e):(_0x509faa=typeof globalThis<'u'?globalThis:_0x509faa||self,_0x57808e(_0x509faa[_0x12761b(0x181)]={},_0x509faa[_0x12761b(0x159)],_0x509faa['UniverExchangeClient'],_0x509faa[_0x12761b(0x14d)]));}(this,function(_0x5109f7,_0x1c122f,_0x10f639,_0x3b9eed){'use strict';const _0x1ac4c8=_0x4f72;const _0x44b4dd={'id':_0x1ac4c8(0x15d),'type':_0x1c122f[_0x1ac4c8(0x143)]['OPERATION'],'handler':async _0x39b828=>(_0x39b828['get'](_0x10f639[_0x1ac4c8(0x151)])[_0x1ac4c8(0x17a)](),!0x0)},_0x1a7d40={'id':_0x1ac4c8(0x180),'type':_0x1c122f['CommandType'][_0x1ac4c8(0x157)],'handler':async _0x1015d1=>(_0x1015d1['get'](_0x10f639['IExchangeOperateService'])[_0x1ac4c8(0x153)](),!0x0)},_0x56c6f5=_0x1ac4c8(0x16c);function _0x9b154e(_0x25adf8){const _0x523a5e=_0x1ac4c8;return{'id':_0x56c6f5,'type':_0x3b9eed[_0x523a5e(0x15f)][_0x523a5e(0x168)],'icon':_0x523a5e(0x14c),'tooltip':_0x523a5e(0x167),'hidden$':_0x3b9eed[_0x523a5e(0x150)](_0x25adf8,_0x1c122f[_0x523a5e(0x186)][_0x523a5e(0x14b)])};}function _0x2f26ab(){const _0x56f861=_0x1ac4c8;return{'id':_0x44b4dd['id'],'type':_0x3b9eed[_0x56f861(0x15f)][_0x56f861(0x176)],'title':_0x56f861(0x166),'icon':'FolderSingle'};}function _0x58ac19(){const _0x348489=_0x1ac4c8;return{'id':_0x1a7d40['id'],'type':_0x3b9eed[_0x348489(0x15f)][_0x348489(0x176)],'title':_0x348489(0x187),'icon':'ExportSingle'};}const _0x49dc57={[_0x3b9eed['RibbonStartGroup'][_0x1ac4c8(0x152)]]:{[_0x56c6f5]:{'order':0x4,'menuItemFactory':_0x9b154e,[_0x44b4dd['id']]:{'order':0x0,'menuItemFactory':_0x2f26ab},[_0x1a7d40['id']]:{'order':0x1,'menuItemFactory':_0x58ac19}}}};var _0x993a47=Object['defineProperty'],_0x59dad1=Object['getOwnPropertyDescriptor'],_0x37cee7=(_0x2ba476,_0x33f3aa,_0x473eb2,_0x5c5920)=>{const _0x36af03=_0x1ac4c8;for(var _0x487396=_0x5c5920>0x1?void 0x0:_0x5c5920?_0x59dad1(_0x33f3aa,_0x473eb2):_0x33f3aa,_0x4a3447=_0x2ba476[_0x36af03(0x15e)]-0x1,_0x41d165;_0x4a3447>=0x0;_0x4a3447--)(_0x41d165=_0x2ba476[_0x4a3447])&&(_0x487396=(_0x5c5920?_0x41d165(_0x33f3aa,_0x473eb2,_0x487396):_0x41d165(_0x487396))||_0x487396);return _0x5c5920&&_0x487396&&_0x993a47(_0x33f3aa,_0x473eb2,_0x487396),_0x487396;},_0x30248a=(_0x196c29,_0x4450e7)=>(_0xf4ff1d,_0x1ef77b)=>_0x4450e7(_0xf4ff1d,_0x1ef77b,_0x196c29);let _0x1e4328=class extends _0x1c122f[_0x1ac4c8(0x149)]{constructor(_0x152088,_0x3f70be){const _0x54981f=_0x1ac4c8;super(),this[_0x54981f(0x14f)]=_0x152088,this[_0x54981f(0x170)]=_0x3f70be,this[_0x54981f(0x16f)](),this[_0x54981f(0x173)]();}[_0x1ac4c8(0x16f)](){const _0x2b9060=_0x1ac4c8;[_0x44b4dd,_0x1a7d40][_0x2b9060(0x185)](_0x4d96aa=>{const _0x336651=_0x2b9060;this[_0x336651(0x147)](this[_0x336651(0x14f)][_0x336651(0x177)](_0x4d96aa));});}[_0x1ac4c8(0x173)](){this['_menuManagerService']['mergeMenu'](_0x49dc57);}};_0x1e4328=_0x37cee7([_0x1c122f[_0x1ac4c8(0x178)](_0x1c122f[_0x1ac4c8(0x15a)][_0x1ac4c8(0x162)],_0x1e4328),_0x30248a(0x0,_0x1c122f[_0x1ac4c8(0x161)]),_0x30248a(0x1,_0x3b9eed[_0x1ac4c8(0x155)])],_0x1e4328);const _0xcaf436=_0x1ac4c8(0x174),_0x33f8bf={};var _0x3e5468=Object[_0x1ac4c8(0x164)],_0xd4f95=Object['getOwnPropertyDescriptor'],_0x522972=(_0x27bdeb,_0x498cff,_0x48de5f)=>_0x498cff in _0x27bdeb?_0x3e5468(_0x27bdeb,_0x498cff,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48de5f}):_0x27bdeb[_0x498cff]=_0x48de5f,_0x4e6604=(_0xf3cefd,_0x1b91ed,_0x590b36,_0x1bbbfb)=>{const _0x4f89aa=_0x1ac4c8;for(var _0x2bbadf=_0x1bbbfb>0x1?void 0x0:_0x1bbbfb?_0xd4f95(_0x1b91ed,_0x590b36):_0x1b91ed,_0x213967=_0xf3cefd[_0x4f89aa(0x15e)]-0x1,_0x597e1a;_0x213967>=0x0;_0x213967--)(_0x597e1a=_0xf3cefd[_0x213967])&&(_0x2bbadf=(_0x1bbbfb?_0x597e1a(_0x1b91ed,_0x590b36,_0x2bbadf):_0x597e1a(_0x2bbadf))||_0x2bbadf);return _0x1bbbfb&&_0x2bbadf&&_0x3e5468(_0x1b91ed,_0x590b36,_0x2bbadf),_0x2bbadf;},_0x4dbcef=(_0x148a0e,_0x43c55a)=>(_0x15ab28,_0xd79392)=>_0x43c55a(_0x15ab28,_0xd79392,_0x148a0e),_0x3f73aa=(_0x4cf4e7,_0x1efc66,_0x2df48f)=>_0x522972(_0x4cf4e7,typeof _0x1efc66!=_0x1ac4c8(0x16a)?_0x1efc66+'':_0x1efc66,_0x2df48f);const _0x71d4de=_0x1ac4c8(0x146);_0x5109f7['UniverDocsExchangeClientPlugin']=class extends _0x1c122f[_0x1ac4c8(0x16d)]{constructor(_0x1c9703=_0x33f8bf,_0x1b204a,_0x3662ad){const _0x52a507=_0x1ac4c8;super(),this[_0x52a507(0x15b)]=_0x1c9703,this[_0x52a507(0x154)]=_0x1b204a,this['_configService']=_0x3662ad;const {menu:_0x2d91c3,..._0x5d52a9}=this[_0x52a507(0x15b)];_0x2d91c3&&this[_0x52a507(0x14a)][_0x52a507(0x142)](_0x52a507(0x141),_0x2d91c3,{'merge':!0x0}),this[_0x52a507(0x14a)]['setConfig'](_0xcaf436,_0x5d52a9);}[_0x1ac4c8(0x158)](){const _0x37e5ab=_0x1ac4c8;[[_0x1e4328]]['forEach'](_0x2b73f7=>this['_injector'][_0x37e5ab(0x17d)](_0x2b73f7));}[_0x1ac4c8(0x182)](){const _0x2f6cc4=_0x1ac4c8;this[_0x2f6cc4(0x158)]();}},_0x3f73aa(_0x5109f7['UniverDocsExchangeClientPlugin'],_0x1ac4c8(0x171),_0x71d4de),_0x3f73aa(_0x5109f7[_0x1ac4c8(0x15c)],_0x1ac4c8(0x148),_0x1c122f[_0x1ac4c8(0x186)]['UNIVER_DOC']),_0x5109f7[_0x1ac4c8(0x15c)]=_0x4e6604([_0x1c122f[_0x1ac4c8(0x17e)](_0x10f639[_0x1ac4c8(0x188)]),_0x4dbcef(0x1,_0x1c122f[_0x1ac4c8(0x179)](_0x1c122f[_0x1ac4c8(0x160)])),_0x4dbcef(0x2,_0x1c122f[_0x1ac4c8(0x16b)])],_0x5109f7['UniverDocsExchangeClientPlugin']),_0x5109f7['ExportDOCXOperation']=_0x1a7d40,_0x5109f7['ImportDOCXOperation']=_0x44b4dd,Object[_0x1ac4c8(0x164)](_0x5109f7,Symbol[_0x1ac4c8(0x163)],{'value':'Module'});}));function _0x4f72(_0x7b4f33,_0x1efefb){const _0x1b270c=_0x1b27();return _0x4f72=function(_0x4f72fe,_0x3fdda8){_0x4f72fe=_0x4f72fe-0x141;let _0x21f1db=_0x1b270c[_0x4f72fe];return _0x21f1db;},_0x4f72(_0x7b4f33,_0x1efefb);}function _0x1b27(){const _0x211de1=['defineProperty','@univerjs/core','exchange.upload','exchange.file','SUBITEMS','10753197rInsHy','symbol','IConfigService','docs-exchange-client.operation.exchange','Plugin','@univerjs-pro/exchange-client','_initCommands','_menuManagerService','pluginName','@univerjs/ui','_initMenus','docs-exchange-client.config','11117760ytYrNw','BUTTON','registerCommand','OnLifecycle','Inject','importDOCXToUnitId','amd','454626uogeUl','add','DependentOn','object','exchange-client.operation.export-docx','UniverDocsExchangeClient','onReady','2cpIgep','2108418FyvLHN','forEach','UniverInstanceType','exchange.download','UniverExchangeClientPlugin','menu','setConfig','CommandType','2325652USJJiB','1649000fPuzGi','DOC_EXCHANGE_CLIENT_PLUGIN','disposeWithMe','type','Disposable','_configService','UNIVER_DOC','DirectExportSingle','UniverUi','636168UutyZX','_commandService','getMenuHiddenObservable','IExchangeOperateService','FILE','exportDOCXByUnitId','_injector','IMenuManagerService','function','OPERATION','initialize','UniverCore','LifecycleStages','_config','UniverDocsExchangeClientPlugin','exchange-client.operation.import-docx','length','MenuItemType','Injector','ICommandService','Ready','toStringTag'];_0x1b27=function(){return _0x211de1;};return _0x1b27();}
1
+ (function(_0x56d1ee,_0xb8a2f0){const _0x1e2f33=_0x5780,_0x492e8c=_0x56d1ee();while(!![]){try{const _0x43aa70=parseInt(_0x1e2f33(0x171))/0x1+-parseInt(_0x1e2f33(0x193))/0x2+-parseInt(_0x1e2f33(0x14b))/0x3+parseInt(_0x1e2f33(0x169))/0x4*(-parseInt(_0x1e2f33(0x17b))/0x5)+parseInt(_0x1e2f33(0x14c))/0x6+parseInt(_0x1e2f33(0x184))/0x7*(-parseInt(_0x1e2f33(0x15b))/0x8)+parseInt(_0x1e2f33(0x176))/0x9*(parseInt(_0x1e2f33(0x15a))/0xa);if(_0x43aa70===_0xb8a2f0)break;else _0x492e8c['push'](_0x492e8c['shift']());}catch(_0x374a50){_0x492e8c['push'](_0x492e8c['shift']());}}}(_0x4349,0xb47f7),function(_0x5dd49b,_0xa31afe){const _0x5a63da=_0x5780;typeof exports==_0x5a63da(0x155)&&typeof module<'u'?_0xa31afe(exports,require(_0x5a63da(0x153)),require('@univerjs-pro/exchange-client'),require(_0x5a63da(0x16b))):typeof define==_0x5a63da(0x185)&&define[_0x5a63da(0x172)]?define([_0x5a63da(0x177),_0x5a63da(0x153),_0x5a63da(0x187),_0x5a63da(0x16b)],_0xa31afe):(_0x5dd49b=typeof globalThis<'u'?globalThis:_0x5dd49b||self,_0xa31afe(_0x5dd49b['UniverDocsExchangeClient']={},_0x5dd49b[_0x5a63da(0x182)],_0x5dd49b['UniverExchangeClient'],_0x5dd49b[_0x5a63da(0x151)]));}(this,function(_0x192620,_0x4083c6,_0x5952b3,_0x41a158){'use strict';const _0x2346b8=_0x5780;const _0x8f4eb5={'id':_0x2346b8(0x189),'type':_0x4083c6['CommandType'][_0x2346b8(0x183)],'handler':async _0x2c1525=>(_0x2c1525[_0x2346b8(0x18f)](_0x5952b3['IExchangeOperateService'])[_0x2346b8(0x18d)](),!0x0)},_0x24f0d5={'id':'exchange-client.operation.export-docx','type':_0x4083c6['CommandType'][_0x2346b8(0x183)],'handler':async _0x136b79=>(_0x136b79[_0x2346b8(0x18f)](_0x5952b3[_0x2346b8(0x160)])[_0x2346b8(0x18b)](),!0x0)},_0x47165d=_0x2346b8(0x152);function _0x16b821(_0x12175e){const _0x31123c=_0x2346b8;return{'id':_0x47165d,'type':_0x41a158['MenuItemType'][_0x31123c(0x162)],'icon':_0x31123c(0x16d),'tooltip':_0x31123c(0x173),'hidden$':_0x41a158[_0x31123c(0x159)](_0x12175e,_0x4083c6[_0x31123c(0x154)][_0x31123c(0x15f)])};}function _0x48a4e4(){const _0x21898b=_0x2346b8;return{'id':_0x8f4eb5['id'],'type':_0x41a158[_0x21898b(0x16a)][_0x21898b(0x14e)],'title':_0x21898b(0x15e),'icon':'FolderSingle'};}function _0x52388d(){const _0xd5384e=_0x2346b8;return{'id':_0x24f0d5['id'],'type':_0x41a158[_0xd5384e(0x16a)]['BUTTON'],'title':_0xd5384e(0x16c),'icon':_0xd5384e(0x174)};}const _0x370b64={[_0x41a158[_0x2346b8(0x18e)][_0x2346b8(0x188)]]:{[_0x47165d]:{'order':0x4,'menuItemFactory':_0x16b821,[_0x8f4eb5['id']]:{'order':0x0,'menuItemFactory':_0x48a4e4},[_0x24f0d5['id']]:{'order':0x1,'menuItemFactory':_0x52388d}}}};var _0x28f222=Object[_0x2346b8(0x175)],_0x5dc40d=Object['getOwnPropertyDescriptor'],_0x1f2715=(_0x95e75e,_0x58f251,_0x27d1a0,_0x2a1432)=>{for(var _0x21f269=_0x2a1432>0x1?void 0x0:_0x2a1432?_0x5dc40d(_0x58f251,_0x27d1a0):_0x58f251,_0x3cc4a7=_0x95e75e['length']-0x1,_0x392be8;_0x3cc4a7>=0x0;_0x3cc4a7--)(_0x392be8=_0x95e75e[_0x3cc4a7])&&(_0x21f269=(_0x2a1432?_0x392be8(_0x58f251,_0x27d1a0,_0x21f269):_0x392be8(_0x21f269))||_0x21f269);return _0x2a1432&&_0x21f269&&_0x28f222(_0x58f251,_0x27d1a0,_0x21f269),_0x21f269;},_0x42b9d8=(_0x2837c3,_0x1e98a6)=>(_0x2031c3,_0x45236d)=>_0x1e98a6(_0x2031c3,_0x45236d,_0x2837c3);let _0xbbeb71=class extends _0x4083c6[_0x2346b8(0x168)]{constructor(_0x3a4b49,_0x408614){const _0x2d466f=_0x2346b8;super(),this['_commandService']=_0x3a4b49,this[_0x2d466f(0x166)]=_0x408614,this[_0x2d466f(0x18c)](),this[_0x2d466f(0x15c)]();}[_0x2346b8(0x18c)](){[_0x8f4eb5,_0x24f0d5]['forEach'](_0x2e0bb0=>{const _0x5994b3=_0x5780;this['disposeWithMe'](this[_0x5994b3(0x192)][_0x5994b3(0x16f)](_0x2e0bb0));});}['_initMenus'](){const _0x5cae1a=_0x2346b8;this[_0x5cae1a(0x166)][_0x5cae1a(0x179)](_0x370b64);}};_0xbbeb71=_0x1f2715([_0x4083c6[_0x2346b8(0x157)](_0x4083c6[_0x2346b8(0x167)]['Ready'],_0xbbeb71),_0x42b9d8(0x0,_0x4083c6[_0x2346b8(0x170)]),_0x42b9d8(0x1,_0x41a158[_0x2346b8(0x17e)])],_0xbbeb71);const _0x5932b2=_0x2346b8(0x181),_0x259851={};var _0x48b0a4=Object[_0x2346b8(0x175)],_0x587410=Object[_0x2346b8(0x17a)],_0x4f6395=(_0x243946,_0x33c5b7,_0x2e9cb4)=>_0x33c5b7 in _0x243946?_0x48b0a4(_0x243946,_0x33c5b7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2e9cb4}):_0x243946[_0x33c5b7]=_0x2e9cb4,_0x1ac550=(_0x4418d5,_0x13b310,_0x1e36ab,_0x3bf756)=>{const _0xe5d4a4=_0x2346b8;for(var _0x1c7b96=_0x3bf756>0x1?void 0x0:_0x3bf756?_0x587410(_0x13b310,_0x1e36ab):_0x13b310,_0x550a0c=_0x4418d5[_0xe5d4a4(0x178)]-0x1,_0x2f1a6a;_0x550a0c>=0x0;_0x550a0c--)(_0x2f1a6a=_0x4418d5[_0x550a0c])&&(_0x1c7b96=(_0x3bf756?_0x2f1a6a(_0x13b310,_0x1e36ab,_0x1c7b96):_0x2f1a6a(_0x1c7b96))||_0x1c7b96);return _0x3bf756&&_0x1c7b96&&_0x48b0a4(_0x13b310,_0x1e36ab,_0x1c7b96),_0x1c7b96;},_0xff38d9=(_0x591e22,_0x141a04)=>(_0x6a7b58,_0x102426)=>_0x141a04(_0x6a7b58,_0x102426,_0x591e22),_0x29beab=(_0x279cce,_0x2e2e30,_0x4a057e)=>_0x4f6395(_0x279cce,typeof _0x2e2e30!=_0x2346b8(0x186)?_0x2e2e30+'':_0x2e2e30,_0x4a057e);const _0x3f343b=_0x2346b8(0x158);_0x192620[_0x2346b8(0x16e)]=class extends _0x4083c6[_0x2346b8(0x156)]{constructor(_0x5258cd=_0x259851,_0x3fd530,_0x424949){const _0x2ce623=_0x2346b8;super(),this[_0x2ce623(0x14d)]=_0x5258cd,this[_0x2ce623(0x17c)]=_0x3fd530,this['_configService']=_0x424949;const {menu:_0xda6aef,..._0x336b13}=this[_0x2ce623(0x14d)];_0xda6aef&&this[_0x2ce623(0x17d)][_0x2ce623(0x165)](_0x2ce623(0x18a),_0xda6aef,{'merge':!0x0}),this[_0x2ce623(0x17d)][_0x2ce623(0x165)](_0x5932b2,_0x336b13);}[_0x2346b8(0x17f)](){const _0x11ec46=_0x2346b8;[[_0xbbeb71]]['forEach'](_0x384b7e=>this[_0x11ec46(0x17c)][_0x11ec46(0x150)](_0x384b7e));}['onReady'](){const _0x1e4266=_0x2346b8;this[_0x1e4266(0x17f)]();}},_0x29beab(_0x192620[_0x2346b8(0x16e)],_0x2346b8(0x14f),_0x3f343b),_0x29beab(_0x192620[_0x2346b8(0x16e)],'type',_0x4083c6[_0x2346b8(0x154)][_0x2346b8(0x15f)]),_0x192620[_0x2346b8(0x16e)]=_0x1ac550([_0x4083c6[_0x2346b8(0x180)](_0x5952b3[_0x2346b8(0x15d)]),_0xff38d9(0x1,_0x4083c6[_0x2346b8(0x161)](_0x4083c6[_0x2346b8(0x191)])),_0xff38d9(0x2,_0x4083c6['IConfigService'])],_0x192620[_0x2346b8(0x16e)]),_0x192620[_0x2346b8(0x190)]=_0x24f0d5,_0x192620[_0x2346b8(0x163)]=_0x8f4eb5,Object[_0x2346b8(0x175)](_0x192620,Symbol[_0x2346b8(0x164)],{'value':'Module'});}));function _0x5780(_0x298041,_0x2e9427){const _0x4349f5=_0x4349();return _0x5780=function(_0x5780ec,_0x3b7635){_0x5780ec=_0x5780ec-0x14b;let _0x5df40e=_0x4349f5[_0x5780ec];return _0x5df40e;},_0x5780(_0x298041,_0x2e9427);}function _0x4349(){const _0x4f0301=['3232435qXRNlu','_injector','_configService','IMenuManagerService','initialize','DependentOn','docs-exchange-client.config','UniverCore','OPERATION','3815546hazXqc','function','symbol','@univerjs-pro/exchange-client','FILE','exchange-client.operation.import-docx','menu','exportDOCXByUnitId','_initCommands','importDOCXToUnitId','RibbonStartGroup','get','ExportDOCXOperation','Injector','_commandService','244884BFdOLZ','2315604fYreMR','731736OxmAKq','_config','BUTTON','pluginName','add','UniverUi','docs-exchange-client.operation.exchange','@univerjs/core','UniverInstanceType','object','Plugin','OnLifecycle','DOC_EXCHANGE_CLIENT_PLUGIN','getMenuHiddenObservable','598340iwkZgw','16RwFUQU','_initMenus','UniverExchangeClientPlugin','exchange.upload','UNIVER_DOC','IExchangeOperateService','Inject','SUBITEMS','ImportDOCXOperation','toStringTag','setConfig','_menuManagerService','LifecycleStages','Disposable','8eOMLuU','MenuItemType','@univerjs/ui','exchange.download','DirectExportSingle','UniverDocsExchangeClientPlugin','registerCommand','ICommandService','1082605FLUibl','amd','exchange.file','ExportSingle','defineProperty','423pCXiyK','exports','length','mergeMenu','getOwnPropertyDescriptor'];_0x4349=function(){return _0x4f0301;};return _0x4349();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/docs-exchange-client",
3
- "version": "0.2.15",
3
+ "version": "0.3.0-alpha.1",
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.15",
47
- "@univerjs/core": "0.2.15",
48
- "@univerjs/ui": "0.2.15"
46
+ "@univerjs-pro/exchange-client": "0.3.0-alpha.1",
47
+ "@univerjs/ui": "0.3.0-alpha.1",
48
+ "@univerjs/core": "0.3.0-alpha.1"
49
49
  },
50
50
  "dependencies": {
51
51
  "@univerjs/icons": "^0.1.78",
52
52
  "pako": "^2.1.0",
53
- "@univerjs-pro/exchange-client": "0.2.15",
54
- "@univerjs/core": "0.2.15",
55
- "@univerjs/docs": "0.2.15",
56
- "@univerjs/docs-ui": "0.2.15",
57
- "@univerjs/protocol": "0.1.39-alpha.15"
53
+ "@univerjs-pro/exchange-client": "0.3.0-alpha.1",
54
+ "@univerjs/core": "0.3.0-alpha.1",
55
+ "@univerjs/protocol": "0.1.39-alpha.22",
56
+ "@univerjs/docs": "0.3.0-alpha.1",
57
+ "@univerjs/docs-ui": "0.3.0-alpha.1"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@types/pako": "^2.0.3",
61
61
  "less": "^4.2.0",
62
62
  "rxjs": "^7.8.1",
63
63
  "typescript": "^5.6.2",
64
- "vite": "^5.4.5",
65
- "vitest": "^2.1.0",
66
- "@univerjs-infra/shared": "0.2.15"
64
+ "vite": "^5.4.8",
65
+ "vitest": "^2.1.1",
66
+ "@univerjs-infra/shared": "0.3.0-alpha.1"
67
67
  },
68
68
  "univerSpace": {
69
69
  ".": {