@univerjs-pro/docs-exchange-client 0.15.0-insiders.20260107-3441c7a → 0.15.0-insiders.20260108-47c73e3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +5 -5
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x13101d=_0x19bc;(function(_0x592954,_0x10a70a){var _0x5b6004=_0x19bc,_0x49a329=_0x592954();while(!![]){try{var _0x1f828c=parseInt(_0x5b6004(0x1d8))/0x1+parseInt(_0x5b6004(0x1e1))/0x2+-parseInt(_0x5b6004(0x1cd))/0x3+-parseInt(_0x5b6004(0x1c2))/0x4*(parseInt(_0x5b6004(0x1ad))/0x5)+-parseInt(_0x5b6004(0x1ca))/0x6+parseInt(_0x5b6004(0x1d3))/0x7*(-parseInt(_0x5b6004(0x1ac))/0x8)+parseInt(_0x5b6004(0x1e5))/0x9*(parseInt(_0x5b6004(0x1e6))/0xa);if(_0x1f828c===_0x10a70a)break;else _0x49a329['push'](_0x49a329['shift']());}catch(_0x1cc17a){_0x49a329['push'](_0x49a329['shift']());}}}(_0x52d8,0x1aba5));function _0x52d8(){var _0x171f43=['Module','registerCommand','CommandType','2500FRXvpG','_initMenus','docs-exchange-client.operation.exchange','menu','merge','exchange.upload','type','setConfig','943638EsjNtC','Disposable','BUTTON','602460ROmtaH','onReady','FolderIcon','_commandService','UNIVER_DOC','exportDOCXByUnitId','742WzxqIt','UniverDocsExchangeClientPlugin','exchange-client.operation.import-docx','IExchangeOperateService','DOC_EXCHANGE_CLIENT_PLUGIN','201417MuNvqT','forEach','ExportIcon','SUBITEMS','DependentOn','_configService','Injector','ICommandService','add','10152llkzCp','importDOCXToUnitId','docs-exchange-client.config','ExportDOCXOperation','10953qObhav','4690HpQdrf','_injector','OPERATION','9128bsDduB','1510oaqgGk','disposeWithMe','_config','getMenuHiddenObservable','defineProperty','DirectExportIcon','UniverExchangeClientPlugin','IConfigService','exchange.file','length','exchange-client.operation.export-docx','exchange.download','OTHERS','_initCommands','Plugin','MenuItemType','symbol','getOwnPropertyDescriptor'];_0x52d8=function(){return _0x171f43;};return _0x52d8();}Object[_0x13101d(0x1b1)](exports,Symbol['toStringTag'],{'value':_0x13101d(0x1bf)});const d=require('@univerjs-pro/exchange-client'),i=require('@univerjs/core'),a=require('@univerjs/ui'),p={'id':_0x13101d(0x1d5),'type':i[_0x13101d(0x1c1)][_0x13101d(0x1ab)],'handler':async _0x5c75e3=>(_0x5c75e3['get'](d[_0x13101d(0x1d6)])[_0x13101d(0x1e2)](),!0x0)},g={'id':_0x13101d(0x1b7),'type':i[_0x13101d(0x1c1)]['OPERATION'],'handler':async _0xa26574=>(_0xa26574['get'](d['IExchangeOperateService'])[_0x13101d(0x1d2)](),!0x0)},I=_0x13101d(0x1e3),l={},h=_0x13101d(0x1c4);function v(_0x459ffa){var _0x4b109e=_0x13101d;return{'id':h,'type':a['MenuItemType'][_0x4b109e(0x1db)],'icon':_0x4b109e(0x1b2),'tooltip':_0x4b109e(0x1b5),'hidden$':a[_0x4b109e(0x1b0)](_0x459ffa,i['UniverInstanceType'][_0x4b109e(0x1d1)])};}function O(){var _0x509d86=_0x13101d;return{'id':p['id'],'type':a[_0x509d86(0x1bc)]['BUTTON'],'title':_0x509d86(0x1c7),'icon':_0x509d86(0x1cf)};}function E(){var _0x88e894=_0x13101d;return{'id':g['id'],'type':a[_0x88e894(0x1bc)][_0x88e894(0x1cc)],'title':_0x88e894(0x1b8),'icon':_0x88e894(0x1da)};}const x={[a['RibbonStartGroup'][_0x13101d(0x1b9)]]:{[h]:{'order':0.3,'menuItemFactory':v,[p['id']]:{'order':0x0,'menuItemFactory':O},[g['id']]:{'order':0x1,'menuItemFactory':E}}}};var D=Object[_0x13101d(0x1be)],f=(_0x41b623,_0x2942e7,_0x4168cc,_0x83bce1)=>{var _0x2292f9=_0x13101d;for(var _0x51c828=_0x83bce1>0x1?void 0x0:_0x83bce1?D(_0x2942e7,_0x4168cc):_0x2942e7,_0x174a8d=_0x41b623[_0x2292f9(0x1b6)]-0x1,_0x1a1f05;_0x174a8d>=0x0;_0x174a8d--)(_0x1a1f05=_0x41b623[_0x174a8d])&&(_0x51c828=_0x1a1f05(_0x51c828)||_0x51c828);return _0x51c828;},_=(_0x18409f,_0x5fbe0a)=>(_0x169a6f,_0x42fc96)=>_0x5fbe0a(_0x169a6f,_0x42fc96,_0x18409f);let u=class extends i[_0x13101d(0x1cb)]{constructor(_0x1d9150,_0x43c784){var _0xf7ed1d=_0x13101d;super(),this['_commandService']=_0x1d9150,this['_menuManagerService']=_0x43c784,this[_0xf7ed1d(0x1ba)](),this['_initMenus']();}[_0x13101d(0x1ba)](){var _0x1b3f0d=_0x13101d;[p,g][_0x1b3f0d(0x1d9)](_0x1390c7=>{var _0x5ce03e=_0x1b3f0d;this[_0x5ce03e(0x1ae)](this[_0x5ce03e(0x1d0)][_0x5ce03e(0x1c0)](_0x1390c7));});}[_0x13101d(0x1c3)](){this['_menuManagerService']['mergeMenu'](x);}};u=f([_(0x0,i[_0x13101d(0x1df)]),_(0x1,a['IMenuManagerService'])],u);var y=Object[_0x13101d(0x1b1)],S=Object[_0x13101d(0x1be)],P=(_0x3a8cbe,_0x44096b,_0x10f175)=>_0x44096b in _0x3a8cbe?y(_0x3a8cbe,_0x44096b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x10f175}):_0x3a8cbe[_0x44096b]=_0x10f175,T=(_0x5cc92b,_0x308977,_0x2d7cf7,_0x372abc)=>{for(var _0x30640c=_0x372abc>0x1?void 0x0:_0x372abc?S(_0x308977,_0x2d7cf7):_0x308977,_0x1d6204=_0x5cc92b['length']-0x1,_0x501a57;_0x1d6204>=0x0;_0x1d6204--)(_0x501a57=_0x5cc92b[_0x1d6204])&&(_0x30640c=_0x501a57(_0x30640c)||_0x30640c);return _0x30640c;},m=(_0x3f9594,_0x24ad97)=>(_0x405ec5,_0x210b82)=>_0x24ad97(_0x405ec5,_0x210b82,_0x3f9594),C=(_0x103cce,_0x1e21c0,_0x168b5a)=>P(_0x103cce,typeof _0x1e21c0!=_0x13101d(0x1bd)?_0x1e21c0+'':_0x1e21c0,_0x168b5a);function _0x19bc(_0x421a79,_0x2213a3){_0x421a79=_0x421a79-0x1aa;var _0x52d843=_0x52d8();var _0x19bcfe=_0x52d843[_0x421a79];return _0x19bcfe;}const U=_0x13101d(0x1d7);exports[_0x13101d(0x1d4)]=class extends i[_0x13101d(0x1bb)]{constructor(_0xc18aa3=l,_0x480b17,_0xfc860b){var _0x430afe=_0x13101d;super(),this[_0x430afe(0x1af)]=_0xc18aa3,this[_0x430afe(0x1aa)]=_0x480b17,this[_0x430afe(0x1dd)]=_0xfc860b;const {menu:_0x5a2302,..._0x2ce720}=i[_0x430afe(0x1c6)]({},l,this[_0x430afe(0x1af)]);_0x5a2302&&this['_configService'][_0x430afe(0x1c9)](_0x430afe(0x1c5),_0x5a2302,{'merge':!0x0}),this['_configService'][_0x430afe(0x1c9)](I,_0x2ce720);}['onStarting'](){var _0x195360=_0x13101d;[[u]]['forEach'](_0x1e56d8=>this[_0x195360(0x1aa)][_0x195360(0x1e0)](_0x1e56d8));}[_0x13101d(0x1ce)](){var _0x41b15d=_0x13101d;this[_0x41b15d(0x1aa)]['get'](u);}},C(exports[_0x13101d(0x1d4)],'pluginName',U),C(exports[_0x13101d(0x1d4)],_0x13101d(0x1c8),i['UniverInstanceType'][_0x13101d(0x1d1)]),exports[_0x13101d(0x1d4)]=T([i[_0x13101d(0x1dc)](d[_0x13101d(0x1b3)]),m(0x1,i['Inject'](i[_0x13101d(0x1de)])),m(0x2,i[_0x13101d(0x1b4)])],exports[_0x13101d(0x1d4)]),exports[_0x13101d(0x1e4)]=g,exports['ImportDOCXOperation']=p;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x541fc6=_0x17c8;(function(_0x33440b,_0x2f4337){var _0x5a530c=_0x17c8,_0x46c4e5=_0x33440b();while(!![]){try{var _0x58474b=parseInt(_0x5a530c(0x1df))/0x1*(parseInt(_0x5a530c(0x1f3))/0x2)+parseInt(_0x5a530c(0x1f8))/0x3+parseInt(_0x5a530c(0x1e6))/0x4*(-parseInt(_0x5a530c(0x1e2))/0x5)+parseInt(_0x5a530c(0x1ec))/0x6*(parseInt(_0x5a530c(0x1f7))/0x7)+-parseInt(_0x5a530c(0x1d7))/0x8+parseInt(_0x5a530c(0x1db))/0x9+-parseInt(_0x5a530c(0x1e9))/0xa;if(_0x58474b===_0x2f4337)break;else _0x46c4e5['push'](_0x46c4e5['shift']());}catch(_0x5a1bd8){_0x46c4e5['push'](_0x46c4e5['shift']());}}}(_0x570f,0xb5b54));import{IExchangeOperateService as _0x584926,UniverExchangeClientPlugin as _0x5703a5}from'@univerjs-pro/exchange-client';import{CommandType as _0x2b9772,UniverInstanceType as _0x3707f5,Disposable as _0x4574e5,ICommandService as _0x1b8d1f,DependentOn as _0x1cc727,Inject as _0x483691,Injector as _0x4cdd69,IConfigService as _0x65b06,Plugin as _0x419158,merge as _0x55b11c}from'@univerjs/core';import{MenuItemType as _0x52bed2,getMenuHiddenObservable as _0x7cc66a,RibbonStartGroup as _0x27d152,IMenuManagerService as _0x33db80}from'@univerjs/ui';const d={'id':'exchange-client.operation.import-docx','type':_0x2b9772[_0x541fc6(0x1dc)],'handler':async _0xcd6fa0=>(_0xcd6fa0[_0x541fc6(0x1fa)](_0x584926)['importDOCXToUnitId'](),!0x0)},_={'id':_0x541fc6(0x1e1),'type':_0x2b9772[_0x541fc6(0x1dc)],'handler':async _0x170b13=>(_0x170b13['get'](_0x584926)[_0x541fc6(0x1e4)](),!0x0)},b='docs-exchange-client.config',m={},C='docs-exchange-client.operation.exchange';function X(_0x11cc54){var _0x55bdb6=_0x541fc6;return{'id':C,'type':_0x52bed2['SUBITEMS'],'icon':_0x55bdb6(0x1de),'tooltip':_0x55bdb6(0x1e8),'hidden$':_0x7cc66a(_0x11cc54,_0x3707f5[_0x55bdb6(0x1ea)])};}function F(){var _0x5aa554=_0x541fc6;return{'id':d['id'],'type':_0x52bed2['BUTTON'],'title':'exchange.upload','icon':_0x5aa554(0x1d9)};}function G(){var _0x403da9=_0x541fc6;return{'id':_['id'],'type':_0x52bed2[_0x403da9(0x1eb)],'title':_0x403da9(0x1f4),'icon':_0x403da9(0x1e5)};}const R={[_0x27d152['OTHERS']]:{[C]:{'order':0.3,'menuItemFactory':X,[d['id']]:{'order':0x0,'menuItemFactory':F},[_['id']]:{'order':0x1,'menuItemFactory':G}}}};var A=Object[_0x541fc6(0x1f2)],j=(_0x2d0bce,_0x51b802,_0x414813,_0x5f5c27)=>{var _0x2eb1c0=_0x541fc6;for(var _0x2373b4=_0x5f5c27>0x1?void 0x0:_0x5f5c27?A(_0x51b802,_0x414813):_0x51b802,_0x156725=_0x2d0bce[_0x2eb1c0(0x1f6)]-0x1,_0x177406;_0x156725>=0x0;_0x156725--)(_0x177406=_0x2d0bce[_0x156725])&&(_0x2373b4=_0x177406(_0x2373b4)||_0x2373b4);return _0x2373b4;},u=(_0x22011f,_0x7f6be3)=>(_0x5c440a,_0xd38407)=>_0x7f6be3(_0x5c440a,_0xd38407,_0x22011f);let a=class extends _0x4574e5{constructor(_0x386edc,_0x11de2f){var _0x2ce6e7=_0x541fc6;super(),this['_commandService']=_0x386edc,this[_0x2ce6e7(0x1e7)]=_0x11de2f,this[_0x2ce6e7(0x1e0)](),this[_0x2ce6e7(0x1f1)]();}['_initCommands'](){[d,_]['forEach'](_0x1c401f=>{var _0x31a976=_0x17c8;this['disposeWithMe'](this[_0x31a976(0x1fb)][_0x31a976(0x1d8)](_0x1c401f));});}[_0x541fc6(0x1f1)](){var _0x35e194=_0x541fc6;this[_0x35e194(0x1e7)][_0x35e194(0x1ed)](R);}};a=j([u(0x0,_0x1b8d1f),u(0x1,_0x33db80)],a);var w=Object['defineProperty'],H=Object[_0x541fc6(0x1f2)],L=(_0x11b360,_0x2ec89b,_0x4c1bd4)=>_0x2ec89b in _0x11b360?w(_0x11b360,_0x2ec89b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4c1bd4}):_0x11b360[_0x2ec89b]=_0x4c1bd4,B=(_0x5b384e,_0x145d68,_0x5d983c,_0x5058ff)=>{var _0x28f653=_0x541fc6;for(var _0x585ac3=_0x5058ff>0x1?void 0x0:_0x5058ff?H(_0x145d68,_0x5d983c):_0x145d68,_0x9cbe71=_0x5b384e[_0x28f653(0x1f6)]-0x1,_0xbaf49e;_0x9cbe71>=0x0;_0x9cbe71--)(_0xbaf49e=_0x5b384e[_0x9cbe71])&&(_0x585ac3=_0xbaf49e(_0x585ac3)||_0x585ac3);return _0x585ac3;},g=(_0x5b6591,_0x2af708)=>(_0x1f4487,_0x18f341)=>_0x2af708(_0x1f4487,_0x18f341,_0x5b6591),O=(_0x42efb8,_0x5b6aa6,_0xaa5cfb)=>L(_0x42efb8,typeof _0x5b6aa6!=_0x541fc6(0x1d6)?_0x5b6aa6+'':_0x5b6aa6,_0xaa5cfb);const $=_0x541fc6(0x1f5);function _0x17c8(_0x4cc176,_0x137fc9){_0x4cc176=_0x4cc176-0x1d5;var _0x570f68=_0x570f();var _0x17c898=_0x570f68[_0x4cc176];return _0x17c898;}let s=class extends _0x419158{constructor(_0x161c0b=m,_0x222b36,_0x2c4904){var _0x439a2e=_0x541fc6;super(),this['_config']=_0x161c0b,this['_injector']=_0x222b36,this[_0x439a2e(0x1f9)]=_0x2c4904;const {menu:_0x323724,..._0x430461}=_0x55b11c({},m,this[_0x439a2e(0x1e3)]);_0x323724&&this[_0x439a2e(0x1f9)][_0x439a2e(0x1da)]('menu',_0x323724,{'merge':!0x0}),this['_configService'][_0x439a2e(0x1da)](b,_0x430461);}[_0x541fc6(0x1d5)](){var _0x174cc1=_0x541fc6;[[a]][_0x174cc1(0x1dd)](_0x23f536=>this['_injector'][_0x174cc1(0x1f0)](_0x23f536));}[_0x541fc6(0x1ef)](){var _0x848be9=_0x541fc6;this['_injector'][_0x848be9(0x1fa)](a);}};O(s,_0x541fc6(0x1ee),$),O(s,'type',_0x3707f5[_0x541fc6(0x1ea)]),s=B([_0x1cc727(_0x5703a5),g(0x1,_0x483691(_0x4cdd69)),g(0x2,_0x65b06)],s);export{_ as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};function _0x570f(){var _0x4c8480=['pluginName','onReady','add','_initMenus','getOwnPropertyDescriptor','672194HPOfqt','exchange.download','DOC_EXCHANGE_CLIENT_PLUGIN','length','8876GSpRph','1041144JhIyma','_configService','get','_commandService','onStarting','symbol','3320776nVUikN','registerCommand','FolderIcon','setConfig','9606177zXeRlZ','OPERATION','forEach','DirectExportIcon','1SBzsgF','_initCommands','exchange-client.operation.export-docx','990LpOxuW','_config','exportDOCXByUnitId','ExportIcon','3504kcdfIa','_menuManagerService','exchange.file','7917370lVUuqg','UNIVER_DOC','BUTTON','1770IOAshB','mergeMenu'];_0x570f=function(){return _0x4c8480;};return _0x570f();}
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x541fc6=_0x17c8;(function(_0x33440b,_0x2f4337){var _0x5a530c=_0x17c8,_0x46c4e5=_0x33440b();while(!![]){try{var _0x58474b=parseInt(_0x5a530c(0x1df))/0x1*(parseInt(_0x5a530c(0x1f3))/0x2)+parseInt(_0x5a530c(0x1f8))/0x3+parseInt(_0x5a530c(0x1e6))/0x4*(-parseInt(_0x5a530c(0x1e2))/0x5)+parseInt(_0x5a530c(0x1ec))/0x6*(parseInt(_0x5a530c(0x1f7))/0x7)+-parseInt(_0x5a530c(0x1d7))/0x8+parseInt(_0x5a530c(0x1db))/0x9+-parseInt(_0x5a530c(0x1e9))/0xa;if(_0x58474b===_0x2f4337)break;else _0x46c4e5['push'](_0x46c4e5['shift']());}catch(_0x5a1bd8){_0x46c4e5['push'](_0x46c4e5['shift']());}}}(_0x570f,0xb5b54));import{IExchangeOperateService as _0x584926,UniverExchangeClientPlugin as _0x5703a5}from'@univerjs-pro/exchange-client';import{CommandType as _0x2b9772,UniverInstanceType as _0x3707f5,Disposable as _0x4574e5,ICommandService as _0x1b8d1f,DependentOn as _0x1cc727,Inject as _0x483691,Injector as _0x4cdd69,IConfigService as _0x65b06,Plugin as _0x419158,merge as _0x55b11c}from'@univerjs/core';import{MenuItemType as _0x52bed2,getMenuHiddenObservable as _0x7cc66a,RibbonStartGroup as _0x27d152,IMenuManagerService as _0x33db80}from'@univerjs/ui';const d={'id':'exchange-client.operation.import-docx','type':_0x2b9772[_0x541fc6(0x1dc)],'handler':async _0xcd6fa0=>(_0xcd6fa0[_0x541fc6(0x1fa)](_0x584926)['importDOCXToUnitId'](),!0x0)},_={'id':_0x541fc6(0x1e1),'type':_0x2b9772[_0x541fc6(0x1dc)],'handler':async _0x170b13=>(_0x170b13['get'](_0x584926)[_0x541fc6(0x1e4)](),!0x0)},b='docs-exchange-client.config',m={},C='docs-exchange-client.operation.exchange';function X(_0x11cc54){var _0x55bdb6=_0x541fc6;return{'id':C,'type':_0x52bed2['SUBITEMS'],'icon':_0x55bdb6(0x1de),'tooltip':_0x55bdb6(0x1e8),'hidden$':_0x7cc66a(_0x11cc54,_0x3707f5[_0x55bdb6(0x1ea)])};}function F(){var _0x5aa554=_0x541fc6;return{'id':d['id'],'type':_0x52bed2['BUTTON'],'title':'exchange.upload','icon':_0x5aa554(0x1d9)};}function G(){var _0x403da9=_0x541fc6;return{'id':_['id'],'type':_0x52bed2[_0x403da9(0x1eb)],'title':_0x403da9(0x1f4),'icon':_0x403da9(0x1e5)};}const R={[_0x27d152['OTHERS']]:{[C]:{'order':0.3,'menuItemFactory':X,[d['id']]:{'order':0x0,'menuItemFactory':F},[_['id']]:{'order':0x1,'menuItemFactory':G}}}};var A=Object[_0x541fc6(0x1f2)],j=(_0x2d0bce,_0x51b802,_0x414813,_0x5f5c27)=>{var _0x2eb1c0=_0x541fc6;for(var _0x2373b4=_0x5f5c27>0x1?void 0x0:_0x5f5c27?A(_0x51b802,_0x414813):_0x51b802,_0x156725=_0x2d0bce[_0x2eb1c0(0x1f6)]-0x1,_0x177406;_0x156725>=0x0;_0x156725--)(_0x177406=_0x2d0bce[_0x156725])&&(_0x2373b4=_0x177406(_0x2373b4)||_0x2373b4);return _0x2373b4;},u=(_0x22011f,_0x7f6be3)=>(_0x5c440a,_0xd38407)=>_0x7f6be3(_0x5c440a,_0xd38407,_0x22011f);let a=class extends _0x4574e5{constructor(_0x386edc,_0x11de2f){var _0x2ce6e7=_0x541fc6;super(),this['_commandService']=_0x386edc,this[_0x2ce6e7(0x1e7)]=_0x11de2f,this[_0x2ce6e7(0x1e0)](),this[_0x2ce6e7(0x1f1)]();}['_initCommands'](){[d,_]['forEach'](_0x1c401f=>{var _0x31a976=_0x17c8;this['disposeWithMe'](this[_0x31a976(0x1fb)][_0x31a976(0x1d8)](_0x1c401f));});}[_0x541fc6(0x1f1)](){var _0x35e194=_0x541fc6;this[_0x35e194(0x1e7)][_0x35e194(0x1ed)](R);}};a=j([u(0x0,_0x1b8d1f),u(0x1,_0x33db80)],a);var w=Object['defineProperty'],H=Object[_0x541fc6(0x1f2)],L=(_0x11b360,_0x2ec89b,_0x4c1bd4)=>_0x2ec89b in _0x11b360?w(_0x11b360,_0x2ec89b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4c1bd4}):_0x11b360[_0x2ec89b]=_0x4c1bd4,B=(_0x5b384e,_0x145d68,_0x5d983c,_0x5058ff)=>{var _0x28f653=_0x541fc6;for(var _0x585ac3=_0x5058ff>0x1?void 0x0:_0x5058ff?H(_0x145d68,_0x5d983c):_0x145d68,_0x9cbe71=_0x5b384e[_0x28f653(0x1f6)]-0x1,_0xbaf49e;_0x9cbe71>=0x0;_0x9cbe71--)(_0xbaf49e=_0x5b384e[_0x9cbe71])&&(_0x585ac3=_0xbaf49e(_0x585ac3)||_0x585ac3);return _0x585ac3;},g=(_0x5b6591,_0x2af708)=>(_0x1f4487,_0x18f341)=>_0x2af708(_0x1f4487,_0x18f341,_0x5b6591),O=(_0x42efb8,_0x5b6aa6,_0xaa5cfb)=>L(_0x42efb8,typeof _0x5b6aa6!=_0x541fc6(0x1d6)?_0x5b6aa6+'':_0x5b6aa6,_0xaa5cfb);const $=_0x541fc6(0x1f5);function _0x17c8(_0x4cc176,_0x137fc9){_0x4cc176=_0x4cc176-0x1d5;var _0x570f68=_0x570f();var _0x17c898=_0x570f68[_0x4cc176];return _0x17c898;}let s=class extends _0x419158{constructor(_0x161c0b=m,_0x222b36,_0x2c4904){var _0x439a2e=_0x541fc6;super(),this['_config']=_0x161c0b,this['_injector']=_0x222b36,this[_0x439a2e(0x1f9)]=_0x2c4904;const {menu:_0x323724,..._0x430461}=_0x55b11c({},m,this[_0x439a2e(0x1e3)]);_0x323724&&this[_0x439a2e(0x1f9)][_0x439a2e(0x1da)]('menu',_0x323724,{'merge':!0x0}),this['_configService'][_0x439a2e(0x1da)](b,_0x430461);}[_0x541fc6(0x1d5)](){var _0x174cc1=_0x541fc6;[[a]][_0x174cc1(0x1dd)](_0x23f536=>this['_injector'][_0x174cc1(0x1f0)](_0x23f536));}[_0x541fc6(0x1ef)](){var _0x848be9=_0x541fc6;this['_injector'][_0x848be9(0x1fa)](a);}};O(s,_0x541fc6(0x1ee),$),O(s,'type',_0x3707f5[_0x541fc6(0x1ea)]),s=B([_0x1cc727(_0x5703a5),g(0x1,_0x483691(_0x4cdd69)),g(0x2,_0x65b06)],s);export{_ as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};function _0x570f(){var _0x4c8480=['pluginName','onReady','add','_initMenus','getOwnPropertyDescriptor','672194HPOfqt','exchange.download','DOC_EXCHANGE_CLIENT_PLUGIN','length','8876GSpRph','1041144JhIyma','_configService','get','_commandService','onStarting','symbol','3320776nVUikN','registerCommand','FolderIcon','setConfig','9606177zXeRlZ','OPERATION','forEach','DirectExportIcon','1SBzsgF','_initCommands','exchange-client.operation.export-docx','990LpOxuW','_config','exportDOCXByUnitId','ExportIcon','3504kcdfIa','_menuManagerService','exchange.file','7917370lVUuqg','UNIVER_DOC','BUTTON','1770IOAshB','mergeMenu'];_0x570f=function(){return _0x4c8480;};return _0x570f();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x14973e,_0x37e3d6){var _0xc681d8=_0x1ad4,_0x51b50a=_0x14973e();while(!![]){try{var _0x4bd7fd=-parseInt(_0xc681d8(0xa0))/0x1+parseInt(_0xc681d8(0xdb))/0x2+parseInt(_0xc681d8(0xda))/0x3*(-parseInt(_0xc681d8(0xad))/0x4)+parseInt(_0xc681d8(0xc3))/0x5*(parseInt(_0xc681d8(0xc9))/0x6)+parseInt(_0xc681d8(0xbd))/0x7*(parseInt(_0xc681d8(0x9f))/0x8)+parseInt(_0xc681d8(0xdd))/0x9*(parseInt(_0xc681d8(0xbb))/0xa)+-parseInt(_0xc681d8(0xa5))/0xb;if(_0x4bd7fd===_0x37e3d6)break;else _0x51b50a['push'](_0x51b50a['shift']());}catch(_0x181dc5){_0x51b50a['push'](_0x51b50a['shift']());}}}(_0x2ac3,0x4d353),function(_0x2831cd,_0x4b0f73){var _0x568ed4=_0x1ad4;typeof exports=='object'&&typeof module<'u'?_0x4b0f73(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui')):typeof define==_0x568ed4(0xcf)&&define['amd']?define([_0x568ed4(0xb7),_0x568ed4(0xd9),_0x568ed4(0xa4),_0x568ed4(0xb0)],_0x4b0f73):(_0x2831cd=typeof globalThis<'u'?globalThis:_0x2831cd||self,_0x4b0f73(_0x2831cd[_0x568ed4(0xd1)]={},_0x2831cd['UniverProExchangeClient'],_0x2831cd[_0x568ed4(0xc0)],_0x2831cd[_0x568ed4(0xb1)]));}(this,function(_0x53aacf,_0x18175c,_0xa36d8b,_0x34ac7d){'use strict';var _0x561fec=_0x1ad4;const _0x6a76f2={'id':'exchange-client.operation.import-docx','type':_0xa36d8b['CommandType']['OPERATION'],'handler':async _0x5b2e62=>(_0x5b2e62[_0x561fec(0xca)](_0x18175c[_0x561fec(0xc6)])[_0x561fec(0xc4)](),!0x0)},_0x2da6a6={'id':_0x561fec(0xaf),'type':_0xa36d8b[_0x561fec(0xab)]['OPERATION'],'handler':async _0x4b9d9f=>(_0x4b9d9f[_0x561fec(0xca)](_0x18175c[_0x561fec(0xc6)])[_0x561fec(0xe2)](),!0x0)},_0x4a3e26=_0x561fec(0xba),_0x5464f8={},_0x1bdb52=_0x561fec(0xb8);function _0x46062b(_0x11690c){var _0x46e985=_0x561fec;return{'id':_0x1bdb52,'type':_0x34ac7d[_0x46e985(0xd4)][_0x46e985(0x9e)],'icon':'DirectExportIcon','tooltip':_0x46e985(0xa2),'hidden$':_0x34ac7d[_0x46e985(0xde)](_0x11690c,_0xa36d8b['UniverInstanceType'][_0x46e985(0xd6)])};}function _0x6502a1(){var _0x5dfad4=_0x561fec;return{'id':_0x6a76f2['id'],'type':_0x34ac7d[_0x5dfad4(0xd4)][_0x5dfad4(0xbc)],'title':_0x5dfad4(0xd5),'icon':'FolderIcon'};}function _0x35391d(){var _0x19afb0=_0x561fec;return{'id':_0x2da6a6['id'],'type':_0x34ac7d['MenuItemType']['BUTTON'],'title':'exchange.download','icon':_0x19afb0(0xb3)};}const _0x7c589e={[_0x34ac7d[_0x561fec(0xd7)][_0x561fec(0xd0)]]:{[_0x1bdb52]:{'order':0.3,'menuItemFactory':_0x46062b,[_0x6a76f2['id']]:{'order':0x0,'menuItemFactory':_0x6502a1},[_0x2da6a6['id']]:{'order':0x1,'menuItemFactory':_0x35391d}}}};var _0x47f013=Object[_0x561fec(0xa8)],_0x46eb7e=(_0x204f21,_0x272014,_0x5bb5f8,_0x3eb386)=>{var _0x3ac3ec=_0x561fec;for(var _0x464576=_0x3eb386>0x1?void 0x0:_0x3eb386?_0x47f013(_0x272014,_0x5bb5f8):_0x272014,_0x14aa0d=_0x204f21[_0x3ac3ec(0xbe)]-0x1,_0x1a631e;_0x14aa0d>=0x0;_0x14aa0d--)(_0x1a631e=_0x204f21[_0x14aa0d])&&(_0x464576=_0x1a631e(_0x464576)||_0x464576);return _0x464576;},_0x23c6ad=(_0x3c4325,_0x25a4ae)=>(_0x3c37e5,_0x531386)=>_0x25a4ae(_0x3c37e5,_0x531386,_0x3c4325);let _0x21f6c6=class extends _0xa36d8b[_0x561fec(0xdf)]{constructor(_0x2b0262,_0x51fc7b){var _0x181f43=_0x561fec;super(),this[_0x181f43(0xa9)]=_0x2b0262,this['_menuManagerService']=_0x51fc7b,this['_initCommands'](),this[_0x181f43(0xd2)]();}[_0x561fec(0xae)](){[_0x6a76f2,_0x2da6a6]['forEach'](_0x31fc16=>{var _0xfb312=_0x1ad4;this[_0xfb312(0x9d)](this[_0xfb312(0xa9)][_0xfb312(0xac)](_0x31fc16));});}[_0x561fec(0xd2)](){var _0x16b6ab=_0x561fec;this[_0x16b6ab(0xc2)][_0x16b6ab(0xb5)](_0x7c589e);}};_0x21f6c6=_0x46eb7e([_0x23c6ad(0x0,_0xa36d8b[_0x561fec(0xc7)]),_0x23c6ad(0x1,_0x34ac7d[_0x561fec(0xb6)])],_0x21f6c6);var _0x27c6f4=Object['defineProperty'],_0x382c99=Object['getOwnPropertyDescriptor'],_0x1462ff=(_0x5c38f5,_0x260657,_0x32f680)=>_0x260657 in _0x5c38f5?_0x27c6f4(_0x5c38f5,_0x260657,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32f680}):_0x5c38f5[_0x260657]=_0x32f680,_0x36cbe9=(_0x313f30,_0x3679e9,_0x47fcc8,_0x232f12)=>{var _0x498882=_0x561fec;for(var _0x3a6841=_0x232f12>0x1?void 0x0:_0x232f12?_0x382c99(_0x3679e9,_0x47fcc8):_0x3679e9,_0x355d5a=_0x313f30[_0x498882(0xbe)]-0x1,_0x3c2163;_0x355d5a>=0x0;_0x355d5a--)(_0x3c2163=_0x313f30[_0x355d5a])&&(_0x3a6841=_0x3c2163(_0x3a6841)||_0x3a6841);return _0x3a6841;},_0xe2473e=(_0x1814be,_0x39f493)=>(_0x24c0e5,_0x31a86a)=>_0x39f493(_0x24c0e5,_0x31a86a,_0x1814be),_0x2f9507=(_0x11098c,_0x550dce,_0x28e78d)=>_0x1462ff(_0x11098c,typeof _0x550dce!=_0x561fec(0xa3)?_0x550dce+'':_0x550dce,_0x28e78d);const _0xc31898=_0x561fec(0xe1);_0x53aacf[_0x561fec(0xcd)]=class extends _0xa36d8b[_0x561fec(0xa1)]{constructor(_0x461784=_0x5464f8,_0x344ddd,_0x2ee249){var _0x3afa1f=_0x561fec;super(),this['_config']=_0x461784,this[_0x3afa1f(0xb9)]=_0x344ddd,this[_0x3afa1f(0xa7)]=_0x2ee249;const {menu:_0x204e2c,..._0xfe74ee}=_0xa36d8b[_0x3afa1f(0xe0)]({},_0x5464f8,this[_0x3afa1f(0xc8)]);_0x204e2c&&this[_0x3afa1f(0xa7)][_0x3afa1f(0xcc)](_0x3afa1f(0xd3),_0x204e2c,{'merge':!0x0}),this[_0x3afa1f(0xa7)][_0x3afa1f(0xcc)](_0x4a3e26,_0xfe74ee);}[_0x561fec(0xd8)](){var _0x33952e=_0x561fec;[[_0x21f6c6]][_0x33952e(0xaa)](_0x24718f=>this[_0x33952e(0xb9)]['add'](_0x24718f));}[_0x561fec(0xcb)](){var _0x144794=_0x561fec;this['_injector'][_0x144794(0xca)](_0x21f6c6);}},_0x2f9507(_0x53aacf['UniverDocsExchangeClientPlugin'],_0x561fec(0xbf),_0xc31898),_0x2f9507(_0x53aacf[_0x561fec(0xcd)],_0x561fec(0xdc),_0xa36d8b['UniverInstanceType']['UNIVER_DOC']),_0x53aacf['UniverDocsExchangeClientPlugin']=_0x36cbe9([_0xa36d8b['DependentOn'](_0x18175c['UniverExchangeClientPlugin']),_0xe2473e(0x1,_0xa36d8b[_0x561fec(0xb4)](_0xa36d8b[_0x561fec(0xc1)])),_0xe2473e(0x2,_0xa36d8b[_0x561fec(0xce)])],_0x53aacf['UniverDocsExchangeClientPlugin']),_0x53aacf[_0x561fec(0xa6)]=_0x2da6a6,_0x53aacf[_0x561fec(0xb2)]=_0x6a76f2,Object[_0x561fec(0xe3)](_0x53aacf,Symbol[_0x561fec(0xc5)],{'value':'Module'});}));function _0x1ad4(_0x572a56,_0x4ee487){_0x572a56=_0x572a56-0x9d;var _0x2ac353=_0x2ac3();var _0x1ad47e=_0x2ac353[_0x572a56];return _0x1ad47e;}function _0x2ac3(){var _0x370539=['_config','171204cOAdXs','get','onReady','setConfig','UniverDocsExchangeClientPlugin','IConfigService','function','OTHERS','UniverProDocsExchangeClient','_initMenus','menu','MenuItemType','exchange.upload','UNIVER_DOC','RibbonStartGroup','onStarting','@univerjs-pro/exchange-client','3066LQJwJm','995492YJwsDq','type','8469YGdJvt','getMenuHiddenObservable','Disposable','merge','DOC_EXCHANGE_CLIENT_PLUGIN','exportDOCXByUnitId','defineProperty','disposeWithMe','SUBITEMS','4021736hVvfIc','259683cMnrPy','Plugin','exchange.file','symbol','@univerjs/core','11431882AWezwA','ExportDOCXOperation','_configService','getOwnPropertyDescriptor','_commandService','forEach','CommandType','registerCommand','172eCxwIi','_initCommands','exchange-client.operation.export-docx','@univerjs/ui','UniverUi','ImportDOCXOperation','ExportIcon','Inject','mergeMenu','IMenuManagerService','exports','docs-exchange-client.operation.exchange','_injector','docs-exchange-client.config','6090AKalBA','BUTTON','7sLiZpb','length','pluginName','UniverCore','Injector','_menuManagerService','15MhJQGV','importDOCXToUnitId','toStringTag','IExchangeOperateService','ICommandService'];_0x2ac3=function(){return _0x370539;};return _0x2ac3();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/docs-exchange-client",
|
|
3
|
-
"version": "0.15.0-insiders.
|
|
3
|
+
"version": "0.15.0-insiders.20260108-47c73e3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
"lib"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@univerjs-pro/exchange-client": "0.15.0-insiders.
|
|
46
|
-
"@univerjs/
|
|
47
|
-
"@univerjs/
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.15.0-insiders.20260108-47c73e3",
|
|
46
|
+
"@univerjs/ui": "0.15.0-insiders.20260108-47c73e3",
|
|
47
|
+
"@univerjs/core": "0.15.0-insiders.20260108-47c73e3"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"typescript": "^5.9.3",
|
|
51
|
-
"vite": "^7.3.
|
|
51
|
+
"vite": "^7.3.1",
|
|
52
52
|
"vitest": "^4.0.16",
|
|
53
53
|
"@univerjs-infra/shared": "0.15.0"
|
|
54
54
|
},
|