@univerjs-pro/docs-exchange-client 0.2.15 → 0.3.0-alpha.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/types/index.d.ts +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +12 -12
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x9673d1=_0x50f1;(function(_0x1bf98d,_0x10871d){const _0x217575=_0x50f1,_0x1d840d=_0x1bf98d();while(!![]){try{const _0xdb4482=-parseInt(_0x217575(0x1de))/0x1*(parseInt(_0x217575(0x1df))/0x2)+-parseInt(_0x217575(0x19e))/0x3+parseInt(_0x217575(0x1ca))/0x4*(-parseInt(_0x217575(0x1c9))/0x5)+-parseInt(_0x217575(0x1a0))/0x6+-parseInt(_0x217575(0x1af))/0x7+parseInt(_0x217575(0x1a8))/0x8+parseInt(_0x217575(0x1bc))/0x9*(parseInt(_0x217575(0x1c7))/0xa);if(_0xdb4482===_0x10871d)break;else _0x1d840d['push'](_0x1d840d['shift']());}catch(_0x1a3a16){_0x1d840d['push'](_0x1d840d['shift']());}}}(_0x5ef8,0x71a60));function _0x50f1(_0x44d0d0,_0x283847){const _0x5ef882=_0x5ef8();return _0x50f1=function(_0x50f1d2,_0x4bef15){_0x50f1d2=_0x50f1d2-0x19d;let _0x1cb160=_0x5ef882[_0x50f1d2];return _0x1cb160;},_0x50f1(_0x44d0d0,_0x283847);}Object[_0x9673d1(0x1a3)](exports,Symbol[_0x9673d1(0x1d5)],{'value':_0x9673d1(0x1d9)});const o=require(_0x9673d1(0x1db)),g=require(_0x9673d1(0x1ad)),s=require(_0x9673d1(0x1d2)),u={'id':'exchange-client.operation.import-docx','type':o[_0x9673d1(0x1aa)]['OPERATION'],'handler':async _0x4abbcb=>(_0x4abbcb[_0x9673d1(0x1dd)](g[_0x9673d1(0x1c1)])[_0x9673d1(0x1cd)](),!0x0)},l={'id':_0x9673d1(0x1c5),'type':o[_0x9673d1(0x1aa)][_0x9673d1(0x1ab)],'handler':async _0x523f47=>(_0x523f47[_0x9673d1(0x1dd)](g[_0x9673d1(0x1c1)])[_0x9673d1(0x1bd)](),!0x0)},_=_0x9673d1(0x1be);function C(_0x5e7ca9){const _0x4dec28=_0x9673d1;return{'id':_,'type':s[_0x4dec28(0x1a5)]['SUBITEMS'],'icon':_0x4dec28(0x1a6),'tooltip':_0x4dec28(0x1cf),'hidden$':s[_0x4dec28(0x1a2)](_0x5e7ca9,o['UniverInstanceType'][_0x4dec28(0x1a4)])};}function O(){const _0x448b12=_0x9673d1;return{'id':u['id'],'type':s[_0x448b12(0x1a5)]['BUTTON'],'title':_0x448b12(0x1d7),'icon':_0x448b12(0x1a7)};}function I(){const _0x16fe1f=_0x9673d1;return{'id':l['id'],'type':s[_0x16fe1f(0x1a5)][_0x16fe1f(0x1c4)],'title':_0x16fe1f(0x1b5),'icon':_0x16fe1f(0x1d3)};}const f={[s[_0x9673d1(0x1d0)][_0x9673d1(0x1da)]]:{[_]:{'order':0x4,'menuItemFactory':C,[u['id']]:{'order':0x0,'menuItemFactory':O},[l['id']]:{'order':0x1,'menuItemFactory':I}}}};var E=Object[_0x9673d1(0x1a3)],x=Object[_0x9673d1(0x1e0)],D=(_0xa14fbb,_0x200086,_0x1b72d1,_0x30b998)=>{for(var _0x149aa0=_0x30b998>0x1?void 0x0:_0x30b998?x(_0x200086,_0x1b72d1):_0x200086,_0x4c32bf=_0xa14fbb['length']-0x1,_0x5802c7;_0x4c32bf>=0x0;_0x4c32bf--)(_0x5802c7=_0xa14fbb[_0x4c32bf])&&(_0x149aa0=(_0x30b998?_0x5802c7(_0x200086,_0x1b72d1,_0x149aa0):_0x5802c7(_0x149aa0))||_0x149aa0);return _0x30b998&&_0x149aa0&&E(_0x200086,_0x1b72d1,_0x149aa0),_0x149aa0;},d=(_0x2a3f61,_0x10bc85)=>(_0x3524b9,_0x23eb1c)=>_0x10bc85(_0x3524b9,_0x23eb1c,_0x2a3f61);let p=class extends o['Disposable']{constructor(_0x1196e8,_0x57d5e7){const _0x48e7fa=_0x9673d1;super(),this[_0x48e7fa(0x1c0)]=_0x1196e8,this[_0x48e7fa(0x1bf)]=_0x57d5e7,this[_0x48e7fa(0x1d8)](),this[_0x48e7fa(0x1cb)]();}[_0x9673d1(0x1d8)](){const _0x1346bd=_0x9673d1;[u,l][_0x1346bd(0x1b2)](_0x339d99=>{const _0x54b086=_0x1346bd;this[_0x54b086(0x19f)](this['_commandService'][_0x54b086(0x1b4)](_0x339d99));});}[_0x9673d1(0x1cb)](){const _0x59935f=_0x9673d1;this[_0x59935f(0x1bf)]['mergeMenu'](f);}};p=D([o['OnLifecycle'](o[_0x9673d1(0x1d4)][_0x9673d1(0x1ac)],p),d(0x0,o['ICommandService']),d(0x1,s[_0x9673d1(0x1c3)])],p);const y=_0x9673d1(0x1b3),P={};var h=Object[_0x9673d1(0x1a3)],S=Object['getOwnPropertyDescriptor'],U=(_0x54324f,_0x2d1ecc,_0x4c8d17)=>_0x2d1ecc in _0x54324f?h(_0x54324f,_0x2d1ecc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4c8d17}):_0x54324f[_0x2d1ecc]=_0x4c8d17,T=(_0x1de99f,_0x3d2b22,_0x41d407,_0x5e33ff)=>{const _0x426e74=_0x9673d1;for(var _0x3907d8=_0x5e33ff>0x1?void 0x0:_0x5e33ff?S(_0x3d2b22,_0x41d407):_0x3d2b22,_0x3487c8=_0x1de99f[_0x426e74(0x1ce)]-0x1,_0x3992a2;_0x3487c8>=0x0;_0x3487c8--)(_0x3992a2=_0x1de99f[_0x3487c8])&&(_0x3907d8=(_0x5e33ff?_0x3992a2(_0x3d2b22,_0x41d407,_0x3907d8):_0x3992a2(_0x3907d8))||_0x3907d8);return _0x5e33ff&&_0x3907d8&&h(_0x3d2b22,_0x41d407,_0x3907d8),_0x3907d8;},m=(_0x365b97,_0x412f15)=>(_0x52ba19,_0x4f59e4)=>_0x412f15(_0x52ba19,_0x4f59e4,_0x365b97),v=(_0x5e0a46,_0xf39907,_0x219220)=>U(_0x5e0a46,typeof _0xf39907!=_0x9673d1(0x1b6)?_0xf39907+'':_0xf39907,_0x219220);const N=_0x9673d1(0x1ba);exports['UniverDocsExchangeClientPlugin']=class extends o[_0x9673d1(0x1c8)]{constructor(_0x15f692=P,_0x334474,_0x5bbfa6){const _0x58b9ad=_0x9673d1;super(),this[_0x58b9ad(0x1b1)]=_0x15f692,this[_0x58b9ad(0x1a9)]=_0x334474,this[_0x58b9ad(0x1cc)]=_0x5bbfa6;const {menu:_0xb966a5,..._0x60cd}=this[_0x58b9ad(0x1b1)];_0xb966a5&&this['_configService'][_0x58b9ad(0x1b9)](_0x58b9ad(0x1c6),_0xb966a5,{'merge':!0x0}),this[_0x58b9ad(0x1cc)][_0x58b9ad(0x1b9)](y,_0x60cd);}[_0x9673d1(0x1ae)](){const _0x367b62=_0x9673d1;[[p]]['forEach'](_0x48bd43=>this[_0x367b62(0x1a9)][_0x367b62(0x19d)](_0x48bd43));}[_0x9673d1(0x1dc)](){const _0x16f91a=_0x9673d1;this[_0x16f91a(0x1ae)]();}},v(exports[_0x9673d1(0x1b0)],'pluginName',N),v(exports['UniverDocsExchangeClientPlugin'],_0x9673d1(0x1bb),o[_0x9673d1(0x1b8)][_0x9673d1(0x1a4)]),exports['UniverDocsExchangeClientPlugin']=T([o[_0x9673d1(0x1a1)](g['UniverExchangeClientPlugin']),m(0x1,o[_0x9673d1(0x1d6)](o[_0x9673d1(0x1b7)])),m(0x2,o['IConfigService'])],exports[_0x9673d1(0x1b0)]),exports[_0x9673d1(0x1d1)]=l,exports[_0x9673d1(0x1c2)]=u;function _0x5ef8(){const _0x588402=['IMenuManagerService','BUTTON','exchange-client.operation.export-docx','menu','11540JvsCfG','Plugin','4393250GfUHnU','4dQmPmW','_initMenus','_configService','importDOCXToUnitId','length','exchange.file','RibbonStartGroup','ExportDOCXOperation','@univerjs/ui','ExportSingle','LifecycleStages','toStringTag','Inject','exchange.upload','_initCommands','Module','FILE','@univerjs/core','onReady','get','136yvMVGx','8786RJTHxf','getOwnPropertyDescriptor','add','1897770JCzoyu','disposeWithMe','1271484LlKqPB','DependentOn','getMenuHiddenObservable','defineProperty','UNIVER_DOC','MenuItemType','DirectExportSingle','FolderSingle','2783080WTxOjt','_injector','CommandType','OPERATION','Ready','@univerjs-pro/exchange-client','initialize','3781771sldZSS','UniverDocsExchangeClientPlugin','_config','forEach','docs-exchange-client.config','registerCommand','exchange.download','symbol','Injector','UniverInstanceType','setConfig','DOC_EXCHANGE_CLIENT_PLUGIN','type','23229VlPwhp','exportDOCXByUnitId','docs-exchange-client.operation.exchange','_menuManagerService','_commandService','IExchangeOperateService','ImportDOCXOperation'];_0x5ef8=function(){return _0x588402;};return _0x5ef8();}
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x357686=_0x2fef;(function(_0x58dc60,_0x4dc469){const _0x14ef0c=_0x2fef,_0x3a9f1a=_0x58dc60();while(!![]){try{const _0x5cde2d=parseInt(_0x14ef0c(0x16e))/0x1+parseInt(_0x14ef0c(0x186))/0x2*(parseInt(_0x14ef0c(0x177))/0x3)+parseInt(_0x14ef0c(0x189))/0x4+-parseInt(_0x14ef0c(0x18e))/0x5+-parseInt(_0x14ef0c(0x169))/0x6+parseInt(_0x14ef0c(0x17a))/0x7+-parseInt(_0x14ef0c(0x191))/0x8;if(_0x5cde2d===_0x4dc469)break;else _0x3a9f1a['push'](_0x3a9f1a['shift']());}catch(_0x20679d){_0x3a9f1a['push'](_0x3a9f1a['shift']());}}}(_0x16ef,0x7ab11));function _0x2fef(_0x11493c,_0x43f436){const _0x16ef5e=_0x16ef();return _0x2fef=function(_0x2fef2a,_0x15cbf8){_0x2fef2a=_0x2fef2a-0x169;let _0x24bf6d=_0x16ef5e[_0x2fef2a];return _0x24bf6d;},_0x2fef(_0x11493c,_0x43f436);}import{CommandType as _0x57354a,UniverInstanceType as _0x3154c8,OnLifecycle as _0x5efef4,LifecycleStages as _0x4bb0c0,Disposable as _0x397f6c,ICommandService as _0x3d8be1,DependentOn as _0x42d89f,Inject as _0x854367,Injector as _0x55fb27,Plugin as _0x438e9e,IConfigService as _0x4fc785}from'@univerjs/core';import{IExchangeOperateService as _0x24525c,UniverExchangeClientPlugin as _0x3f0355}from'@univerjs-pro/exchange-client';import{MenuItemType as _0x584463,getMenuHiddenObservable as _0x397c08,RibbonStartGroup as _0x1a1398,IMenuManagerService as _0x2479b5}from'@univerjs/ui';const d={'id':_0x357686(0x188),'type':_0x57354a[_0x357686(0x187)],'handler':async _0xea7c16=>(_0xea7c16[_0x357686(0x16d)](_0x24525c)[_0x357686(0x17c)](),!0x0)},l={'id':'exchange-client.operation.export-docx','type':_0x57354a[_0x357686(0x187)],'handler':async _0x5c9d7b=>(_0x5c9d7b[_0x357686(0x16d)](_0x24525c)[_0x357686(0x176)](),!0x0)},f=_0x357686(0x174);function F(_0x4e1df9){const _0x57392c=_0x357686;return{'id':f,'type':_0x584463[_0x57392c(0x180)],'icon':_0x57392c(0x173),'tooltip':_0x57392c(0x17f),'hidden$':_0x397c08(_0x4e1df9,_0x3154c8[_0x57392c(0x18f)])};}function X(){const _0xdde214=_0x357686;return{'id':d['id'],'type':_0x584463[_0xdde214(0x178)],'title':'exchange.upload','icon':'FolderSingle'};}function G(){const _0x3b66c4=_0x357686;return{'id':l['id'],'type':_0x584463[_0x3b66c4(0x178)],'title':'exchange.download','icon':_0x3b66c4(0x16a)};}const L={[_0x1a1398[_0x357686(0x18a)]]:{[f]:{'order':0x4,'menuItemFactory':F,[d['id']]:{'order':0x0,'menuItemFactory':X},[l['id']]:{'order':0x1,'menuItemFactory':G}}}};var R=Object[_0x357686(0x184)],j=Object[_0x357686(0x171)],w=(_0x18ebfa,_0x3dd0ed,_0x3a3117,_0x40f824)=>{for(var _0x2f3674=_0x40f824>0x1?void 0x0:_0x40f824?j(_0x3dd0ed,_0x3a3117):_0x3dd0ed,_0x4f2dca=_0x18ebfa['length']-0x1,_0x5540d0;_0x4f2dca>=0x0;_0x4f2dca--)(_0x5540d0=_0x18ebfa[_0x4f2dca])&&(_0x2f3674=(_0x40f824?_0x5540d0(_0x3dd0ed,_0x3a3117,_0x2f3674):_0x5540d0(_0x2f3674))||_0x2f3674);return _0x40f824&&_0x2f3674&&R(_0x3dd0ed,_0x3a3117,_0x2f3674),_0x2f3674;},u=(_0x5ba768,_0x19a599)=>(_0xedf90d,_0x1db7d7)=>_0x19a599(_0xedf90d,_0x1db7d7,_0x5ba768);let a=class extends _0x397f6c{constructor(_0x2a2d82,_0x3a7973){const _0x47ccf8=_0x357686;super(),this[_0x47ccf8(0x16b)]=_0x2a2d82,this[_0x47ccf8(0x179)]=_0x3a7973,this[_0x47ccf8(0x193)](),this[_0x47ccf8(0x175)]();}[_0x357686(0x193)](){[d,l]['forEach'](_0x246077=>{const _0x3adf67=_0x2fef;this['disposeWithMe'](this[_0x3adf67(0x16b)][_0x3adf67(0x192)](_0x246077));});}[_0x357686(0x175)](){const _0x4a0b62=_0x357686;this[_0x4a0b62(0x179)][_0x4a0b62(0x182)](L);}};a=w([_0x5efef4(_0x4bb0c0[_0x357686(0x181)],a),u(0x0,_0x3d8be1),u(0x1,_0x2479b5)],a);const A=_0x357686(0x18c),B={};var v=Object[_0x357686(0x184)],$=Object[_0x357686(0x171)],H=(_0x337420,_0x397dc0,_0x49b582)=>_0x397dc0 in _0x337420?v(_0x337420,_0x397dc0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49b582}):_0x337420[_0x397dc0]=_0x49b582,z=(_0x24343e,_0x53f1f8,_0x590f1c,_0x1bdfca)=>{const _0x474df3=_0x357686;for(var _0xbe6b4e=_0x1bdfca>0x1?void 0x0:_0x1bdfca?$(_0x53f1f8,_0x590f1c):_0x53f1f8,_0x1d0fcd=_0x24343e[_0x474df3(0x17e)]-0x1,_0x58cce1;_0x1d0fcd>=0x0;_0x1d0fcd--)(_0x58cce1=_0x24343e[_0x1d0fcd])&&(_0xbe6b4e=(_0x1bdfca?_0x58cce1(_0x53f1f8,_0x590f1c,_0xbe6b4e):_0x58cce1(_0xbe6b4e))||_0xbe6b4e);return _0x1bdfca&&_0xbe6b4e&&v(_0x53f1f8,_0x590f1c,_0xbe6b4e),_0xbe6b4e;},m=(_0x22831f,_0x5e3649)=>(_0x25a139,_0x324a26)=>_0x5e3649(_0x25a139,_0x324a26,_0x22831f),I=(_0x3a757a,_0x540c5e,_0x50a376)=>H(_0x3a757a,typeof _0x540c5e!=_0x357686(0x190)?_0x540c5e+'':_0x540c5e,_0x50a376);const V=_0x357686(0x170);let s=class extends _0x438e9e{constructor(_0x484966=B,_0x514b04,_0x388c0a){const _0x4a520e=_0x357686;super(),this[_0x4a520e(0x17d)]=_0x484966,this[_0x4a520e(0x16f)]=_0x514b04,this[_0x4a520e(0x185)]=_0x388c0a;const {menu:_0x2c1cdd,..._0x595a53}=this[_0x4a520e(0x17d)];_0x2c1cdd&&this[_0x4a520e(0x185)][_0x4a520e(0x17b)]('menu',_0x2c1cdd,{'merge':!0x0}),this[_0x4a520e(0x185)][_0x4a520e(0x17b)](A,_0x595a53);}[_0x357686(0x172)](){const _0x2490e7=_0x357686;[[a]][_0x2490e7(0x18b)](_0x29f37a=>this['_injector'][_0x2490e7(0x183)](_0x29f37a));}[_0x357686(0x194)](){const _0x4d3074=_0x357686;this[_0x4d3074(0x172)]();}};function _0x16ef(){const _0x17d239=['_commandService','type','get','22846SDsqgu','_injector','DOC_EXCHANGE_CLIENT_PLUGIN','getOwnPropertyDescriptor','initialize','DirectExportSingle','docs-exchange-client.operation.exchange','_initMenus','exportDOCXByUnitId','715971cdKPSp','BUTTON','_menuManagerService','3796933zUkHtL','setConfig','importDOCXToUnitId','_config','length','exchange.file','SUBITEMS','Ready','mergeMenu','add','defineProperty','_configService','8OegyIv','OPERATION','exchange-client.operation.import-docx','288356TlDxwF','FILE','forEach','docs-exchange-client.config','pluginName','97640jpncOF','UNIVER_DOC','symbol','5158224AgmIIJ','registerCommand','_initCommands','onReady','2550786IpBmTY','ExportSingle'];_0x16ef=function(){return _0x17d239;};return _0x16ef();}I(s,_0x357686(0x18d),V),I(s,_0x357686(0x16c),_0x3154c8[_0x357686(0x18f)]),s=z([_0x42d89f(_0x3f0355),m(0x1,_0x854367(_0x55fb27)),m(0x2,_0x4fc785)],s);export{l as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { UniverDocsExchangeClientPlugin } from './plugin';
|
|
2
|
-
export {
|
|
2
|
+
export { ExportDOCXOperation, ImportDOCXOperation, } from './commands/operations/exchange.operation';
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x48c3(_0x4fde0e,_0x2e6731){const _0x97aa7d=_0x97aa();return _0x48c3=function(_0x48c370,_0x248a90){_0x48c370=_0x48c370-0x14e;let _0x5a27e=_0x97aa7d[_0x48c370];return _0x5a27e;},_0x48c3(_0x4fde0e,_0x2e6731);}function _0x97aa(){const _0x143dbf=['CommandType','length','UniverExchangeClient','mergeMenu','setConfig','forEach','ImportDOCXOperation','161373qUlxwc','add','Ready','142634FXlMcw','@univerjs/core','7KhujLc','DirectExportSingle','exportDOCXByUnitId','_configService','_initMenus','FILE','getOwnPropertyDescriptor','@univerjs/ui','ExportSingle','object','UniverDocsExchangeClient','_config','initialize','disposeWithMe','MenuItemType','Module','_initCommands','2299496EvaYPS','OPERATION','2241012mVDjlK','FolderSingle','pluginName','DOC_EXCHANGE_CLIENT_PLUGIN','exports','37843nXsTIS','UniverDocsExchangeClientPlugin','20qihtkX','exchange.upload','_menuManagerService','IMenuManagerService','Disposable','ICommandService','1572mIFXrk','importDOCXToUnitId','docs-exchange-client.operation.exchange','150tzbpyy','UniverUi','defineProperty','UNIVER_DOC','119169HEWykK','type','10IFOddJ','exchange-client.operation.import-docx','UniverInstanceType','Inject','DependentOn','onReady','RibbonStartGroup','_injector','_commandService','amd','Plugin','BUTTON','exchange.download','7WhzBAz','IConfigService','@univerjs-pro/exchange-client','function','4324320vSwKuf','ExportDOCXOperation','SUBITEMS','OnLifecycle','registerCommand','symbol','IExchangeOperateService'];_0x97aa=function(){return _0x143dbf;};return _0x97aa();}(function(_0x1fc30c,_0x546b68){const _0x162e96=_0x48c3,_0x445036=_0x1fc30c();while(!![]){try{const _0x4f932d=parseInt(_0x162e96(0x194))/0x1*(parseInt(_0x162e96(0x192))/0x2)+parseInt(_0x162e96(0x18f))/0x3*(parseInt(_0x162e96(0x161))/0x4)+parseInt(_0x162e96(0x170))/0x5*(-parseInt(_0x162e96(0x15a))/0x6)+parseInt(_0x162e96(0x17d))/0x7*(parseInt(_0x162e96(0x158))/0x8)+-parseInt(_0x162e96(0x16e))/0x9*(-parseInt(_0x162e96(0x16a))/0xa)+parseInt(_0x162e96(0x181))/0xb+parseInt(_0x162e96(0x167))/0xc*(-parseInt(_0x162e96(0x15f))/0xd);if(_0x4f932d===_0x546b68)break;else _0x445036['push'](_0x445036['shift']());}catch(_0x5ea4d4){_0x445036['push'](_0x445036['shift']());}}}(_0x97aa,0x7eb59),function(_0x2d7b25,_0x438e08){const _0x434502=_0x48c3;typeof exports==_0x434502(0x150)&&typeof module<'u'?_0x438e08(exports,require(_0x434502(0x193)),require(_0x434502(0x17f)),require(_0x434502(0x14e))):typeof define==_0x434502(0x180)&&define[_0x434502(0x179)]?define([_0x434502(0x15e),_0x434502(0x193),'@univerjs-pro/exchange-client',_0x434502(0x14e)],_0x438e08):(_0x2d7b25=typeof globalThis<'u'?globalThis:_0x2d7b25||self,_0x438e08(_0x2d7b25[_0x434502(0x151)]={},_0x2d7b25['UniverCore'],_0x2d7b25[_0x434502(0x18a)],_0x2d7b25[_0x434502(0x16b)]));}(this,function(_0x449ee8,_0x572278,_0x2f19e9,_0x11d8c3){'use strict';const _0x11ab72=_0x48c3;const _0x2f5c3f={'id':_0x11ab72(0x171),'type':_0x572278[_0x11ab72(0x188)]['OPERATION'],'handler':async _0x146cf1=>(_0x146cf1['get'](_0x2f19e9[_0x11ab72(0x187)])[_0x11ab72(0x168)](),!0x0)},_0x5a0efa={'id':'exchange-client.operation.export-docx','type':_0x572278[_0x11ab72(0x188)][_0x11ab72(0x159)],'handler':async _0x29a617=>(_0x29a617['get'](_0x2f19e9[_0x11ab72(0x187)])[_0x11ab72(0x196)](),!0x0)},_0x20b2ba=_0x11ab72(0x169);function _0x1cd478(_0x5af1ad){const _0x3ba24b=_0x11ab72;return{'id':_0x20b2ba,'type':_0x11d8c3[_0x3ba24b(0x155)][_0x3ba24b(0x183)],'icon':_0x3ba24b(0x195),'tooltip':'exchange.file','hidden$':_0x11d8c3['getMenuHiddenObservable'](_0x5af1ad,_0x572278[_0x3ba24b(0x172)][_0x3ba24b(0x16d)])};}function _0x42428e(){const _0x4e28ee=_0x11ab72;return{'id':_0x2f5c3f['id'],'type':_0x11d8c3[_0x4e28ee(0x155)][_0x4e28ee(0x17b)],'title':_0x4e28ee(0x162),'icon':_0x4e28ee(0x15b)};}function _0x343160(){const _0x464fcb=_0x11ab72;return{'id':_0x5a0efa['id'],'type':_0x11d8c3['MenuItemType'][_0x464fcb(0x17b)],'title':_0x464fcb(0x17c),'icon':_0x464fcb(0x14f)};}const _0x3ab11a={[_0x11d8c3[_0x11ab72(0x176)][_0x11ab72(0x199)]]:{[_0x20b2ba]:{'order':0x4,'menuItemFactory':_0x1cd478,[_0x2f5c3f['id']]:{'order':0x0,'menuItemFactory':_0x42428e},[_0x5a0efa['id']]:{'order':0x1,'menuItemFactory':_0x343160}}}};var _0x2829f9=Object[_0x11ab72(0x16c)],_0x1550d5=Object[_0x11ab72(0x19a)],_0x2c854f=(_0x27d4d9,_0x242781,_0x569e66,_0x6745b7)=>{for(var _0x161ae6=_0x6745b7>0x1?void 0x0:_0x6745b7?_0x1550d5(_0x242781,_0x569e66):_0x242781,_0x25304e=_0x27d4d9['length']-0x1,_0x4af105;_0x25304e>=0x0;_0x25304e--)(_0x4af105=_0x27d4d9[_0x25304e])&&(_0x161ae6=(_0x6745b7?_0x4af105(_0x242781,_0x569e66,_0x161ae6):_0x4af105(_0x161ae6))||_0x161ae6);return _0x6745b7&&_0x161ae6&&_0x2829f9(_0x242781,_0x569e66,_0x161ae6),_0x161ae6;},_0x28c2e7=(_0x3db401,_0x5bdb9b)=>(_0x321bf5,_0x1f1700)=>_0x5bdb9b(_0x321bf5,_0x1f1700,_0x3db401);let _0x5eca21=class extends _0x572278[_0x11ab72(0x165)]{constructor(_0x5a5a13,_0x5d17f9){const _0x42460b=_0x11ab72;super(),this[_0x42460b(0x178)]=_0x5a5a13,this[_0x42460b(0x163)]=_0x5d17f9,this[_0x42460b(0x157)](),this[_0x42460b(0x198)]();}[_0x11ab72(0x157)](){const _0x401259=_0x11ab72;[_0x2f5c3f,_0x5a0efa][_0x401259(0x18d)](_0x4c0e92=>{const _0x411633=_0x401259;this[_0x411633(0x154)](this[_0x411633(0x178)][_0x411633(0x185)](_0x4c0e92));});}['_initMenus'](){const _0x3af09c=_0x11ab72;this[_0x3af09c(0x163)][_0x3af09c(0x18b)](_0x3ab11a);}};_0x5eca21=_0x2c854f([_0x572278[_0x11ab72(0x184)](_0x572278['LifecycleStages'][_0x11ab72(0x191)],_0x5eca21),_0x28c2e7(0x0,_0x572278[_0x11ab72(0x166)]),_0x28c2e7(0x1,_0x11d8c3[_0x11ab72(0x164)])],_0x5eca21);const _0x524cfc='docs-exchange-client.config',_0x393b46={};var _0x58af57=Object[_0x11ab72(0x16c)],_0x2449ec=Object['getOwnPropertyDescriptor'],_0x2c5959=(_0x4c53e9,_0x514a6f,_0x50fc03)=>_0x514a6f in _0x4c53e9?_0x58af57(_0x4c53e9,_0x514a6f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x50fc03}):_0x4c53e9[_0x514a6f]=_0x50fc03,_0x5ea0a4=(_0x40b952,_0x4a1f6a,_0x3c949c,_0x3d0a96)=>{const _0x54032f=_0x11ab72;for(var _0x20247d=_0x3d0a96>0x1?void 0x0:_0x3d0a96?_0x2449ec(_0x4a1f6a,_0x3c949c):_0x4a1f6a,_0x46237a=_0x40b952[_0x54032f(0x189)]-0x1,_0x2e7f8e;_0x46237a>=0x0;_0x46237a--)(_0x2e7f8e=_0x40b952[_0x46237a])&&(_0x20247d=(_0x3d0a96?_0x2e7f8e(_0x4a1f6a,_0x3c949c,_0x20247d):_0x2e7f8e(_0x20247d))||_0x20247d);return _0x3d0a96&&_0x20247d&&_0x58af57(_0x4a1f6a,_0x3c949c,_0x20247d),_0x20247d;},_0x661a7d=(_0x37db85,_0x1100a0)=>(_0x171377,_0x565e7e)=>_0x1100a0(_0x171377,_0x565e7e,_0x37db85),_0x203ab2=(_0x42c392,_0x3d5308,_0x2e1089)=>_0x2c5959(_0x42c392,typeof _0x3d5308!=_0x11ab72(0x186)?_0x3d5308+'':_0x3d5308,_0x2e1089);const _0x5a4d0f=_0x11ab72(0x15d);_0x449ee8[_0x11ab72(0x160)]=class extends _0x572278[_0x11ab72(0x17a)]{constructor(_0x41179e=_0x393b46,_0x54a0f7,_0x2ddcf8){const _0xd989f0=_0x11ab72;super(),this[_0xd989f0(0x152)]=_0x41179e,this[_0xd989f0(0x177)]=_0x54a0f7,this[_0xd989f0(0x197)]=_0x2ddcf8;const {menu:_0x55e7fa,..._0x16996e}=this[_0xd989f0(0x152)];_0x55e7fa&&this[_0xd989f0(0x197)][_0xd989f0(0x18c)]('menu',_0x55e7fa,{'merge':!0x0}),this[_0xd989f0(0x197)][_0xd989f0(0x18c)](_0x524cfc,_0x16996e);}[_0x11ab72(0x153)](){const _0x24166e=_0x11ab72;[[_0x5eca21]][_0x24166e(0x18d)](_0x21117a=>this['_injector'][_0x24166e(0x190)](_0x21117a));}[_0x11ab72(0x175)](){const _0x17f4b8=_0x11ab72;this[_0x17f4b8(0x153)]();}},_0x203ab2(_0x449ee8[_0x11ab72(0x160)],_0x11ab72(0x15c),_0x5a4d0f),_0x203ab2(_0x449ee8[_0x11ab72(0x160)],_0x11ab72(0x16f),_0x572278[_0x11ab72(0x172)][_0x11ab72(0x16d)]),_0x449ee8[_0x11ab72(0x160)]=_0x5ea0a4([_0x572278[_0x11ab72(0x174)](_0x2f19e9['UniverExchangeClientPlugin']),_0x661a7d(0x1,_0x572278[_0x11ab72(0x173)](_0x572278['Injector'])),_0x661a7d(0x2,_0x572278[_0x11ab72(0x17e)])],_0x449ee8[_0x11ab72(0x160)]),_0x449ee8[_0x11ab72(0x182)]=_0x5a0efa,_0x449ee8[_0x11ab72(0x18e)]=_0x2f5c3f,Object[_0x11ab72(0x16c)](_0x449ee8,Symbol['toStringTag'],{'value':_0x11ab72(0x156)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/docs-exchange-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0-alpha.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -43,27 +43,27 @@
|
|
|
43
43
|
"lib"
|
|
44
44
|
],
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@univerjs-pro/exchange-client": "0.
|
|
47
|
-
"@univerjs/
|
|
48
|
-
"@univerjs/
|
|
46
|
+
"@univerjs-pro/exchange-client": "0.3.0-alpha.0",
|
|
47
|
+
"@univerjs/ui": "0.3.0-alpha.0",
|
|
48
|
+
"@univerjs/core": "0.3.0-alpha.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.
|
|
56
|
-
"@univerjs/
|
|
57
|
-
"@univerjs/
|
|
53
|
+
"@univerjs/core": "0.3.0-alpha.0",
|
|
54
|
+
"@univerjs-pro/exchange-client": "0.3.0-alpha.0",
|
|
55
|
+
"@univerjs/docs": "0.3.0-alpha.0",
|
|
56
|
+
"@univerjs/protocol": "0.1.39-alpha.22",
|
|
57
|
+
"@univerjs/docs-ui": "0.3.0-alpha.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@types/pako": "^2.0.3",
|
|
61
61
|
"less": "^4.2.0",
|
|
62
62
|
"rxjs": "^7.8.1",
|
|
63
63
|
"typescript": "^5.6.2",
|
|
64
|
-
"vite": "^5.4.
|
|
65
|
-
"vitest": "^2.1.
|
|
66
|
-
"@univerjs-infra/shared": "0.
|
|
64
|
+
"vite": "^5.4.8",
|
|
65
|
+
"vitest": "^2.1.1",
|
|
66
|
+
"@univerjs-infra/shared": "0.3.0-alpha.0"
|
|
67
67
|
},
|
|
68
68
|
"univerSpace": {
|
|
69
69
|
".": {
|