@univerjs-pro/docs-exchange-client 0.7.0-nightly.202505171606 → 0.7.0-nightly.202505181606
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 +4 -4
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var _0x567873=_0x201e;(function(_0x11194e,_0x3fe267){var _0x45cf83=_0x201e,_0x568ce5=_0x11194e();while(!![]){try{var _0x169966=-parseInt(_0x45cf83(0x125))/0x1*(-parseInt(_0x45cf83(0x123))/0x2)+parseInt(_0x45cf83(0x12d))/0x3*(parseInt(_0x45cf83(0x132))/0x4)+parseInt(_0x45cf83(0x14e))/0x5*(parseInt(_0x45cf83(0x121))/0x6)+parseInt(_0x45cf83(0x13e))/0x7*(-parseInt(_0x45cf83(0x142))/0x8)+-parseInt(_0x45cf83(0x12c))/0x9*(-parseInt(_0x45cf83(0x14a))/0xa)+parseInt(_0x45cf83(0x155))/0xb+-parseInt(_0x45cf83(0x126))/0xc;if(_0x169966===_0x3fe267)break;else _0x568ce5['push'](_0x568ce5['shift']());}catch(_0x2d5c8a){_0x568ce5['push'](_0x568ce5['shift']());}}}(_0x5a53,0x76b72));Object[_0x567873(0x134)](exports,Symbol[_0x567873(0x133)],{'value':'Module'});const l=require(_0x567873(0x131)),i=require(_0x567873(0x15b)),a=require(_0x567873(0x152)),v=_0x567873(0x148),d={},g={'id':_0x567873(0x141),'type':i[_0x567873(0x14c)]['OPERATION'],'handler':async _0x404b50=>(_0x404b50['get'](l['IExchangeOperateService'])[_0x567873(0x127)](),!0x0)},p={'id':_0x567873(0x143),'type':i[_0x567873(0x14c)][_0x567873(0x12f)],'handler':async _0x4480fb=>(_0x4480fb['get'](l[_0x567873(0x138)])[_0x567873(0x144)](),!0x0)},h=_0x567873(0x15d);function O(_0x1c3653){var _0x1337ef=_0x567873;return{'id':h,'type':a[_0x1337ef(0x15c)]['SUBITEMS'],'icon':'DirectExportSingle','tooltip':_0x1337ef(0x11f),'hidden$':a[_0x1337ef(0x157)](_0x1c3653,i[_0x1337ef(0x14d)]['UNIVER_DOC'])};}function I(){var _0x531437=_0x567873;return{'id':g['id'],'type':a[_0x531437(0x15c)][_0x531437(0x159)],'title':'exchange.upload','icon':'FolderSingle'};}function E(){var _0x510d5b=_0x567873;return{'id':p['id'],'type':a['MenuItemType'][_0x510d5b(0x159)],'title':_0x510d5b(0x147),'icon':'ExportSingle'};}const x={[a[_0x567873(0x14f)][_0x567873(0x154)]]:{[h]:{'order':0.3,'menuItemFactory':O,[g['id']]:{'order':0x0,'menuItemFactory':I},[p['id']]:{'order':0x1,'menuItemFactory':E}}}};var D=Object[_0x567873(0x15f)],S=(_0x43fe08,_0x4fbac1,_0xa73dc,_0x53a50c)=>{for(var _0x583dc8=_0x53a50c>0x1?void 0x0:_0x53a50c?D(_0x4fbac1,_0xa73dc):_0x4fbac1,_0x3ba21f=_0x43fe08['length']-0x1,_0xad17e0;_0x3ba21f>=0x0;_0x3ba21f--)(_0xad17e0=_0x43fe08[_0x3ba21f])&&(_0x583dc8=_0xad17e0(_0x583dc8)||_0x583dc8);return _0x583dc8;},_=(_0x144e02,_0x46527f)=>(_0x324997,_0x2d1b52)=>_0x46527f(_0x324997,_0x2d1b52,_0x144e02);let u=class extends i['Disposable']{constructor(_0x5f3546,_0x1e7831){var _0x16dd9f=_0x567873;super(),this[_0x16dd9f(0x137)]=_0x5f3546,this[_0x16dd9f(0x158)]=_0x1e7831,this[_0x16dd9f(0x151)](),this[_0x16dd9f(0x13f)]();}[_0x567873(0x151)](){var _0x10a7dc=_0x567873;[g,p][_0x10a7dc(0x12e)](_0x409144=>{var _0xa3c02a=_0x10a7dc;this[_0xa3c02a(0x15a)](this[_0xa3c02a(0x137)][_0xa3c02a(0x15e)](_0x409144));});}['_initMenus'](){var _0x58b396=_0x567873;this[_0x58b396(0x158)][_0x58b396(0x13d)](x);}};function _0x5a53(){var _0x1cf75c=['docs-exchange-client.operation.exchange','registerCommand','getOwnPropertyDescriptor','onStarting','onReady','exchange.file','add','22038rTbdVB','_configService','1044466OkrOUf','DOC_EXCHANGE_CLIENT_PLUGIN','1gYrtny','18970260LFwVnl','importDOCXToUnitId','pluginName','IConfigService','symbol','merge','18dqWBKJ','3fgQSPh','forEach','OPERATION','Plugin','@univerjs-pro/exchange-client','568492PkGnCK','toStringTag','defineProperty','_config','UniverDocsExchangeClientPlugin','_commandService','IExchangeOperateService','UNIVER_DOC','IMenuManagerService','menu','_injector','mergeMenu','252gxncLu','_initMenus','ImportDOCXOperation','exchange-client.operation.import-docx','48112zTecpu','exchange-client.operation.export-docx','exportDOCXByUnitId','get','setConfig','exchange.download','docs-exchange-client.config','ICommandService','3757730fLpAQh','length','CommandType','UniverInstanceType','620syCXWC','RibbonStartGroup','Inject','_initCommands','@univerjs/ui','ExportDOCXOperation','OTHERS','4534893flOdfn','UniverExchangeClientPlugin','getMenuHiddenObservable','_menuManagerService','BUTTON','disposeWithMe','@univerjs/core','MenuItemType'];_0x5a53=function(){return _0x1cf75c;};return _0x5a53();}u=S([_(0x0,i[_0x567873(0x149)]),_(0x1,a[_0x567873(0x13a)])],u);function _0x201e(_0x21283e,_0x39d596){var _0x5a53f8=_0x5a53();return _0x201e=function(_0x201e30,_0x3b6482){_0x201e30=_0x201e30-0x11f;var _0x3fc4c2=_0x5a53f8[_0x201e30];return _0x3fc4c2;},_0x201e(_0x21283e,_0x39d596);}var f=Object[_0x567873(0x134)],y=Object[_0x567873(0x15f)],P=(_0x462ad4,_0x896d79,_0x145cf6)=>_0x896d79 in _0x462ad4?f(_0x462ad4,_0x896d79,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x145cf6}):_0x462ad4[_0x896d79]=_0x145cf6,T=(_0x9d1d0,_0x329b0c,_0x52aff7,_0x130810)=>{var _0x1d5baa=_0x567873;for(var _0x9970e=_0x130810>0x1?void 0x0:_0x130810?y(_0x329b0c,_0x52aff7):_0x329b0c,_0x58699e=_0x9d1d0[_0x1d5baa(0x14b)]-0x1,_0xce983;_0x58699e>=0x0;_0x58699e--)(_0xce983=_0x9d1d0[_0x58699e])&&(_0x9970e=_0xce983(_0x9970e)||_0x9970e);return _0x9970e;},m=(_0x22a6a4,_0x20ebf4)=>(_0x40c53d,_0x1b4acc)=>_0x20ebf4(_0x40c53d,_0x1b4acc,_0x22a6a4),C=(_0x2ceae2,_0x18876d,_0x486b67)=>P(_0x2ceae2,typeof _0x18876d!=_0x567873(0x12a)?_0x18876d+'':_0x18876d,_0x486b67);const U=_0x567873(0x124);exports['UniverDocsExchangeClientPlugin']=class extends i[_0x567873(0x130)]{constructor(_0x1df7d=d,_0x4d11b6,_0x40f8af){var _0x4c9253=_0x567873;super(),this[_0x4c9253(0x135)]=_0x1df7d,this[_0x4c9253(0x13c)]=_0x4d11b6,this[_0x4c9253(0x122)]=_0x40f8af;const {menu:_0x4829c5,..._0x58f664}=i[_0x4c9253(0x12b)]({},d,this[_0x4c9253(0x135)]);_0x4829c5&&this[_0x4c9253(0x122)][_0x4c9253(0x146)](_0x4c9253(0x13b),_0x4829c5,{'merge':!0x0}),this[_0x4c9253(0x122)][_0x4c9253(0x146)](v,_0x58f664);}[_0x567873(0x160)](){var _0x1edf6f=_0x567873;[[u]][_0x1edf6f(0x12e)](_0x548cba=>this[_0x1edf6f(0x13c)][_0x1edf6f(0x120)](_0x548cba));}[_0x567873(0x161)](){var _0x2b9a0f=_0x567873;this[_0x2b9a0f(0x13c)][_0x2b9a0f(0x145)](u);}},C(exports['UniverDocsExchangeClientPlugin'],_0x567873(0x128),U),C(exports[_0x567873(0x136)],'type',i['UniverInstanceType'][_0x567873(0x139)]),exports['UniverDocsExchangeClientPlugin']=T([i['DependentOn'](l[_0x567873(0x156)]),m(0x1,i[_0x567873(0x150)](i['Injector'])),m(0x2,i[_0x567873(0x129)])],exports['UniverDocsExchangeClientPlugin']),exports[_0x567873(0x153)]=p,exports[_0x567873(0x140)]=g;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var _0x815e58=_0x242f;function _0x242f(_0x459d79,_0x524257){var _0x2af563=_0x2af5();return _0x242f=function(_0x242f96,_0x55d828){_0x242f96=_0x242f96-0x17c;var _0x26c971=_0x2af563[_0x242f96];return _0x26c971;},_0x242f(_0x459d79,_0x524257);}(function(_0x6cb8d8,_0x374d98){var _0x4e1a2a=_0x242f,_0x1fb09d=_0x6cb8d8();while(!![]){try{var _0x104983=parseInt(_0x4e1a2a(0x1a4))/0x1*(parseInt(_0x4e1a2a(0x18a))/0x2)+-parseInt(_0x4e1a2a(0x192))/0x3+parseInt(_0x4e1a2a(0x188))/0x4*(parseInt(_0x4e1a2a(0x1a3))/0x5)+parseInt(_0x4e1a2a(0x187))/0x6+-parseInt(_0x4e1a2a(0x186))/0x7*(-parseInt(_0x4e1a2a(0x19d))/0x8)+-parseInt(_0x4e1a2a(0x1a7))/0x9+parseInt(_0x4e1a2a(0x195))/0xa*(-parseInt(_0x4e1a2a(0x1a0))/0xb);if(_0x104983===_0x374d98)break;else _0x1fb09d['push'](_0x1fb09d['shift']());}catch(_0x316b8e){_0x1fb09d['push'](_0x1fb09d['shift']());}}}(_0x2af5,0xec7dd));import{IExchangeOperateService as _0x2a21a3,UniverExchangeClientPlugin as _0x6f397a}from'@univerjs-pro/exchange-client';import{CommandType as _0x1ff04c,UniverInstanceType as _0x5be033,Disposable as _0x54e38c,ICommandService as _0x41e270,DependentOn as _0x3fa723,Inject as _0x10cdc0,Injector as _0x2451d7,IConfigService as _0x2f3efb,Plugin as _0x59dde2,merge as _0x47e11d}from'@univerjs/core';import{MenuItemType as _0x113714,getMenuHiddenObservable as _0xa7a859,RibbonStartGroup as _0x2f79f6,IMenuManagerService as _0xee3678}from'@univerjs/ui';function _0x2af5(){var _0x1b53d3=['getOwnPropertyDescriptor','1841610AGbdIU','exchange.download','OPERATION','8482990emheAs','exchange.upload','docs-exchange-client.config','OTHERS','_commandService','_initMenus','length','setConfig','128816fZJxFz','mergeMenu','symbol','11BPcYgh','pluginName','FolderSingle','70bbuIUt','2TDpQtW','_config','DOC_EXCHANGE_CLIENT_PLUGIN','1159632GTuwzy','get','_initCommands','menu','importDOCXToUnitId','onStarting','DirectExportSingle','BUTTON','docs-exchange-client.operation.exchange','exportDOCXByUnitId','type','UNIVER_DOC','_configService','_menuManagerService','154EEpAnm','5249496lWPaqk','225752fRqnrW','onReady','540394KLCoSw','exchange.file','ExportSingle','forEach','defineProperty','add','_injector'];_0x2af5=function(){return _0x1b53d3;};return _0x2af5();}const b=_0x815e58(0x197),m={},d={'id':'exchange-client.operation.import-docx','type':_0x1ff04c[_0x815e58(0x194)],'handler':async _0x199acf=>(_0x199acf[_0x815e58(0x1a8)](_0x2a21a3)[_0x815e58(0x17c)](),!0x0)},_={'id':'exchange-client.operation.export-docx','type':_0x1ff04c[_0x815e58(0x194)],'handler':async _0x447c22=>(_0x447c22[_0x815e58(0x1a8)](_0x2a21a3)[_0x815e58(0x181)](),!0x0)},I=_0x815e58(0x180);function X(_0x2e9e10){var _0x5c9296=_0x815e58;return{'id':I,'type':_0x113714['SUBITEMS'],'icon':_0x5c9296(0x17e),'tooltip':_0x5c9296(0x18b),'hidden$':_0xa7a859(_0x2e9e10,_0x5be033[_0x5c9296(0x183)])};}function F(){var _0x24c636=_0x815e58;return{'id':d['id'],'type':_0x113714[_0x24c636(0x17f)],'title':_0x24c636(0x196),'icon':_0x24c636(0x1a2)};}function G(){var _0x13f9d4=_0x815e58;return{'id':_['id'],'type':_0x113714[_0x13f9d4(0x17f)],'title':_0x13f9d4(0x193),'icon':_0x13f9d4(0x18c)};}const R={[_0x2f79f6[_0x815e58(0x198)]]:{[I]:{'order':0.3,'menuItemFactory':X,[d['id']]:{'order':0x0,'menuItemFactory':F},[_['id']]:{'order':0x1,'menuItemFactory':G}}}};var A=Object[_0x815e58(0x191)],j=(_0x526701,_0x467953,_0x28ecae,_0x4aa06f)=>{var _0x21cdfc=_0x815e58;for(var _0x3f17ac=_0x4aa06f>0x1?void 0x0:_0x4aa06f?A(_0x467953,_0x28ecae):_0x467953,_0x2aaccf=_0x526701[_0x21cdfc(0x19b)]-0x1,_0x401e50;_0x2aaccf>=0x0;_0x2aaccf--)(_0x401e50=_0x526701[_0x2aaccf])&&(_0x3f17ac=_0x401e50(_0x3f17ac)||_0x3f17ac);return _0x3f17ac;},u=(_0x505081,_0xfd32f4)=>(_0x1ea9e5,_0x2765dc)=>_0xfd32f4(_0x1ea9e5,_0x2765dc,_0x505081);let a=class extends _0x54e38c{constructor(_0x3532ea,_0x3b8e54){var _0xc0dc2c=_0x815e58;super(),this[_0xc0dc2c(0x199)]=_0x3532ea,this[_0xc0dc2c(0x185)]=_0x3b8e54,this[_0xc0dc2c(0x1a9)](),this[_0xc0dc2c(0x19a)]();}['_initCommands'](){var _0x2452a6=_0x815e58;[d,_][_0x2452a6(0x18d)](_0x4a1b19=>{var _0x11ad10=_0x2452a6;this['disposeWithMe'](this[_0x11ad10(0x199)]['registerCommand'](_0x4a1b19));});}[_0x815e58(0x19a)](){var _0x237d6f=_0x815e58;this[_0x237d6f(0x185)][_0x237d6f(0x19e)](R);}};a=j([u(0x0,_0x41e270),u(0x1,_0xee3678)],a);var w=Object[_0x815e58(0x18e)],H=Object['getOwnPropertyDescriptor'],L=(_0x264322,_0x22cf23,_0x1c18bd)=>_0x22cf23 in _0x264322?w(_0x264322,_0x22cf23,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1c18bd}):_0x264322[_0x22cf23]=_0x1c18bd,B=(_0x1d00f4,_0x610507,_0x115cf7,_0x5b58f2)=>{for(var _0x48444f=_0x5b58f2>0x1?void 0x0:_0x5b58f2?H(_0x610507,_0x115cf7):_0x610507,_0x16558d=_0x1d00f4['length']-0x1,_0x3f44eb;_0x16558d>=0x0;_0x16558d--)(_0x3f44eb=_0x1d00f4[_0x16558d])&&(_0x48444f=_0x3f44eb(_0x48444f)||_0x48444f);return _0x48444f;},g=(_0x1375a1,_0x4a8186)=>(_0x2c9316,_0x53ee8f)=>_0x4a8186(_0x2c9316,_0x53ee8f,_0x1375a1),O=(_0x451099,_0x349bbc,_0x1e09c6)=>L(_0x451099,typeof _0x349bbc!=_0x815e58(0x19f)?_0x349bbc+'':_0x349bbc,_0x1e09c6);const $=_0x815e58(0x1a6);let s=class extends _0x59dde2{constructor(_0x41efe9=m,_0x45a66a,_0x1e8e1f){var _0x397a9c=_0x815e58;super(),this[_0x397a9c(0x1a5)]=_0x41efe9,this[_0x397a9c(0x190)]=_0x45a66a,this['_configService']=_0x1e8e1f;const {menu:_0x57616c,..._0x38ddd5}=_0x47e11d({},m,this[_0x397a9c(0x1a5)]);_0x57616c&&this['_configService'][_0x397a9c(0x19c)](_0x397a9c(0x1aa),_0x57616c,{'merge':!0x0}),this[_0x397a9c(0x184)][_0x397a9c(0x19c)](b,_0x38ddd5);}[_0x815e58(0x17d)](){var _0x2150ca=_0x815e58;[[a]][_0x2150ca(0x18d)](_0x1a25bc=>this['_injector'][_0x2150ca(0x18f)](_0x1a25bc));}[_0x815e58(0x189)](){var _0x49a9c7=_0x815e58;this[_0x49a9c7(0x190)][_0x49a9c7(0x1a8)](a);}};O(s,_0x815e58(0x1a1),$),O(s,_0x815e58(0x182),_0x5be033[_0x815e58(0x183)]),s=B([_0x3fa723(_0x6f397a),g(0x1,_0x10cdc0(_0x2451d7)),g(0x2,_0x2f3efb)],s);export{_ as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var _0x815e58=_0x242f;function _0x242f(_0x459d79,_0x524257){var _0x2af563=_0x2af5();return _0x242f=function(_0x242f96,_0x55d828){_0x242f96=_0x242f96-0x17c;var _0x26c971=_0x2af563[_0x242f96];return _0x26c971;},_0x242f(_0x459d79,_0x524257);}(function(_0x6cb8d8,_0x374d98){var _0x4e1a2a=_0x242f,_0x1fb09d=_0x6cb8d8();while(!![]){try{var _0x104983=parseInt(_0x4e1a2a(0x1a4))/0x1*(parseInt(_0x4e1a2a(0x18a))/0x2)+-parseInt(_0x4e1a2a(0x192))/0x3+parseInt(_0x4e1a2a(0x188))/0x4*(parseInt(_0x4e1a2a(0x1a3))/0x5)+parseInt(_0x4e1a2a(0x187))/0x6+-parseInt(_0x4e1a2a(0x186))/0x7*(-parseInt(_0x4e1a2a(0x19d))/0x8)+-parseInt(_0x4e1a2a(0x1a7))/0x9+parseInt(_0x4e1a2a(0x195))/0xa*(-parseInt(_0x4e1a2a(0x1a0))/0xb);if(_0x104983===_0x374d98)break;else _0x1fb09d['push'](_0x1fb09d['shift']());}catch(_0x316b8e){_0x1fb09d['push'](_0x1fb09d['shift']());}}}(_0x2af5,0xec7dd));import{IExchangeOperateService as _0x2a21a3,UniverExchangeClientPlugin as _0x6f397a}from'@univerjs-pro/exchange-client';import{CommandType as _0x1ff04c,UniverInstanceType as _0x5be033,Disposable as _0x54e38c,ICommandService as _0x41e270,DependentOn as _0x3fa723,Inject as _0x10cdc0,Injector as _0x2451d7,IConfigService as _0x2f3efb,Plugin as _0x59dde2,merge as _0x47e11d}from'@univerjs/core';import{MenuItemType as _0x113714,getMenuHiddenObservable as _0xa7a859,RibbonStartGroup as _0x2f79f6,IMenuManagerService as _0xee3678}from'@univerjs/ui';function _0x2af5(){var _0x1b53d3=['getOwnPropertyDescriptor','1841610AGbdIU','exchange.download','OPERATION','8482990emheAs','exchange.upload','docs-exchange-client.config','OTHERS','_commandService','_initMenus','length','setConfig','128816fZJxFz','mergeMenu','symbol','11BPcYgh','pluginName','FolderSingle','70bbuIUt','2TDpQtW','_config','DOC_EXCHANGE_CLIENT_PLUGIN','1159632GTuwzy','get','_initCommands','menu','importDOCXToUnitId','onStarting','DirectExportSingle','BUTTON','docs-exchange-client.operation.exchange','exportDOCXByUnitId','type','UNIVER_DOC','_configService','_menuManagerService','154EEpAnm','5249496lWPaqk','225752fRqnrW','onReady','540394KLCoSw','exchange.file','ExportSingle','forEach','defineProperty','add','_injector'];_0x2af5=function(){return _0x1b53d3;};return _0x2af5();}const b=_0x815e58(0x197),m={},d={'id':'exchange-client.operation.import-docx','type':_0x1ff04c[_0x815e58(0x194)],'handler':async _0x199acf=>(_0x199acf[_0x815e58(0x1a8)](_0x2a21a3)[_0x815e58(0x17c)](),!0x0)},_={'id':'exchange-client.operation.export-docx','type':_0x1ff04c[_0x815e58(0x194)],'handler':async _0x447c22=>(_0x447c22[_0x815e58(0x1a8)](_0x2a21a3)[_0x815e58(0x181)](),!0x0)},I=_0x815e58(0x180);function X(_0x2e9e10){var _0x5c9296=_0x815e58;return{'id':I,'type':_0x113714['SUBITEMS'],'icon':_0x5c9296(0x17e),'tooltip':_0x5c9296(0x18b),'hidden$':_0xa7a859(_0x2e9e10,_0x5be033[_0x5c9296(0x183)])};}function F(){var _0x24c636=_0x815e58;return{'id':d['id'],'type':_0x113714[_0x24c636(0x17f)],'title':_0x24c636(0x196),'icon':_0x24c636(0x1a2)};}function G(){var _0x13f9d4=_0x815e58;return{'id':_['id'],'type':_0x113714[_0x13f9d4(0x17f)],'title':_0x13f9d4(0x193),'icon':_0x13f9d4(0x18c)};}const R={[_0x2f79f6[_0x815e58(0x198)]]:{[I]:{'order':0.3,'menuItemFactory':X,[d['id']]:{'order':0x0,'menuItemFactory':F},[_['id']]:{'order':0x1,'menuItemFactory':G}}}};var A=Object[_0x815e58(0x191)],j=(_0x526701,_0x467953,_0x28ecae,_0x4aa06f)=>{var _0x21cdfc=_0x815e58;for(var _0x3f17ac=_0x4aa06f>0x1?void 0x0:_0x4aa06f?A(_0x467953,_0x28ecae):_0x467953,_0x2aaccf=_0x526701[_0x21cdfc(0x19b)]-0x1,_0x401e50;_0x2aaccf>=0x0;_0x2aaccf--)(_0x401e50=_0x526701[_0x2aaccf])&&(_0x3f17ac=_0x401e50(_0x3f17ac)||_0x3f17ac);return _0x3f17ac;},u=(_0x505081,_0xfd32f4)=>(_0x1ea9e5,_0x2765dc)=>_0xfd32f4(_0x1ea9e5,_0x2765dc,_0x505081);let a=class extends _0x54e38c{constructor(_0x3532ea,_0x3b8e54){var _0xc0dc2c=_0x815e58;super(),this[_0xc0dc2c(0x199)]=_0x3532ea,this[_0xc0dc2c(0x185)]=_0x3b8e54,this[_0xc0dc2c(0x1a9)](),this[_0xc0dc2c(0x19a)]();}['_initCommands'](){var _0x2452a6=_0x815e58;[d,_][_0x2452a6(0x18d)](_0x4a1b19=>{var _0x11ad10=_0x2452a6;this['disposeWithMe'](this[_0x11ad10(0x199)]['registerCommand'](_0x4a1b19));});}[_0x815e58(0x19a)](){var _0x237d6f=_0x815e58;this[_0x237d6f(0x185)][_0x237d6f(0x19e)](R);}};a=j([u(0x0,_0x41e270),u(0x1,_0xee3678)],a);var w=Object[_0x815e58(0x18e)],H=Object['getOwnPropertyDescriptor'],L=(_0x264322,_0x22cf23,_0x1c18bd)=>_0x22cf23 in _0x264322?w(_0x264322,_0x22cf23,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1c18bd}):_0x264322[_0x22cf23]=_0x1c18bd,B=(_0x1d00f4,_0x610507,_0x115cf7,_0x5b58f2)=>{for(var _0x48444f=_0x5b58f2>0x1?void 0x0:_0x5b58f2?H(_0x610507,_0x115cf7):_0x610507,_0x16558d=_0x1d00f4['length']-0x1,_0x3f44eb;_0x16558d>=0x0;_0x16558d--)(_0x3f44eb=_0x1d00f4[_0x16558d])&&(_0x48444f=_0x3f44eb(_0x48444f)||_0x48444f);return _0x48444f;},g=(_0x1375a1,_0x4a8186)=>(_0x2c9316,_0x53ee8f)=>_0x4a8186(_0x2c9316,_0x53ee8f,_0x1375a1),O=(_0x451099,_0x349bbc,_0x1e09c6)=>L(_0x451099,typeof _0x349bbc!=_0x815e58(0x19f)?_0x349bbc+'':_0x349bbc,_0x1e09c6);const $=_0x815e58(0x1a6);let s=class extends _0x59dde2{constructor(_0x41efe9=m,_0x45a66a,_0x1e8e1f){var _0x397a9c=_0x815e58;super(),this[_0x397a9c(0x1a5)]=_0x41efe9,this[_0x397a9c(0x190)]=_0x45a66a,this['_configService']=_0x1e8e1f;const {menu:_0x57616c,..._0x38ddd5}=_0x47e11d({},m,this[_0x397a9c(0x1a5)]);_0x57616c&&this['_configService'][_0x397a9c(0x19c)](_0x397a9c(0x1aa),_0x57616c,{'merge':!0x0}),this[_0x397a9c(0x184)][_0x397a9c(0x19c)](b,_0x38ddd5);}[_0x815e58(0x17d)](){var _0x2150ca=_0x815e58;[[a]][_0x2150ca(0x18d)](_0x1a25bc=>this['_injector'][_0x2150ca(0x18f)](_0x1a25bc));}[_0x815e58(0x189)](){var _0x49a9c7=_0x815e58;this[_0x49a9c7(0x190)][_0x49a9c7(0x1a8)](a);}};O(s,_0x815e58(0x1a1),$),O(s,_0x815e58(0x182),_0x5be033[_0x815e58(0x183)]),s=B([_0x3fa723(_0x6f397a),g(0x1,_0x10cdc0(_0x2451d7)),g(0x2,_0x2f3efb)],s);export{_ as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x2dd5(){var _0x3f2ae9=['OPERATION','UniverDocsExchangeClientPlugin','_initCommands','4SuaSKT','merge','Plugin','Disposable','getMenuHiddenObservable','toStringTag','add','object','ExportSingle','1597416pxrQnf','_initMenus','defineProperty','8359162ALxOtD','80Adedny','_configService','setConfig','exchange-client.operation.import-docx','forEach','_commandService','UNIVER_DOC','UniverCore','docs-exchange-client.operation.exchange','exports','@univerjs-pro/exchange-client','Module','onReady','_config','RibbonStartGroup','onStarting','UniverUi','DependentOn','IMenuManagerService','386649SicKjb','registerCommand','menu','4577805UJrNCf','FolderSingle','Inject','IConfigService','length','exchange.file','UniverProExchangeClient','getOwnPropertyDescriptor','exchange-client.operation.export-docx','1586088TusTfK','_menuManagerService','get','OTHERS','exportDOCXByUnitId','BUTTON','395420xjTqwh','_injector','UniverInstanceType','IExchangeOperateService','symbol','@univerjs/ui','docs-exchange-client.config','DOC_EXCHANGE_CLIENT_PLUGIN','ImportDOCXOperation','8226138nhSptZ','CommandType','@univerjs/core','MenuItemType'];_0x2dd5=function(){return _0x3f2ae9;};return _0x2dd5();}function _0x2793(_0x4f172e,_0x3be7e6){var _0x2dd582=_0x2dd5();return _0x2793=function(_0x279388,_0x32b966){_0x279388=_0x279388-0x1ea;var _0x367002=_0x2dd582[_0x279388];return _0x367002;},_0x2793(_0x4f172e,_0x3be7e6);}(function(_0x33bc43,_0x5635d1){var _0x97bf69=_0x2793,_0x391796=_0x33bc43();while(!![]){try{var _0x3c6cef=-parseInt(_0x97bf69(0x216))/0x1+-parseInt(_0x97bf69(0x1fd))/0x2+parseInt(_0x97bf69(0x1f7))/0x3+-parseInt(_0x97bf69(0x20d))/0x4*(parseInt(_0x97bf69(0x1ee))/0x5)+parseInt(_0x97bf69(0x206))/0x6+parseInt(_0x97bf69(0x219))/0x7+parseInt(_0x97bf69(0x21a))/0x8*(parseInt(_0x97bf69(0x1eb))/0x9);if(_0x3c6cef===_0x5635d1)break;else _0x391796['push'](_0x391796['shift']());}catch(_0x2b0eb2){_0x391796['push'](_0x391796['shift']());}}}(_0x2dd5,0xc6708),function(_0x22f0bb,_0x1af3c9){var _0xca268=_0x2793;typeof exports==_0xca268(0x214)&&typeof module<'u'?_0x1af3c9(exports,require(_0xca268(0x224)),require(_0xca268(0x208)),require(_0xca268(0x202))):typeof define=='function'&&define['amd']?define([_0xca268(0x223),_0xca268(0x224),_0xca268(0x208),_0xca268(0x202)],_0x1af3c9):(_0x22f0bb=typeof globalThis<'u'?globalThis:_0x22f0bb||self,_0x1af3c9(_0x22f0bb['UniverProDocsExchangeClient']={},_0x22f0bb[_0xca268(0x1f4)],_0x22f0bb[_0xca268(0x221)],_0x22f0bb[_0xca268(0x22a)]));}(this,function(_0x271ee8,_0xf07f6e,_0x5837fb,_0x1e679d){'use strict';var _0x250e54=_0x2793;const _0xf41b28=_0x250e54(0x203),_0x12ed2d={},_0x5729a7={'id':_0x250e54(0x21d),'type':_0x5837fb[_0x250e54(0x207)][_0x250e54(0x20a)],'handler':async _0x5960c1=>(_0x5960c1[_0x250e54(0x1f9)](_0xf07f6e[_0x250e54(0x200)])['importDOCXToUnitId'](),!0x0)},_0x3b2702={'id':_0x250e54(0x1f6),'type':_0x5837fb['CommandType'][_0x250e54(0x20a)],'handler':async _0x40e2df=>(_0x40e2df['get'](_0xf07f6e['IExchangeOperateService'])[_0x250e54(0x1fb)](),!0x0)},_0x2362d5=_0x250e54(0x222);function _0x81e92b(_0x3dc34a){var _0x161527=_0x250e54;return{'id':_0x2362d5,'type':_0x1e679d[_0x161527(0x209)]['SUBITEMS'],'icon':'DirectExportSingle','tooltip':_0x161527(0x1f3),'hidden$':_0x1e679d[_0x161527(0x211)](_0x3dc34a,_0x5837fb['UniverInstanceType'][_0x161527(0x220)])};}function _0x176680(){var _0xa789e5=_0x250e54;return{'id':_0x5729a7['id'],'type':_0x1e679d[_0xa789e5(0x209)][_0xa789e5(0x1fc)],'title':'exchange.upload','icon':_0xa789e5(0x1ef)};}function _0x29058d(){var _0x8eb0b2=_0x250e54;return{'id':_0x3b2702['id'],'type':_0x1e679d[_0x8eb0b2(0x209)]['BUTTON'],'title':'exchange.download','icon':_0x8eb0b2(0x215)};}const _0x20d027={[_0x1e679d[_0x250e54(0x228)][_0x250e54(0x1fa)]]:{[_0x2362d5]:{'order':0.3,'menuItemFactory':_0x81e92b,[_0x5729a7['id']]:{'order':0x0,'menuItemFactory':_0x176680},[_0x3b2702['id']]:{'order':0x1,'menuItemFactory':_0x29058d}}}};var _0x28ef9c=Object[_0x250e54(0x1f5)],_0x24ead4=(_0x4590b9,_0x1ba560,_0x3578e5,_0x125188)=>{var _0x567abb=_0x250e54;for(var _0x56c236=_0x125188>0x1?void 0x0:_0x125188?_0x28ef9c(_0x1ba560,_0x3578e5):_0x1ba560,_0x13a137=_0x4590b9[_0x567abb(0x1f2)]-0x1,_0xb97c1c;_0x13a137>=0x0;_0x13a137--)(_0xb97c1c=_0x4590b9[_0x13a137])&&(_0x56c236=_0xb97c1c(_0x56c236)||_0x56c236);return _0x56c236;},_0x36c260=(_0x539c93,_0x19131a)=>(_0x10de52,_0x403ca3)=>_0x19131a(_0x10de52,_0x403ca3,_0x539c93);let _0x3c7536=class extends _0x5837fb[_0x250e54(0x210)]{constructor(_0x4a573b,_0x3e3a51){var _0x1d4763=_0x250e54;super(),this['_commandService']=_0x4a573b,this[_0x1d4763(0x1f8)]=_0x3e3a51,this[_0x1d4763(0x20c)](),this[_0x1d4763(0x217)]();}[_0x250e54(0x20c)](){[_0x5729a7,_0x3b2702]['forEach'](_0x1dae7f=>{var _0xf252ab=_0x2793;this['disposeWithMe'](this[_0xf252ab(0x21f)][_0xf252ab(0x1ec)](_0x1dae7f));});}[_0x250e54(0x217)](){var _0x5be071=_0x250e54;this[_0x5be071(0x1f8)]['mergeMenu'](_0x20d027);}};_0x3c7536=_0x24ead4([_0x36c260(0x0,_0x5837fb['ICommandService']),_0x36c260(0x1,_0x1e679d[_0x250e54(0x1ea)])],_0x3c7536);var _0x41fbcc=Object[_0x250e54(0x218)],_0x451939=Object[_0x250e54(0x1f5)],_0x163067=(_0x22c115,_0x4f7606,_0x250f1e)=>_0x4f7606 in _0x22c115?_0x41fbcc(_0x22c115,_0x4f7606,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x250f1e}):_0x22c115[_0x4f7606]=_0x250f1e,_0x241529=(_0x1d5561,_0x2a28f1,_0x229dd2,_0x4bc6d6)=>{for(var _0x342ff2=_0x4bc6d6>0x1?void 0x0:_0x4bc6d6?_0x451939(_0x2a28f1,_0x229dd2):_0x2a28f1,_0xccf00a=_0x1d5561['length']-0x1,_0x3641c4;_0xccf00a>=0x0;_0xccf00a--)(_0x3641c4=_0x1d5561[_0xccf00a])&&(_0x342ff2=_0x3641c4(_0x342ff2)||_0x342ff2);return _0x342ff2;},_0x5a44d6=(_0x2d6d0c,_0x1b3009)=>(_0x1072a8,_0x2aed56)=>_0x1b3009(_0x1072a8,_0x2aed56,_0x2d6d0c),_0x23c990=(_0x9a3951,_0x16e796,_0x54bac7)=>_0x163067(_0x9a3951,typeof _0x16e796!=_0x250e54(0x201)?_0x16e796+'':_0x16e796,_0x54bac7);const _0x11f94e=_0x250e54(0x204);_0x271ee8[_0x250e54(0x20b)]=class extends _0x5837fb[_0x250e54(0x20f)]{constructor(_0x152d59=_0x12ed2d,_0x50de8f,_0x20fa02){var _0x9e7ce=_0x250e54;super(),this['_config']=_0x152d59,this[_0x9e7ce(0x1fe)]=_0x50de8f,this[_0x9e7ce(0x21b)]=_0x20fa02;const {menu:_0x65f0b2,..._0x58aee2}=_0x5837fb[_0x9e7ce(0x20e)]({},_0x12ed2d,this[_0x9e7ce(0x227)]);_0x65f0b2&&this[_0x9e7ce(0x21b)][_0x9e7ce(0x21c)](_0x9e7ce(0x1ed),_0x65f0b2,{'merge':!0x0}),this[_0x9e7ce(0x21b)][_0x9e7ce(0x21c)](_0xf41b28,_0x58aee2);}[_0x250e54(0x229)](){var _0x1ffd48=_0x250e54;[[_0x3c7536]][_0x1ffd48(0x21e)](_0x47e70e=>this[_0x1ffd48(0x1fe)][_0x1ffd48(0x213)](_0x47e70e));}[_0x250e54(0x226)](){var _0x245baf=_0x250e54;this['_injector'][_0x245baf(0x1f9)](_0x3c7536);}},_0x23c990(_0x271ee8[_0x250e54(0x20b)],'pluginName',_0x11f94e),_0x23c990(_0x271ee8[_0x250e54(0x20b)],'type',_0x5837fb[_0x250e54(0x1ff)][_0x250e54(0x220)]),_0x271ee8[_0x250e54(0x20b)]=_0x241529([_0x5837fb[_0x250e54(0x22b)](_0xf07f6e['UniverExchangeClientPlugin']),_0x5a44d6(0x1,_0x5837fb[_0x250e54(0x1f0)](_0x5837fb['Injector'])),_0x5a44d6(0x2,_0x5837fb[_0x250e54(0x1f1)])],_0x271ee8[_0x250e54(0x20b)]),_0x271ee8['ExportDOCXOperation']=_0x3b2702,_0x271ee8[_0x250e54(0x205)]=_0x5729a7,Object[_0x250e54(0x218)](_0x271ee8,Symbol[_0x250e54(0x212)],{'value':_0x250e54(0x225)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/docs-exchange-client",
|
|
3
|
-
"version": "0.7.0-nightly.
|
|
3
|
+
"version": "0.7.0-nightly.202505181606",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"lib"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@univerjs/
|
|
46
|
-
"@univerjs
|
|
47
|
-
"@univerjs/ui": "0.7.0-nightly.
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.7.0-nightly.202505181606",
|
|
46
|
+
"@univerjs/core": "0.7.0-nightly.202505181606",
|
|
47
|
+
"@univerjs/ui": "0.7.0-nightly.202505181606"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"typescript": "^5.8.3",
|