@univerjs-pro/docs-exchange-client 0.7.0-nightly.202505031606 → 0.7.0-nightly.202505041606
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';var
|
|
1
|
+
'use strict';var _0x3b1982=_0x9d7a;function _0x9d7a(_0x330730,_0x11195f){var _0x4e91e4=_0x4e91();return _0x9d7a=function(_0x9d7aff,_0x127589){_0x9d7aff=_0x9d7aff-0x11d;var _0x4ad9c0=_0x4e91e4[_0x9d7aff];return _0x4ad9c0;},_0x9d7a(_0x330730,_0x11195f);}(function(_0x347b0c,_0x1c0ca5){var _0x493126=_0x9d7a,_0x27fde3=_0x347b0c();while(!![]){try{var _0x15b462=parseInt(_0x493126(0x120))/0x1*(parseInt(_0x493126(0x157))/0x2)+parseInt(_0x493126(0x123))/0x3*(parseInt(_0x493126(0x14e))/0x4)+parseInt(_0x493126(0x148))/0x5*(-parseInt(_0x493126(0x13f))/0x6)+parseInt(_0x493126(0x141))/0x7+-parseInt(_0x493126(0x12d))/0x8+parseInt(_0x493126(0x159))/0x9+-parseInt(_0x493126(0x156))/0xa*(parseInt(_0x493126(0x149))/0xb);if(_0x15b462===_0x1c0ca5)break;else _0x27fde3['push'](_0x27fde3['shift']());}catch(_0x3b2413){_0x27fde3['push'](_0x27fde3['shift']());}}}(_0x4e91,0x3ad75));Object[_0x3b1982(0x152)](exports,Symbol['toStringTag'],{'value':_0x3b1982(0x128)});const l=require(_0x3b1982(0x13e)),i=require('@univerjs/core'),a=require(_0x3b1982(0x124)),v=_0x3b1982(0x142),d={},g={'id':_0x3b1982(0x144),'type':i[_0x3b1982(0x122)][_0x3b1982(0x146)],'handler':async _0x2a8b05=>(_0x2a8b05[_0x3b1982(0x151)](l['IExchangeOperateService'])[_0x3b1982(0x12c)](),!0x0)},p={'id':_0x3b1982(0x125),'type':i[_0x3b1982(0x122)][_0x3b1982(0x146)],'handler':async _0x26c480=>(_0x26c480[_0x3b1982(0x151)](l['IExchangeOperateService'])[_0x3b1982(0x135)](),!0x0)},h=_0x3b1982(0x155);function I(_0x1d7c74){var _0x59affa=_0x3b1982;return{'id':h,'type':a['MenuItemType']['SUBITEMS'],'icon':'DirectExportSingle','tooltip':'exchange.file','hidden$':a['getMenuHiddenObservable'](_0x1d7c74,i[_0x59affa(0x158)][_0x59affa(0x12a)])};}function O(){var _0x4fe512=_0x3b1982;return{'id':g['id'],'type':a[_0x4fe512(0x127)][_0x4fe512(0x11e)],'title':_0x4fe512(0x13b),'icon':_0x4fe512(0x14d)};}function E(){var _0x3cb35b=_0x3b1982;return{'id':p['id'],'type':a[_0x3cb35b(0x127)][_0x3cb35b(0x11e)],'title':_0x3cb35b(0x12f),'icon':_0x3cb35b(0x126)};}const x={[a[_0x3b1982(0x137)][_0x3b1982(0x14a)]]:{[h]:{'order':0x4,'menuItemFactory':I,[g['id']]:{'order':0x0,'menuItemFactory':O},[p['id']]:{'order':0x1,'menuItemFactory':E}}}};var D=Object[_0x3b1982(0x133)],f=(_0x54b73f,_0x47717a,_0x35f9be,_0x58c6a4)=>{var _0x4678a4=_0x3b1982;for(var _0x3aa2ff=_0x58c6a4>0x1?void 0x0:_0x58c6a4?D(_0x47717a,_0x35f9be):_0x47717a,_0x6ba595=_0x54b73f[_0x4678a4(0x131)]-0x1,_0x302229;_0x6ba595>=0x0;_0x6ba595--)(_0x302229=_0x54b73f[_0x6ba595])&&(_0x3aa2ff=_0x302229(_0x3aa2ff)||_0x3aa2ff);return _0x3aa2ff;},_=(_0x58ffbf,_0x2ed5bc)=>(_0x2bac81,_0x15fed9)=>_0x2ed5bc(_0x2bac81,_0x15fed9,_0x58ffbf);let u=class extends i[_0x3b1982(0x13a)]{constructor(_0x3dddb5,_0x1ef5ba){var _0x47fa59=_0x3b1982;super(),this[_0x47fa59(0x153)]=_0x3dddb5,this[_0x47fa59(0x11d)]=_0x1ef5ba,this[_0x47fa59(0x140)](),this['_initMenus']();}[_0x3b1982(0x140)](){var _0x4c87f6=_0x3b1982;[g,p][_0x4c87f6(0x134)](_0x1512e7=>{var _0x5c80ff=_0x4c87f6;this[_0x5c80ff(0x13d)](this[_0x5c80ff(0x153)][_0x5c80ff(0x129)](_0x1512e7));});}[_0x3b1982(0x121)](){var _0x140ef6=_0x3b1982;this[_0x140ef6(0x11d)][_0x140ef6(0x154)](x);}};u=f([_(0x0,i[_0x3b1982(0x12e)]),_(0x1,a[_0x3b1982(0x14f)])],u);var S=Object['defineProperty'],y=Object[_0x3b1982(0x133)],P=(_0x1413d1,_0x58b1b3,_0x1c9704)=>_0x58b1b3 in _0x1413d1?S(_0x1413d1,_0x58b1b3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1c9704}):_0x1413d1[_0x58b1b3]=_0x1c9704,T=(_0x119049,_0x192f0e,_0x4f6b66,_0x39447a)=>{var _0x3026a5=_0x3b1982;for(var _0x161b71=_0x39447a>0x1?void 0x0:_0x39447a?y(_0x192f0e,_0x4f6b66):_0x192f0e,_0x1ed2a8=_0x119049[_0x3026a5(0x131)]-0x1,_0x4c3aad;_0x1ed2a8>=0x0;_0x1ed2a8--)(_0x4c3aad=_0x119049[_0x1ed2a8])&&(_0x161b71=_0x4c3aad(_0x161b71)||_0x161b71);return _0x161b71;},m=(_0x4aa95e,_0x1305f3)=>(_0x43911d,_0x423d59)=>_0x1305f3(_0x43911d,_0x423d59,_0x4aa95e),C=(_0xced317,_0x57df29,_0x42f659)=>P(_0xced317,typeof _0x57df29!=_0x3b1982(0x12b)?_0x57df29+'':_0x57df29,_0x42f659);const U=_0x3b1982(0x14c);function _0x4e91(){var _0x315df6=['menu','OPERATION','IConfigService','1595nHTCeE','3078009jFUaly','FILE','type','DOC_EXCHANGE_CLIENT_PLUGIN','FolderSingle','1333532ZldAuE','IMenuManagerService','merge','get','defineProperty','_commandService','mergeMenu','docs-exchange-client.operation.exchange','50gvXfuN','52ajcESt','UniverInstanceType','4231827lROmzH','_menuManagerService','BUTTON','_configService','16648jivgax','_initMenus','CommandType','3lPAyTI','@univerjs/ui','exchange-client.operation.export-docx','ExportSingle','MenuItemType','Module','registerCommand','UNIVER_DOC','symbol','importDOCXToUnitId','240864AxGGFI','ICommandService','exchange.download','_config','length','ExportDOCXOperation','getOwnPropertyDescriptor','forEach','exportDOCXByUnitId','pluginName','RibbonStartGroup','setConfig','_injector','Disposable','exchange.upload','UniverDocsExchangeClientPlugin','disposeWithMe','@univerjs-pro/exchange-client','858vYsgPV','_initCommands','3355793GdrYmP','docs-exchange-client.config','DependentOn','exchange-client.operation.import-docx'];_0x4e91=function(){return _0x315df6;};return _0x4e91();}exports[_0x3b1982(0x13c)]=class extends i['Plugin']{constructor(_0x39fc1a=d,_0x3f6224,_0x51b497){var _0x2ae998=_0x3b1982;super(),this[_0x2ae998(0x130)]=_0x39fc1a,this['_injector']=_0x3f6224,this[_0x2ae998(0x11f)]=_0x51b497;const {menu:_0xcbb309,..._0x554153}=i[_0x2ae998(0x150)]({},d,this[_0x2ae998(0x130)]);_0xcbb309&&this[_0x2ae998(0x11f)][_0x2ae998(0x138)](_0x2ae998(0x145),_0xcbb309,{'merge':!0x0}),this[_0x2ae998(0x11f)][_0x2ae998(0x138)](v,_0x554153);}['onStarting'](){var _0x2091e3=_0x3b1982;[[u]][_0x2091e3(0x134)](_0x2a0e3e=>this[_0x2091e3(0x139)]['add'](_0x2a0e3e));}['onReady'](){var _0xe9dd42=_0x3b1982;this[_0xe9dd42(0x139)][_0xe9dd42(0x151)](u);}},C(exports[_0x3b1982(0x13c)],_0x3b1982(0x136),U),C(exports[_0x3b1982(0x13c)],_0x3b1982(0x14b),i['UniverInstanceType']['UNIVER_DOC']),exports[_0x3b1982(0x13c)]=T([i[_0x3b1982(0x143)](l['UniverExchangeClientPlugin']),m(0x1,i['Inject'](i['Injector'])),m(0x2,i[_0x3b1982(0x147)])],exports['UniverDocsExchangeClientPlugin']),exports[_0x3b1982(0x132)]=p,exports['ImportDOCXOperation']=g;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x5f03a3=_0x2994;(function(_0x17f45b,_0x4a8974){var _0x4badf3=_0x2994,_0x31cf99=_0x17f45b();while(!![]){try{var _0x1fe07d=parseInt(_0x4badf3(0x169))/0x1*(-parseInt(_0x4badf3(0x15c))/0x2)+parseInt(_0x4badf3(0x150))/0x3+-parseInt(_0x4badf3(0x16d))/0x4*(-parseInt(_0x4badf3(0x152))/0x5)+-parseInt(_0x4badf3(0x153))/0x6+parseInt(_0x4badf3(0x16f))/0x7+parseInt(_0x4badf3(0x15e))/0x8+-parseInt(_0x4badf3(0x16e))/0x9*(parseInt(_0x4badf3(0x14e))/0xa);if(_0x1fe07d===_0x4a8974)break;else _0x31cf99['push'](_0x31cf99['shift']());}catch(_0x4c52b7){_0x31cf99['push'](_0x31cf99['shift']());}}}(_0x1bb3,0xa2ac7));import{IExchangeOperateService as _0x4c8ded,UniverExchangeClientPlugin as _0x18213b}from'@univerjs-pro/exchange-client';import{CommandType as _0x1aa87c,UniverInstanceType as _0x8b8364,Disposable as _0x208a54,ICommandService as _0x3aeecb,DependentOn as _0x4f6cf6,Inject as _0x946a48,Injector as _0xf7d1be,IConfigService as _0x5bf269,Plugin as _0x1c9a75,merge as _0x205f2e}from'@univerjs/core';import{MenuItemType as _0x8f3250,getMenuHiddenObservable as _0x483a67,RibbonStartGroup as _0x7e39f9,IMenuManagerService as _0x50de0f}from'@univerjs/ui';const b='docs-exchange-client.config',m={},d={'id':_0x5f03a3(0x167),'type':_0x1aa87c['OPERATION'],'handler':async _0x4ff3da=>(_0x4ff3da['get'](_0x4c8ded)[_0x5f03a3(0x173)](),!0x0)},_={'id':'exchange-client.operation.export-docx','type':_0x1aa87c[_0x5f03a3(0x168)],'handler':async _0x47a895=>(_0x47a895[_0x5f03a3(0x14f)](_0x4c8ded)[_0x5f03a3(0x157)](),!0x0)},I=_0x5f03a3(0x148);function _0x2994(_0x474989,_0x580fef){var _0x1bb3ac=_0x1bb3();return _0x2994=function(_0x29949b,_0x4edee8){_0x29949b=_0x29949b-0x147;var _0x2b98da=_0x1bb3ac[_0x29949b];return _0x2b98da;},_0x2994(_0x474989,_0x580fef);}function _0x1bb3(){var _0x3b91fa=['onReady','add','12632860eUMPZu','get','3043386gziqEq','_configService','265JElAKl','305652JKHhgi','type','_injector','registerCommand','exportDOCXByUnitId','FILE','exchange.upload','FolderSingle','defineProperty','2TeqcQc','_initCommands','1207368DeVzuP','DirectExportSingle','length','_config','symbol','UNIVER_DOC','disposeWithMe','setConfig','forEach','exchange-client.operation.import-docx','OPERATION','511088SorYUG','mergeMenu','BUTTON','_initMenus','72988pSfhBL','9atQHpi','2514071wsgYWQ','onStarting','getOwnPropertyDescriptor','ExportSingle','importDOCXToUnitId','menu','_menuManagerService','docs-exchange-client.operation.exchange','exchange.download','SUBITEMS','_commandService'];_0x1bb3=function(){return _0x3b91fa;};return _0x1bb3();}function F(_0x1a078b){var _0x4ee10d=_0x5f03a3;return{'id':I,'type':_0x8f3250[_0x4ee10d(0x14a)],'icon':_0x4ee10d(0x15f),'tooltip':'exchange.file','hidden$':_0x483a67(_0x1a078b,_0x8b8364[_0x4ee10d(0x163)])};}function X(){var _0x1a1fa7=_0x5f03a3;return{'id':d['id'],'type':_0x8f3250[_0x1a1fa7(0x16b)],'title':_0x1a1fa7(0x159),'icon':_0x1a1fa7(0x15a)};}function G(){var _0x273d8c=_0x5f03a3;return{'id':_['id'],'type':_0x8f3250[_0x273d8c(0x16b)],'title':_0x273d8c(0x149),'icon':_0x273d8c(0x172)};}const A={[_0x7e39f9[_0x5f03a3(0x158)]]:{[I]:{'order':0x4,'menuItemFactory':F,[d['id']]:{'order':0x0,'menuItemFactory':X},[_['id']]:{'order':0x1,'menuItemFactory':G}}}};var L=Object[_0x5f03a3(0x171)],R=(_0x5426b2,_0xcb78e6,_0x295fae,_0x270646)=>{for(var _0x49ed69=_0x270646>0x1?void 0x0:_0x270646?L(_0xcb78e6,_0x295fae):_0xcb78e6,_0x55501e=_0x5426b2['length']-0x1,_0x119625;_0x55501e>=0x0;_0x55501e--)(_0x119625=_0x5426b2[_0x55501e])&&(_0x49ed69=_0x119625(_0x49ed69)||_0x49ed69);return _0x49ed69;},u=(_0x135874,_0x27e592)=>(_0x1596af,_0x287905)=>_0x27e592(_0x1596af,_0x287905,_0x135874);let a=class extends _0x208a54{constructor(_0x470c5e,_0x2f501d){var _0x2ebd38=_0x5f03a3;super(),this[_0x2ebd38(0x14b)]=_0x470c5e,this[_0x2ebd38(0x147)]=_0x2f501d,this[_0x2ebd38(0x15d)](),this[_0x2ebd38(0x16c)]();}[_0x5f03a3(0x15d)](){var _0x4c5e7e=_0x5f03a3;[d,_][_0x4c5e7e(0x166)](_0x1a239c=>{var _0x576b78=_0x4c5e7e;this[_0x576b78(0x164)](this[_0x576b78(0x14b)][_0x576b78(0x156)](_0x1a239c));});}['_initMenus'](){var _0x27fa6b=_0x5f03a3;this[_0x27fa6b(0x147)][_0x27fa6b(0x16a)](A);}};a=R([u(0x0,_0x3aeecb),u(0x1,_0x50de0f)],a);var j=Object[_0x5f03a3(0x15b)],w=Object['getOwnPropertyDescriptor'],B=(_0x50763b,_0xb0056d,_0x210d47)=>_0xb0056d in _0x50763b?j(_0x50763b,_0xb0056d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x210d47}):_0x50763b[_0xb0056d]=_0x210d47,H=(_0x22200f,_0x3257a4,_0x5b5dd8,_0x542b19)=>{var _0x4c9cdc=_0x5f03a3;for(var _0x1e0e6d=_0x542b19>0x1?void 0x0:_0x542b19?w(_0x3257a4,_0x5b5dd8):_0x3257a4,_0x34ab9e=_0x22200f[_0x4c9cdc(0x160)]-0x1,_0x4818fc;_0x34ab9e>=0x0;_0x34ab9e--)(_0x4818fc=_0x22200f[_0x34ab9e])&&(_0x1e0e6d=_0x4818fc(_0x1e0e6d)||_0x1e0e6d);return _0x1e0e6d;},g=(_0x47e251,_0x2197cc)=>(_0x409efc,_0x232dd3)=>_0x2197cc(_0x409efc,_0x232dd3,_0x47e251),v=(_0x49e992,_0x5d3a08,_0x441e32)=>B(_0x49e992,typeof _0x5d3a08!=_0x5f03a3(0x162)?_0x5d3a08+'':_0x5d3a08,_0x441e32);const $='DOC_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x1c9a75{constructor(_0x497285=m,_0x4e200d,_0xe58b71){var _0x2997ff=_0x5f03a3;super(),this[_0x2997ff(0x161)]=_0x497285,this[_0x2997ff(0x155)]=_0x4e200d,this[_0x2997ff(0x151)]=_0xe58b71;const {menu:_0x58f8be,..._0x544a8e}=_0x205f2e({},m,this[_0x2997ff(0x161)]);_0x58f8be&&this[_0x2997ff(0x151)][_0x2997ff(0x165)](_0x2997ff(0x174),_0x58f8be,{'merge':!0x0}),this[_0x2997ff(0x151)][_0x2997ff(0x165)](b,_0x544a8e);}[_0x5f03a3(0x170)](){var _0x157d19=_0x5f03a3;[[a]][_0x157d19(0x166)](_0x4c4390=>this[_0x157d19(0x155)][_0x157d19(0x14d)](_0x4c4390));}[_0x5f03a3(0x14c)](){var _0x2943dc=_0x5f03a3;this[_0x2943dc(0x155)]['get'](a);}};v(s,'pluginName',$),v(s,_0x5f03a3(0x154),_0x8b8364[_0x5f03a3(0x163)]),s=H([_0x4f6cf6(_0x18213b),g(0x1,_0x946a48(_0xf7d1be)),g(0x2,_0x5bf269)],s);export{_ as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x5f03a3=_0x2994;(function(_0x17f45b,_0x4a8974){var _0x4badf3=_0x2994,_0x31cf99=_0x17f45b();while(!![]){try{var _0x1fe07d=parseInt(_0x4badf3(0x169))/0x1*(-parseInt(_0x4badf3(0x15c))/0x2)+parseInt(_0x4badf3(0x150))/0x3+-parseInt(_0x4badf3(0x16d))/0x4*(-parseInt(_0x4badf3(0x152))/0x5)+-parseInt(_0x4badf3(0x153))/0x6+parseInt(_0x4badf3(0x16f))/0x7+parseInt(_0x4badf3(0x15e))/0x8+-parseInt(_0x4badf3(0x16e))/0x9*(parseInt(_0x4badf3(0x14e))/0xa);if(_0x1fe07d===_0x4a8974)break;else _0x31cf99['push'](_0x31cf99['shift']());}catch(_0x4c52b7){_0x31cf99['push'](_0x31cf99['shift']());}}}(_0x1bb3,0xa2ac7));import{IExchangeOperateService as _0x4c8ded,UniverExchangeClientPlugin as _0x18213b}from'@univerjs-pro/exchange-client';import{CommandType as _0x1aa87c,UniverInstanceType as _0x8b8364,Disposable as _0x208a54,ICommandService as _0x3aeecb,DependentOn as _0x4f6cf6,Inject as _0x946a48,Injector as _0xf7d1be,IConfigService as _0x5bf269,Plugin as _0x1c9a75,merge as _0x205f2e}from'@univerjs/core';import{MenuItemType as _0x8f3250,getMenuHiddenObservable as _0x483a67,RibbonStartGroup as _0x7e39f9,IMenuManagerService as _0x50de0f}from'@univerjs/ui';const b='docs-exchange-client.config',m={},d={'id':_0x5f03a3(0x167),'type':_0x1aa87c['OPERATION'],'handler':async _0x4ff3da=>(_0x4ff3da['get'](_0x4c8ded)[_0x5f03a3(0x173)](),!0x0)},_={'id':'exchange-client.operation.export-docx','type':_0x1aa87c[_0x5f03a3(0x168)],'handler':async _0x47a895=>(_0x47a895[_0x5f03a3(0x14f)](_0x4c8ded)[_0x5f03a3(0x157)](),!0x0)},I=_0x5f03a3(0x148);function _0x2994(_0x474989,_0x580fef){var _0x1bb3ac=_0x1bb3();return _0x2994=function(_0x29949b,_0x4edee8){_0x29949b=_0x29949b-0x147;var _0x2b98da=_0x1bb3ac[_0x29949b];return _0x2b98da;},_0x2994(_0x474989,_0x580fef);}function _0x1bb3(){var _0x3b91fa=['onReady','add','12632860eUMPZu','get','3043386gziqEq','_configService','265JElAKl','305652JKHhgi','type','_injector','registerCommand','exportDOCXByUnitId','FILE','exchange.upload','FolderSingle','defineProperty','2TeqcQc','_initCommands','1207368DeVzuP','DirectExportSingle','length','_config','symbol','UNIVER_DOC','disposeWithMe','setConfig','forEach','exchange-client.operation.import-docx','OPERATION','511088SorYUG','mergeMenu','BUTTON','_initMenus','72988pSfhBL','9atQHpi','2514071wsgYWQ','onStarting','getOwnPropertyDescriptor','ExportSingle','importDOCXToUnitId','menu','_menuManagerService','docs-exchange-client.operation.exchange','exchange.download','SUBITEMS','_commandService'];_0x1bb3=function(){return _0x3b91fa;};return _0x1bb3();}function F(_0x1a078b){var _0x4ee10d=_0x5f03a3;return{'id':I,'type':_0x8f3250[_0x4ee10d(0x14a)],'icon':_0x4ee10d(0x15f),'tooltip':'exchange.file','hidden$':_0x483a67(_0x1a078b,_0x8b8364[_0x4ee10d(0x163)])};}function X(){var _0x1a1fa7=_0x5f03a3;return{'id':d['id'],'type':_0x8f3250[_0x1a1fa7(0x16b)],'title':_0x1a1fa7(0x159),'icon':_0x1a1fa7(0x15a)};}function G(){var _0x273d8c=_0x5f03a3;return{'id':_['id'],'type':_0x8f3250[_0x273d8c(0x16b)],'title':_0x273d8c(0x149),'icon':_0x273d8c(0x172)};}const A={[_0x7e39f9[_0x5f03a3(0x158)]]:{[I]:{'order':0x4,'menuItemFactory':F,[d['id']]:{'order':0x0,'menuItemFactory':X},[_['id']]:{'order':0x1,'menuItemFactory':G}}}};var L=Object[_0x5f03a3(0x171)],R=(_0x5426b2,_0xcb78e6,_0x295fae,_0x270646)=>{for(var _0x49ed69=_0x270646>0x1?void 0x0:_0x270646?L(_0xcb78e6,_0x295fae):_0xcb78e6,_0x55501e=_0x5426b2['length']-0x1,_0x119625;_0x55501e>=0x0;_0x55501e--)(_0x119625=_0x5426b2[_0x55501e])&&(_0x49ed69=_0x119625(_0x49ed69)||_0x49ed69);return _0x49ed69;},u=(_0x135874,_0x27e592)=>(_0x1596af,_0x287905)=>_0x27e592(_0x1596af,_0x287905,_0x135874);let a=class extends _0x208a54{constructor(_0x470c5e,_0x2f501d){var _0x2ebd38=_0x5f03a3;super(),this[_0x2ebd38(0x14b)]=_0x470c5e,this[_0x2ebd38(0x147)]=_0x2f501d,this[_0x2ebd38(0x15d)](),this[_0x2ebd38(0x16c)]();}[_0x5f03a3(0x15d)](){var _0x4c5e7e=_0x5f03a3;[d,_][_0x4c5e7e(0x166)](_0x1a239c=>{var _0x576b78=_0x4c5e7e;this[_0x576b78(0x164)](this[_0x576b78(0x14b)][_0x576b78(0x156)](_0x1a239c));});}['_initMenus'](){var _0x27fa6b=_0x5f03a3;this[_0x27fa6b(0x147)][_0x27fa6b(0x16a)](A);}};a=R([u(0x0,_0x3aeecb),u(0x1,_0x50de0f)],a);var j=Object[_0x5f03a3(0x15b)],w=Object['getOwnPropertyDescriptor'],B=(_0x50763b,_0xb0056d,_0x210d47)=>_0xb0056d in _0x50763b?j(_0x50763b,_0xb0056d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x210d47}):_0x50763b[_0xb0056d]=_0x210d47,H=(_0x22200f,_0x3257a4,_0x5b5dd8,_0x542b19)=>{var _0x4c9cdc=_0x5f03a3;for(var _0x1e0e6d=_0x542b19>0x1?void 0x0:_0x542b19?w(_0x3257a4,_0x5b5dd8):_0x3257a4,_0x34ab9e=_0x22200f[_0x4c9cdc(0x160)]-0x1,_0x4818fc;_0x34ab9e>=0x0;_0x34ab9e--)(_0x4818fc=_0x22200f[_0x34ab9e])&&(_0x1e0e6d=_0x4818fc(_0x1e0e6d)||_0x1e0e6d);return _0x1e0e6d;},g=(_0x47e251,_0x2197cc)=>(_0x409efc,_0x232dd3)=>_0x2197cc(_0x409efc,_0x232dd3,_0x47e251),v=(_0x49e992,_0x5d3a08,_0x441e32)=>B(_0x49e992,typeof _0x5d3a08!=_0x5f03a3(0x162)?_0x5d3a08+'':_0x5d3a08,_0x441e32);const $='DOC_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x1c9a75{constructor(_0x497285=m,_0x4e200d,_0xe58b71){var _0x2997ff=_0x5f03a3;super(),this[_0x2997ff(0x161)]=_0x497285,this[_0x2997ff(0x155)]=_0x4e200d,this[_0x2997ff(0x151)]=_0xe58b71;const {menu:_0x58f8be,..._0x544a8e}=_0x205f2e({},m,this[_0x2997ff(0x161)]);_0x58f8be&&this[_0x2997ff(0x151)][_0x2997ff(0x165)](_0x2997ff(0x174),_0x58f8be,{'merge':!0x0}),this[_0x2997ff(0x151)][_0x2997ff(0x165)](b,_0x544a8e);}[_0x5f03a3(0x170)](){var _0x157d19=_0x5f03a3;[[a]][_0x157d19(0x166)](_0x4c4390=>this[_0x157d19(0x155)][_0x157d19(0x14d)](_0x4c4390));}[_0x5f03a3(0x14c)](){var _0x2943dc=_0x5f03a3;this[_0x2943dc(0x155)]['get'](a);}};v(s,'pluginName',$),v(s,_0x5f03a3(0x154),_0x8b8364[_0x5f03a3(0x163)]),s=H([_0x4f6cf6(_0x18213b),g(0x1,_0x946a48(_0xf7d1be)),g(0x2,_0x5bf269)],s);export{_ as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2c796a,_0x133d8b){var _0x35ca8a=_0x4f78,_0x45e827=_0x2c796a();while(!![]){try{var _0x45c715=parseInt(_0x35ca8a(0x12d))/0x1+parseInt(_0x35ca8a(0x135))/0x2+-parseInt(_0x35ca8a(0x13e))/0x3*(-parseInt(_0x35ca8a(0x162))/0x4)+parseInt(_0x35ca8a(0x13c))/0x5*(-parseInt(_0x35ca8a(0x14d))/0x6)+parseInt(_0x35ca8a(0x159))/0x7+-parseInt(_0x35ca8a(0x11c))/0x8*(-parseInt(_0x35ca8a(0x11f))/0x9)+parseInt(_0x35ca8a(0x15a))/0xa*(-parseInt(_0x35ca8a(0x143))/0xb);if(_0x45c715===_0x133d8b)break;else _0x45e827['push'](_0x45e827['shift']());}catch(_0x5dec41){_0x45e827['push'](_0x45e827['shift']());}}}(_0x252e,0xc04bf),function(_0x4ea797,_0x37c7ca){var _0x3e41d0=_0x4f78;typeof exports==_0x3e41d0(0x142)&&typeof module<'u'?_0x37c7ca(exports,require(_0x3e41d0(0x12c)),require(_0x3e41d0(0x121)),require('@univerjs/ui')):typeof define==_0x3e41d0(0x152)&&define[_0x3e41d0(0x15d)]?define(['exports',_0x3e41d0(0x12c),'@univerjs/core',_0x3e41d0(0x12a)],_0x37c7ca):(_0x4ea797=typeof globalThis<'u'?globalThis:_0x4ea797||self,_0x37c7ca(_0x4ea797[_0x3e41d0(0x151)]={},_0x4ea797['UniverProExchangeClient'],_0x4ea797[_0x3e41d0(0x14b)],_0x4ea797['UniverUi']));}(this,function(_0x589a7e,_0x527f99,_0x738598,_0x11a898){'use strict';var _0x4ac7a4=_0x4f78;const _0x14cad0=_0x4ac7a4(0x157),_0x314f63={},_0x303539={'id':_0x4ac7a4(0x155),'type':_0x738598[_0x4ac7a4(0x146)][_0x4ac7a4(0x13d)],'handler':async _0x1882de=>(_0x1882de[_0x4ac7a4(0x127)](_0x527f99[_0x4ac7a4(0x120)])[_0x4ac7a4(0x132)](),!0x0)},_0x25677d={'id':'exchange-client.operation.export-docx','type':_0x738598[_0x4ac7a4(0x146)][_0x4ac7a4(0x13d)],'handler':async _0x3ac54d=>(_0x3ac54d['get'](_0x527f99[_0x4ac7a4(0x120)])[_0x4ac7a4(0x12f)](),!0x0)},_0x1be7a1=_0x4ac7a4(0x165);function _0x3b3695(_0x3ceb9f){var _0x1b0123=_0x4ac7a4;return{'id':_0x1be7a1,'type':_0x11a898[_0x1b0123(0x13b)][_0x1b0123(0x14f)],'icon':_0x1b0123(0x126),'tooltip':'exchange.file','hidden$':_0x11a898[_0x1b0123(0x15b)](_0x3ceb9f,_0x738598[_0x1b0123(0x15f)][_0x1b0123(0x145)])};}function _0x16b212(){var _0x32126c=_0x4ac7a4;return{'id':_0x303539['id'],'type':_0x11a898['MenuItemType'][_0x32126c(0x140)],'title':'exchange.upload','icon':_0x32126c(0x14e)};}function _0x469f7d(){var _0x1b9302=_0x4ac7a4;return{'id':_0x25677d['id'],'type':_0x11a898[_0x1b9302(0x13b)][_0x1b9302(0x140)],'title':'exchange.download','icon':_0x1b9302(0x15e)};}const _0x131a59={[_0x11a898[_0x4ac7a4(0x149)][_0x4ac7a4(0x13f)]]:{[_0x1be7a1]:{'order':0x4,'menuItemFactory':_0x3b3695,[_0x303539['id']]:{'order':0x0,'menuItemFactory':_0x16b212},[_0x25677d['id']]:{'order':0x1,'menuItemFactory':_0x469f7d}}}};var _0x18b59e=Object[_0x4ac7a4(0x137)],_0x3a8555=(_0x545ed4,_0x1a864b,_0x223ac8,_0x4b6c5e)=>{for(var _0x404129=_0x4b6c5e>0x1?void 0x0:_0x4b6c5e?_0x18b59e(_0x1a864b,_0x223ac8):_0x1a864b,_0x384850=_0x545ed4['length']-0x1,_0x12a92b;_0x384850>=0x0;_0x384850--)(_0x12a92b=_0x545ed4[_0x384850])&&(_0x404129=_0x12a92b(_0x404129)||_0x404129);return _0x404129;},_0x500154=(_0x58b845,_0x3de432)=>(_0x3acae2,_0x3ce284)=>_0x3de432(_0x3acae2,_0x3ce284,_0x58b845);let _0x22bdd8=class extends _0x738598[_0x4ac7a4(0x134)]{constructor(_0xebf07a,_0x43fab5){var _0x22c77d=_0x4ac7a4;super(),this[_0x22c77d(0x125)]=_0xebf07a,this[_0x22c77d(0x138)]=_0x43fab5,this[_0x22c77d(0x128)](),this[_0x22c77d(0x141)]();}[_0x4ac7a4(0x128)](){var _0x1e7552=_0x4ac7a4;[_0x303539,_0x25677d][_0x1e7552(0x158)](_0x3c483e=>{var _0x13e160=_0x1e7552;this[_0x13e160(0x124)](this['_commandService'][_0x13e160(0x130)](_0x3c483e));});}['_initMenus'](){var _0x420191=_0x4ac7a4;this[_0x420191(0x138)]['mergeMenu'](_0x131a59);}};_0x22bdd8=_0x3a8555([_0x500154(0x0,_0x738598[_0x4ac7a4(0x129)]),_0x500154(0x1,_0x11a898[_0x4ac7a4(0x160)])],_0x22bdd8);var _0x3ca35b=Object[_0x4ac7a4(0x139)],_0x16ca3d=Object[_0x4ac7a4(0x137)],_0x50ef42=(_0x88b57b,_0x48314c,_0x2c018f)=>_0x48314c in _0x88b57b?_0x3ca35b(_0x88b57b,_0x48314c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c018f}):_0x88b57b[_0x48314c]=_0x2c018f,_0x50fe4f=(_0x1fa863,_0x1d2795,_0x858e0b,_0x83a1f9)=>{var _0x40f9b6=_0x4ac7a4;for(var _0x14a567=_0x83a1f9>0x1?void 0x0:_0x83a1f9?_0x16ca3d(_0x1d2795,_0x858e0b):_0x1d2795,_0x330732=_0x1fa863[_0x40f9b6(0x14c)]-0x1,_0x2f26ef;_0x330732>=0x0;_0x330732--)(_0x2f26ef=_0x1fa863[_0x330732])&&(_0x14a567=_0x2f26ef(_0x14a567)||_0x14a567);return _0x14a567;},_0x4bfcdc=(_0x48185b,_0x1d4544)=>(_0x51dfa7,_0x318a4f)=>_0x1d4544(_0x51dfa7,_0x318a4f,_0x48185b),_0x4b723d=(_0x1bf7b1,_0x5e32c1,_0x33f904)=>_0x50ef42(_0x1bf7b1,typeof _0x5e32c1!=_0x4ac7a4(0x136)?_0x5e32c1+'':_0x5e32c1,_0x33f904);const _0x3c675b=_0x4ac7a4(0x144);_0x589a7e[_0x4ac7a4(0x123)]=class extends _0x738598[_0x4ac7a4(0x133)]{constructor(_0x40a266=_0x314f63,_0x1ffc7c,_0x1d9519){var _0x4155ee=_0x4ac7a4;super(),this[_0x4155ee(0x164)]=_0x40a266,this[_0x4155ee(0x11d)]=_0x1ffc7c,this[_0x4155ee(0x153)]=_0x1d9519;const {menu:_0x45fca9,..._0x3da6c3}=_0x738598[_0x4155ee(0x150)]({},_0x314f63,this['_config']);_0x45fca9&&this['_configService'][_0x4155ee(0x156)](_0x4155ee(0x11e),_0x45fca9,{'merge':!0x0}),this[_0x4155ee(0x153)]['setConfig'](_0x14cad0,_0x3da6c3);}[_0x4ac7a4(0x154)](){var _0x4f7b09=_0x4ac7a4;[[_0x22bdd8]][_0x4f7b09(0x158)](_0x28b47b=>this[_0x4f7b09(0x11d)][_0x4f7b09(0x163)](_0x28b47b));}[_0x4ac7a4(0x131)](){var _0x3285a1=_0x4ac7a4;this[_0x3285a1(0x11d)][_0x3285a1(0x127)](_0x22bdd8);}},_0x4b723d(_0x589a7e[_0x4ac7a4(0x123)],_0x4ac7a4(0x148),_0x3c675b),_0x4b723d(_0x589a7e[_0x4ac7a4(0x123)],_0x4ac7a4(0x122),_0x738598['UniverInstanceType']['UNIVER_DOC']),_0x589a7e[_0x4ac7a4(0x123)]=_0x50fe4f([_0x738598[_0x4ac7a4(0x14a)](_0x527f99[_0x4ac7a4(0x12e)]),_0x4bfcdc(0x1,_0x738598['Inject'](_0x738598[_0x4ac7a4(0x13a)])),_0x4bfcdc(0x2,_0x738598[_0x4ac7a4(0x15c)])],_0x589a7e['UniverDocsExchangeClientPlugin']),_0x589a7e[_0x4ac7a4(0x161)]=_0x25677d,_0x589a7e[_0x4ac7a4(0x12b)]=_0x303539,Object[_0x4ac7a4(0x139)](_0x589a7e,Symbol[_0x4ac7a4(0x147)],{'value':'Module'});}));function _0x4f78(_0x40343f,_0x790416){var _0x252e07=_0x252e();return _0x4f78=function(_0x4f785c,_0x2eadca){_0x4f785c=_0x4f785c-0x11c;var _0x44ca9e=_0x252e07[_0x4f785c];return _0x44ca9e;},_0x4f78(_0x40343f,_0x790416);}function _0x252e(){var _0x5b75cb=['function','_configService','onStarting','exchange-client.operation.import-docx','setConfig','docs-exchange-client.config','forEach','1574594juQvOX','1855610XvfUFO','getMenuHiddenObservable','IConfigService','amd','ExportSingle','UniverInstanceType','IMenuManagerService','ExportDOCXOperation','16LyeFUf','add','_config','docs-exchange-client.operation.exchange','30584eviUyU','_injector','menu','693XgjCtI','IExchangeOperateService','@univerjs/core','type','UniverDocsExchangeClientPlugin','disposeWithMe','_commandService','DirectExportSingle','get','_initCommands','ICommandService','@univerjs/ui','ImportDOCXOperation','@univerjs-pro/exchange-client','1427732phkZvZ','UniverExchangeClientPlugin','exportDOCXByUnitId','registerCommand','onReady','importDOCXToUnitId','Plugin','Disposable','564798fSMBLi','symbol','getOwnPropertyDescriptor','_menuManagerService','defineProperty','Injector','MenuItemType','1240940ITnPiu','OPERATION','172929GtSgHf','FILE','BUTTON','_initMenus','object','55ZaYKYA','DOC_EXCHANGE_CLIENT_PLUGIN','UNIVER_DOC','CommandType','toStringTag','pluginName','RibbonStartGroup','DependentOn','UniverCore','length','18caltQU','FolderSingle','SUBITEMS','merge','UniverProDocsExchangeClient'];_0x252e=function(){return _0x5b75cb;};return _0x252e();}
|
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.202505041606",
|
|
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-pro/exchange-client": "0.7.0-nightly.
|
|
46
|
-
"@univerjs/core": "0.7.0-nightly.
|
|
47
|
-
"@univerjs/ui": "0.7.0-nightly.
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.7.0-nightly.202505041606",
|
|
46
|
+
"@univerjs/core": "0.7.0-nightly.202505041606",
|
|
47
|
+
"@univerjs/ui": "0.7.0-nightly.202505041606"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"typescript": "^5.8.3",
|