@univerjs-pro/docs-exchange-client 0.14.0 → 0.15.0-insiders.20251227-dafc157
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 +7 -7
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x35d0c3=_0x5a7e;(function(_0x4186f0,_0x1962ce){var _0x30d9ff=_0x5a7e,_0xfd2308=_0x4186f0();while(!![]){try{var _0x2ab53c=parseInt(_0x30d9ff(0x1a3))/0x1+parseInt(_0x30d9ff(0x19b))/0x2*(parseInt(_0x30d9ff(0x195))/0x3)+-parseInt(_0x30d9ff(0x1c2))/0x4*(parseInt(_0x30d9ff(0x1b4))/0x5)+-parseInt(_0x30d9ff(0x1c6))/0x6+parseInt(_0x30d9ff(0x19a))/0x7+-parseInt(_0x30d9ff(0x192))/0x8*(-parseInt(_0x30d9ff(0x1a1))/0x9)+-parseInt(_0x30d9ff(0x1b2))/0xa*(parseInt(_0x30d9ff(0x1ba))/0xb);if(_0x2ab53c===_0x1962ce)break;else _0xfd2308['push'](_0xfd2308['shift']());}catch(_0x2a5cf1){_0xfd2308['push'](_0xfd2308['shift']());}}}(_0xeb1e,0x55efa));Object[_0x35d0c3(0x1a4)](exports,Symbol['toStringTag'],{'value':'Module'});function _0xeb1e(){var _0xea57c6=['getOwnPropertyDescriptor','21244OjnpcM','UniverInstanceType','_configService','setConfig','565626gNlKWU','_initCommands','registerCommand','_commandService','OPERATION','_injector','72ZCshWD','forEach','onReady','18WIrzpd','_initMenus','_config','length','ExportDOCXOperation','4527320OnDqbr','99514XFkSbm','mergeMenu','docs-exchange-client.config','BUTTON','symbol','RibbonStartGroup','196047eFyzoE','Inject','314547ihjccI','defineProperty','UNIVER_DOC','onStarting','exchange.file','exchange.download','docs-exchange-client.operation.exchange','UniverExchangeClientPlugin','OTHERS','menu','FolderIcon','exchange-client.operation.export-docx','merge','DOC_EXCHANGE_CLIENT_PLUGIN','exportDOCXByUnitId','820QlHiIv','add','635wlZXSC','IExchangeOperateService','get','IConfigService','UniverDocsExchangeClientPlugin','Injector','44957oCLiuv','MenuItemType','ExportIcon','_menuManagerService','exchange-client.operation.import-docx','CommandType','Plugin'];_0xeb1e=function(){return _0xea57c6;};return _0xeb1e();}const d=require('@univerjs-pro/exchange-client'),i=require('@univerjs/core'),a=require('@univerjs/ui'),p={'id':_0x35d0c3(0x1be),'type':i[_0x35d0c3(0x1bf)][_0x35d0c3(0x1ca)],'handler':async _0x1ce2db=>(_0x1ce2db['get'](d[_0x35d0c3(0x1b5)])['importDOCXToUnitId'](),!0x0)},g={'id':_0x35d0c3(0x1ae),'type':i[_0x35d0c3(0x1bf)][_0x35d0c3(0x1ca)],'handler':async _0x320bd2=>(_0x320bd2[_0x35d0c3(0x1b6)](d[_0x35d0c3(0x1b5)])[_0x35d0c3(0x1b1)](),!0x0)},I=_0x35d0c3(0x19d),l={},h=_0x35d0c3(0x1a9);function v(_0x3b4505){var _0x413c8f=_0x35d0c3;return{'id':h,'type':a[_0x413c8f(0x1bb)]['SUBITEMS'],'icon':'DirectExportIcon','tooltip':_0x413c8f(0x1a7),'hidden$':a['getMenuHiddenObservable'](_0x3b4505,i[_0x413c8f(0x1c3)][_0x413c8f(0x1a5)])};}function O(){var _0x563e2e=_0x35d0c3;return{'id':p['id'],'type':a['MenuItemType'][_0x563e2e(0x19e)],'title':'exchange.upload','icon':_0x563e2e(0x1ad)};}function E(){var _0x2e8860=_0x35d0c3;return{'id':g['id'],'type':a[_0x2e8860(0x1bb)][_0x2e8860(0x19e)],'title':_0x2e8860(0x1a8),'icon':_0x2e8860(0x1bc)};}const x={[a[_0x35d0c3(0x1a0)][_0x35d0c3(0x1ab)]]:{[h]:{'order':0.3,'menuItemFactory':v,[p['id']]:{'order':0x0,'menuItemFactory':O},[g['id']]:{'order':0x1,'menuItemFactory':E}}}};function _0x5a7e(_0x165250,_0x1e87cb){_0x165250=_0x165250-0x192;var _0xeb1e40=_0xeb1e();var _0x5a7e1c=_0xeb1e40[_0x165250];return _0x5a7e1c;}var D=Object[_0x35d0c3(0x1c1)],f=(_0x439fc2,_0x4cf29b,_0x51c861,_0x4cd03c)=>{var _0x11ca6f=_0x35d0c3;for(var _0x26a290=_0x4cd03c>0x1?void 0x0:_0x4cd03c?D(_0x4cf29b,_0x51c861):_0x4cf29b,_0x4cf51d=_0x439fc2[_0x11ca6f(0x198)]-0x1,_0x3ad9bd;_0x4cf51d>=0x0;_0x4cf51d--)(_0x3ad9bd=_0x439fc2[_0x4cf51d])&&(_0x26a290=_0x3ad9bd(_0x26a290)||_0x26a290);return _0x26a290;},_=(_0x22b308,_0x446d87)=>(_0x2a6599,_0x3fc132)=>_0x446d87(_0x2a6599,_0x3fc132,_0x22b308);let u=class extends i['Disposable']{constructor(_0x1d73f7,_0x62c8b){var _0x250641=_0x35d0c3;super(),this[_0x250641(0x1c9)]=_0x1d73f7,this[_0x250641(0x1bd)]=_0x62c8b,this[_0x250641(0x1c7)](),this[_0x250641(0x196)]();}[_0x35d0c3(0x1c7)](){var _0x5c4a8c=_0x35d0c3;[p,g][_0x5c4a8c(0x193)](_0x175adf=>{var _0x50c13a=_0x5c4a8c;this['disposeWithMe'](this[_0x50c13a(0x1c9)][_0x50c13a(0x1c8)](_0x175adf));});}[_0x35d0c3(0x196)](){var _0x8023d1=_0x35d0c3;this[_0x8023d1(0x1bd)][_0x8023d1(0x19c)](x);}};u=f([_(0x0,i['ICommandService']),_(0x1,a['IMenuManagerService'])],u);var y=Object['defineProperty'],S=Object[_0x35d0c3(0x1c1)],P=(_0x1b3b09,_0x498a5b,_0x33dfc3)=>_0x498a5b in _0x1b3b09?y(_0x1b3b09,_0x498a5b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x33dfc3}):_0x1b3b09[_0x498a5b]=_0x33dfc3,T=(_0x532a5f,_0x3749e9,_0x3c1193,_0x2dd2de)=>{for(var _0x260fa4=_0x2dd2de>0x1?void 0x0:_0x2dd2de?S(_0x3749e9,_0x3c1193):_0x3749e9,_0x14dace=_0x532a5f['length']-0x1,_0x474daa;_0x14dace>=0x0;_0x14dace--)(_0x474daa=_0x532a5f[_0x14dace])&&(_0x260fa4=_0x474daa(_0x260fa4)||_0x260fa4);return _0x260fa4;},m=(_0x1dba79,_0x564070)=>(_0x187aa7,_0xe809d3)=>_0x564070(_0x187aa7,_0xe809d3,_0x1dba79),C=(_0x169656,_0xd3c703,_0x40f811)=>P(_0x169656,typeof _0xd3c703!=_0x35d0c3(0x19f)?_0xd3c703+'':_0xd3c703,_0x40f811);const U=_0x35d0c3(0x1b0);exports[_0x35d0c3(0x1b8)]=class extends i[_0x35d0c3(0x1c0)]{constructor(_0x4713d0=l,_0x4fff48,_0x22123a){var _0x13df03=_0x35d0c3;super(),this[_0x13df03(0x197)]=_0x4713d0,this[_0x13df03(0x1cb)]=_0x4fff48,this[_0x13df03(0x1c4)]=_0x22123a;const {menu:_0x334416,..._0x18b0f1}=i[_0x13df03(0x1af)]({},l,this[_0x13df03(0x197)]);_0x334416&&this[_0x13df03(0x1c4)][_0x13df03(0x1c5)](_0x13df03(0x1ac),_0x334416,{'merge':!0x0}),this[_0x13df03(0x1c4)]['setConfig'](I,_0x18b0f1);}[_0x35d0c3(0x1a6)](){var _0x45f300=_0x35d0c3;[[u]][_0x45f300(0x193)](_0x4f561d=>this['_injector'][_0x45f300(0x1b3)](_0x4f561d));}[_0x35d0c3(0x194)](){var _0x347217=_0x35d0c3;this[_0x347217(0x1cb)][_0x347217(0x1b6)](u);}},C(exports[_0x35d0c3(0x1b8)],'pluginName',U),C(exports[_0x35d0c3(0x1b8)],'type',i[_0x35d0c3(0x1c3)][_0x35d0c3(0x1a5)]),exports['UniverDocsExchangeClientPlugin']=T([i['DependentOn'](d[_0x35d0c3(0x1aa)]),m(0x1,i[_0x35d0c3(0x1a2)](i[_0x35d0c3(0x1b9)])),m(0x2,i[_0x35d0c3(0x1b7)])],exports[_0x35d0c3(0x1b8)]),exports[_0x35d0c3(0x199)]=g,exports['ImportDOCXOperation']=p;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var _0x45ee0d=_0x1f5e;(function(_0x1fe763,_0x42e93a){var _0x11ae80=_0x1f5e,_0x1c7718=_0x1fe763();while(!![]){try{var _0x56e945=-parseInt(_0x11ae80(0x15b))/0x1*(parseInt(_0x11ae80(0x16c))/0x2)+parseInt(_0x11ae80(0x166))/0x3*(parseInt(_0x11ae80(0x15f))/0x4)+-parseInt(_0x11ae80(0x163))/0x5*(parseInt(_0x11ae80(0x165))/0x6)+parseInt(_0x11ae80(0x15c))/0x7+parseInt(_0x11ae80(0x162))/0x8+-parseInt(_0x11ae80(0x160))/0x9+parseInt(_0x11ae80(0x161))/0xa;if(_0x56e945===_0x42e93a)break;else _0x1c7718['push'](_0x1c7718['shift']());}catch(_0x2f53d2){_0x1c7718['push'](_0x1c7718['shift']());}}}(_0x361c,0x8bcc8));import{IExchangeOperateService as _0x3d6813,UniverExchangeClientPlugin as _0x3aeadf}from'@univerjs-pro/exchange-client';import{CommandType as _0x31254f,UniverInstanceType as _0x113e79,Disposable as _0x5e4dfc,ICommandService as _0x5f217b,DependentOn as _0x1bd360,Inject as _0x4bc5d2,Injector as _0x5e52a8,IConfigService as _0xacbe38,Plugin as _0x565d5b,merge as _0x3f96cf}from'@univerjs/core';import{MenuItemType as _0x5347f9,getMenuHiddenObservable as _0x5a0c51,RibbonStartGroup as _0x32c1c5,IMenuManagerService as _0x528f92}from'@univerjs/ui';const d={'id':_0x45ee0d(0x17a),'type':_0x31254f[_0x45ee0d(0x16b)],'handler':async _0x3ac1cd=>(_0x3ac1cd[_0x45ee0d(0x16e)](_0x3d6813)[_0x45ee0d(0x15d)](),!0x0)},_={'id':'exchange-client.operation.export-docx','type':_0x31254f['OPERATION'],'handler':async _0x173541=>(_0x173541[_0x45ee0d(0x16e)](_0x3d6813)[_0x45ee0d(0x159)](),!0x0)},b=_0x45ee0d(0x15a),m={},C='docs-exchange-client.operation.exchange';function X(_0x31888f){var _0x4bf1a4=_0x45ee0d;return{'id':C,'type':_0x5347f9['SUBITEMS'],'icon':'DirectExportIcon','tooltip':_0x4bf1a4(0x153),'hidden$':_0x5a0c51(_0x31888f,_0x113e79[_0x4bf1a4(0x172)])};}function _0x361c(){var _0xf0b3fa=['OPERATION','2rGZQff','_menuManagerService','get','length','exchange.download','exchange.upload','UNIVER_DOC','pluginName','disposeWithMe','forEach','_config','BUTTON','_commandService','menu','exchange-client.operation.import-docx','exchange.file','_injector','onStarting','mergeMenu','_initCommands','setConfig','exportDOCXByUnitId','docs-exchange-client.config','209025KEPHxf','7730625JyopKP','importDOCXToUnitId','_configService','12FpekOx','6878223sTcazF','10580490xUZrRn','1232232tspUkv','5coFKIc','DOC_EXCHANGE_CLIENT_PLUGIN','4951314lSncAS','54654LVPtCu','_initMenus','FolderIcon','type','symbol'];_0x361c=function(){return _0xf0b3fa;};return _0x361c();}function F(){var _0x4a5e14=_0x45ee0d;return{'id':d['id'],'type':_0x5347f9[_0x4a5e14(0x177)],'title':_0x4a5e14(0x171),'icon':_0x4a5e14(0x168)};}function G(){var _0x3405e2=_0x45ee0d;return{'id':_['id'],'type':_0x5347f9[_0x3405e2(0x177)],'title':_0x3405e2(0x170),'icon':'ExportIcon'};}const R={[_0x32c1c5['OTHERS']]:{[C]:{'order':0.3,'menuItemFactory':X,[d['id']]:{'order':0x0,'menuItemFactory':F},[_['id']]:{'order':0x1,'menuItemFactory':G}}}};var A=Object['getOwnPropertyDescriptor'],j=(_0x382967,_0x511ac,_0x40d7c0,_0x2ec99a)=>{var _0x3e5ba4=_0x45ee0d;for(var _0x3b2b9e=_0x2ec99a>0x1?void 0x0:_0x2ec99a?A(_0x511ac,_0x40d7c0):_0x511ac,_0x5e2d15=_0x382967[_0x3e5ba4(0x16f)]-0x1,_0x553be3;_0x5e2d15>=0x0;_0x5e2d15--)(_0x553be3=_0x382967[_0x5e2d15])&&(_0x3b2b9e=_0x553be3(_0x3b2b9e)||_0x3b2b9e);return _0x3b2b9e;},u=(_0x49501f,_0x238051)=>(_0x5a698a,_0x38f86f)=>_0x238051(_0x5a698a,_0x38f86f,_0x49501f);function _0x1f5e(_0x30ac7f,_0x139f1a){_0x30ac7f=_0x30ac7f-0x153;var _0x361caa=_0x361c();var _0x1f5e1e=_0x361caa[_0x30ac7f];return _0x1f5e1e;}let a=class extends _0x5e4dfc{constructor(_0x4ba4f9,_0x2dc4c8){var _0x24a847=_0x45ee0d;super(),this['_commandService']=_0x4ba4f9,this[_0x24a847(0x16d)]=_0x2dc4c8,this[_0x24a847(0x157)](),this[_0x24a847(0x167)]();}[_0x45ee0d(0x157)](){var _0x542594=_0x45ee0d;[d,_][_0x542594(0x175)](_0x3f8339=>{var _0x420550=_0x542594;this[_0x420550(0x174)](this[_0x420550(0x178)]['registerCommand'](_0x3f8339));});}['_initMenus'](){var _0x529491=_0x45ee0d;this[_0x529491(0x16d)][_0x529491(0x156)](R);}};a=j([u(0x0,_0x5f217b),u(0x1,_0x528f92)],a);var w=Object['defineProperty'],H=Object['getOwnPropertyDescriptor'],L=(_0x598df7,_0x125a1b,_0x826b3)=>_0x125a1b in _0x598df7?w(_0x598df7,_0x125a1b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x826b3}):_0x598df7[_0x125a1b]=_0x826b3,B=(_0xf5ffb,_0x460779,_0x2f4181,_0x1d085e)=>{var _0xcefb9f=_0x45ee0d;for(var _0x5897c8=_0x1d085e>0x1?void 0x0:_0x1d085e?H(_0x460779,_0x2f4181):_0x460779,_0x2a32ff=_0xf5ffb[_0xcefb9f(0x16f)]-0x1,_0x3f5d22;_0x2a32ff>=0x0;_0x2a32ff--)(_0x3f5d22=_0xf5ffb[_0x2a32ff])&&(_0x5897c8=_0x3f5d22(_0x5897c8)||_0x5897c8);return _0x5897c8;},g=(_0x2171bd,_0x297b4f)=>(_0x3a5a37,_0x24eb62)=>_0x297b4f(_0x3a5a37,_0x24eb62,_0x2171bd),O=(_0xe47eb7,_0x43eb24,_0x244dea)=>L(_0xe47eb7,typeof _0x43eb24!=_0x45ee0d(0x16a)?_0x43eb24+'':_0x43eb24,_0x244dea);const $=_0x45ee0d(0x164);let s=class extends _0x565d5b{constructor(_0x479970=m,_0x14fc23,_0x58b3df){var _0xa1c6e4=_0x45ee0d;super(),this[_0xa1c6e4(0x176)]=_0x479970,this[_0xa1c6e4(0x154)]=_0x14fc23,this[_0xa1c6e4(0x15e)]=_0x58b3df;const {menu:_0x22c829,..._0x577f4b}=_0x3f96cf({},m,this[_0xa1c6e4(0x176)]);_0x22c829&&this[_0xa1c6e4(0x15e)][_0xa1c6e4(0x158)](_0xa1c6e4(0x179),_0x22c829,{'merge':!0x0}),this[_0xa1c6e4(0x15e)][_0xa1c6e4(0x158)](b,_0x577f4b);}[_0x45ee0d(0x155)](){var _0x51bd1f=_0x45ee0d;[[a]][_0x51bd1f(0x175)](_0x4fb982=>this['_injector']['add'](_0x4fb982));}['onReady'](){this['_injector']['get'](a);}};O(s,_0x45ee0d(0x173),$),O(s,_0x45ee0d(0x169),_0x113e79[_0x45ee0d(0x172)]),s=B([_0x1bd360(_0x3aeadf),g(0x1,_0x4bc5d2(_0x5e52a8)),g(0x2,_0xacbe38)],s);export{_ as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var _0x45ee0d=_0x1f5e;(function(_0x1fe763,_0x42e93a){var _0x11ae80=_0x1f5e,_0x1c7718=_0x1fe763();while(!![]){try{var _0x56e945=-parseInt(_0x11ae80(0x15b))/0x1*(parseInt(_0x11ae80(0x16c))/0x2)+parseInt(_0x11ae80(0x166))/0x3*(parseInt(_0x11ae80(0x15f))/0x4)+-parseInt(_0x11ae80(0x163))/0x5*(parseInt(_0x11ae80(0x165))/0x6)+parseInt(_0x11ae80(0x15c))/0x7+parseInt(_0x11ae80(0x162))/0x8+-parseInt(_0x11ae80(0x160))/0x9+parseInt(_0x11ae80(0x161))/0xa;if(_0x56e945===_0x42e93a)break;else _0x1c7718['push'](_0x1c7718['shift']());}catch(_0x2f53d2){_0x1c7718['push'](_0x1c7718['shift']());}}}(_0x361c,0x8bcc8));import{IExchangeOperateService as _0x3d6813,UniverExchangeClientPlugin as _0x3aeadf}from'@univerjs-pro/exchange-client';import{CommandType as _0x31254f,UniverInstanceType as _0x113e79,Disposable as _0x5e4dfc,ICommandService as _0x5f217b,DependentOn as _0x1bd360,Inject as _0x4bc5d2,Injector as _0x5e52a8,IConfigService as _0xacbe38,Plugin as _0x565d5b,merge as _0x3f96cf}from'@univerjs/core';import{MenuItemType as _0x5347f9,getMenuHiddenObservable as _0x5a0c51,RibbonStartGroup as _0x32c1c5,IMenuManagerService as _0x528f92}from'@univerjs/ui';const d={'id':_0x45ee0d(0x17a),'type':_0x31254f[_0x45ee0d(0x16b)],'handler':async _0x3ac1cd=>(_0x3ac1cd[_0x45ee0d(0x16e)](_0x3d6813)[_0x45ee0d(0x15d)](),!0x0)},_={'id':'exchange-client.operation.export-docx','type':_0x31254f['OPERATION'],'handler':async _0x173541=>(_0x173541[_0x45ee0d(0x16e)](_0x3d6813)[_0x45ee0d(0x159)](),!0x0)},b=_0x45ee0d(0x15a),m={},C='docs-exchange-client.operation.exchange';function X(_0x31888f){var _0x4bf1a4=_0x45ee0d;return{'id':C,'type':_0x5347f9['SUBITEMS'],'icon':'DirectExportIcon','tooltip':_0x4bf1a4(0x153),'hidden$':_0x5a0c51(_0x31888f,_0x113e79[_0x4bf1a4(0x172)])};}function _0x361c(){var _0xf0b3fa=['OPERATION','2rGZQff','_menuManagerService','get','length','exchange.download','exchange.upload','UNIVER_DOC','pluginName','disposeWithMe','forEach','_config','BUTTON','_commandService','menu','exchange-client.operation.import-docx','exchange.file','_injector','onStarting','mergeMenu','_initCommands','setConfig','exportDOCXByUnitId','docs-exchange-client.config','209025KEPHxf','7730625JyopKP','importDOCXToUnitId','_configService','12FpekOx','6878223sTcazF','10580490xUZrRn','1232232tspUkv','5coFKIc','DOC_EXCHANGE_CLIENT_PLUGIN','4951314lSncAS','54654LVPtCu','_initMenus','FolderIcon','type','symbol'];_0x361c=function(){return _0xf0b3fa;};return _0x361c();}function F(){var _0x4a5e14=_0x45ee0d;return{'id':d['id'],'type':_0x5347f9[_0x4a5e14(0x177)],'title':_0x4a5e14(0x171),'icon':_0x4a5e14(0x168)};}function G(){var _0x3405e2=_0x45ee0d;return{'id':_['id'],'type':_0x5347f9[_0x3405e2(0x177)],'title':_0x3405e2(0x170),'icon':'ExportIcon'};}const R={[_0x32c1c5['OTHERS']]:{[C]:{'order':0.3,'menuItemFactory':X,[d['id']]:{'order':0x0,'menuItemFactory':F},[_['id']]:{'order':0x1,'menuItemFactory':G}}}};var A=Object['getOwnPropertyDescriptor'],j=(_0x382967,_0x511ac,_0x40d7c0,_0x2ec99a)=>{var _0x3e5ba4=_0x45ee0d;for(var _0x3b2b9e=_0x2ec99a>0x1?void 0x0:_0x2ec99a?A(_0x511ac,_0x40d7c0):_0x511ac,_0x5e2d15=_0x382967[_0x3e5ba4(0x16f)]-0x1,_0x553be3;_0x5e2d15>=0x0;_0x5e2d15--)(_0x553be3=_0x382967[_0x5e2d15])&&(_0x3b2b9e=_0x553be3(_0x3b2b9e)||_0x3b2b9e);return _0x3b2b9e;},u=(_0x49501f,_0x238051)=>(_0x5a698a,_0x38f86f)=>_0x238051(_0x5a698a,_0x38f86f,_0x49501f);function _0x1f5e(_0x30ac7f,_0x139f1a){_0x30ac7f=_0x30ac7f-0x153;var _0x361caa=_0x361c();var _0x1f5e1e=_0x361caa[_0x30ac7f];return _0x1f5e1e;}let a=class extends _0x5e4dfc{constructor(_0x4ba4f9,_0x2dc4c8){var _0x24a847=_0x45ee0d;super(),this['_commandService']=_0x4ba4f9,this[_0x24a847(0x16d)]=_0x2dc4c8,this[_0x24a847(0x157)](),this[_0x24a847(0x167)]();}[_0x45ee0d(0x157)](){var _0x542594=_0x45ee0d;[d,_][_0x542594(0x175)](_0x3f8339=>{var _0x420550=_0x542594;this[_0x420550(0x174)](this[_0x420550(0x178)]['registerCommand'](_0x3f8339));});}['_initMenus'](){var _0x529491=_0x45ee0d;this[_0x529491(0x16d)][_0x529491(0x156)](R);}};a=j([u(0x0,_0x5f217b),u(0x1,_0x528f92)],a);var w=Object['defineProperty'],H=Object['getOwnPropertyDescriptor'],L=(_0x598df7,_0x125a1b,_0x826b3)=>_0x125a1b in _0x598df7?w(_0x598df7,_0x125a1b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x826b3}):_0x598df7[_0x125a1b]=_0x826b3,B=(_0xf5ffb,_0x460779,_0x2f4181,_0x1d085e)=>{var _0xcefb9f=_0x45ee0d;for(var _0x5897c8=_0x1d085e>0x1?void 0x0:_0x1d085e?H(_0x460779,_0x2f4181):_0x460779,_0x2a32ff=_0xf5ffb[_0xcefb9f(0x16f)]-0x1,_0x3f5d22;_0x2a32ff>=0x0;_0x2a32ff--)(_0x3f5d22=_0xf5ffb[_0x2a32ff])&&(_0x5897c8=_0x3f5d22(_0x5897c8)||_0x5897c8);return _0x5897c8;},g=(_0x2171bd,_0x297b4f)=>(_0x3a5a37,_0x24eb62)=>_0x297b4f(_0x3a5a37,_0x24eb62,_0x2171bd),O=(_0xe47eb7,_0x43eb24,_0x244dea)=>L(_0xe47eb7,typeof _0x43eb24!=_0x45ee0d(0x16a)?_0x43eb24+'':_0x43eb24,_0x244dea);const $=_0x45ee0d(0x164);let s=class extends _0x565d5b{constructor(_0x479970=m,_0x14fc23,_0x58b3df){var _0xa1c6e4=_0x45ee0d;super(),this[_0xa1c6e4(0x176)]=_0x479970,this[_0xa1c6e4(0x154)]=_0x14fc23,this[_0xa1c6e4(0x15e)]=_0x58b3df;const {menu:_0x22c829,..._0x577f4b}=_0x3f96cf({},m,this[_0xa1c6e4(0x176)]);_0x22c829&&this[_0xa1c6e4(0x15e)][_0xa1c6e4(0x158)](_0xa1c6e4(0x179),_0x22c829,{'merge':!0x0}),this[_0xa1c6e4(0x15e)][_0xa1c6e4(0x158)](b,_0x577f4b);}[_0x45ee0d(0x155)](){var _0x51bd1f=_0x45ee0d;[[a]][_0x51bd1f(0x175)](_0x4fb982=>this['_injector']['add'](_0x4fb982));}['onReady'](){this['_injector']['get'](a);}};O(s,_0x45ee0d(0x173),$),O(s,_0x45ee0d(0x169),_0x113e79[_0x45ee0d(0x172)]),s=B([_0x1bd360(_0x3aeadf),g(0x1,_0x4bc5d2(_0x5e52a8)),g(0x2,_0xacbe38)],s);export{_ as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x383b(){var _0xe0edaf=['413115sVKDHY','Disposable','8pVtYyH','type','FolderIcon','menu','amd','1928414kSKIUW','10zEIZlE','pluginName','UniverInstanceType','onReady','add','function','RibbonStartGroup','exportDOCXByUnitId','UNIVER_DOC','object','4175568InzYaO','symbol','SUBITEMS','Module','MenuItemType','length','setConfig','disposeWithMe','7184247QWTBBf','docs-exchange-client.operation.exchange','_config','forEach','mergeMenu','2482485XIzbeC','UniverDocsExchangeClientPlugin','exchange-client.operation.import-docx','_commandService','CommandType','_injector','registerCommand','UniverCore','12oymAlU','defineProperty','@univerjs/ui','exchange.file','16053966OiwZfy','IExchangeOperateService','onStarting','UniverProExchangeClient','merge','get','ExportDOCXOperation','ICommandService','UniverUi','getOwnPropertyDescriptor','IConfigService','docs-exchange-client.config','_configService','@univerjs/core','ExportIcon','exchange-client.operation.export-docx','importDOCXToUnitId','Inject','exports','_initMenus','_initCommands','_menuManagerService','1389840BTMMLr','Plugin','OPERATION'];_0x383b=function(){return _0xe0edaf;};return _0x383b();}function _0x3919(_0xb4b73,_0x898c80){_0xb4b73=_0xb4b73-0x79;var _0x383b5b=_0x383b();var _0x391958=_0x383b5b[_0xb4b73];return _0x391958;}(function(_0x3cb1b0,_0xfaade9){var _0xc30c66=_0x3919,_0x2192fd=_0x3cb1b0();while(!![]){try{var _0x3f56cd=-parseInt(_0xc30c66(0xb3))/0x1+parseInt(_0xc30c66(0xba))/0x2+-parseInt(_0xc30c66(0xb0))/0x3+-parseInt(_0xc30c66(0x81))/0x4+parseInt(_0xc30c66(0x8e))/0x5*(parseInt(_0xc30c66(0x96))/0x6)+-parseInt(_0xc30c66(0x89))/0x7*(parseInt(_0xc30c66(0xb5))/0x8)+parseInt(_0xc30c66(0x9a))/0x9*(parseInt(_0xc30c66(0xbb))/0xa);if(_0x3f56cd===_0xfaade9)break;else _0x2192fd['push'](_0x2192fd['shift']());}catch(_0xaa9e2a){_0x2192fd['push'](_0x2192fd['shift']());}}}(_0x383b,0xc1eff),function(_0x18995f,_0x3c6ad6){var _0x3ecd32=_0x3919;typeof exports==_0x3ecd32(0x80)&&typeof module<'u'?_0x3c6ad6(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui')):typeof define==_0x3ecd32(0x7c)&&define[_0x3ecd32(0xb9)]?define([_0x3ecd32(0xac),'@univerjs-pro/exchange-client',_0x3ecd32(0xa7),_0x3ecd32(0x98)],_0x3c6ad6):(_0x18995f=typeof globalThis<'u'?globalThis:_0x18995f||self,_0x3c6ad6(_0x18995f['UniverProDocsExchangeClient']={},_0x18995f[_0x3ecd32(0x9d)],_0x18995f[_0x3ecd32(0x95)],_0x18995f[_0x3ecd32(0xa2)]));}(this,function(_0x144874,_0x555b8f,_0x4a77e6,_0x5cfdd8){'use strict';var _0x3716cc=_0x3919;const _0x499ee7={'id':_0x3716cc(0x90),'type':_0x4a77e6[_0x3716cc(0x92)][_0x3716cc(0xb2)],'handler':async _0x2fa0a2=>(_0x2fa0a2['get'](_0x555b8f['IExchangeOperateService'])[_0x3716cc(0xaa)](),!0x0)},_0x127ea8={'id':_0x3716cc(0xa9),'type':_0x4a77e6[_0x3716cc(0x92)][_0x3716cc(0xb2)],'handler':async _0x1db51c=>(_0x1db51c[_0x3716cc(0x9f)](_0x555b8f[_0x3716cc(0x9b)])[_0x3716cc(0x7e)](),!0x0)},_0xb8309a=_0x3716cc(0xa5),_0x5832fe={},_0x3c9922=_0x3716cc(0x8a);function _0x3bfefe(_0x30a7f5){var _0x1a0a81=_0x3716cc;return{'id':_0x3c9922,'type':_0x5cfdd8[_0x1a0a81(0x85)][_0x1a0a81(0x83)],'icon':'DirectExportIcon','tooltip':_0x1a0a81(0x99),'hidden$':_0x5cfdd8['getMenuHiddenObservable'](_0x30a7f5,_0x4a77e6['UniverInstanceType'][_0x1a0a81(0x7f)])};}function _0x42592d(){var _0x578584=_0x3716cc;return{'id':_0x499ee7['id'],'type':_0x5cfdd8[_0x578584(0x85)]['BUTTON'],'title':'exchange.upload','icon':_0x578584(0xb7)};}function _0x28871e(){var _0x3100da=_0x3716cc;return{'id':_0x127ea8['id'],'type':_0x5cfdd8[_0x3100da(0x85)]['BUTTON'],'title':'exchange.download','icon':_0x3100da(0xa8)};}const _0x4618dd={[_0x5cfdd8[_0x3716cc(0x7d)]['OTHERS']]:{[_0x3c9922]:{'order':0.3,'menuItemFactory':_0x3bfefe,[_0x499ee7['id']]:{'order':0x0,'menuItemFactory':_0x42592d},[_0x127ea8['id']]:{'order':0x1,'menuItemFactory':_0x28871e}}}};var _0x2f91f6=Object[_0x3716cc(0xa3)],_0x1ce8df=(_0x1c97db,_0x72ec0c,_0x19f838,_0x5a1a34)=>{var _0x4bb8c5=_0x3716cc;for(var _0x308a2f=_0x5a1a34>0x1?void 0x0:_0x5a1a34?_0x2f91f6(_0x72ec0c,_0x19f838):_0x72ec0c,_0x5f84d1=_0x1c97db[_0x4bb8c5(0x86)]-0x1,_0x13b1d0;_0x5f84d1>=0x0;_0x5f84d1--)(_0x13b1d0=_0x1c97db[_0x5f84d1])&&(_0x308a2f=_0x13b1d0(_0x308a2f)||_0x308a2f);return _0x308a2f;},_0x28860d=(_0x4fa18d,_0x1cc4a7)=>(_0x514712,_0x4df4e1)=>_0x1cc4a7(_0x514712,_0x4df4e1,_0x4fa18d);let _0x2a7426=class extends _0x4a77e6[_0x3716cc(0xb4)]{constructor(_0x400b31,_0x1e0804){var _0x3b793b=_0x3716cc;super(),this[_0x3b793b(0x91)]=_0x400b31,this[_0x3b793b(0xaf)]=_0x1e0804,this[_0x3b793b(0xae)](),this[_0x3b793b(0xad)]();}[_0x3716cc(0xae)](){var _0x5bc006=_0x3716cc;[_0x499ee7,_0x127ea8][_0x5bc006(0x8c)](_0x3b9bf2=>{var _0x3c2d67=_0x5bc006;this[_0x3c2d67(0x88)](this[_0x3c2d67(0x91)][_0x3c2d67(0x94)](_0x3b9bf2));});}[_0x3716cc(0xad)](){var _0x258c7c=_0x3716cc;this[_0x258c7c(0xaf)][_0x258c7c(0x8d)](_0x4618dd);}};_0x2a7426=_0x1ce8df([_0x28860d(0x0,_0x4a77e6[_0x3716cc(0xa1)]),_0x28860d(0x1,_0x5cfdd8['IMenuManagerService'])],_0x2a7426);var _0x40d7a4=Object['defineProperty'],_0x51b31e=Object[_0x3716cc(0xa3)],_0x62bd92=(_0x322feb,_0x34d1b1,_0x1a1826)=>_0x34d1b1 in _0x322feb?_0x40d7a4(_0x322feb,_0x34d1b1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1a1826}):_0x322feb[_0x34d1b1]=_0x1a1826,_0x13edea=(_0x1e3692,_0x4752e7,_0x28d472,_0x372409)=>{var _0x2ab465=_0x3716cc;for(var _0x33f048=_0x372409>0x1?void 0x0:_0x372409?_0x51b31e(_0x4752e7,_0x28d472):_0x4752e7,_0x349ae9=_0x1e3692[_0x2ab465(0x86)]-0x1,_0x30c46c;_0x349ae9>=0x0;_0x349ae9--)(_0x30c46c=_0x1e3692[_0x349ae9])&&(_0x33f048=_0x30c46c(_0x33f048)||_0x33f048);return _0x33f048;},_0x108d8e=(_0x250d2b,_0x4d2e55)=>(_0x103f49,_0x3190d6)=>_0x4d2e55(_0x103f49,_0x3190d6,_0x250d2b),_0x32815f=(_0x42fd8f,_0x4ed2f2,_0x10470c)=>_0x62bd92(_0x42fd8f,typeof _0x4ed2f2!=_0x3716cc(0x82)?_0x4ed2f2+'':_0x4ed2f2,_0x10470c);const _0x43427b='DOC_EXCHANGE_CLIENT_PLUGIN';_0x144874['UniverDocsExchangeClientPlugin']=class extends _0x4a77e6[_0x3716cc(0xb1)]{constructor(_0x17d070=_0x5832fe,_0x3fcaa9,_0x1d5e8e){var _0x331b76=_0x3716cc;super(),this[_0x331b76(0x8b)]=_0x17d070,this['_injector']=_0x3fcaa9,this[_0x331b76(0xa6)]=_0x1d5e8e;const {menu:_0x52b23b,..._0x314d12}=_0x4a77e6[_0x331b76(0x9e)]({},_0x5832fe,this[_0x331b76(0x8b)]);_0x52b23b&&this[_0x331b76(0xa6)][_0x331b76(0x87)](_0x331b76(0xb8),_0x52b23b,{'merge':!0x0}),this[_0x331b76(0xa6)][_0x331b76(0x87)](_0xb8309a,_0x314d12);}[_0x3716cc(0x9c)](){var _0x39c1ab=_0x3716cc;[[_0x2a7426]]['forEach'](_0x4f98ba=>this[_0x39c1ab(0x93)][_0x39c1ab(0x7b)](_0x4f98ba));}[_0x3716cc(0x7a)](){var _0x52ad61=_0x3716cc;this[_0x52ad61(0x93)][_0x52ad61(0x9f)](_0x2a7426);}},_0x32815f(_0x144874[_0x3716cc(0x8f)],_0x3716cc(0xbc),_0x43427b),_0x32815f(_0x144874['UniverDocsExchangeClientPlugin'],_0x3716cc(0xb6),_0x4a77e6[_0x3716cc(0x79)][_0x3716cc(0x7f)]),_0x144874['UniverDocsExchangeClientPlugin']=_0x13edea([_0x4a77e6['DependentOn'](_0x555b8f['UniverExchangeClientPlugin']),_0x108d8e(0x1,_0x4a77e6[_0x3716cc(0xab)](_0x4a77e6['Injector'])),_0x108d8e(0x2,_0x4a77e6[_0x3716cc(0xa4)])],_0x144874[_0x3716cc(0x8f)]),_0x144874[_0x3716cc(0xa0)]=_0x127ea8,_0x144874['ImportDOCXOperation']=_0x499ee7,Object[_0x3716cc(0x97)](_0x144874,Symbol['toStringTag'],{'value':_0x3716cc(0x84)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/docs-exchange-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0-insiders.20251227-dafc157",
|
|
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
|
|
46
|
-
"@univerjs/
|
|
47
|
-
"@univerjs/
|
|
45
|
+
"@univerjs/core": "0.15.0-insiders.20251227-dafc157",
|
|
46
|
+
"@univerjs/ui": "0.15.0-insiders.20251227-dafc157",
|
|
47
|
+
"@univerjs-pro/exchange-client": "0.15.0-insiders.20251227-dafc157"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"typescript": "^5.9.3",
|
|
51
|
-
"vite": "^7.
|
|
52
|
-
"vitest": "^4.0.
|
|
53
|
-
"@univerjs-infra/shared": "0.
|
|
51
|
+
"vite": "^7.3.0",
|
|
52
|
+
"vitest": "^4.0.16",
|
|
53
|
+
"@univerjs-infra/shared": "0.15.0"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"test": "vitest run",
|