@univerjs-pro/docs-exchange-client 0.5.2 → 0.5.3-nightly.202501041605
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/umd/index.js +1 -1
- package/package.json +6 -19
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';var _0x3f9cd5=_0x3920;function _0x3920(_0x38d626,_0x509e87){var _0x66f45f=_0x66f4();return _0x3920=function(_0x3920ad,_0x4ce9e7){_0x3920ad=_0x3920ad-0x141;var _0x456196=_0x66f45f[_0x3920ad];return _0x456196;},_0x3920(_0x38d626,_0x509e87);}(function(_0x3be78c,_0x2311e3){var _0x469492=_0x3920,_0x35dc02=_0x3be78c();while(!![]){try{var _0x55982a=-parseInt(_0x469492(0x15b))/0x1+-parseInt(_0x469492(0x177))/0x2+-parseInt(_0x469492(0x160))/0x3*(parseInt(_0x469492(0x16c))/0x4)+parseInt(_0x469492(0x151))/0x5*(parseInt(_0x469492(0x17d))/0x6)+-parseInt(_0x469492(0x157))/0x7+-parseInt(_0x469492(0x176))/0x8*(parseInt(_0x469492(0x167))/0x9)+-parseInt(_0x469492(0x163))/0xa*(-parseInt(_0x469492(0x171))/0xb);if(_0x55982a===_0x2311e3)break;else _0x35dc02['push'](_0x35dc02['shift']());}catch(_0x54839c){_0x35dc02['push'](_0x35dc02['shift']());}}}(_0x66f4,0xbc63a));Object['defineProperty'](exports,Symbol[_0x3f9cd5(0x162)],{'value':'Module'});const l=require(_0x3f9cd5(0x179)),o=require(_0x3f9cd5(0x175)),s=require(_0x3f9cd5(0x17c)),I='docs-exchange-client.config',d={},u={'id':_0x3f9cd5(0x15d),'type':o[_0x3f9cd5(0x164)][_0x3f9cd5(0x15e)],'handler':async _0x5c8c9f=>(_0x5c8c9f[_0x3f9cd5(0x146)](l[_0x3f9cd5(0x17f)])[_0x3f9cd5(0x14f)](),!0x0)},g={'id':'exchange-client.operation.export-docx','type':o[_0x3f9cd5(0x164)][_0x3f9cd5(0x15e)],'handler':async _0x21930c=>(_0x21930c['get'](l[_0x3f9cd5(0x17f)])[_0x3f9cd5(0x156)](),!0x0)},h='docs-exchange-client.operation.exchange';function O(_0x3c3294){var _0x3df80c=_0x3f9cd5;return{'id':h,'type':s[_0x3df80c(0x161)][_0x3df80c(0x14b)],'icon':_0x3df80c(0x17a),'tooltip':_0x3df80c(0x149),'hidden$':s[_0x3df80c(0x169)](_0x3c3294,o['UniverInstanceType']['UNIVER_DOC'])};}function E(){var _0x1eb583=_0x3f9cd5;return{'id':u['id'],'type':s[_0x1eb583(0x161)][_0x1eb583(0x159)],'title':'exchange.upload','icon':'FolderSingle'};}function f(){var _0x2237da=_0x3f9cd5;return{'id':g['id'],'type':s['MenuItemType'][_0x2237da(0x159)],'title':_0x2237da(0x154),'icon':_0x2237da(0x166)};}const x={[s[_0x3f9cd5(0x173)][_0x3f9cd5(0x14c)]]:{[h]:{'order':0x4,'menuItemFactory':O,[u['id']]:{'order':0x0,'menuItemFactory':E},[g['id']]:{'order':0x1,'menuItemFactory':f}}}};var D=Object[_0x3f9cd5(0x15a)],S=Object[_0x3f9cd5(0x14a)],P=(_0x380178,_0x217cda,_0x17983e,_0x30c601)=>{var _0x38289d=_0x3f9cd5;for(var _0xa7c301=_0x30c601>0x1?void 0x0:_0x30c601?S(_0x217cda,_0x17983e):_0x217cda,_0x5d7b70=_0x380178[_0x38289d(0x16a)]-0x1,_0x1c3729;_0x5d7b70>=0x0;_0x5d7b70--)(_0x1c3729=_0x380178[_0x5d7b70])&&(_0xa7c301=(_0x30c601?_0x1c3729(_0x217cda,_0x17983e,_0xa7c301):_0x1c3729(_0xa7c301))||_0xa7c301);return _0x30c601&&_0xa7c301&&D(_0x217cda,_0x17983e,_0xa7c301),_0xa7c301;},_=(_0xe8d713,_0x453cdc)=>(_0x4d228e,_0x21174f)=>_0x453cdc(_0x4d228e,_0x21174f,_0xe8d713);let p=class extends o[_0x3f9cd5(0x144)]{constructor(_0xbe09f3,_0xc6f44e){var _0x5ec9ba=_0x3f9cd5;super(),this['_commandService']=_0xbe09f3,this['_menuManagerService']=_0xc6f44e,this[_0x5ec9ba(0x16d)](),this[_0x5ec9ba(0x174)]();}[_0x3f9cd5(0x16d)](){[u,g]['forEach'](_0x3c7fef=>{var _0x5c2719=_0x3920;this[_0x5c2719(0x148)](this[_0x5c2719(0x147)]['registerCommand'](_0x3c7fef));});}[_0x3f9cd5(0x174)](){var _0x4a6610=_0x3f9cd5;this['_menuManagerService'][_0x4a6610(0x15f)](x);}};p=P([_(0x0,o[_0x3f9cd5(0x170)]),_(0x1,s[_0x3f9cd5(0x158)])],p);var C=Object['defineProperty'],y=Object[_0x3f9cd5(0x14a)],T=(_0x541449,_0x7ff108,_0x48523d)=>_0x7ff108 in _0x541449?C(_0x541449,_0x7ff108,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48523d}):_0x541449[_0x7ff108]=_0x48523d,U=(_0x39a358,_0x4b7720,_0xd54e0,_0xf53777)=>{for(var _0x38cfcb=_0xf53777>0x1?void 0x0:_0xf53777?y(_0x4b7720,_0xd54e0):_0x4b7720,_0x103489=_0x39a358['length']-0x1,_0x457f49;_0x103489>=0x0;_0x103489--)(_0x457f49=_0x39a358[_0x103489])&&(_0x38cfcb=(_0xf53777?_0x457f49(_0x4b7720,_0xd54e0,_0x38cfcb):_0x457f49(_0x38cfcb))||_0x38cfcb);return _0xf53777&&_0x38cfcb&&C(_0x4b7720,_0xd54e0,_0x38cfcb),_0x38cfcb;},m=(_0x2fc277,_0x3d3961)=>(_0x14dd38,_0x50ab8f)=>_0x3d3961(_0x14dd38,_0x50ab8f,_0x2fc277),v=(_0x446cb1,_0x2242a8,_0x29a63b)=>T(_0x446cb1,typeof _0x2242a8!=_0x3f9cd5(0x15c)?_0x2242a8+'':_0x2242a8,_0x29a63b);const N=_0x3f9cd5(0x16f);function _0x66f4(){var _0x3e53b7=['ExportDOCXOperation','IConfigService','UniverDocsExchangeClientPlugin','Disposable','merge','get','_commandService','disposeWithMe','exchange.file','getOwnPropertyDescriptor','SUBITEMS','FILE','_configService','UniverInstanceType','importDOCXToUnitId','pluginName','1195HJmCUq','_injector','DependentOn','exchange.download','setConfig','exportDOCXByUnitId','5978861amREqA','IMenuManagerService','BUTTON','defineProperty','100496DkQHSy','symbol','exchange-client.operation.import-docx','OPERATION','mergeMenu','12dFawsB','MenuItemType','toStringTag','35067700VgDqFL','CommandType','add','ExportSingle','126ETunav','forEach','getMenuHiddenObservable','length','UniverExchangeClientPlugin','1409568WgOxvD','_initCommands','ImportDOCXOperation','DOC_EXCHANGE_CLIENT_PLUGIN','ICommandService','11MaeDKj','_config','RibbonStartGroup','_initMenus','@univerjs/core','108872dPTDIM','1071616eTGezr','Injector','@univerjs-pro/exchange-client','DirectExportSingle','menu','@univerjs/ui','8922uoIpDV','type','IExchangeOperateService'];_0x66f4=function(){return _0x3e53b7;};return _0x66f4();}exports[_0x3f9cd5(0x143)]=class extends o['Plugin']{constructor(_0xf1f66d=d,_0x169a2a,_0x4a1f24){var _0x151f73=_0x3f9cd5;super(),this[_0x151f73(0x172)]=_0xf1f66d,this[_0x151f73(0x152)]=_0x169a2a,this[_0x151f73(0x14d)]=_0x4a1f24;const {menu:_0x1f9fad,..._0x1dc335}=o[_0x151f73(0x145)]({},d,this[_0x151f73(0x172)]);_0x1f9fad&&this[_0x151f73(0x14d)][_0x151f73(0x155)](_0x151f73(0x17b),_0x1f9fad,{'merge':!0x0}),this[_0x151f73(0x14d)]['setConfig'](I,_0x1dc335);}['onStarting'](){var _0x308e0e=_0x3f9cd5;[[p]][_0x308e0e(0x168)](_0x4dba7d=>this[_0x308e0e(0x152)][_0x308e0e(0x165)](_0x4dba7d));}['onReady'](){var _0x4e753e=_0x3f9cd5;this[_0x4e753e(0x152)][_0x4e753e(0x146)](p);}},v(exports[_0x3f9cd5(0x143)],_0x3f9cd5(0x150),N),v(exports['UniverDocsExchangeClientPlugin'],_0x3f9cd5(0x17e),o[_0x3f9cd5(0x14e)]['UNIVER_DOC']),exports[_0x3f9cd5(0x143)]=U([o[_0x3f9cd5(0x153)](l[_0x3f9cd5(0x16b)]),m(0x1,o['Inject'](o[_0x3f9cd5(0x178)])),m(0x2,o[_0x3f9cd5(0x142)])],exports[_0x3f9cd5(0x143)]),exports[_0x3f9cd5(0x141)]=g,exports[_0x3f9cd5(0x16e)]=u;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0xb151ee=_0x32bf;(function(_0x46327c,_0x159b05){var _0x20053f=_0x32bf,_0x5861e9=_0x46327c();while(!![]){try{var _0x5e025d=parseInt(_0x20053f(0x82))/0x1+parseInt(_0x20053f(0x8e))/0x2+-parseInt(_0x20053f(0x6e))/0x3*(parseInt(_0x20053f(0x8d))/0x4)+-parseInt(_0x20053f(0x6f))/0x5*(parseInt(_0x20053f(0x88))/0x6)+-parseInt(_0x20053f(0x7b))/0x7+-parseInt(_0x20053f(0x71))/0x8+parseInt(_0x20053f(0x70))/0x9;if(_0x5e025d===_0x159b05)break;else _0x5861e9['push'](_0x5861e9['shift']());}catch(_0x24a72c){_0x5861e9['push'](_0x5861e9['shift']());}}}(_0x503b,0xdf16b));import{IExchangeOperateService as _0x5b63c3,UniverExchangeClientPlugin as _0x43205f}from'@univerjs-pro/exchange-client';import{CommandType as _0xcc3b0a,UniverInstanceType as _0xb37645,Disposable as _0x2fc028,ICommandService as _0xd0986a,DependentOn as _0x4a053a,Inject as _0x55b981,Injector as _0x5d34ad,Plugin as _0x5c3f1a,merge as _0x3867e5,IConfigService as _0x59fd03}from'@univerjs/core';import{MenuItemType as _0x2d6dfa,getMenuHiddenObservable as _0x167c5e,RibbonStartGroup as _0x45ad9d,IMenuManagerService as _0x4d0320}from'@univerjs/ui';const F=_0xb151ee(0x72),m={},_={'id':_0xb151ee(0x6b),'type':_0xcc3b0a[_0xb151ee(0x67)],'handler':async _0x44bfe8=>(_0x44bfe8[_0xb151ee(0x78)](_0x5b63c3)['importDOCXToUnitId'](),!0x0)},d={'id':'exchange-client.operation.export-docx','type':_0xcc3b0a[_0xb151ee(0x67)],'handler':async _0x129101=>(_0x129101[_0xb151ee(0x78)](_0x5b63c3)[_0xb151ee(0x68)](),!0x0)},I=_0xb151ee(0x64);function X(_0x24b5c9){var _0x21e145=_0xb151ee;return{'id':I,'type':_0x2d6dfa['SUBITEMS'],'icon':_0x21e145(0x6c),'tooltip':_0x21e145(0x66),'hidden$':_0x167c5e(_0x24b5c9,_0xb37645[_0x21e145(0x86)])};}function G(){var _0x298c5f=_0xb151ee;return{'id':_['id'],'type':_0x2d6dfa[_0x298c5f(0x89)],'title':_0x298c5f(0x6d),'icon':_0x298c5f(0x79)};}function j(){var _0x5a9b10=_0xb151ee;return{'id':d['id'],'type':_0x2d6dfa[_0x5a9b10(0x89)],'title':_0x5a9b10(0x69),'icon':_0x5a9b10(0x80)};}const A={[_0x45ad9d[_0xb151ee(0x75)]]:{[I]:{'order':0x4,'menuItemFactory':X,[_['id']]:{'order':0x0,'menuItemFactory':G},[d['id']]:{'order':0x1,'menuItemFactory':j}}}};var L=Object[_0xb151ee(0x74)],R=Object[_0xb151ee(0x6a)],w=(_0x1cf8c7,_0x522049,_0x292704,_0x2018b4)=>{var _0x12670c=_0xb151ee;for(var _0x93ccc8=_0x2018b4>0x1?void 0x0:_0x2018b4?R(_0x522049,_0x292704):_0x522049,_0x3dda0b=_0x1cf8c7[_0x12670c(0x8a)]-0x1,_0x522832;_0x3dda0b>=0x0;_0x3dda0b--)(_0x522832=_0x1cf8c7[_0x3dda0b])&&(_0x93ccc8=(_0x2018b4?_0x522832(_0x522049,_0x292704,_0x93ccc8):_0x522832(_0x93ccc8))||_0x93ccc8);return _0x2018b4&&_0x93ccc8&&L(_0x522049,_0x292704,_0x93ccc8),_0x93ccc8;},u=(_0xa8d1b7,_0x542f4e)=>(_0x4334ea,_0x8b7c2a)=>_0x542f4e(_0x4334ea,_0x8b7c2a,_0xa8d1b7);let a=class extends _0x2fc028{constructor(_0x2b782c,_0x3b6a3a){var _0x40e312=_0xb151ee;super(),this[_0x40e312(0x73)]=_0x2b782c,this[_0x40e312(0x7e)]=_0x3b6a3a,this[_0x40e312(0x83)](),this[_0x40e312(0x76)]();}[_0xb151ee(0x83)](){[_,d]['forEach'](_0x819e7d=>{var _0x9a7f17=_0x32bf;this['disposeWithMe'](this['_commandService'][_0x9a7f17(0x77)](_0x819e7d));});}[_0xb151ee(0x76)](){var _0x5931ef=_0xb151ee;this[_0x5931ef(0x7e)]['mergeMenu'](A);}};a=w([u(0x0,_0xd0986a),u(0x1,_0x4d0320)],a);var f=Object[_0xb151ee(0x74)],B=Object[_0xb151ee(0x6a)],H=(_0x3e05cb,_0x4218d7,_0x3ad2b2)=>_0x4218d7 in _0x3e05cb?f(_0x3e05cb,_0x4218d7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ad2b2}):_0x3e05cb[_0x4218d7]=_0x3ad2b2,$=(_0x59568,_0xbd6ef4,_0x41dcbb,_0x264f9c)=>{var _0x40bf25=_0xb151ee;for(var _0x9823d=_0x264f9c>0x1?void 0x0:_0x264f9c?B(_0xbd6ef4,_0x41dcbb):_0xbd6ef4,_0x2475ff=_0x59568[_0x40bf25(0x8a)]-0x1,_0x4b82da;_0x2475ff>=0x0;_0x2475ff--)(_0x4b82da=_0x59568[_0x2475ff])&&(_0x9823d=(_0x264f9c?_0x4b82da(_0xbd6ef4,_0x41dcbb,_0x9823d):_0x4b82da(_0x9823d))||_0x9823d);return _0x264f9c&&_0x9823d&&f(_0xbd6ef4,_0x41dcbb,_0x9823d),_0x9823d;},l=(_0x3ce2b2,_0xf9ddb3)=>(_0x5d271b,_0x20fa02)=>_0xf9ddb3(_0x5d271b,_0x20fa02,_0x3ce2b2),v=(_0x59e780,_0x5d27e3,_0x356c3a)=>H(_0x59e780,typeof _0x5d27e3!=_0xb151ee(0x8c)?_0x5d27e3+'':_0x5d27e3,_0x356c3a);const V=_0xb151ee(0x81);function _0x503b(){var _0x834109=['519183XwanPZ','setConfig','type','_menuManagerService','_configService','ExportSingle','DOC_EXCHANGE_CLIENT_PLUGIN','687418ZmzAHi','_initCommands','onStarting','forEach','UNIVER_DOC','_config','151950rIrUPG','BUTTON','length','onReady','symbol','8ZrKDNW','1518284XANcgh','docs-exchange-client.operation.exchange','menu','exchange.file','OPERATION','exportDOCXByUnitId','exchange.download','getOwnPropertyDescriptor','exchange-client.operation.import-docx','DirectExportSingle','exchange.upload','2093469HrPXXt','335lHZeyd','31405023MlfriI','6845168dJzmpU','docs-exchange-client.config','_commandService','defineProperty','FILE','_initMenus','registerCommand','get','FolderSingle','_injector'];_0x503b=function(){return _0x834109;};return _0x503b();}let s=class extends _0x5c3f1a{constructor(_0x5bcefc=m,_0x35a2b6,_0x1f612f){var _0x5d569e=_0xb151ee;super(),this[_0x5d569e(0x87)]=_0x5bcefc,this[_0x5d569e(0x7a)]=_0x35a2b6,this[_0x5d569e(0x7f)]=_0x1f612f;const {menu:_0x1a9478,..._0x36e655}=_0x3867e5({},m,this[_0x5d569e(0x87)]);_0x1a9478&&this[_0x5d569e(0x7f)][_0x5d569e(0x7c)](_0x5d569e(0x65),_0x1a9478,{'merge':!0x0}),this[_0x5d569e(0x7f)][_0x5d569e(0x7c)](F,_0x36e655);}[_0xb151ee(0x84)](){var _0x3f00eb=_0xb151ee;[[a]][_0x3f00eb(0x85)](_0x2708c4=>this['_injector']['add'](_0x2708c4));}[_0xb151ee(0x8b)](){var _0x460646=_0xb151ee;this[_0x460646(0x7a)][_0x460646(0x78)](a);}};v(s,'pluginName',V),v(s,_0xb151ee(0x7d),_0xb37645[_0xb151ee(0x86)]),s=$([_0x4a053a(_0x43205f),l(0x1,_0x55b981(_0x5d34ad)),l(0x2,_0x59fd03)],s);function _0x32bf(_0x3b9a63,_0x28d132){var _0x503bf9=_0x503b();return _0x32bf=function(_0x32bf88,_0x166846){_0x32bf88=_0x32bf88-0x64;var _0x3ed1e7=_0x503bf9[_0x32bf88];return _0x3ed1e7;},_0x32bf(_0x3b9a63,_0x28d132);}export{d as ExportDOCXOperation,_ as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x47e9(_0x48f64a,_0x4879be){var _0xfe3210=_0xfe32();return _0x47e9=function(_0x47e9e0,_0x3f2fce){_0x47e9e0=_0x47e9e0-0xcb;var _0x41c24b=_0xfe3210[_0x47e9e0];return _0x41c24b;},_0x47e9(_0x48f64a,_0x4879be);}(function(_0x4a21c8,_0x2d8da9){var _0xbb3f30=_0x47e9,_0x56fa60=_0x4a21c8();while(!![]){try{var _0x4e79e9=-parseInt(_0xbb3f30(0xfe))/0x1*(parseInt(_0xbb3f30(0xef))/0x2)+-parseInt(_0xbb3f30(0xdb))/0x3+parseInt(_0xbb3f30(0xe1))/0x4*(parseInt(_0xbb3f30(0xf3))/0x5)+parseInt(_0xbb3f30(0x10a))/0x6*(-parseInt(_0xbb3f30(0xcc))/0x7)+parseInt(_0xbb3f30(0xd8))/0x8*(parseInt(_0xbb3f30(0xd9))/0x9)+parseInt(_0xbb3f30(0xfd))/0xa+-parseInt(_0xbb3f30(0xfa))/0xb*(parseInt(_0xbb3f30(0xd5))/0xc);if(_0x4e79e9===_0x2d8da9)break;else _0x56fa60['push'](_0x56fa60['shift']());}catch(_0x23a660){_0x56fa60['push'](_0x56fa60['shift']());}}}(_0xfe32,0xf097f),function(_0x5b233d,_0xeacfd){var _0x395013=_0x47e9;typeof exports=='object'&&typeof module<'u'?_0xeacfd(exports,require(_0x395013(0xd6)),require(_0x395013(0x100)),require(_0x395013(0xe9))):typeof define==_0x395013(0xeb)&&define['amd']?define([_0x395013(0xe4),_0x395013(0xd6),_0x395013(0x100),_0x395013(0xe9)],_0xeacfd):(_0x5b233d=typeof globalThis<'u'?globalThis:_0x5b233d||self,_0xeacfd(_0x5b233d[_0x395013(0xdc)]={},_0x5b233d[_0x395013(0xd0)],_0x5b233d['UniverCore'],_0x5b233d[_0x395013(0xee)]));}(this,function(_0x461499,_0x4c8b1d,_0xf61148,_0x308c46){'use strict';var _0x2b4fad=_0x47e9;const _0x5b3c89='docs-exchange-client.config',_0x153efb={},_0x596a24={'id':'exchange-client.operation.import-docx','type':_0xf61148[_0x2b4fad(0xf5)]['OPERATION'],'handler':async _0x542393=>(_0x542393[_0x2b4fad(0x103)](_0x4c8b1d['IExchangeOperateService'])[_0x2b4fad(0xfc)](),!0x0)},_0x319f22={'id':'exchange-client.operation.export-docx','type':_0xf61148[_0x2b4fad(0xf5)][_0x2b4fad(0xd7)],'handler':async _0x17f13f=>(_0x17f13f[_0x2b4fad(0x103)](_0x4c8b1d['IExchangeOperateService'])[_0x2b4fad(0xec)](),!0x0)},_0x2e0272=_0x2b4fad(0xd2);function _0x518e3e(_0x303bc1){var _0x2702cf=_0x2b4fad;return{'id':_0x2e0272,'type':_0x308c46[_0x2702cf(0xcb)]['SUBITEMS'],'icon':_0x2702cf(0x10f),'tooltip':_0x2702cf(0xf0),'hidden$':_0x308c46[_0x2702cf(0x106)](_0x303bc1,_0xf61148[_0x2702cf(0xdd)][_0x2702cf(0xcd)])};}function _0x1949af(){var _0x47c2c0=_0x2b4fad;return{'id':_0x596a24['id'],'type':_0x308c46[_0x47c2c0(0xcb)]['BUTTON'],'title':_0x47c2c0(0xff),'icon':_0x47c2c0(0xea)};}function _0x26776c(){var _0x5f1e3b=_0x2b4fad;return{'id':_0x319f22['id'],'type':_0x308c46['MenuItemType'][_0x5f1e3b(0xed)],'title':_0x5f1e3b(0x10d),'icon':_0x5f1e3b(0x104)};}const _0x4bf928={[_0x308c46['RibbonStartGroup'][_0x2b4fad(0x105)]]:{[_0x2e0272]:{'order':0x4,'menuItemFactory':_0x518e3e,[_0x596a24['id']]:{'order':0x0,'menuItemFactory':_0x1949af},[_0x319f22['id']]:{'order':0x1,'menuItemFactory':_0x26776c}}}};var _0x52f8fa=Object[_0x2b4fad(0xf6)],_0x524f19=Object[_0x2b4fad(0xce)],_0x5c637d=(_0x4aa1cd,_0x491fb2,_0x37ca0e,_0x1dca96)=>{var _0x76d876=_0x2b4fad;for(var _0x424a67=_0x1dca96>0x1?void 0x0:_0x1dca96?_0x524f19(_0x491fb2,_0x37ca0e):_0x491fb2,_0x40ecff=_0x4aa1cd[_0x76d876(0x109)]-0x1,_0x50c1e9;_0x40ecff>=0x0;_0x40ecff--)(_0x50c1e9=_0x4aa1cd[_0x40ecff])&&(_0x424a67=(_0x1dca96?_0x50c1e9(_0x491fb2,_0x37ca0e,_0x424a67):_0x50c1e9(_0x424a67))||_0x424a67);return _0x1dca96&&_0x424a67&&_0x52f8fa(_0x491fb2,_0x37ca0e,_0x424a67),_0x424a67;},_0x49c49c=(_0x4e3935,_0x1deecc)=>(_0x5cc89a,_0x2aeb68)=>_0x1deecc(_0x5cc89a,_0x2aeb68,_0x4e3935);let _0xabbec9=class extends _0xf61148['Disposable']{constructor(_0x393eab,_0x42bcfb){var _0x2ab05c=_0x2b4fad;super(),this['_commandService']=_0x393eab,this[_0x2ab05c(0xe2)]=_0x42bcfb,this[_0x2ab05c(0xdf)](),this[_0x2ab05c(0x108)]();}[_0x2b4fad(0xdf)](){[_0x596a24,_0x319f22]['forEach'](_0x4c71f8=>{var _0x5d17d2=_0x47e9;this['disposeWithMe'](this[_0x5d17d2(0xd4)][_0x5d17d2(0x10b)](_0x4c71f8));});}['_initMenus'](){var _0x30f0d0=_0x2b4fad;this[_0x30f0d0(0xe2)][_0x30f0d0(0x107)](_0x4bf928);}};_0xabbec9=_0x5c637d([_0x49c49c(0x0,_0xf61148[_0x2b4fad(0xf4)]),_0x49c49c(0x1,_0x308c46[_0x2b4fad(0xe8)])],_0xabbec9);var _0xdf1013=Object['defineProperty'],_0x2ded54=Object[_0x2b4fad(0xce)],_0x2825d3=(_0x6e0b74,_0x4bc878,_0x4ba0ef)=>_0x4bc878 in _0x6e0b74?_0xdf1013(_0x6e0b74,_0x4bc878,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4ba0ef}):_0x6e0b74[_0x4bc878]=_0x4ba0ef,_0x218aad=(_0x206f5f,_0xb3f77e,_0x381696,_0x57083c)=>{var _0x5f18d4=_0x2b4fad;for(var _0x10281b=_0x57083c>0x1?void 0x0:_0x57083c?_0x2ded54(_0xb3f77e,_0x381696):_0xb3f77e,_0x5eb2de=_0x206f5f[_0x5f18d4(0x109)]-0x1,_0x107a6f;_0x5eb2de>=0x0;_0x5eb2de--)(_0x107a6f=_0x206f5f[_0x5eb2de])&&(_0x10281b=(_0x57083c?_0x107a6f(_0xb3f77e,_0x381696,_0x10281b):_0x107a6f(_0x10281b))||_0x10281b);return _0x57083c&&_0x10281b&&_0xdf1013(_0xb3f77e,_0x381696,_0x10281b),_0x10281b;},_0x2f8cc2=(_0x385551,_0xb11df6)=>(_0x39a3f1,_0x38761c)=>_0xb11df6(_0x39a3f1,_0x38761c,_0x385551),_0x4fd9c9=(_0x173ea6,_0x1229ba,_0x451587)=>_0x2825d3(_0x173ea6,typeof _0x1229ba!=_0x2b4fad(0x102)?_0x1229ba+'':_0x1229ba,_0x451587);const _0x302e30=_0x2b4fad(0xf2);_0x461499['UniverDocsExchangeClientPlugin']=class extends _0xf61148['Plugin']{constructor(_0x2da7a8=_0x153efb,_0x290d18,_0x43f032){var _0xbf5ed2=_0x2b4fad;super(),this['_config']=_0x2da7a8,this[_0xbf5ed2(0xcf)]=_0x290d18,this[_0xbf5ed2(0xd3)]=_0x43f032;const {menu:_0x1ea18f,..._0x106ceb}=_0xf61148[_0xbf5ed2(0xde)]({},_0x153efb,this[_0xbf5ed2(0xe7)]);_0x1ea18f&&this['_configService'][_0xbf5ed2(0xe6)]('menu',_0x1ea18f,{'merge':!0x0}),this[_0xbf5ed2(0xd3)][_0xbf5ed2(0xe6)](_0x5b3c89,_0x106ceb);}[_0x2b4fad(0xe3)](){var _0x11cc58=_0x2b4fad;[[_0xabbec9]][_0x11cc58(0x10c)](_0x177534=>this['_injector']['add'](_0x177534));}['onReady'](){var _0x35589c=_0x2b4fad;this[_0x35589c(0xcf)][_0x35589c(0x103)](_0xabbec9);}},_0x4fd9c9(_0x461499[_0x2b4fad(0xe5)],_0x2b4fad(0xf8),_0x302e30),_0x4fd9c9(_0x461499[_0x2b4fad(0xe5)],'type',_0xf61148[_0x2b4fad(0xdd)][_0x2b4fad(0xcd)]),_0x461499[_0x2b4fad(0xe5)]=_0x218aad([_0xf61148[_0x2b4fad(0x10e)](_0x4c8b1d[_0x2b4fad(0xe0)]),_0x2f8cc2(0x1,_0xf61148[_0x2b4fad(0xf7)](_0xf61148[_0x2b4fad(0xf9)])),_0x2f8cc2(0x2,_0xf61148[_0x2b4fad(0xd1)])],_0x461499[_0x2b4fad(0xe5)]),_0x461499[_0x2b4fad(0xda)]=_0x319f22,_0x461499[_0x2b4fad(0xf1)]=_0x596a24,Object[_0x2b4fad(0xf6)](_0x461499,Symbol[_0x2b4fad(0x101)],{'value':_0x2b4fad(0xfb)});}));function _0xfe32(){var _0x3b57cb=['symbol','get','ExportSingle','FILE','getMenuHiddenObservable','mergeMenu','_initMenus','length','57822ePsAhs','registerCommand','forEach','exchange.download','DependentOn','DirectExportSingle','MenuItemType','665ogkJOA','UNIVER_DOC','getOwnPropertyDescriptor','_injector','UniverProExchangeClient','IConfigService','docs-exchange-client.operation.exchange','_configService','_commandService','60NkOyyd','@univerjs-pro/exchange-client','OPERATION','4862672poYOWl','18FFrNTy','ExportDOCXOperation','3238203XxLQdi','UniverProDocsExchangeClient','UniverInstanceType','merge','_initCommands','UniverExchangeClientPlugin','325196TJrRwn','_menuManagerService','onStarting','exports','UniverDocsExchangeClientPlugin','setConfig','_config','IMenuManagerService','@univerjs/ui','FolderSingle','function','exportDOCXByUnitId','BUTTON','UniverUi','188vhtcRd','exchange.file','ImportDOCXOperation','DOC_EXCHANGE_CLIENT_PLUGIN','115MSlTJX','ICommandService','CommandType','defineProperty','Inject','pluginName','Injector','1190079qAyUUW','Module','importDOCXToUnitId','5521590wcaWkT','1238odqXOT','exchange.upload','@univerjs/core','toStringTag'];_0xfe32=function(){return _0x3b57cb;};return _0xfe32();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/docs-exchange-client",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3-nightly.202501041605",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -42,28 +42,15 @@
|
|
|
42
42
|
"lib"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@univerjs/
|
|
46
|
-
"@univerjs
|
|
47
|
-
"@univerjs/
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.5.3-nightly.202501041605",
|
|
46
|
+
"@univerjs/ui": "0.5.3-nightly.202501041605",
|
|
47
|
+
"@univerjs/core": "0.5.3-nightly.202501041605"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"typescript": "^5.7.2",
|
|
51
|
-
"vite": "^6.0.
|
|
51
|
+
"vite": "^6.0.6",
|
|
52
52
|
"vitest": "^2.1.8",
|
|
53
|
-
"@univerjs-infra/shared": "0.5.
|
|
54
|
-
},
|
|
55
|
-
"space": {
|
|
56
|
-
".": {
|
|
57
|
-
"import": "./lib/es/index.js",
|
|
58
|
-
"require": "./lib/cjs/index.js",
|
|
59
|
-
"types": "./lib/types/index.d.ts"
|
|
60
|
-
},
|
|
61
|
-
"./*": {
|
|
62
|
-
"import": "./lib/es/*",
|
|
63
|
-
"require": "./lib/cjs/*",
|
|
64
|
-
"types": "./lib/types/index.d.ts"
|
|
65
|
-
},
|
|
66
|
-
"./lib/*": "./lib/*"
|
|
53
|
+
"@univerjs-infra/shared": "0.5.3"
|
|
67
54
|
},
|
|
68
55
|
"scripts": {
|
|
69
56
|
"test": "vitest run",
|