@univerjs-pro/docs-exchange-client 0.5.0 → 0.5.1-nightly.202411301606
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
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x1b62f9=_0x3e55;(function(_0x540ea1,_0x15dc69){var _0x37bc60=_0x3e55,_0x52e158=_0x540ea1();while(!![]){try{var _0x1a6ee3=-parseInt(_0x37bc60(0xcf))/0x1*(parseInt(_0x37bc60(0xeb))/0x2)+-parseInt(_0x37bc60(0xe6))/0x3*(parseInt(_0x37bc60(0xfc))/0x4)+-parseInt(_0x37bc60(0xc4))/0x5*(parseInt(_0x37bc60(0x100))/0x6)+parseInt(_0x37bc60(0xed))/0x7*(parseInt(_0x37bc60(0xca))/0x8)+parseInt(_0x37bc60(0xd3))/0x9+parseInt(_0x37bc60(0x101))/0xa*(parseInt(_0x37bc60(0xe0))/0xb)+parseInt(_0x37bc60(0xfb))/0xc*(parseInt(_0x37bc60(0xe1))/0xd);if(_0x1a6ee3===_0x15dc69)break;else _0x52e158['push'](_0x52e158['shift']());}catch(_0x3c3086){_0x52e158['push'](_0x52e158['shift']());}}}(_0x3280,0xcabb2));Object['defineProperty'](exports,Symbol[_0x1b62f9(0xea)],{'value':'Module'});function _0x3280(){var _0x10ec72=['8090mLPSgB','Injector','UniverInstanceType','DirectExportSingle','1321520epwQMt','UniverExchangeClientPlugin','exportDOCXByUnitId','forEach','FILE','Disposable','7130888HCPpCd','symbol','CommandType','docs-exchange-client.operation.exchange','get','175823OeEJmt','exchange-client.operation.import-docx','ImportDOCXOperation','setConfig','8859609OpvgvK','onStarting','getOwnPropertyDescriptor','RibbonStartGroup','_menuManagerService','@univerjs/core','_config','@univerjs/ui','type','IMenuManagerService','OPERATION','mergeMenu','DependentOn','3707mTUjOV','432549HBRrOK','_commandService','DOC_EXCHANGE_CLIENT_PLUGIN','UNIVER_DOC','FolderSingle','141FAMxxN','_initCommands','@univerjs-pro/exchange-client','_initMenus','toStringTag','14kIMKwN','disposeWithMe','7OikTzC','registerCommand','length','defineProperty','IExchangeOperateService','MenuItemType','Inject','add','onReady','_configService','_injector','menu','importDOCXToUnitId','ExportSingle','732XppBKq','67692uMIahp','BUTTON','exchange-client.operation.export-docx','UniverDocsExchangeClientPlugin','30ZLsFFT'];_0x3280=function(){return _0x10ec72;};return _0x3280();}const g=require(_0x1b62f9(0xe8)),o=require(_0x1b62f9(0xd8)),s=require(_0x1b62f9(0xda)),v='docs-exchange-client.config',I={},u={'id':_0x1b62f9(0xd0),'type':o['CommandType'][_0x1b62f9(0xdd)],'handler':async _0x4c2817=>(_0x4c2817[_0x1b62f9(0xce)](g[_0x1b62f9(0xf1)])[_0x1b62f9(0xf9)](),!0x0)},l={'id':_0x1b62f9(0xfe),'type':o[_0x1b62f9(0xcc)][_0x1b62f9(0xdd)],'handler':async _0xa0c7d9=>(_0xa0c7d9[_0x1b62f9(0xce)](g[_0x1b62f9(0xf1)])[_0x1b62f9(0xc6)](),!0x0)},m=_0x1b62f9(0xcd);function O(_0x338e39){var _0x29f2d4=_0x1b62f9;return{'id':m,'type':s[_0x29f2d4(0xf2)]['SUBITEMS'],'icon':_0x29f2d4(0xc3),'tooltip':'exchange.file','hidden$':s['getMenuHiddenObservable'](_0x338e39,o['UniverInstanceType'][_0x29f2d4(0xe4)])};}function E(){var _0x22482e=_0x1b62f9;return{'id':u['id'],'type':s[_0x22482e(0xf2)][_0x22482e(0xfd)],'title':'exchange.upload','icon':_0x22482e(0xe5)};}function f(){var _0x132e66=_0x1b62f9;return{'id':l['id'],'type':s[_0x132e66(0xf2)][_0x132e66(0xfd)],'title':'exchange.download','icon':_0x132e66(0xfa)};}const x={[s[_0x1b62f9(0xd6)][_0x1b62f9(0xc8)]]:{[m]:{'order':0x4,'menuItemFactory':O,[u['id']]:{'order':0x0,'menuItemFactory':E},[l['id']]:{'order':0x1,'menuItemFactory':f}}}};var D=Object['defineProperty'],S=Object[_0x1b62f9(0xd5)],P=(_0xc0b25d,_0x14da91,_0x27c72f,_0x37baed)=>{var _0x3e2d76=_0x1b62f9;for(var _0x4178ee=_0x37baed>0x1?void 0x0:_0x37baed?S(_0x14da91,_0x27c72f):_0x14da91,_0x3291cc=_0xc0b25d[_0x3e2d76(0xef)]-0x1,_0xb23f2;_0x3291cc>=0x0;_0x3291cc--)(_0xb23f2=_0xc0b25d[_0x3291cc])&&(_0x4178ee=(_0x37baed?_0xb23f2(_0x14da91,_0x27c72f,_0x4178ee):_0xb23f2(_0x4178ee))||_0x4178ee);return _0x37baed&&_0x4178ee&&D(_0x14da91,_0x27c72f,_0x4178ee),_0x4178ee;},d=(_0x403acd,_0x3c3497)=>(_0x3af94a,_0x4e0b22)=>_0x3c3497(_0x3af94a,_0x4e0b22,_0x403acd);let p=class extends o[_0x1b62f9(0xc9)]{constructor(_0xb60f2c,_0x3b6727){var _0x5349c4=_0x1b62f9;super(),this[_0x5349c4(0xe2)]=_0xb60f2c,this[_0x5349c4(0xd7)]=_0x3b6727,this[_0x5349c4(0xe7)](),this['_initMenus']();}['_initCommands'](){var _0x299335=_0x1b62f9;[u,l][_0x299335(0xc7)](_0x1657e3=>{var _0x4eaae3=_0x299335;this[_0x4eaae3(0xec)](this[_0x4eaae3(0xe2)][_0x4eaae3(0xee)](_0x1657e3));});}[_0x1b62f9(0xe9)](){var _0x23056f=_0x1b62f9;this['_menuManagerService'][_0x23056f(0xde)](x);}};p=P([d(0x0,o['ICommandService']),d(0x1,s[_0x1b62f9(0xdc)])],p);var h=Object[_0x1b62f9(0xf0)],y=Object['getOwnPropertyDescriptor'],T=(_0x23852e,_0x32bed9,_0x27b465)=>_0x32bed9 in _0x23852e?h(_0x23852e,_0x32bed9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x27b465}):_0x23852e[_0x32bed9]=_0x27b465,U=(_0x39a46c,_0x23fbdc,_0x4062c6,_0x506bec)=>{var _0x2c478d=_0x1b62f9;for(var _0x5b997d=_0x506bec>0x1?void 0x0:_0x506bec?y(_0x23fbdc,_0x4062c6):_0x23fbdc,_0x26dee1=_0x39a46c[_0x2c478d(0xef)]-0x1,_0xf8156e;_0x26dee1>=0x0;_0x26dee1--)(_0xf8156e=_0x39a46c[_0x26dee1])&&(_0x5b997d=(_0x506bec?_0xf8156e(_0x23fbdc,_0x4062c6,_0x5b997d):_0xf8156e(_0x5b997d))||_0x5b997d);return _0x506bec&&_0x5b997d&&h(_0x23fbdc,_0x4062c6,_0x5b997d),_0x5b997d;},_=(_0x1dc55d,_0x4d8612)=>(_0xe4a9f9,_0x43472e)=>_0x4d8612(_0xe4a9f9,_0x43472e,_0x1dc55d),C=(_0x113b8d,_0x19ddd0,_0x262d80)=>T(_0x113b8d,typeof _0x19ddd0!=_0x1b62f9(0xcb)?_0x19ddd0+'':_0x19ddd0,_0x262d80);const N=_0x1b62f9(0xe3);function _0x3e55(_0x259790,_0xb94bf2){var _0x3280d9=_0x3280();return _0x3e55=function(_0x3e5562,_0x14f195){_0x3e5562=_0x3e5562-0xc2;var _0x4e4c24=_0x3280d9[_0x3e5562];return _0x4e4c24;},_0x3e55(_0x259790,_0xb94bf2);}exports[_0x1b62f9(0xff)]=class extends o['Plugin']{constructor(_0x5ee220=I,_0x341fd0,_0xaafaaa){var _0xcf2b7c=_0x1b62f9;super(),this['_config']=_0x5ee220,this[_0xcf2b7c(0xf7)]=_0x341fd0,this[_0xcf2b7c(0xf6)]=_0xaafaaa;const {menu:_0x5cfc69,..._0x45372d}=this[_0xcf2b7c(0xd9)];_0x5cfc69&&this[_0xcf2b7c(0xf6)]['setConfig'](_0xcf2b7c(0xf8),_0x5cfc69,{'merge':!0x0}),this['_configService'][_0xcf2b7c(0xd2)](v,_0x45372d);}[_0x1b62f9(0xd4)](){var _0x36bd21=_0x1b62f9;[[p]][_0x36bd21(0xc7)](_0x1880ec=>this[_0x36bd21(0xf7)][_0x36bd21(0xf4)](_0x1880ec));}[_0x1b62f9(0xf5)](){var _0x2d2bb4=_0x1b62f9;this[_0x2d2bb4(0xf7)]['get'](p);}},C(exports[_0x1b62f9(0xff)],'pluginName',N),C(exports[_0x1b62f9(0xff)],_0x1b62f9(0xdb),o[_0x1b62f9(0xc2)][_0x1b62f9(0xe4)]),exports['UniverDocsExchangeClientPlugin']=U([o[_0x1b62f9(0xdf)](g[_0x1b62f9(0xc5)]),_(0x1,o[_0x1b62f9(0xf3)](o[_0x1b62f9(0x102)])),_(0x2,o['IConfigService'])],exports[_0x1b62f9(0xff)]),exports['ExportDOCXOperation']=l,exports[_0x1b62f9(0xd1)]=u;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x3faf60=_0x20a4;function _0x4b75(){var _0x574d02=['18384LuHmTr','exchange-client.operation.import-docx','onReady','65126VxtVOZ','_configService','_commandService','symbol','2570npdjyN','importDOCXToUnitId','get','docs-exchange-client.operation.exchange','ExportSingle','forEach','type','177nYkqNo','4299290KANrLI','DOC_EXCHANGE_CLIENT_PLUGIN','registerCommand','FILE','onStarting','5xLJQRY','527202OWTLXy','_config','menu','_menuManagerService','add','setConfig','35MsXhyZ','OPERATION','677376eTPfrk','length','pluginName','defineProperty','FolderSingle','exchange.upload','_initMenus','DirectExportSingle','exchange-client.operation.export-docx','exchange.file','_injector','SUBITEMS','BUTTON','627044icjlgb','exchange.download','disposeWithMe'];_0x4b75=function(){return _0x574d02;};return _0x4b75();}(function(_0x11b92e,_0x522d61){var _0x70ccbd=_0x20a4,_0x4be2ad=_0x11b92e();while(!![]){try{var _0x163e1d=-parseInt(_0x70ccbd(0xec))/0x1+-parseInt(_0x70ccbd(0xf0))/0x2*(-parseInt(_0x70ccbd(0xca))/0x3)+parseInt(_0x70ccbd(0xe6))/0x4*(-parseInt(_0x70ccbd(0xd0))/0x5)+-parseInt(_0x70ccbd(0xd9))/0x6+parseInt(_0x70ccbd(0xd7))/0x7*(-parseInt(_0x70ccbd(0xe9))/0x8)+-parseInt(_0x70ccbd(0xd1))/0x9+parseInt(_0x70ccbd(0xcb))/0xa;if(_0x163e1d===_0x522d61)break;else _0x4be2ad['push'](_0x4be2ad['shift']());}catch(_0x2d20a9){_0x4be2ad['push'](_0x4be2ad['shift']());}}}(_0x4b75,0x18a1d));import{IExchangeOperateService as _0x48bd0c,UniverExchangeClientPlugin as _0x2c2b7d}from'@univerjs-pro/exchange-client';import{CommandType as _0x550434,UniverInstanceType as _0x159b2c,Disposable as _0x32567d,ICommandService as _0x51dd54,DependentOn as _0x4b3644,Inject as _0x4d23ee,Injector as _0x20894e,Plugin as _0x3762cc,IConfigService as _0x7139c0}from'@univerjs/core';import{MenuItemType as _0x351411,getMenuHiddenObservable as _0x2cc400,RibbonStartGroup as _0x260516,IMenuManagerService as _0x5b3761}from'@univerjs/ui';const M='docs-exchange-client.config',b={},_={'id':_0x3faf60(0xea),'type':_0x550434['OPERATION'],'handler':async _0x1c2414=>(_0x1c2414[_0x3faf60(0xc5)](_0x48bd0c)[_0x3faf60(0xc4)](),!0x0)},d={'id':_0x3faf60(0xe1),'type':_0x550434[_0x3faf60(0xd8)],'handler':async _0x1b43d5=>(_0x1b43d5[_0x3faf60(0xc5)](_0x48bd0c)['exportDOCXByUnitId'](),!0x0)},C=_0x3faf60(0xc6);function F(_0x11a9ae){var _0x286ee2=_0x3faf60;return{'id':C,'type':_0x351411[_0x286ee2(0xe4)],'icon':_0x286ee2(0xe0),'tooltip':_0x286ee2(0xe2),'hidden$':_0x2cc400(_0x11a9ae,_0x159b2c['UNIVER_DOC'])};}function X(){var _0x4ac928=_0x3faf60;return{'id':_['id'],'type':_0x351411[_0x4ac928(0xe5)],'title':_0x4ac928(0xde),'icon':_0x4ac928(0xdd)};}function G(){var _0x3b829f=_0x3faf60;return{'id':d['id'],'type':_0x351411[_0x3b829f(0xe5)],'title':_0x3b829f(0xe7),'icon':_0x3b829f(0xc7)};}const j={[_0x260516[_0x3faf60(0xce)]]:{[C]:{'order':0x4,'menuItemFactory':F,[_['id']]:{'order':0x0,'menuItemFactory':X},[d['id']]:{'order':0x1,'menuItemFactory':G}}}};var A=Object['defineProperty'],L=Object['getOwnPropertyDescriptor'],R=(_0xa5e57d,_0x1d6d1e,_0x9bae63,_0x16caa0)=>{var _0x889a7c=_0x3faf60;for(var _0x1364f4=_0x16caa0>0x1?void 0x0:_0x16caa0?L(_0x1d6d1e,_0x9bae63):_0x1d6d1e,_0x2ff833=_0xa5e57d[_0x889a7c(0xda)]-0x1,_0x9cf37;_0x2ff833>=0x0;_0x2ff833--)(_0x9cf37=_0xa5e57d[_0x2ff833])&&(_0x1364f4=(_0x16caa0?_0x9cf37(_0x1d6d1e,_0x9bae63,_0x1364f4):_0x9cf37(_0x1364f4))||_0x1364f4);return _0x16caa0&&_0x1364f4&&A(_0x1d6d1e,_0x9bae63,_0x1364f4),_0x1364f4;},u=(_0x3eab48,_0x4ec4e4)=>(_0x4a0b8c,_0x32ba57)=>_0x4ec4e4(_0x4a0b8c,_0x32ba57,_0x3eab48);let a=class extends _0x32567d{constructor(_0x426ab2,_0x39d524){var _0x135627=_0x3faf60;super(),this[_0x135627(0xee)]=_0x426ab2,this[_0x135627(0xd4)]=_0x39d524,this['_initCommands'](),this[_0x135627(0xdf)]();}['_initCommands'](){var _0x4283be=_0x3faf60;[_,d][_0x4283be(0xc8)](_0x5bb12a=>{var _0x2ddb7f=_0x4283be;this[_0x2ddb7f(0xe8)](this[_0x2ddb7f(0xee)][_0x2ddb7f(0xcd)](_0x5bb12a));});}[_0x3faf60(0xdf)](){var _0x79f95f=_0x3faf60;this[_0x79f95f(0xd4)]['mergeMenu'](j);}};a=R([u(0x0,_0x51dd54),u(0x1,_0x5b3761)],a);var I=Object[_0x3faf60(0xdc)],w=Object['getOwnPropertyDescriptor'],B=(_0x362f4b,_0x55d0b3,_0x16de15)=>_0x55d0b3 in _0x362f4b?I(_0x362f4b,_0x55d0b3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x16de15}):_0x362f4b[_0x55d0b3]=_0x16de15,H=(_0x37d40c,_0x518a05,_0x2aa1eb,_0x2deaa1)=>{var _0x7a51ab=_0x3faf60;for(var _0x52ffca=_0x2deaa1>0x1?void 0x0:_0x2deaa1?w(_0x518a05,_0x2aa1eb):_0x518a05,_0xff0036=_0x37d40c[_0x7a51ab(0xda)]-0x1,_0x99b768;_0xff0036>=0x0;_0xff0036--)(_0x99b768=_0x37d40c[_0xff0036])&&(_0x52ffca=(_0x2deaa1?_0x99b768(_0x518a05,_0x2aa1eb,_0x52ffca):_0x99b768(_0x52ffca))||_0x52ffca);return _0x2deaa1&&_0x52ffca&&I(_0x518a05,_0x2aa1eb,_0x52ffca),_0x52ffca;},m=(_0x497c66,_0x272085)=>(_0x43bc62,_0x98bce6)=>_0x272085(_0x43bc62,_0x98bce6,_0x497c66),f=(_0x50a6c6,_0x3993bb,_0x558120)=>B(_0x50a6c6,typeof _0x3993bb!=_0x3faf60(0xef)?_0x3993bb+'':_0x3993bb,_0x558120);const $=_0x3faf60(0xcc);function _0x20a4(_0x404ec7,_0x4cf75d){var _0x4b7560=_0x4b75();return _0x20a4=function(_0x20a4a7,_0x543e2d){_0x20a4a7=_0x20a4a7-0xc4;var _0x4a1dea=_0x4b7560[_0x20a4a7];return _0x4a1dea;},_0x20a4(_0x404ec7,_0x4cf75d);}let s=class extends _0x3762cc{constructor(_0x304db4=b,_0x47f2cf,_0x15ea5c){var _0x2979e6=_0x3faf60;super(),this[_0x2979e6(0xd2)]=_0x304db4,this[_0x2979e6(0xe3)]=_0x47f2cf,this[_0x2979e6(0xed)]=_0x15ea5c;const {menu:_0x3bd370,..._0x4a2a38}=this[_0x2979e6(0xd2)];_0x3bd370&&this[_0x2979e6(0xed)][_0x2979e6(0xd6)](_0x2979e6(0xd3),_0x3bd370,{'merge':!0x0}),this[_0x2979e6(0xed)]['setConfig'](M,_0x4a2a38);}[_0x3faf60(0xcf)](){var _0x2a8df6=_0x3faf60;[[a]][_0x2a8df6(0xc8)](_0x40f096=>this[_0x2a8df6(0xe3)][_0x2a8df6(0xd5)](_0x40f096));}[_0x3faf60(0xeb)](){var _0x2d9f21=_0x3faf60;this[_0x2d9f21(0xe3)]['get'](a);}};f(s,_0x3faf60(0xdb),$),f(s,_0x3faf60(0xc9),_0x159b2c['UNIVER_DOC']),s=H([_0x4b3644(_0x2c2b7d),m(0x1,_0x4d23ee(_0x20894e)),m(0x2,_0x7139c0)],s);export{d as ExportDOCXOperation,_ as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MenuConfig } from '@univerjs/ui';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const DOCS_EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY = "docs-exchange-client.config";
|
|
3
3
|
export declare const configSymbol: unique symbol;
|
|
4
4
|
export interface IUniverDocsExchangeClientConfig {
|
|
5
5
|
menu?: MenuConfig;
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x55ad(_0x3614b2,_0x4c8acc){var _0x4f35ed=_0x4f35();return _0x55ad=function(_0x55ade2,_0x349ad0){_0x55ade2=_0x55ade2-0x1b0;var _0x5b9635=_0x4f35ed[_0x55ade2];return _0x5b9635;},_0x55ad(_0x3614b2,_0x4c8acc);}(function(_0x20f121,_0xe0f63){var _0x2bf4a6=_0x55ad,_0x43cf0c=_0x20f121();while(!![]){try{var _0x2d90fb=-parseInt(_0x2bf4a6(0x1ca))/0x1*(parseInt(_0x2bf4a6(0x1f0))/0x2)+-parseInt(_0x2bf4a6(0x1b3))/0x3+-parseInt(_0x2bf4a6(0x1bd))/0x4+parseInt(_0x2bf4a6(0x1d4))/0x5*(-parseInt(_0x2bf4a6(0x1bf))/0x6)+parseInt(_0x2bf4a6(0x1d7))/0x7+-parseInt(_0x2bf4a6(0x1ef))/0x8*(parseInt(_0x2bf4a6(0x1c1))/0x9)+parseInt(_0x2bf4a6(0x1c5))/0xa*(parseInt(_0x2bf4a6(0x1c3))/0xb);if(_0x2d90fb===_0xe0f63)break;else _0x43cf0c['push'](_0x43cf0c['shift']());}catch(_0x435040){_0x43cf0c['push'](_0x43cf0c['shift']());}}}(_0x4f35,0x528be),function(_0x10bb71,_0x9cdffd){var _0x471a10=_0x55ad;typeof exports==_0x471a10(0x1cc)&&typeof module<'u'?_0x9cdffd(exports,require(_0x471a10(0x1d2)),require('@univerjs/core'),require(_0x471a10(0x1d3))):typeof define==_0x471a10(0x1dd)&&define['amd']?define(['exports',_0x471a10(0x1d2),_0x471a10(0x1d1),_0x471a10(0x1d3)],_0x9cdffd):(_0x10bb71=typeof globalThis<'u'?globalThis:_0x10bb71||self,_0x9cdffd(_0x10bb71[_0x471a10(0x1ba)]={},_0x10bb71[_0x471a10(0x1d8)],_0x10bb71[_0x471a10(0x1dc)],_0x10bb71[_0x471a10(0x1c7)]));}(this,function(_0x39338e,_0x5db095,_0x8ce184,_0x64e6c0){'use strict';var _0x4e1bbc=_0x55ad;const _0xc093e6=_0x4e1bbc(0x1f2),_0x322a42={},_0x37c765={'id':_0x4e1bbc(0x1b4),'type':_0x8ce184[_0x4e1bbc(0x1b5)][_0x4e1bbc(0x1e3)],'handler':async _0x15255c=>(_0x15255c[_0x4e1bbc(0x1be)](_0x5db095['IExchangeOperateService'])[_0x4e1bbc(0x1ce)](),!0x0)},_0x1e5eb3={'id':_0x4e1bbc(0x1e1),'type':_0x8ce184[_0x4e1bbc(0x1b5)][_0x4e1bbc(0x1e3)],'handler':async _0x2c8878=>(_0x2c8878['get'](_0x5db095[_0x4e1bbc(0x1f1)])['exportDOCXByUnitId'](),!0x0)},_0x215fad=_0x4e1bbc(0x1ed);function _0x3a742c(_0x50384c){var _0x5aace9=_0x4e1bbc;return{'id':_0x215fad,'type':_0x64e6c0[_0x5aace9(0x1c4)][_0x5aace9(0x1bb)],'icon':'DirectExportSingle','tooltip':'exchange.file','hidden$':_0x64e6c0['getMenuHiddenObservable'](_0x50384c,_0x8ce184['UniverInstanceType'][_0x5aace9(0x1eb)])};}function _0x3827c8(){var _0x2ba192=_0x4e1bbc;return{'id':_0x37c765['id'],'type':_0x64e6c0[_0x2ba192(0x1c4)][_0x2ba192(0x1e8)],'title':_0x2ba192(0x1da),'icon':_0x2ba192(0x1d5)};}function _0x25a7ed(){var _0x53e714=_0x4e1bbc;return{'id':_0x1e5eb3['id'],'type':_0x64e6c0['MenuItemType'][_0x53e714(0x1e8)],'title':_0x53e714(0x1d6),'icon':_0x53e714(0x1cb)};}const _0x5da3b8={[_0x64e6c0[_0x4e1bbc(0x1bc)][_0x4e1bbc(0x1e7)]]:{[_0x215fad]:{'order':0x4,'menuItemFactory':_0x3a742c,[_0x37c765['id']]:{'order':0x0,'menuItemFactory':_0x3827c8},[_0x1e5eb3['id']]:{'order':0x1,'menuItemFactory':_0x25a7ed}}}};var _0x58ed0c=Object[_0x4e1bbc(0x1b0)],_0xee7296=Object[_0x4e1bbc(0x1f6)],_0x49ecec=(_0x391c8a,_0x416972,_0x15a6ec,_0x137c69)=>{var _0x4840cf=_0x4e1bbc;for(var _0x2b0deb=_0x137c69>0x1?void 0x0:_0x137c69?_0xee7296(_0x416972,_0x15a6ec):_0x416972,_0x20b6cf=_0x391c8a[_0x4840cf(0x1f5)]-0x1,_0x17a3ff;_0x20b6cf>=0x0;_0x20b6cf--)(_0x17a3ff=_0x391c8a[_0x20b6cf])&&(_0x2b0deb=(_0x137c69?_0x17a3ff(_0x416972,_0x15a6ec,_0x2b0deb):_0x17a3ff(_0x2b0deb))||_0x2b0deb);return _0x137c69&&_0x2b0deb&&_0x58ed0c(_0x416972,_0x15a6ec,_0x2b0deb),_0x2b0deb;},_0xc040d1=(_0xff9eb2,_0x11092f)=>(_0x29d52c,_0x51b3ba)=>_0x11092f(_0x29d52c,_0x51b3ba,_0xff9eb2);let _0x2ba86b=class extends _0x8ce184[_0x4e1bbc(0x1e5)]{constructor(_0x1455c7,_0x3890be){var _0x1528c0=_0x4e1bbc;super(),this['_commandService']=_0x1455c7,this[_0x1528c0(0x1e4)]=_0x3890be,this[_0x1528c0(0x1b6)](),this['_initMenus']();}[_0x4e1bbc(0x1b6)](){var _0x5d6923=_0x4e1bbc;[_0x37c765,_0x1e5eb3][_0x5d6923(0x1b1)](_0x4f184=>{var _0x4097f6=_0x5d6923;this[_0x4097f6(0x1b2)](this[_0x4097f6(0x1f7)][_0x4097f6(0x1db)](_0x4f184));});}[_0x4e1bbc(0x1c9)](){var _0x3307f4=_0x4e1bbc;this['_menuManagerService'][_0x3307f4(0x1d0)](_0x5da3b8);}};_0x2ba86b=_0x49ecec([_0xc040d1(0x0,_0x8ce184[_0x4e1bbc(0x1cd)]),_0xc040d1(0x1,_0x64e6c0[_0x4e1bbc(0x1e9)])],_0x2ba86b);var _0x3f1754=Object[_0x4e1bbc(0x1b0)],_0x427e4a=Object['getOwnPropertyDescriptor'],_0x5dd671=(_0x58e4d7,_0x45318d,_0x19d5cf)=>_0x45318d in _0x58e4d7?_0x3f1754(_0x58e4d7,_0x45318d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x19d5cf}):_0x58e4d7[_0x45318d]=_0x19d5cf,_0x20cfc2=(_0x4d9246,_0x304c84,_0x94b2b0,_0x4362c1)=>{var _0x40b6b1=_0x4e1bbc;for(var _0xab9b29=_0x4362c1>0x1?void 0x0:_0x4362c1?_0x427e4a(_0x304c84,_0x94b2b0):_0x304c84,_0x2aca05=_0x4d9246[_0x40b6b1(0x1f5)]-0x1,_0x29796c;_0x2aca05>=0x0;_0x2aca05--)(_0x29796c=_0x4d9246[_0x2aca05])&&(_0xab9b29=(_0x4362c1?_0x29796c(_0x304c84,_0x94b2b0,_0xab9b29):_0x29796c(_0xab9b29))||_0xab9b29);return _0x4362c1&&_0xab9b29&&_0x3f1754(_0x304c84,_0x94b2b0,_0xab9b29),_0xab9b29;},_0x241434=(_0x3f8d4b,_0x18299b)=>(_0x593264,_0x5dc4e5)=>_0x18299b(_0x593264,_0x5dc4e5,_0x3f8d4b),_0x1e2d2d=(_0x51c9b0,_0x434793,_0xd2ba0d)=>_0x5dd671(_0x51c9b0,typeof _0x434793!=_0x4e1bbc(0x1e0)?_0x434793+'':_0x434793,_0xd2ba0d);const _0x262d64=_0x4e1bbc(0x1c2);_0x39338e[_0x4e1bbc(0x1f3)]=class extends _0x8ce184['Plugin']{constructor(_0x5d95b7=_0x322a42,_0x5043d0,_0x4f3d76){var _0x239b7f=_0x4e1bbc;super(),this[_0x239b7f(0x1ec)]=_0x5d95b7,this[_0x239b7f(0x1ea)]=_0x5043d0,this[_0x239b7f(0x1cf)]=_0x4f3d76;const {menu:_0x2da037,..._0x391196}=this[_0x239b7f(0x1ec)];_0x2da037&&this[_0x239b7f(0x1cf)][_0x239b7f(0x1b8)](_0x239b7f(0x1ee),_0x2da037,{'merge':!0x0}),this[_0x239b7f(0x1cf)]['setConfig'](_0xc093e6,_0x391196);}[_0x4e1bbc(0x1b9)](){var _0x55c776=_0x4e1bbc;[[_0x2ba86b]][_0x55c776(0x1b1)](_0x84bac5=>this[_0x55c776(0x1ea)]['add'](_0x84bac5));}[_0x4e1bbc(0x1f4)](){var _0x2dcd2c=_0x4e1bbc;this['_injector'][_0x2dcd2c(0x1be)](_0x2ba86b);}},_0x1e2d2d(_0x39338e['UniverDocsExchangeClientPlugin'],_0x4e1bbc(0x1de),_0x262d64),_0x1e2d2d(_0x39338e['UniverDocsExchangeClientPlugin'],_0x4e1bbc(0x1df),_0x8ce184['UniverInstanceType'][_0x4e1bbc(0x1eb)]),_0x39338e[_0x4e1bbc(0x1f3)]=_0x20cfc2([_0x8ce184[_0x4e1bbc(0x1e6)](_0x5db095['UniverExchangeClientPlugin']),_0x241434(0x1,_0x8ce184[_0x4e1bbc(0x1c6)](_0x8ce184[_0x4e1bbc(0x1b7)])),_0x241434(0x2,_0x8ce184[_0x4e1bbc(0x1e2)])],_0x39338e['UniverDocsExchangeClientPlugin']),_0x39338e[_0x4e1bbc(0x1c0)]=_0x1e5eb3,_0x39338e[_0x4e1bbc(0x1d9)]=_0x37c765,Object[_0x4e1bbc(0x1b0)](_0x39338e,Symbol['toStringTag'],{'value':_0x4e1bbc(0x1c8)});}));function _0x4f35(){var _0x469bde=['length','getOwnPropertyDescriptor','_commandService','defineProperty','forEach','disposeWithMe','1509201OBUabr','exchange-client.operation.import-docx','CommandType','_initCommands','Injector','setConfig','onStarting','UniverProDocsExchangeClient','SUBITEMS','RibbonStartGroup','1194380CrYDmA','get','1446IknMzd','ExportDOCXOperation','9hXogZj','DOC_EXCHANGE_CLIENT_PLUGIN','10494XqtwuX','MenuItemType','10790nDHQtn','Inject','UniverUi','Module','_initMenus','52621oAdflh','ExportSingle','object','ICommandService','importDOCXToUnitId','_configService','mergeMenu','@univerjs/core','@univerjs-pro/exchange-client','@univerjs/ui','175qyWkGo','FolderSingle','exchange.download','2836260TjfyHA','UniverProExchangeClient','ImportDOCXOperation','exchange.upload','registerCommand','UniverCore','function','pluginName','type','symbol','exchange-client.operation.export-docx','IConfigService','OPERATION','_menuManagerService','Disposable','DependentOn','FILE','BUTTON','IMenuManagerService','_injector','UNIVER_DOC','_config','docs-exchange-client.operation.exchange','menu','1869744oxQpnS','2coCmtU','IExchangeOperateService','docs-exchange-client.config','UniverDocsExchangeClientPlugin','onReady'];_0x4f35=function(){return _0x469bde;};return _0x4f35();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/docs-exchange-client",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1-nightly.202411301606",
|
|
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.5.1-nightly.202411301606",
|
|
46
|
+
"@univerjs-pro/exchange-client": "0.5.1-nightly.202411301606",
|
|
47
|
+
"@univerjs/ui": "0.5.1-nightly.202411301606"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"typescript": "^5.
|
|
51
|
-
"vite": "^
|
|
52
|
-
"vitest": "^2.1.
|
|
53
|
-
"@univerjs-infra/shared": "0.5.
|
|
50
|
+
"typescript": "^5.7.2",
|
|
51
|
+
"vite": "^6.0.0",
|
|
52
|
+
"vitest": "^2.1.6",
|
|
53
|
+
"@univerjs-infra/shared": "0.5.1"
|
|
54
54
|
},
|
|
55
55
|
"space": {
|
|
56
56
|
".": {
|