@univerjs-pro/docs-exchange-client 0.10.9 → 0.10.10
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 +5 -5
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x50a65c=_0x2ec4;(function(_0x51c521,_0x3082ea){var _0xf3f63f=_0x2ec4,_0x1432f1=_0x51c521();while(!![]){try{var _0x553da2=-parseInt(_0xf3f63f(0x14c))/0x1*(parseInt(_0xf3f63f(0x13b))/0x2)+-parseInt(_0xf3f63f(0x13e))/0x3+parseInt(_0xf3f63f(0x139))/0x4+-parseInt(_0xf3f63f(0x144))/0x5*(parseInt(_0xf3f63f(0x121))/0x6)+parseInt(_0xf3f63f(0x14d))/0x7*(-parseInt(_0xf3f63f(0x126))/0x8)+-parseInt(_0xf3f63f(0x15a))/0x9*(parseInt(_0xf3f63f(0x133))/0xa)+parseInt(_0xf3f63f(0x128))/0xb*(parseInt(_0xf3f63f(0x13d))/0xc);if(_0x553da2===_0x3082ea)break;else _0x1432f1['push'](_0x1432f1['shift']());}catch(_0x382117){_0x1432f1['push'](_0x1432f1['shift']());}}}(_0x4795,0x33e48));Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x50a65c(0x138)});const d=require('@univerjs-pro/exchange-client'),i=require('@univerjs/core'),a=require('@univerjs/ui'),p={'id':'exchange-client.operation.import-docx','type':i['CommandType'][_0x50a65c(0x131)],'handler':async _0x93ffbe=>(_0x93ffbe[_0x50a65c(0x12d)](d[_0x50a65c(0x151)])[_0x50a65c(0x132)](),!0x0)},g={'id':'exchange-client.operation.export-docx','type':i['CommandType'][_0x50a65c(0x131)],'handler':async _0x5815c7=>(_0x5815c7[_0x50a65c(0x12d)](d[_0x50a65c(0x151)])[_0x50a65c(0x149)](),!0x0)},I=_0x50a65c(0x129),l={},h=_0x50a65c(0x136);function v(_0x28c515){var _0x26f000=_0x50a65c;return{'id':h,'type':a[_0x26f000(0x12f)][_0x26f000(0x147)],'icon':_0x26f000(0x14a),'tooltip':'exchange.file','hidden$':a[_0x26f000(0x155)](_0x28c515,i[_0x26f000(0x12a)][_0x26f000(0x142)])};}function O(){var _0x22b73a=_0x50a65c;return{'id':p['id'],'type':a[_0x22b73a(0x12f)][_0x22b73a(0x15b)],'title':_0x22b73a(0x130),'icon':_0x22b73a(0x127)};}function E(){var _0x420998=_0x50a65c;return{'id':g['id'],'type':a[_0x420998(0x12f)][_0x420998(0x15b)],'title':_0x420998(0x14f),'icon':'ExportIcon'};}function _0x2ec4(_0x56f939,_0x85ff39){var _0x4795f5=_0x4795();return _0x2ec4=function(_0x2ec46d,_0x532a83){_0x2ec46d=_0x2ec46d-0x121;var _0x59fee6=_0x4795f5[_0x2ec46d];return _0x59fee6;},_0x2ec4(_0x56f939,_0x85ff39);}const x={[a[_0x50a65c(0x137)][_0x50a65c(0x14b)]]:{[h]:{'order':0.3,'menuItemFactory':v,[p['id']]:{'order':0x0,'menuItemFactory':O},[g['id']]:{'order':0x1,'menuItemFactory':E}}}};function _0x4795(){var _0x3b31bf=['_menuManagerService','Disposable','_injector','80lnkedn','FolderIcon','13320175fgloxi','docs-exchange-client.config','UniverInstanceType','UniverExchangeClientPlugin','registerCommand','get','mergeMenu','MenuItemType','exchange.upload','OPERATION','importDOCXToUnitId','370wOkyij','UniverDocsExchangeClientPlugin','type','docs-exchange-client.operation.exchange','RibbonStartGroup','Module','486980GAICDq','_commandService','44246ZMGNXG','_config','12pWaiBY','1228314iiJwlr','setConfig','DOC_EXCHANGE_CLIENT_PLUGIN','_configService','UNIVER_DOC','length','470qeCVoW','menu','Plugin','SUBITEMS','IConfigService','exportDOCXByUnitId','DirectExportIcon','OTHERS','1suuiaG','242221QkkWua','ICommandService','exchange.download','ExportDOCXOperation','IExchangeOperateService','disposeWithMe','DependentOn','onStarting','getMenuHiddenObservable','_initCommands','merge','symbol','forEach','82197dBWCOD','BUTTON','getOwnPropertyDescriptor','ImportDOCXOperation','294ticxpN','IMenuManagerService'];_0x4795=function(){return _0x3b31bf;};return _0x4795();}var D=Object[_0x50a65c(0x15c)],f=(_0x1f6a1b,_0x2422fb,_0x1b7c9a,_0x3c263c)=>{var _0x5216ce=_0x50a65c;for(var _0x30b008=_0x3c263c>0x1?void 0x0:_0x3c263c?D(_0x2422fb,_0x1b7c9a):_0x2422fb,_0x3348ea=_0x1f6a1b[_0x5216ce(0x143)]-0x1,_0x128b93;_0x3348ea>=0x0;_0x3348ea--)(_0x128b93=_0x1f6a1b[_0x3348ea])&&(_0x30b008=_0x128b93(_0x30b008)||_0x30b008);return _0x30b008;},_=(_0xd5719e,_0x4918e7)=>(_0x1d142b,_0x3e3939)=>_0x4918e7(_0x1d142b,_0x3e3939,_0xd5719e);let u=class extends i[_0x50a65c(0x124)]{constructor(_0x3d41b5,_0xec5403){var _0x327af4=_0x50a65c;super(),this[_0x327af4(0x13a)]=_0x3d41b5,this[_0x327af4(0x123)]=_0xec5403,this[_0x327af4(0x156)](),this['_initMenus']();}['_initCommands'](){var _0x43b89e=_0x50a65c;[p,g][_0x43b89e(0x159)](_0x55924c=>{var _0x2209ef=_0x43b89e;this[_0x2209ef(0x152)](this['_commandService'][_0x2209ef(0x12c)](_0x55924c));});}['_initMenus'](){var _0xdd808c=_0x50a65c;this[_0xdd808c(0x123)][_0xdd808c(0x12e)](x);}};u=f([_(0x0,i[_0x50a65c(0x14e)]),_(0x1,a[_0x50a65c(0x122)])],u);var y=Object['defineProperty'],S=Object[_0x50a65c(0x15c)],P=(_0x3a2969,_0x62af70,_0x4e7fcc)=>_0x62af70 in _0x3a2969?y(_0x3a2969,_0x62af70,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4e7fcc}):_0x3a2969[_0x62af70]=_0x4e7fcc,T=(_0xda36b3,_0x1e6c1e,_0x227bbd,_0x217f2d)=>{for(var _0x13f4e0=_0x217f2d>0x1?void 0x0:_0x217f2d?S(_0x1e6c1e,_0x227bbd):_0x1e6c1e,_0x4d408e=_0xda36b3['length']-0x1,_0x197a69;_0x4d408e>=0x0;_0x4d408e--)(_0x197a69=_0xda36b3[_0x4d408e])&&(_0x13f4e0=_0x197a69(_0x13f4e0)||_0x13f4e0);return _0x13f4e0;},m=(_0x1d230f,_0x3c1997)=>(_0x8d7c72,_0x3ecd83)=>_0x3c1997(_0x8d7c72,_0x3ecd83,_0x1d230f),C=(_0xd83643,_0x3b75d3,_0x550028)=>P(_0xd83643,typeof _0x3b75d3!=_0x50a65c(0x158)?_0x3b75d3+'':_0x3b75d3,_0x550028);const U=_0x50a65c(0x140);exports['UniverDocsExchangeClientPlugin']=class extends i[_0x50a65c(0x146)]{constructor(_0x49e371=l,_0x2e3a59,_0x3e2e30){var _0x478ebe=_0x50a65c;super(),this[_0x478ebe(0x13c)]=_0x49e371,this[_0x478ebe(0x125)]=_0x2e3a59,this['_configService']=_0x3e2e30;const {menu:_0x638c86,..._0x26f4dd}=i[_0x478ebe(0x157)]({},l,this[_0x478ebe(0x13c)]);_0x638c86&&this[_0x478ebe(0x141)]['setConfig'](_0x478ebe(0x145),_0x638c86,{'merge':!0x0}),this['_configService'][_0x478ebe(0x13f)](I,_0x26f4dd);}[_0x50a65c(0x154)](){var _0x3aeafe=_0x50a65c;[[u]][_0x3aeafe(0x159)](_0x14185a=>this[_0x3aeafe(0x125)]['add'](_0x14185a));}['onReady'](){var _0x9b316=_0x50a65c;this[_0x9b316(0x125)][_0x9b316(0x12d)](u);}},C(exports[_0x50a65c(0x134)],'pluginName',U),C(exports[_0x50a65c(0x134)],_0x50a65c(0x135),i[_0x50a65c(0x12a)]['UNIVER_DOC']),exports[_0x50a65c(0x134)]=T([i[_0x50a65c(0x153)](d[_0x50a65c(0x12b)]),m(0x1,i['Inject'](i['Injector'])),m(0x2,i[_0x50a65c(0x148)])],exports['UniverDocsExchangeClientPlugin']),exports[_0x50a65c(0x150)]=g,exports[_0x50a65c(0x15d)]=p;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var _0x416b9b=_0x466d;(function(_0x18a1c0,_0x38059a){var _0x461043=_0x466d,_0x98c94=_0x18a1c0();while(!![]){try{var _0x54d13a=-parseInt(_0x461043(0x1bf))/0x1+-parseInt(_0x461043(0x1bd))/0x2*(-parseInt(_0x461043(0x1b6))/0x3)+parseInt(_0x461043(0x1de))/0x4+-parseInt(_0x461043(0x1c3))/0x5*(parseInt(_0x461043(0x1c5))/0x6)+-parseInt(_0x461043(0x1d9))/0x7*(-parseInt(_0x461043(0x1cd))/0x8)+parseInt(_0x461043(0x1b4))/0x9*(-parseInt(_0x461043(0x1db))/0xa)+parseInt(_0x461043(0x1d7))/0xb;if(_0x54d13a===_0x38059a)break;else _0x98c94['push'](_0x98c94['shift']());}catch(_0x1f0aaf){_0x98c94['push'](_0x98c94['shift']());}}}(_0x3c9d,0xe9e24));import{IExchangeOperateService as _0x4e546e,UniverExchangeClientPlugin as _0x1a2420}from'@univerjs-pro/exchange-client';import{CommandType as _0x11c29a,UniverInstanceType as _0x1318da,Disposable as _0x13c2fb,ICommandService as _0x111aed,DependentOn as _0x3cc3bd,Inject as _0x458511,Injector as _0x35e3e6,IConfigService as _0x108649,Plugin as _0x58b919,merge as _0x1b002b}from'@univerjs/core';import{MenuItemType as _0x3c6112,getMenuHiddenObservable as _0x530aee,RibbonStartGroup as _0x32f06e,IMenuManagerService as _0x37fb31}from'@univerjs/ui';const d={'id':_0x416b9b(0x1df),'type':_0x11c29a[_0x416b9b(0x1c9)],'handler':async _0x139cb1=>(_0x139cb1[_0x416b9b(0x1d6)](_0x4e546e)[_0x416b9b(0x1be)](),!0x0)},_={'id':'exchange-client.operation.export-docx','type':_0x11c29a[_0x416b9b(0x1c9)],'handler':async _0x4841c3=>(_0x4841c3[_0x416b9b(0x1d6)](_0x4e546e)[_0x416b9b(0x1c2)](),!0x0)},b=_0x416b9b(0x1d2),m={},C='docs-exchange-client.operation.exchange';function X(_0x3c73cf){var _0x471d05=_0x416b9b;return{'id':C,'type':_0x3c6112[_0x471d05(0x1d5)],'icon':_0x471d05(0x1b5),'tooltip':'exchange.file','hidden$':_0x530aee(_0x3c73cf,_0x1318da[_0x471d05(0x1d1)])};}function F(){var _0xca4a4c=_0x416b9b;return{'id':d['id'],'type':_0x3c6112[_0xca4a4c(0x1d4)],'title':_0xca4a4c(0x1d0),'icon':_0xca4a4c(0x1da)};}function G(){var _0x28d02e=_0x416b9b;return{'id':_['id'],'type':_0x3c6112['BUTTON'],'title':_0x28d02e(0x1c7),'icon':'ExportIcon'};}const R={[_0x32f06e[_0x416b9b(0x1c0)]]:{[C]:{'order':0.3,'menuItemFactory':X,[d['id']]:{'order':0x0,'menuItemFactory':F},[_['id']]:{'order':0x1,'menuItemFactory':G}}}};function _0x3c9d(){var _0x2b85b2=['4859833tzBSlF','menu','14kgPIMO','FolderIcon','2423980zsIsSB','_configService','forEach','6989556kOOLJm','exchange-client.operation.import-docx','_initMenus','63eTAeho','DirectExportIcon','12BdrFoK','pluginName','symbol','defineProperty','_commandService','mergeMenu','setConfig','650458YCdkdq','importDOCXToUnitId','1587775UUxPoP','OTHERS','disposeWithMe','exportDOCXByUnitId','3383305eBnsUc','_injector','6JkkQIm','DOC_EXCHANGE_CLIENT_PLUGIN','exchange.download','length','OPERATION','add','_menuManagerService','onStarting','5716408oIsGcv','type','_config','exchange.upload','UNIVER_DOC','docs-exchange-client.config','onReady','BUTTON','SUBITEMS','get'];_0x3c9d=function(){return _0x2b85b2;};return _0x3c9d();}var A=Object['getOwnPropertyDescriptor'],j=(_0x452ce8,_0x32799c,_0x22118f,_0x58a967)=>{var _0x51dda2=_0x416b9b;for(var _0x5777c1=_0x58a967>0x1?void 0x0:_0x58a967?A(_0x32799c,_0x22118f):_0x32799c,_0x1ce147=_0x452ce8[_0x51dda2(0x1c8)]-0x1,_0x23b4db;_0x1ce147>=0x0;_0x1ce147--)(_0x23b4db=_0x452ce8[_0x1ce147])&&(_0x5777c1=_0x23b4db(_0x5777c1)||_0x5777c1);return _0x5777c1;},u=(_0x1105f8,_0x4466ca)=>(_0x23d174,_0x5854d3)=>_0x4466ca(_0x23d174,_0x5854d3,_0x1105f8);let a=class extends _0x13c2fb{constructor(_0x44879b,_0x1f797b){var _0xd835dc=_0x416b9b;super(),this[_0xd835dc(0x1ba)]=_0x44879b,this['_menuManagerService']=_0x1f797b,this['_initCommands'](),this['_initMenus']();}['_initCommands'](){var _0x2ec996=_0x416b9b;[d,_][_0x2ec996(0x1dd)](_0x15cc9d=>{var _0x3a021f=_0x2ec996;this[_0x3a021f(0x1c1)](this[_0x3a021f(0x1ba)]['registerCommand'](_0x15cc9d));});}[_0x416b9b(0x1e0)](){var _0xbe14fb=_0x416b9b;this[_0xbe14fb(0x1cb)][_0xbe14fb(0x1bb)](R);}};function _0x466d(_0x506e2a,_0x54470e){var _0x3c9d24=_0x3c9d();return _0x466d=function(_0x466d01,_0x169f40){_0x466d01=_0x466d01-0x1b4;var _0x33926f=_0x3c9d24[_0x466d01];return _0x33926f;},_0x466d(_0x506e2a,_0x54470e);}a=j([u(0x0,_0x111aed),u(0x1,_0x37fb31)],a);var w=Object[_0x416b9b(0x1b9)],H=Object['getOwnPropertyDescriptor'],L=(_0x1f06c9,_0x2d3efc,_0x2cfc8e)=>_0x2d3efc in _0x1f06c9?w(_0x1f06c9,_0x2d3efc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2cfc8e}):_0x1f06c9[_0x2d3efc]=_0x2cfc8e,B=(_0x547aca,_0x53a3fd,_0x3695ec,_0x4e8d09)=>{for(var _0x21518f=_0x4e8d09>0x1?void 0x0:_0x4e8d09?H(_0x53a3fd,_0x3695ec):_0x53a3fd,_0x38e5c4=_0x547aca['length']-0x1,_0x1e5599;_0x38e5c4>=0x0;_0x38e5c4--)(_0x1e5599=_0x547aca[_0x38e5c4])&&(_0x21518f=_0x1e5599(_0x21518f)||_0x21518f);return _0x21518f;},g=(_0x200416,_0x1876d1)=>(_0x21ae95,_0x1a653d)=>_0x1876d1(_0x21ae95,_0x1a653d,_0x200416),O=(_0x41fbad,_0x54900,_0x5de178)=>L(_0x41fbad,typeof _0x54900!=_0x416b9b(0x1b8)?_0x54900+'':_0x54900,_0x5de178);const $=_0x416b9b(0x1c6);let s=class extends _0x58b919{constructor(_0x3c426a=m,_0xd749e,_0x5a44f5){var _0xdf6e29=_0x416b9b;super(),this[_0xdf6e29(0x1cf)]=_0x3c426a,this[_0xdf6e29(0x1c4)]=_0xd749e,this[_0xdf6e29(0x1dc)]=_0x5a44f5;const {menu:_0x16d3c9,..._0x4bf517}=_0x1b002b({},m,this[_0xdf6e29(0x1cf)]);_0x16d3c9&&this[_0xdf6e29(0x1dc)][_0xdf6e29(0x1bc)](_0xdf6e29(0x1d8),_0x16d3c9,{'merge':!0x0}),this['_configService'][_0xdf6e29(0x1bc)](b,_0x4bf517);}[_0x416b9b(0x1cc)](){var _0x2e4112=_0x416b9b;[[a]]['forEach'](_0x2b24dd=>this[_0x2e4112(0x1c4)][_0x2e4112(0x1ca)](_0x2b24dd));}[_0x416b9b(0x1d3)](){var _0x1d68a2=_0x416b9b;this['_injector'][_0x1d68a2(0x1d6)](a);}};O(s,_0x416b9b(0x1b7),$),O(s,_0x416b9b(0x1ce),_0x1318da[_0x416b9b(0x1d1)]),s=B([_0x3cc3bd(_0x1a2420),g(0x1,_0x458511(_0x35e3e6)),g(0x2,_0x108649)],s);export{_ as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var _0x416b9b=_0x466d;(function(_0x18a1c0,_0x38059a){var _0x461043=_0x466d,_0x98c94=_0x18a1c0();while(!![]){try{var _0x54d13a=-parseInt(_0x461043(0x1bf))/0x1+-parseInt(_0x461043(0x1bd))/0x2*(-parseInt(_0x461043(0x1b6))/0x3)+parseInt(_0x461043(0x1de))/0x4+-parseInt(_0x461043(0x1c3))/0x5*(parseInt(_0x461043(0x1c5))/0x6)+-parseInt(_0x461043(0x1d9))/0x7*(-parseInt(_0x461043(0x1cd))/0x8)+parseInt(_0x461043(0x1b4))/0x9*(-parseInt(_0x461043(0x1db))/0xa)+parseInt(_0x461043(0x1d7))/0xb;if(_0x54d13a===_0x38059a)break;else _0x98c94['push'](_0x98c94['shift']());}catch(_0x1f0aaf){_0x98c94['push'](_0x98c94['shift']());}}}(_0x3c9d,0xe9e24));import{IExchangeOperateService as _0x4e546e,UniverExchangeClientPlugin as _0x1a2420}from'@univerjs-pro/exchange-client';import{CommandType as _0x11c29a,UniverInstanceType as _0x1318da,Disposable as _0x13c2fb,ICommandService as _0x111aed,DependentOn as _0x3cc3bd,Inject as _0x458511,Injector as _0x35e3e6,IConfigService as _0x108649,Plugin as _0x58b919,merge as _0x1b002b}from'@univerjs/core';import{MenuItemType as _0x3c6112,getMenuHiddenObservable as _0x530aee,RibbonStartGroup as _0x32f06e,IMenuManagerService as _0x37fb31}from'@univerjs/ui';const d={'id':_0x416b9b(0x1df),'type':_0x11c29a[_0x416b9b(0x1c9)],'handler':async _0x139cb1=>(_0x139cb1[_0x416b9b(0x1d6)](_0x4e546e)[_0x416b9b(0x1be)](),!0x0)},_={'id':'exchange-client.operation.export-docx','type':_0x11c29a[_0x416b9b(0x1c9)],'handler':async _0x4841c3=>(_0x4841c3[_0x416b9b(0x1d6)](_0x4e546e)[_0x416b9b(0x1c2)](),!0x0)},b=_0x416b9b(0x1d2),m={},C='docs-exchange-client.operation.exchange';function X(_0x3c73cf){var _0x471d05=_0x416b9b;return{'id':C,'type':_0x3c6112[_0x471d05(0x1d5)],'icon':_0x471d05(0x1b5),'tooltip':'exchange.file','hidden$':_0x530aee(_0x3c73cf,_0x1318da[_0x471d05(0x1d1)])};}function F(){var _0xca4a4c=_0x416b9b;return{'id':d['id'],'type':_0x3c6112[_0xca4a4c(0x1d4)],'title':_0xca4a4c(0x1d0),'icon':_0xca4a4c(0x1da)};}function G(){var _0x28d02e=_0x416b9b;return{'id':_['id'],'type':_0x3c6112['BUTTON'],'title':_0x28d02e(0x1c7),'icon':'ExportIcon'};}const R={[_0x32f06e[_0x416b9b(0x1c0)]]:{[C]:{'order':0.3,'menuItemFactory':X,[d['id']]:{'order':0x0,'menuItemFactory':F},[_['id']]:{'order':0x1,'menuItemFactory':G}}}};function _0x3c9d(){var _0x2b85b2=['4859833tzBSlF','menu','14kgPIMO','FolderIcon','2423980zsIsSB','_configService','forEach','6989556kOOLJm','exchange-client.operation.import-docx','_initMenus','63eTAeho','DirectExportIcon','12BdrFoK','pluginName','symbol','defineProperty','_commandService','mergeMenu','setConfig','650458YCdkdq','importDOCXToUnitId','1587775UUxPoP','OTHERS','disposeWithMe','exportDOCXByUnitId','3383305eBnsUc','_injector','6JkkQIm','DOC_EXCHANGE_CLIENT_PLUGIN','exchange.download','length','OPERATION','add','_menuManagerService','onStarting','5716408oIsGcv','type','_config','exchange.upload','UNIVER_DOC','docs-exchange-client.config','onReady','BUTTON','SUBITEMS','get'];_0x3c9d=function(){return _0x2b85b2;};return _0x3c9d();}var A=Object['getOwnPropertyDescriptor'],j=(_0x452ce8,_0x32799c,_0x22118f,_0x58a967)=>{var _0x51dda2=_0x416b9b;for(var _0x5777c1=_0x58a967>0x1?void 0x0:_0x58a967?A(_0x32799c,_0x22118f):_0x32799c,_0x1ce147=_0x452ce8[_0x51dda2(0x1c8)]-0x1,_0x23b4db;_0x1ce147>=0x0;_0x1ce147--)(_0x23b4db=_0x452ce8[_0x1ce147])&&(_0x5777c1=_0x23b4db(_0x5777c1)||_0x5777c1);return _0x5777c1;},u=(_0x1105f8,_0x4466ca)=>(_0x23d174,_0x5854d3)=>_0x4466ca(_0x23d174,_0x5854d3,_0x1105f8);let a=class extends _0x13c2fb{constructor(_0x44879b,_0x1f797b){var _0xd835dc=_0x416b9b;super(),this[_0xd835dc(0x1ba)]=_0x44879b,this['_menuManagerService']=_0x1f797b,this['_initCommands'](),this['_initMenus']();}['_initCommands'](){var _0x2ec996=_0x416b9b;[d,_][_0x2ec996(0x1dd)](_0x15cc9d=>{var _0x3a021f=_0x2ec996;this[_0x3a021f(0x1c1)](this[_0x3a021f(0x1ba)]['registerCommand'](_0x15cc9d));});}[_0x416b9b(0x1e0)](){var _0xbe14fb=_0x416b9b;this[_0xbe14fb(0x1cb)][_0xbe14fb(0x1bb)](R);}};function _0x466d(_0x506e2a,_0x54470e){var _0x3c9d24=_0x3c9d();return _0x466d=function(_0x466d01,_0x169f40){_0x466d01=_0x466d01-0x1b4;var _0x33926f=_0x3c9d24[_0x466d01];return _0x33926f;},_0x466d(_0x506e2a,_0x54470e);}a=j([u(0x0,_0x111aed),u(0x1,_0x37fb31)],a);var w=Object[_0x416b9b(0x1b9)],H=Object['getOwnPropertyDescriptor'],L=(_0x1f06c9,_0x2d3efc,_0x2cfc8e)=>_0x2d3efc in _0x1f06c9?w(_0x1f06c9,_0x2d3efc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2cfc8e}):_0x1f06c9[_0x2d3efc]=_0x2cfc8e,B=(_0x547aca,_0x53a3fd,_0x3695ec,_0x4e8d09)=>{for(var _0x21518f=_0x4e8d09>0x1?void 0x0:_0x4e8d09?H(_0x53a3fd,_0x3695ec):_0x53a3fd,_0x38e5c4=_0x547aca['length']-0x1,_0x1e5599;_0x38e5c4>=0x0;_0x38e5c4--)(_0x1e5599=_0x547aca[_0x38e5c4])&&(_0x21518f=_0x1e5599(_0x21518f)||_0x21518f);return _0x21518f;},g=(_0x200416,_0x1876d1)=>(_0x21ae95,_0x1a653d)=>_0x1876d1(_0x21ae95,_0x1a653d,_0x200416),O=(_0x41fbad,_0x54900,_0x5de178)=>L(_0x41fbad,typeof _0x54900!=_0x416b9b(0x1b8)?_0x54900+'':_0x54900,_0x5de178);const $=_0x416b9b(0x1c6);let s=class extends _0x58b919{constructor(_0x3c426a=m,_0xd749e,_0x5a44f5){var _0xdf6e29=_0x416b9b;super(),this[_0xdf6e29(0x1cf)]=_0x3c426a,this[_0xdf6e29(0x1c4)]=_0xd749e,this[_0xdf6e29(0x1dc)]=_0x5a44f5;const {menu:_0x16d3c9,..._0x4bf517}=_0x1b002b({},m,this[_0xdf6e29(0x1cf)]);_0x16d3c9&&this[_0xdf6e29(0x1dc)][_0xdf6e29(0x1bc)](_0xdf6e29(0x1d8),_0x16d3c9,{'merge':!0x0}),this['_configService'][_0xdf6e29(0x1bc)](b,_0x4bf517);}[_0x416b9b(0x1cc)](){var _0x2e4112=_0x416b9b;[[a]]['forEach'](_0x2b24dd=>this[_0x2e4112(0x1c4)][_0x2e4112(0x1ca)](_0x2b24dd));}[_0x416b9b(0x1d3)](){var _0x1d68a2=_0x416b9b;this['_injector'][_0x1d68a2(0x1d6)](a);}};O(s,_0x416b9b(0x1b7),$),O(s,_0x416b9b(0x1ce),_0x1318da[_0x416b9b(0x1d1)]),s=B([_0x3cc3bd(_0x1a2420),g(0x1,_0x458511(_0x35e3e6)),g(0x2,_0x108649)],s);export{_ as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x2458(){var _0x3eafd7=['_menuManagerService','188392Kfdcga','_configService','length','1793238oFluHF','Injector','get','BUTTON','UniverExchangeClientPlugin','importDOCXToUnitId','3505447JsVJJc','getOwnPropertyDescriptor','setConfig','OPERATION','UNIVER_DOC','object','onStarting','IExchangeOperateService','FolderIcon','_commandService','docs-exchange-client.operation.exchange','defineProperty','ICommandService','add','MenuItemType','UniverProExchangeClient','onReady','exchange-client.operation.import-docx','function','DependentOn','_initCommands','toStringTag','DirectExportIcon','symbol','15zBdVdW','type','Module','exportDOCXByUnitId','1010844DXyYhi','1cyJGgY','Plugin','_config','1618389qsUXRc','126lsBOCr','10KhSbvz','disposeWithMe','Disposable','exports','ExportIcon','RibbonStartGroup','_initMenus','5120787zsBjcc','997206pAwcvc','UniverDocsExchangeClientPlugin','IConfigService','SUBITEMS','forEach','@univerjs/core','UniverInstanceType','DOC_EXCHANGE_CLIENT_PLUGIN','OTHERS','Inject','_injector','CommandType','@univerjs-pro/exchange-client','mergeMenu'];_0x2458=function(){return _0x3eafd7;};return _0x2458();}function _0x3fe7(_0xb27331,_0x424fbc){var _0x245855=_0x2458();return _0x3fe7=function(_0x3fe778,_0xcd732b){_0x3fe778=_0x3fe778-0x11d;var _0x5ef9a6=_0x245855[_0x3fe778];return _0x5ef9a6;},_0x3fe7(_0xb27331,_0x424fbc);}(function(_0x3fbe02,_0x10e4e7){var _0x1047d2=_0x3fe7,_0xf6e664=_0x3fbe02();while(!![]){try{var _0x459254=parseInt(_0x1047d2(0x15c))/0x1*(parseInt(_0x1047d2(0x139))/0x2)+parseInt(_0x1047d2(0x11d))/0x3+-parseInt(_0x1047d2(0x15b))/0x4+parseInt(_0x1047d2(0x157))/0x5*(-parseInt(_0x1047d2(0x127))/0x6)+-parseInt(_0x1047d2(0x126))/0x7+parseInt(_0x1047d2(0x136))/0x8*(parseInt(_0x1047d2(0x11e))/0x9)+-parseInt(_0x1047d2(0x11f))/0xa*(-parseInt(_0x1047d2(0x13f))/0xb);if(_0x459254===_0x10e4e7)break;else _0xf6e664['push'](_0xf6e664['shift']());}catch(_0x27a86b){_0xf6e664['push'](_0xf6e664['shift']());}}}(_0x2458,0x92df6),function(_0x5f4e0e,_0x53213b){var _0x1ae61c=_0x3fe7;typeof exports==_0x1ae61c(0x144)&&typeof module<'u'?_0x53213b(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui')):typeof define==_0x1ae61c(0x151)&&define['amd']?define([_0x1ae61c(0x122),_0x1ae61c(0x133),_0x1ae61c(0x12c),'@univerjs/ui'],_0x53213b):(_0x5f4e0e=typeof globalThis<'u'?globalThis:_0x5f4e0e||self,_0x53213b(_0x5f4e0e['UniverProDocsExchangeClient']={},_0x5f4e0e[_0x1ae61c(0x14e)],_0x5f4e0e['UniverCore'],_0x5f4e0e['UniverUi']));}(this,function(_0x27959e,_0x3eeb46,_0x127599,_0x3b8595){'use strict';var _0x4a6625=_0x3fe7;const _0x5219e4={'id':_0x4a6625(0x150),'type':_0x127599['CommandType'][_0x4a6625(0x142)],'handler':async _0x4a3c27=>(_0x4a3c27[_0x4a6625(0x13b)](_0x3eeb46['IExchangeOperateService'])[_0x4a6625(0x13e)](),!0x0)},_0x5a89ec={'id':'exchange-client.operation.export-docx','type':_0x127599[_0x4a6625(0x132)][_0x4a6625(0x142)],'handler':async _0x42f029=>(_0x42f029[_0x4a6625(0x13b)](_0x3eeb46[_0x4a6625(0x146)])[_0x4a6625(0x15a)](),!0x0)},_0x2eb21a='docs-exchange-client.config',_0x19fee8={},_0x146b82=_0x4a6625(0x149);function _0x1ebbe7(_0x37eb8d){var _0x205945=_0x4a6625;return{'id':_0x146b82,'type':_0x3b8595[_0x205945(0x14d)][_0x205945(0x12a)],'icon':_0x205945(0x155),'tooltip':'exchange.file','hidden$':_0x3b8595['getMenuHiddenObservable'](_0x37eb8d,_0x127599[_0x205945(0x12d)][_0x205945(0x143)])};}function _0x5a4414(){var _0x53f3eb=_0x4a6625;return{'id':_0x5219e4['id'],'type':_0x3b8595[_0x53f3eb(0x14d)][_0x53f3eb(0x13c)],'title':'exchange.upload','icon':_0x53f3eb(0x147)};}function _0x140ef9(){var _0x5073a4=_0x4a6625;return{'id':_0x5a89ec['id'],'type':_0x3b8595[_0x5073a4(0x14d)][_0x5073a4(0x13c)],'title':'exchange.download','icon':_0x5073a4(0x123)};}const _0x62dc58={[_0x3b8595[_0x4a6625(0x124)][_0x4a6625(0x12f)]]:{[_0x146b82]:{'order':0.3,'menuItemFactory':_0x1ebbe7,[_0x5219e4['id']]:{'order':0x0,'menuItemFactory':_0x5a4414},[_0x5a89ec['id']]:{'order':0x1,'menuItemFactory':_0x140ef9}}}};var _0x592460=Object[_0x4a6625(0x140)],_0x1f1be4=(_0x23ebcf,_0x1042f0,_0x3b2d57,_0xde5f1f)=>{var _0x364fd2=_0x4a6625;for(var _0x6d4a5d=_0xde5f1f>0x1?void 0x0:_0xde5f1f?_0x592460(_0x1042f0,_0x3b2d57):_0x1042f0,_0x489bca=_0x23ebcf[_0x364fd2(0x138)]-0x1,_0x4b8db1;_0x489bca>=0x0;_0x489bca--)(_0x4b8db1=_0x23ebcf[_0x489bca])&&(_0x6d4a5d=_0x4b8db1(_0x6d4a5d)||_0x6d4a5d);return _0x6d4a5d;},_0x2aa68f=(_0x1147f9,_0x1c3d45)=>(_0x50c59c,_0x1285a8)=>_0x1c3d45(_0x50c59c,_0x1285a8,_0x1147f9);let _0xeb489c=class extends _0x127599[_0x4a6625(0x121)]{constructor(_0x242592,_0x548fc2){var _0x2f1e6f=_0x4a6625;super(),this['_commandService']=_0x242592,this['_menuManagerService']=_0x548fc2,this['_initCommands'](),this[_0x2f1e6f(0x125)]();}[_0x4a6625(0x153)](){var _0x2d7ba5=_0x4a6625;[_0x5219e4,_0x5a89ec][_0x2d7ba5(0x12b)](_0x5bb43e=>{var _0x3668f0=_0x2d7ba5;this[_0x3668f0(0x120)](this[_0x3668f0(0x148)]['registerCommand'](_0x5bb43e));});}[_0x4a6625(0x125)](){var _0x59124b=_0x4a6625;this[_0x59124b(0x135)][_0x59124b(0x134)](_0x62dc58);}};_0xeb489c=_0x1f1be4([_0x2aa68f(0x0,_0x127599[_0x4a6625(0x14b)]),_0x2aa68f(0x1,_0x3b8595['IMenuManagerService'])],_0xeb489c);var _0x1b8a7a=Object[_0x4a6625(0x14a)],_0x34f811=Object[_0x4a6625(0x140)],_0x5641b9=(_0x10809e,_0x4c675c,_0x26ca6e)=>_0x4c675c in _0x10809e?_0x1b8a7a(_0x10809e,_0x4c675c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26ca6e}):_0x10809e[_0x4c675c]=_0x26ca6e,_0x525954=(_0x520d74,_0x2e5c47,_0x348383,_0x4ac374)=>{var _0x5bb40e=_0x4a6625;for(var _0x24b001=_0x4ac374>0x1?void 0x0:_0x4ac374?_0x34f811(_0x2e5c47,_0x348383):_0x2e5c47,_0x5e25f2=_0x520d74[_0x5bb40e(0x138)]-0x1,_0x1af378;_0x5e25f2>=0x0;_0x5e25f2--)(_0x1af378=_0x520d74[_0x5e25f2])&&(_0x24b001=_0x1af378(_0x24b001)||_0x24b001);return _0x24b001;},_0x581dae=(_0x34199b,_0x10473c)=>(_0x131b02,_0x64b3b6)=>_0x10473c(_0x131b02,_0x64b3b6,_0x34199b),_0xafeabf=(_0x1d6909,_0xb878ac,_0x1ea22f)=>_0x5641b9(_0x1d6909,typeof _0xb878ac!=_0x4a6625(0x156)?_0xb878ac+'':_0xb878ac,_0x1ea22f);const _0x588528=_0x4a6625(0x12e);_0x27959e[_0x4a6625(0x128)]=class extends _0x127599[_0x4a6625(0x15d)]{constructor(_0x589102=_0x19fee8,_0x2fe98f,_0x263add){var _0x59dbd6=_0x4a6625;super(),this[_0x59dbd6(0x15e)]=_0x589102,this[_0x59dbd6(0x131)]=_0x2fe98f,this[_0x59dbd6(0x137)]=_0x263add;const {menu:_0x594edc,..._0x38813c}=_0x127599['merge']({},_0x19fee8,this['_config']);_0x594edc&&this[_0x59dbd6(0x137)]['setConfig']('menu',_0x594edc,{'merge':!0x0}),this[_0x59dbd6(0x137)][_0x59dbd6(0x141)](_0x2eb21a,_0x38813c);}[_0x4a6625(0x145)](){var _0x4ee3d5=_0x4a6625;[[_0xeb489c]]['forEach'](_0x5e923d=>this['_injector'][_0x4ee3d5(0x14c)](_0x5e923d));}[_0x4a6625(0x14f)](){var _0x116133=_0x4a6625;this['_injector'][_0x116133(0x13b)](_0xeb489c);}},_0xafeabf(_0x27959e['UniverDocsExchangeClientPlugin'],'pluginName',_0x588528),_0xafeabf(_0x27959e['UniverDocsExchangeClientPlugin'],_0x4a6625(0x158),_0x127599[_0x4a6625(0x12d)][_0x4a6625(0x143)]),_0x27959e['UniverDocsExchangeClientPlugin']=_0x525954([_0x127599[_0x4a6625(0x152)](_0x3eeb46[_0x4a6625(0x13d)]),_0x581dae(0x1,_0x127599[_0x4a6625(0x130)](_0x127599[_0x4a6625(0x13a)])),_0x581dae(0x2,_0x127599[_0x4a6625(0x129)])],_0x27959e['UniverDocsExchangeClientPlugin']),_0x27959e['ExportDOCXOperation']=_0x5a89ec,_0x27959e['ImportDOCXOperation']=_0x5219e4,Object[_0x4a6625(0x14a)](_0x27959e,Symbol[_0x4a6625(0x154)],{'value':_0x4a6625(0x159)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/docs-exchange-client",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.10",
|
|
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.10.
|
|
46
|
-
"@univerjs/core": "0.10.
|
|
47
|
-
"@univerjs/ui": "0.10.
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.10.10",
|
|
46
|
+
"@univerjs/core": "0.10.10",
|
|
47
|
+
"@univerjs/ui": "0.10.10"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"typescript": "^5.9.2",
|
|
51
51
|
"vite": "^7.1.3",
|
|
52
52
|
"vitest": "^3.2.4",
|
|
53
|
-
"@univerjs-infra/shared": "0.10.
|
|
53
|
+
"@univerjs-infra/shared": "0.10.10"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"test": "vitest run",
|