@univerjs-pro/docs-exchange-client 0.4.1 → 0.4.2
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 +6 -14
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x215258=_0x4d3e;(function(_0x887f5b,_0x81fd0c){var _0x22ffaa=_0x4d3e,_0x2758af=_0x887f5b();while(!![]){try{var _0x5e3214=parseInt(_0x22ffaa(0x90))/0x1*(parseInt(_0x22ffaa(0x70))/0x2)+parseInt(_0x22ffaa(0x81))/0x3+-parseInt(_0x22ffaa(0x7c))/0x4*(parseInt(_0x22ffaa(0x96))/0x5)+parseInt(_0x22ffaa(0x88))/0x6+-parseInt(_0x22ffaa(0x7d))/0x7*(-parseInt(_0x22ffaa(0x74))/0x8)+-parseInt(_0x22ffaa(0x8e))/0x9*(parseInt(_0x22ffaa(0x92))/0xa)+-parseInt(_0x22ffaa(0x94))/0xb;if(_0x5e3214===_0x81fd0c)break;else _0x2758af['push'](_0x2758af['shift']());}catch(_0x1864b5){_0x2758af['push'](_0x2758af['shift']());}}}(_0x1672,0x20aa6));Object[_0x215258(0x87)](exports,Symbol['toStringTag'],{'value':_0x215258(0x8d)});const o=require('@univerjs/core'),g=require(_0x215258(0xac)),s=require('@univerjs/ui'),C='docs-exchange-client.config',I={},u={'id':_0x215258(0x84),'type':o['CommandType']['OPERATION'],'handler':async _0x49952e=>(_0x49952e['get'](g[_0x215258(0x8c)])[_0x215258(0x83)](),!0x0)},l={'id':_0x215258(0x7e),'type':o[_0x215258(0x99)][_0x215258(0xad)],'handler':async _0xaf72bc=>(_0xaf72bc['get'](g['IExchangeOperateService'])[_0x215258(0x8f)](),!0x0)},m='docs-exchange-client.operation.exchange';function _0x1672(){var _0x12845f=['_menuManagerService','add','8hqHwsh','BUTTON','_config','getOwnPropertyDescriptor','mergeMenu','exchange.upload','registerCommand','UNIVER_DOC','4XUiLym','563045tqGXrl','exchange-client.operation.export-docx','DirectExportSingle','exchange.download','689022oBrJYG','Plugin','importDOCXToUnitId','exchange-client.operation.import-docx','setConfig','RibbonStartGroup','defineProperty','632076ImQNWZ','DOC_EXCHANGE_CLIENT_PLUGIN','UniverInstanceType','_injector','IExchangeOperateService','Module','1070820xnagTS','exportDOCXByUnitId','1xgDQis','onReady','20jwfIau','IConfigService','326689IVHJPr','length','881555ghKojN','exchange.file','Inject','CommandType','ImportDOCXOperation','type','_configService','ICommandService','Injector','IMenuManagerService','onStarting','ExportDOCXOperation','Disposable','FolderSingle','forEach','_initCommands','MenuItemType','DependentOn','FILE','UniverDocsExchangeClientPlugin','getMenuHiddenObservable','pluginName','@univerjs-pro/exchange-client','OPERATION','menu','UniverExchangeClientPlugin','324626GRKpwS','_commandService'];_0x1672=function(){return _0x12845f;};return _0x1672();}function O(_0x176df2){var _0x2c44cd=_0x215258;return{'id':m,'type':s[_0x2c44cd(0xa6)]['SUBITEMS'],'icon':_0x2c44cd(0x7f),'tooltip':_0x2c44cd(0x97),'hidden$':s[_0x2c44cd(0xaa)](_0x176df2,o[_0x2c44cd(0x8a)][_0x2c44cd(0x7b)])};}function E(){var _0x368518=_0x215258;return{'id':u['id'],'type':s[_0x368518(0xa6)][_0x368518(0x75)],'title':_0x368518(0x79),'icon':_0x368518(0xa3)};}function f(){var _0x341b00=_0x215258;return{'id':l['id'],'type':s[_0x341b00(0xa6)][_0x341b00(0x75)],'title':_0x341b00(0x80),'icon':'ExportSingle'};}const x={[s[_0x215258(0x86)][_0x215258(0xa8)]]:{[m]:{'order':0x4,'menuItemFactory':O,[u['id']]:{'order':0x0,'menuItemFactory':E},[l['id']]:{'order':0x1,'menuItemFactory':f}}}};var D=Object[_0x215258(0x87)],P=Object['getOwnPropertyDescriptor'],S=(_0x451881,_0x5790c4,_0x2abe61,_0x373651)=>{var _0x28034e=_0x215258;for(var _0x388543=_0x373651>0x1?void 0x0:_0x373651?P(_0x5790c4,_0x2abe61):_0x5790c4,_0x208327=_0x451881[_0x28034e(0x95)]-0x1,_0x382e95;_0x208327>=0x0;_0x208327--)(_0x382e95=_0x451881[_0x208327])&&(_0x388543=(_0x373651?_0x382e95(_0x5790c4,_0x2abe61,_0x388543):_0x382e95(_0x388543))||_0x388543);return _0x373651&&_0x388543&&D(_0x5790c4,_0x2abe61,_0x388543),_0x388543;},d=(_0x331312,_0xa49cd1)=>(_0x1f79ac,_0x480df3)=>_0xa49cd1(_0x1f79ac,_0x480df3,_0x331312);let p=class extends o[_0x215258(0xa2)]{constructor(_0xf59212,_0x2261a3){var _0x87e877=_0x215258;super(),this[_0x87e877(0x71)]=_0xf59212,this['_menuManagerService']=_0x2261a3,this[_0x87e877(0xa5)](),this['_initMenus']();}['_initCommands'](){var _0x309c6e=_0x215258;[u,l][_0x309c6e(0xa4)](_0x58be80=>{var _0x152dc7=_0x309c6e;this['disposeWithMe'](this[_0x152dc7(0x71)][_0x152dc7(0x7a)](_0x58be80));});}['_initMenus'](){var _0x117607=_0x215258;this[_0x117607(0x72)][_0x117607(0x78)](x);}};p=S([d(0x0,o[_0x215258(0x9d)]),d(0x1,s[_0x215258(0x9f)])],p);var h=Object['defineProperty'],y=Object[_0x215258(0x77)],U=(_0xde708b,_0x59d01a,_0xe3547b)=>_0x59d01a in _0xde708b?h(_0xde708b,_0x59d01a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe3547b}):_0xde708b[_0x59d01a]=_0xe3547b,T=(_0x521ea8,_0x4fdaf5,_0x25be28,_0x19f25a)=>{var _0x2dbbb6=_0x215258;for(var _0xa669b5=_0x19f25a>0x1?void 0x0:_0x19f25a?y(_0x4fdaf5,_0x25be28):_0x4fdaf5,_0x16746c=_0x521ea8[_0x2dbbb6(0x95)]-0x1,_0x3163ef;_0x16746c>=0x0;_0x16746c--)(_0x3163ef=_0x521ea8[_0x16746c])&&(_0xa669b5=(_0x19f25a?_0x3163ef(_0x4fdaf5,_0x25be28,_0xa669b5):_0x3163ef(_0xa669b5))||_0xa669b5);return _0x19f25a&&_0xa669b5&&h(_0x4fdaf5,_0x25be28,_0xa669b5),_0xa669b5;},_=(_0x34595a,_0x5479b3)=>(_0x2384ef,_0x59c81c)=>_0x5479b3(_0x2384ef,_0x59c81c,_0x34595a),v=(_0x406d6c,_0x32a6c1,_0x31ca3e)=>U(_0x406d6c,typeof _0x32a6c1!='symbol'?_0x32a6c1+'':_0x32a6c1,_0x31ca3e);function _0x4d3e(_0x392242,_0x232b7b){var _0x16724b=_0x1672();return _0x4d3e=function(_0x4d3ed4,_0x4d6eea){_0x4d3ed4=_0x4d3ed4-0x6f;var _0x50e1d3=_0x16724b[_0x4d3ed4];return _0x50e1d3;},_0x4d3e(_0x392242,_0x232b7b);}const N=_0x215258(0x89);exports['UniverDocsExchangeClientPlugin']=class extends o[_0x215258(0x82)]{constructor(_0x177fea=I,_0x49d493,_0xfd5038){var _0x293cfd=_0x215258;super(),this[_0x293cfd(0x76)]=_0x177fea,this[_0x293cfd(0x8b)]=_0x49d493,this['_configService']=_0xfd5038;const {menu:_0x40c6ff,..._0x11d3a5}=this[_0x293cfd(0x76)];_0x40c6ff&&this[_0x293cfd(0x9c)][_0x293cfd(0x85)](_0x293cfd(0xae),_0x40c6ff,{'merge':!0x0}),this[_0x293cfd(0x9c)][_0x293cfd(0x85)](C,_0x11d3a5);}[_0x215258(0xa0)](){var _0x37c665=_0x215258;[[p]][_0x37c665(0xa4)](_0x17a0d9=>this['_injector'][_0x37c665(0x73)](_0x17a0d9));}[_0x215258(0x91)](){var _0x58f9ba=_0x215258;this[_0x58f9ba(0x8b)]['get'](p);}},v(exports[_0x215258(0xa9)],_0x215258(0xab),N),v(exports[_0x215258(0xa9)],_0x215258(0x9b),o['UniverInstanceType']['UNIVER_DOC']),exports[_0x215258(0xa9)]=T([o[_0x215258(0xa7)](g[_0x215258(0x6f)]),_(0x1,o[_0x215258(0x98)](o[_0x215258(0x9e)])),_(0x2,o[_0x215258(0x93)])],exports[_0x215258(0xa9)]),exports[_0x215258(0xa1)]=l,exports[_0x215258(0x9a)]=u;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x5c7e53=_0x5fc3;(function(_0x46193e,_0x12ed58){var _0xfd6290=_0x5fc3,_0x382035=_0x46193e();while(!![]){try{var _0x7396c9=parseInt(_0xfd6290(0x1bd))/0x1*(-parseInt(_0xfd6290(0x1be))/0x2)+parseInt(_0xfd6290(0x1b5))/0x3*(-parseInt(_0xfd6290(0x1ce))/0x4)+-parseInt(_0xfd6290(0x1c0))/0x5*(-parseInt(_0xfd6290(0x1d0))/0x6)+-parseInt(_0xfd6290(0x1ab))/0x7+-parseInt(_0xfd6290(0x1c1))/0x8*(parseInt(_0xfd6290(0x1af))/0x9)+parseInt(_0xfd6290(0x1ca))/0xa*(-parseInt(_0xfd6290(0x1bf))/0xb)+-parseInt(_0xfd6290(0x1ba))/0xc*(-parseInt(_0xfd6290(0x1cd))/0xd);if(_0x7396c9===_0x12ed58)break;else _0x382035['push'](_0x382035['shift']());}catch(_0x4c09a1){_0x382035['push'](_0x382035['shift']());}}}(_0x4d61,0x7f7a6));import{CommandType as _0x4ad881,UniverInstanceType as _0x849af6,Disposable as _0x3105b4,ICommandService as _0x27f200,DependentOn as _0x1f2911,Inject as _0x2c4a56,Injector as _0x1ee33a,Plugin as _0x48c1b1,IConfigService as _0x251d6d}from'@univerjs/core';function _0x5fc3(_0x5d8dd7,_0x2341c4){var _0x4d61a0=_0x4d61();return _0x5fc3=function(_0x5fc35,_0x243247){_0x5fc35=_0x5fc35-0x1a4;var _0x2d5530=_0x4d61a0[_0x5fc35];return _0x2d5530;},_0x5fc3(_0x5d8dd7,_0x2341c4);}import{IExchangeOperateService as _0x176e81,UniverExchangeClientPlugin as _0x39d64e}from'@univerjs-pro/exchange-client';import{MenuItemType as _0x576c44,getMenuHiddenObservable as _0x462ec6,RibbonStartGroup as _0xb90298,IMenuManagerService as _0x341886}from'@univerjs/ui';const M='docs-exchange-client.config',b={},d={'id':_0x5c7e53(0x1a8),'type':_0x4ad881['OPERATION'],'handler':async _0x4e62f3=>(_0x4e62f3[_0x5c7e53(0x1b3)](_0x176e81)[_0x5c7e53(0x1ae)](),!0x0)},u={'id':_0x5c7e53(0x1c2),'type':_0x4ad881[_0x5c7e53(0x1b0)],'handler':async _0x2e9782=>(_0x2e9782[_0x5c7e53(0x1b3)](_0x176e81)[_0x5c7e53(0x1b2)](),!0x0)},f='docs-exchange-client.operation.exchange';function F(_0xae4026){var _0x30f828=_0x5c7e53;return{'id':f,'type':_0x576c44[_0x30f828(0x1c4)],'icon':_0x30f828(0x1b1),'tooltip':_0x30f828(0x1a9),'hidden$':_0x462ec6(_0xae4026,_0x849af6[_0x30f828(0x1bb)])};}function X(){var _0x4fba78=_0x5c7e53;return{'id':d['id'],'type':_0x576c44['BUTTON'],'title':_0x4fba78(0x1c8),'icon':'FolderSingle'};}function G(){var _0x4e7fa8=_0x5c7e53;return{'id':u['id'],'type':_0x576c44[_0x4e7fa8(0x1b9)],'title':_0x4e7fa8(0x1a6),'icon':_0x4e7fa8(0x1b4)};}const j={[_0xb90298[_0x5c7e53(0x1cf)]]:{[f]:{'order':0x4,'menuItemFactory':F,[d['id']]:{'order':0x0,'menuItemFactory':X},[u['id']]:{'order':0x1,'menuItemFactory':G}}}};var R=Object[_0x5c7e53(0x1b6)],w=Object[_0x5c7e53(0x1c9)],A=(_0x766654,_0x3582f3,_0x498ebd,_0x50a9ef)=>{var _0x237cf6=_0x5c7e53;for(var _0x3a4169=_0x50a9ef>0x1?void 0x0:_0x50a9ef?w(_0x3582f3,_0x498ebd):_0x3582f3,_0x567cdc=_0x766654[_0x237cf6(0x1c7)]-0x1,_0xdb248c;_0x567cdc>=0x0;_0x567cdc--)(_0xdb248c=_0x766654[_0x567cdc])&&(_0x3a4169=(_0x50a9ef?_0xdb248c(_0x3582f3,_0x498ebd,_0x3a4169):_0xdb248c(_0x3a4169))||_0x3a4169);return _0x50a9ef&&_0x3a4169&&R(_0x3582f3,_0x498ebd,_0x3a4169),_0x3a4169;},_=(_0x1679c3,_0x2f3dee)=>(_0x3ddcf3,_0x426239)=>_0x2f3dee(_0x3ddcf3,_0x426239,_0x1679c3);let a=class extends _0x3105b4{constructor(_0xf37704,_0x7781e){var _0x533950=_0x5c7e53;super(),this[_0x533950(0x1a5)]=_0xf37704,this['_menuManagerService']=_0x7781e,this[_0x533950(0x1c5)](),this['_initMenus']();}['_initCommands'](){var _0xcf265a=_0x5c7e53;[d,u][_0xcf265a(0x1d2)](_0x99850b=>{var _0x477038=_0xcf265a;this[_0x477038(0x1c3)](this[_0x477038(0x1a5)][_0x477038(0x1cc)](_0x99850b));});}[_0x5c7e53(0x1d1)](){var _0x22d7d1=_0x5c7e53;this[_0x22d7d1(0x1b7)]['mergeMenu'](j);}};a=A([_(0x0,_0x27f200),_(0x1,_0x341886)],a);function _0x4d61(){var _0xdf9761=['FILE','666fMcYaK','_initMenus','forEach','pluginName','_commandService','exchange.download','setConfig','exchange-client.operation.import-docx','exchange.file','type','813330IwTRMh','_config','add','importDOCXToUnitId','2151xemtbx','OPERATION','DirectExportSingle','exportDOCXByUnitId','get','ExportSingle','36OjbpgO','defineProperty','_menuManagerService','_configService','BUTTON','21867948uAnwbe','UNIVER_DOC','_injector','3NOdQVH','530546bYTtNg','8400667YqNWvj','43910xPtnaP','12424KEfins','exchange-client.operation.export-docx','disposeWithMe','SUBITEMS','_initCommands','menu','length','exchange.upload','getOwnPropertyDescriptor','10hAglEk','onReady','registerCommand','13pHIQiR','76036TdBfeZ'];_0x4d61=function(){return _0xdf9761;};return _0x4d61();}var v=Object[_0x5c7e53(0x1b6)],L=Object[_0x5c7e53(0x1c9)],B=(_0x56e216,_0x5e4787,_0x2011bf)=>_0x5e4787 in _0x56e216?v(_0x56e216,_0x5e4787,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2011bf}):_0x56e216[_0x5e4787]=_0x2011bf,$=(_0x367054,_0x4e3ef8,_0x53bba8,_0x4812c8)=>{var _0x9782e2=_0x5c7e53;for(var _0x4f009f=_0x4812c8>0x1?void 0x0:_0x4812c8?L(_0x4e3ef8,_0x53bba8):_0x4e3ef8,_0x3dfe34=_0x367054[_0x9782e2(0x1c7)]-0x1,_0x4de740;_0x3dfe34>=0x0;_0x3dfe34--)(_0x4de740=_0x367054[_0x3dfe34])&&(_0x4f009f=(_0x4812c8?_0x4de740(_0x4e3ef8,_0x53bba8,_0x4f009f):_0x4de740(_0x4f009f))||_0x4f009f);return _0x4812c8&&_0x4f009f&&v(_0x4e3ef8,_0x53bba8,_0x4f009f),_0x4f009f;},m=(_0x5a9d2a,_0x521036)=>(_0x1a739d,_0x207dc5)=>_0x521036(_0x1a739d,_0x207dc5,_0x5a9d2a),I=(_0xa429f1,_0x3fd7a6,_0x263bce)=>B(_0xa429f1,typeof _0x3fd7a6!='symbol'?_0x3fd7a6+'':_0x3fd7a6,_0x263bce);const H='DOC_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x48c1b1{constructor(_0x19dfb4=b,_0x397610,_0x11f865){var _0x1e8644=_0x5c7e53;super(),this[_0x1e8644(0x1ac)]=_0x19dfb4,this[_0x1e8644(0x1bc)]=_0x397610,this[_0x1e8644(0x1b8)]=_0x11f865;const {menu:_0x45c4dc,..._0x287b9e}=this[_0x1e8644(0x1ac)];_0x45c4dc&&this[_0x1e8644(0x1b8)][_0x1e8644(0x1a7)](_0x1e8644(0x1c6),_0x45c4dc,{'merge':!0x0}),this[_0x1e8644(0x1b8)][_0x1e8644(0x1a7)](M,_0x287b9e);}['onStarting'](){var _0x57ef88=_0x5c7e53;[[a]][_0x57ef88(0x1d2)](_0x5b96bc=>this[_0x57ef88(0x1bc)][_0x57ef88(0x1ad)](_0x5b96bc));}[_0x5c7e53(0x1cb)](){var _0x26d03a=_0x5c7e53;this[_0x26d03a(0x1bc)][_0x26d03a(0x1b3)](a);}};I(s,_0x5c7e53(0x1a4),H),I(s,_0x5c7e53(0x1aa),_0x849af6[_0x5c7e53(0x1bb)]),s=$([_0x1f2911(_0x39d64e),m(0x1,_0x2c4a56(_0x1ee33a)),m(0x2,_0x251d6d)],s);export{u as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5673(_0x4b30b4,_0x3a508b){var _0x21142b=_0x2114();return _0x5673=function(_0x5673f8,_0x4e7987){_0x5673f8=_0x5673f8-0x6a;var _0x137809=_0x21142b[_0x5673f8];return _0x137809;},_0x5673(_0x4b30b4,_0x3a508b);}function _0x2114(){var _0x4125ce=['symbol','@univerjs/ui','get','32osTRVj','ICommandService','Injector','docs-exchange-client.operation.exchange','toStringTag','exports','BUTTON','Disposable','IConfigService','exchange.file','DOC_EXCHANGE_CLIENT_PLUGIN','IExchangeOperateService','915229SKVWvN','forEach','@univerjs-pro/exchange-client','1368456LARdks','_menuManagerService','_initMenus','UniverInstanceType','length','1555980vnSVZn','docs-exchange-client.config','RibbonStartGroup','add','exportDOCXByUnitId','UniverExchangeClientPlugin','onStarting','ImportDOCXOperation','defineProperty','exchange-client.operation.export-docx','UniverUi','UniverExchangeClient','81JeKTnd','_configService','UNIVER_DOC','Module','CommandType','ExportSingle','pluginName','setConfig','UniverDocsExchangeClientPlugin','OPERATION','MenuItemType','448806TBbVDa','_commandService','92FsujXO','109145bmQsOo','DirectExportSingle','exchange-client.operation.import-docx','disposeWithMe','_injector','_config','getOwnPropertyDescriptor','@univerjs/core','SUBITEMS','FILE','1067910IonsTy','Plugin','object','FolderSingle','685260wKgqCV','importDOCXToUnitId','onReady','mergeMenu','Inject','exchange.download','_initCommands','ExportDOCXOperation'];_0x2114=function(){return _0x4125ce;};return _0x2114();}(function(_0x45f2f0,_0x2e4016){var _0x2a7853=_0x5673,_0x52f737=_0x45f2f0();while(!![]){try{var _0x4ed0ba=parseInt(_0x2a7853(0xaf))/0x1+-parseInt(_0x2a7853(0x87))/0x2+-parseInt(_0x2a7853(0x9e))/0x3+parseInt(_0x2a7853(0xa0))/0x4*(-parseInt(_0x2a7853(0xa1))/0x5)+-parseInt(_0x2a7853(0x82))/0x6+-parseInt(_0x2a7853(0x7f))/0x7*(-parseInt(_0x2a7853(0x73))/0x8)+-parseInt(_0x2a7853(0x93))/0x9*(-parseInt(_0x2a7853(0xab))/0xa);if(_0x4ed0ba===_0x2e4016)break;else _0x52f737['push'](_0x52f737['shift']());}catch(_0x585a75){_0x52f737['push'](_0x52f737['shift']());}}}(_0x2114,0x7ce90),function(_0x2ad21c,_0x48cd25){var _0x31ef82=_0x5673;typeof exports==_0x31ef82(0xad)&&typeof module<'u'?_0x48cd25(exports,require('@univerjs/core'),require(_0x31ef82(0x81)),require('@univerjs/ui')):typeof define=='function'&&define['amd']?define([_0x31ef82(0x78),_0x31ef82(0xa8),_0x31ef82(0x81),_0x31ef82(0x71)],_0x48cd25):(_0x2ad21c=typeof globalThis<'u'?globalThis:_0x2ad21c||self,_0x48cd25(_0x2ad21c['UniverDocsExchangeClient']={},_0x2ad21c['UniverCore'],_0x2ad21c[_0x31ef82(0x92)],_0x2ad21c[_0x31ef82(0x91)]));}(this,function(_0x4a2b30,_0x3f6295,_0x354891,_0x1207c1){'use strict';var _0x28e2f9=_0x5673;const _0x2abf99=_0x28e2f9(0x88),_0x476c16={},_0x188d75={'id':_0x28e2f9(0xa3),'type':_0x3f6295[_0x28e2f9(0x97)][_0x28e2f9(0x9c)],'handler':async _0x17dcc4=>(_0x17dcc4[_0x28e2f9(0x72)](_0x354891[_0x28e2f9(0x7e)])[_0x28e2f9(0xb0)](),!0x0)},_0x5c9612={'id':_0x28e2f9(0x90),'type':_0x3f6295['CommandType'][_0x28e2f9(0x9c)],'handler':async _0x2f291d=>(_0x2f291d[_0x28e2f9(0x72)](_0x354891['IExchangeOperateService'])[_0x28e2f9(0x8b)](),!0x0)},_0x1f8df0=_0x28e2f9(0x76);function _0x217591(_0x5b7c30){var _0x5d6be9=_0x28e2f9;return{'id':_0x1f8df0,'type':_0x1207c1[_0x5d6be9(0x9d)][_0x5d6be9(0xa9)],'icon':_0x5d6be9(0xa2),'tooltip':_0x5d6be9(0x7c),'hidden$':_0x1207c1['getMenuHiddenObservable'](_0x5b7c30,_0x3f6295[_0x5d6be9(0x85)][_0x5d6be9(0x95)])};}function _0x1fbd61(){var _0x577407=_0x28e2f9;return{'id':_0x188d75['id'],'type':_0x1207c1[_0x577407(0x9d)][_0x577407(0x79)],'title':'exchange.upload','icon':_0x577407(0xae)};}function _0x1f6f00(){var _0x1802e4=_0x28e2f9;return{'id':_0x5c9612['id'],'type':_0x1207c1['MenuItemType'][_0x1802e4(0x79)],'title':_0x1802e4(0x6d),'icon':_0x1802e4(0x98)};}const _0x38839a={[_0x1207c1[_0x28e2f9(0x89)][_0x28e2f9(0xaa)]]:{[_0x1f8df0]:{'order':0x4,'menuItemFactory':_0x217591,[_0x188d75['id']]:{'order':0x0,'menuItemFactory':_0x1fbd61},[_0x5c9612['id']]:{'order':0x1,'menuItemFactory':_0x1f6f00}}}};var _0x4ab57a=Object[_0x28e2f9(0x8f)],_0x2a561d=Object[_0x28e2f9(0xa7)],_0x22d0c8=(_0x295cdc,_0x3ee955,_0x4f2933,_0x451ed4)=>{var _0x513341=_0x28e2f9;for(var _0x107079=_0x451ed4>0x1?void 0x0:_0x451ed4?_0x2a561d(_0x3ee955,_0x4f2933):_0x3ee955,_0x2f4160=_0x295cdc[_0x513341(0x86)]-0x1,_0x193970;_0x2f4160>=0x0;_0x2f4160--)(_0x193970=_0x295cdc[_0x2f4160])&&(_0x107079=(_0x451ed4?_0x193970(_0x3ee955,_0x4f2933,_0x107079):_0x193970(_0x107079))||_0x107079);return _0x451ed4&&_0x107079&&_0x4ab57a(_0x3ee955,_0x4f2933,_0x107079),_0x107079;},_0x2d18cc=(_0x11d191,_0x32692a)=>(_0x30fb18,_0x52685d)=>_0x32692a(_0x30fb18,_0x52685d,_0x11d191);let _0x17817a=class extends _0x3f6295[_0x28e2f9(0x7a)]{constructor(_0x38fd19,_0x22fc12){var _0x4b97b2=_0x28e2f9;super(),this['_commandService']=_0x38fd19,this[_0x4b97b2(0x83)]=_0x22fc12,this[_0x4b97b2(0x6e)](),this[_0x4b97b2(0x84)]();}[_0x28e2f9(0x6e)](){var _0x45e2db=_0x28e2f9;[_0x188d75,_0x5c9612][_0x45e2db(0x80)](_0x2fea74=>{var _0x41996c=_0x45e2db;this[_0x41996c(0xa4)](this[_0x41996c(0x9f)]['registerCommand'](_0x2fea74));});}[_0x28e2f9(0x84)](){var _0x15c79b=_0x28e2f9;this[_0x15c79b(0x83)][_0x15c79b(0x6b)](_0x38839a);}};_0x17817a=_0x22d0c8([_0x2d18cc(0x0,_0x3f6295[_0x28e2f9(0x74)]),_0x2d18cc(0x1,_0x1207c1['IMenuManagerService'])],_0x17817a);var _0x295166=Object[_0x28e2f9(0x8f)],_0x897400=Object[_0x28e2f9(0xa7)],_0xfd004e=(_0x6e413f,_0x5e9729,_0x35389b)=>_0x5e9729 in _0x6e413f?_0x295166(_0x6e413f,_0x5e9729,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x35389b}):_0x6e413f[_0x5e9729]=_0x35389b,_0x350c69=(_0x391e7e,_0x5ecf0c,_0x500801,_0x3088da)=>{var _0x2dd1e0=_0x28e2f9;for(var _0x30aded=_0x3088da>0x1?void 0x0:_0x3088da?_0x897400(_0x5ecf0c,_0x500801):_0x5ecf0c,_0x5e7013=_0x391e7e[_0x2dd1e0(0x86)]-0x1,_0x17d043;_0x5e7013>=0x0;_0x5e7013--)(_0x17d043=_0x391e7e[_0x5e7013])&&(_0x30aded=(_0x3088da?_0x17d043(_0x5ecf0c,_0x500801,_0x30aded):_0x17d043(_0x30aded))||_0x30aded);return _0x3088da&&_0x30aded&&_0x295166(_0x5ecf0c,_0x500801,_0x30aded),_0x30aded;},_0x30896c=(_0x54d415,_0x3434fd)=>(_0x31e501,_0x5eb1bf)=>_0x3434fd(_0x31e501,_0x5eb1bf,_0x54d415),_0x324eda=(_0x3453e9,_0x543943,_0x419c59)=>_0xfd004e(_0x3453e9,typeof _0x543943!=_0x28e2f9(0x70)?_0x543943+'':_0x543943,_0x419c59);const _0x2441a8=_0x28e2f9(0x7d);_0x4a2b30[_0x28e2f9(0x9b)]=class extends _0x3f6295[_0x28e2f9(0xac)]{constructor(_0x3ad6fa=_0x476c16,_0x5344af,_0x522587){var _0x28a543=_0x28e2f9;super(),this[_0x28a543(0xa6)]=_0x3ad6fa,this[_0x28a543(0xa5)]=_0x5344af,this[_0x28a543(0x94)]=_0x522587;const {menu:_0x208e92,..._0x44aa55}=this['_config'];_0x208e92&&this[_0x28a543(0x94)][_0x28a543(0x9a)]('menu',_0x208e92,{'merge':!0x0}),this[_0x28a543(0x94)][_0x28a543(0x9a)](_0x2abf99,_0x44aa55);}[_0x28e2f9(0x8d)](){var _0x2b208a=_0x28e2f9;[[_0x17817a]]['forEach'](_0xa36cd9=>this['_injector'][_0x2b208a(0x8a)](_0xa36cd9));}[_0x28e2f9(0x6a)](){var _0x1cdfe8=_0x28e2f9;this[_0x1cdfe8(0xa5)][_0x1cdfe8(0x72)](_0x17817a);}},_0x324eda(_0x4a2b30[_0x28e2f9(0x9b)],_0x28e2f9(0x99),_0x2441a8),_0x324eda(_0x4a2b30['UniverDocsExchangeClientPlugin'],'type',_0x3f6295[_0x28e2f9(0x85)][_0x28e2f9(0x95)]),_0x4a2b30[_0x28e2f9(0x9b)]=_0x350c69([_0x3f6295['DependentOn'](_0x354891[_0x28e2f9(0x8c)]),_0x30896c(0x1,_0x3f6295[_0x28e2f9(0x6c)](_0x3f6295[_0x28e2f9(0x75)])),_0x30896c(0x2,_0x3f6295[_0x28e2f9(0x7b)])],_0x4a2b30[_0x28e2f9(0x9b)]),_0x4a2b30[_0x28e2f9(0x6f)]=_0x5c9612,_0x4a2b30[_0x28e2f9(0x8e)]=_0x188d75,Object[_0x28e2f9(0x8f)](_0x4a2b30,Symbol[_0x28e2f9(0x77)],{'value':_0x28e2f9(0x96)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/docs-exchange-client",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -42,28 +42,20 @@
|
|
|
42
42
|
"files": [
|
|
43
43
|
"lib"
|
|
44
44
|
],
|
|
45
|
-
"peerDependencies": {
|
|
46
|
-
"@univerjs-pro/exchange-client": "0.4.1",
|
|
47
|
-
"@univerjs/core": "0.4.1",
|
|
48
|
-
"@univerjs/ui": "0.4.1"
|
|
49
|
-
},
|
|
50
45
|
"dependencies": {
|
|
51
46
|
"@univerjs/icons": "^0.1.78",
|
|
52
|
-
"
|
|
53
|
-
"@univerjs
|
|
54
|
-
"@univerjs/
|
|
55
|
-
"@univerjs/
|
|
56
|
-
"@univerjs/docs": "0.4.1",
|
|
57
|
-
"@univerjs/protocol": "0.1.39-alpha.30"
|
|
47
|
+
"@univerjs-pro/exchange-client": "0.4.2",
|
|
48
|
+
"@univerjs/ui": "0.4.2",
|
|
49
|
+
"@univerjs/protocol": "0.1.39-alpha.38",
|
|
50
|
+
"@univerjs/core": "0.4.2"
|
|
58
51
|
},
|
|
59
52
|
"devDependencies": {
|
|
60
|
-
"@types/pako": "^2.0.3",
|
|
61
53
|
"less": "^4.2.0",
|
|
62
54
|
"rxjs": "^7.8.1",
|
|
63
55
|
"typescript": "5.6.3",
|
|
64
56
|
"vite": "^5.4.8",
|
|
65
57
|
"vitest": "^2.1.2",
|
|
66
|
-
"@univerjs-infra/shared": "0.4.
|
|
58
|
+
"@univerjs-infra/shared": "0.4.2"
|
|
67
59
|
},
|
|
68
60
|
"univerSpace": {
|
|
69
61
|
".": {
|