@univerjs-pro/docs-exchange-client 0.12.3-nightly.202512060617 → 0.12.4
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';function _0x478f(_0x556dcb,_0x465216){_0x556dcb=_0x556dcb-0x99;var _0x4d6cf2=_0x4d6c();var _0x478fab=_0x4d6cf2[_0x556dcb];return _0x478fab;}var _0xe2fab8=_0x478f;(function(_0x3c9e22,_0x5c4ee9){var _0x429d05=_0x478f,_0x25792b=_0x3c9e22();while(!![]){try{var _0x292f1e=-parseInt(_0x429d05(0x9b))/0x1+parseInt(_0x429d05(0xc3))/0x2*(-parseInt(_0x429d05(0xb4))/0x3)+parseInt(_0x429d05(0xbe))/0x4*(-parseInt(_0x429d05(0xa5))/0x5)+-parseInt(_0x429d05(0xbb))/0x6*(parseInt(_0x429d05(0xc8))/0x7)+parseInt(_0x429d05(0xcb))/0x8+parseInt(_0x429d05(0xd3))/0x9+parseInt(_0x429d05(0xcc))/0xa;if(_0x292f1e===_0x5c4ee9)break;else _0x25792b['push'](_0x25792b['shift']());}catch(_0xf997bc){_0x25792b['push'](_0x25792b['shift']());}}}(_0x4d6c,0xcdaa6));Object['defineProperty'](exports,Symbol[_0xe2fab8(0xc0)],{'value':_0xe2fab8(0xbf)});const d=require('@univerjs-pro/exchange-client'),i=require('@univerjs/core'),a=require('@univerjs/ui'),p={'id':'exchange-client.operation.import-docx','type':i[_0xe2fab8(0xa4)]['OPERATION'],'handler':async _0x56eb0f=>(_0x56eb0f[_0xe2fab8(0xba)](d[_0xe2fab8(0xad)])[_0xe2fab8(0xc5)](),!0x0)},g={'id':_0xe2fab8(0xb6),'type':i[_0xe2fab8(0xa4)]['OPERATION'],'handler':async _0x4e8fd0=>(_0x4e8fd0[_0xe2fab8(0xba)](d[_0xe2fab8(0xad)])[_0xe2fab8(0xb1)](),!0x0)},I=_0xe2fab8(0xab),l={},h='docs-exchange-client.operation.exchange';function v(_0x192e12){var _0x573c85=_0xe2fab8;return{'id':h,'type':a[_0x573c85(0xce)][_0x573c85(0x9d)],'icon':_0x573c85(0xb9),'tooltip':_0x573c85(0xaa),'hidden$':a[_0x573c85(0xb5)](_0x192e12,i['UniverInstanceType'][_0x573c85(0xa2)])};}function O(){var _0x3dc418=_0xe2fab8;return{'id':p['id'],'type':a[_0x3dc418(0xce)][_0x3dc418(0xa1)],'title':'exchange.upload','icon':_0x3dc418(0x9f)};}function E(){var _0x37e29c=_0xe2fab8;return{'id':g['id'],'type':a[_0x37e29c(0xce)][_0x37e29c(0xa1)],'title':_0x37e29c(0xc9),'icon':_0x37e29c(0x99)};}const x={[a[_0xe2fab8(0xca)]['OTHERS']]:{[h]:{'order':0.3,'menuItemFactory':v,[p['id']]:{'order':0x0,'menuItemFactory':O},[g['id']]:{'order':0x1,'menuItemFactory':E}}}};var D=Object['getOwnPropertyDescriptor'],f=(_0x33a0f2,_0x524500,_0x4903f9,_0x5a45db)=>{for(var _0x167c74=_0x5a45db>0x1?void 0x0:_0x5a45db?D(_0x524500,_0x4903f9):_0x524500,_0x1dc9e6=_0x33a0f2['length']-0x1,_0x1eb25d;_0x1dc9e6>=0x0;_0x1dc9e6--)(_0x1eb25d=_0x33a0f2[_0x1dc9e6])&&(_0x167c74=_0x1eb25d(_0x167c74)||_0x167c74);return _0x167c74;},_=(_0x22ea52,_0x33bebf)=>(_0x3f9c48,_0x2df0f9)=>_0x33bebf(_0x3f9c48,_0x2df0f9,_0x22ea52);let u=class extends i[_0xe2fab8(0xbc)]{constructor(_0xf42785,_0xcdcf4f){var _0x27e702=_0xe2fab8;super(),this[_0x27e702(0xa8)]=_0xf42785,this[_0x27e702(0xa3)]=_0xcdcf4f,this[_0x27e702(0x9c)](),this['_initMenus']();}[_0xe2fab8(0x9c)](){var _0x4873ca=_0xe2fab8;[p,g][_0x4873ca(0xb0)](_0xe5a5b1=>{var _0x2e154c=_0x4873ca;this['disposeWithMe'](this['_commandService'][_0x2e154c(0xc4)](_0xe5a5b1));});}[_0xe2fab8(0xa9)](){var _0x2d1783=_0xe2fab8;this[_0x2d1783(0xa3)]['mergeMenu'](x);}};u=f([_(0x0,i[_0xe2fab8(0xac)]),_(0x1,a[_0xe2fab8(0xa6)])],u);var y=Object[_0xe2fab8(0xc6)],S=Object['getOwnPropertyDescriptor'],P=(_0xe53a5e,_0x32503b,_0x49b622)=>_0x32503b in _0xe53a5e?y(_0xe53a5e,_0x32503b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49b622}):_0xe53a5e[_0x32503b]=_0x49b622,T=(_0x39ff41,_0x16840b,_0x2a1241,_0x4a9e51)=>{var _0x3a0cee=_0xe2fab8;for(var _0x1edf3e=_0x4a9e51>0x1?void 0x0:_0x4a9e51?S(_0x16840b,_0x2a1241):_0x16840b,_0x5b1fef=_0x39ff41[_0x3a0cee(0xa7)]-0x1,_0x26a0b1;_0x5b1fef>=0x0;_0x5b1fef--)(_0x26a0b1=_0x39ff41[_0x5b1fef])&&(_0x1edf3e=_0x26a0b1(_0x1edf3e)||_0x1edf3e);return _0x1edf3e;},m=(_0x413464,_0x574a67)=>(_0x2b154a,_0xce53ef)=>_0x574a67(_0x2b154a,_0xce53ef,_0x413464),C=(_0x2fa1b2,_0xfce31,_0x4480e7)=>P(_0x2fa1b2,typeof _0xfce31!='symbol'?_0xfce31+'':_0xfce31,_0x4480e7);const U='DOC_EXCHANGE_CLIENT_PLUGIN';function _0x4d6c(){var _0x333bcc=['Injector','FolderIcon','DependentOn','BUTTON','UNIVER_DOC','_menuManagerService','CommandType','10ozNqrl','IMenuManagerService','length','_commandService','_initMenus','exchange.file','docs-exchange-client.config','ICommandService','IExchangeOperateService','menu','_configService','forEach','exportDOCXByUnitId','ImportDOCXOperation','type','96HkSjow','getMenuHiddenObservable','exchange-client.operation.export-docx','UniverExchangeClientPlugin','merge','DirectExportIcon','get','5149974tyQQVl','Disposable','add','3191060lJTpgO','Module','toStringTag','IConfigService','UniverDocsExchangeClientPlugin','21914pRwTcD','registerCommand','importDOCXToUnitId','defineProperty','UniverInstanceType','7vJhOvX','exchange.download','RibbonStartGroup','4791608TPEHUX','32745630qyYWIe','onReady','MenuItemType','_config','setConfig','_injector','ExportDOCXOperation','381339fzdHfQ','ExportIcon','Inject','268996YeslMh','_initCommands','SUBITEMS'];_0x4d6c=function(){return _0x333bcc;};return _0x4d6c();}exports[_0xe2fab8(0xc2)]=class extends i['Plugin']{constructor(_0x10516f=l,_0x3ae3c3,_0x12101e){var _0x1f17ee=_0xe2fab8;super(),this[_0x1f17ee(0xcf)]=_0x10516f,this['_injector']=_0x3ae3c3,this['_configService']=_0x12101e;const {menu:_0x181e6e,..._0x4cf6b8}=i[_0x1f17ee(0xb8)]({},l,this['_config']);_0x181e6e&&this[_0x1f17ee(0xaf)][_0x1f17ee(0xd0)](_0x1f17ee(0xae),_0x181e6e,{'merge':!0x0}),this['_configService'][_0x1f17ee(0xd0)](I,_0x4cf6b8);}['onStarting'](){var _0x2a081c=_0xe2fab8;[[u]]['forEach'](_0x40ad43=>this[_0x2a081c(0xd1)][_0x2a081c(0xbd)](_0x40ad43));}[_0xe2fab8(0xcd)](){var _0x3afbc0=_0xe2fab8;this[_0x3afbc0(0xd1)][_0x3afbc0(0xba)](u);}},C(exports[_0xe2fab8(0xc2)],'pluginName',U),C(exports[_0xe2fab8(0xc2)],_0xe2fab8(0xb3),i[_0xe2fab8(0xc7)][_0xe2fab8(0xa2)]),exports[_0xe2fab8(0xc2)]=T([i[_0xe2fab8(0xa0)](d[_0xe2fab8(0xb7)]),m(0x1,i[_0xe2fab8(0x9a)](i[_0xe2fab8(0x9e)])),m(0x2,i[_0xe2fab8(0xc1)])],exports[_0xe2fab8(0xc2)]),exports[_0xe2fab8(0xd2)]=g,exports[_0xe2fab8(0xb2)]=p;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function _0x489e(){var _0x499f24=['7CLDIxW','19kkYdGn','pluginName','exchange.download','exchange.file','onStarting','docs-exchange-client.operation.exchange','exportDOCXByUnitId','symbol','setConfig','24916548nYLzxK','type','82768GXZFqO','exchange-client.operation.import-docx','_menuManagerService','exchange.upload','onReady','1595312PNFCiT','forEach','6zrmMBO','_commandService','_initCommands','3422285pyxRMt','get','DOC_EXCHANGE_CLIENT_PLUGIN','defineProperty','SUBITEMS','registerCommand','FolderIcon','OTHERS','150240THnOqu','ExportIcon','5562920YkUuHc','add','length','menu','OPERATION','11ixugap','docs-exchange-client.config','501630QhlWNf','72QrFEne','_injector','_initMenus','_configService','BUTTON','_config'];_0x489e=function(){return _0x499f24;};return _0x489e();}var _0x3f819a=_0x26f2;(function(_0x26bc89,_0x13f419){var _0x738fe6=_0x26f2,_0x553d7e=_0x26bc89();while(!![]){try{var _0x48f1bc=-parseInt(_0x738fe6(0x1e8))/0x1*(parseInt(_0x738fe6(0x1f3))/0x2)+-parseInt(_0x738fe6(0x205))/0x3+-parseInt(_0x738fe6(0x1f8))/0x4+-parseInt(_0x738fe6(0x1fd))/0x5*(-parseInt(_0x738fe6(0x1fa))/0x6)+-parseInt(_0x738fe6(0x1e7))/0x7*(parseInt(_0x738fe6(0x207))/0x8)+-parseInt(_0x738fe6(0x1e1))/0x9*(parseInt(_0x738fe6(0x1e0))/0xa)+-parseInt(_0x738fe6(0x20c))/0xb*(-parseInt(_0x738fe6(0x1f1))/0xc);if(_0x48f1bc===_0x13f419)break;else _0x553d7e['push'](_0x553d7e['shift']());}catch(_0x598839){_0x553d7e['push'](_0x553d7e['shift']());}}}(_0x489e,0x68ba3));import{IExchangeOperateService as _0x3c34c5,UniverExchangeClientPlugin as _0x20f755}from'@univerjs-pro/exchange-client';import{CommandType as _0x19e7f6,UniverInstanceType as _0x16b882,Disposable as _0x2cc809,ICommandService as _0x54617e,DependentOn as _0x4b7a4e,Inject as _0x33ac05,Injector as _0x3635f3,IConfigService as _0x381477,Plugin as _0x4489dc,merge as _0x3d974b}from'@univerjs/core';function _0x26f2(_0x849862,_0x49bfee){_0x849862=_0x849862-0x1df;var _0x489e3a=_0x489e();var _0x26f201=_0x489e3a[_0x849862];return _0x26f201;}import{MenuItemType as _0x1cdd22,getMenuHiddenObservable as _0x1f739e,RibbonStartGroup as _0x34be22,IMenuManagerService as _0x4dc623}from'@univerjs/ui';const d={'id':_0x3f819a(0x1f4),'type':_0x19e7f6[_0x3f819a(0x20b)],'handler':async _0x1f8cf9=>(_0x1f8cf9['get'](_0x3c34c5)['importDOCXToUnitId'](),!0x0)},_={'id':'exchange-client.operation.export-docx','type':_0x19e7f6[_0x3f819a(0x20b)],'handler':async _0x5df37b=>(_0x5df37b[_0x3f819a(0x1fe)](_0x3c34c5)[_0x3f819a(0x1ee)](),!0x0)},b=_0x3f819a(0x1df),m={},C=_0x3f819a(0x1ed);function X(_0x1dee23){var _0x363856=_0x3f819a;return{'id':C,'type':_0x1cdd22[_0x363856(0x201)],'icon':'DirectExportIcon','tooltip':_0x363856(0x1eb),'hidden$':_0x1f739e(_0x1dee23,_0x16b882['UNIVER_DOC'])};}function F(){var _0x5a887b=_0x3f819a;return{'id':d['id'],'type':_0x1cdd22[_0x5a887b(0x1e5)],'title':_0x5a887b(0x1f6),'icon':_0x5a887b(0x203)};}function G(){var _0x1e12fd=_0x3f819a;return{'id':_['id'],'type':_0x1cdd22[_0x1e12fd(0x1e5)],'title':_0x1e12fd(0x1ea),'icon':_0x1e12fd(0x206)};}const R={[_0x34be22[_0x3f819a(0x204)]]:{[C]:{'order':0.3,'menuItemFactory':X,[d['id']]:{'order':0x0,'menuItemFactory':F},[_['id']]:{'order':0x1,'menuItemFactory':G}}}};var A=Object['getOwnPropertyDescriptor'],j=(_0x225ed6,_0x49891,_0x3ecee6,_0x2a4baf)=>{for(var _0x3397f6=_0x2a4baf>0x1?void 0x0:_0x2a4baf?A(_0x49891,_0x3ecee6):_0x49891,_0x2b5438=_0x225ed6['length']-0x1,_0x5437e1;_0x2b5438>=0x0;_0x2b5438--)(_0x5437e1=_0x225ed6[_0x2b5438])&&(_0x3397f6=_0x5437e1(_0x3397f6)||_0x3397f6);return _0x3397f6;},u=(_0x358faa,_0x50ccd9)=>(_0x334633,_0x212e7a)=>_0x50ccd9(_0x334633,_0x212e7a,_0x358faa);let a=class extends _0x2cc809{constructor(_0x4d9e05,_0x10fea6){var _0x4cfb2e=_0x3f819a;super(),this['_commandService']=_0x4d9e05,this['_menuManagerService']=_0x10fea6,this[_0x4cfb2e(0x1fc)](),this[_0x4cfb2e(0x1e3)]();}[_0x3f819a(0x1fc)](){var _0x24a771=_0x3f819a;[d,_][_0x24a771(0x1f9)](_0x231d53=>{var _0x1a10d3=_0x24a771;this['disposeWithMe'](this[_0x1a10d3(0x1fb)][_0x1a10d3(0x202)](_0x231d53));});}[_0x3f819a(0x1e3)](){var _0x47b806=_0x3f819a;this[_0x47b806(0x1f5)]['mergeMenu'](R);}};a=j([u(0x0,_0x54617e),u(0x1,_0x4dc623)],a);var w=Object[_0x3f819a(0x200)],H=Object['getOwnPropertyDescriptor'],L=(_0x48d098,_0x3040d4,_0x44fc85)=>_0x3040d4 in _0x48d098?w(_0x48d098,_0x3040d4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x44fc85}):_0x48d098[_0x3040d4]=_0x44fc85,B=(_0x18b825,_0x2b8715,_0x43b5d6,_0x2ef92c)=>{var _0x253357=_0x3f819a;for(var _0xfb7160=_0x2ef92c>0x1?void 0x0:_0x2ef92c?H(_0x2b8715,_0x43b5d6):_0x2b8715,_0x39a783=_0x18b825[_0x253357(0x209)]-0x1,_0x4072f5;_0x39a783>=0x0;_0x39a783--)(_0x4072f5=_0x18b825[_0x39a783])&&(_0xfb7160=_0x4072f5(_0xfb7160)||_0xfb7160);return _0xfb7160;},g=(_0x708d65,_0x3abc8f)=>(_0xe6f044,_0x182345)=>_0x3abc8f(_0xe6f044,_0x182345,_0x708d65),O=(_0x2e4263,_0x4b05f6,_0x13df77)=>L(_0x2e4263,typeof _0x4b05f6!=_0x3f819a(0x1ef)?_0x4b05f6+'':_0x4b05f6,_0x13df77);const $=_0x3f819a(0x1ff);let s=class extends _0x4489dc{constructor(_0x1faaee=m,_0x5b4719,_0x25bdc9){var _0x5a6eb7=_0x3f819a;super(),this[_0x5a6eb7(0x1e6)]=_0x1faaee,this[_0x5a6eb7(0x1e2)]=_0x5b4719,this['_configService']=_0x25bdc9;const {menu:_0x9ab2f4,..._0x226f1b}=_0x3d974b({},m,this['_config']);_0x9ab2f4&&this[_0x5a6eb7(0x1e4)][_0x5a6eb7(0x1f0)](_0x5a6eb7(0x20a),_0x9ab2f4,{'merge':!0x0}),this[_0x5a6eb7(0x1e4)]['setConfig'](b,_0x226f1b);}[_0x3f819a(0x1ec)](){var _0x4d2329=_0x3f819a;[[a]]['forEach'](_0x9e8702=>this[_0x4d2329(0x1e2)][_0x4d2329(0x208)](_0x9e8702));}[_0x3f819a(0x1f7)](){var _0x6a1d95=_0x3f819a;this[_0x6a1d95(0x1e2)][_0x6a1d95(0x1fe)](a);}};O(s,_0x3f819a(0x1e9),$),O(s,_0x3f819a(0x1f2),_0x16b882['UNIVER_DOC']),s=B([_0x4b7a4e(_0x20f755),g(0x1,_0x33ac05(_0x3635f3)),g(0x2,_0x381477)],s);export{_ as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function _0x489e(){var _0x499f24=['7CLDIxW','19kkYdGn','pluginName','exchange.download','exchange.file','onStarting','docs-exchange-client.operation.exchange','exportDOCXByUnitId','symbol','setConfig','24916548nYLzxK','type','82768GXZFqO','exchange-client.operation.import-docx','_menuManagerService','exchange.upload','onReady','1595312PNFCiT','forEach','6zrmMBO','_commandService','_initCommands','3422285pyxRMt','get','DOC_EXCHANGE_CLIENT_PLUGIN','defineProperty','SUBITEMS','registerCommand','FolderIcon','OTHERS','150240THnOqu','ExportIcon','5562920YkUuHc','add','length','menu','OPERATION','11ixugap','docs-exchange-client.config','501630QhlWNf','72QrFEne','_injector','_initMenus','_configService','BUTTON','_config'];_0x489e=function(){return _0x499f24;};return _0x489e();}var _0x3f819a=_0x26f2;(function(_0x26bc89,_0x13f419){var _0x738fe6=_0x26f2,_0x553d7e=_0x26bc89();while(!![]){try{var _0x48f1bc=-parseInt(_0x738fe6(0x1e8))/0x1*(parseInt(_0x738fe6(0x1f3))/0x2)+-parseInt(_0x738fe6(0x205))/0x3+-parseInt(_0x738fe6(0x1f8))/0x4+-parseInt(_0x738fe6(0x1fd))/0x5*(-parseInt(_0x738fe6(0x1fa))/0x6)+-parseInt(_0x738fe6(0x1e7))/0x7*(parseInt(_0x738fe6(0x207))/0x8)+-parseInt(_0x738fe6(0x1e1))/0x9*(parseInt(_0x738fe6(0x1e0))/0xa)+-parseInt(_0x738fe6(0x20c))/0xb*(-parseInt(_0x738fe6(0x1f1))/0xc);if(_0x48f1bc===_0x13f419)break;else _0x553d7e['push'](_0x553d7e['shift']());}catch(_0x598839){_0x553d7e['push'](_0x553d7e['shift']());}}}(_0x489e,0x68ba3));import{IExchangeOperateService as _0x3c34c5,UniverExchangeClientPlugin as _0x20f755}from'@univerjs-pro/exchange-client';import{CommandType as _0x19e7f6,UniverInstanceType as _0x16b882,Disposable as _0x2cc809,ICommandService as _0x54617e,DependentOn as _0x4b7a4e,Inject as _0x33ac05,Injector as _0x3635f3,IConfigService as _0x381477,Plugin as _0x4489dc,merge as _0x3d974b}from'@univerjs/core';function _0x26f2(_0x849862,_0x49bfee){_0x849862=_0x849862-0x1df;var _0x489e3a=_0x489e();var _0x26f201=_0x489e3a[_0x849862];return _0x26f201;}import{MenuItemType as _0x1cdd22,getMenuHiddenObservable as _0x1f739e,RibbonStartGroup as _0x34be22,IMenuManagerService as _0x4dc623}from'@univerjs/ui';const d={'id':_0x3f819a(0x1f4),'type':_0x19e7f6[_0x3f819a(0x20b)],'handler':async _0x1f8cf9=>(_0x1f8cf9['get'](_0x3c34c5)['importDOCXToUnitId'](),!0x0)},_={'id':'exchange-client.operation.export-docx','type':_0x19e7f6[_0x3f819a(0x20b)],'handler':async _0x5df37b=>(_0x5df37b[_0x3f819a(0x1fe)](_0x3c34c5)[_0x3f819a(0x1ee)](),!0x0)},b=_0x3f819a(0x1df),m={},C=_0x3f819a(0x1ed);function X(_0x1dee23){var _0x363856=_0x3f819a;return{'id':C,'type':_0x1cdd22[_0x363856(0x201)],'icon':'DirectExportIcon','tooltip':_0x363856(0x1eb),'hidden$':_0x1f739e(_0x1dee23,_0x16b882['UNIVER_DOC'])};}function F(){var _0x5a887b=_0x3f819a;return{'id':d['id'],'type':_0x1cdd22[_0x5a887b(0x1e5)],'title':_0x5a887b(0x1f6),'icon':_0x5a887b(0x203)};}function G(){var _0x1e12fd=_0x3f819a;return{'id':_['id'],'type':_0x1cdd22[_0x1e12fd(0x1e5)],'title':_0x1e12fd(0x1ea),'icon':_0x1e12fd(0x206)};}const R={[_0x34be22[_0x3f819a(0x204)]]:{[C]:{'order':0.3,'menuItemFactory':X,[d['id']]:{'order':0x0,'menuItemFactory':F},[_['id']]:{'order':0x1,'menuItemFactory':G}}}};var A=Object['getOwnPropertyDescriptor'],j=(_0x225ed6,_0x49891,_0x3ecee6,_0x2a4baf)=>{for(var _0x3397f6=_0x2a4baf>0x1?void 0x0:_0x2a4baf?A(_0x49891,_0x3ecee6):_0x49891,_0x2b5438=_0x225ed6['length']-0x1,_0x5437e1;_0x2b5438>=0x0;_0x2b5438--)(_0x5437e1=_0x225ed6[_0x2b5438])&&(_0x3397f6=_0x5437e1(_0x3397f6)||_0x3397f6);return _0x3397f6;},u=(_0x358faa,_0x50ccd9)=>(_0x334633,_0x212e7a)=>_0x50ccd9(_0x334633,_0x212e7a,_0x358faa);let a=class extends _0x2cc809{constructor(_0x4d9e05,_0x10fea6){var _0x4cfb2e=_0x3f819a;super(),this['_commandService']=_0x4d9e05,this['_menuManagerService']=_0x10fea6,this[_0x4cfb2e(0x1fc)](),this[_0x4cfb2e(0x1e3)]();}[_0x3f819a(0x1fc)](){var _0x24a771=_0x3f819a;[d,_][_0x24a771(0x1f9)](_0x231d53=>{var _0x1a10d3=_0x24a771;this['disposeWithMe'](this[_0x1a10d3(0x1fb)][_0x1a10d3(0x202)](_0x231d53));});}[_0x3f819a(0x1e3)](){var _0x47b806=_0x3f819a;this[_0x47b806(0x1f5)]['mergeMenu'](R);}};a=j([u(0x0,_0x54617e),u(0x1,_0x4dc623)],a);var w=Object[_0x3f819a(0x200)],H=Object['getOwnPropertyDescriptor'],L=(_0x48d098,_0x3040d4,_0x44fc85)=>_0x3040d4 in _0x48d098?w(_0x48d098,_0x3040d4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x44fc85}):_0x48d098[_0x3040d4]=_0x44fc85,B=(_0x18b825,_0x2b8715,_0x43b5d6,_0x2ef92c)=>{var _0x253357=_0x3f819a;for(var _0xfb7160=_0x2ef92c>0x1?void 0x0:_0x2ef92c?H(_0x2b8715,_0x43b5d6):_0x2b8715,_0x39a783=_0x18b825[_0x253357(0x209)]-0x1,_0x4072f5;_0x39a783>=0x0;_0x39a783--)(_0x4072f5=_0x18b825[_0x39a783])&&(_0xfb7160=_0x4072f5(_0xfb7160)||_0xfb7160);return _0xfb7160;},g=(_0x708d65,_0x3abc8f)=>(_0xe6f044,_0x182345)=>_0x3abc8f(_0xe6f044,_0x182345,_0x708d65),O=(_0x2e4263,_0x4b05f6,_0x13df77)=>L(_0x2e4263,typeof _0x4b05f6!=_0x3f819a(0x1ef)?_0x4b05f6+'':_0x4b05f6,_0x13df77);const $=_0x3f819a(0x1ff);let s=class extends _0x4489dc{constructor(_0x1faaee=m,_0x5b4719,_0x25bdc9){var _0x5a6eb7=_0x3f819a;super(),this[_0x5a6eb7(0x1e6)]=_0x1faaee,this[_0x5a6eb7(0x1e2)]=_0x5b4719,this['_configService']=_0x25bdc9;const {menu:_0x9ab2f4,..._0x226f1b}=_0x3d974b({},m,this['_config']);_0x9ab2f4&&this[_0x5a6eb7(0x1e4)][_0x5a6eb7(0x1f0)](_0x5a6eb7(0x20a),_0x9ab2f4,{'merge':!0x0}),this[_0x5a6eb7(0x1e4)]['setConfig'](b,_0x226f1b);}[_0x3f819a(0x1ec)](){var _0x4d2329=_0x3f819a;[[a]]['forEach'](_0x9e8702=>this[_0x4d2329(0x1e2)][_0x4d2329(0x208)](_0x9e8702));}[_0x3f819a(0x1f7)](){var _0x6a1d95=_0x3f819a;this[_0x6a1d95(0x1e2)][_0x6a1d95(0x1fe)](a);}};O(s,_0x3f819a(0x1e9),$),O(s,_0x3f819a(0x1f2),_0x16b882['UNIVER_DOC']),s=B([_0x4b7a4e(_0x20f755),g(0x1,_0x33ac05(_0x3635f3)),g(0x2,_0x381477)],s);export{_ as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x34e5(_0x3f30df,_0x45565f){_0x3f30df=_0x3f30df-0x183;var _0x2d6881=_0x2d68();var _0x34e563=_0x2d6881[_0x3f30df];return _0x34e563;}(function(_0x54cf5b,_0x4d4427){var _0x45a715=_0x34e5,_0x11bd09=_0x54cf5b();while(!![]){try{var _0x59defe=-parseInt(_0x45a715(0x1c2))/0x1+parseInt(_0x45a715(0x18b))/0x2*(parseInt(_0x45a715(0x1c3))/0x3)+-parseInt(_0x45a715(0x1c5))/0x4+-parseInt(_0x45a715(0x1ba))/0x5+-parseInt(_0x45a715(0x192))/0x6*(parseInt(_0x45a715(0x1a4))/0x7)+parseInt(_0x45a715(0x189))/0x8*(parseInt(_0x45a715(0x188))/0x9)+parseInt(_0x45a715(0x1a6))/0xa;if(_0x59defe===_0x4d4427)break;else _0x11bd09['push'](_0x11bd09['shift']());}catch(_0x32a70c){_0x11bd09['push'](_0x11bd09['shift']());}}}(_0x2d68,0xa86b4),function(_0x26c82d,_0x1f39c1){var _0x37b395=_0x34e5;typeof exports==_0x37b395(0x19e)&&typeof module<'u'?_0x1f39c1(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui')):typeof define==_0x37b395(0x1ad)&&define['amd']?define([_0x37b395(0x1b9),_0x37b395(0x1bb),_0x37b395(0x1b8),_0x37b395(0x197)],_0x1f39c1):(_0x26c82d=typeof globalThis<'u'?globalThis:_0x26c82d||self,_0x1f39c1(_0x26c82d[_0x37b395(0x1af)]={},_0x26c82d[_0x37b395(0x19c)],_0x26c82d[_0x37b395(0x19f)],_0x26c82d[_0x37b395(0x18f)]));}(this,function(_0x412b1f,_0x286958,_0x204cf3,_0x50e5b7){'use strict';var _0x3648cf=_0x34e5;const _0x11e85d={'id':'exchange-client.operation.import-docx','type':_0x204cf3[_0x3648cf(0x1aa)]['OPERATION'],'handler':async _0x1b45e0=>(_0x1b45e0[_0x3648cf(0x1a1)](_0x286958[_0x3648cf(0x186)])[_0x3648cf(0x19b)](),!0x0)},_0x48056b={'id':_0x3648cf(0x19a),'type':_0x204cf3['CommandType']['OPERATION'],'handler':async _0x19879f=>(_0x19879f[_0x3648cf(0x1a1)](_0x286958['IExchangeOperateService'])[_0x3648cf(0x190)](),!0x0)},_0x31d0a1=_0x3648cf(0x1ac),_0x5654c9={},_0x2b24bb='docs-exchange-client.operation.exchange';function _0x2a40f6(_0x1a6af9){var _0x5d62b5=_0x3648cf;return{'id':_0x2b24bb,'type':_0x50e5b7[_0x5d62b5(0x1b1)][_0x5d62b5(0x18a)],'icon':_0x5d62b5(0x18c),'tooltip':'exchange.file','hidden$':_0x50e5b7[_0x5d62b5(0x1b0)](_0x1a6af9,_0x204cf3[_0x5d62b5(0x1bd)][_0x5d62b5(0x1a8)])};}function _0x6a6107(){return{'id':_0x11e85d['id'],'type':_0x50e5b7['MenuItemType']['BUTTON'],'title':'exchange.upload','icon':'FolderIcon'};}function _0x281209(){var _0x20dc49=_0x3648cf;return{'id':_0x48056b['id'],'type':_0x50e5b7[_0x20dc49(0x1b1)][_0x20dc49(0x194)],'title':_0x20dc49(0x1a2),'icon':'ExportIcon'};}const _0x281cd5={[_0x50e5b7[_0x3648cf(0x191)][_0x3648cf(0x1a5)]]:{[_0x2b24bb]:{'order':0.3,'menuItemFactory':_0x2a40f6,[_0x11e85d['id']]:{'order':0x0,'menuItemFactory':_0x6a6107},[_0x48056b['id']]:{'order':0x1,'menuItemFactory':_0x281209}}}};var _0x3e3138=Object[_0x3648cf(0x196)],_0x38a7b0=(_0x6e3b27,_0x37e7aa,_0x58e34b,_0x537325)=>{for(var _0x20bcaf=_0x537325>0x1?void 0x0:_0x537325?_0x3e3138(_0x37e7aa,_0x58e34b):_0x37e7aa,_0x30ce5c=_0x6e3b27['length']-0x1,_0x36022e;_0x30ce5c>=0x0;_0x30ce5c--)(_0x36022e=_0x6e3b27[_0x30ce5c])&&(_0x20bcaf=_0x36022e(_0x20bcaf)||_0x20bcaf);return _0x20bcaf;},_0x2b49ce=(_0x1f6629,_0x481a91)=>(_0x1c1250,_0x5858ae)=>_0x481a91(_0x1c1250,_0x5858ae,_0x1f6629);let _0x1647d6=class extends _0x204cf3[_0x3648cf(0x198)]{constructor(_0x36fd6a,_0x3677f8){var _0x229b8e=_0x3648cf;super(),this['_commandService']=_0x36fd6a,this[_0x229b8e(0x1c6)]=_0x3677f8,this[_0x229b8e(0x1a0)](),this[_0x229b8e(0x1b2)]();}[_0x3648cf(0x1a0)](){var _0x47f351=_0x3648cf;[_0x11e85d,_0x48056b][_0x47f351(0x1c0)](_0x46a7bb=>{var _0x5bc53d=_0x47f351;this[_0x5bc53d(0x199)](this['_commandService']['registerCommand'](_0x46a7bb));});}[_0x3648cf(0x1b2)](){var _0x55d0ff=_0x3648cf;this[_0x55d0ff(0x1c6)][_0x55d0ff(0x18e)](_0x281cd5);}};_0x1647d6=_0x38a7b0([_0x2b49ce(0x0,_0x204cf3[_0x3648cf(0x1a3)]),_0x2b49ce(0x1,_0x50e5b7[_0x3648cf(0x1ae)])],_0x1647d6);var _0x2b98d2=Object[_0x3648cf(0x1a9)],_0x3d671f=Object[_0x3648cf(0x196)],_0x5527b6=(_0x2993d0,_0x6cdab,_0x43e1d2)=>_0x6cdab in _0x2993d0?_0x2b98d2(_0x2993d0,_0x6cdab,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x43e1d2}):_0x2993d0[_0x6cdab]=_0x43e1d2,_0x3911e5=(_0x532e5f,_0x156f5d,_0x1f27ed,_0x361910)=>{var _0x1bb374=_0x3648cf;for(var _0x131625=_0x361910>0x1?void 0x0:_0x361910?_0x3d671f(_0x156f5d,_0x1f27ed):_0x156f5d,_0x56e51a=_0x532e5f[_0x1bb374(0x1b3)]-0x1,_0x32b494;_0x56e51a>=0x0;_0x56e51a--)(_0x32b494=_0x532e5f[_0x56e51a])&&(_0x131625=_0x32b494(_0x131625)||_0x131625);return _0x131625;},_0x2147e7=(_0x4ef157,_0x436cfc)=>(_0xee53d4,_0xd4be5e)=>_0x436cfc(_0xee53d4,_0xd4be5e,_0x4ef157),_0x394107=(_0x443201,_0x44d935,_0x4754fd)=>_0x5527b6(_0x443201,typeof _0x44d935!=_0x3648cf(0x1bf)?_0x44d935+'':_0x44d935,_0x4754fd);const _0x476876='DOC_EXCHANGE_CLIENT_PLUGIN';_0x412b1f[_0x3648cf(0x1a7)]=class extends _0x204cf3[_0x3648cf(0x1c1)]{constructor(_0x5d19f6=_0x5654c9,_0x1e9f5f,_0x2f2622){var _0x114506=_0x3648cf;super(),this[_0x114506(0x1b4)]=_0x5d19f6,this[_0x114506(0x195)]=_0x1e9f5f,this[_0x114506(0x1b6)]=_0x2f2622;const {menu:_0x25ece4,..._0x33eaf9}=_0x204cf3['merge']({},_0x5654c9,this[_0x114506(0x1b4)]);_0x25ece4&&this[_0x114506(0x1b6)][_0x114506(0x1be)](_0x114506(0x1bc),_0x25ece4,{'merge':!0x0}),this[_0x114506(0x1b6)][_0x114506(0x1be)](_0x31d0a1,_0x33eaf9);}[_0x3648cf(0x184)](){var _0x392a76=_0x3648cf;[[_0x1647d6]][_0x392a76(0x1c0)](_0x268ba8=>this['_injector'][_0x392a76(0x18d)](_0x268ba8));}['onReady'](){var _0x2f0a07=_0x3648cf;this[_0x2f0a07(0x195)][_0x2f0a07(0x1a1)](_0x1647d6);}},_0x394107(_0x412b1f[_0x3648cf(0x1a7)],_0x3648cf(0x19d),_0x476876),_0x394107(_0x412b1f['UniverDocsExchangeClientPlugin'],_0x3648cf(0x1c4),_0x204cf3[_0x3648cf(0x1bd)][_0x3648cf(0x1a8)]),_0x412b1f[_0x3648cf(0x1a7)]=_0x3911e5([_0x204cf3[_0x3648cf(0x185)](_0x286958[_0x3648cf(0x1ab)]),_0x2147e7(0x1,_0x204cf3[_0x3648cf(0x183)](_0x204cf3['Injector'])),_0x2147e7(0x2,_0x204cf3[_0x3648cf(0x1b5)])],_0x412b1f[_0x3648cf(0x1a7)]),_0x412b1f['ExportDOCXOperation']=_0x48056b,_0x412b1f[_0x3648cf(0x1b7)]=_0x11e85d,Object[_0x3648cf(0x1a9)](_0x412b1f,Symbol[_0x3648cf(0x187)],{'value':_0x3648cf(0x193)});}));function _0x2d68(){var _0x468deb=['873TTMkPq','86872EZLBkV','SUBITEMS','3214ROOcIu','DirectExportIcon','add','mergeMenu','UniverUi','exportDOCXByUnitId','RibbonStartGroup','138tnFCWl','Module','BUTTON','_injector','getOwnPropertyDescriptor','@univerjs/ui','Disposable','disposeWithMe','exchange-client.operation.export-docx','importDOCXToUnitId','UniverProExchangeClient','pluginName','object','UniverCore','_initCommands','get','exchange.download','ICommandService','324968wgiqoV','OTHERS','29185560Ekxvwh','UniverDocsExchangeClientPlugin','UNIVER_DOC','defineProperty','CommandType','UniverExchangeClientPlugin','docs-exchange-client.config','function','IMenuManagerService','UniverProDocsExchangeClient','getMenuHiddenObservable','MenuItemType','_initMenus','length','_config','IConfigService','_configService','ImportDOCXOperation','@univerjs/core','exports','2920940elELwA','@univerjs-pro/exchange-client','menu','UniverInstanceType','setConfig','symbol','forEach','Plugin','816520XIYEqz','798IiJtPY','type','4964148SZFCOH','_menuManagerService','Inject','onStarting','DependentOn','IExchangeOperateService','toStringTag'];_0x2d68=function(){return _0x468deb;};return _0x2d68();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/docs-exchange-client",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.4",
|
|
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.12.4",
|
|
46
|
+
"@univerjs/ui": "0.12.4",
|
|
47
|
+
"@univerjs-pro/exchange-client": "0.12.4"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"typescript": "^5.9.3",
|
|
51
51
|
"vite": "^7.2.6",
|
|
52
52
|
"vitest": "^4.0.15",
|
|
53
|
-
"@univerjs-infra/shared": "0.12.
|
|
53
|
+
"@univerjs-infra/shared": "0.12.4"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"test": "vitest run",
|