@univerjs-pro/docs-exchange-client 0.6.6 → 0.6.7-experimental.20250326-6499c07
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 +7 -7
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x2e1b57=_0x2a08;(function(_0x271507,_0x290791){var _0x3d95f3=_0x2a08,_0x5eae56=_0x271507();while(!![]){try{var _0x3635fd=-parseInt(_0x3d95f3(0x179))/0x1+parseInt(_0x3d95f3(0x189))/0x2*(-parseInt(_0x3d95f3(0x166))/0x3)+-parseInt(_0x3d95f3(0x197))/0x4+-parseInt(_0x3d95f3(0x17d))/0x5+-parseInt(_0x3d95f3(0x171))/0x6+-parseInt(_0x3d95f3(0x188))/0x7+parseInt(_0x3d95f3(0x17f))/0x8;if(_0x3635fd===_0x290791)break;else _0x5eae56['push'](_0x5eae56['shift']());}catch(_0x33c0f7){_0x5eae56['push'](_0x5eae56['shift']());}}}(_0x783e,0x3d18f));Object[_0x2e1b57(0x173)](exports,Symbol[_0x2e1b57(0x193)],{'value':_0x2e1b57(0x182)});const l=require(_0x2e1b57(0x199)),i=require(_0x2e1b57(0x192)),a=require(_0x2e1b57(0x181)),v=_0x2e1b57(0x167),d={},g={'id':_0x2e1b57(0x18f),'type':i[_0x2e1b57(0x19d)][_0x2e1b57(0x1a0)],'handler':async _0x362097=>(_0x362097[_0x2e1b57(0x196)](l[_0x2e1b57(0x174)])[_0x2e1b57(0x172)](),!0x0)},p={'id':_0x2e1b57(0x183),'type':i[_0x2e1b57(0x19d)][_0x2e1b57(0x1a0)],'handler':async _0xe76538=>(_0xe76538[_0x2e1b57(0x196)](l['IExchangeOperateService'])[_0x2e1b57(0x15f)](),!0x0)},h=_0x2e1b57(0x169);function _0x2a08(_0x1cc896,_0x3580bd){var _0x783e0b=_0x783e();return _0x2a08=function(_0x2a08cb,_0x48447c){_0x2a08cb=_0x2a08cb-0x15f;var _0x2f6d4f=_0x783e0b[_0x2a08cb];return _0x2f6d4f;},_0x2a08(_0x1cc896,_0x3580bd);}function I(_0x59b585){var _0x56b579=_0x2e1b57;return{'id':h,'type':a[_0x56b579(0x163)][_0x56b579(0x160)],'icon':_0x56b579(0x19f),'tooltip':_0x56b579(0x18b),'hidden$':a[_0x56b579(0x19a)](_0x59b585,i[_0x56b579(0x170)][_0x56b579(0x185)])};}function O(){return{'id':g['id'],'type':a['MenuItemType']['BUTTON'],'title':'exchange.upload','icon':'FolderSingle'};}function E(){var _0x20d780=_0x2e1b57;return{'id':p['id'],'type':a[_0x20d780(0x163)][_0x20d780(0x178)],'title':'exchange.download','icon':_0x20d780(0x17c)};}const x={[a[_0x2e1b57(0x190)][_0x2e1b57(0x16f)]]:{[h]:{'order':0x4,'menuItemFactory':I,[g['id']]:{'order':0x0,'menuItemFactory':O},[p['id']]:{'order':0x1,'menuItemFactory':E}}}};var D=Object[_0x2e1b57(0x16b)],f=(_0x3aa747,_0x51597a,_0x1b2c36,_0x1a8018)=>{for(var _0x44383c=_0x1a8018>0x1?void 0x0:_0x1a8018?D(_0x51597a,_0x1b2c36):_0x51597a,_0x488f0e=_0x3aa747['length']-0x1,_0x14348c;_0x488f0e>=0x0;_0x488f0e--)(_0x14348c=_0x3aa747[_0x488f0e])&&(_0x44383c=_0x14348c(_0x44383c)||_0x44383c);return _0x44383c;},_=(_0x4f134f,_0x2a1f23)=>(_0x14c062,_0x1b93d2)=>_0x2a1f23(_0x14c062,_0x1b93d2,_0x4f134f);function _0x783e(){var _0x3f9c26=['DependentOn','setConfig','ImportDOCXOperation','BUTTON','59216LZuXNY','disposeWithMe','IConfigService','ExportSingle','1603265aXHyay','merge','13848160kNQyAy','DOC_EXCHANGE_CLIENT_PLUGIN','@univerjs/ui','Module','exchange-client.operation.export-docx','_menuManagerService','UNIVER_DOC','Plugin','onReady','2617846qteMLM','6FgTTRU','_initCommands','exchange.file','symbol','ICommandService','mergeMenu','exchange-client.operation.import-docx','RibbonStartGroup','type','@univerjs/core','toStringTag','length','add','get','961652ycmvBZ','IMenuManagerService','@univerjs-pro/exchange-client','getMenuHiddenObservable','_initMenus','_configService','CommandType','Disposable','DirectExportSingle','OPERATION','_injector','exportDOCXByUnitId','SUBITEMS','UniverDocsExchangeClientPlugin','registerCommand','MenuItemType','Inject','menu','282756ilmKRO','docs-exchange-client.config','UniverExchangeClientPlugin','docs-exchange-client.operation.exchange','_config','getOwnPropertyDescriptor','forEach','Injector','_commandService','FILE','UniverInstanceType','1222494ikPBPI','importDOCXToUnitId','defineProperty','IExchangeOperateService'];_0x783e=function(){return _0x3f9c26;};return _0x783e();}let u=class extends i[_0x2e1b57(0x19e)]{constructor(_0x23fd05,_0x198514){var _0x21c11e=_0x2e1b57;super(),this[_0x21c11e(0x16e)]=_0x23fd05,this[_0x21c11e(0x184)]=_0x198514,this[_0x21c11e(0x18a)](),this[_0x21c11e(0x19b)]();}[_0x2e1b57(0x18a)](){var _0xf12901=_0x2e1b57;[g,p][_0xf12901(0x16c)](_0x252be2=>{var _0x204f9e=_0xf12901;this[_0x204f9e(0x17a)](this[_0x204f9e(0x16e)][_0x204f9e(0x162)](_0x252be2));});}[_0x2e1b57(0x19b)](){var _0x18a131=_0x2e1b57;this[_0x18a131(0x184)][_0x18a131(0x18e)](x);}};u=f([_(0x0,i[_0x2e1b57(0x18d)]),_(0x1,a[_0x2e1b57(0x198)])],u);var S=Object[_0x2e1b57(0x173)],y=Object['getOwnPropertyDescriptor'],P=(_0x4e94c8,_0x2f34a9,_0x15e589)=>_0x2f34a9 in _0x4e94c8?S(_0x4e94c8,_0x2f34a9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x15e589}):_0x4e94c8[_0x2f34a9]=_0x15e589,T=(_0x205bbd,_0x3bfac1,_0x50bcc7,_0x292911)=>{var _0x3dccb1=_0x2e1b57;for(var _0x32382e=_0x292911>0x1?void 0x0:_0x292911?y(_0x3bfac1,_0x50bcc7):_0x3bfac1,_0x135ab8=_0x205bbd[_0x3dccb1(0x194)]-0x1,_0x3ce6e3;_0x135ab8>=0x0;_0x135ab8--)(_0x3ce6e3=_0x205bbd[_0x135ab8])&&(_0x32382e=_0x3ce6e3(_0x32382e)||_0x32382e);return _0x32382e;},m=(_0x35453,_0x3607ec)=>(_0x277dcf,_0x32113e)=>_0x3607ec(_0x277dcf,_0x32113e,_0x35453),C=(_0x16f416,_0x2d884d,_0x210bf7)=>P(_0x16f416,typeof _0x2d884d!=_0x2e1b57(0x18c)?_0x2d884d+'':_0x2d884d,_0x210bf7);const U=_0x2e1b57(0x180);exports[_0x2e1b57(0x161)]=class extends i[_0x2e1b57(0x186)]{constructor(_0xcf3e9e=d,_0x358311,_0x259a91){var _0x1b9e7d=_0x2e1b57;super(),this[_0x1b9e7d(0x16a)]=_0xcf3e9e,this[_0x1b9e7d(0x1a1)]=_0x358311,this[_0x1b9e7d(0x19c)]=_0x259a91;const {menu:_0x39139b,..._0x14cae2}=i[_0x1b9e7d(0x17e)]({},d,this[_0x1b9e7d(0x16a)]);_0x39139b&&this[_0x1b9e7d(0x19c)]['setConfig'](_0x1b9e7d(0x165),_0x39139b,{'merge':!0x0}),this[_0x1b9e7d(0x19c)][_0x1b9e7d(0x176)](v,_0x14cae2);}['onStarting'](){var _0x28ab2b=_0x2e1b57;[[u]][_0x28ab2b(0x16c)](_0x33ef0c=>this[_0x28ab2b(0x1a1)][_0x28ab2b(0x195)](_0x33ef0c));}[_0x2e1b57(0x187)](){var _0x57c5ef=_0x2e1b57;this[_0x57c5ef(0x1a1)][_0x57c5ef(0x196)](u);}},C(exports[_0x2e1b57(0x161)],'pluginName',U),C(exports[_0x2e1b57(0x161)],_0x2e1b57(0x191),i['UniverInstanceType'][_0x2e1b57(0x185)]),exports['UniverDocsExchangeClientPlugin']=T([i[_0x2e1b57(0x175)](l[_0x2e1b57(0x168)]),m(0x1,i[_0x2e1b57(0x164)](i[_0x2e1b57(0x16d)])),m(0x2,i[_0x2e1b57(0x17b)])],exports[_0x2e1b57(0x161)]),exports['ExportDOCXOperation']=p,exports[_0x2e1b57(0x177)]=g;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x44a8c7=_0x34f0;(function(_0x3c2002,_0x5e8c16){var _0xcab964=_0x34f0,_0x4fa3cc=_0x3c2002();while(!![]){try{var _0x5bfd6c=-parseInt(_0xcab964(0x14c))/0x1+parseInt(_0xcab964(0x142))/0x2+parseInt(_0xcab964(0x153))/0x3*(-parseInt(_0xcab964(0x141))/0x4)+-parseInt(_0xcab964(0x139))/0x5+parseInt(_0xcab964(0x136))/0x6+parseInt(_0xcab964(0x14a))/0x7+parseInt(_0xcab964(0x13e))/0x8;if(_0x5bfd6c===_0x5e8c16)break;else _0x4fa3cc['push'](_0x4fa3cc['shift']());}catch(_0x2a9892){_0x4fa3cc['push'](_0x4fa3cc['shift']());}}}(_0x59a0,0xc1d43));import{IExchangeOperateService as _0x141436,UniverExchangeClientPlugin as _0x3d596a}from'@univerjs-pro/exchange-client';import{CommandType as _0x307e52,UniverInstanceType as _0x18f6cd,Disposable as _0x595dc4,ICommandService as _0x5762d6,DependentOn as _0x330d4a,Inject as _0x1b8f43,Injector as _0x4584e4,IConfigService as _0x586028,Plugin as _0x2c4628,merge as _0x53899e}from'@univerjs/core';import{MenuItemType as _0x27650f,getMenuHiddenObservable as _0x355f7b,RibbonStartGroup as _0x4371e5,IMenuManagerService as _0xdee807}from'@univerjs/ui';function _0x59a0(){var _0x1c1b74=['getOwnPropertyDescriptor','pluginName','exchange.download','DirectExportSingle','_menuManagerService','4653621OLvvgL','OPERATION','1016443fkuuPL','docs-exchange-client.operation.exchange','symbol','get','exchange.file','mergeMenu','UNIVER_DOC','1410855AolBwu','importDOCXToUnitId','_initMenus','exchange-client.operation.export-docx','ExportSingle','_injector','exchange-client.operation.import-docx','_commandService','setConfig','_configService','onReady','3647112bzHeOJ','menu','FILE','3582490UmoXoB','_initCommands','length','exportDOCXByUnitId','forEach','9628288KrrQTE','_config','SUBITEMS','4SkmtnN','1041916ABWrKP','add','FolderSingle'];_0x59a0=function(){return _0x1c1b74;};return _0x59a0();}const b='docs-exchange-client.config',m={},d={'id':_0x44a8c7(0x159),'type':_0x307e52[_0x44a8c7(0x14b)],'handler':async _0x3c9c01=>(_0x3c9c01['get'](_0x141436)[_0x44a8c7(0x154)](),!0x0)},_={'id':_0x44a8c7(0x156),'type':_0x307e52[_0x44a8c7(0x14b)],'handler':async _0x12063d=>(_0x12063d[_0x44a8c7(0x14f)](_0x141436)[_0x44a8c7(0x13c)](),!0x0)},I=_0x44a8c7(0x14d);function F(_0x48f25c){var _0x3f1af9=_0x44a8c7;return{'id':I,'type':_0x27650f[_0x3f1af9(0x140)],'icon':_0x3f1af9(0x148),'tooltip':_0x3f1af9(0x150),'hidden$':_0x355f7b(_0x48f25c,_0x18f6cd[_0x3f1af9(0x152)])};}function X(){var _0x2dff48=_0x44a8c7;return{'id':d['id'],'type':_0x27650f['BUTTON'],'title':'exchange.upload','icon':_0x2dff48(0x144)};}function G(){var _0x53b9f9=_0x44a8c7;return{'id':_['id'],'type':_0x27650f['BUTTON'],'title':_0x53b9f9(0x147),'icon':_0x53b9f9(0x157)};}const A={[_0x4371e5[_0x44a8c7(0x138)]]:{[I]:{'order':0x4,'menuItemFactory':F,[d['id']]:{'order':0x0,'menuItemFactory':X},[_['id']]:{'order':0x1,'menuItemFactory':G}}}};var L=Object['getOwnPropertyDescriptor'],R=(_0x38d39c,_0x252290,_0x338c96,_0x2fb3d4)=>{for(var _0x3b730d=_0x2fb3d4>0x1?void 0x0:_0x2fb3d4?L(_0x252290,_0x338c96):_0x252290,_0x511857=_0x38d39c['length']-0x1,_0x153732;_0x511857>=0x0;_0x511857--)(_0x153732=_0x38d39c[_0x511857])&&(_0x3b730d=_0x153732(_0x3b730d)||_0x3b730d);return _0x3b730d;},u=(_0x54da79,_0xe2adb4)=>(_0x30b959,_0x14b9d4)=>_0xe2adb4(_0x30b959,_0x14b9d4,_0x54da79);let a=class extends _0x595dc4{constructor(_0x17ee68,_0x4ed9e9){var _0x4d9f71=_0x44a8c7;super(),this[_0x4d9f71(0x15a)]=_0x17ee68,this[_0x4d9f71(0x149)]=_0x4ed9e9,this[_0x4d9f71(0x13a)](),this[_0x4d9f71(0x155)]();}[_0x44a8c7(0x13a)](){var _0x114c88=_0x44a8c7;[d,_][_0x114c88(0x13d)](_0x5050f0=>{this['disposeWithMe'](this['_commandService']['registerCommand'](_0x5050f0));});}[_0x44a8c7(0x155)](){var _0x28e2a9=_0x44a8c7;this[_0x28e2a9(0x149)][_0x28e2a9(0x151)](A);}};a=R([u(0x0,_0x5762d6),u(0x1,_0xdee807)],a);var j=Object['defineProperty'],w=Object[_0x44a8c7(0x145)],B=(_0x3b5f9e,_0x25a5cc,_0x164def)=>_0x25a5cc in _0x3b5f9e?j(_0x3b5f9e,_0x25a5cc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x164def}):_0x3b5f9e[_0x25a5cc]=_0x164def,H=(_0x44b66a,_0x2542a0,_0x363e66,_0x500df7)=>{var _0x4d22e2=_0x44a8c7;for(var _0x37e861=_0x500df7>0x1?void 0x0:_0x500df7?w(_0x2542a0,_0x363e66):_0x2542a0,_0x54fc3d=_0x44b66a[_0x4d22e2(0x13b)]-0x1,_0x52e0d6;_0x54fc3d>=0x0;_0x54fc3d--)(_0x52e0d6=_0x44b66a[_0x54fc3d])&&(_0x37e861=_0x52e0d6(_0x37e861)||_0x37e861);return _0x37e861;},g=(_0x4007f5,_0x2cc073)=>(_0x1ab89f,_0x12267a)=>_0x2cc073(_0x1ab89f,_0x12267a,_0x4007f5),v=(_0x2281ea,_0x295594,_0x4ca2c7)=>B(_0x2281ea,typeof _0x295594!=_0x44a8c7(0x14e)?_0x295594+'':_0x295594,_0x4ca2c7);const $='DOC_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x2c4628{constructor(_0x5f4330=m,_0x44336b,_0x3e775e){var _0x1e1c9e=_0x44a8c7;super(),this[_0x1e1c9e(0x13f)]=_0x5f4330,this['_injector']=_0x44336b,this[_0x1e1c9e(0x134)]=_0x3e775e;const {menu:_0x5e09da,..._0x5cd001}=_0x53899e({},m,this[_0x1e1c9e(0x13f)]);_0x5e09da&&this[_0x1e1c9e(0x134)]['setConfig'](_0x1e1c9e(0x137),_0x5e09da,{'merge':!0x0}),this[_0x1e1c9e(0x134)][_0x1e1c9e(0x133)](b,_0x5cd001);}['onStarting'](){var _0x5e4952=_0x44a8c7;[[a]][_0x5e4952(0x13d)](_0x49ce96=>this['_injector'][_0x5e4952(0x143)](_0x49ce96));}[_0x44a8c7(0x135)](){var _0x26bd8c=_0x44a8c7;this[_0x26bd8c(0x158)][_0x26bd8c(0x14f)](a);}};function _0x34f0(_0x52857b,_0x25805f){var _0x59a0fe=_0x59a0();return _0x34f0=function(_0x34f0c4,_0x418b38){_0x34f0c4=_0x34f0c4-0x133;var _0x4212b2=_0x59a0fe[_0x34f0c4];return _0x4212b2;},_0x34f0(_0x52857b,_0x25805f);}v(s,_0x44a8c7(0x146),$),v(s,'type',_0x18f6cd[_0x44a8c7(0x152)]),s=H([_0x330d4a(_0x3d596a),g(0x1,_0x1b8f43(_0x4584e4)),g(0x2,_0x586028)],s);export{_ as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5f45(_0x1c69a1,_0x3ba88b){var _0x3cb4c7=_0x3cb4();return _0x5f45=function(_0x5f450a,_0x1e28e9){_0x5f450a=_0x5f450a-0x190;var _0x35902a=_0x3cb4c7[_0x5f450a];return _0x35902a;},_0x5f45(_0x1c69a1,_0x3ba88b);}function _0x3cb4(){var _0xb161c4=['exports','exchange.file','Inject','421032HVbacC','onReady','UniverExchangeClientPlugin','ImportDOCXOperation','exchange.download','amd','3271758OgxSAT','DependentOn','_configService','UniverInstanceType','ICommandService','Module','UniverProExchangeClient','82715NTOpTF','Plugin','Disposable','defineProperty','UniverUi','CommandType','UNIVER_DOC','@univerjs-pro/exchange-client','IMenuManagerService','docs-exchange-client.operation.exchange','get','UniverCore','IExchangeOperateService','type','1880yoJfuT','DirectExportSingle','length','merge','forEach','@univerjs/ui','setConfig','ExportSingle','FILE','3slfsFB','function','exportDOCXByUnitId','Injector','docs-exchange-client.config','registerCommand','_injector','7114129aikZPa','ExportDOCXOperation','object','_initCommands','symbol','RibbonStartGroup','@univerjs/core','SUBITEMS','exchange-client.operation.import-docx','exchange.upload','18UEORdt','UniverDocsExchangeClientPlugin','MenuItemType','_menuManagerService','toStringTag','OPERATION','_config','onStarting','_commandService','importDOCXToUnitId','FolderSingle','32958GyExoT','BUTTON','167782SLRpEP','getMenuHiddenObservable','menu','62124cMjnns','_initMenus','54ojxdnE','DOC_EXCHANGE_CLIENT_PLUGIN'];_0x3cb4=function(){return _0xb161c4;};return _0x3cb4();}(function(_0x1bef28,_0x1de07f){var _0x2b4dd0=_0x5f45,_0x368399=_0x1bef28();while(!![]){try{var _0x425c5a=parseInt(_0x2b4dd0(0x197))/0x1*(parseInt(_0x2b4dd0(0x1b5))/0x2)+parseInt(_0x2b4dd0(0x1ba))/0x3*(-parseInt(_0x2b4dd0(0x1b8))/0x4)+parseInt(_0x2b4dd0(0x1cc))/0x5*(parseInt(_0x2b4dd0(0x1a8))/0x6)+parseInt(_0x2b4dd0(0x1c5))/0x7+-parseInt(_0x2b4dd0(0x1bf))/0x8+parseInt(_0x2b4dd0(0x1b3))/0x9*(-parseInt(_0x2b4dd0(0x1da))/0xa)+parseInt(_0x2b4dd0(0x19e))/0xb;if(_0x425c5a===_0x1de07f)break;else _0x368399['push'](_0x368399['shift']());}catch(_0x4d00a8){_0x368399['push'](_0x368399['shift']());}}}(_0x3cb4,0x60628),function(_0x2b5004,_0x1aa0b7){var _0x5a45ce=_0x5f45;typeof exports==_0x5a45ce(0x1a0)&&typeof module<'u'?_0x1aa0b7(exports,require(_0x5a45ce(0x1d3)),require(_0x5a45ce(0x1a4)),require(_0x5a45ce(0x193))):typeof define==_0x5a45ce(0x198)&&define[_0x5a45ce(0x1c4)]?define([_0x5a45ce(0x1bc),_0x5a45ce(0x1d3),_0x5a45ce(0x1a4),_0x5a45ce(0x193)],_0x1aa0b7):(_0x2b5004=typeof globalThis<'u'?globalThis:_0x2b5004||self,_0x1aa0b7(_0x2b5004['UniverProDocsExchangeClient']={},_0x2b5004[_0x5a45ce(0x1cb)],_0x2b5004[_0x5a45ce(0x1d7)],_0x2b5004[_0x5a45ce(0x1d0)]));}(this,function(_0x5a72f0,_0x3c1f91,_0x39e747,_0x596a14){'use strict';var _0x5b0415=_0x5f45;const _0x5e337d=_0x5b0415(0x19b),_0x345d55={},_0x35118e={'id':_0x5b0415(0x1a6),'type':_0x39e747[_0x5b0415(0x1d1)][_0x5b0415(0x1ad)],'handler':async _0x76cf9c=>(_0x76cf9c['get'](_0x3c1f91[_0x5b0415(0x1d8)])[_0x5b0415(0x1b1)](),!0x0)},_0x34d0a9={'id':'exchange-client.operation.export-docx','type':_0x39e747[_0x5b0415(0x1d1)][_0x5b0415(0x1ad)],'handler':async _0x3e7253=>(_0x3e7253[_0x5b0415(0x1d6)](_0x3c1f91[_0x5b0415(0x1d8)])[_0x5b0415(0x199)](),!0x0)},_0x87997d=_0x5b0415(0x1d5);function _0x3e375a(_0x1435c9){var _0x5363e8=_0x5b0415;return{'id':_0x87997d,'type':_0x596a14[_0x5363e8(0x1aa)][_0x5363e8(0x1a5)],'icon':_0x5363e8(0x1db),'tooltip':_0x5363e8(0x1bd),'hidden$':_0x596a14[_0x5363e8(0x1b6)](_0x1435c9,_0x39e747[_0x5363e8(0x1c8)][_0x5363e8(0x1d2)])};}function _0x31d605(){var _0x1387a4=_0x5b0415;return{'id':_0x35118e['id'],'type':_0x596a14[_0x1387a4(0x1aa)][_0x1387a4(0x1b4)],'title':_0x1387a4(0x1a7),'icon':_0x1387a4(0x1b2)};}function _0x4395c1(){var _0x2be9e0=_0x5b0415;return{'id':_0x34d0a9['id'],'type':_0x596a14[_0x2be9e0(0x1aa)][_0x2be9e0(0x1b4)],'title':_0x2be9e0(0x1c3),'icon':_0x2be9e0(0x195)};}const _0x2e111f={[_0x596a14[_0x5b0415(0x1a3)][_0x5b0415(0x196)]]:{[_0x87997d]:{'order':0x4,'menuItemFactory':_0x3e375a,[_0x35118e['id']]:{'order':0x0,'menuItemFactory':_0x31d605},[_0x34d0a9['id']]:{'order':0x1,'menuItemFactory':_0x4395c1}}}};var _0x5f32e5=Object['getOwnPropertyDescriptor'],_0x2cfe6b=(_0x5045ae,_0x21283e,_0x43e47c,_0x267c71)=>{var _0x7b0b9a=_0x5b0415;for(var _0x1814a9=_0x267c71>0x1?void 0x0:_0x267c71?_0x5f32e5(_0x21283e,_0x43e47c):_0x21283e,_0xa777c6=_0x5045ae[_0x7b0b9a(0x190)]-0x1,_0x545baa;_0xa777c6>=0x0;_0xa777c6--)(_0x545baa=_0x5045ae[_0xa777c6])&&(_0x1814a9=_0x545baa(_0x1814a9)||_0x1814a9);return _0x1814a9;},_0x234e09=(_0x49656c,_0x2f9890)=>(_0xa49bce,_0x63a0cd)=>_0x2f9890(_0xa49bce,_0x63a0cd,_0x49656c);let _0x2ee57c=class extends _0x39e747[_0x5b0415(0x1ce)]{constructor(_0x29eaa1,_0x414ea1){var _0x2f2d95=_0x5b0415;super(),this[_0x2f2d95(0x1b0)]=_0x29eaa1,this[_0x2f2d95(0x1ab)]=_0x414ea1,this['_initCommands'](),this[_0x2f2d95(0x1b9)]();}[_0x5b0415(0x1a1)](){var _0x45dccc=_0x5b0415;[_0x35118e,_0x34d0a9][_0x45dccc(0x192)](_0x367892=>{var _0x1f2336=_0x45dccc;this['disposeWithMe'](this[_0x1f2336(0x1b0)][_0x1f2336(0x19c)](_0x367892));});}[_0x5b0415(0x1b9)](){var _0x11444a=_0x5b0415;this[_0x11444a(0x1ab)]['mergeMenu'](_0x2e111f);}};_0x2ee57c=_0x2cfe6b([_0x234e09(0x0,_0x39e747[_0x5b0415(0x1c9)]),_0x234e09(0x1,_0x596a14[_0x5b0415(0x1d4)])],_0x2ee57c);var _0x5b5b75=Object['defineProperty'],_0x5ea67c=Object['getOwnPropertyDescriptor'],_0x736732=(_0x56c625,_0x4f4a8f,_0x12f1fa)=>_0x4f4a8f in _0x56c625?_0x5b5b75(_0x56c625,_0x4f4a8f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x12f1fa}):_0x56c625[_0x4f4a8f]=_0x12f1fa,_0x837ada=(_0xa1da36,_0x23f80a,_0x4a0b49,_0x24c1fe)=>{var _0x2e0e78=_0x5b0415;for(var _0x229973=_0x24c1fe>0x1?void 0x0:_0x24c1fe?_0x5ea67c(_0x23f80a,_0x4a0b49):_0x23f80a,_0x552fed=_0xa1da36[_0x2e0e78(0x190)]-0x1,_0x1e838d;_0x552fed>=0x0;_0x552fed--)(_0x1e838d=_0xa1da36[_0x552fed])&&(_0x229973=_0x1e838d(_0x229973)||_0x229973);return _0x229973;},_0x31de59=(_0x4fb411,_0x3bff08)=>(_0x14f5f8,_0x453954)=>_0x3bff08(_0x14f5f8,_0x453954,_0x4fb411),_0x937e58=(_0x160a75,_0x51f0de,_0x3626fd)=>_0x736732(_0x160a75,typeof _0x51f0de!=_0x5b0415(0x1a2)?_0x51f0de+'':_0x51f0de,_0x3626fd);const _0x7255be=_0x5b0415(0x1bb);_0x5a72f0['UniverDocsExchangeClientPlugin']=class extends _0x39e747[_0x5b0415(0x1cd)]{constructor(_0x140352=_0x345d55,_0x132d4a,_0x3176f9){var _0x14830c=_0x5b0415;super(),this[_0x14830c(0x1ae)]=_0x140352,this[_0x14830c(0x19d)]=_0x132d4a,this[_0x14830c(0x1c7)]=_0x3176f9;const {menu:_0xd82173,..._0x2bff10}=_0x39e747[_0x14830c(0x191)]({},_0x345d55,this[_0x14830c(0x1ae)]);_0xd82173&&this[_0x14830c(0x1c7)][_0x14830c(0x194)](_0x14830c(0x1b7),_0xd82173,{'merge':!0x0}),this['_configService'][_0x14830c(0x194)](_0x5e337d,_0x2bff10);}[_0x5b0415(0x1af)](){var _0x1b6c89=_0x5b0415;[[_0x2ee57c]]['forEach'](_0x33febf=>this[_0x1b6c89(0x19d)]['add'](_0x33febf));}[_0x5b0415(0x1c0)](){var _0x252eb5=_0x5b0415;this[_0x252eb5(0x19d)][_0x252eb5(0x1d6)](_0x2ee57c);}},_0x937e58(_0x5a72f0[_0x5b0415(0x1a9)],'pluginName',_0x7255be),_0x937e58(_0x5a72f0[_0x5b0415(0x1a9)],_0x5b0415(0x1d9),_0x39e747[_0x5b0415(0x1c8)][_0x5b0415(0x1d2)]),_0x5a72f0[_0x5b0415(0x1a9)]=_0x837ada([_0x39e747[_0x5b0415(0x1c6)](_0x3c1f91[_0x5b0415(0x1c1)]),_0x31de59(0x1,_0x39e747[_0x5b0415(0x1be)](_0x39e747[_0x5b0415(0x19a)])),_0x31de59(0x2,_0x39e747['IConfigService'])],_0x5a72f0[_0x5b0415(0x1a9)]),_0x5a72f0[_0x5b0415(0x19f)]=_0x34d0a9,_0x5a72f0[_0x5b0415(0x1c2)]=_0x35118e,Object[_0x5b0415(0x1cf)](_0x5a72f0,Symbol[_0x5b0415(0x1ac)],{'value':_0x5b0415(0x1ca)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/docs-exchange-client",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.7-experimental.20250326-6499c07",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -42,15 +42,15 @@
|
|
|
42
42
|
"lib"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@univerjs-pro/exchange-client": "0.6.
|
|
46
|
-
"@univerjs/core": "0.6.
|
|
47
|
-
"@univerjs/ui": "0.6.
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.6.7-experimental.20250326-6499c07",
|
|
46
|
+
"@univerjs/core": "0.6.7-experimental.20250326-6499c07",
|
|
47
|
+
"@univerjs/ui": "0.6.7-experimental.20250326-6499c07"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"typescript": "^5.8.2",
|
|
51
|
-
"vite": "^6.2.
|
|
52
|
-
"vitest": "^3.0.
|
|
53
|
-
"@univerjs-infra/shared": "0.6.
|
|
51
|
+
"vite": "^6.2.2",
|
|
52
|
+
"vitest": "^3.0.9",
|
|
53
|
+
"@univerjs-infra/shared": "0.6.7"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"test": "vitest run",
|