@univerjs-pro/docs-exchange-client 0.9.3 → 0.9.4-nightly.202507290757
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 +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +6 -6
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x1d3120=_0x5575;(function(_0x153b8b,_0x11fe36){var _0x54a31b=_0x5575,_0x1e0632=_0x153b8b();while(!![]){try{var _0x11f6b7=-parseInt(_0x54a31b(0x161))/0x1+parseInt(_0x54a31b(0x153))/0x2+parseInt(_0x54a31b(0x136))/0x3+-parseInt(_0x54a31b(0x12e))/0x4+parseInt(_0x54a31b(0x13e))/0x5+parseInt(_0x54a31b(0x143))/0x6*(-parseInt(_0x54a31b(0x148))/0x7)+parseInt(_0x54a31b(0x140))/0x8;if(_0x11f6b7===_0x11fe36)break;else _0x1e0632['push'](_0x1e0632['shift']());}catch(_0x475435){_0x1e0632['push'](_0x1e0632['shift']());}}}(_0x2e9a,0x21999));Object[_0x1d3120(0x15f)](exports,Symbol[_0x1d3120(0x159)],{'value':'Module'});const d=require('@univerjs-pro/exchange-client'),i=require('@univerjs/core'),a=require('@univerjs/ui'),I=_0x1d3120(0x139),l={},p={'id':_0x1d3120(0x151),'type':i[_0x1d3120(0x14f)][_0x1d3120(0x14d)],'handler':async _0x3a1ef0=>(_0x3a1ef0[_0x1d3120(0x130)](d[_0x1d3120(0x164)])['importDOCXToUnitId'](),!0x0)},g={'id':_0x1d3120(0x14e),'type':i[_0x1d3120(0x14f)][_0x1d3120(0x14d)],'handler':async _0x231c14=>(_0x231c14[_0x1d3120(0x130)](d['IExchangeOperateService'])[_0x1d3120(0x155)](),!0x0)},h=_0x1d3120(0x12f);function v(_0x599716){var _0x49c249=_0x1d3120;return{'id':h,'type':a[_0x49c249(0x141)]['SUBITEMS'],'icon':_0x49c249(0x13f),'tooltip':_0x49c249(0x165),'hidden$':a[_0x49c249(0x145)](_0x599716,i[_0x49c249(0x13c)][_0x49c249(0x157)])};}function O(){var _0x3cdf7b=_0x1d3120;return{'id':p['id'],'type':a[_0x3cdf7b(0x141)][_0x3cdf7b(0x13b)],'title':'exchange.upload','icon':'FolderIcon'};}function E(){var _0xb355ef=_0x1d3120;return{'id':g['id'],'type':a['MenuItemType'][_0xb355ef(0x13b)],'title':_0xb355ef(0x14c),'icon':_0xb355ef(0x144)};}const x={[a[_0x1d3120(0x163)][_0x1d3120(0x12a)]]:{[h]:{'order':0.3,'menuItemFactory':v,[p['id']]:{'order':0x0,'menuItemFactory':O},[g['id']]:{'order':0x1,'menuItemFactory':E}}}};var D=Object['getOwnPropertyDescriptor'],f=(_0x4e741d,_0x59b944,_0x5867be,_0x5e1d34)=>{for(var _0x126b24=_0x5e1d34>0x1?void 0x0:_0x5e1d34?D(_0x59b944,_0x5867be):_0x59b944,_0x3f7932=_0x4e741d['length']-0x1,_0x46b473;_0x3f7932>=0x0;_0x3f7932--)(_0x46b473=_0x4e741d[_0x3f7932])&&(_0x126b24=_0x46b473(_0x126b24)||_0x126b24);return _0x126b24;},_=(_0x498a6b,_0x586fd7)=>(_0x3fe1f7,_0xae81d4)=>_0x586fd7(_0x3fe1f7,_0xae81d4,_0x498a6b);function _0x5575(_0x31b13a,_0x115887){var _0x2e9a41=_0x2e9a();return _0x5575=function(_0x557574,_0x4c49dc){_0x557574=_0x557574-0x12a;var _0x482dd6=_0x2e9a41[_0x557574];return _0x482dd6;},_0x5575(_0x31b13a,_0x115887);}let u=class extends i[_0x1d3120(0x13d)]{constructor(_0x33dea2,_0xde7f6){var _0x297bcc=_0x1d3120;super(),this[_0x297bcc(0x131)]=_0x33dea2,this[_0x297bcc(0x156)]=_0xde7f6,this['_initCommands'](),this[_0x297bcc(0x12b)]();}[_0x1d3120(0x13a)](){var _0x30d79a=_0x1d3120;[p,g][_0x30d79a(0x147)](_0x11fc88=>{var _0x3471d8=_0x30d79a;this['disposeWithMe'](this[_0x3471d8(0x131)][_0x3471d8(0x160)](_0x11fc88));});}[_0x1d3120(0x12b)](){var _0xe8ad8e=_0x1d3120;this['_menuManagerService'][_0xe8ad8e(0x15e)](x);}};u=f([_(0x0,i[_0x1d3120(0x134)]),_(0x1,a[_0x1d3120(0x133)])],u);var y=Object[_0x1d3120(0x15f)],S=Object[_0x1d3120(0x158)],P=(_0x25add6,_0x1db857,_0x7858d2)=>_0x1db857 in _0x25add6?y(_0x25add6,_0x1db857,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x7858d2}):_0x25add6[_0x1db857]=_0x7858d2,T=(_0x520c8e,_0x57a712,_0x4d5308,_0x1b5479)=>{for(var _0x469d97=_0x1b5479>0x1?void 0x0:_0x1b5479?S(_0x57a712,_0x4d5308):_0x57a712,_0x485dc3=_0x520c8e['length']-0x1,_0x47b083;_0x485dc3>=0x0;_0x485dc3--)(_0x47b083=_0x520c8e[_0x485dc3])&&(_0x469d97=_0x47b083(_0x469d97)||_0x469d97);return _0x469d97;},m=(_0x394bbe,_0x584f5b)=>(_0x125cc1,_0x13eb0a)=>_0x584f5b(_0x125cc1,_0x13eb0a,_0x394bbe),C=(_0x2c1368,_0x3134b9,_0x4b77cf)=>P(_0x2c1368,typeof _0x3134b9!=_0x1d3120(0x12d)?_0x3134b9+'':_0x3134b9,_0x4b77cf);const U=_0x1d3120(0x12c);function _0x2e9a(){var _0x5a5568=['2452112ixyfvk','MenuItemType','_config','12FLgARs','ExportIcon','getMenuHiddenObservable','_configService','forEach','421897wXEZkN','Inject','menu','UniverExchangeClientPlugin','exchange.download','OPERATION','exchange-client.operation.export-docx','CommandType','ImportDOCXOperation','exchange-client.operation.import-docx','merge','2726ZGWCYO','_injector','exportDOCXByUnitId','_menuManagerService','UNIVER_DOC','getOwnPropertyDescriptor','toStringTag','onStarting','Plugin','type','onReady','mergeMenu','defineProperty','registerCommand','88494MtRvcl','IConfigService','RibbonStartGroup','IExchangeOperateService','exchange.file','OTHERS','_initMenus','DOC_EXCHANGE_CLIENT_PLUGIN','symbol','1012192jbcJaf','docs-exchange-client.operation.exchange','get','_commandService','Injector','IMenuManagerService','ICommandService','ExportDOCXOperation','607842VYzTKX','UniverDocsExchangeClientPlugin','setConfig','docs-exchange-client.config','_initCommands','BUTTON','UniverInstanceType','Disposable','446090HgRtDM','DirectExportIcon'];_0x2e9a=function(){return _0x5a5568;};return _0x2e9a();}exports[_0x1d3120(0x137)]=class extends i[_0x1d3120(0x15b)]{constructor(_0x5e1fd1=l,_0x2c5092,_0x480aaf){var _0x3f8716=_0x1d3120;super(),this[_0x3f8716(0x142)]=_0x5e1fd1,this[_0x3f8716(0x154)]=_0x2c5092,this['_configService']=_0x480aaf;const {menu:_0x3d34ac,..._0x1bb4f4}=i[_0x3f8716(0x152)]({},l,this[_0x3f8716(0x142)]);_0x3d34ac&&this[_0x3f8716(0x146)][_0x3f8716(0x138)](_0x3f8716(0x14a),_0x3d34ac,{'merge':!0x0}),this[_0x3f8716(0x146)][_0x3f8716(0x138)](I,_0x1bb4f4);}[_0x1d3120(0x15a)](){var _0x3afb36=_0x1d3120;[[u]]['forEach'](_0xfd3d9e=>this[_0x3afb36(0x154)]['add'](_0xfd3d9e));}[_0x1d3120(0x15d)](){var _0x5cca2a=_0x1d3120;this['_injector'][_0x5cca2a(0x130)](u);}},C(exports[_0x1d3120(0x137)],'pluginName',U),C(exports[_0x1d3120(0x137)],_0x1d3120(0x15c),i[_0x1d3120(0x13c)][_0x1d3120(0x157)]),exports[_0x1d3120(0x137)]=T([i['DependentOn'](d[_0x1d3120(0x14b)]),m(0x1,i[_0x1d3120(0x149)](i[_0x1d3120(0x132)])),m(0x2,i[_0x1d3120(0x162)])],exports[_0x1d3120(0x137)]),exports[_0x1d3120(0x135)]=g,exports[_0x1d3120(0x150)]=p;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x152fc4=_0x508f;function _0x40e1(){var _0x23583a=['getOwnPropertyDescriptor','add','setConfig','657fspHvu','exchange.file','4624155darLzl','length','2jDyWLl','_commandService','444688VnCXBI','3828370tijWob','DOC_EXCHANGE_CLIENT_PLUGIN','ExportIcon','docs-exchange-client.operation.exchange','_configService','exchange.download','OPERATION','forEach','3461754LcXzKJ','_initMenus','symbol','2995004nFDooz','SUBITEMS','onReady','216770xaYeJZ','pluginName','disposeWithMe','DirectExportIcon','docs-exchange-client.config','2691717ydAfqN','_initCommands','_menuManagerService','_config','onStarting','exchange.upload','UNIVER_DOC','menu','exchange-client.operation.export-docx','_injector','registerCommand','exportDOCXByUnitId','get','defineProperty'];_0x40e1=function(){return _0x23583a;};return _0x40e1();}(function(_0x5796ad,_0x1e102c){var _0x1e7d0b=_0x508f,_0x7709ea=_0x5796ad();while(!![]){try{var _0x4b360d=parseInt(_0x1e7d0b(0x151))/0x1+parseInt(_0x1e7d0b(0x140))/0x2*(-parseInt(_0x1e7d0b(0x156))/0x3)+-parseInt(_0x1e7d0b(0x14e))/0x4+-parseInt(_0x1e7d0b(0x13e))/0x5+-parseInt(_0x1e7d0b(0x14b))/0x6+-parseInt(_0x1e7d0b(0x143))/0x7+-parseInt(_0x1e7d0b(0x142))/0x8*(-parseInt(_0x1e7d0b(0x13c))/0x9);if(_0x4b360d===_0x1e102c)break;else _0x7709ea['push'](_0x7709ea['shift']());}catch(_0xb9c779){_0x7709ea['push'](_0x7709ea['shift']());}}}(_0x40e1,0x8d912));import{IExchangeOperateService as _0x36a8c9,UniverExchangeClientPlugin as _0x30eedb}from'@univerjs-pro/exchange-client';import{CommandType as _0x5b0717,UniverInstanceType as _0x3fccc7,Disposable as _0x37e784,ICommandService as _0x42eab5,DependentOn as _0x5bac55,Inject as _0x12dbb5,Injector as _0x12dc89,IConfigService as _0x2a2569,Plugin as _0x4d3a75,merge as _0x4a17e6}from'@univerjs/core';import{MenuItemType as _0x5b3663,getMenuHiddenObservable as _0x1b4ba1,RibbonStartGroup as _0x5ddfe9,IMenuManagerService as _0x1a3855}from'@univerjs/ui';const b=_0x152fc4(0x155),m={},d={'id':'exchange-client.operation.import-docx','type':_0x5b0717[_0x152fc4(0x149)],'handler':async _0x1b3f6a=>(_0x1b3f6a[_0x152fc4(0x137)](_0x36a8c9)['importDOCXToUnitId'](),!0x0)},_={'id':_0x152fc4(0x133),'type':_0x5b0717[_0x152fc4(0x149)],'handler':async _0x871679=>(_0x871679[_0x152fc4(0x137)](_0x36a8c9)[_0x152fc4(0x136)](),!0x0)},C=_0x152fc4(0x146);function X(_0x81ee72){var _0x3ed4bb=_0x152fc4;return{'id':C,'type':_0x5b3663[_0x3ed4bb(0x14f)],'icon':_0x3ed4bb(0x154),'tooltip':_0x3ed4bb(0x13d),'hidden$':_0x1b4ba1(_0x81ee72,_0x3fccc7[_0x3ed4bb(0x131)])};}function F(){var _0x2c5a17=_0x152fc4;return{'id':d['id'],'type':_0x5b3663['BUTTON'],'title':_0x2c5a17(0x130),'icon':'FolderIcon'};}function G(){var _0x5a69e5=_0x152fc4;return{'id':_['id'],'type':_0x5b3663['BUTTON'],'title':_0x5a69e5(0x148),'icon':_0x5a69e5(0x145)};}const R={[_0x5ddfe9['OTHERS']]:{[C]:{'order':0.3,'menuItemFactory':X,[d['id']]:{'order':0x0,'menuItemFactory':F},[_['id']]:{'order':0x1,'menuItemFactory':G}}}};var A=Object[_0x152fc4(0x139)],j=(_0x4cabd3,_0x554eb5,_0x2f3cf3,_0x9cacd1)=>{for(var _0x3aeed9=_0x9cacd1>0x1?void 0x0:_0x9cacd1?A(_0x554eb5,_0x2f3cf3):_0x554eb5,_0x53d571=_0x4cabd3['length']-0x1,_0x1d1432;_0x53d571>=0x0;_0x53d571--)(_0x1d1432=_0x4cabd3[_0x53d571])&&(_0x3aeed9=_0x1d1432(_0x3aeed9)||_0x3aeed9);return _0x3aeed9;},u=(_0x125365,_0x59b679)=>(_0x4d58f5,_0x284627)=>_0x59b679(_0x4d58f5,_0x284627,_0x125365);function _0x508f(_0x32590d,_0x3043b1){var _0x40e1ae=_0x40e1();return _0x508f=function(_0x508fcf,_0x246165){_0x508fcf=_0x508fcf-0x12f;var _0x556d0c=_0x40e1ae[_0x508fcf];return _0x556d0c;},_0x508f(_0x32590d,_0x3043b1);}let a=class extends _0x37e784{constructor(_0x53fd3e,_0x1fe364){var _0x5e8a0a=_0x152fc4;super(),this[_0x5e8a0a(0x141)]=_0x53fd3e,this[_0x5e8a0a(0x158)]=_0x1fe364,this[_0x5e8a0a(0x157)](),this[_0x5e8a0a(0x14c)]();}[_0x152fc4(0x157)](){[d,_]['forEach'](_0x4f0061=>{var _0x53f5a2=_0x508f;this[_0x53f5a2(0x153)](this[_0x53f5a2(0x141)][_0x53f5a2(0x135)](_0x4f0061));});}[_0x152fc4(0x14c)](){var _0x507556=_0x152fc4;this[_0x507556(0x158)]['mergeMenu'](R);}};a=j([u(0x0,_0x42eab5),u(0x1,_0x1a3855)],a);var w=Object[_0x152fc4(0x138)],H=Object['getOwnPropertyDescriptor'],L=(_0x4c5910,_0x253d21,_0x49421c)=>_0x253d21 in _0x4c5910?w(_0x4c5910,_0x253d21,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49421c}):_0x4c5910[_0x253d21]=_0x49421c,B=(_0x532a9e,_0x2ac05a,_0x472273,_0x568c15)=>{var _0x46b7f3=_0x152fc4;for(var _0x3191a5=_0x568c15>0x1?void 0x0:_0x568c15?H(_0x2ac05a,_0x472273):_0x2ac05a,_0x520d7b=_0x532a9e[_0x46b7f3(0x13f)]-0x1,_0x528df3;_0x520d7b>=0x0;_0x520d7b--)(_0x528df3=_0x532a9e[_0x520d7b])&&(_0x3191a5=_0x528df3(_0x3191a5)||_0x3191a5);return _0x3191a5;},g=(_0x202e2d,_0x3f5bdc)=>(_0x4c03fb,_0x281a0f)=>_0x3f5bdc(_0x4c03fb,_0x281a0f,_0x202e2d),O=(_0x40a55d,_0x2db114,_0x1c95e8)=>L(_0x40a55d,typeof _0x2db114!=_0x152fc4(0x14d)?_0x2db114+'':_0x2db114,_0x1c95e8);const $=_0x152fc4(0x144);let s=class extends _0x4d3a75{constructor(_0x51b931=m,_0x4b696c,_0x44f684){var _0x2d7c72=_0x152fc4;super(),this[_0x2d7c72(0x159)]=_0x51b931,this[_0x2d7c72(0x134)]=_0x4b696c,this['_configService']=_0x44f684;const {menu:_0xcd9f03,..._0x37f380}=_0x4a17e6({},m,this[_0x2d7c72(0x159)]);_0xcd9f03&&this[_0x2d7c72(0x147)][_0x2d7c72(0x13b)](_0x2d7c72(0x132),_0xcd9f03,{'merge':!0x0}),this[_0x2d7c72(0x147)]['setConfig'](b,_0x37f380);}[_0x152fc4(0x12f)](){var _0x15e09=_0x152fc4;[[a]][_0x15e09(0x14a)](_0x10ffb5=>this[_0x15e09(0x134)][_0x15e09(0x13a)](_0x10ffb5));}[_0x152fc4(0x150)](){var _0x1d5577=_0x152fc4;this[_0x1d5577(0x134)][_0x1d5577(0x137)](a);}};O(s,_0x152fc4(0x152),$),O(s,'type',_0x3fccc7[_0x152fc4(0x131)]),s=B([_0x5bac55(_0x30eedb),g(0x1,_0x12dbb5(_0x12dc89)),g(0x2,_0x2a2569)],s);export{_ as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x152fc4=_0x508f;function _0x40e1(){var _0x23583a=['getOwnPropertyDescriptor','add','setConfig','657fspHvu','exchange.file','4624155darLzl','length','2jDyWLl','_commandService','444688VnCXBI','3828370tijWob','DOC_EXCHANGE_CLIENT_PLUGIN','ExportIcon','docs-exchange-client.operation.exchange','_configService','exchange.download','OPERATION','forEach','3461754LcXzKJ','_initMenus','symbol','2995004nFDooz','SUBITEMS','onReady','216770xaYeJZ','pluginName','disposeWithMe','DirectExportIcon','docs-exchange-client.config','2691717ydAfqN','_initCommands','_menuManagerService','_config','onStarting','exchange.upload','UNIVER_DOC','menu','exchange-client.operation.export-docx','_injector','registerCommand','exportDOCXByUnitId','get','defineProperty'];_0x40e1=function(){return _0x23583a;};return _0x40e1();}(function(_0x5796ad,_0x1e102c){var _0x1e7d0b=_0x508f,_0x7709ea=_0x5796ad();while(!![]){try{var _0x4b360d=parseInt(_0x1e7d0b(0x151))/0x1+parseInt(_0x1e7d0b(0x140))/0x2*(-parseInt(_0x1e7d0b(0x156))/0x3)+-parseInt(_0x1e7d0b(0x14e))/0x4+-parseInt(_0x1e7d0b(0x13e))/0x5+-parseInt(_0x1e7d0b(0x14b))/0x6+-parseInt(_0x1e7d0b(0x143))/0x7+-parseInt(_0x1e7d0b(0x142))/0x8*(-parseInt(_0x1e7d0b(0x13c))/0x9);if(_0x4b360d===_0x1e102c)break;else _0x7709ea['push'](_0x7709ea['shift']());}catch(_0xb9c779){_0x7709ea['push'](_0x7709ea['shift']());}}}(_0x40e1,0x8d912));import{IExchangeOperateService as _0x36a8c9,UniverExchangeClientPlugin as _0x30eedb}from'@univerjs-pro/exchange-client';import{CommandType as _0x5b0717,UniverInstanceType as _0x3fccc7,Disposable as _0x37e784,ICommandService as _0x42eab5,DependentOn as _0x5bac55,Inject as _0x12dbb5,Injector as _0x12dc89,IConfigService as _0x2a2569,Plugin as _0x4d3a75,merge as _0x4a17e6}from'@univerjs/core';import{MenuItemType as _0x5b3663,getMenuHiddenObservable as _0x1b4ba1,RibbonStartGroup as _0x5ddfe9,IMenuManagerService as _0x1a3855}from'@univerjs/ui';const b=_0x152fc4(0x155),m={},d={'id':'exchange-client.operation.import-docx','type':_0x5b0717[_0x152fc4(0x149)],'handler':async _0x1b3f6a=>(_0x1b3f6a[_0x152fc4(0x137)](_0x36a8c9)['importDOCXToUnitId'](),!0x0)},_={'id':_0x152fc4(0x133),'type':_0x5b0717[_0x152fc4(0x149)],'handler':async _0x871679=>(_0x871679[_0x152fc4(0x137)](_0x36a8c9)[_0x152fc4(0x136)](),!0x0)},C=_0x152fc4(0x146);function X(_0x81ee72){var _0x3ed4bb=_0x152fc4;return{'id':C,'type':_0x5b3663[_0x3ed4bb(0x14f)],'icon':_0x3ed4bb(0x154),'tooltip':_0x3ed4bb(0x13d),'hidden$':_0x1b4ba1(_0x81ee72,_0x3fccc7[_0x3ed4bb(0x131)])};}function F(){var _0x2c5a17=_0x152fc4;return{'id':d['id'],'type':_0x5b3663['BUTTON'],'title':_0x2c5a17(0x130),'icon':'FolderIcon'};}function G(){var _0x5a69e5=_0x152fc4;return{'id':_['id'],'type':_0x5b3663['BUTTON'],'title':_0x5a69e5(0x148),'icon':_0x5a69e5(0x145)};}const R={[_0x5ddfe9['OTHERS']]:{[C]:{'order':0.3,'menuItemFactory':X,[d['id']]:{'order':0x0,'menuItemFactory':F},[_['id']]:{'order':0x1,'menuItemFactory':G}}}};var A=Object[_0x152fc4(0x139)],j=(_0x4cabd3,_0x554eb5,_0x2f3cf3,_0x9cacd1)=>{for(var _0x3aeed9=_0x9cacd1>0x1?void 0x0:_0x9cacd1?A(_0x554eb5,_0x2f3cf3):_0x554eb5,_0x53d571=_0x4cabd3['length']-0x1,_0x1d1432;_0x53d571>=0x0;_0x53d571--)(_0x1d1432=_0x4cabd3[_0x53d571])&&(_0x3aeed9=_0x1d1432(_0x3aeed9)||_0x3aeed9);return _0x3aeed9;},u=(_0x125365,_0x59b679)=>(_0x4d58f5,_0x284627)=>_0x59b679(_0x4d58f5,_0x284627,_0x125365);function _0x508f(_0x32590d,_0x3043b1){var _0x40e1ae=_0x40e1();return _0x508f=function(_0x508fcf,_0x246165){_0x508fcf=_0x508fcf-0x12f;var _0x556d0c=_0x40e1ae[_0x508fcf];return _0x556d0c;},_0x508f(_0x32590d,_0x3043b1);}let a=class extends _0x37e784{constructor(_0x53fd3e,_0x1fe364){var _0x5e8a0a=_0x152fc4;super(),this[_0x5e8a0a(0x141)]=_0x53fd3e,this[_0x5e8a0a(0x158)]=_0x1fe364,this[_0x5e8a0a(0x157)](),this[_0x5e8a0a(0x14c)]();}[_0x152fc4(0x157)](){[d,_]['forEach'](_0x4f0061=>{var _0x53f5a2=_0x508f;this[_0x53f5a2(0x153)](this[_0x53f5a2(0x141)][_0x53f5a2(0x135)](_0x4f0061));});}[_0x152fc4(0x14c)](){var _0x507556=_0x152fc4;this[_0x507556(0x158)]['mergeMenu'](R);}};a=j([u(0x0,_0x42eab5),u(0x1,_0x1a3855)],a);var w=Object[_0x152fc4(0x138)],H=Object['getOwnPropertyDescriptor'],L=(_0x4c5910,_0x253d21,_0x49421c)=>_0x253d21 in _0x4c5910?w(_0x4c5910,_0x253d21,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49421c}):_0x4c5910[_0x253d21]=_0x49421c,B=(_0x532a9e,_0x2ac05a,_0x472273,_0x568c15)=>{var _0x46b7f3=_0x152fc4;for(var _0x3191a5=_0x568c15>0x1?void 0x0:_0x568c15?H(_0x2ac05a,_0x472273):_0x2ac05a,_0x520d7b=_0x532a9e[_0x46b7f3(0x13f)]-0x1,_0x528df3;_0x520d7b>=0x0;_0x520d7b--)(_0x528df3=_0x532a9e[_0x520d7b])&&(_0x3191a5=_0x528df3(_0x3191a5)||_0x3191a5);return _0x3191a5;},g=(_0x202e2d,_0x3f5bdc)=>(_0x4c03fb,_0x281a0f)=>_0x3f5bdc(_0x4c03fb,_0x281a0f,_0x202e2d),O=(_0x40a55d,_0x2db114,_0x1c95e8)=>L(_0x40a55d,typeof _0x2db114!=_0x152fc4(0x14d)?_0x2db114+'':_0x2db114,_0x1c95e8);const $=_0x152fc4(0x144);let s=class extends _0x4d3a75{constructor(_0x51b931=m,_0x4b696c,_0x44f684){var _0x2d7c72=_0x152fc4;super(),this[_0x2d7c72(0x159)]=_0x51b931,this[_0x2d7c72(0x134)]=_0x4b696c,this['_configService']=_0x44f684;const {menu:_0xcd9f03,..._0x37f380}=_0x4a17e6({},m,this[_0x2d7c72(0x159)]);_0xcd9f03&&this[_0x2d7c72(0x147)][_0x2d7c72(0x13b)](_0x2d7c72(0x132),_0xcd9f03,{'merge':!0x0}),this[_0x2d7c72(0x147)]['setConfig'](b,_0x37f380);}[_0x152fc4(0x12f)](){var _0x15e09=_0x152fc4;[[a]][_0x15e09(0x14a)](_0x10ffb5=>this[_0x15e09(0x134)][_0x15e09(0x13a)](_0x10ffb5));}[_0x152fc4(0x150)](){var _0x1d5577=_0x152fc4;this[_0x1d5577(0x134)][_0x1d5577(0x137)](a);}};O(s,_0x152fc4(0x152),$),O(s,'type',_0x3fccc7[_0x152fc4(0x131)]),s=B([_0x5bac55(_0x30eedb),g(0x1,_0x12dbb5(_0x12dc89)),g(0x2,_0x2a2569)],s);export{_ as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x57d8(_0x260c33,_0x3bb19f){var _0x399ee2=_0x399e();return _0x57d8=function(_0x57d8b0,_0x1abff2){_0x57d8b0=_0x57d8b0-0x199;var _0x89b32c=_0x399ee2[_0x57d8b0];return _0x89b32c;},_0x57d8(_0x260c33,_0x3bb19f);}(function(_0x321c27,_0x225178){var _0x148ff9=_0x57d8,_0x4a88bb=_0x321c27();while(!![]){try{var _0x4e96a9=parseInt(_0x148ff9(0x1a3))/0x1*(-parseInt(_0x148ff9(0x1a5))/0x2)+parseInt(_0x148ff9(0x1ac))/0x3*(parseInt(_0x148ff9(0x1a9))/0x4)+parseInt(_0x148ff9(0x1b4))/0x5*(-parseInt(_0x148ff9(0x1c5))/0x6)+parseInt(_0x148ff9(0x1bb))/0x7*(parseInt(_0x148ff9(0x1b7))/0x8)+-parseInt(_0x148ff9(0x1a6))/0x9*(-parseInt(_0x148ff9(0x1a0))/0xa)+-parseInt(_0x148ff9(0x1b2))/0xb*(parseInt(_0x148ff9(0x19e))/0xc)+-parseInt(_0x148ff9(0x1a1))/0xd*(-parseInt(_0x148ff9(0x199))/0xe);if(_0x4e96a9===_0x225178)break;else _0x4a88bb['push'](_0x4a88bb['shift']());}catch(_0x187874){_0x4a88bb['push'](_0x4a88bb['shift']());}}}(_0x399e,0x472a9),function(_0x3a063a,_0x3056c9){var _0x3b3c65=_0x57d8;typeof exports==_0x3b3c65(0x1da)&&typeof module<'u'?_0x3056c9(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui')):typeof define=='function'&&define['amd']?define([_0x3b3c65(0x19c),_0x3b3c65(0x1af),_0x3b3c65(0x1d2),_0x3b3c65(0x1aa)],_0x3056c9):(_0x3a063a=typeof globalThis<'u'?globalThis:_0x3a063a||self,_0x3056c9(_0x3a063a[_0x3b3c65(0x1cf)]={},_0x3a063a[_0x3b3c65(0x1dd)],_0x3a063a[_0x3b3c65(0x1d5)],_0x3a063a[_0x3b3c65(0x1b0)]));}(this,function(_0x1670cf,_0x1fc719,_0x4b2bc1,_0x598718){'use strict';var _0x5d0760=_0x57d8;const _0x442aca=_0x5d0760(0x1c3),_0x15441b={},_0x40ebe6={'id':_0x5d0760(0x1bc),'type':_0x4b2bc1[_0x5d0760(0x1b3)][_0x5d0760(0x1a8)],'handler':async _0x6edaf7=>(_0x6edaf7[_0x5d0760(0x1d9)](_0x1fc719[_0x5d0760(0x19a)])['importDOCXToUnitId'](),!0x0)},_0xa7224f={'id':_0x5d0760(0x19b),'type':_0x4b2bc1[_0x5d0760(0x1b3)]['OPERATION'],'handler':async _0x53c37b=>(_0x53c37b[_0x5d0760(0x1d9)](_0x1fc719[_0x5d0760(0x19a)])['exportDOCXByUnitId'](),!0x0)},_0x337857=_0x5d0760(0x1d0);function _0x400a3f(_0xd31f35){var _0x2e0fc1=_0x5d0760;return{'id':_0x337857,'type':_0x598718[_0x2e0fc1(0x1d8)]['SUBITEMS'],'icon':_0x2e0fc1(0x1b9),'tooltip':'exchange.file','hidden$':_0x598718[_0x2e0fc1(0x1c0)](_0xd31f35,_0x4b2bc1[_0x2e0fc1(0x1d7)]['UNIVER_DOC'])};}function _0x230a6c(){var _0x205779=_0x5d0760;return{'id':_0x40ebe6['id'],'type':_0x598718[_0x205779(0x1d8)][_0x205779(0x1c9)],'title':_0x205779(0x1d6),'icon':_0x205779(0x1be)};}function _0xd5ee2f(){var _0x4f5b47=_0x5d0760;return{'id':_0xa7224f['id'],'type':_0x598718['MenuItemType'][_0x4f5b47(0x1c9)],'title':_0x4f5b47(0x1ba),'icon':'ExportIcon'};}const _0xe2bed3={[_0x598718[_0x5d0760(0x19f)]['OTHERS']]:{[_0x337857]:{'order':0.3,'menuItemFactory':_0x400a3f,[_0x40ebe6['id']]:{'order':0x0,'menuItemFactory':_0x230a6c},[_0xa7224f['id']]:{'order':0x1,'menuItemFactory':_0xd5ee2f}}}};var _0x418df7=Object[_0x5d0760(0x1ca)],_0x51951d=(_0xd0a84f,_0x40631f,_0x50c750,_0x57d303)=>{for(var _0x176c81=_0x57d303>0x1?void 0x0:_0x57d303?_0x418df7(_0x40631f,_0x50c750):_0x40631f,_0x564061=_0xd0a84f['length']-0x1,_0x16b838;_0x564061>=0x0;_0x564061--)(_0x16b838=_0xd0a84f[_0x564061])&&(_0x176c81=_0x16b838(_0x176c81)||_0x176c81);return _0x176c81;},_0x897bbe=(_0x2f687e,_0x2f089d)=>(_0x39d2dd,_0x5c3e37)=>_0x2f089d(_0x39d2dd,_0x5c3e37,_0x2f687e);let _0x36e535=class extends _0x4b2bc1['Disposable']{constructor(_0x190c88,_0x16fced){var _0x463831=_0x5d0760;super(),this[_0x463831(0x1b5)]=_0x190c88,this['_menuManagerService']=_0x16fced,this[_0x463831(0x1bd)](),this['_initMenus']();}[_0x5d0760(0x1bd)](){var _0x4458c1=_0x5d0760;[_0x40ebe6,_0xa7224f][_0x4458c1(0x1c1)](_0x1f97cf=>{var _0xd4e10d=_0x4458c1;this['disposeWithMe'](this[_0xd4e10d(0x1b5)][_0xd4e10d(0x1cd)](_0x1f97cf));});}[_0x5d0760(0x1a2)](){var _0x3fa506=_0x5d0760;this[_0x3fa506(0x1a7)][_0x3fa506(0x1c4)](_0xe2bed3);}};_0x36e535=_0x51951d([_0x897bbe(0x0,_0x4b2bc1[_0x5d0760(0x1b8)]),_0x897bbe(0x1,_0x598718[_0x5d0760(0x1a4)])],_0x36e535);var _0x32aecc=Object[_0x5d0760(0x1df)],_0x2945c6=Object[_0x5d0760(0x1ca)],_0x247522=(_0x33c6a2,_0x148c5d,_0x12f8c7)=>_0x148c5d in _0x33c6a2?_0x32aecc(_0x33c6a2,_0x148c5d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x12f8c7}):_0x33c6a2[_0x148c5d]=_0x12f8c7,_0x372251=(_0x5bb3f7,_0x546cf1,_0xfd19ad,_0x115b49)=>{var _0x4dae58=_0x5d0760;for(var _0x566624=_0x115b49>0x1?void 0x0:_0x115b49?_0x2945c6(_0x546cf1,_0xfd19ad):_0x546cf1,_0x220bef=_0x5bb3f7[_0x4dae58(0x1ce)]-0x1,_0x38c4e6;_0x220bef>=0x0;_0x220bef--)(_0x38c4e6=_0x5bb3f7[_0x220bef])&&(_0x566624=_0x38c4e6(_0x566624)||_0x566624);return _0x566624;},_0x33c7f8=(_0x3c3f09,_0x1b3dfa)=>(_0x3a2dda,_0x6ea170)=>_0x1b3dfa(_0x3a2dda,_0x6ea170,_0x3c3f09),_0x12b5bd=(_0x5642c6,_0x536076,_0x5c2efe)=>_0x247522(_0x5642c6,typeof _0x536076!=_0x5d0760(0x1c6)?_0x536076+'':_0x536076,_0x5c2efe);const _0xbfd8f0=_0x5d0760(0x1dc);_0x1670cf[_0x5d0760(0x1c8)]=class extends _0x4b2bc1[_0x5d0760(0x1ad)]{constructor(_0x471383=_0x15441b,_0x8a02f5,_0x5343aa){var _0x88fe75=_0x5d0760;super(),this[_0x88fe75(0x1cb)]=_0x471383,this[_0x88fe75(0x1b1)]=_0x8a02f5,this[_0x88fe75(0x1d1)]=_0x5343aa;const {menu:_0x3508c3,..._0xad367e}=_0x4b2bc1[_0x88fe75(0x1db)]({},_0x15441b,this[_0x88fe75(0x1cb)]);_0x3508c3&&this['_configService']['setConfig']('menu',_0x3508c3,{'merge':!0x0}),this[_0x88fe75(0x1d1)][_0x88fe75(0x1ae)](_0x442aca,_0xad367e);}[_0x5d0760(0x1bf)](){var _0x1fd5cf=_0x5d0760;[[_0x36e535]][_0x1fd5cf(0x1c1)](_0xc72ddf=>this[_0x1fd5cf(0x1b1)][_0x1fd5cf(0x1d3)](_0xc72ddf));}[_0x5d0760(0x1c7)](){var _0xe60725=_0x5d0760;this[_0xe60725(0x1b1)][_0xe60725(0x1d9)](_0x36e535);}},_0x12b5bd(_0x1670cf[_0x5d0760(0x1c8)],_0x5d0760(0x1b6),_0xbfd8f0),_0x12b5bd(_0x1670cf[_0x5d0760(0x1c8)],_0x5d0760(0x1c2),_0x4b2bc1[_0x5d0760(0x1d7)]['UNIVER_DOC']),_0x1670cf[_0x5d0760(0x1c8)]=_0x372251([_0x4b2bc1[_0x5d0760(0x1cc)](_0x1fc719[_0x5d0760(0x19d)]),_0x33c7f8(0x1,_0x4b2bc1['Inject'](_0x4b2bc1[_0x5d0760(0x1de)])),_0x33c7f8(0x2,_0x4b2bc1['IConfigService'])],_0x1670cf[_0x5d0760(0x1c8)]),_0x1670cf[_0x5d0760(0x1d4)]=_0xa7224f,_0x1670cf['ImportDOCXOperation']=_0x40ebe6,Object[_0x5d0760(0x1df)](_0x1670cf,Symbol[_0x5d0760(0x1ab)],{'value':'Module'});}));function _0x399e(){var _0x50cddd=['5550grMrNQ','_commandService','pluginName','840LnpZji','ICommandService','DirectExportIcon','exchange.download','22141LiHPFf','exchange-client.operation.import-docx','_initCommands','FolderIcon','onStarting','getMenuHiddenObservable','forEach','type','docs-exchange-client.config','mergeMenu','300xTpMuP','symbol','onReady','UniverDocsExchangeClientPlugin','BUTTON','getOwnPropertyDescriptor','_config','DependentOn','registerCommand','length','UniverProDocsExchangeClient','docs-exchange-client.operation.exchange','_configService','@univerjs/core','add','ExportDOCXOperation','UniverCore','exchange.upload','UniverInstanceType','MenuItemType','get','object','merge','DOC_EXCHANGE_CLIENT_PLUGIN','UniverProExchangeClient','Injector','defineProperty','84RJUjgU','IExchangeOperateService','exchange-client.operation.export-docx','exports','UniverExchangeClientPlugin','12DJcnmR','RibbonStartGroup','10DFtdzG','731653mhWijd','_initMenus','11DeKhaL','IMenuManagerService','52954rdYRyO','489249PzcKCg','_menuManagerService','OPERATION','4FHqqAh','@univerjs/ui','toStringTag','886917hXQvjX','Plugin','setConfig','@univerjs-pro/exchange-client','UniverUi','_injector','4197127eoqQCn','CommandType'];_0x399e=function(){return _0x50cddd;};return _0x399e();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/docs-exchange-client",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.4-nightly.202507290757",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -42,15 +42,15 @@
|
|
|
42
42
|
"lib"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@univerjs-pro/exchange-client": "0.9.
|
|
46
|
-
"@univerjs/
|
|
47
|
-
"@univerjs/
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.9.4-nightly.202507290757",
|
|
46
|
+
"@univerjs/ui": "0.9.4-nightly.202507290757",
|
|
47
|
+
"@univerjs/core": "0.9.4-nightly.202507290757"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"typescript": "^5.8.3",
|
|
51
|
-
"vite": "^7.0.
|
|
51
|
+
"vite": "^7.0.6",
|
|
52
52
|
"vitest": "^3.2.4",
|
|
53
|
-
"@univerjs-infra/shared": "0.9.
|
|
53
|
+
"@univerjs-infra/shared": "0.9.4"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"test": "vitest run",
|