@univerjs-pro/docs-exchange-client 0.20.0 → 0.20.1
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
|
-
var
|
|
1
|
+
var _0x494b73=_0x14ec;function _0x2b83(){var _0x2c9d8a=['constructor','UniverDocsExchangeClientPlugin','version','_injector','373265qaNrxM','3772998zRbIEw','OTHERS','exchange.file','2277786tQMhMA','314344MEMvlW','default','ICommandService','mergeMenu','iterator','ExportDOCXOperation','packageName','ImportDOCXOperation','importDOCXToUnitId','forEach','OPERATION','_commandService','Injector','merge','exchange.upload','BUTTON','exchange.download','10xLYETb','28XijrvD','6tjobYp','ExportIcon','defineProperty','onReady','_initCommands','7TiAlqH','Inject','add','7230392lcrJFK','docs-exchange-client.operation.exchange','symbol','CommandType','FolderIcon','toPrimitive','type','decorate','SUBITEMS','DOC_EXCHANGE_CLIENT_PLUGIN','@univerjs-pro/docs-exchange-client','0.20.1','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_config','Disposable','Plugin','call','get','4561137CCBaTe','_configService','registerCommand','toStringTag','4749305GhvltR','DirectExportIcon','disposeWithMe','UniverInstanceType','IConfigService','function','IExchangeOperateService','prototype','getMenuHiddenObservable','onStarting','UNIVER_DOC','setConfig','_menuManagerService','length','object'];_0x2b83=function(){return _0x2c9d8a;};return _0x2b83();}(function(_0x417b61,_0x5bb464){var _0x1eee20=_0x14ec,_0x3adf88=_0x417b61();while(!![]){try{var _0x44ba32=-parseInt(_0x1eee20(0xe7))/0x1*(parseInt(_0x1eee20(0xfa))/0x2)+parseInt(_0x1eee20(0xe6))/0x3+parseInt(_0x1eee20(0xf9))/0x4*(-parseInt(_0x1eee20(0xe2))/0x5)+parseInt(_0x1eee20(0xe3))/0x6*(-parseInt(_0x1eee20(0xb6))/0x7)+parseInt(_0x1eee20(0xb9))/0x8+-parseInt(_0x1eee20(0xcb))/0x9*(-parseInt(_0x1eee20(0xf8))/0xa)+parseInt(_0x1eee20(0xcf))/0xb;if(_0x44ba32===_0x5bb464)break;else _0x3adf88['push'](_0x3adf88['shift']());}catch(_0x2770b7){_0x3adf88['push'](_0x3adf88['shift']());}}}(_0x2b83,0x7bd25),Object[_0x494b73(0xfc)](exports,Symbol[_0x494b73(0xce)],{'value':'Module'}));let e=require(`@univerjs-pro/exchange-client`),t=require(`@univerjs/core`),n=require(`@univerjs/ui`);const r={'id':'exchange-client.operation.import-docx','type':t[_0x494b73(0xbc)][_0x494b73(0xf1)],'handler':async _0x2ca268=>(_0x2ca268[_0x494b73(0xca)](e[_0x494b73(0xd5)])[_0x494b73(0xef)](),!0x0)},i={'id':'exchange-client.operation.export-docx','type':t[_0x494b73(0xbc)][_0x494b73(0xf1)],'handler':async _0x32606c=>(_0x32606c['get'](e[_0x494b73(0xd5)])['exportDOCXByUnitId'](),!0x0)};var a=_0x494b73(0xc3),o=_0x494b73(0xc4);const s='docs-exchange-client.config';Symbol(s);const c={},l=_0x494b73(0xba);function u(_0x2e6c57){var _0x5e7d52=_0x494b73;return{'id':l,'type':n['MenuItemType'][_0x5e7d52(0xc1)],'icon':_0x5e7d52(0xd0),'tooltip':_0x5e7d52(0xe5),'hidden$':(0x0,n[_0x5e7d52(0xd7)])(_0x2e6c57,t[_0x5e7d52(0xd2)][_0x5e7d52(0xd9)])};}function d(){var _0x47bc22=_0x494b73;return{'id':r['id'],'type':n['MenuItemType'][_0x47bc22(0xf6)],'title':_0x47bc22(0xf5),'icon':_0x47bc22(0xbd)};}function f(){var _0x1f4366=_0x494b73;return{'id':i['id'],'type':n['MenuItemType'][_0x1f4366(0xf6)],'title':_0x1f4366(0xf7),'icon':_0x1f4366(0xfb)};}const p={[n['RibbonStartGroup'][_0x494b73(0xe4)]]:{[l]:{'order':0.3,'menuItemFactory':u,[r['id']]:{'order':0x0,'menuItemFactory':d},[i['id']]:{'order':0x1,'menuItemFactory':f}}}};function m(_0x13770c,_0x3fcf54){return function(_0x2d4452,_0x354f42){_0x3fcf54(_0x2d4452,_0x354f42,_0x13770c);};}function _0x14ec(_0x255f42,_0x19a5df){_0x255f42=_0x255f42-0xb5;var _0x2b8320=_0x2b83();var _0x14ec4e=_0x2b8320[_0x255f42];return _0x14ec4e;}function h(_0x561d17,_0x3a82ae,_0x118998,_0x2d8321){var _0x49f915=_0x494b73,_0x222f74=arguments[_0x49f915(0xdc)],_0x27dc3a=_0x222f74<0x3?_0x3a82ae:_0x2d8321===null?_0x2d8321=Object['getOwnPropertyDescriptor'](_0x3a82ae,_0x118998):_0x2d8321,_0x34c07e;if(typeof Reflect==_0x49f915(0xdd)&&typeof Reflect[_0x49f915(0xc0)]==_0x49f915(0xd4))_0x27dc3a=Reflect['decorate'](_0x561d17,_0x3a82ae,_0x118998,_0x2d8321);else{for(var _0x29ade0=_0x561d17['length']-0x1;_0x29ade0>=0x0;_0x29ade0--)(_0x34c07e=_0x561d17[_0x29ade0])&&(_0x27dc3a=(_0x222f74<0x3?_0x34c07e(_0x27dc3a):_0x222f74>0x3?_0x34c07e(_0x3a82ae,_0x118998,_0x27dc3a):_0x34c07e(_0x3a82ae,_0x118998))||_0x27dc3a);}return _0x222f74>0x3&&_0x27dc3a&&Object[_0x49f915(0xfc)](_0x3a82ae,_0x118998,_0x27dc3a),_0x27dc3a;}let g=class extends t[_0x494b73(0xc7)]{constructor(_0x33d784,_0x2b23fb){var _0x17f502=_0x494b73;super(),this[_0x17f502(0xf2)]=_0x33d784,this[_0x17f502(0xdb)]=_0x2b23fb,this[_0x17f502(0xb5)](),this['_initMenus']();}['_initCommands'](){var _0x40a775=_0x494b73;[r,i][_0x40a775(0xf0)](_0x1d7b25=>{var _0x32cc66=_0x40a775;this[_0x32cc66(0xd1)](this[_0x32cc66(0xf2)][_0x32cc66(0xcd)](_0x1d7b25));});}['_initMenus'](){var _0x17dcf8=_0x494b73;this[_0x17dcf8(0xdb)][_0x17dcf8(0xea)](p);}};g=h([m(0x0,t[_0x494b73(0xe9)]),m(0x1,n['IMenuManagerService'])],g);function _(_0x4382d3){'@babel/helpers - typeof';var _0x11c053=_0x494b73;return _=typeof Symbol==_0x11c053(0xd4)&&typeof Symbol[_0x11c053(0xeb)]==_0x11c053(0xbb)?function(_0x4cfb4c){return typeof _0x4cfb4c;}:function(_0x43dc59){var _0x4b7031=_0x11c053;return _0x43dc59&&typeof Symbol==_0x4b7031(0xd4)&&_0x43dc59[_0x4b7031(0xde)]===Symbol&&_0x43dc59!==Symbol[_0x4b7031(0xd6)]?_0x4b7031(0xbb):typeof _0x43dc59;},_(_0x4382d3);}function v(_0x36bc94,_0x2a2bbf){var _0x4756c9=_0x494b73;if(_(_0x36bc94)!='object'||!_0x36bc94)return _0x36bc94;var _0xbafb6b=_0x36bc94[Symbol[_0x4756c9(0xbe)]];if(_0xbafb6b!==void 0x0){var _0x20bc2b=_0xbafb6b[_0x4756c9(0xc9)](_0x36bc94,_0x2a2bbf||_0x4756c9(0xe8));if(_(_0x20bc2b)!=_0x4756c9(0xdd))return _0x20bc2b;throw TypeError(_0x4756c9(0xc5));}return(_0x2a2bbf==='string'?String:Number)(_0x36bc94);}function y(_0x370825){var _0x2b97ed=_0x494b73,_0x370ec2=v(_0x370825,'string');return _(_0x370ec2)==_0x2b97ed(0xbb)?_0x370ec2:_0x370ec2+'';}function b(_0x43f52d,_0x21b7c7,_0x260cf0){var _0x469f29=_0x494b73;return(_0x21b7c7=y(_0x21b7c7))in _0x43f52d?Object[_0x469f29(0xfc)](_0x43f52d,_0x21b7c7,{'value':_0x260cf0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x43f52d[_0x21b7c7]=_0x260cf0,_0x43f52d;}let x=class extends t[_0x494b73(0xc8)]{constructor(_0x5609d3=c,_0x19c009,_0x1c5816){var _0x118658=_0x494b73;super(),this[_0x118658(0xc6)]=_0x5609d3,this[_0x118658(0xe1)]=_0x19c009,this[_0x118658(0xcc)]=_0x1c5816;let {menu:_0x511f58,..._0x3d5a88}=(0x0,t[_0x118658(0xf4)])({},c,this[_0x118658(0xc6)]);_0x511f58&&this[_0x118658(0xcc)][_0x118658(0xda)]('menu',_0x511f58,{'merge':!0x0}),this[_0x118658(0xcc)][_0x118658(0xda)](s,_0x3d5a88);}[_0x494b73(0xd8)](){var _0x2d69bb=_0x494b73;[[g]]['forEach'](_0x415365=>this[_0x2d69bb(0xe1)][_0x2d69bb(0xb8)](_0x415365));}[_0x494b73(0xfd)](){var _0x19849c=_0x494b73;this[_0x19849c(0xe1)]['get'](g);}};b(x,'pluginName',_0x494b73(0xc2)),b(x,_0x494b73(0xed),a),b(x,_0x494b73(0xe0),o),b(x,_0x494b73(0xbf),t[_0x494b73(0xd2)][_0x494b73(0xd9)]),x=h([(0x0,t['DependentOn'])(e['UniverExchangeClientPlugin']),m(0x1,(0x0,t[_0x494b73(0xb7)])(t[_0x494b73(0xf3)])),m(0x2,t[_0x494b73(0xd3)])],x),exports[_0x494b73(0xec)]=i,exports[_0x494b73(0xee)]=r,Object[_0x494b73(0xfc)](exports,_0x494b73(0xdf),{'enumerable':!0x0,'get':function(){return x;}});
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x23327d=_0x59eb;(function(_0x19bf81,_0x2e4cf8){var _0x58ed3=_0x59eb,_0x54fef7=_0x19bf81();while(!![]){try{var _0x2ebd3d=-parseInt(_0x58ed3(0x152))/0x1*(-parseInt(_0x58ed3(0x13c))/0x2)+parseInt(_0x58ed3(0x13e))/0x3+-parseInt(_0x58ed3(0x14b))/0x4*(parseInt(_0x58ed3(0x168))/0x5)+parseInt(_0x58ed3(0x13a))/0x6*(-parseInt(_0x58ed3(0x14f))/0x7)+-parseInt(_0x58ed3(0x165))/0x8+parseInt(_0x58ed3(0x158))/0x9+-parseInt(_0x58ed3(0x14c))/0xa*(-parseInt(_0x58ed3(0x144))/0xb);if(_0x2ebd3d===_0x2e4cf8)break;else _0x54fef7['push'](_0x54fef7['shift']());}catch(_0x140813){_0x54fef7['push'](_0x54fef7['shift']());}}}(_0x2ece,0x31605));import{IExchangeOperateService as _0x411a7a,UniverExchangeClientPlugin as _0x6d9086}from'@univerjs-pro/exchange-client';import{CommandType as _0x510627,DependentOn as _0x11de92,Disposable as _0x244543,ICommandService as _0x39f60d,IConfigService as _0x2b2ad0,Inject as _0x17dd19,Injector as _0x48c09b,Plugin as _0x274e60,UniverInstanceType as _0xd22ab6,merge as _0x11cd5a}from'@univerjs/core';function _0x2ece(){var _0x12a758=['OTHERS','importDOCXToUnitId','iterator','constructor','type','add','_initCommands','docs-exchange-client.config','registerCommand','length','default','get','9522uVpjoP','@univerjs-pro/docs-exchange-client','86klRjuQ','forEach','298239qXEDZR','FolderIcon','call','_commandService','_injector','version','163273dmUjHe','menu','docs-exchange-client.operation.exchange','prototype','pluginName','toPrimitive','exchange.file','56QFUPHH','100uZmpxv','SUBITEMS','disposeWithMe','315nXqvGO','symbol','object','1771lFszyJ','defineProperty','_configService','_config','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_menuManagerService','790254Uvazxq','string','exportDOCXByUnitId','exchange-client.operation.import-docx','DOC_EXCHANGE_CLIENT_PLUGIN','onReady','OPERATION','onStarting','setConfig','function','exchange.download','BUTTON','0.20.1','780784TyYhTk','packageName','_initMenus','14480YJdOOc','UNIVER_DOC','DirectExportIcon','getOwnPropertyDescriptor'];_0x2ece=function(){return _0x12a758;};return _0x2ece();}import{IMenuManagerService as _0x5a9e26,MenuItemType as _0x4cae43,RibbonStartGroup as _0x16c29b,getMenuHiddenObservable as _0x38ca89}from'@univerjs/ui';const g={'id':_0x23327d(0x15b),'type':_0x510627[_0x23327d(0x15e)],'handler':async _0x55411c=>(_0x55411c[_0x23327d(0x139)](_0x411a7a)[_0x23327d(0x16d)](),!0x0)},_={'id':'exchange-client.operation.export-docx','type':_0x510627[_0x23327d(0x15e)],'handler':async _0x90846=>(_0x90846[_0x23327d(0x139)](_0x411a7a)[_0x23327d(0x15a)](),!0x0)};var v=_0x23327d(0x13b),y=_0x23327d(0x164);const b=_0x23327d(0x135);Symbol(b);const x={},S=_0x23327d(0x146);function C(_0x1233af){var _0x172de4=_0x23327d;return{'id':S,'type':_0x4cae43[_0x172de4(0x14d)],'icon':_0x172de4(0x16a),'tooltip':_0x172de4(0x14a),'hidden$':_0x38ca89(_0x1233af,_0xd22ab6[_0x172de4(0x169)])};}function _0x59eb(_0x30f991,_0x197654){_0x30f991=_0x30f991-0x134;var _0x2eceb6=_0x2ece();var _0x59eba2=_0x2eceb6[_0x30f991];return _0x59eba2;}function w(){var _0x104df8=_0x23327d;return{'id':g['id'],'type':_0x4cae43[_0x104df8(0x163)],'title':'exchange.upload','icon':_0x104df8(0x13f)};}function T(){var _0x51ec1b=_0x23327d;return{'id':_['id'],'type':_0x4cae43[_0x51ec1b(0x163)],'title':_0x51ec1b(0x162),'icon':'ExportIcon'};}const E={[_0x16c29b[_0x23327d(0x16c)]]:{[S]:{'order':0.3,'menuItemFactory':C,[g['id']]:{'order':0x0,'menuItemFactory':w},[_['id']]:{'order':0x1,'menuItemFactory':T}}}};function D(_0x590301,_0x382148){return function(_0x5d995d,_0x538fb8){_0x382148(_0x5d995d,_0x538fb8,_0x590301);};}function O(_0x160e38,_0x1bd256,_0x233261,_0x2b1cfa){var _0x3de85c=_0x23327d,_0x3febd6=arguments['length'],_0xd5aa7=_0x3febd6<0x3?_0x1bd256:_0x2b1cfa===null?_0x2b1cfa=Object[_0x3de85c(0x16b)](_0x1bd256,_0x233261):_0x2b1cfa,_0x288609;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x3de85c(0x161))_0xd5aa7=Reflect['decorate'](_0x160e38,_0x1bd256,_0x233261,_0x2b1cfa);else{for(var _0x5ed330=_0x160e38[_0x3de85c(0x137)]-0x1;_0x5ed330>=0x0;_0x5ed330--)(_0x288609=_0x160e38[_0x5ed330])&&(_0xd5aa7=(_0x3febd6<0x3?_0x288609(_0xd5aa7):_0x3febd6>0x3?_0x288609(_0x1bd256,_0x233261,_0xd5aa7):_0x288609(_0x1bd256,_0x233261))||_0xd5aa7);}return _0x3febd6>0x3&&_0xd5aa7&&Object[_0x3de85c(0x153)](_0x1bd256,_0x233261,_0xd5aa7),_0xd5aa7;}let k=class extends _0x244543{constructor(_0x5de9b3,_0x582928){var _0x598b37=_0x23327d;super(),this[_0x598b37(0x141)]=_0x5de9b3,this[_0x598b37(0x157)]=_0x582928,this['_initCommands'](),this['_initMenus']();}[_0x23327d(0x134)](){var _0x1b6be1=_0x23327d;[g,_][_0x1b6be1(0x13d)](_0x5580fb=>{var _0x1a689d=_0x1b6be1;this[_0x1a689d(0x14e)](this[_0x1a689d(0x141)][_0x1a689d(0x136)](_0x5580fb));});}[_0x23327d(0x167)](){this['_menuManagerService']['mergeMenu'](E);}};k=O([D(0x0,_0x39f60d),D(0x1,_0x5a9e26)],k);function A(_0x37f8d8){'@babel/helpers - typeof';var _0x6a4579=_0x23327d;return A=typeof Symbol==_0x6a4579(0x161)&&typeof Symbol[_0x6a4579(0x16e)]==_0x6a4579(0x150)?function(_0x1e0322){return typeof _0x1e0322;}:function(_0x578b10){var _0x2db796=_0x6a4579;return _0x578b10&&typeof Symbol=='function'&&_0x578b10[_0x2db796(0x16f)]===Symbol&&_0x578b10!==Symbol[_0x2db796(0x147)]?_0x2db796(0x150):typeof _0x578b10;},A(_0x37f8d8);}function j(_0x181a3f,_0xb421){var _0x2f78d8=_0x23327d;if(A(_0x181a3f)!=_0x2f78d8(0x151)||!_0x181a3f)return _0x181a3f;var _0x2e9cbd=_0x181a3f[Symbol[_0x2f78d8(0x149)]];if(_0x2e9cbd!==void 0x0){var _0x13d0ff=_0x2e9cbd[_0x2f78d8(0x140)](_0x181a3f,_0xb421||_0x2f78d8(0x138));if(A(_0x13d0ff)!=_0x2f78d8(0x151))return _0x13d0ff;throw TypeError(_0x2f78d8(0x156));}return(_0xb421===_0x2f78d8(0x159)?String:Number)(_0x181a3f);}function M(_0x3951b7){var _0x1d5d2d=_0x23327d,_0x300ca9=j(_0x3951b7,_0x1d5d2d(0x159));return A(_0x300ca9)==_0x1d5d2d(0x150)?_0x300ca9:_0x300ca9+'';}function N(_0xc646e6,_0x3b393f,_0x5b3204){var _0x61fe84=_0x23327d;return(_0x3b393f=M(_0x3b393f))in _0xc646e6?Object[_0x61fe84(0x153)](_0xc646e6,_0x3b393f,{'value':_0x5b3204,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xc646e6[_0x3b393f]=_0x5b3204,_0xc646e6;}let P=class extends _0x274e60{constructor(_0x342e0b=x,_0x5d5c6e,_0x16d4f9){var _0x59f8c0=_0x23327d;super(),this['_config']=_0x342e0b,this[_0x59f8c0(0x142)]=_0x5d5c6e,this['_configService']=_0x16d4f9;let {menu:_0x2431a9,..._0x15ab98}=_0x11cd5a({},x,this[_0x59f8c0(0x155)]);_0x2431a9&&this[_0x59f8c0(0x154)][_0x59f8c0(0x160)](_0x59f8c0(0x145),_0x2431a9,{'merge':!0x0}),this['_configService'][_0x59f8c0(0x160)](b,_0x15ab98);}[_0x23327d(0x15f)](){var _0x307d9c=_0x23327d;[[k]][_0x307d9c(0x13d)](_0x5cfb3d=>this[_0x307d9c(0x142)][_0x307d9c(0x171)](_0x5cfb3d));}[_0x23327d(0x15d)](){var _0x4f1aea=_0x23327d;this['_injector'][_0x4f1aea(0x139)](k);}};N(P,_0x23327d(0x148),_0x23327d(0x15c)),N(P,_0x23327d(0x166),v),N(P,_0x23327d(0x143),y),N(P,_0x23327d(0x170),_0xd22ab6[_0x23327d(0x169)]),P=O([_0x11de92(_0x6d9086),D(0x1,_0x17dd19(_0x48c09b)),D(0x2,_0x2b2ad0)],P);export{_ as ExportDOCXOperation,g as ImportDOCXOperation,P as UniverDocsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x23327d=_0x59eb;(function(_0x19bf81,_0x2e4cf8){var _0x58ed3=_0x59eb,_0x54fef7=_0x19bf81();while(!![]){try{var _0x2ebd3d=-parseInt(_0x58ed3(0x152))/0x1*(-parseInt(_0x58ed3(0x13c))/0x2)+parseInt(_0x58ed3(0x13e))/0x3+-parseInt(_0x58ed3(0x14b))/0x4*(parseInt(_0x58ed3(0x168))/0x5)+parseInt(_0x58ed3(0x13a))/0x6*(-parseInt(_0x58ed3(0x14f))/0x7)+-parseInt(_0x58ed3(0x165))/0x8+parseInt(_0x58ed3(0x158))/0x9+-parseInt(_0x58ed3(0x14c))/0xa*(-parseInt(_0x58ed3(0x144))/0xb);if(_0x2ebd3d===_0x2e4cf8)break;else _0x54fef7['push'](_0x54fef7['shift']());}catch(_0x140813){_0x54fef7['push'](_0x54fef7['shift']());}}}(_0x2ece,0x31605));import{IExchangeOperateService as _0x411a7a,UniverExchangeClientPlugin as _0x6d9086}from'@univerjs-pro/exchange-client';import{CommandType as _0x510627,DependentOn as _0x11de92,Disposable as _0x244543,ICommandService as _0x39f60d,IConfigService as _0x2b2ad0,Inject as _0x17dd19,Injector as _0x48c09b,Plugin as _0x274e60,UniverInstanceType as _0xd22ab6,merge as _0x11cd5a}from'@univerjs/core';function _0x2ece(){var _0x12a758=['OTHERS','importDOCXToUnitId','iterator','constructor','type','add','_initCommands','docs-exchange-client.config','registerCommand','length','default','get','9522uVpjoP','@univerjs-pro/docs-exchange-client','86klRjuQ','forEach','298239qXEDZR','FolderIcon','call','_commandService','_injector','version','163273dmUjHe','menu','docs-exchange-client.operation.exchange','prototype','pluginName','toPrimitive','exchange.file','56QFUPHH','100uZmpxv','SUBITEMS','disposeWithMe','315nXqvGO','symbol','object','1771lFszyJ','defineProperty','_configService','_config','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_menuManagerService','790254Uvazxq','string','exportDOCXByUnitId','exchange-client.operation.import-docx','DOC_EXCHANGE_CLIENT_PLUGIN','onReady','OPERATION','onStarting','setConfig','function','exchange.download','BUTTON','0.20.1','780784TyYhTk','packageName','_initMenus','14480YJdOOc','UNIVER_DOC','DirectExportIcon','getOwnPropertyDescriptor'];_0x2ece=function(){return _0x12a758;};return _0x2ece();}import{IMenuManagerService as _0x5a9e26,MenuItemType as _0x4cae43,RibbonStartGroup as _0x16c29b,getMenuHiddenObservable as _0x38ca89}from'@univerjs/ui';const g={'id':_0x23327d(0x15b),'type':_0x510627[_0x23327d(0x15e)],'handler':async _0x55411c=>(_0x55411c[_0x23327d(0x139)](_0x411a7a)[_0x23327d(0x16d)](),!0x0)},_={'id':'exchange-client.operation.export-docx','type':_0x510627[_0x23327d(0x15e)],'handler':async _0x90846=>(_0x90846[_0x23327d(0x139)](_0x411a7a)[_0x23327d(0x15a)](),!0x0)};var v=_0x23327d(0x13b),y=_0x23327d(0x164);const b=_0x23327d(0x135);Symbol(b);const x={},S=_0x23327d(0x146);function C(_0x1233af){var _0x172de4=_0x23327d;return{'id':S,'type':_0x4cae43[_0x172de4(0x14d)],'icon':_0x172de4(0x16a),'tooltip':_0x172de4(0x14a),'hidden$':_0x38ca89(_0x1233af,_0xd22ab6[_0x172de4(0x169)])};}function _0x59eb(_0x30f991,_0x197654){_0x30f991=_0x30f991-0x134;var _0x2eceb6=_0x2ece();var _0x59eba2=_0x2eceb6[_0x30f991];return _0x59eba2;}function w(){var _0x104df8=_0x23327d;return{'id':g['id'],'type':_0x4cae43[_0x104df8(0x163)],'title':'exchange.upload','icon':_0x104df8(0x13f)};}function T(){var _0x51ec1b=_0x23327d;return{'id':_['id'],'type':_0x4cae43[_0x51ec1b(0x163)],'title':_0x51ec1b(0x162),'icon':'ExportIcon'};}const E={[_0x16c29b[_0x23327d(0x16c)]]:{[S]:{'order':0.3,'menuItemFactory':C,[g['id']]:{'order':0x0,'menuItemFactory':w},[_['id']]:{'order':0x1,'menuItemFactory':T}}}};function D(_0x590301,_0x382148){return function(_0x5d995d,_0x538fb8){_0x382148(_0x5d995d,_0x538fb8,_0x590301);};}function O(_0x160e38,_0x1bd256,_0x233261,_0x2b1cfa){var _0x3de85c=_0x23327d,_0x3febd6=arguments['length'],_0xd5aa7=_0x3febd6<0x3?_0x1bd256:_0x2b1cfa===null?_0x2b1cfa=Object[_0x3de85c(0x16b)](_0x1bd256,_0x233261):_0x2b1cfa,_0x288609;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x3de85c(0x161))_0xd5aa7=Reflect['decorate'](_0x160e38,_0x1bd256,_0x233261,_0x2b1cfa);else{for(var _0x5ed330=_0x160e38[_0x3de85c(0x137)]-0x1;_0x5ed330>=0x0;_0x5ed330--)(_0x288609=_0x160e38[_0x5ed330])&&(_0xd5aa7=(_0x3febd6<0x3?_0x288609(_0xd5aa7):_0x3febd6>0x3?_0x288609(_0x1bd256,_0x233261,_0xd5aa7):_0x288609(_0x1bd256,_0x233261))||_0xd5aa7);}return _0x3febd6>0x3&&_0xd5aa7&&Object[_0x3de85c(0x153)](_0x1bd256,_0x233261,_0xd5aa7),_0xd5aa7;}let k=class extends _0x244543{constructor(_0x5de9b3,_0x582928){var _0x598b37=_0x23327d;super(),this[_0x598b37(0x141)]=_0x5de9b3,this[_0x598b37(0x157)]=_0x582928,this['_initCommands'](),this['_initMenus']();}[_0x23327d(0x134)](){var _0x1b6be1=_0x23327d;[g,_][_0x1b6be1(0x13d)](_0x5580fb=>{var _0x1a689d=_0x1b6be1;this[_0x1a689d(0x14e)](this[_0x1a689d(0x141)][_0x1a689d(0x136)](_0x5580fb));});}[_0x23327d(0x167)](){this['_menuManagerService']['mergeMenu'](E);}};k=O([D(0x0,_0x39f60d),D(0x1,_0x5a9e26)],k);function A(_0x37f8d8){'@babel/helpers - typeof';var _0x6a4579=_0x23327d;return A=typeof Symbol==_0x6a4579(0x161)&&typeof Symbol[_0x6a4579(0x16e)]==_0x6a4579(0x150)?function(_0x1e0322){return typeof _0x1e0322;}:function(_0x578b10){var _0x2db796=_0x6a4579;return _0x578b10&&typeof Symbol=='function'&&_0x578b10[_0x2db796(0x16f)]===Symbol&&_0x578b10!==Symbol[_0x2db796(0x147)]?_0x2db796(0x150):typeof _0x578b10;},A(_0x37f8d8);}function j(_0x181a3f,_0xb421){var _0x2f78d8=_0x23327d;if(A(_0x181a3f)!=_0x2f78d8(0x151)||!_0x181a3f)return _0x181a3f;var _0x2e9cbd=_0x181a3f[Symbol[_0x2f78d8(0x149)]];if(_0x2e9cbd!==void 0x0){var _0x13d0ff=_0x2e9cbd[_0x2f78d8(0x140)](_0x181a3f,_0xb421||_0x2f78d8(0x138));if(A(_0x13d0ff)!=_0x2f78d8(0x151))return _0x13d0ff;throw TypeError(_0x2f78d8(0x156));}return(_0xb421===_0x2f78d8(0x159)?String:Number)(_0x181a3f);}function M(_0x3951b7){var _0x1d5d2d=_0x23327d,_0x300ca9=j(_0x3951b7,_0x1d5d2d(0x159));return A(_0x300ca9)==_0x1d5d2d(0x150)?_0x300ca9:_0x300ca9+'';}function N(_0xc646e6,_0x3b393f,_0x5b3204){var _0x61fe84=_0x23327d;return(_0x3b393f=M(_0x3b393f))in _0xc646e6?Object[_0x61fe84(0x153)](_0xc646e6,_0x3b393f,{'value':_0x5b3204,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xc646e6[_0x3b393f]=_0x5b3204,_0xc646e6;}let P=class extends _0x274e60{constructor(_0x342e0b=x,_0x5d5c6e,_0x16d4f9){var _0x59f8c0=_0x23327d;super(),this['_config']=_0x342e0b,this[_0x59f8c0(0x142)]=_0x5d5c6e,this['_configService']=_0x16d4f9;let {menu:_0x2431a9,..._0x15ab98}=_0x11cd5a({},x,this[_0x59f8c0(0x155)]);_0x2431a9&&this[_0x59f8c0(0x154)][_0x59f8c0(0x160)](_0x59f8c0(0x145),_0x2431a9,{'merge':!0x0}),this['_configService'][_0x59f8c0(0x160)](b,_0x15ab98);}[_0x23327d(0x15f)](){var _0x307d9c=_0x23327d;[[k]][_0x307d9c(0x13d)](_0x5cfb3d=>this[_0x307d9c(0x142)][_0x307d9c(0x171)](_0x5cfb3d));}[_0x23327d(0x15d)](){var _0x4f1aea=_0x23327d;this['_injector'][_0x4f1aea(0x139)](k);}};N(P,_0x23327d(0x148),_0x23327d(0x15c)),N(P,_0x23327d(0x166),v),N(P,_0x23327d(0x143),y),N(P,_0x23327d(0x170),_0xd22ab6[_0x23327d(0x169)]),P=O([_0x11de92(_0x6d9086),D(0x1,_0x17dd19(_0x48c09b)),D(0x2,_0x2b2ad0)],P);export{_ as ExportDOCXOperation,g as ImportDOCXOperation,P as UniverDocsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x212f(){const _0x10dd5f=['Module','DirectExportIcon','function','_initMenus','1808800msaqIn','pluginName','getMenuHiddenObservable','1055RZMIpF','Inject','exportDOCXByUnitId','onStarting','CommandType','1725wksVoC','_injector','amd','_commandService','_menuManagerService','ExportIcon','decorate','DOC_EXCHANGE_CLIENT_PLUGIN','FolderIcon','toPrimitive','5586noIOFv','UniverCore','8HOWoGE','UniverExchangeClientPlugin','default','ExportDOCXOperation','exchange.upload','IMenuManagerService','menu','UniverInstanceType','Plugin','docs-exchange-client.operation.exchange','string','0.20.1','OTHERS','110pNZvIp','UniverProDocsExchangeClient','Disposable','prototype','DependentOn','exchange-client.operation.export-docx','UniverProExchangeClient','IConfigService','defineProperty','UNIVER_DOC','constructor','OPERATION','@univerjs/core','registerCommand','symbol','toStringTag','IExchangeOperateService','length','getOwnPropertyDescriptor','onReady','UniverDocsExchangeClientPlugin','@univerjs-pro/exchange-client','get','iterator','call','4880780WqDlZz','382551GYNAvX','object','BUTTON','1452618ktmpOd','packageName','exchange.download','Injector','8ZZYnUv','merge','importDOCXToUnitId','_configService','forEach','setConfig','docs-exchange-client.config','add','exports','8746694FgbgXq','version','_initCommands','mergeMenu'];_0x212f=function(){return _0x10dd5f;};return _0x212f();}function _0x5097(_0x22a670,_0x46dcf0){_0x22a670=_0x22a670-0x1cc;const _0x212f2e=_0x212f();let _0x509738=_0x212f2e[_0x22a670];return _0x509738;}(function(_0x89bf,_0x1b5077){const _0x195124=_0x5097,_0x93d700=_0x89bf();while(!![]){try{const _0x339e41=parseInt(_0x195124(0x1f0))/0x1*(-parseInt(_0x195124(0x209))/0x2)+parseInt(_0x195124(0x1d0))/0x3*(-parseInt(_0x195124(0x1d7))/0x4)+parseInt(_0x195124(0x1eb))/0x5*(parseInt(_0x195124(0x1fa))/0x6)+parseInt(_0x195124(0x1e8))/0x7+parseInt(_0x195124(0x1fc))/0x8*(-parseInt(_0x195124(0x1d3))/0x9)+-parseInt(_0x195124(0x1cf))/0xa+parseInt(_0x195124(0x1e0))/0xb;if(_0x339e41===_0x1b5077)break;else _0x93d700['push'](_0x93d700['shift']());}catch(_0x5e61d7){_0x93d700['push'](_0x93d700['shift']());}}}(_0x212f,0x3d2ee),function(_0x59bcdc,_0x28e75c){const _0x17b6d3=_0x5097;typeof exports=='object'&&typeof module<'u'?_0x28e75c(exports,require(`@univerjs-pro/exchange-client`),require(`@univerjs/core`),require(`@univerjs/ui`)):typeof define=='function'&&define[_0x17b6d3(0x1f2)]?define([_0x17b6d3(0x1df),_0x17b6d3(0x21e),_0x17b6d3(0x215),'@univerjs/ui'],_0x28e75c):(_0x59bcdc=typeof globalThis<'u'?globalThis:_0x59bcdc||self,_0x28e75c(_0x59bcdc[_0x17b6d3(0x20a)]={},_0x59bcdc[_0x17b6d3(0x20f)],_0x59bcdc[_0x17b6d3(0x1fb)],_0x59bcdc['UniverUi']));}(this,function(_0x2bc3dc,_0x252df8,_0x4b8fdb,_0x50116e){const _0x3b3d6f=_0x5097;Object['defineProperty'](_0x2bc3dc,Symbol[_0x3b3d6f(0x218)],{'value':_0x3b3d6f(0x1e4)});let _0xcd3a52={'id':'exchange-client.operation.import-docx','type':_0x4b8fdb[_0x3b3d6f(0x1ef)]['OPERATION'],'handler':async _0x2f5eb1=>(_0x2f5eb1[_0x3b3d6f(0x1cc)](_0x252df8[_0x3b3d6f(0x219)])[_0x3b3d6f(0x1d9)](),!0x0)},_0x16f85f={'id':_0x3b3d6f(0x20e),'type':_0x4b8fdb[_0x3b3d6f(0x1ef)][_0x3b3d6f(0x214)],'handler':async _0x4ba6dd=>(_0x4ba6dd['get'](_0x252df8[_0x3b3d6f(0x219)])[_0x3b3d6f(0x1ed)](),!0x0)};var _0x5a7300='@univerjs-pro/docs-exchange-client',_0x3b3245=_0x3b3d6f(0x207);let _0x26b562=_0x3b3d6f(0x1dd);Symbol(_0x26b562);let _0xb36288={},_0x51b186=_0x3b3d6f(0x205);function _0x36888a(_0x59c568){const _0x4253f7=_0x3b3d6f;return{'id':_0x51b186,'type':_0x50116e['MenuItemType']['SUBITEMS'],'icon':_0x4253f7(0x1e5),'tooltip':'exchange.file','hidden$':(0x0,_0x50116e[_0x4253f7(0x1ea)])(_0x59c568,_0x4b8fdb[_0x4253f7(0x203)][_0x4253f7(0x212)])};}function _0x4a75ec(){const _0x52e3ea=_0x3b3d6f;return{'id':_0xcd3a52['id'],'type':_0x50116e['MenuItemType'][_0x52e3ea(0x1d2)],'title':_0x52e3ea(0x200),'icon':_0x52e3ea(0x1f8)};}function _0x555f4c(){const _0x1a4410=_0x3b3d6f;return{'id':_0x16f85f['id'],'type':_0x50116e['MenuItemType'][_0x1a4410(0x1d2)],'title':_0x1a4410(0x1d5),'icon':_0x1a4410(0x1f5)};}let _0x424268={[_0x50116e['RibbonStartGroup'][_0x3b3d6f(0x208)]]:{[_0x51b186]:{'order':0.3,'menuItemFactory':_0x36888a,[_0xcd3a52['id']]:{'order':0x0,'menuItemFactory':_0x4a75ec},[_0x16f85f['id']]:{'order':0x1,'menuItemFactory':_0x555f4c}}}};function _0x4c94c7(_0x921016,_0xce7e4f){return function(_0x151252,_0x44c77c){_0xce7e4f(_0x151252,_0x44c77c,_0x921016);};}function _0x4a3a3e(_0x25304d,_0x351a47,_0x455866,_0x140491){const _0x1c238e=_0x3b3d6f;var _0x2a96fc=arguments[_0x1c238e(0x21a)],_0x31ad40=_0x2a96fc<0x3?_0x351a47:_0x140491===null?_0x140491=Object[_0x1c238e(0x21b)](_0x351a47,_0x455866):_0x140491,_0xf98b1b;if(typeof Reflect==_0x1c238e(0x1d1)&&typeof Reflect[_0x1c238e(0x1f6)]==_0x1c238e(0x1e6))_0x31ad40=Reflect[_0x1c238e(0x1f6)](_0x25304d,_0x351a47,_0x455866,_0x140491);else{for(var _0x4e462c=_0x25304d[_0x1c238e(0x21a)]-0x1;_0x4e462c>=0x0;_0x4e462c--)(_0xf98b1b=_0x25304d[_0x4e462c])&&(_0x31ad40=(_0x2a96fc<0x3?_0xf98b1b(_0x31ad40):_0x2a96fc>0x3?_0xf98b1b(_0x351a47,_0x455866,_0x31ad40):_0xf98b1b(_0x351a47,_0x455866))||_0x31ad40);}return _0x2a96fc>0x3&&_0x31ad40&&Object['defineProperty'](_0x351a47,_0x455866,_0x31ad40),_0x31ad40;}let _0x508db1=class extends _0x4b8fdb[_0x3b3d6f(0x20b)]{constructor(_0x118369,_0xd33244){const _0x250644=_0x3b3d6f;super(),this['_commandService']=_0x118369,this[_0x250644(0x1f4)]=_0xd33244,this[_0x250644(0x1e2)](),this[_0x250644(0x1e7)]();}[_0x3b3d6f(0x1e2)](){[_0xcd3a52,_0x16f85f]['forEach'](_0xd34226=>{const _0x3105a4=_0x5097;this['disposeWithMe'](this[_0x3105a4(0x1f3)][_0x3105a4(0x216)](_0xd34226));});}['_initMenus'](){const _0x504643=_0x3b3d6f;this[_0x504643(0x1f4)][_0x504643(0x1e3)](_0x424268);}};_0x508db1=_0x4a3a3e([_0x4c94c7(0x0,_0x4b8fdb['ICommandService']),_0x4c94c7(0x1,_0x50116e[_0x3b3d6f(0x201)])],_0x508db1);function _0x29dad3(_0x490d60){'@babel/helpers - typeof';const _0x955665=_0x3b3d6f;return _0x29dad3=typeof Symbol==_0x955665(0x1e6)&&typeof Symbol[_0x955665(0x1cd)]==_0x955665(0x217)?function(_0x5b7c36){return typeof _0x5b7c36;}:function(_0x2cf6d5){const _0x520b60=_0x955665;return _0x2cf6d5&&typeof Symbol==_0x520b60(0x1e6)&&_0x2cf6d5[_0x520b60(0x213)]===Symbol&&_0x2cf6d5!==Symbol[_0x520b60(0x20c)]?_0x520b60(0x217):typeof _0x2cf6d5;},_0x29dad3(_0x490d60);}function _0x1b500d(_0x1eb68c,_0x13f070){const _0x26a83b=_0x3b3d6f;if(_0x29dad3(_0x1eb68c)!='object'||!_0x1eb68c)return _0x1eb68c;var _0x551898=_0x1eb68c[Symbol[_0x26a83b(0x1f9)]];if(_0x551898!==void 0x0){var _0x1591f0=_0x551898[_0x26a83b(0x1ce)](_0x1eb68c,_0x13f070||_0x26a83b(0x1fe));if(_0x29dad3(_0x1591f0)!=_0x26a83b(0x1d1))return _0x1591f0;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x13f070===_0x26a83b(0x206)?String:Number)(_0x1eb68c);}function _0x35c3a3(_0x3b10f7){const _0x8e6405=_0x3b3d6f;var _0x4cc734=_0x1b500d(_0x3b10f7,_0x8e6405(0x206));return _0x29dad3(_0x4cc734)==_0x8e6405(0x217)?_0x4cc734:_0x4cc734+'';}function _0xa9734f(_0x4a1968,_0x4afd19,_0x2beea9){return(_0x4afd19=_0x35c3a3(_0x4afd19))in _0x4a1968?Object['defineProperty'](_0x4a1968,_0x4afd19,{'value':_0x2beea9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4a1968[_0x4afd19]=_0x2beea9,_0x4a1968;}let _0x94daa2=class extends _0x4b8fdb[_0x3b3d6f(0x204)]{constructor(_0xc89645=_0xb36288,_0x52cb6f,_0x4e7c57){const _0x1c74a3=_0x3b3d6f;super(),this['_config']=_0xc89645,this[_0x1c74a3(0x1f1)]=_0x52cb6f,this[_0x1c74a3(0x1da)]=_0x4e7c57;let {menu:_0x1da878,..._0x3ab47f}=(0x0,_0x4b8fdb[_0x1c74a3(0x1d8)])({},_0xb36288,this['_config']);_0x1da878&&this[_0x1c74a3(0x1da)]['setConfig'](_0x1c74a3(0x202),_0x1da878,{'merge':!0x0}),this[_0x1c74a3(0x1da)][_0x1c74a3(0x1dc)](_0x26b562,_0x3ab47f);}[_0x3b3d6f(0x1ee)](){const _0x368a31=_0x3b3d6f;[[_0x508db1]][_0x368a31(0x1db)](_0x3b1670=>this['_injector'][_0x368a31(0x1de)](_0x3b1670));}[_0x3b3d6f(0x21c)](){const _0x5e5fd4=_0x3b3d6f;this['_injector'][_0x5e5fd4(0x1cc)](_0x508db1);}};_0xa9734f(_0x94daa2,_0x3b3d6f(0x1e9),_0x3b3d6f(0x1f7)),_0xa9734f(_0x94daa2,_0x3b3d6f(0x1d4),_0x5a7300),_0xa9734f(_0x94daa2,_0x3b3d6f(0x1e1),_0x3b3245),_0xa9734f(_0x94daa2,'type',_0x4b8fdb[_0x3b3d6f(0x203)][_0x3b3d6f(0x212)]),_0x94daa2=_0x4a3a3e([(0x0,_0x4b8fdb[_0x3b3d6f(0x20d)])(_0x252df8[_0x3b3d6f(0x1fd)]),_0x4c94c7(0x1,(0x0,_0x4b8fdb[_0x3b3d6f(0x1ec)])(_0x4b8fdb[_0x3b3d6f(0x1d6)])),_0x4c94c7(0x2,_0x4b8fdb[_0x3b3d6f(0x210)])],_0x94daa2),_0x2bc3dc[_0x3b3d6f(0x1ff)]=_0x16f85f,_0x2bc3dc['ImportDOCXOperation']=_0xcd3a52,Object[_0x3b3d6f(0x211)](_0x2bc3dc,_0x3b3d6f(0x21d),{'enumerable':!0x0,'get':function(){return _0x94daa2;}});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/docs-exchange-client",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.1",
|
|
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.20.
|
|
46
|
-
"@univerjs/core": "0.20.
|
|
47
|
-
"@univerjs/ui": "0.20.
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.20.1",
|
|
46
|
+
"@univerjs/core": "0.20.1",
|
|
47
|
+
"@univerjs/ui": "0.20.1"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"typescript": "^6.0.2",
|
|
51
51
|
"vitest": "^4.1.1",
|
|
52
|
-
"@univerjs-infra/shared": "0.20.
|
|
52
|
+
"@univerjs-infra/shared": "0.20.1"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"test": "vitest run",
|