@univerjs-pro/docs-exchange-client 0.18.0 → 0.19.0-insiders.20260403-3e0e122
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +7 -7
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x795615=_0x389d;(function(_0x5a9c60,_0xa4a883){var _0x5591c0=_0x389d,_0x247a92=_0x5a9c60();while(!![]){try{var _0xc5c8bc=-parseInt(_0x5591c0(0x91))/0x1*(-parseInt(_0x5591c0(0x9e))/0x2)+parseInt(_0x5591c0(0x84))/0x3*(-parseInt(_0x5591c0(0x92))/0x4)+parseInt(_0x5591c0(0xa5))/0x5*(-parseInt(_0x5591c0(0x81))/0x6)+parseInt(_0x5591c0(0x9f))/0x7*(parseInt(_0x5591c0(0x83))/0x8)+parseInt(_0x5591c0(0x7e))/0x9+-parseInt(_0x5591c0(0xa7))/0xa*(parseInt(_0x5591c0(0x93))/0xb)+parseInt(_0x5591c0(0xb5))/0xc;if(_0xc5c8bc===_0xa4a883)break;else _0x247a92['push'](_0x247a92['shift']());}catch(_0x3ce839){_0x247a92['push'](_0x247a92['shift']());}}}(_0xa11e,0x5bad3),Object[_0x795615(0x7b)](exports,Symbol[_0x795615(0x8f)],{'value':_0x795615(0x9c)}));let e=require(`@univerjs-pro/exchange-client`),t=require(`@univerjs/core`),n=require(`@univerjs/ui`);const r={'id':_0x795615(0x8a),'type':t[_0x795615(0x95)][_0x795615(0x88)],'handler':async _0x583451=>(_0x583451[_0x795615(0xa3)](e[_0x795615(0x94)])[_0x795615(0xb4)](),!0x0)},i={'id':_0x795615(0xab),'type':t[_0x795615(0x95)]['OPERATION'],'handler':async _0x2b06ed=>(_0x2b06ed['get'](e[_0x795615(0x94)])[_0x795615(0xb1)](),!0x0)};var a='@univerjs-pro/docs-exchange-client',o=_0x795615(0xa0);function _0x389d(_0x34a03d,_0x681553){_0x34a03d=_0x34a03d-0x73;var _0xa11ee0=_0xa11e();var _0x389d3e=_0xa11ee0[_0x34a03d];return _0x389d3e;}const s=_0x795615(0x99);Symbol(s);const c={},l=_0x795615(0xb0);function u(_0x4f5bd9){var _0x51f694=_0x795615;return{'id':l,'type':n[_0x51f694(0xb6)]['SUBITEMS'],'icon':_0x51f694(0xaa),'tooltip':_0x51f694(0x7c),'hidden$':(0x0,n[_0x51f694(0x9d)])(_0x4f5bd9,t['UniverInstanceType']['UNIVER_DOC'])};}function d(){var _0xed14f=_0x795615;return{'id':r['id'],'type':n[_0xed14f(0xb6)][_0xed14f(0x96)],'title':'exchange.upload','icon':_0xed14f(0x8e)};}function f(){var _0x793c5a=_0x795615;return{'id':i['id'],'type':n[_0x793c5a(0xb6)][_0x793c5a(0x96)],'title':'exchange.download','icon':_0x793c5a(0x8d)};}const p={[n[_0x795615(0xaf)]['OTHERS']]:{[l]:{'order':0.3,'menuItemFactory':u,[r['id']]:{'order':0x0,'menuItemFactory':d},[i['id']]:{'order':0x1,'menuItemFactory':f}}}};function m(_0x4c75c9,_0x1bca7b){return function(_0x376b87,_0x12d177){_0x1bca7b(_0x376b87,_0x12d177,_0x4c75c9);};}function h(_0x2a14ec,_0xfa7910,_0x184f19,_0x4874e6){var _0x47c691=_0x795615,_0x17d8bb=arguments[_0x47c691(0x98)],_0x41246f=_0x17d8bb<0x3?_0xfa7910:_0x4874e6===null?_0x4874e6=Object['getOwnPropertyDescriptor'](_0xfa7910,_0x184f19):_0x4874e6,_0x27f559;if(typeof Reflect==_0x47c691(0x85)&&typeof Reflect[_0x47c691(0xa4)]==_0x47c691(0x8c))_0x41246f=Reflect[_0x47c691(0xa4)](_0x2a14ec,_0xfa7910,_0x184f19,_0x4874e6);else{for(var _0x593ddc=_0x2a14ec[_0x47c691(0x98)]-0x1;_0x593ddc>=0x0;_0x593ddc--)(_0x27f559=_0x2a14ec[_0x593ddc])&&(_0x41246f=(_0x17d8bb<0x3?_0x27f559(_0x41246f):_0x17d8bb>0x3?_0x27f559(_0xfa7910,_0x184f19,_0x41246f):_0x27f559(_0xfa7910,_0x184f19))||_0x41246f);}return _0x17d8bb>0x3&&_0x41246f&&Object[_0x47c691(0x7b)](_0xfa7910,_0x184f19,_0x41246f),_0x41246f;}function _0xa11e(){var _0x35ac90=['50CzyTIJ','menu','merge','DirectExportIcon','exchange-client.operation.export-docx','ICommandService','_config','UniverExchangeClientPlugin','RibbonStartGroup','docs-exchange-client.operation.exchange','exportDOCXByUnitId','Inject','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','importDOCXToUnitId','5915988lWINFr','MenuItemType','Plugin','_menuManagerService','IConfigService','type','forEach','DOC_EXCHANGE_CLIENT_PLUGIN','symbol','add','_initCommands','defineProperty','exchange.file','call','1976238CteSaK','UniverInstanceType','_initMenus','3829962UIuZlW','toPrimitive','1114576ANyRzX','144ryzrpQ','object','_commandService','default','OPERATION','setConfig','exchange-client.operation.import-docx','mergeMenu','function','ExportIcon','FolderIcon','toStringTag','ImportDOCXOperation','1UXTyZy','55920KtxrQt','300278ixUqpj','IExchangeOperateService','CommandType','BUTTON','_injector','length','docs-exchange-client.config','string','onReady','Module','getMenuHiddenObservable','824346zIpjpA','35uYBOwe','0.19.0-insiders.20260403-3e0e122','disposeWithMe','_configService','get','decorate','5wjNIDa','iterator'];_0xa11e=function(){return _0x35ac90;};return _0xa11e();}let g=class extends t['Disposable']{constructor(_0x299e65,_0x42cb07){var _0x3b99e8=_0x795615;super(),this['_commandService']=_0x299e65,this[_0x3b99e8(0x73)]=_0x42cb07,this[_0x3b99e8(0x7a)](),this[_0x3b99e8(0x80)]();}[_0x795615(0x7a)](){var _0x183b9d=_0x795615;[r,i][_0x183b9d(0x76)](_0x331969=>{var _0x59fa87=_0x183b9d;this[_0x59fa87(0xa1)](this[_0x59fa87(0x86)]['registerCommand'](_0x331969));});}[_0x795615(0x80)](){var _0x17cfed=_0x795615;this['_menuManagerService'][_0x17cfed(0x8b)](p);}};g=h([m(0x0,t[_0x795615(0xac)]),m(0x1,n['IMenuManagerService'])],g);function _(_0x46d11c){'@babel/helpers - typeof';var _0x15ae1c=_0x795615;return _=typeof Symbol==_0x15ae1c(0x8c)&&typeof Symbol[_0x15ae1c(0xa6)]==_0x15ae1c(0x78)?function(_0x2cec1e){return typeof _0x2cec1e;}:function(_0x3e3f66){var _0x5c9340=_0x15ae1c;return _0x3e3f66&&typeof Symbol=='function'&&_0x3e3f66['constructor']===Symbol&&_0x3e3f66!==Symbol['prototype']?_0x5c9340(0x78):typeof _0x3e3f66;},_(_0x46d11c);}function v(_0x4ed3e1,_0x5481ae){var _0x5721c9=_0x795615;if(_(_0x4ed3e1)!=_0x5721c9(0x85)||!_0x4ed3e1)return _0x4ed3e1;var _0x40c743=_0x4ed3e1[Symbol[_0x5721c9(0x82)]];if(_0x40c743!==void 0x0){var _0x1ef603=_0x40c743[_0x5721c9(0x7d)](_0x4ed3e1,_0x5481ae||_0x5721c9(0x87));if(_(_0x1ef603)!=_0x5721c9(0x85))return _0x1ef603;throw TypeError(_0x5721c9(0xb3));}return(_0x5481ae===_0x5721c9(0x9a)?String:Number)(_0x4ed3e1);}function y(_0x1bd3e8){var _0x168b85=_0x795615,_0x2cf022=v(_0x1bd3e8,_0x168b85(0x9a));return _(_0x2cf022)=='symbol'?_0x2cf022:_0x2cf022+'';}function b(_0x2eb8b5,_0x215dc0,_0x59fc5b){var _0x43a72b=_0x795615;return(_0x215dc0=y(_0x215dc0))in _0x2eb8b5?Object[_0x43a72b(0x7b)](_0x2eb8b5,_0x215dc0,{'value':_0x59fc5b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2eb8b5[_0x215dc0]=_0x59fc5b,_0x2eb8b5;}let x=class extends t[_0x795615(0xb7)]{constructor(_0x5d1a4f=c,_0x529a6d,_0x500b9b){var _0x56cfad=_0x795615;super(),this[_0x56cfad(0xad)]=_0x5d1a4f,this[_0x56cfad(0x97)]=_0x529a6d,this[_0x56cfad(0xa2)]=_0x500b9b;let {menu:_0x3c316e,..._0x472488}=(0x0,t[_0x56cfad(0xa9)])({},c,this['_config']);_0x3c316e&&this[_0x56cfad(0xa2)][_0x56cfad(0x89)](_0x56cfad(0xa8),_0x3c316e,{'merge':!0x0}),this['_configService'][_0x56cfad(0x89)](s,_0x472488);}['onStarting'](){var _0x4c129f=_0x795615;[[g]]['forEach'](_0x20eebc=>this[_0x4c129f(0x97)][_0x4c129f(0x79)](_0x20eebc));}[_0x795615(0x9b)](){var _0x392cdc=_0x795615;this[_0x392cdc(0x97)][_0x392cdc(0xa3)](g);}};b(x,'pluginName',_0x795615(0x77)),b(x,'packageName',a),b(x,'version',o),b(x,_0x795615(0x75),t[_0x795615(0x7f)]['UNIVER_DOC']),x=h([(0x0,t['DependentOn'])(e[_0x795615(0xae)]),m(0x1,(0x0,t[_0x795615(0xb2)])(t['Injector'])),m(0x2,t[_0x795615(0x74)])],x),exports['ExportDOCXOperation']=i,exports[_0x795615(0x90)]=r,Object[_0x795615(0x7b)](exports,'UniverDocsExchangeClientPlugin',{'enumerable':!0x0,'get':function(){return x;}});
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x26aad5=_0x50b9;(function(_0x5d1227,_0x5d25d1){var _0x5d9a77=_0x50b9,_0x23329f=_0x5d1227();while(!![]){try{var _0x49a654=parseInt(_0x5d9a77(0x12b))/0x1+-parseInt(_0x5d9a77(0x152))/0x2*(-parseInt(_0x5d9a77(0x143))/0x3)+-parseInt(_0x5d9a77(0x12f))/0x4*(-parseInt(_0x5d9a77(0x121))/0x5)+parseInt(_0x5d9a77(0x155))/0x6*(-parseInt(_0x5d9a77(0x157))/0x7)+parseInt(_0x5d9a77(0x14b))/0x8+-parseInt(_0x5d9a77(0x151))/0x9*(parseInt(_0x5d9a77(0x134))/0xa)+-parseInt(_0x5d9a77(0x123))/0xb*(-parseInt(_0x5d9a77(0x139))/0xc);if(_0x49a654===_0x5d25d1)break;else _0x23329f['push'](_0x23329f['shift']());}catch(_0x3e3a7b){_0x23329f['push'](_0x23329f['shift']());}}}(_0x11d4,0x3802a));import{IExchangeOperateService as _0x1ee0b7,UniverExchangeClientPlugin as _0x1150b5}from'@univerjs-pro/exchange-client';import{CommandType as _0x5cad6a,DependentOn as _0xfc0500,Disposable as _0x453917,ICommandService as _0x50577f,IConfigService as _0x4cf6f2,Inject as _0x4b6891,Injector as _0x2de83d,Plugin as _0x1bf921,UniverInstanceType as _0x1a6fa1,merge as _0x1aca92}from'@univerjs/core';import{IMenuManagerService as _0x4f6ed9,MenuItemType as _0x507b78,RibbonStartGroup as _0x2afebe,getMenuHiddenObservable as _0x260740}from'@univerjs/ui';const g={'id':_0x26aad5(0x13e),'type':_0x5cad6a[_0x26aad5(0x149)],'handler':async _0xf0df09=>(_0xf0df09[_0x26aad5(0x132)](_0x1ee0b7)[_0x26aad5(0x125)](),!0x0)},_={'id':_0x26aad5(0x145),'type':_0x5cad6a['OPERATION'],'handler':async _0x3eb654=>(_0x3eb654[_0x26aad5(0x132)](_0x1ee0b7)[_0x26aad5(0x122)](),!0x0)};var v=_0x26aad5(0x120),y=_0x26aad5(0x148);const b=_0x26aad5(0x138);Symbol(b);const x={},S='docs-exchange-client.operation.exchange';function _0x50b9(_0x15060a,_0x1d7125){_0x15060a=_0x15060a-0x11d;var _0x11d477=_0x11d4();var _0x50b955=_0x11d477[_0x15060a];return _0x50b955;}function C(_0x411bc6){var _0x385087=_0x26aad5;return{'id':S,'type':_0x507b78[_0x385087(0x146)],'icon':_0x385087(0x135),'tooltip':_0x385087(0x147),'hidden$':_0x260740(_0x411bc6,_0x1a6fa1[_0x385087(0x11f)])};}function w(){var _0x1b81c9=_0x26aad5;return{'id':g['id'],'type':_0x507b78[_0x1b81c9(0x154)],'title':'exchange.upload','icon':'FolderIcon'};}function T(){var _0x537ee8=_0x26aad5;return{'id':_['id'],'type':_0x507b78[_0x537ee8(0x154)],'title':_0x537ee8(0x14c),'icon':_0x537ee8(0x13c)};}const E={[_0x2afebe[_0x26aad5(0x12e)]]:{[S]:{'order':0.3,'menuItemFactory':C,[g['id']]:{'order':0x0,'menuItemFactory':w},[_['id']]:{'order':0x1,'menuItemFactory':T}}}};function D(_0x300f64,_0x53865d){return function(_0x49910,_0x17e461){_0x53865d(_0x49910,_0x17e461,_0x300f64);};}function O(_0x2a7c80,_0x4d69e7,_0x22cbb3,_0x454d40){var _0x3b6ea9=_0x26aad5,_0x374fd4=arguments[_0x3b6ea9(0x13b)],_0x3f8e3e=_0x374fd4<0x3?_0x4d69e7:_0x454d40===null?_0x454d40=Object[_0x3b6ea9(0x14e)](_0x4d69e7,_0x22cbb3):_0x454d40,_0x261ed9;if(typeof Reflect==_0x3b6ea9(0x124)&&typeof Reflect[_0x3b6ea9(0x153)]=='function')_0x3f8e3e=Reflect[_0x3b6ea9(0x153)](_0x2a7c80,_0x4d69e7,_0x22cbb3,_0x454d40);else{for(var _0x5bcc7c=_0x2a7c80[_0x3b6ea9(0x13b)]-0x1;_0x5bcc7c>=0x0;_0x5bcc7c--)(_0x261ed9=_0x2a7c80[_0x5bcc7c])&&(_0x3f8e3e=(_0x374fd4<0x3?_0x261ed9(_0x3f8e3e):_0x374fd4>0x3?_0x261ed9(_0x4d69e7,_0x22cbb3,_0x3f8e3e):_0x261ed9(_0x4d69e7,_0x22cbb3))||_0x3f8e3e);}return _0x374fd4>0x3&&_0x3f8e3e&&Object[_0x3b6ea9(0x150)](_0x4d69e7,_0x22cbb3,_0x3f8e3e),_0x3f8e3e;}let k=class extends _0x453917{constructor(_0x3c5985,_0x2ce9d5){var _0x966380=_0x26aad5;super(),this['_commandService']=_0x3c5985,this[_0x966380(0x133)]=_0x2ce9d5,this['_initCommands'](),this[_0x966380(0x13f)]();}[_0x26aad5(0x129)](){var _0x2c3cfe=_0x26aad5;[g,_][_0x2c3cfe(0x156)](_0x499e2f=>{var _0x5c47bb=_0x2c3cfe;this['disposeWithMe'](this[_0x5c47bb(0x12d)][_0x5c47bb(0x142)](_0x499e2f));});}[_0x26aad5(0x13f)](){var _0x3bb4c7=_0x26aad5;this[_0x3bb4c7(0x133)][_0x3bb4c7(0x144)](E);}};k=O([D(0x0,_0x50577f),D(0x1,_0x4f6ed9)],k);function A(_0x375ad5){'@babel/helpers - typeof';var _0x23154c=_0x26aad5;return A=typeof Symbol==_0x23154c(0x137)&&typeof Symbol['iterator']==_0x23154c(0x12a)?function(_0x4c38cb){return typeof _0x4c38cb;}:function(_0x249427){var _0x23b9fd=_0x23154c;return _0x249427&&typeof Symbol==_0x23b9fd(0x137)&&_0x249427[_0x23b9fd(0x13a)]===Symbol&&_0x249427!==Symbol['prototype']?_0x23b9fd(0x12a):typeof _0x249427;},A(_0x375ad5);}function j(_0x257499,_0x5f1a0a){var _0x4b721b=_0x26aad5;if(A(_0x257499)!=_0x4b721b(0x124)||!_0x257499)return _0x257499;var _0x56ee2d=_0x257499[Symbol[_0x4b721b(0x130)]];if(_0x56ee2d!==void 0x0){var _0x157988=_0x56ee2d[_0x4b721b(0x14d)](_0x257499,_0x5f1a0a||'default');if(A(_0x157988)!=_0x4b721b(0x124))return _0x157988;throw TypeError(_0x4b721b(0x11d));}return(_0x5f1a0a===_0x4b721b(0x136)?String:Number)(_0x257499);}function M(_0x3e12f6){var _0xea4cb8=j(_0x3e12f6,'string');return A(_0xea4cb8)=='symbol'?_0xea4cb8:_0xea4cb8+'';}function N(_0x32e725,_0x372ec2,_0x53af82){return(_0x372ec2=M(_0x372ec2))in _0x32e725?Object['defineProperty'](_0x32e725,_0x372ec2,{'value':_0x53af82,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x32e725[_0x372ec2]=_0x53af82,_0x32e725;}let P=class extends _0x1bf921{constructor(_0x3cdf95=x,_0x406447,_0x2f1a50){var _0x50c266=_0x26aad5;super(),this[_0x50c266(0x13d)]=_0x3cdf95,this['_injector']=_0x406447,this[_0x50c266(0x131)]=_0x2f1a50;let {menu:_0x2ee9d8,..._0x60601d}=_0x1aca92({},x,this[_0x50c266(0x13d)]);_0x2ee9d8&&this[_0x50c266(0x131)]['setConfig'](_0x50c266(0x11e),_0x2ee9d8,{'merge':!0x0}),this['_configService'][_0x50c266(0x141)](b,_0x60601d);}['onStarting'](){var _0x3388e7=_0x26aad5;[[k]][_0x3388e7(0x156)](_0x201c5e=>this['_injector'][_0x3388e7(0x128)](_0x201c5e));}[_0x26aad5(0x12c)](){var _0x1c7658=_0x26aad5;this[_0x1c7658(0x140)][_0x1c7658(0x132)](k);}};function _0x11d4(){var _0x4d1a75=['_configService','get','_menuManagerService','450xfkcOi','DirectExportIcon','string','function','docs-exchange-client.config','34932BQuWDL','constructor','length','ExportIcon','_config','exchange-client.operation.import-docx','_initMenus','_injector','setConfig','registerCommand','558489ykJOHz','mergeMenu','exchange-client.operation.export-docx','SUBITEMS','exchange.file','0.19.0-insiders.20260403-3e0e122','OPERATION','pluginName','491528IVNaiM','exchange.download','call','getOwnPropertyDescriptor','DOC_EXCHANGE_CLIENT_PLUGIN','defineProperty','84897GrtGzi','2OcTCMu','decorate','BUTTON','6UljdGh','forEach','158081JoEaQN','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','menu','UNIVER_DOC','@univerjs-pro/docs-exchange-client','10yiprjC','exportDOCXByUnitId','22iMGosa','object','importDOCXToUnitId','version','packageName','add','_initCommands','symbol','410928PbVxVh','onReady','_commandService','OTHERS','24264LZmtWP','toPrimitive'];_0x11d4=function(){return _0x4d1a75;};return _0x11d4();}N(P,_0x26aad5(0x14a),_0x26aad5(0x14f)),N(P,_0x26aad5(0x127),v),N(P,_0x26aad5(0x126),y),N(P,'type',_0x1a6fa1[_0x26aad5(0x11f)]),P=O([_0xfc0500(_0x1150b5),D(0x1,_0x4b6891(_0x2de83d)),D(0x2,_0x4cf6f2)],P);export{_ as ExportDOCXOperation,g as ImportDOCXOperation,P as UniverDocsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x26aad5=_0x50b9;(function(_0x5d1227,_0x5d25d1){var _0x5d9a77=_0x50b9,_0x23329f=_0x5d1227();while(!![]){try{var _0x49a654=parseInt(_0x5d9a77(0x12b))/0x1+-parseInt(_0x5d9a77(0x152))/0x2*(-parseInt(_0x5d9a77(0x143))/0x3)+-parseInt(_0x5d9a77(0x12f))/0x4*(-parseInt(_0x5d9a77(0x121))/0x5)+parseInt(_0x5d9a77(0x155))/0x6*(-parseInt(_0x5d9a77(0x157))/0x7)+parseInt(_0x5d9a77(0x14b))/0x8+-parseInt(_0x5d9a77(0x151))/0x9*(parseInt(_0x5d9a77(0x134))/0xa)+-parseInt(_0x5d9a77(0x123))/0xb*(-parseInt(_0x5d9a77(0x139))/0xc);if(_0x49a654===_0x5d25d1)break;else _0x23329f['push'](_0x23329f['shift']());}catch(_0x3e3a7b){_0x23329f['push'](_0x23329f['shift']());}}}(_0x11d4,0x3802a));import{IExchangeOperateService as _0x1ee0b7,UniverExchangeClientPlugin as _0x1150b5}from'@univerjs-pro/exchange-client';import{CommandType as _0x5cad6a,DependentOn as _0xfc0500,Disposable as _0x453917,ICommandService as _0x50577f,IConfigService as _0x4cf6f2,Inject as _0x4b6891,Injector as _0x2de83d,Plugin as _0x1bf921,UniverInstanceType as _0x1a6fa1,merge as _0x1aca92}from'@univerjs/core';import{IMenuManagerService as _0x4f6ed9,MenuItemType as _0x507b78,RibbonStartGroup as _0x2afebe,getMenuHiddenObservable as _0x260740}from'@univerjs/ui';const g={'id':_0x26aad5(0x13e),'type':_0x5cad6a[_0x26aad5(0x149)],'handler':async _0xf0df09=>(_0xf0df09[_0x26aad5(0x132)](_0x1ee0b7)[_0x26aad5(0x125)](),!0x0)},_={'id':_0x26aad5(0x145),'type':_0x5cad6a['OPERATION'],'handler':async _0x3eb654=>(_0x3eb654[_0x26aad5(0x132)](_0x1ee0b7)[_0x26aad5(0x122)](),!0x0)};var v=_0x26aad5(0x120),y=_0x26aad5(0x148);const b=_0x26aad5(0x138);Symbol(b);const x={},S='docs-exchange-client.operation.exchange';function _0x50b9(_0x15060a,_0x1d7125){_0x15060a=_0x15060a-0x11d;var _0x11d477=_0x11d4();var _0x50b955=_0x11d477[_0x15060a];return _0x50b955;}function C(_0x411bc6){var _0x385087=_0x26aad5;return{'id':S,'type':_0x507b78[_0x385087(0x146)],'icon':_0x385087(0x135),'tooltip':_0x385087(0x147),'hidden$':_0x260740(_0x411bc6,_0x1a6fa1[_0x385087(0x11f)])};}function w(){var _0x1b81c9=_0x26aad5;return{'id':g['id'],'type':_0x507b78[_0x1b81c9(0x154)],'title':'exchange.upload','icon':'FolderIcon'};}function T(){var _0x537ee8=_0x26aad5;return{'id':_['id'],'type':_0x507b78[_0x537ee8(0x154)],'title':_0x537ee8(0x14c),'icon':_0x537ee8(0x13c)};}const E={[_0x2afebe[_0x26aad5(0x12e)]]:{[S]:{'order':0.3,'menuItemFactory':C,[g['id']]:{'order':0x0,'menuItemFactory':w},[_['id']]:{'order':0x1,'menuItemFactory':T}}}};function D(_0x300f64,_0x53865d){return function(_0x49910,_0x17e461){_0x53865d(_0x49910,_0x17e461,_0x300f64);};}function O(_0x2a7c80,_0x4d69e7,_0x22cbb3,_0x454d40){var _0x3b6ea9=_0x26aad5,_0x374fd4=arguments[_0x3b6ea9(0x13b)],_0x3f8e3e=_0x374fd4<0x3?_0x4d69e7:_0x454d40===null?_0x454d40=Object[_0x3b6ea9(0x14e)](_0x4d69e7,_0x22cbb3):_0x454d40,_0x261ed9;if(typeof Reflect==_0x3b6ea9(0x124)&&typeof Reflect[_0x3b6ea9(0x153)]=='function')_0x3f8e3e=Reflect[_0x3b6ea9(0x153)](_0x2a7c80,_0x4d69e7,_0x22cbb3,_0x454d40);else{for(var _0x5bcc7c=_0x2a7c80[_0x3b6ea9(0x13b)]-0x1;_0x5bcc7c>=0x0;_0x5bcc7c--)(_0x261ed9=_0x2a7c80[_0x5bcc7c])&&(_0x3f8e3e=(_0x374fd4<0x3?_0x261ed9(_0x3f8e3e):_0x374fd4>0x3?_0x261ed9(_0x4d69e7,_0x22cbb3,_0x3f8e3e):_0x261ed9(_0x4d69e7,_0x22cbb3))||_0x3f8e3e);}return _0x374fd4>0x3&&_0x3f8e3e&&Object[_0x3b6ea9(0x150)](_0x4d69e7,_0x22cbb3,_0x3f8e3e),_0x3f8e3e;}let k=class extends _0x453917{constructor(_0x3c5985,_0x2ce9d5){var _0x966380=_0x26aad5;super(),this['_commandService']=_0x3c5985,this[_0x966380(0x133)]=_0x2ce9d5,this['_initCommands'](),this[_0x966380(0x13f)]();}[_0x26aad5(0x129)](){var _0x2c3cfe=_0x26aad5;[g,_][_0x2c3cfe(0x156)](_0x499e2f=>{var _0x5c47bb=_0x2c3cfe;this['disposeWithMe'](this[_0x5c47bb(0x12d)][_0x5c47bb(0x142)](_0x499e2f));});}[_0x26aad5(0x13f)](){var _0x3bb4c7=_0x26aad5;this[_0x3bb4c7(0x133)][_0x3bb4c7(0x144)](E);}};k=O([D(0x0,_0x50577f),D(0x1,_0x4f6ed9)],k);function A(_0x375ad5){'@babel/helpers - typeof';var _0x23154c=_0x26aad5;return A=typeof Symbol==_0x23154c(0x137)&&typeof Symbol['iterator']==_0x23154c(0x12a)?function(_0x4c38cb){return typeof _0x4c38cb;}:function(_0x249427){var _0x23b9fd=_0x23154c;return _0x249427&&typeof Symbol==_0x23b9fd(0x137)&&_0x249427[_0x23b9fd(0x13a)]===Symbol&&_0x249427!==Symbol['prototype']?_0x23b9fd(0x12a):typeof _0x249427;},A(_0x375ad5);}function j(_0x257499,_0x5f1a0a){var _0x4b721b=_0x26aad5;if(A(_0x257499)!=_0x4b721b(0x124)||!_0x257499)return _0x257499;var _0x56ee2d=_0x257499[Symbol[_0x4b721b(0x130)]];if(_0x56ee2d!==void 0x0){var _0x157988=_0x56ee2d[_0x4b721b(0x14d)](_0x257499,_0x5f1a0a||'default');if(A(_0x157988)!=_0x4b721b(0x124))return _0x157988;throw TypeError(_0x4b721b(0x11d));}return(_0x5f1a0a===_0x4b721b(0x136)?String:Number)(_0x257499);}function M(_0x3e12f6){var _0xea4cb8=j(_0x3e12f6,'string');return A(_0xea4cb8)=='symbol'?_0xea4cb8:_0xea4cb8+'';}function N(_0x32e725,_0x372ec2,_0x53af82){return(_0x372ec2=M(_0x372ec2))in _0x32e725?Object['defineProperty'](_0x32e725,_0x372ec2,{'value':_0x53af82,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x32e725[_0x372ec2]=_0x53af82,_0x32e725;}let P=class extends _0x1bf921{constructor(_0x3cdf95=x,_0x406447,_0x2f1a50){var _0x50c266=_0x26aad5;super(),this[_0x50c266(0x13d)]=_0x3cdf95,this['_injector']=_0x406447,this[_0x50c266(0x131)]=_0x2f1a50;let {menu:_0x2ee9d8,..._0x60601d}=_0x1aca92({},x,this[_0x50c266(0x13d)]);_0x2ee9d8&&this[_0x50c266(0x131)]['setConfig'](_0x50c266(0x11e),_0x2ee9d8,{'merge':!0x0}),this['_configService'][_0x50c266(0x141)](b,_0x60601d);}['onStarting'](){var _0x3388e7=_0x26aad5;[[k]][_0x3388e7(0x156)](_0x201c5e=>this['_injector'][_0x3388e7(0x128)](_0x201c5e));}[_0x26aad5(0x12c)](){var _0x1c7658=_0x26aad5;this[_0x1c7658(0x140)][_0x1c7658(0x132)](k);}};function _0x11d4(){var _0x4d1a75=['_configService','get','_menuManagerService','450xfkcOi','DirectExportIcon','string','function','docs-exchange-client.config','34932BQuWDL','constructor','length','ExportIcon','_config','exchange-client.operation.import-docx','_initMenus','_injector','setConfig','registerCommand','558489ykJOHz','mergeMenu','exchange-client.operation.export-docx','SUBITEMS','exchange.file','0.19.0-insiders.20260403-3e0e122','OPERATION','pluginName','491528IVNaiM','exchange.download','call','getOwnPropertyDescriptor','DOC_EXCHANGE_CLIENT_PLUGIN','defineProperty','84897GrtGzi','2OcTCMu','decorate','BUTTON','6UljdGh','forEach','158081JoEaQN','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','menu','UNIVER_DOC','@univerjs-pro/docs-exchange-client','10yiprjC','exportDOCXByUnitId','22iMGosa','object','importDOCXToUnitId','version','packageName','add','_initCommands','symbol','410928PbVxVh','onReady','_commandService','OTHERS','24264LZmtWP','toPrimitive'];_0x11d4=function(){return _0x4d1a75;};return _0x11d4();}N(P,_0x26aad5(0x14a),_0x26aad5(0x14f)),N(P,_0x26aad5(0x127),v),N(P,_0x26aad5(0x126),y),N(P,'type',_0x1a6fa1[_0x26aad5(0x11f)]),P=O([_0xfc0500(_0x1150b5),D(0x1,_0x4b6891(_0x2de83d)),D(0x2,_0x4cf6f2)],P);export{_ as ExportDOCXOperation,g as ImportDOCXOperation,P as UniverDocsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x62ce7f,_0x371c65){const _0x58253f=_0x22c3,_0x21c58e=_0x62ce7f();while(!![]){try{const _0x42eb85=-parseInt(_0x58253f(0x201))/0x1+parseInt(_0x58253f(0x203))/0x2+parseInt(_0x58253f(0x1f8))/0x3+parseInt(_0x58253f(0x21f))/0x4*(-parseInt(_0x58253f(0x220))/0x5)+parseInt(_0x58253f(0x215))/0x6*(parseInt(_0x58253f(0x200))/0x7)+parseInt(_0x58253f(0x225))/0x8*(parseInt(_0x58253f(0x1ec))/0x9)+-parseInt(_0x58253f(0x1f1))/0xa*(parseInt(_0x58253f(0x22e))/0xb);if(_0x42eb85===_0x371c65)break;else _0x21c58e['push'](_0x21c58e['shift']());}catch(_0x1f2154){_0x21c58e['push'](_0x21c58e['shift']());}}}(_0x2ac9,0x463fc),function(_0x305e07,_0x5af18f){const _0x31338c=_0x22c3;typeof exports==_0x31338c(0x221)&&typeof module<'u'?_0x5af18f(exports,require(`@univerjs-pro/exchange-client`),require(`@univerjs/core`),require(`@univerjs/ui`)):typeof define==_0x31338c(0x219)&&define['amd']?define([_0x31338c(0x21a),_0x31338c(0x20e),_0x31338c(0x227),'@univerjs/ui'],_0x5af18f):(_0x305e07=typeof globalThis<'u'?globalThis:_0x305e07||self,_0x5af18f(_0x305e07[_0x31338c(0x217)]={},_0x305e07['UniverProExchangeClient'],_0x305e07[_0x31338c(0x1f6)],_0x305e07['UniverUi']));}(this,function(_0x358415,_0x329848,_0x232d7e,_0x8b06a9){const _0x24751b=_0x22c3;Object[_0x24751b(0x21c)](_0x358415,Symbol[_0x24751b(0x21b)],{'value':_0x24751b(0x202)});let _0x12a3dc={'id':_0x24751b(0x1fb),'type':_0x232d7e['CommandType'][_0x24751b(0x207)],'handler':async _0x2cdc6e=>(_0x2cdc6e[_0x24751b(0x1eb)](_0x329848[_0x24751b(0x20b)])['importDOCXToUnitId'](),!0x0)},_0x459f7d={'id':_0x24751b(0x224),'type':_0x232d7e[_0x24751b(0x22a)][_0x24751b(0x207)],'handler':async _0x289899=>(_0x289899[_0x24751b(0x1eb)](_0x329848[_0x24751b(0x20b)])[_0x24751b(0x223)](),!0x0)};var _0x437b4b=_0x24751b(0x1f0),_0x5a3c2e=_0x24751b(0x1ee);let _0x133b45=_0x24751b(0x20c);Symbol(_0x133b45);let _0x5e1606={},_0x53fa11=_0x24751b(0x1e9);function _0x3d26e1(_0x5ebe36){const _0x36774a=_0x24751b;return{'id':_0x53fa11,'type':_0x8b06a9[_0x36774a(0x222)][_0x36774a(0x22f)],'icon':'DirectExportIcon','tooltip':_0x36774a(0x205),'hidden$':(0x0,_0x8b06a9[_0x36774a(0x216)])(_0x5ebe36,_0x232d7e[_0x36774a(0x210)][_0x36774a(0x211)])};}function _0x273380(){const _0x37166e=_0x24751b;return{'id':_0x12a3dc['id'],'type':_0x8b06a9[_0x37166e(0x222)]['BUTTON'],'title':'exchange.upload','icon':_0x37166e(0x20a)};}function _0x409ce8(){const _0x40f6a5=_0x24751b;return{'id':_0x459f7d['id'],'type':_0x8b06a9[_0x40f6a5(0x222)][_0x40f6a5(0x209)],'title':'exchange.download','icon':_0x40f6a5(0x208)};}let _0x26ddbe={[_0x8b06a9['RibbonStartGroup'][_0x24751b(0x22d)]]:{[_0x53fa11]:{'order':0.3,'menuItemFactory':_0x3d26e1,[_0x12a3dc['id']]:{'order':0x0,'menuItemFactory':_0x273380},[_0x459f7d['id']]:{'order':0x1,'menuItemFactory':_0x409ce8}}}};function _0x4d08a1(_0x56729f,_0x5adfec){return function(_0x1a9a61,_0x15e0dd){_0x5adfec(_0x1a9a61,_0x15e0dd,_0x56729f);};}function _0x248382(_0x512f25,_0x2a30ad,_0x1a7425,_0x3dbcf5){const _0x3ac2cd=_0x24751b;var _0x206879=arguments[_0x3ac2cd(0x1f5)],_0x1cbf45=_0x206879<0x3?_0x2a30ad:_0x3dbcf5===null?_0x3dbcf5=Object[_0x3ac2cd(0x229)](_0x2a30ad,_0x1a7425):_0x3dbcf5,_0x38a899;if(typeof Reflect=='object'&&typeof Reflect[_0x3ac2cd(0x228)]==_0x3ac2cd(0x219))_0x1cbf45=Reflect[_0x3ac2cd(0x228)](_0x512f25,_0x2a30ad,_0x1a7425,_0x3dbcf5);else{for(var _0x38c118=_0x512f25[_0x3ac2cd(0x1f5)]-0x1;_0x38c118>=0x0;_0x38c118--)(_0x38a899=_0x512f25[_0x38c118])&&(_0x1cbf45=(_0x206879<0x3?_0x38a899(_0x1cbf45):_0x206879>0x3?_0x38a899(_0x2a30ad,_0x1a7425,_0x1cbf45):_0x38a899(_0x2a30ad,_0x1a7425))||_0x1cbf45);}return _0x206879>0x3&&_0x1cbf45&&Object[_0x3ac2cd(0x21c)](_0x2a30ad,_0x1a7425,_0x1cbf45),_0x1cbf45;}let _0x2d9b68=class extends _0x232d7e[_0x24751b(0x1e7)]{constructor(_0x15f1fc,_0x1b06d7){const _0x33b803=_0x24751b;super(),this[_0x33b803(0x21d)]=_0x15f1fc,this[_0x33b803(0x1f9)]=_0x1b06d7,this[_0x33b803(0x226)](),this['_initMenus']();}[_0x24751b(0x226)](){const _0xe80ef9=_0x24751b;[_0x12a3dc,_0x459f7d][_0xe80ef9(0x1f4)](_0x42190e=>{const _0x29f162=_0xe80ef9;this[_0x29f162(0x1fd)](this[_0x29f162(0x21d)]['registerCommand'](_0x42190e));});}[_0x24751b(0x218)](){const _0x2765f4=_0x24751b;this['_menuManagerService'][_0x2765f4(0x212)](_0x26ddbe);}};_0x2d9b68=_0x248382([_0x4d08a1(0x0,_0x232d7e[_0x24751b(0x22b)]),_0x4d08a1(0x1,_0x8b06a9['IMenuManagerService'])],_0x2d9b68);function _0x2c458f(_0x100b9e){'@babel/helpers - typeof';const _0x3e6135=_0x24751b;return _0x2c458f=typeof Symbol==_0x3e6135(0x219)&&typeof Symbol['iterator']==_0x3e6135(0x213)?function(_0xeb3c84){return typeof _0xeb3c84;}:function(_0x2043ad){const _0x55ce90=_0x3e6135;return _0x2043ad&&typeof Symbol=='function'&&_0x2043ad[_0x55ce90(0x1f2)]===Symbol&&_0x2043ad!==Symbol[_0x55ce90(0x230)]?_0x55ce90(0x213):typeof _0x2043ad;},_0x2c458f(_0x100b9e);}function _0x5a9b02(_0x54abd9,_0x1aab9e){const _0x1958b6=_0x24751b;if(_0x2c458f(_0x54abd9)!='object'||!_0x54abd9)return _0x54abd9;var _0x241079=_0x54abd9[Symbol['toPrimitive']];if(_0x241079!==void 0x0){var _0x325792=_0x241079[_0x1958b6(0x20f)](_0x54abd9,_0x1aab9e||_0x1958b6(0x1fe));if(_0x2c458f(_0x325792)!=_0x1958b6(0x221))return _0x325792;throw TypeError(_0x1958b6(0x233));}return(_0x1aab9e===_0x1958b6(0x1ea)?String:Number)(_0x54abd9);}function _0xbc28b3(_0x5a5e36){const _0x440dba=_0x24751b;var _0x4cbd24=_0x5a9b02(_0x5a5e36,_0x440dba(0x1ea));return _0x2c458f(_0x4cbd24)=='symbol'?_0x4cbd24:_0x4cbd24+'';}function _0xbff742(_0x5492be,_0x1cbb5,_0x1a9816){const _0x778fe6=_0x24751b;return(_0x1cbb5=_0xbc28b3(_0x1cbb5))in _0x5492be?Object[_0x778fe6(0x21c)](_0x5492be,_0x1cbb5,{'value':_0x1a9816,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5492be[_0x1cbb5]=_0x1a9816,_0x5492be;}let _0x42553d=class extends _0x232d7e[_0x24751b(0x1f3)]{constructor(_0x48e0a9=_0x5e1606,_0x545df9,_0x1eead9){const _0x427891=_0x24751b;super(),this[_0x427891(0x1fa)]=_0x48e0a9,this[_0x427891(0x1f7)]=_0x545df9,this['_configService']=_0x1eead9;let {menu:_0x1002cf,..._0x57fc84}=(0x0,_0x232d7e[_0x427891(0x1ef)])({},_0x5e1606,this[_0x427891(0x1fa)]);_0x1002cf&&this[_0x427891(0x1ff)]['setConfig'](_0x427891(0x231),_0x1002cf,{'merge':!0x0}),this[_0x427891(0x1ff)][_0x427891(0x1e6)](_0x133b45,_0x57fc84);}['onStarting'](){const _0x5f0f7f=_0x24751b;[[_0x2d9b68]]['forEach'](_0x32d9b1=>this[_0x5f0f7f(0x1f7)][_0x5f0f7f(0x20d)](_0x32d9b1));}[_0x24751b(0x1ed)](){const _0x3899e0=_0x24751b;this['_injector'][_0x3899e0(0x1eb)](_0x2d9b68);}};_0xbff742(_0x42553d,_0x24751b(0x21e),'DOC_EXCHANGE_CLIENT_PLUGIN'),_0xbff742(_0x42553d,'packageName',_0x437b4b),_0xbff742(_0x42553d,_0x24751b(0x204),_0x5a3c2e),_0xbff742(_0x42553d,_0x24751b(0x232),_0x232d7e[_0x24751b(0x210)][_0x24751b(0x211)]),_0x42553d=_0x248382([(0x0,_0x232d7e['DependentOn'])(_0x329848[_0x24751b(0x1e8)]),_0x4d08a1(0x1,(0x0,_0x232d7e[_0x24751b(0x234)])(_0x232d7e[_0x24751b(0x206)])),_0x4d08a1(0x2,_0x232d7e[_0x24751b(0x1fc)])],_0x42553d),_0x358415[_0x24751b(0x214)]=_0x459f7d,_0x358415[_0x24751b(0x22c)]=_0x12a3dc,Object[_0x24751b(0x21c)](_0x358415,_0x24751b(0x235),{'enumerable':!0x0,'get':function(){return _0x42553d;}});}));function _0x22c3(_0x1c375a,_0x565a43){_0x1c375a=_0x1c375a-0x1e6;const _0x2ac976=_0x2ac9();let _0x22c33d=_0x2ac976[_0x1c375a];return _0x22c33d;}function _0x2ac9(){const _0x3a51fb=['53082ufbIhq','getMenuHiddenObservable','UniverProDocsExchangeClient','_initMenus','function','exports','toStringTag','defineProperty','_commandService','pluginName','12YgPqmR','200610ACYGTz','object','MenuItemType','exportDOCXByUnitId','exchange-client.operation.export-docx','32056ZvKLYU','_initCommands','@univerjs/core','decorate','getOwnPropertyDescriptor','CommandType','ICommandService','ImportDOCXOperation','OTHERS','11fnvjFn','SUBITEMS','prototype','menu','type','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Inject','UniverDocsExchangeClientPlugin','setConfig','Disposable','UniverExchangeClientPlugin','docs-exchange-client.operation.exchange','string','get','441DdfuLj','onReady','0.19.0-insiders.20260403-3e0e122','merge','@univerjs-pro/docs-exchange-client','1917990lCcqSI','constructor','Plugin','forEach','length','UniverCore','_injector','458427vfONXX','_menuManagerService','_config','exchange-client.operation.import-docx','IConfigService','disposeWithMe','default','_configService','49fDQqcb','361943uWCWFu','Module','1101534LlzgHF','version','exchange.file','Injector','OPERATION','ExportIcon','BUTTON','FolderIcon','IExchangeOperateService','docs-exchange-client.config','add','@univerjs-pro/exchange-client','call','UniverInstanceType','UNIVER_DOC','mergeMenu','symbol','ExportDOCXOperation'];_0x2ac9=function(){return _0x3a51fb;};return _0x2ac9();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/docs-exchange-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0-insiders.20260403-3e0e122",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -42,14 +42,14 @@
|
|
|
42
42
|
"lib"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@univerjs-pro/exchange-client": "0.
|
|
46
|
-
"@univerjs/
|
|
47
|
-
"@univerjs/
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.19.0-insiders.20260403-3e0e122",
|
|
46
|
+
"@univerjs/ui": "0.19.0-insiders.20260403-3e0e122",
|
|
47
|
+
"@univerjs/core": "0.19.0-insiders.20260403-3e0e122"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"typescript": "^
|
|
51
|
-
"vitest": "^4.1.
|
|
52
|
-
"@univerjs-infra/shared": "0.
|
|
50
|
+
"typescript": "^6.0.2",
|
|
51
|
+
"vitest": "^4.1.1",
|
|
52
|
+
"@univerjs-infra/shared": "0.19.0"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"test": "vitest run",
|