@univerjs-pro/docs-exchange-client 0.7.0-nightly.202505181606 → 0.7.0-nightly.202505191607
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 _0xff6718=_0x2188;(function(_0x3300c3,_0x114b9a){var _0x3f94c3=_0x2188,_0x462555=_0x3300c3();while(!![]){try{var _0x5a166c=parseInt(_0x3f94c3(0x10b))/0x1+-parseInt(_0x3f94c3(0x10d))/0x2*(parseInt(_0x3f94c3(0xfd))/0x3)+parseInt(_0x3f94c3(0xe5))/0x4+parseInt(_0x3f94c3(0xd9))/0x5+parseInt(_0x3f94c3(0xfe))/0x6+-parseInt(_0x3f94c3(0x10c))/0x7+-parseInt(_0x3f94c3(0x101))/0x8;if(_0x5a166c===_0x114b9a)break;else _0x462555['push'](_0x462555['shift']());}catch(_0x487a9d){_0x462555['push'](_0x462555['shift']());}}}(_0x5ace,0x59f4a));Object[_0xff6718(0x111)](exports,Symbol['toStringTag'],{'value':'Module'});function _0x5ace(){var _0x54b46c=['39kaTWBw','1169556UVhBzA','DOC_EXCHANGE_CLIENT_PLUGIN','Disposable','3816632ZgpvNo','DependentOn','onStarting','registerCommand','_config','CommandType','importDOCXToUnitId','ExportDOCXOperation','ImportDOCXOperation','OTHERS','129058hiHQUR','1594327CFwuzY','22582hsZWif','symbol','UniverInstanceType','Inject','defineProperty','type','IMenuManagerService','DirectExportSingle','OPERATION','2131160pALGqx','BUTTON','length','getMenuHiddenObservable','_injector','IExchangeOperateService','add','setConfig','menu','UniverExchangeClientPlugin','_commandService','ExportSingle','1879460DYsTfu','UniverDocsExchangeClientPlugin','_initCommands','get','exchange.download','Injector','exchange.upload','getOwnPropertyDescriptor','RibbonStartGroup','disposeWithMe','UNIVER_DOC','IConfigService','SUBITEMS','Plugin','_menuManagerService','_configService','docs-exchange-client.config','exchange-client.operation.export-docx','forEach','_initMenus','exchange.file','docs-exchange-client.operation.exchange','merge','MenuItemType'];_0x5ace=function(){return _0x54b46c;};return _0x5ace();}const l=require('@univerjs-pro/exchange-client'),i=require('@univerjs/core'),a=require('@univerjs/ui'),v=_0xff6718(0xf5),d={},g={'id':'exchange-client.operation.import-docx','type':i[_0xff6718(0x106)][_0xff6718(0x115)],'handler':async _0x405024=>(_0x405024[_0xff6718(0xe8)](l[_0xff6718(0xde)])[_0xff6718(0x107)](),!0x0)},p={'id':_0xff6718(0xf6),'type':i['CommandType'][_0xff6718(0x115)],'handler':async _0x38b9e0=>(_0x38b9e0[_0xff6718(0xe8)](l[_0xff6718(0xde)])['exportDOCXByUnitId'](),!0x0)},h=_0xff6718(0xfa);function _0x2188(_0x4f0450,_0xf1550){var _0x5ace31=_0x5ace();return _0x2188=function(_0x218801,_0x5b413d){_0x218801=_0x218801-0xd9;var _0x4c998d=_0x5ace31[_0x218801];return _0x4c998d;},_0x2188(_0x4f0450,_0xf1550);}function O(_0x2c789d){var _0x2224a0=_0xff6718;return{'id':h,'type':a['MenuItemType'][_0x2224a0(0xf1)],'icon':_0x2224a0(0x114),'tooltip':_0x2224a0(0xf9),'hidden$':a[_0x2224a0(0xdc)](_0x2c789d,i[_0x2224a0(0x10f)]['UNIVER_DOC'])};}function I(){var _0x813034=_0xff6718;return{'id':g['id'],'type':a[_0x813034(0xfc)]['BUTTON'],'title':_0x813034(0xeb),'icon':'FolderSingle'};}function E(){var _0x544d9b=_0xff6718;return{'id':p['id'],'type':a[_0x544d9b(0xfc)][_0x544d9b(0xda)],'title':_0x544d9b(0xe9),'icon':_0x544d9b(0xe4)};}const x={[a[_0xff6718(0xed)][_0xff6718(0x10a)]]:{[h]:{'order':0.3,'menuItemFactory':O,[g['id']]:{'order':0x0,'menuItemFactory':I},[p['id']]:{'order':0x1,'menuItemFactory':E}}}};var D=Object[_0xff6718(0xec)],S=(_0x31ebbd,_0x494538,_0x46baa1,_0x24ddee)=>{var _0x3fdae7=_0xff6718;for(var _0x16488a=_0x24ddee>0x1?void 0x0:_0x24ddee?D(_0x494538,_0x46baa1):_0x494538,_0x348ccd=_0x31ebbd[_0x3fdae7(0xdb)]-0x1,_0x453648;_0x348ccd>=0x0;_0x348ccd--)(_0x453648=_0x31ebbd[_0x348ccd])&&(_0x16488a=_0x453648(_0x16488a)||_0x16488a);return _0x16488a;},_=(_0x1bd650,_0x4e77b8)=>(_0x2fef30,_0x4fe786)=>_0x4e77b8(_0x2fef30,_0x4fe786,_0x1bd650);let u=class extends i[_0xff6718(0x100)]{constructor(_0x4c11e3,_0x59856b){var _0x42c7ba=_0xff6718;super(),this[_0x42c7ba(0xe3)]=_0x4c11e3,this[_0x42c7ba(0xf3)]=_0x59856b,this[_0x42c7ba(0xe7)](),this[_0x42c7ba(0xf8)]();}[_0xff6718(0xe7)](){var _0x48413b=_0xff6718;[g,p][_0x48413b(0xf7)](_0x18693a=>{var _0x32dcf7=_0x48413b;this[_0x32dcf7(0xee)](this[_0x32dcf7(0xe3)][_0x32dcf7(0x104)](_0x18693a));});}['_initMenus'](){var _0x47369a=_0xff6718;this[_0x47369a(0xf3)]['mergeMenu'](x);}};u=S([_(0x0,i['ICommandService']),_(0x1,a[_0xff6718(0x113)])],u);var f=Object[_0xff6718(0x111)],y=Object[_0xff6718(0xec)],P=(_0x54a0c6,_0x5e54ee,_0x19a113)=>_0x5e54ee in _0x54a0c6?f(_0x54a0c6,_0x5e54ee,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x19a113}):_0x54a0c6[_0x5e54ee]=_0x19a113,T=(_0xd2d1c6,_0x3c8efd,_0xba6cd4,_0x35c3b9)=>{for(var _0xa1ac14=_0x35c3b9>0x1?void 0x0:_0x35c3b9?y(_0x3c8efd,_0xba6cd4):_0x3c8efd,_0x15a713=_0xd2d1c6['length']-0x1,_0x33b1fa;_0x15a713>=0x0;_0x15a713--)(_0x33b1fa=_0xd2d1c6[_0x15a713])&&(_0xa1ac14=_0x33b1fa(_0xa1ac14)||_0xa1ac14);return _0xa1ac14;},m=(_0x24e9f6,_0x15dc28)=>(_0x4ca7c9,_0x261cf3)=>_0x15dc28(_0x4ca7c9,_0x261cf3,_0x24e9f6),C=(_0x19159b,_0x46086f,_0x213b36)=>P(_0x19159b,typeof _0x46086f!=_0xff6718(0x10e)?_0x46086f+'':_0x46086f,_0x213b36);const U=_0xff6718(0xff);exports[_0xff6718(0xe6)]=class extends i[_0xff6718(0xf2)]{constructor(_0x18e04d=d,_0x38af03,_0x3a0b73){var _0x30e89d=_0xff6718;super(),this[_0x30e89d(0x105)]=_0x18e04d,this[_0x30e89d(0xdd)]=_0x38af03,this['_configService']=_0x3a0b73;const {menu:_0x8fca1a,..._0x47b206}=i[_0x30e89d(0xfb)]({},d,this[_0x30e89d(0x105)]);_0x8fca1a&&this[_0x30e89d(0xf4)][_0x30e89d(0xe0)](_0x30e89d(0xe1),_0x8fca1a,{'merge':!0x0}),this[_0x30e89d(0xf4)][_0x30e89d(0xe0)](v,_0x47b206);}[_0xff6718(0x103)](){var _0x40c6d2=_0xff6718;[[u]][_0x40c6d2(0xf7)](_0x1e0e7a=>this['_injector'][_0x40c6d2(0xdf)](_0x1e0e7a));}['onReady'](){var _0x398c97=_0xff6718;this[_0x398c97(0xdd)][_0x398c97(0xe8)](u);}},C(exports[_0xff6718(0xe6)],'pluginName',U),C(exports[_0xff6718(0xe6)],_0xff6718(0x112),i[_0xff6718(0x10f)][_0xff6718(0xef)]),exports[_0xff6718(0xe6)]=T([i[_0xff6718(0x102)](l[_0xff6718(0xe2)]),m(0x1,i[_0xff6718(0x110)](i[_0xff6718(0xea)])),m(0x2,i[_0xff6718(0xf0)])],exports[_0xff6718(0xe6)]),exports[_0xff6718(0x108)]=p,exports[_0xff6718(0x109)]=g;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x35f93c=_0x3c1c;(function(_0x564fb0,_0x3c34cd){var _0x44a5bf=_0x3c1c,_0x523003=_0x564fb0();while(!![]){try{var _0x326e23=parseInt(_0x44a5bf(0x196))/0x1*(parseInt(_0x44a5bf(0x18e))/0x2)+-parseInt(_0x44a5bf(0x19b))/0x3+-parseInt(_0x44a5bf(0x1a1))/0x4*(parseInt(_0x44a5bf(0x19c))/0x5)+-parseInt(_0x44a5bf(0x193))/0x6*(-parseInt(_0x44a5bf(0x191))/0x7)+-parseInt(_0x44a5bf(0x1aa))/0x8+-parseInt(_0x44a5bf(0x1a9))/0x9+parseInt(_0x44a5bf(0x1a7))/0xa;if(_0x326e23===_0x3c34cd)break;else _0x523003['push'](_0x523003['shift']());}catch(_0x35247a){_0x523003['push'](_0x523003['shift']());}}}(_0x55f5,0x71470));import{IExchangeOperateService as _0x54e48f,UniverExchangeClientPlugin as _0x4c6d20}from'@univerjs-pro/exchange-client';import{CommandType as _0x2b7074,UniverInstanceType as _0x28ff46,Disposable as _0xe3f8ac,ICommandService as _0x242525,DependentOn as _0x38af5d,Inject as _0x193c8e,Injector as _0x27c32b,IConfigService as _0x45aa5a,Plugin as _0x478253,merge as _0x27a0bf}from'@univerjs/core';import{MenuItemType as _0x1ea692,getMenuHiddenObservable as _0x32e1ac,RibbonStartGroup as _0x391ebd,IMenuManagerService as _0x4dd666}from'@univerjs/ui';const b=_0x35f93c(0x1a0),m={},d={'id':_0x35f93c(0x188),'type':_0x2b7074[_0x35f93c(0x1af)],'handler':async _0x3f641f=>(_0x3f641f[_0x35f93c(0x1a3)](_0x54e48f)['importDOCXToUnitId'](),!0x0)},_={'id':_0x35f93c(0x18a),'type':_0x2b7074[_0x35f93c(0x1af)],'handler':async _0x195137=>(_0x195137[_0x35f93c(0x1a3)](_0x54e48f)['exportDOCXByUnitId'](),!0x0)},I='docs-exchange-client.operation.exchange';function X(_0x3194b7){var _0x26f901=_0x35f93c;return{'id':I,'type':_0x1ea692['SUBITEMS'],'icon':_0x26f901(0x1b0),'tooltip':_0x26f901(0x195),'hidden$':_0x32e1ac(_0x3194b7,_0x28ff46[_0x26f901(0x1ae)])};}function _0x55f5(){var _0x3f12dc=['registerCommand','exchange.download','_menuManagerService','defineProperty','986028TIKWpD','230AhkfXb','ExportSingle','forEach','onStarting','docs-exchange-client.config','50308UqQBdZ','DOC_EXCHANGE_CLIENT_PLUGIN','get','_configService','_commandService','OTHERS','16419790SrDHPo','mergeMenu','2181357hlFkyl','5880784LVggYW','setConfig','add','exchange.upload','UNIVER_DOC','OPERATION','DirectExportSingle','_initCommands','_initMenus','type','BUTTON','symbol','exchange-client.operation.import-docx','disposeWithMe','exchange-client.operation.export-docx','_injector','menu','getOwnPropertyDescriptor','2XvVBRd','length','pluginName','1536360erZqAH','FolderSingle','6MDuPTW','onReady','exchange.file','487214yLQUwS'];_0x55f5=function(){return _0x3f12dc;};return _0x55f5();}function _0x3c1c(_0x389003,_0x3a6625){var _0x55f536=_0x55f5();return _0x3c1c=function(_0x3c1c4c,_0x179378){_0x3c1c4c=_0x3c1c4c-0x185;var _0x14aa47=_0x55f536[_0x3c1c4c];return _0x14aa47;},_0x3c1c(_0x389003,_0x3a6625);}function F(){var _0x3adc50=_0x35f93c;return{'id':d['id'],'type':_0x1ea692[_0x3adc50(0x186)],'title':_0x3adc50(0x1ad),'icon':_0x3adc50(0x192)};}function G(){var _0x5163b2=_0x35f93c;return{'id':_['id'],'type':_0x1ea692[_0x5163b2(0x186)],'title':_0x5163b2(0x198),'icon':_0x5163b2(0x19d)};}const R={[_0x391ebd[_0x35f93c(0x1a6)]]:{[I]:{'order':0.3,'menuItemFactory':X,[d['id']]:{'order':0x0,'menuItemFactory':F},[_['id']]:{'order':0x1,'menuItemFactory':G}}}};var A=Object['getOwnPropertyDescriptor'],j=(_0x48d847,_0x58ad41,_0x3c5aad,_0x822e7f)=>{var _0x357a5d=_0x35f93c;for(var _0x1bfa0b=_0x822e7f>0x1?void 0x0:_0x822e7f?A(_0x58ad41,_0x3c5aad):_0x58ad41,_0x38b5da=_0x48d847[_0x357a5d(0x18f)]-0x1,_0x1c7166;_0x38b5da>=0x0;_0x38b5da--)(_0x1c7166=_0x48d847[_0x38b5da])&&(_0x1bfa0b=_0x1c7166(_0x1bfa0b)||_0x1bfa0b);return _0x1bfa0b;},u=(_0x597f07,_0x598e3c)=>(_0x3d46a8,_0x53a09a)=>_0x598e3c(_0x3d46a8,_0x53a09a,_0x597f07);let a=class extends _0xe3f8ac{constructor(_0x454e4f,_0x1fbfe0){var _0x504b8b=_0x35f93c;super(),this['_commandService']=_0x454e4f,this[_0x504b8b(0x199)]=_0x1fbfe0,this[_0x504b8b(0x1b1)](),this[_0x504b8b(0x1b2)]();}[_0x35f93c(0x1b1)](){var _0x21f01f=_0x35f93c;[d,_][_0x21f01f(0x19e)](_0x4ec1bc=>{var _0x4f3b94=_0x21f01f;this[_0x4f3b94(0x189)](this[_0x4f3b94(0x1a5)][_0x4f3b94(0x197)](_0x4ec1bc));});}[_0x35f93c(0x1b2)](){var _0x41c249=_0x35f93c;this[_0x41c249(0x199)][_0x41c249(0x1a8)](R);}};a=j([u(0x0,_0x242525),u(0x1,_0x4dd666)],a);var w=Object[_0x35f93c(0x19a)],H=Object[_0x35f93c(0x18d)],L=(_0x262f89,_0x27cf47,_0x489d88)=>_0x27cf47 in _0x262f89?w(_0x262f89,_0x27cf47,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x489d88}):_0x262f89[_0x27cf47]=_0x489d88,B=(_0x41a05c,_0x598609,_0x464b14,_0x2c7e55)=>{var _0x5a8331=_0x35f93c;for(var _0x2e1190=_0x2c7e55>0x1?void 0x0:_0x2c7e55?H(_0x598609,_0x464b14):_0x598609,_0x541a68=_0x41a05c[_0x5a8331(0x18f)]-0x1,_0x4649d0;_0x541a68>=0x0;_0x541a68--)(_0x4649d0=_0x41a05c[_0x541a68])&&(_0x2e1190=_0x4649d0(_0x2e1190)||_0x2e1190);return _0x2e1190;},g=(_0x431684,_0x3991fc)=>(_0x5c452c,_0x240d20)=>_0x3991fc(_0x5c452c,_0x240d20,_0x431684),O=(_0x4b65f8,_0xebaa93,_0xa71b5e)=>L(_0x4b65f8,typeof _0xebaa93!=_0x35f93c(0x187)?_0xebaa93+'':_0xebaa93,_0xa71b5e);const $=_0x35f93c(0x1a2);let s=class extends _0x478253{constructor(_0x538b3a=m,_0x40f567,_0x30ecd5){var _0xbf2ae4=_0x35f93c;super(),this['_config']=_0x538b3a,this[_0xbf2ae4(0x18b)]=_0x40f567,this['_configService']=_0x30ecd5;const {menu:_0x43587f,..._0x5cb44c}=_0x27a0bf({},m,this['_config']);_0x43587f&&this['_configService'][_0xbf2ae4(0x1ab)](_0xbf2ae4(0x18c),_0x43587f,{'merge':!0x0}),this[_0xbf2ae4(0x1a4)][_0xbf2ae4(0x1ab)](b,_0x5cb44c);}[_0x35f93c(0x19f)](){var _0x1bd5a3=_0x35f93c;[[a]][_0x1bd5a3(0x19e)](_0x2fb836=>this[_0x1bd5a3(0x18b)][_0x1bd5a3(0x1ac)](_0x2fb836));}[_0x35f93c(0x194)](){var _0x99b84c=_0x35f93c;this[_0x99b84c(0x18b)]['get'](a);}};O(s,_0x35f93c(0x190),$),O(s,_0x35f93c(0x185),_0x28ff46[_0x35f93c(0x1ae)]),s=B([_0x38af5d(_0x4c6d20),g(0x1,_0x193c8e(_0x27c32b)),g(0x2,_0x45aa5a)],s);export{_ as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x35f93c=_0x3c1c;(function(_0x564fb0,_0x3c34cd){var _0x44a5bf=_0x3c1c,_0x523003=_0x564fb0();while(!![]){try{var _0x326e23=parseInt(_0x44a5bf(0x196))/0x1*(parseInt(_0x44a5bf(0x18e))/0x2)+-parseInt(_0x44a5bf(0x19b))/0x3+-parseInt(_0x44a5bf(0x1a1))/0x4*(parseInt(_0x44a5bf(0x19c))/0x5)+-parseInt(_0x44a5bf(0x193))/0x6*(-parseInt(_0x44a5bf(0x191))/0x7)+-parseInt(_0x44a5bf(0x1aa))/0x8+-parseInt(_0x44a5bf(0x1a9))/0x9+parseInt(_0x44a5bf(0x1a7))/0xa;if(_0x326e23===_0x3c34cd)break;else _0x523003['push'](_0x523003['shift']());}catch(_0x35247a){_0x523003['push'](_0x523003['shift']());}}}(_0x55f5,0x71470));import{IExchangeOperateService as _0x54e48f,UniverExchangeClientPlugin as _0x4c6d20}from'@univerjs-pro/exchange-client';import{CommandType as _0x2b7074,UniverInstanceType as _0x28ff46,Disposable as _0xe3f8ac,ICommandService as _0x242525,DependentOn as _0x38af5d,Inject as _0x193c8e,Injector as _0x27c32b,IConfigService as _0x45aa5a,Plugin as _0x478253,merge as _0x27a0bf}from'@univerjs/core';import{MenuItemType as _0x1ea692,getMenuHiddenObservable as _0x32e1ac,RibbonStartGroup as _0x391ebd,IMenuManagerService as _0x4dd666}from'@univerjs/ui';const b=_0x35f93c(0x1a0),m={},d={'id':_0x35f93c(0x188),'type':_0x2b7074[_0x35f93c(0x1af)],'handler':async _0x3f641f=>(_0x3f641f[_0x35f93c(0x1a3)](_0x54e48f)['importDOCXToUnitId'](),!0x0)},_={'id':_0x35f93c(0x18a),'type':_0x2b7074[_0x35f93c(0x1af)],'handler':async _0x195137=>(_0x195137[_0x35f93c(0x1a3)](_0x54e48f)['exportDOCXByUnitId'](),!0x0)},I='docs-exchange-client.operation.exchange';function X(_0x3194b7){var _0x26f901=_0x35f93c;return{'id':I,'type':_0x1ea692['SUBITEMS'],'icon':_0x26f901(0x1b0),'tooltip':_0x26f901(0x195),'hidden$':_0x32e1ac(_0x3194b7,_0x28ff46[_0x26f901(0x1ae)])};}function _0x55f5(){var _0x3f12dc=['registerCommand','exchange.download','_menuManagerService','defineProperty','986028TIKWpD','230AhkfXb','ExportSingle','forEach','onStarting','docs-exchange-client.config','50308UqQBdZ','DOC_EXCHANGE_CLIENT_PLUGIN','get','_configService','_commandService','OTHERS','16419790SrDHPo','mergeMenu','2181357hlFkyl','5880784LVggYW','setConfig','add','exchange.upload','UNIVER_DOC','OPERATION','DirectExportSingle','_initCommands','_initMenus','type','BUTTON','symbol','exchange-client.operation.import-docx','disposeWithMe','exchange-client.operation.export-docx','_injector','menu','getOwnPropertyDescriptor','2XvVBRd','length','pluginName','1536360erZqAH','FolderSingle','6MDuPTW','onReady','exchange.file','487214yLQUwS'];_0x55f5=function(){return _0x3f12dc;};return _0x55f5();}function _0x3c1c(_0x389003,_0x3a6625){var _0x55f536=_0x55f5();return _0x3c1c=function(_0x3c1c4c,_0x179378){_0x3c1c4c=_0x3c1c4c-0x185;var _0x14aa47=_0x55f536[_0x3c1c4c];return _0x14aa47;},_0x3c1c(_0x389003,_0x3a6625);}function F(){var _0x3adc50=_0x35f93c;return{'id':d['id'],'type':_0x1ea692[_0x3adc50(0x186)],'title':_0x3adc50(0x1ad),'icon':_0x3adc50(0x192)};}function G(){var _0x5163b2=_0x35f93c;return{'id':_['id'],'type':_0x1ea692[_0x5163b2(0x186)],'title':_0x5163b2(0x198),'icon':_0x5163b2(0x19d)};}const R={[_0x391ebd[_0x35f93c(0x1a6)]]:{[I]:{'order':0.3,'menuItemFactory':X,[d['id']]:{'order':0x0,'menuItemFactory':F},[_['id']]:{'order':0x1,'menuItemFactory':G}}}};var A=Object['getOwnPropertyDescriptor'],j=(_0x48d847,_0x58ad41,_0x3c5aad,_0x822e7f)=>{var _0x357a5d=_0x35f93c;for(var _0x1bfa0b=_0x822e7f>0x1?void 0x0:_0x822e7f?A(_0x58ad41,_0x3c5aad):_0x58ad41,_0x38b5da=_0x48d847[_0x357a5d(0x18f)]-0x1,_0x1c7166;_0x38b5da>=0x0;_0x38b5da--)(_0x1c7166=_0x48d847[_0x38b5da])&&(_0x1bfa0b=_0x1c7166(_0x1bfa0b)||_0x1bfa0b);return _0x1bfa0b;},u=(_0x597f07,_0x598e3c)=>(_0x3d46a8,_0x53a09a)=>_0x598e3c(_0x3d46a8,_0x53a09a,_0x597f07);let a=class extends _0xe3f8ac{constructor(_0x454e4f,_0x1fbfe0){var _0x504b8b=_0x35f93c;super(),this['_commandService']=_0x454e4f,this[_0x504b8b(0x199)]=_0x1fbfe0,this[_0x504b8b(0x1b1)](),this[_0x504b8b(0x1b2)]();}[_0x35f93c(0x1b1)](){var _0x21f01f=_0x35f93c;[d,_][_0x21f01f(0x19e)](_0x4ec1bc=>{var _0x4f3b94=_0x21f01f;this[_0x4f3b94(0x189)](this[_0x4f3b94(0x1a5)][_0x4f3b94(0x197)](_0x4ec1bc));});}[_0x35f93c(0x1b2)](){var _0x41c249=_0x35f93c;this[_0x41c249(0x199)][_0x41c249(0x1a8)](R);}};a=j([u(0x0,_0x242525),u(0x1,_0x4dd666)],a);var w=Object[_0x35f93c(0x19a)],H=Object[_0x35f93c(0x18d)],L=(_0x262f89,_0x27cf47,_0x489d88)=>_0x27cf47 in _0x262f89?w(_0x262f89,_0x27cf47,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x489d88}):_0x262f89[_0x27cf47]=_0x489d88,B=(_0x41a05c,_0x598609,_0x464b14,_0x2c7e55)=>{var _0x5a8331=_0x35f93c;for(var _0x2e1190=_0x2c7e55>0x1?void 0x0:_0x2c7e55?H(_0x598609,_0x464b14):_0x598609,_0x541a68=_0x41a05c[_0x5a8331(0x18f)]-0x1,_0x4649d0;_0x541a68>=0x0;_0x541a68--)(_0x4649d0=_0x41a05c[_0x541a68])&&(_0x2e1190=_0x4649d0(_0x2e1190)||_0x2e1190);return _0x2e1190;},g=(_0x431684,_0x3991fc)=>(_0x5c452c,_0x240d20)=>_0x3991fc(_0x5c452c,_0x240d20,_0x431684),O=(_0x4b65f8,_0xebaa93,_0xa71b5e)=>L(_0x4b65f8,typeof _0xebaa93!=_0x35f93c(0x187)?_0xebaa93+'':_0xebaa93,_0xa71b5e);const $=_0x35f93c(0x1a2);let s=class extends _0x478253{constructor(_0x538b3a=m,_0x40f567,_0x30ecd5){var _0xbf2ae4=_0x35f93c;super(),this['_config']=_0x538b3a,this[_0xbf2ae4(0x18b)]=_0x40f567,this['_configService']=_0x30ecd5;const {menu:_0x43587f,..._0x5cb44c}=_0x27a0bf({},m,this['_config']);_0x43587f&&this['_configService'][_0xbf2ae4(0x1ab)](_0xbf2ae4(0x18c),_0x43587f,{'merge':!0x0}),this[_0xbf2ae4(0x1a4)][_0xbf2ae4(0x1ab)](b,_0x5cb44c);}[_0x35f93c(0x19f)](){var _0x1bd5a3=_0x35f93c;[[a]][_0x1bd5a3(0x19e)](_0x2fb836=>this[_0x1bd5a3(0x18b)][_0x1bd5a3(0x1ac)](_0x2fb836));}[_0x35f93c(0x194)](){var _0x99b84c=_0x35f93c;this[_0x99b84c(0x18b)]['get'](a);}};O(s,_0x35f93c(0x190),$),O(s,_0x35f93c(0x185),_0x28ff46[_0x35f93c(0x1ae)]),s=B([_0x38af5d(_0x4c6d20),g(0x1,_0x193c8e(_0x27c32b)),g(0x2,_0x45aa5a)],s);export{_ as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x100039,_0x3a0b91){var _0x43fda=_0x543a,_0x5c2bfe=_0x100039();while(!![]){try{var _0x3e7aea=parseInt(_0x43fda(0x161))/0x1*(parseInt(_0x43fda(0x174))/0x2)+parseInt(_0x43fda(0x19e))/0x3*(-parseInt(_0x43fda(0x17e))/0x4)+-parseInt(_0x43fda(0x1a6))/0x5+-parseInt(_0x43fda(0x165))/0x6*(-parseInt(_0x43fda(0x179))/0x7)+parseInt(_0x43fda(0x16c))/0x8+-parseInt(_0x43fda(0x170))/0x9*(parseInt(_0x43fda(0x187))/0xa)+parseInt(_0x43fda(0x1a1))/0xb;if(_0x3e7aea===_0x3a0b91)break;else _0x5c2bfe['push'](_0x5c2bfe['shift']());}catch(_0x35d6c1){_0x5c2bfe['push'](_0x5c2bfe['shift']());}}}(_0xa9fb,0xeb7a7),function(_0x509fb3,_0x5d5282){var _0x3df05b=_0x543a;typeof exports==_0x3df05b(0x185)&&typeof module<'u'?_0x5d5282(exports,require(_0x3df05b(0x173)),require(_0x3df05b(0x195)),require('@univerjs/ui')):typeof define==_0x3df05b(0x16f)&&define[_0x3df05b(0x172)]?define([_0x3df05b(0x163),_0x3df05b(0x173),_0x3df05b(0x195),_0x3df05b(0x18e)],_0x5d5282):(_0x509fb3=typeof globalThis<'u'?globalThis:_0x509fb3||self,_0x5d5282(_0x509fb3['UniverProDocsExchangeClient']={},_0x509fb3['UniverProExchangeClient'],_0x509fb3[_0x3df05b(0x166)],_0x509fb3[_0x3df05b(0x18b)]));}(this,function(_0x49394d,_0x83066,_0x2aa7cb,_0x220729){'use strict';var _0x3e85b1=_0x543a;const _0x47efc2='docs-exchange-client.config',_0x1baa47={},_0x29cba4={'id':_0x3e85b1(0x15f),'type':_0x2aa7cb[_0x3e85b1(0x17a)][_0x3e85b1(0x17d)],'handler':async _0x34e6d4=>(_0x34e6d4['get'](_0x83066[_0x3e85b1(0x19d)])[_0x3e85b1(0x16d)](),!0x0)},_0x6c8e4={'id':_0x3e85b1(0x1a7),'type':_0x2aa7cb[_0x3e85b1(0x17a)][_0x3e85b1(0x17d)],'handler':async _0x2118f8=>(_0x2118f8[_0x3e85b1(0x181)](_0x83066[_0x3e85b1(0x19d)])[_0x3e85b1(0x18a)](),!0x0)},_0x63ac49='docs-exchange-client.operation.exchange';function _0x437883(_0x48e3d3){var _0x374dc4=_0x3e85b1;return{'id':_0x63ac49,'type':_0x220729[_0x374dc4(0x184)][_0x374dc4(0x16e)],'icon':_0x374dc4(0x16b),'tooltip':'exchange.file','hidden$':_0x220729['getMenuHiddenObservable'](_0x48e3d3,_0x2aa7cb[_0x374dc4(0x178)][_0x374dc4(0x162)])};}function _0x5e46e1(){var _0x18d3c9=_0x3e85b1;return{'id':_0x29cba4['id'],'type':_0x220729[_0x18d3c9(0x184)][_0x18d3c9(0x177)],'title':_0x18d3c9(0x17b),'icon':_0x18d3c9(0x193)};}function _0x5c60ee(){var _0x2baf7e=_0x3e85b1;return{'id':_0x6c8e4['id'],'type':_0x220729[_0x2baf7e(0x184)]['BUTTON'],'title':_0x2baf7e(0x183),'icon':_0x2baf7e(0x1a0)};}const _0x5596={[_0x220729[_0x3e85b1(0x18f)][_0x3e85b1(0x175)]]:{[_0x63ac49]:{'order':0.3,'menuItemFactory':_0x437883,[_0x29cba4['id']]:{'order':0x0,'menuItemFactory':_0x5e46e1},[_0x6c8e4['id']]:{'order':0x1,'menuItemFactory':_0x5c60ee}}}};var _0x5ed5cb=Object[_0x3e85b1(0x15e)],_0x3af53=(_0x513bf6,_0x2569ae,_0x26e467,_0x443f33)=>{var _0x35e4f0=_0x3e85b1;for(var _0x51bf77=_0x443f33>0x1?void 0x0:_0x443f33?_0x5ed5cb(_0x2569ae,_0x26e467):_0x2569ae,_0x53ab72=_0x513bf6[_0x35e4f0(0x18d)]-0x1,_0x460a0a;_0x53ab72>=0x0;_0x53ab72--)(_0x460a0a=_0x513bf6[_0x53ab72])&&(_0x51bf77=_0x460a0a(_0x51bf77)||_0x51bf77);return _0x51bf77;},_0x1fbf4e=(_0x59fd9b,_0xe8cdbf)=>(_0x3d6b04,_0x5b505f)=>_0xe8cdbf(_0x3d6b04,_0x5b505f,_0x59fd9b);let _0x39059d=class extends _0x2aa7cb[_0x3e85b1(0x1a5)]{constructor(_0x2350d6,_0x306049){var _0x444714=_0x3e85b1;super(),this['_commandService']=_0x2350d6,this['_menuManagerService']=_0x306049,this['_initCommands'](),this[_0x444714(0x164)]();}[_0x3e85b1(0x191)](){var _0x26f836=_0x3e85b1;[_0x29cba4,_0x6c8e4][_0x26f836(0x19f)](_0x2c5d77=>{var _0x5b666f=_0x26f836;this[_0x5b666f(0x192)](this[_0x5b666f(0x19c)][_0x5b666f(0x180)](_0x2c5d77));});}[_0x3e85b1(0x164)](){var _0x51b08b=_0x3e85b1;this[_0x51b08b(0x197)][_0x51b08b(0x16a)](_0x5596);}};_0x39059d=_0x3af53([_0x1fbf4e(0x0,_0x2aa7cb[_0x3e85b1(0x168)]),_0x1fbf4e(0x1,_0x220729[_0x3e85b1(0x190)])],_0x39059d);var _0x16b938=Object[_0x3e85b1(0x167)],_0x3adb5b=Object[_0x3e85b1(0x15e)],_0x369371=(_0xc4409e,_0x55c2ea,_0x269878)=>_0x55c2ea in _0xc4409e?_0x16b938(_0xc4409e,_0x55c2ea,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x269878}):_0xc4409e[_0x55c2ea]=_0x269878,_0x5c7be4=(_0x3e9be2,_0x772cab,_0x532446,_0x3d92b8)=>{for(var _0x8a5f49=_0x3d92b8>0x1?void 0x0:_0x3d92b8?_0x3adb5b(_0x772cab,_0x532446):_0x772cab,_0x46de3d=_0x3e9be2['length']-0x1,_0x2b0be2;_0x46de3d>=0x0;_0x46de3d--)(_0x2b0be2=_0x3e9be2[_0x46de3d])&&(_0x8a5f49=_0x2b0be2(_0x8a5f49)||_0x8a5f49);return _0x8a5f49;},_0x3cda18=(_0xf939f6,_0x4c5d5e)=>(_0x3afd31,_0x25cff6)=>_0x4c5d5e(_0x3afd31,_0x25cff6,_0xf939f6),_0xd1c8e3=(_0x2853b2,_0x4d397d,_0xd605b7)=>_0x369371(_0x2853b2,typeof _0x4d397d!=_0x3e85b1(0x171)?_0x4d397d+'':_0x4d397d,_0xd605b7);const _0x3e6614='DOC_EXCHANGE_CLIENT_PLUGIN';_0x49394d[_0x3e85b1(0x1a4)]=class extends _0x2aa7cb[_0x3e85b1(0x19b)]{constructor(_0xa88776=_0x1baa47,_0x4fea2a,_0x1de78f){var _0x1ce466=_0x3e85b1;super(),this[_0x1ce466(0x198)]=_0xa88776,this['_injector']=_0x4fea2a,this[_0x1ce466(0x18c)]=_0x1de78f;const {menu:_0x5baca3,..._0xc3446c}=_0x2aa7cb[_0x1ce466(0x194)]({},_0x1baa47,this[_0x1ce466(0x198)]);_0x5baca3&&this['_configService']['setConfig'](_0x1ce466(0x169),_0x5baca3,{'merge':!0x0}),this[_0x1ce466(0x18c)][_0x1ce466(0x1a3)](_0x47efc2,_0xc3446c);}['onStarting'](){var _0x4c164a=_0x3e85b1;[[_0x39059d]]['forEach'](_0x340284=>this[_0x4c164a(0x160)][_0x4c164a(0x19a)](_0x340284));}[_0x3e85b1(0x176)](){var _0x57f87d=_0x3e85b1;this[_0x57f87d(0x160)]['get'](_0x39059d);}},_0xd1c8e3(_0x49394d[_0x3e85b1(0x1a4)],_0x3e85b1(0x182),_0x3e6614),_0xd1c8e3(_0x49394d[_0x3e85b1(0x1a4)],_0x3e85b1(0x189),_0x2aa7cb['UniverInstanceType'][_0x3e85b1(0x162)]),_0x49394d[_0x3e85b1(0x1a4)]=_0x5c7be4([_0x2aa7cb[_0x3e85b1(0x188)](_0x83066['UniverExchangeClientPlugin']),_0x3cda18(0x1,_0x2aa7cb[_0x3e85b1(0x1a2)](_0x2aa7cb[_0x3e85b1(0x186)])),_0x3cda18(0x2,_0x2aa7cb[_0x3e85b1(0x17f)])],_0x49394d['UniverDocsExchangeClientPlugin']),_0x49394d[_0x3e85b1(0x17c)]=_0x6c8e4,_0x49394d[_0x3e85b1(0x196)]=_0x29cba4,Object[_0x3e85b1(0x167)](_0x49394d,Symbol[_0x3e85b1(0x199)],{'value':'Module'});}));function _0x543a(_0x3f7a0b,_0x1902b3){var _0xa9fbf0=_0xa9fb();return _0x543a=function(_0x543aba,_0xaa3a3c){_0x543aba=_0x543aba-0x15e;var _0x25d1d1=_0xa9fbf0[_0x543aba];return _0x25d1d1;},_0x543a(_0x3f7a0b,_0x1902b3);}function _0xa9fb(){var _0x507967=['Plugin','_commandService','IExchangeOperateService','15ktdMul','forEach','ExportSingle','20338296UPgwEJ','Inject','setConfig','UniverDocsExchangeClientPlugin','Disposable','4624940EzGAqt','exchange-client.operation.export-docx','getOwnPropertyDescriptor','exchange-client.operation.import-docx','_injector','1ohDyEf','UNIVER_DOC','exports','_initMenus','4830aCIOvd','UniverCore','defineProperty','ICommandService','menu','mergeMenu','DirectExportSingle','4507040VbvxJV','importDOCXToUnitId','SUBITEMS','function','711873KNhJvI','symbol','amd','@univerjs-pro/exchange-client','709266RoMLbQ','OTHERS','onReady','BUTTON','UniverInstanceType','8743umfHNT','CommandType','exchange.upload','ExportDOCXOperation','OPERATION','1443032DGynEF','IConfigService','registerCommand','get','pluginName','exchange.download','MenuItemType','object','Injector','10PXlSMa','DependentOn','type','exportDOCXByUnitId','UniverUi','_configService','length','@univerjs/ui','RibbonStartGroup','IMenuManagerService','_initCommands','disposeWithMe','FolderSingle','merge','@univerjs/core','ImportDOCXOperation','_menuManagerService','_config','toStringTag','add'];_0xa9fb=function(){return _0x507967;};return _0xa9fb();}
|
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.202505191607",
|
|
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.202505191607",
|
|
46
|
+
"@univerjs/core": "0.7.0-nightly.202505191607",
|
|
47
|
+
"@univerjs/ui": "0.7.0-nightly.202505191607"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"typescript": "^5.8.3",
|