@univerjs-pro/docs-exchange-client 0.3.0-alpha.0 → 0.3.0
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/umd/index.js +1 -1
- package/package.json +10 -10
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3c1b88=_0x2927;(function(_0x2569cf,_0x4f65ce){const _0x25966a=_0x2927,_0x4cf598=_0x2569cf();while(!![]){try{const _0x38701e=parseInt(_0x25966a(0x188))/0x1+-parseInt(_0x25966a(0x175))/0x2+-parseInt(_0x25966a(0x17f))/0x3*(-parseInt(_0x25966a(0x155))/0x4)+parseInt(_0x25966a(0x166))/0x5*(parseInt(_0x25966a(0x14d))/0x6)+-parseInt(_0x25966a(0x184))/0x7+parseInt(_0x25966a(0x160))/0x8+parseInt(_0x25966a(0x161))/0x9;if(_0x38701e===_0x4f65ce)break;else _0x4cf598['push'](_0x4cf598['shift']());}catch(_0x58b912){_0x4cf598['push'](_0x4cf598['shift']());}}}(_0x2f0f,0x89f02));Object[_0x3c1b88(0x17b)](exports,Symbol[_0x3c1b88(0x186)],{'value':'Module'});function _0x2f0f(){const _0x533065=['DependentOn','CommandType','OnLifecycle','OPERATION','8184120ygLyks','1467306rmUonV','docs-exchange-client.operation.exchange','SUBITEMS','setConfig','Inject','55AbMoAN','_configService','exchange.download','UniverExchangeClientPlugin','length','DirectExportSingle','_commandService','Injector','@univerjs/ui','ImportDOCXOperation','docs-exchange-client.config','BUTTON','Ready','getMenuHiddenObservable','@univerjs-pro/exchange-client','2240438ydGagW','IMenuManagerService','LifecycleStages','ExportSingle','UniverInstanceType','symbol','defineProperty','getOwnPropertyDescriptor','registerCommand','exchange.file','191166qYapbd','FILE','DOC_EXCHANGE_CLIENT_PLUGIN','_injector','_initCommands','5249321JIqpEU','_initMenus','toStringTag','get','359432SyILXr','exchange-client.operation.export-docx','IConfigService','MenuItemType','ExportDOCXOperation','menu','ICommandService','450498yzRDzb','UNIVER_DOC','pluginName','Plugin','IExchangeOperateService','Disposable','type','initialize','4jaCLeR','@univerjs/core','UniverDocsExchangeClientPlugin','_config','disposeWithMe','mergeMenu','exchange-client.operation.import-docx'];_0x2f0f=function(){return _0x533065;};return _0x2f0f();}const o=require(_0x3c1b88(0x156)),g=require(_0x3c1b88(0x174)),s=require(_0x3c1b88(0x16e)),u={'id':_0x3c1b88(0x15b),'type':o[_0x3c1b88(0x15d)][_0x3c1b88(0x15f)],'handler':async _0x4503f7=>(_0x4503f7[_0x3c1b88(0x187)](g[_0x3c1b88(0x151)])['importDOCXToUnitId'](),!0x0)},l={'id':_0x3c1b88(0x147),'type':o[_0x3c1b88(0x15d)][_0x3c1b88(0x15f)],'handler':async _0x3dfb07=>(_0x3dfb07['get'](g[_0x3c1b88(0x151)])['exportDOCXByUnitId'](),!0x0)},_=_0x3c1b88(0x162);function C(_0x3d128c){const _0x542991=_0x3c1b88;return{'id':_,'type':s[_0x542991(0x149)][_0x542991(0x163)],'icon':_0x542991(0x16b),'tooltip':_0x542991(0x17e),'hidden$':s[_0x542991(0x173)](_0x3d128c,o['UniverInstanceType'][_0x542991(0x14e)])};}function O(){const _0x3e9379=_0x3c1b88;return{'id':u['id'],'type':s['MenuItemType'][_0x3e9379(0x171)],'title':'exchange.upload','icon':'FolderSingle'};}function I(){const _0x1a911c=_0x3c1b88;return{'id':l['id'],'type':s[_0x1a911c(0x149)][_0x1a911c(0x171)],'title':_0x1a911c(0x168),'icon':_0x1a911c(0x178)};}const f={[s['RibbonStartGroup'][_0x3c1b88(0x180)]]:{[_]:{'order':0x4,'menuItemFactory':C,[u['id']]:{'order':0x0,'menuItemFactory':O},[l['id']]:{'order':0x1,'menuItemFactory':I}}}};function _0x2927(_0x2085dd,_0x4aff84){const _0x2f0f96=_0x2f0f();return _0x2927=function(_0x292753,_0x25ee7f){_0x292753=_0x292753-0x147;let _0x14cc6a=_0x2f0f96[_0x292753];return _0x14cc6a;},_0x2927(_0x2085dd,_0x4aff84);}var E=Object[_0x3c1b88(0x17b)],x=Object[_0x3c1b88(0x17c)],D=(_0x151239,_0x56df3f,_0x132c69,_0x468342)=>{for(var _0x2ef75e=_0x468342>0x1?void 0x0:_0x468342?x(_0x56df3f,_0x132c69):_0x56df3f,_0x8fce4c=_0x151239['length']-0x1,_0x29d78c;_0x8fce4c>=0x0;_0x8fce4c--)(_0x29d78c=_0x151239[_0x8fce4c])&&(_0x2ef75e=(_0x468342?_0x29d78c(_0x56df3f,_0x132c69,_0x2ef75e):_0x29d78c(_0x2ef75e))||_0x2ef75e);return _0x468342&&_0x2ef75e&&E(_0x56df3f,_0x132c69,_0x2ef75e),_0x2ef75e;},d=(_0x4001cd,_0xa2a308)=>(_0x396b99,_0x2e83d9)=>_0xa2a308(_0x396b99,_0x2e83d9,_0x4001cd);let p=class extends o[_0x3c1b88(0x152)]{constructor(_0x137fb7,_0x53dbed){const _0x469381=_0x3c1b88;super(),this[_0x469381(0x16c)]=_0x137fb7,this['_menuManagerService']=_0x53dbed,this[_0x469381(0x183)](),this[_0x469381(0x185)]();}[_0x3c1b88(0x183)](){[u,l]['forEach'](_0x4c45ea=>{const _0x899404=_0x2927;this[_0x899404(0x159)](this[_0x899404(0x16c)][_0x899404(0x17d)](_0x4c45ea));});}[_0x3c1b88(0x185)](){const _0x541f8a=_0x3c1b88;this['_menuManagerService'][_0x541f8a(0x15a)](f);}};p=D([o[_0x3c1b88(0x15e)](o[_0x3c1b88(0x177)][_0x3c1b88(0x172)],p),d(0x0,o[_0x3c1b88(0x14c)]),d(0x1,s[_0x3c1b88(0x176)])],p);const y=_0x3c1b88(0x170),P={};var h=Object['defineProperty'],S=Object['getOwnPropertyDescriptor'],U=(_0x49668a,_0x29a5ae,_0x572b00)=>_0x29a5ae in _0x49668a?h(_0x49668a,_0x29a5ae,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x572b00}):_0x49668a[_0x29a5ae]=_0x572b00,T=(_0x11315b,_0x7d558c,_0x1bbf82,_0x3e9810)=>{const _0x107af6=_0x3c1b88;for(var _0x289c43=_0x3e9810>0x1?void 0x0:_0x3e9810?S(_0x7d558c,_0x1bbf82):_0x7d558c,_0x24e2c6=_0x11315b[_0x107af6(0x16a)]-0x1,_0x332553;_0x24e2c6>=0x0;_0x24e2c6--)(_0x332553=_0x11315b[_0x24e2c6])&&(_0x289c43=(_0x3e9810?_0x332553(_0x7d558c,_0x1bbf82,_0x289c43):_0x332553(_0x289c43))||_0x289c43);return _0x3e9810&&_0x289c43&&h(_0x7d558c,_0x1bbf82,_0x289c43),_0x289c43;},m=(_0x1cf3e8,_0xe9bda2)=>(_0x366577,_0x3cf5ab)=>_0xe9bda2(_0x366577,_0x3cf5ab,_0x1cf3e8),v=(_0x211e8b,_0x17477e,_0x19da4f)=>U(_0x211e8b,typeof _0x17477e!=_0x3c1b88(0x17a)?_0x17477e+'':_0x17477e,_0x19da4f);const N=_0x3c1b88(0x181);exports[_0x3c1b88(0x157)]=class extends o[_0x3c1b88(0x150)]{constructor(_0x124e26=P,_0x5a57d9,_0x382d28){const _0x2601ce=_0x3c1b88;super(),this[_0x2601ce(0x158)]=_0x124e26,this[_0x2601ce(0x182)]=_0x5a57d9,this['_configService']=_0x382d28;const {menu:_0x565482,..._0x4f9130}=this[_0x2601ce(0x158)];_0x565482&&this['_configService'][_0x2601ce(0x164)](_0x2601ce(0x14b),_0x565482,{'merge':!0x0}),this[_0x2601ce(0x167)][_0x2601ce(0x164)](y,_0x4f9130);}[_0x3c1b88(0x154)](){const _0x140ab8=_0x3c1b88;[[p]]['forEach'](_0x2bdf82=>this[_0x140ab8(0x182)]['add'](_0x2bdf82));}['onReady'](){const _0x136cb9=_0x3c1b88;this[_0x136cb9(0x154)]();}},v(exports[_0x3c1b88(0x157)],_0x3c1b88(0x14f),N),v(exports[_0x3c1b88(0x157)],_0x3c1b88(0x153),o[_0x3c1b88(0x179)][_0x3c1b88(0x14e)]),exports['UniverDocsExchangeClientPlugin']=T([o[_0x3c1b88(0x15c)](g[_0x3c1b88(0x169)]),m(0x1,o[_0x3c1b88(0x165)](o[_0x3c1b88(0x16d)])),m(0x2,o[_0x3c1b88(0x148)])],exports[_0x3c1b88(0x157)]),exports[_0x3c1b88(0x14a)]=l,exports[_0x3c1b88(0x16f)]=u;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x46147a=_0x4589;(function(_0x201fb5,_0x165113){const _0x709ae9=_0x4589,_0x4197d4=_0x201fb5();while(!![]){try{const _0x39d083=-parseInt(_0x709ae9(0x10e))/0x1*(parseInt(_0x709ae9(0x10d))/0x2)+parseInt(_0x709ae9(0x106))/0x3*(-parseInt(_0x709ae9(0x121))/0x4)+-parseInt(_0x709ae9(0x10a))/0x5+-parseInt(_0x709ae9(0x116))/0x6+-parseInt(_0x709ae9(0x11d))/0x7+parseInt(_0x709ae9(0x102))/0x8+parseInt(_0x709ae9(0x127))/0x9;if(_0x39d083===_0x165113)break;else _0x4197d4['push'](_0x4197d4['shift']());}catch(_0x34e184){_0x4197d4['push'](_0x4197d4['shift']());}}}(_0x2c83,0x2cf0d));import{CommandType as _0x5e841f,UniverInstanceType as _0x2ff1ce,OnLifecycle as _0x340057,LifecycleStages as _0x20bd15,Disposable as _0x26a341,ICommandService as _0x4c1a5e,DependentOn as _0x3361c7,Inject as _0x15ac81,Injector as _0x366801,Plugin as _0x6fa3c0,IConfigService as _0x3876f8}from'@univerjs/core';function _0x2c83(){const _0x31f9df=['mergeMenu','11477682eBIUvf','OPERATION','_initMenus','registerCommand','docs-exchange-client.config','pluginName','exportDOCXByUnitId','exchange.upload','_initCommands','396568KpTPtY','_configService','initialize','type','471zzJAeD','BUTTON','SUBITEMS','exchange-client.operation.import-docx','1134045MTQpId','_commandService','_menuManagerService','2hEOooj','115578MhQCPH','onReady','getOwnPropertyDescriptor','setConfig','ExportSingle','DirectExportSingle','FILE','docs-exchange-client.operation.exchange','1855302irSGKy','add','symbol','exchange.file','Ready','forEach','defineProperty','1350503CTRelM','DOC_EXCHANGE_CLIENT_PLUGIN','UNIVER_DOC','_config','7548ckLGqm','disposeWithMe','_injector','menu','get'];_0x2c83=function(){return _0x31f9df;};return _0x2c83();}import{IExchangeOperateService as _0x2b458a,UniverExchangeClientPlugin as _0x4231ed}from'@univerjs-pro/exchange-client';import{MenuItemType as _0xa443fc,getMenuHiddenObservable as _0x5804a4,RibbonStartGroup as _0x2ea25d,IMenuManagerService as _0x3a1f27}from'@univerjs/ui';const d={'id':_0x46147a(0x109),'type':_0x5e841f[_0x46147a(0xfa)],'handler':async _0x46b1e4=>(_0x46b1e4[_0x46147a(0x125)](_0x2b458a)['importDOCXToUnitId'](),!0x0)},l={'id':'exchange-client.operation.export-docx','type':_0x5e841f[_0x46147a(0xfa)],'handler':async _0x2f791e=>(_0x2f791e['get'](_0x2b458a)[_0x46147a(0xff)](),!0x0)},f=_0x46147a(0x115);function F(_0x179533){const _0x44b05f=_0x46147a;return{'id':f,'type':_0xa443fc[_0x44b05f(0x108)],'icon':_0x44b05f(0x113),'tooltip':_0x44b05f(0x119),'hidden$':_0x5804a4(_0x179533,_0x2ff1ce['UNIVER_DOC'])};}function X(){const _0x7a046f=_0x46147a;return{'id':d['id'],'type':_0xa443fc[_0x7a046f(0x107)],'title':_0x7a046f(0x100),'icon':'FolderSingle'};}function G(){const _0x5f0218=_0x46147a;return{'id':l['id'],'type':_0xa443fc[_0x5f0218(0x107)],'title':'exchange.download','icon':_0x5f0218(0x112)};}const L={[_0x2ea25d[_0x46147a(0x114)]]:{[f]:{'order':0x4,'menuItemFactory':F,[d['id']]:{'order':0x0,'menuItemFactory':X},[l['id']]:{'order':0x1,'menuItemFactory':G}}}};var R=Object[_0x46147a(0x11c)],j=Object[_0x46147a(0x110)],w=(_0x569b74,_0x367efa,_0x131cda,_0x538ba5)=>{for(var _0x5d4aee=_0x538ba5>0x1?void 0x0:_0x538ba5?j(_0x367efa,_0x131cda):_0x367efa,_0x3a192f=_0x569b74['length']-0x1,_0x447b33;_0x3a192f>=0x0;_0x3a192f--)(_0x447b33=_0x569b74[_0x3a192f])&&(_0x5d4aee=(_0x538ba5?_0x447b33(_0x367efa,_0x131cda,_0x5d4aee):_0x447b33(_0x5d4aee))||_0x5d4aee);return _0x538ba5&&_0x5d4aee&&R(_0x367efa,_0x131cda,_0x5d4aee),_0x5d4aee;},u=(_0x18f382,_0x8ead58)=>(_0x525546,_0x12ca7c)=>_0x8ead58(_0x525546,_0x12ca7c,_0x18f382);let a=class extends _0x26a341{constructor(_0x43becb,_0x4cf88a){const _0x3e3322=_0x46147a;super(),this[_0x3e3322(0x10b)]=_0x43becb,this[_0x3e3322(0x10c)]=_0x4cf88a,this[_0x3e3322(0x101)](),this[_0x3e3322(0xfb)]();}[_0x46147a(0x101)](){const _0x48f5b3=_0x46147a;[d,l][_0x48f5b3(0x11b)](_0x33f858=>{const _0x4f4b59=_0x48f5b3;this[_0x4f4b59(0x122)](this['_commandService'][_0x4f4b59(0xfc)](_0x33f858));});}[_0x46147a(0xfb)](){const _0x4255e7=_0x46147a;this['_menuManagerService'][_0x4255e7(0x126)](L);}};a=w([_0x340057(_0x20bd15[_0x46147a(0x11a)],a),u(0x0,_0x4c1a5e),u(0x1,_0x3a1f27)],a);const A=_0x46147a(0xfd),B={};function _0x4589(_0x42d68e,_0x40d271){const _0x2c83f5=_0x2c83();return _0x4589=function(_0x4589cb,_0x2dca51){_0x4589cb=_0x4589cb-0xfa;let _0x5d315f=_0x2c83f5[_0x4589cb];return _0x5d315f;},_0x4589(_0x42d68e,_0x40d271);}var v=Object[_0x46147a(0x11c)],$=Object['getOwnPropertyDescriptor'],H=(_0x2c3917,_0x550774,_0x44b951)=>_0x550774 in _0x2c3917?v(_0x2c3917,_0x550774,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x44b951}):_0x2c3917[_0x550774]=_0x44b951,z=(_0x1fa66d,_0x111e99,_0x567160,_0x29c4b6)=>{for(var _0x13e5a5=_0x29c4b6>0x1?void 0x0:_0x29c4b6?$(_0x111e99,_0x567160):_0x111e99,_0x139265=_0x1fa66d['length']-0x1,_0x50a315;_0x139265>=0x0;_0x139265--)(_0x50a315=_0x1fa66d[_0x139265])&&(_0x13e5a5=(_0x29c4b6?_0x50a315(_0x111e99,_0x567160,_0x13e5a5):_0x50a315(_0x13e5a5))||_0x13e5a5);return _0x29c4b6&&_0x13e5a5&&v(_0x111e99,_0x567160,_0x13e5a5),_0x13e5a5;},m=(_0x10c953,_0xe3fc8c)=>(_0x237544,_0x568282)=>_0xe3fc8c(_0x237544,_0x568282,_0x10c953),I=(_0x4a127c,_0x4c3783,_0x44007d)=>H(_0x4a127c,typeof _0x4c3783!=_0x46147a(0x118)?_0x4c3783+'':_0x4c3783,_0x44007d);const V=_0x46147a(0x11e);let s=class extends _0x6fa3c0{constructor(_0x4b10ca=B,_0x106d02,_0x53e703){const _0x461590=_0x46147a;super(),this[_0x461590(0x120)]=_0x4b10ca,this[_0x461590(0x123)]=_0x106d02,this[_0x461590(0x103)]=_0x53e703;const {menu:_0x1b0c3f,..._0x37b0d9}=this['_config'];_0x1b0c3f&&this[_0x461590(0x103)]['setConfig'](_0x461590(0x124),_0x1b0c3f,{'merge':!0x0}),this[_0x461590(0x103)][_0x461590(0x111)](A,_0x37b0d9);}[_0x46147a(0x104)](){const _0x5ac9d5=_0x46147a;[[a]][_0x5ac9d5(0x11b)](_0x988838=>this['_injector'][_0x5ac9d5(0x117)](_0x988838));}[_0x46147a(0x10f)](){const _0x248a02=_0x46147a;this[_0x248a02(0x104)]();}};I(s,_0x46147a(0xfe),V),I(s,_0x46147a(0x105),_0x2ff1ce[_0x46147a(0x11f)]),s=z([_0x3361c7(_0x4231ed),m(0x1,_0x15ac81(_0x366801)),m(0x2,_0x3876f8)],s);export{l as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2c5120,_0xa08429){const _0x23624a=_0x5dcf,_0x2f6767=_0x2c5120();while(!![]){try{const _0x2acc8f=-parseInt(_0x23624a(0x85))/0x1+-parseInt(_0x23624a(0x98))/0x2*(-parseInt(_0x23624a(0xae))/0x3)+parseInt(_0x23624a(0x94))/0x4*(-parseInt(_0x23624a(0xb4))/0x5)+-parseInt(_0x23624a(0xb3))/0x6*(parseInt(_0x23624a(0xa4))/0x7)+-parseInt(_0x23624a(0xca))/0x8*(-parseInt(_0x23624a(0xc1))/0x9)+-parseInt(_0x23624a(0xc9))/0xa*(parseInt(_0x23624a(0xa5))/0xb)+parseInt(_0x23624a(0x91))/0xc*(parseInt(_0x23624a(0xb5))/0xd);if(_0x2acc8f===_0xa08429)break;else _0x2f6767['push'](_0x2f6767['shift']());}catch(_0x1b5a52){_0x2f6767['push'](_0x2f6767['shift']());}}}(_0x4cda,0x92bf8),function(_0x15c946,_0xf1fa2a){const _0xf94a46=_0x5dcf;typeof exports=='object'&&typeof module<'u'?_0xf1fa2a(exports,require(_0xf94a46(0xa1)),require(_0xf94a46(0xaa)),require('@univerjs/ui')):typeof define==_0xf94a46(0xc4)&&define[_0xf94a46(0xaf)]?define([_0xf94a46(0xa9),_0xf94a46(0xa1),'@univerjs-pro/exchange-client','@univerjs/ui'],_0xf1fa2a):(_0x15c946=typeof globalThis<'u'?globalThis:_0x15c946||self,_0xf1fa2a(_0x15c946[_0xf94a46(0xa3)]={},_0x15c946[_0xf94a46(0xc2)],_0x15c946[_0xf94a46(0x8c)],_0x15c946[_0xf94a46(0x84)]));}(this,function(_0x183d09,_0x599be6,_0x368e64,_0x45d0c2){'use strict';const _0x30ad93=_0x5dcf;const _0x342b01={'id':_0x30ad93(0x99),'type':_0x599be6['CommandType'][_0x30ad93(0xc5)],'handler':async _0x4da93a=>(_0x4da93a['get'](_0x368e64['IExchangeOperateService'])[_0x30ad93(0x97)](),!0x0)},_0x3345d={'id':_0x30ad93(0x86),'type':_0x599be6['CommandType'][_0x30ad93(0xc5)],'handler':async _0x109c42=>(_0x109c42[_0x30ad93(0x8e)](_0x368e64[_0x30ad93(0xbb)])[_0x30ad93(0x9b)](),!0x0)},_0xeba10d=_0x30ad93(0x9d);function _0x85eedd(_0x572b19){const _0x24afcf=_0x30ad93;return{'id':_0xeba10d,'type':_0x45d0c2[_0x24afcf(0x9e)][_0x24afcf(0xba)],'icon':_0x24afcf(0xb1),'tooltip':_0x24afcf(0x92),'hidden$':_0x45d0c2[_0x24afcf(0x88)](_0x572b19,_0x599be6[_0x24afcf(0xc6)][_0x24afcf(0x9c)])};}function _0x27eb6a(){const _0x5050d2=_0x30ad93;return{'id':_0x342b01['id'],'type':_0x45d0c2[_0x5050d2(0x9e)][_0x5050d2(0xb7)],'title':_0x5050d2(0xad),'icon':_0x5050d2(0xc8)};}function _0x3ae890(){const _0x4224ac=_0x30ad93;return{'id':_0x3345d['id'],'type':_0x45d0c2[_0x4224ac(0x9e)][_0x4224ac(0xb7)],'title':_0x4224ac(0x81),'icon':_0x4224ac(0x83)};}const _0x46c0ee={[_0x45d0c2[_0x30ad93(0xc0)]['FILE']]:{[_0xeba10d]:{'order':0x4,'menuItemFactory':_0x85eedd,[_0x342b01['id']]:{'order':0x0,'menuItemFactory':_0x27eb6a},[_0x3345d['id']]:{'order':0x1,'menuItemFactory':_0x3ae890}}}};var _0x220a5b=Object[_0x30ad93(0xc7)],_0x57462b=Object[_0x30ad93(0x90)],_0x12bcdb=(_0x2b8ec5,_0x49b321,_0x3f9876,_0x23ffda)=>{const _0x13b2a8=_0x30ad93;for(var _0x366f80=_0x23ffda>0x1?void 0x0:_0x23ffda?_0x57462b(_0x49b321,_0x3f9876):_0x49b321,_0x2cd3d1=_0x2b8ec5[_0x13b2a8(0x8d)]-0x1,_0x398e1d;_0x2cd3d1>=0x0;_0x2cd3d1--)(_0x398e1d=_0x2b8ec5[_0x2cd3d1])&&(_0x366f80=(_0x23ffda?_0x398e1d(_0x49b321,_0x3f9876,_0x366f80):_0x398e1d(_0x366f80))||_0x366f80);return _0x23ffda&&_0x366f80&&_0x220a5b(_0x49b321,_0x3f9876,_0x366f80),_0x366f80;},_0x59c119=(_0xac596b,_0x229965)=>(_0x1cc200,_0x3662a9)=>_0x229965(_0x1cc200,_0x3662a9,_0xac596b);let _0x3f9586=class extends _0x599be6[_0x30ad93(0x9f)]{constructor(_0x1b05de,_0x2c6057){const _0x7019de=_0x30ad93;super(),this[_0x7019de(0x87)]=_0x1b05de,this[_0x7019de(0xb8)]=_0x2c6057,this['_initCommands'](),this[_0x7019de(0xb6)]();}[_0x30ad93(0x82)](){const _0x2761f9=_0x30ad93;[_0x342b01,_0x3345d][_0x2761f9(0xbd)](_0x16d9bf=>{const _0x1c9263=_0x2761f9;this['disposeWithMe'](this[_0x1c9263(0x87)]['registerCommand'](_0x16d9bf));});}[_0x30ad93(0xb6)](){const _0x5e238e=_0x30ad93;this[_0x5e238e(0xb8)][_0x5e238e(0xb0)](_0x46c0ee);}};_0x3f9586=_0x12bcdb([_0x599be6[_0x30ad93(0xbc)](_0x599be6[_0x30ad93(0x96)]['Ready'],_0x3f9586),_0x59c119(0x0,_0x599be6[_0x30ad93(0x89)]),_0x59c119(0x1,_0x45d0c2[_0x30ad93(0xac)])],_0x3f9586);const _0x44721a=_0x30ad93(0x8a),_0x17af89={};var _0x3f9de6=Object['defineProperty'],_0x3707b7=Object[_0x30ad93(0x90)],_0x7acd68=(_0x1ca391,_0x449f99,_0x4e2357)=>_0x449f99 in _0x1ca391?_0x3f9de6(_0x1ca391,_0x449f99,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4e2357}):_0x1ca391[_0x449f99]=_0x4e2357,_0x397ec9=(_0x480d68,_0x538e1e,_0x14a8a0,_0x1b6b1c)=>{const _0x5d85b7=_0x30ad93;for(var _0x260a92=_0x1b6b1c>0x1?void 0x0:_0x1b6b1c?_0x3707b7(_0x538e1e,_0x14a8a0):_0x538e1e,_0x308c2e=_0x480d68[_0x5d85b7(0x8d)]-0x1,_0x43725c;_0x308c2e>=0x0;_0x308c2e--)(_0x43725c=_0x480d68[_0x308c2e])&&(_0x260a92=(_0x1b6b1c?_0x43725c(_0x538e1e,_0x14a8a0,_0x260a92):_0x43725c(_0x260a92))||_0x260a92);return _0x1b6b1c&&_0x260a92&&_0x3f9de6(_0x538e1e,_0x14a8a0,_0x260a92),_0x260a92;},_0x390b8d=(_0x2753f2,_0x46f1bb)=>(_0x4037c1,_0x483006)=>_0x46f1bb(_0x4037c1,_0x483006,_0x2753f2),_0x2e675b=(_0xfa2ef,_0x79c6de,_0x55cb8d)=>_0x7acd68(_0xfa2ef,typeof _0x79c6de!=_0x30ad93(0xbe)?_0x79c6de+'':_0x79c6de,_0x55cb8d);const _0x1dc37b='DOC_EXCHANGE_CLIENT_PLUGIN';_0x183d09[_0x30ad93(0xc3)]=class extends _0x599be6['Plugin']{constructor(_0x205521=_0x17af89,_0x45e887,_0x7ff4f5){const _0x244397=_0x30ad93;super(),this[_0x244397(0xa7)]=_0x205521,this[_0x244397(0x95)]=_0x45e887,this['_configService']=_0x7ff4f5;const {menu:_0x1d6df3,..._0x55125e}=this[_0x244397(0xa7)];_0x1d6df3&&this[_0x244397(0xbf)][_0x244397(0x8f)](_0x244397(0xb2),_0x1d6df3,{'merge':!0x0}),this[_0x244397(0xbf)]['setConfig'](_0x44721a,_0x55125e);}[_0x30ad93(0x8b)](){const _0x3682b8=_0x30ad93;[[_0x3f9586]][_0x3682b8(0xbd)](_0x56d2bd=>this['_injector'][_0x3682b8(0xa8)](_0x56d2bd));}['onReady'](){const _0xff6303=_0x30ad93;this[_0xff6303(0x8b)]();}},_0x2e675b(_0x183d09[_0x30ad93(0xc3)],_0x30ad93(0xa2),_0x1dc37b),_0x2e675b(_0x183d09[_0x30ad93(0xc3)],_0x30ad93(0x9a),_0x599be6[_0x30ad93(0xc6)][_0x30ad93(0x9c)]),_0x183d09['UniverDocsExchangeClientPlugin']=_0x397ec9([_0x599be6['DependentOn'](_0x368e64['UniverExchangeClientPlugin']),_0x390b8d(0x1,_0x599be6[_0x30ad93(0xb9)](_0x599be6[_0x30ad93(0xab)])),_0x390b8d(0x2,_0x599be6[_0x30ad93(0x93)])],_0x183d09[_0x30ad93(0xc3)]),_0x183d09[_0x30ad93(0xa0)]=_0x3345d,_0x183d09['ImportDOCXOperation']=_0x342b01,Object[_0x30ad93(0xc7)](_0x183d09,Symbol['toStringTag'],{'value':_0x30ad93(0xa6)});}));function _0x5dcf(_0x428974,_0xf6b7b9){const _0x4cda87=_0x4cda();return _0x5dcf=function(_0x5dcfb8,_0x58ec61){_0x5dcfb8=_0x5dcfb8-0x81;let _0x10e654=_0x4cda87[_0x5dcfb8];return _0x10e654;},_0x5dcf(_0x428974,_0xf6b7b9);}function _0x4cda(){const _0x23f139=['IConfigService','10488NAiPva','_injector','LifecycleStages','importDOCXToUnitId','33314ZQWnWb','exchange-client.operation.import-docx','type','exportDOCXByUnitId','UNIVER_DOC','docs-exchange-client.operation.exchange','MenuItemType','Disposable','ExportDOCXOperation','@univerjs/core','pluginName','UniverDocsExchangeClient','119HeiwLM','781KyrOPK','Module','_config','add','exports','@univerjs-pro/exchange-client','Injector','IMenuManagerService','exchange.upload','9jLGSpp','amd','mergeMenu','DirectExportSingle','menu','111426oSCafr','80GPWuFs','13qqKnqo','_initMenus','BUTTON','_menuManagerService','Inject','SUBITEMS','IExchangeOperateService','OnLifecycle','forEach','symbol','_configService','RibbonStartGroup','8776971EqwBDe','UniverCore','UniverDocsExchangeClientPlugin','function','OPERATION','UniverInstanceType','defineProperty','FolderSingle','165730GaCthL','8PbvPHC','exchange.download','_initCommands','ExportSingle','UniverUi','699378TdySQG','exchange-client.operation.export-docx','_commandService','getMenuHiddenObservable','ICommandService','docs-exchange-client.config','initialize','UniverExchangeClient','length','get','setConfig','getOwnPropertyDescriptor','21715320bunsYB','exchange.file'];_0x4cda=function(){return _0x23f139;};return _0x4cda();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/docs-exchange-client",
|
|
3
|
-
"version": "0.3.0
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -43,18 +43,18 @@
|
|
|
43
43
|
"lib"
|
|
44
44
|
],
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@univerjs
|
|
47
|
-
"@univerjs/ui": "0.3.0
|
|
48
|
-
"@univerjs/
|
|
46
|
+
"@univerjs/core": "0.3.0",
|
|
47
|
+
"@univerjs/ui": "0.3.0",
|
|
48
|
+
"@univerjs-pro/exchange-client": "0.3.0"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@univerjs/icons": "^0.1.78",
|
|
52
52
|
"pako": "^2.1.0",
|
|
53
|
-
"@univerjs/
|
|
54
|
-
"@univerjs
|
|
55
|
-
"@univerjs/docs": "0.3.0
|
|
56
|
-
"@univerjs/
|
|
57
|
-
"@univerjs/
|
|
53
|
+
"@univerjs-pro/exchange-client": "0.3.0",
|
|
54
|
+
"@univerjs/core": "0.3.0",
|
|
55
|
+
"@univerjs/docs-ui": "0.3.0",
|
|
56
|
+
"@univerjs/docs": "0.3.0",
|
|
57
|
+
"@univerjs/protocol": "0.1.39-alpha.22"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@types/pako": "^2.0.3",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"typescript": "^5.6.2",
|
|
64
64
|
"vite": "^5.4.8",
|
|
65
65
|
"vitest": "^2.1.1",
|
|
66
|
-
"@univerjs-infra/shared": "0.3.0
|
|
66
|
+
"@univerjs-infra/shared": "0.3.0"
|
|
67
67
|
},
|
|
68
68
|
"univerSpace": {
|
|
69
69
|
".": {
|