@univerjs-pro/docs-exchange-client 0.6.0 → 0.6.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 +1 -1
- package/lib/es/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +7 -7
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x30d7d7=_0x4364;(function(_0x500488,_0x3d4479){var _0x35e4c7=_0x4364,_0x544880=_0x500488();while(!![]){try{var _0x28e54a=-parseInt(_0x35e4c7(0xc1))/0x1+-parseInt(_0x35e4c7(0x9f))/0x2+parseInt(_0x35e4c7(0xc3))/0x3*(parseInt(_0x35e4c7(0x95))/0x4)+parseInt(_0x35e4c7(0xc6))/0x5*(parseInt(_0x35e4c7(0x93))/0x6)+parseInt(_0x35e4c7(0xa6))/0x7*(-parseInt(_0x35e4c7(0x91))/0x8)+-parseInt(_0x35e4c7(0xa1))/0x9*(-parseInt(_0x35e4c7(0xa5))/0xa)+parseInt(_0x35e4c7(0xab))/0xb*(parseInt(_0x35e4c7(0x98))/0xc);if(_0x28e54a===_0x3d4479)break;else _0x544880['push'](_0x544880['shift']());}catch(_0x6c2649){_0x544880['push'](_0x544880['shift']());}}}(_0x3e7a,0x9b539));Object[_0x30d7d7(0x9c)](exports,Symbol['toStringTag'],{'value':_0x30d7d7(0xaa)});const l=require('@univerjs-pro/exchange-client'),i=require(_0x30d7d7(0xa0)),a=require(_0x30d7d7(0xb3)),v='docs-exchange-client.config',d={},g={'id':'exchange-client.operation.import-docx','type':i[_0x30d7d7(0x8d)][_0x30d7d7(0xc8)],'handler':async _0x2b77e1=>(_0x2b77e1[_0x30d7d7(0x8e)](l['IExchangeOperateService'])[_0x30d7d7(0x96)](),!0x0)},p={'id':_0x30d7d7(0x94),'type':i[_0x30d7d7(0x8d)][_0x30d7d7(0xc8)],'handler':async _0xa85096=>(_0xa85096[_0x30d7d7(0x8e)](l[_0x30d7d7(0xb8)])[_0x30d7d7(0xa4)](),!0x0)},h=_0x30d7d7(0xc5);function _0x3e7a(){var _0x3ace27=['_injector','UniverInstanceType','ICommandService','add','DirectExportSingle','onStarting','1043770hwwsOk','symbol','10974cjNYRj','SUBITEMS','docs-exchange-client.operation.exchange','254545XEtUfV','_initCommands','OPERATION','merge','exchange.download','CommandType','get','MenuItemType','UniverExchangeClientPlugin','14776zfHwCV','ExportSingle','30VzzwQi','exchange-client.operation.export-docx','988fNVlZd','importDOCXToUnitId','_commandService','60PsaEzi','type','IMenuManagerService','_config','defineProperty','ExportDOCXOperation','Disposable','850200vbzKDR','@univerjs/core','54eOAhhb','UNIVER_DOC','length','exportDOCXByUnitId','1645450gkOciY','3444MbHJHH','getOwnPropertyDescriptor','DOC_EXCHANGE_CLIENT_PLUGIN','BUTTON','Module','1910634bfCQxD','forEach','_menuManagerService','onReady','IConfigService','RibbonStartGroup','setConfig','UniverDocsExchangeClientPlugin','@univerjs/ui','exchange.file','menu','_configService','_initMenus','IExchangeOperateService','pluginName','FolderSingle'];_0x3e7a=function(){return _0x3ace27;};return _0x3e7a();}function I(_0x21c49c){var _0x54badd=_0x30d7d7;return{'id':h,'type':a[_0x54badd(0x8f)][_0x54badd(0xc4)],'icon':_0x54badd(0xbf),'tooltip':_0x54badd(0xb4),'hidden$':a['getMenuHiddenObservable'](_0x21c49c,i[_0x54badd(0xbc)][_0x54badd(0xa2)])};}function _0x4364(_0x5695dc,_0x12474f){var _0x3e7aed=_0x3e7a();return _0x4364=function(_0x436460,_0x2975e2){_0x436460=_0x436460-0x8c;var _0x113f70=_0x3e7aed[_0x436460];return _0x113f70;},_0x4364(_0x5695dc,_0x12474f);}function O(){var _0x86a93d=_0x30d7d7;return{'id':g['id'],'type':a[_0x86a93d(0x8f)][_0x86a93d(0xa9)],'title':'exchange.upload','icon':_0x86a93d(0xba)};}function E(){var _0x2f9294=_0x30d7d7;return{'id':p['id'],'type':a[_0x2f9294(0x8f)][_0x2f9294(0xa9)],'title':_0x2f9294(0x8c),'icon':_0x2f9294(0x92)};}const x={[a[_0x30d7d7(0xb0)]['FILE']]:{[h]:{'order':0x4,'menuItemFactory':I,[g['id']]:{'order':0x0,'menuItemFactory':O},[p['id']]:{'order':0x1,'menuItemFactory':E}}}};var D=Object[_0x30d7d7(0xa7)],f=(_0x52a713,_0x4e33e3,_0x501c5e,_0x387e46)=>{for(var _0x437dcd=_0x387e46>0x1?void 0x0:_0x387e46?D(_0x4e33e3,_0x501c5e):_0x4e33e3,_0x5d6f7f=_0x52a713['length']-0x1,_0x4d9950;_0x5d6f7f>=0x0;_0x5d6f7f--)(_0x4d9950=_0x52a713[_0x5d6f7f])&&(_0x437dcd=_0x4d9950(_0x437dcd)||_0x437dcd);return _0x437dcd;},_=(_0x51bf8e,_0x1822f5)=>(_0x41ea5f,_0x210139)=>_0x1822f5(_0x41ea5f,_0x210139,_0x51bf8e);let u=class extends i[_0x30d7d7(0x9e)]{constructor(_0x2fe677,_0x53451){var _0x2febf9=_0x30d7d7;super(),this[_0x2febf9(0x97)]=_0x2fe677,this[_0x2febf9(0xad)]=_0x53451,this[_0x2febf9(0xc7)](),this[_0x2febf9(0xb7)]();}[_0x30d7d7(0xc7)](){[g,p]['forEach'](_0x3b7749=>{var _0x431178=_0x4364;this['disposeWithMe'](this[_0x431178(0x97)]['registerCommand'](_0x3b7749));});}[_0x30d7d7(0xb7)](){var _0x1a5239=_0x30d7d7;this[_0x1a5239(0xad)]['mergeMenu'](x);}};u=f([_(0x0,i[_0x30d7d7(0xbd)]),_(0x1,a[_0x30d7d7(0x9a)])],u);var S=Object[_0x30d7d7(0x9c)],y=Object[_0x30d7d7(0xa7)],P=(_0x34eb05,_0x257629,_0x29927e)=>_0x257629 in _0x34eb05?S(_0x34eb05,_0x257629,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x29927e}):_0x34eb05[_0x257629]=_0x29927e,T=(_0x17e42a,_0x495699,_0x45d21b,_0x4f29d7)=>{var _0x4aeb53=_0x30d7d7;for(var _0x4e365e=_0x4f29d7>0x1?void 0x0:_0x4f29d7?y(_0x495699,_0x45d21b):_0x495699,_0x3c0278=_0x17e42a[_0x4aeb53(0xa3)]-0x1,_0x5f49f1;_0x3c0278>=0x0;_0x3c0278--)(_0x5f49f1=_0x17e42a[_0x3c0278])&&(_0x4e365e=_0x5f49f1(_0x4e365e)||_0x4e365e);return _0x4e365e;},m=(_0x180dc2,_0x553161)=>(_0x5d7060,_0x297e3a)=>_0x553161(_0x5d7060,_0x297e3a,_0x180dc2),C=(_0x5b7821,_0x21821c,_0x2e0807)=>P(_0x5b7821,typeof _0x21821c!=_0x30d7d7(0xc2)?_0x21821c+'':_0x21821c,_0x2e0807);const U=_0x30d7d7(0xa8);exports[_0x30d7d7(0xb2)]=class extends i['Plugin']{constructor(_0x4a41d3=d,_0x262ccc,_0x5f335c){var _0x2a8074=_0x30d7d7;super(),this[_0x2a8074(0x9b)]=_0x4a41d3,this[_0x2a8074(0xbb)]=_0x262ccc,this[_0x2a8074(0xb6)]=_0x5f335c;const {menu:_0x365b96,..._0x207402}=i[_0x2a8074(0xc9)]({},d,this[_0x2a8074(0x9b)]);_0x365b96&&this[_0x2a8074(0xb6)][_0x2a8074(0xb1)](_0x2a8074(0xb5),_0x365b96,{'merge':!0x0}),this[_0x2a8074(0xb6)][_0x2a8074(0xb1)](v,_0x207402);}[_0x30d7d7(0xc0)](){var _0x2ee239=_0x30d7d7;[[u]][_0x2ee239(0xac)](_0x1a63f0=>this[_0x2ee239(0xbb)][_0x2ee239(0xbe)](_0x1a63f0));}[_0x30d7d7(0xae)](){var _0x1702e6=_0x30d7d7;this[_0x1702e6(0xbb)][_0x1702e6(0x8e)](u);}},C(exports['UniverDocsExchangeClientPlugin'],_0x30d7d7(0xb9),U),C(exports[_0x30d7d7(0xb2)],_0x30d7d7(0x99),i[_0x30d7d7(0xbc)][_0x30d7d7(0xa2)]),exports[_0x30d7d7(0xb2)]=T([i['DependentOn'](l[_0x30d7d7(0x90)]),m(0x1,i['Inject'](i['Injector'])),m(0x2,i[_0x30d7d7(0xaf)])],exports['UniverDocsExchangeClientPlugin']),exports[_0x30d7d7(0x9d)]=p,exports['ImportDOCXOperation']=g;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x58f499=_0x4625;(function(_0x3f9953,_0x1040a3){var _0x567571=_0x4625,_0x36f6c9=_0x3f9953();while(!![]){try{var _0x57e309=parseInt(_0x567571(0x1e4))/0x1*(parseInt(_0x567571(0x1dd))/0x2)+parseInt(_0x567571(0x1f5))/0x3*(-parseInt(_0x567571(0x1dc))/0x4)+parseInt(_0x567571(0x1ea))/0x5+-parseInt(_0x567571(0x202))/0x6+-parseInt(_0x567571(0x1e1))/0x7*(parseInt(_0x567571(0x1f6))/0x8)+-parseInt(_0x567571(0x1f9))/0x9+-parseInt(_0x567571(0x201))/0xa*(-parseInt(_0x567571(0x1e8))/0xb);if(_0x57e309===_0x1040a3)break;else _0x36f6c9['push'](_0x36f6c9['shift']());}catch(_0x4c1705){_0x36f6c9['push'](_0x36f6c9['shift']());}}}(_0x15c2,0x7e47e));function _0x4625(_0x222841,_0x45fb35){var _0x15c24d=_0x15c2();return _0x4625=function(_0x46252d,_0x4d9fb7){_0x46252d=_0x46252d-0x1da;var _0xe6ead5=_0x15c24d[_0x46252d];return _0xe6ead5;},_0x4625(_0x222841,_0x45fb35);}import{IExchangeOperateService as _0x20de99,UniverExchangeClientPlugin as _0x1c14c6}from'@univerjs-pro/exchange-client';import{CommandType as _0x2c3b92,UniverInstanceType as _0x422311,Disposable as _0x6d0a7c,ICommandService as _0x492bb9,DependentOn as _0x139f56,Inject as _0x171503,Injector as _0x39eedb,IConfigService as _0x243603,Plugin as _0x12f1b6,merge as _0x5ec998}from'@univerjs/core';import{MenuItemType as _0x2eee77,getMenuHiddenObservable as _0x7bb96f,RibbonStartGroup as _0x265694,IMenuManagerService as _0x1be093}from'@univerjs/ui';const b='docs-exchange-client.config',m={},d={'id':_0x58f499(0x1e9),'type':_0x2c3b92['OPERATION'],'handler':async _0x208cf4=>(_0x208cf4[_0x58f499(0x1f3)](_0x20de99)[_0x58f499(0x1ec)](),!0x0)},_={'id':'exchange-client.operation.export-docx','type':_0x2c3b92[_0x58f499(0x1e6)],'handler':async _0x2d9804=>(_0x2d9804[_0x58f499(0x1f3)](_0x20de99)['exportDOCXByUnitId'](),!0x0)},I=_0x58f499(0x1de);function F(_0x29b16a){var _0x429d18=_0x58f499;return{'id':I,'type':_0x2eee77[_0x429d18(0x1df)],'icon':_0x429d18(0x1e3),'tooltip':_0x429d18(0x1ef),'hidden$':_0x7bb96f(_0x29b16a,_0x422311[_0x429d18(0x1fe)])};}function X(){var _0x2b641f=_0x58f499;return{'id':d['id'],'type':_0x2eee77[_0x2b641f(0x1e7)],'title':'exchange.upload','icon':'FolderSingle'};}function G(){var _0x12f5d9=_0x58f499;return{'id':_['id'],'type':_0x2eee77[_0x12f5d9(0x1e7)],'title':_0x12f5d9(0x204),'icon':'ExportSingle'};}const A={[_0x265694[_0x58f499(0x1eb)]]:{[I]:{'order':0x4,'menuItemFactory':F,[d['id']]:{'order':0x0,'menuItemFactory':X},[_['id']]:{'order':0x1,'menuItemFactory':G}}}};var L=Object[_0x58f499(0x1fd)],R=(_0x1ab8da,_0x541d7b,_0x4be2ed,_0x58047b)=>{var _0xd97a0f=_0x58f499;for(var _0x18aed7=_0x58047b>0x1?void 0x0:_0x58047b?L(_0x541d7b,_0x4be2ed):_0x541d7b,_0x4c95bf=_0x1ab8da[_0xd97a0f(0x1f7)]-0x1,_0x224f75;_0x4c95bf>=0x0;_0x4c95bf--)(_0x224f75=_0x1ab8da[_0x4c95bf])&&(_0x18aed7=_0x224f75(_0x18aed7)||_0x18aed7);return _0x18aed7;},u=(_0x1da4a3,_0x5c1f6c)=>(_0x5509fe,_0x5c592d)=>_0x5c1f6c(_0x5509fe,_0x5c592d,_0x1da4a3);let a=class extends _0x6d0a7c{constructor(_0x3d5ea0,_0x4469f5){var _0x5535f8=_0x58f499;super(),this[_0x5535f8(0x1ff)]=_0x3d5ea0,this['_menuManagerService']=_0x4469f5,this[_0x5535f8(0x1fc)](),this['_initMenus']();}[_0x58f499(0x1fc)](){var _0x379258=_0x58f499;[d,_][_0x379258(0x1ee)](_0x2cbc6a=>{var _0x3bedd5=_0x379258;this[_0x3bedd5(0x1e2)](this[_0x3bedd5(0x1ff)][_0x3bedd5(0x1e0)](_0x2cbc6a));});}[_0x58f499(0x1f0)](){var _0x14d73e=_0x58f499;this['_menuManagerService'][_0x14d73e(0x203)](A);}};a=R([u(0x0,_0x492bb9),u(0x1,_0x1be093)],a);function _0x15c2(){var _0x39be71=['symbol','type','get','menu','552GLgogq','88oJlxfR','length','add','194499FrdWxs','onStarting','DOC_EXCHANGE_CLIENT_PLUGIN','_initCommands','getOwnPropertyDescriptor','UNIVER_DOC','_commandService','defineProperty','2810630vMuoXc','936522rdyNLn','mergeMenu','exchange.download','pluginName','_injector','22192FPLpTV','2xBeacA','docs-exchange-client.operation.exchange','SUBITEMS','registerCommand','534023BvYJrb','disposeWithMe','DirectExportSingle','557377BKsIzg','_configService','OPERATION','BUTTON','55gMfiZe','exchange-client.operation.import-docx','2961315SybFzC','FILE','importDOCXToUnitId','setConfig','forEach','exchange.file','_initMenus'];_0x15c2=function(){return _0x39be71;};return _0x15c2();}var j=Object[_0x58f499(0x200)],w=Object[_0x58f499(0x1fd)],B=(_0xc1eae1,_0x59c727,_0x1395df)=>_0x59c727 in _0xc1eae1?j(_0xc1eae1,_0x59c727,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1395df}):_0xc1eae1[_0x59c727]=_0x1395df,H=(_0x3cb366,_0x265928,_0x3d5ae0,_0x2fb5cb)=>{var _0x5a389f=_0x58f499;for(var _0x107f2e=_0x2fb5cb>0x1?void 0x0:_0x2fb5cb?w(_0x265928,_0x3d5ae0):_0x265928,_0x3ec3e5=_0x3cb366[_0x5a389f(0x1f7)]-0x1,_0x2aacbf;_0x3ec3e5>=0x0;_0x3ec3e5--)(_0x2aacbf=_0x3cb366[_0x3ec3e5])&&(_0x107f2e=_0x2aacbf(_0x107f2e)||_0x107f2e);return _0x107f2e;},g=(_0x3ee0a7,_0x4034be)=>(_0x3ba6d7,_0x4f7c60)=>_0x4034be(_0x3ba6d7,_0x4f7c60,_0x3ee0a7),v=(_0x5bc578,_0x324be,_0x382f3a)=>B(_0x5bc578,typeof _0x324be!=_0x58f499(0x1f1)?_0x324be+'':_0x324be,_0x382f3a);const $=_0x58f499(0x1fb);let s=class extends _0x12f1b6{constructor(_0x5ab53a=m,_0x5a9509,_0x2855c1){var _0x2a8bb4=_0x58f499;super(),this['_config']=_0x5ab53a,this['_injector']=_0x5a9509,this[_0x2a8bb4(0x1e5)]=_0x2855c1;const {menu:_0x330cd1,..._0x3cd6e5}=_0x5ec998({},m,this['_config']);_0x330cd1&&this[_0x2a8bb4(0x1e5)][_0x2a8bb4(0x1ed)](_0x2a8bb4(0x1f4),_0x330cd1,{'merge':!0x0}),this['_configService'][_0x2a8bb4(0x1ed)](b,_0x3cd6e5);}[_0x58f499(0x1fa)](){var _0x33d6e3=_0x58f499;[[a]][_0x33d6e3(0x1ee)](_0x535e23=>this[_0x33d6e3(0x1db)][_0x33d6e3(0x1f8)](_0x535e23));}['onReady'](){var _0x4f0fbf=_0x58f499;this[_0x4f0fbf(0x1db)][_0x4f0fbf(0x1f3)](a);}};v(s,_0x58f499(0x1da),$),v(s,_0x58f499(0x1f2),_0x422311[_0x58f499(0x1fe)]),s=H([_0x139f56(_0x1c14c6),g(0x1,_0x171503(_0x39eedb)),g(0x2,_0x243603)],s);export{_ as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5155e9,_0xaf3c79){var _0x1ec119=_0x5a74,_0x5abadd=_0x5155e9();while(!![]){try{var _0x52d8c1=parseInt(_0x1ec119(0x17c))/0x1*(-parseInt(_0x1ec119(0x172))/0x2)+parseInt(_0x1ec119(0x160))/0x3*(parseInt(_0x1ec119(0x16c))/0x4)+parseInt(_0x1ec119(0x180))/0x5+parseInt(_0x1ec119(0x145))/0x6*(parseInt(_0x1ec119(0x179))/0x7)+-parseInt(_0x1ec119(0x14b))/0x8*(-parseInt(_0x1ec119(0x14e))/0x9)+-parseInt(_0x1ec119(0x146))/0xa+parseInt(_0x1ec119(0x15d))/0xb;if(_0x52d8c1===_0xaf3c79)break;else _0x5abadd['push'](_0x5abadd['shift']());}catch(_0x4d5fb5){_0x5abadd['push'](_0x5abadd['shift']());}}}(_0x22ba,0x6bf95),function(_0x25a9f3,_0x5c590f){var _0x195672=_0x5a74;typeof exports==_0x195672(0x178)&&typeof module<'u'?_0x5c590f(exports,require(_0x195672(0x143)),require(_0x195672(0x175)),require(_0x195672(0x186))):typeof define==_0x195672(0x16f)&&define[_0x195672(0x157)]?define([_0x195672(0x185),_0x195672(0x143),_0x195672(0x175),_0x195672(0x186)],_0x5c590f):(_0x25a9f3=typeof globalThis<'u'?globalThis:_0x25a9f3||self,_0x5c590f(_0x25a9f3[_0x195672(0x171)]={},_0x25a9f3['UniverProExchangeClient'],_0x25a9f3[_0x195672(0x167)],_0x25a9f3[_0x195672(0x177)]));}(this,function(_0x588866,_0x3cc9c9,_0x206702,_0x127cfc){'use strict';var _0x2a2e09=_0x5a74;const _0x189571=_0x2a2e09(0x183),_0x3e1c68={},_0x5d1d6b={'id':_0x2a2e09(0x16d),'type':_0x206702['CommandType']['OPERATION'],'handler':async _0x552dba=>(_0x552dba[_0x2a2e09(0x16e)](_0x3cc9c9[_0x2a2e09(0x17f)])[_0x2a2e09(0x170)](),!0x0)},_0x398e02={'id':_0x2a2e09(0x165),'type':_0x206702[_0x2a2e09(0x150)][_0x2a2e09(0x15a)],'handler':async _0x15c11f=>(_0x15c11f['get'](_0x3cc9c9['IExchangeOperateService'])['exportDOCXByUnitId'](),!0x0)},_0x273d9e=_0x2a2e09(0x182);function _0x5e0112(_0x11edda){var _0x17e88b=_0x2a2e09;return{'id':_0x273d9e,'type':_0x127cfc[_0x17e88b(0x153)]['SUBITEMS'],'icon':_0x17e88b(0x166),'tooltip':_0x17e88b(0x158),'hidden$':_0x127cfc['getMenuHiddenObservable'](_0x11edda,_0x206702[_0x17e88b(0x16b)][_0x17e88b(0x159)])};}function _0xfa3200(){var _0x2946d1=_0x2a2e09;return{'id':_0x5d1d6b['id'],'type':_0x127cfc['MenuItemType']['BUTTON'],'title':_0x2946d1(0x141),'icon':_0x2946d1(0x156)};}function _0x45279c(){var _0x5b7049=_0x2a2e09;return{'id':_0x398e02['id'],'type':_0x127cfc[_0x5b7049(0x153)][_0x5b7049(0x149)],'title':_0x5b7049(0x14d),'icon':'ExportSingle'};}const _0x3e8cf6={[_0x127cfc['RibbonStartGroup'][_0x2a2e09(0x181)]]:{[_0x273d9e]:{'order':0x4,'menuItemFactory':_0x5e0112,[_0x5d1d6b['id']]:{'order':0x0,'menuItemFactory':_0xfa3200},[_0x398e02['id']]:{'order':0x1,'menuItemFactory':_0x45279c}}}};var _0x6bb4da=Object['getOwnPropertyDescriptor'],_0x21fb45=(_0x370436,_0x30add9,_0x29e34c,_0x5f0fc6)=>{var _0xe029f9=_0x2a2e09;for(var _0x57ce39=_0x5f0fc6>0x1?void 0x0:_0x5f0fc6?_0x6bb4da(_0x30add9,_0x29e34c):_0x30add9,_0x1aed85=_0x370436[_0xe029f9(0x168)]-0x1,_0x24f059;_0x1aed85>=0x0;_0x1aed85--)(_0x24f059=_0x370436[_0x1aed85])&&(_0x57ce39=_0x24f059(_0x57ce39)||_0x57ce39);return _0x57ce39;},_0x4df428=(_0x370331,_0x2d4ae4)=>(_0x218101,_0x3a89cc)=>_0x2d4ae4(_0x218101,_0x3a89cc,_0x370331);let _0x497739=class extends _0x206702[_0x2a2e09(0x188)]{constructor(_0xc6afe,_0x5cb2e6){var _0xc23ef6=_0x2a2e09;super(),this[_0xc23ef6(0x173)]=_0xc6afe,this[_0xc23ef6(0x14c)]=_0x5cb2e6,this['_initCommands'](),this[_0xc23ef6(0x148)]();}[_0x2a2e09(0x152)](){var _0x59d108=_0x2a2e09;[_0x5d1d6b,_0x398e02][_0x59d108(0x15f)](_0x5073b1=>{var _0x484b46=_0x59d108;this[_0x484b46(0x15c)](this['_commandService'][_0x484b46(0x16a)](_0x5073b1));});}[_0x2a2e09(0x148)](){var _0x14e3e4=_0x2a2e09;this[_0x14e3e4(0x14c)][_0x14e3e4(0x14a)](_0x3e8cf6);}};_0x497739=_0x21fb45([_0x4df428(0x0,_0x206702['ICommandService']),_0x4df428(0x1,_0x127cfc[_0x2a2e09(0x169)])],_0x497739);var _0x181a9b=Object[_0x2a2e09(0x17b)],_0x53ca70=Object[_0x2a2e09(0x14f)],_0x5a2ae7=(_0x163fe9,_0x1535ff,_0x2ba7fa)=>_0x1535ff in _0x163fe9?_0x181a9b(_0x163fe9,_0x1535ff,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2ba7fa}):_0x163fe9[_0x1535ff]=_0x2ba7fa,_0x3fd200=(_0x5547d7,_0x74f720,_0x5b69e5,_0x14f32d)=>{var _0x29182c=_0x2a2e09;for(var _0x33de8c=_0x14f32d>0x1?void 0x0:_0x14f32d?_0x53ca70(_0x74f720,_0x5b69e5):_0x74f720,_0x188144=_0x5547d7[_0x29182c(0x168)]-0x1,_0x245503;_0x188144>=0x0;_0x188144--)(_0x245503=_0x5547d7[_0x188144])&&(_0x33de8c=_0x245503(_0x33de8c)||_0x33de8c);return _0x33de8c;},_0x545ee4=(_0x462843,_0x2d5131)=>(_0x28f7d9,_0x1da0c2)=>_0x2d5131(_0x28f7d9,_0x1da0c2,_0x462843),_0x12dafa=(_0x3c5c75,_0x27c9b0,_0x541d2a)=>_0x5a2ae7(_0x3c5c75,typeof _0x27c9b0!=_0x2a2e09(0x142)?_0x27c9b0+'':_0x27c9b0,_0x541d2a);const _0x211ee9=_0x2a2e09(0x155);_0x588866[_0x2a2e09(0x144)]=class extends _0x206702['Plugin']{constructor(_0x419394=_0x3e1c68,_0xf647ac,_0x204ba1){var _0xaea63c=_0x2a2e09;super(),this[_0xaea63c(0x187)]=_0x419394,this[_0xaea63c(0x17e)]=_0xf647ac,this['_configService']=_0x204ba1;const {menu:_0x1364a7,..._0x4d3ac3}=_0x206702[_0xaea63c(0x154)]({},_0x3e1c68,this[_0xaea63c(0x187)]);_0x1364a7&&this[_0xaea63c(0x162)][_0xaea63c(0x15e)](_0xaea63c(0x163),_0x1364a7,{'merge':!0x0}),this[_0xaea63c(0x162)]['setConfig'](_0x189571,_0x4d3ac3);}['onStarting'](){var _0x406807=_0x2a2e09;[[_0x497739]]['forEach'](_0x1527df=>this[_0x406807(0x17e)]['add'](_0x1527df));}[_0x2a2e09(0x140)](){this['_injector']['get'](_0x497739);}},_0x12dafa(_0x588866['UniverDocsExchangeClientPlugin'],_0x2a2e09(0x147),_0x211ee9),_0x12dafa(_0x588866['UniverDocsExchangeClientPlugin'],_0x2a2e09(0x184),_0x206702[_0x2a2e09(0x16b)][_0x2a2e09(0x159)]),_0x588866[_0x2a2e09(0x144)]=_0x3fd200([_0x206702[_0x2a2e09(0x174)](_0x3cc9c9[_0x2a2e09(0x17d)]),_0x545ee4(0x1,_0x206702[_0x2a2e09(0x151)](_0x206702['Injector'])),_0x545ee4(0x2,_0x206702[_0x2a2e09(0x17a)])],_0x588866[_0x2a2e09(0x144)]),_0x588866[_0x2a2e09(0x164)]=_0x398e02,_0x588866[_0x2a2e09(0x176)]=_0x5d1d6b,Object[_0x2a2e09(0x17b)](_0x588866,Symbol[_0x2a2e09(0x15b)],{'value':_0x2a2e09(0x161)});}));function _0x5a74(_0x211b15,_0x160249){var _0x22baaa=_0x22ba();return _0x5a74=function(_0x5a740f,_0xfc18bc){_0x5a740f=_0x5a740f-0x140;var _0x19fd61=_0x22baaa[_0x5a740f];return _0x19fd61;},_0x5a74(_0x211b15,_0x160249);}function _0x22ba(){var _0x5c41e7=['amd','exchange.file','UNIVER_DOC','OPERATION','toStringTag','disposeWithMe','7442787tevxnq','setConfig','forEach','6JVrCDz','Module','_configService','menu','ExportDOCXOperation','exchange-client.operation.export-docx','DirectExportSingle','UniverCore','length','IMenuManagerService','registerCommand','UniverInstanceType','19212FgfeKg','exchange-client.operation.import-docx','get','function','importDOCXToUnitId','UniverProDocsExchangeClient','2766yDuACG','_commandService','DependentOn','@univerjs/core','ImportDOCXOperation','UniverUi','object','70dJSdqP','IConfigService','defineProperty','426nJxVQV','UniverExchangeClientPlugin','_injector','IExchangeOperateService','911170wjGHEm','FILE','docs-exchange-client.operation.exchange','docs-exchange-client.config','type','exports','@univerjs/ui','_config','Disposable','onReady','exchange.upload','symbol','@univerjs-pro/exchange-client','UniverDocsExchangeClientPlugin','97146MeMZzp','2017580hSSOWG','pluginName','_initMenus','BUTTON','mergeMenu','324496fVpxmY','_menuManagerService','exchange.download','45DnYqEx','getOwnPropertyDescriptor','CommandType','Inject','_initCommands','MenuItemType','merge','DOC_EXCHANGE_CLIENT_PLUGIN','FolderSingle'];_0x22ba=function(){return _0x5c41e7;};return _0x22ba();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/docs-exchange-client",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
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.6.
|
|
46
|
-
"@univerjs/
|
|
47
|
-
"@univerjs/
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.6.1",
|
|
46
|
+
"@univerjs/ui": "0.6.1",
|
|
47
|
+
"@univerjs/core": "0.6.1"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"typescript": "^5.7.3",
|
|
51
|
-
"vite": "^6.1.
|
|
52
|
-
"vitest": "^3.0.
|
|
53
|
-
"@univerjs-infra/shared": "0.6.
|
|
51
|
+
"vite": "^6.1.1",
|
|
52
|
+
"vitest": "^3.0.6",
|
|
53
|
+
"@univerjs-infra/shared": "0.6.1"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"test": "vitest run",
|