@univerjs-pro/docs-exchange-client 0.15.5 → 0.16.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/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
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x1caf48=_0x4944;(function(_0x3150f3,_0x68bf70){var _0x6c053f=_0x4944,_0xdff9a0=_0x3150f3();while(!![]){try{var _0x5c7df5=parseInt(_0x6c053f(0x1d3))/0x1*(parseInt(_0x6c053f(0x1bb))/0x2)+parseInt(_0x6c053f(0x1d0))/0x3*(parseInt(_0x6c053f(0x1da))/0x4)+-parseInt(_0x6c053f(0x1d1))/0x5*(parseInt(_0x6c053f(0x1c6))/0x6)+-parseInt(_0x6c053f(0x1b2))/0x7+-parseInt(_0x6c053f(0x1a0))/0x8*(-parseInt(_0x6c053f(0x1a7))/0x9)+parseInt(_0x6c053f(0x1ab))/0xa*(-parseInt(_0x6c053f(0x1d2))/0xb)+parseInt(_0x6c053f(0x1bd))/0xc*(parseInt(_0x6c053f(0x1b5))/0xd);if(_0x5c7df5===_0x68bf70)break;else _0xdff9a0['push'](_0xdff9a0['shift']());}catch(_0x1898d1){_0xdff9a0['push'](_0xdff9a0['shift']());}}}(_0x96e4,0xb1750));Object[_0x1caf48(0x1a1)](exports,Symbol['toStringTag'],{'value':'Module'});const d=require('@univerjs-pro/exchange-client'),i=require('@univerjs/core'),a=require('@univerjs/ui'),p={'id':_0x1caf48(0x1c7),'type':i[_0x1caf48(0x1db)][_0x1caf48(0x1b7)],'handler':async _0x4a65f2=>(_0x4a65f2['get'](d[_0x1caf48(0x1d8)])[_0x1caf48(0x1ae)](),!0x0)},g={'id':_0x1caf48(0x1c2),'type':i[_0x1caf48(0x1db)][_0x1caf48(0x1b7)],'handler':async _0x183fee=>(_0x183fee[_0x1caf48(0x1aa)](d[_0x1caf48(0x1d8)])[_0x1caf48(0x1d6)](),!0x0)},I=_0x1caf48(0x1ce),l={},h=_0x1caf48(0x1be);function _0x96e4(){var _0x40ee02=['IConfigService','_initMenus','UniverInstanceType','_injector','BUTTON','9yrLBKG','setConfig','_commandService','get','525630BLzsoW','DependentOn','symbol','importDOCXToUnitId','UNIVER_DOC','SUBITEMS','getOwnPropertyDescriptor','1016568owrOWJ','ICommandService','DirectExportIcon','1326WkVvAk','onStarting','OPERATION','Inject','forEach','getMenuHiddenObservable','626412jiHOtQ','_configService','130836pXzcJK','docs-exchange-client.operation.exchange','IMenuManagerService','disposeWithMe','length','exchange-client.operation.export-docx','_config','MenuItemType','_initCommands','134058oNAIFW','exchange-client.operation.import-docx','mergeMenu','RibbonStartGroup','onReady','Disposable','ImportDOCXOperation','ExportIcon','docs-exchange-client.config','UniverExchangeClientPlugin','112290Voooqw','265VkvOkH','121CJHnce','1BXhMds','ExportDOCXOperation','UniverDocsExchangeClientPlugin','exportDOCXByUnitId','_menuManagerService','IExchangeOperateService','merge','16EmVPPC','CommandType','OTHERS','8475424zyDrOW','defineProperty'];_0x96e4=function(){return _0x40ee02;};return _0x96e4();}function v(_0x1d2df2){var _0x321ed4=_0x1caf48;return{'id':h,'type':a[_0x321ed4(0x1c4)][_0x321ed4(0x1b0)],'icon':_0x321ed4(0x1b4),'tooltip':'exchange.file','hidden$':a[_0x321ed4(0x1ba)](_0x1d2df2,i[_0x321ed4(0x1a4)]['UNIVER_DOC'])};}function O(){var _0x34f9f7=_0x1caf48;return{'id':p['id'],'type':a[_0x34f9f7(0x1c4)][_0x34f9f7(0x1a6)],'title':'exchange.upload','icon':'FolderIcon'};}function E(){var _0x325e4a=_0x1caf48;return{'id':g['id'],'type':a[_0x325e4a(0x1c4)][_0x325e4a(0x1a6)],'title':'exchange.download','icon':_0x325e4a(0x1cd)};}const x={[a[_0x1caf48(0x1c9)][_0x1caf48(0x19f)]]:{[h]:{'order':0.3,'menuItemFactory':v,[p['id']]:{'order':0x0,'menuItemFactory':O},[g['id']]:{'order':0x1,'menuItemFactory':E}}}};var D=Object[_0x1caf48(0x1b1)],f=(_0x18638e,_0x594b4a,_0x541bac,_0x409fa7)=>{var _0x596d50=_0x1caf48;for(var _0x56c40e=_0x409fa7>0x1?void 0x0:_0x409fa7?D(_0x594b4a,_0x541bac):_0x594b4a,_0x41f536=_0x18638e[_0x596d50(0x1c1)]-0x1,_0x54f04b;_0x41f536>=0x0;_0x41f536--)(_0x54f04b=_0x18638e[_0x41f536])&&(_0x56c40e=_0x54f04b(_0x56c40e)||_0x56c40e);return _0x56c40e;},_=(_0x2e33aa,_0x4f9bae)=>(_0x560f8d,_0x5a0c23)=>_0x4f9bae(_0x560f8d,_0x5a0c23,_0x2e33aa);let u=class extends i[_0x1caf48(0x1cb)]{constructor(_0x2998d8,_0x1c6faa){var _0x1412de=_0x1caf48;super(),this[_0x1412de(0x1a9)]=_0x2998d8,this[_0x1412de(0x1d7)]=_0x1c6faa,this[_0x1412de(0x1c5)](),this[_0x1412de(0x1a3)]();}['_initCommands'](){var _0x2f046c=_0x1caf48;[p,g][_0x2f046c(0x1b9)](_0x327901=>{var _0x16149e=_0x2f046c;this[_0x16149e(0x1c0)](this[_0x16149e(0x1a9)]['registerCommand'](_0x327901));});}[_0x1caf48(0x1a3)](){var _0x5d8e17=_0x1caf48;this[_0x5d8e17(0x1d7)][_0x5d8e17(0x1c8)](x);}};function _0x4944(_0x2aa922,_0x420b97){_0x2aa922=_0x2aa922-0x19f;var _0x96e465=_0x96e4();var _0x494497=_0x96e465[_0x2aa922];return _0x494497;}u=f([_(0x0,i[_0x1caf48(0x1b3)]),_(0x1,a[_0x1caf48(0x1bf)])],u);var y=Object[_0x1caf48(0x1a1)],S=Object['getOwnPropertyDescriptor'],P=(_0x28881f,_0x580063,_0x585b04)=>_0x580063 in _0x28881f?y(_0x28881f,_0x580063,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x585b04}):_0x28881f[_0x580063]=_0x585b04,T=(_0x272b0b,_0x4eccf1,_0x2bc205,_0x5495a1)=>{var _0x1d06c4=_0x1caf48;for(var _0x175ad0=_0x5495a1>0x1?void 0x0:_0x5495a1?S(_0x4eccf1,_0x2bc205):_0x4eccf1,_0x369e41=_0x272b0b[_0x1d06c4(0x1c1)]-0x1,_0x3fa51c;_0x369e41>=0x0;_0x369e41--)(_0x3fa51c=_0x272b0b[_0x369e41])&&(_0x175ad0=_0x3fa51c(_0x175ad0)||_0x175ad0);return _0x175ad0;},m=(_0x434c01,_0x95fc5d)=>(_0x4c3e08,_0x2aecab)=>_0x95fc5d(_0x4c3e08,_0x2aecab,_0x434c01),C=(_0x408485,_0x24c54b,_0x2fcbf0)=>P(_0x408485,typeof _0x24c54b!=_0x1caf48(0x1ad)?_0x24c54b+'':_0x24c54b,_0x2fcbf0);const U='DOC_EXCHANGE_CLIENT_PLUGIN';exports[_0x1caf48(0x1d5)]=class extends i['Plugin']{constructor(_0x1dc726=l,_0x4f325d,_0x27d253){var _0x40bef7=_0x1caf48;super(),this['_config']=_0x1dc726,this['_injector']=_0x4f325d,this[_0x40bef7(0x1bc)]=_0x27d253;const {menu:_0x2f25f6,..._0x211e4b}=i[_0x40bef7(0x1d9)]({},l,this[_0x40bef7(0x1c3)]);_0x2f25f6&&this[_0x40bef7(0x1bc)]['setConfig']('menu',_0x2f25f6,{'merge':!0x0}),this['_configService'][_0x40bef7(0x1a8)](I,_0x211e4b);}[_0x1caf48(0x1b6)](){var _0x2a82af=_0x1caf48;[[u]][_0x2a82af(0x1b9)](_0xeb98f=>this[_0x2a82af(0x1a5)]['add'](_0xeb98f));}[_0x1caf48(0x1ca)](){var _0x253f64=_0x1caf48;this[_0x253f64(0x1a5)][_0x253f64(0x1aa)](u);}},C(exports['UniverDocsExchangeClientPlugin'],'pluginName',U),C(exports['UniverDocsExchangeClientPlugin'],'type',i[_0x1caf48(0x1a4)][_0x1caf48(0x1af)]),exports[_0x1caf48(0x1d5)]=T([i[_0x1caf48(0x1ac)](d[_0x1caf48(0x1cf)]),m(0x1,i[_0x1caf48(0x1b8)](i['Injector'])),m(0x2,i[_0x1caf48(0x1a2)])],exports[_0x1caf48(0x1d5)]),exports[_0x1caf48(0x1d4)]=g,exports[_0x1caf48(0x1cc)]=p;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x2199d5=_0x3bf1;(function(_0x59b95c,_0x518379){var _0x228981=_0x3bf1,_0x7a5fe0=_0x59b95c();while(!![]){try{var _0x41c41d=-parseInt(_0x228981(0xb3))/0x1*(parseInt(_0x228981(0x8e))/0x2)+parseInt(_0x228981(0x97))/0x3+-parseInt(_0x228981(0x90))/0x4+-parseInt(_0x228981(0x96))/0x5+parseInt(_0x228981(0x95))/0x6*(parseInt(_0x228981(0x99))/0x7)+-parseInt(_0x228981(0xb1))/0x8*(-parseInt(_0x228981(0x9c))/0x9)+parseInt(_0x228981(0xa8))/0xa;if(_0x41c41d===_0x518379)break;else _0x7a5fe0['push'](_0x7a5fe0['shift']());}catch(_0x38c33e){_0x7a5fe0['push'](_0x7a5fe0['shift']());}}}(_0x3370,0x725cb));import{IExchangeOperateService as _0x28eeb6,UniverExchangeClientPlugin as _0x3e08bc}from'@univerjs-pro/exchange-client';import{CommandType as _0x4d9b59,UniverInstanceType as _0xf9579c,Disposable as _0x1ebce6,ICommandService as _0x28cf3c,DependentOn as _0x181214,Inject as _0x306bfd,Injector as _0x1a2ada,Plugin as _0x414990,merge as _0x545f74,IConfigService as _0x3e56c5}from'@univerjs/core';import{MenuItemType as _0x1a51a2,getMenuHiddenObservable as _0xde9439,RibbonStartGroup as _0x93c15c,IMenuManagerService as _0x1e6d00}from'@univerjs/ui';const d={'id':_0x2199d5(0xb9),'type':_0x4d9b59['OPERATION'],'handler':async _0x3ba40f=>(_0x3ba40f[_0x2199d5(0xaa)](_0x28eeb6)['importDOCXToUnitId'](),!0x0)},_={'id':'exchange-client.operation.export-docx','type':_0x4d9b59[_0x2199d5(0xab)],'handler':async _0x2ec367=>(_0x2ec367['get'](_0x28eeb6)[_0x2199d5(0x91)](),!0x0)},b=_0x2199d5(0x94),m={},C=_0x2199d5(0xa2);function X(_0x2fc4f1){var _0xc81e02=_0x2199d5;return{'id':C,'type':_0x1a51a2[_0xc81e02(0xa9)],'icon':_0xc81e02(0x98),'tooltip':_0xc81e02(0xb5),'hidden$':_0xde9439(_0x2fc4f1,_0xf9579c['UNIVER_DOC'])};}function F(){var _0x535af4=_0x2199d5;return{'id':d['id'],'type':_0x1a51a2['BUTTON'],'title':_0x535af4(0x9a),'icon':_0x535af4(0xa1)};}function G(){var _0x12ad61=_0x2199d5;return{'id':_['id'],'type':_0x1a51a2[_0x12ad61(0xb0)],'title':_0x12ad61(0x93),'icon':_0x12ad61(0xb4)};}const R={[_0x93c15c[_0x2199d5(0xae)]]:{[C]:{'order':0.3,'menuItemFactory':X,[d['id']]:{'order':0x0,'menuItemFactory':F},[_['id']]:{'order':0x1,'menuItemFactory':G}}}};var A=Object['getOwnPropertyDescriptor'],j=(_0x2d9d5f,_0x5b3e6a,_0x131658,_0x36566b)=>{var _0x396d2d=_0x2199d5;for(var _0x22a033=_0x36566b>0x1?void 0x0:_0x36566b?A(_0x5b3e6a,_0x131658):_0x5b3e6a,_0x2e92bf=_0x2d9d5f[_0x396d2d(0xb6)]-0x1,_0x51d6c1;_0x2e92bf>=0x0;_0x2e92bf--)(_0x51d6c1=_0x2d9d5f[_0x2e92bf])&&(_0x22a033=_0x51d6c1(_0x22a033)||_0x22a033);return _0x22a033;},u=(_0x3d525,_0x36a83c)=>(_0x109426,_0x222a77)=>_0x36a83c(_0x109426,_0x222a77,_0x3d525);let a=class extends _0x1ebce6{constructor(_0x49e986,_0x1e8f89){var _0xd41e0f=_0x2199d5;super(),this[_0xd41e0f(0xb8)]=_0x49e986,this[_0xd41e0f(0xad)]=_0x1e8f89,this['_initCommands'](),this[_0xd41e0f(0xa0)]();}[_0x2199d5(0x8f)](){[d,_]['forEach'](_0x1013a8=>{var _0x3dcc7e=_0x3bf1;this[_0x3dcc7e(0xac)](this['_commandService'][_0x3dcc7e(0xa7)](_0x1013a8));});}[_0x2199d5(0xa0)](){var _0x6208af=_0x2199d5;this[_0x6208af(0xad)]['mergeMenu'](R);}};a=j([u(0x0,_0x28cf3c),u(0x1,_0x1e6d00)],a);var w=Object[_0x2199d5(0xa6)],H=Object[_0x2199d5(0xa5)],L=(_0x1a3e29,_0x4b3130,_0x31afcc)=>_0x4b3130 in _0x1a3e29?w(_0x1a3e29,_0x4b3130,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x31afcc}):_0x1a3e29[_0x4b3130]=_0x31afcc,B=(_0xdbabea,_0x371f7c,_0x564606,_0x28317e)=>{var _0x184387=_0x2199d5;for(var _0x58c97d=_0x28317e>0x1?void 0x0:_0x28317e?H(_0x371f7c,_0x564606):_0x371f7c,_0xc239c1=_0xdbabea[_0x184387(0xb6)]-0x1,_0x83c56b;_0xc239c1>=0x0;_0xc239c1--)(_0x83c56b=_0xdbabea[_0xc239c1])&&(_0x58c97d=_0x83c56b(_0x58c97d)||_0x58c97d);return _0x58c97d;},g=(_0x3242ba,_0x19e526)=>(_0x596115,_0x32263c)=>_0x19e526(_0x596115,_0x32263c,_0x3242ba),O=(_0x354f93,_0x956630,_0x33a46a)=>L(_0x354f93,typeof _0x956630!=_0x2199d5(0x9f)?_0x956630+'':_0x956630,_0x33a46a);const $=_0x2199d5(0xb7);function _0x3bf1(_0x2c68a6,_0x344687){_0x2c68a6=_0x2c68a6-0x8e;var _0x33702e=_0x3370();var _0x3bf1c8=_0x33702e[_0x2c68a6];return _0x3bf1c8;}let s=class extends _0x414990{constructor(_0x54d9bc=m,_0x4d8e6e,_0x252bf8){var _0x519760=_0x2199d5;super(),this[_0x519760(0x9b)]=_0x54d9bc,this[_0x519760(0x92)]=_0x4d8e6e,this[_0x519760(0x9d)]=_0x252bf8;const {menu:_0xe67e71,..._0x2251c2}=_0x545f74({},m,this['_config']);_0xe67e71&&this['_configService'][_0x519760(0xaf)](_0x519760(0xb2),_0xe67e71,{'merge':!0x0}),this[_0x519760(0x9d)][_0x519760(0xaf)](b,_0x2251c2);}[_0x2199d5(0xa3)](){var _0x42fcfa=_0x2199d5;[[a]]['forEach'](_0x4c9e31=>this['_injector'][_0x42fcfa(0xa4)](_0x4c9e31));}['onReady'](){var _0x1a1d32=_0x2199d5;this[_0x1a1d32(0x92)][_0x1a1d32(0xaa)](a);}};O(s,'pluginName',$),O(s,'type',_0xf9579c[_0x2199d5(0x9e)]),s=B([_0x181214(_0x3e08bc),g(0x1,_0x306bfd(_0x1a2ada)),g(0x2,_0x3e56c5)],s);function _0x3370(){var _0x16e137=['21gywpwG','exchange.upload','_config','6570GkaEMc','_configService','UNIVER_DOC','symbol','_initMenus','FolderIcon','docs-exchange-client.operation.exchange','onStarting','add','getOwnPropertyDescriptor','defineProperty','registerCommand','1440120UsBFiN','SUBITEMS','get','OPERATION','disposeWithMe','_menuManagerService','OTHERS','setConfig','BUTTON','8224dicSpD','menu','40841BGUrYN','ExportIcon','exchange.file','length','DOC_EXCHANGE_CLIENT_PLUGIN','_commandService','exchange-client.operation.import-docx','2LLckis','_initCommands','3706192DRQXOr','exportDOCXByUnitId','_injector','exchange.download','docs-exchange-client.config','1728534FUeboV','1996080FiVUgs','228939saNtQi','DirectExportIcon'];_0x3370=function(){return _0x16e137;};return _0x3370();}export{_ as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x2199d5=_0x3bf1;(function(_0x59b95c,_0x518379){var _0x228981=_0x3bf1,_0x7a5fe0=_0x59b95c();while(!![]){try{var _0x41c41d=-parseInt(_0x228981(0xb3))/0x1*(parseInt(_0x228981(0x8e))/0x2)+parseInt(_0x228981(0x97))/0x3+-parseInt(_0x228981(0x90))/0x4+-parseInt(_0x228981(0x96))/0x5+parseInt(_0x228981(0x95))/0x6*(parseInt(_0x228981(0x99))/0x7)+-parseInt(_0x228981(0xb1))/0x8*(-parseInt(_0x228981(0x9c))/0x9)+parseInt(_0x228981(0xa8))/0xa;if(_0x41c41d===_0x518379)break;else _0x7a5fe0['push'](_0x7a5fe0['shift']());}catch(_0x38c33e){_0x7a5fe0['push'](_0x7a5fe0['shift']());}}}(_0x3370,0x725cb));import{IExchangeOperateService as _0x28eeb6,UniverExchangeClientPlugin as _0x3e08bc}from'@univerjs-pro/exchange-client';import{CommandType as _0x4d9b59,UniverInstanceType as _0xf9579c,Disposable as _0x1ebce6,ICommandService as _0x28cf3c,DependentOn as _0x181214,Inject as _0x306bfd,Injector as _0x1a2ada,Plugin as _0x414990,merge as _0x545f74,IConfigService as _0x3e56c5}from'@univerjs/core';import{MenuItemType as _0x1a51a2,getMenuHiddenObservable as _0xde9439,RibbonStartGroup as _0x93c15c,IMenuManagerService as _0x1e6d00}from'@univerjs/ui';const d={'id':_0x2199d5(0xb9),'type':_0x4d9b59['OPERATION'],'handler':async _0x3ba40f=>(_0x3ba40f[_0x2199d5(0xaa)](_0x28eeb6)['importDOCXToUnitId'](),!0x0)},_={'id':'exchange-client.operation.export-docx','type':_0x4d9b59[_0x2199d5(0xab)],'handler':async _0x2ec367=>(_0x2ec367['get'](_0x28eeb6)[_0x2199d5(0x91)](),!0x0)},b=_0x2199d5(0x94),m={},C=_0x2199d5(0xa2);function X(_0x2fc4f1){var _0xc81e02=_0x2199d5;return{'id':C,'type':_0x1a51a2[_0xc81e02(0xa9)],'icon':_0xc81e02(0x98),'tooltip':_0xc81e02(0xb5),'hidden$':_0xde9439(_0x2fc4f1,_0xf9579c['UNIVER_DOC'])};}function F(){var _0x535af4=_0x2199d5;return{'id':d['id'],'type':_0x1a51a2['BUTTON'],'title':_0x535af4(0x9a),'icon':_0x535af4(0xa1)};}function G(){var _0x12ad61=_0x2199d5;return{'id':_['id'],'type':_0x1a51a2[_0x12ad61(0xb0)],'title':_0x12ad61(0x93),'icon':_0x12ad61(0xb4)};}const R={[_0x93c15c[_0x2199d5(0xae)]]:{[C]:{'order':0.3,'menuItemFactory':X,[d['id']]:{'order':0x0,'menuItemFactory':F},[_['id']]:{'order':0x1,'menuItemFactory':G}}}};var A=Object['getOwnPropertyDescriptor'],j=(_0x2d9d5f,_0x5b3e6a,_0x131658,_0x36566b)=>{var _0x396d2d=_0x2199d5;for(var _0x22a033=_0x36566b>0x1?void 0x0:_0x36566b?A(_0x5b3e6a,_0x131658):_0x5b3e6a,_0x2e92bf=_0x2d9d5f[_0x396d2d(0xb6)]-0x1,_0x51d6c1;_0x2e92bf>=0x0;_0x2e92bf--)(_0x51d6c1=_0x2d9d5f[_0x2e92bf])&&(_0x22a033=_0x51d6c1(_0x22a033)||_0x22a033);return _0x22a033;},u=(_0x3d525,_0x36a83c)=>(_0x109426,_0x222a77)=>_0x36a83c(_0x109426,_0x222a77,_0x3d525);let a=class extends _0x1ebce6{constructor(_0x49e986,_0x1e8f89){var _0xd41e0f=_0x2199d5;super(),this[_0xd41e0f(0xb8)]=_0x49e986,this[_0xd41e0f(0xad)]=_0x1e8f89,this['_initCommands'](),this[_0xd41e0f(0xa0)]();}[_0x2199d5(0x8f)](){[d,_]['forEach'](_0x1013a8=>{var _0x3dcc7e=_0x3bf1;this[_0x3dcc7e(0xac)](this['_commandService'][_0x3dcc7e(0xa7)](_0x1013a8));});}[_0x2199d5(0xa0)](){var _0x6208af=_0x2199d5;this[_0x6208af(0xad)]['mergeMenu'](R);}};a=j([u(0x0,_0x28cf3c),u(0x1,_0x1e6d00)],a);var w=Object[_0x2199d5(0xa6)],H=Object[_0x2199d5(0xa5)],L=(_0x1a3e29,_0x4b3130,_0x31afcc)=>_0x4b3130 in _0x1a3e29?w(_0x1a3e29,_0x4b3130,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x31afcc}):_0x1a3e29[_0x4b3130]=_0x31afcc,B=(_0xdbabea,_0x371f7c,_0x564606,_0x28317e)=>{var _0x184387=_0x2199d5;for(var _0x58c97d=_0x28317e>0x1?void 0x0:_0x28317e?H(_0x371f7c,_0x564606):_0x371f7c,_0xc239c1=_0xdbabea[_0x184387(0xb6)]-0x1,_0x83c56b;_0xc239c1>=0x0;_0xc239c1--)(_0x83c56b=_0xdbabea[_0xc239c1])&&(_0x58c97d=_0x83c56b(_0x58c97d)||_0x58c97d);return _0x58c97d;},g=(_0x3242ba,_0x19e526)=>(_0x596115,_0x32263c)=>_0x19e526(_0x596115,_0x32263c,_0x3242ba),O=(_0x354f93,_0x956630,_0x33a46a)=>L(_0x354f93,typeof _0x956630!=_0x2199d5(0x9f)?_0x956630+'':_0x956630,_0x33a46a);const $=_0x2199d5(0xb7);function _0x3bf1(_0x2c68a6,_0x344687){_0x2c68a6=_0x2c68a6-0x8e;var _0x33702e=_0x3370();var _0x3bf1c8=_0x33702e[_0x2c68a6];return _0x3bf1c8;}let s=class extends _0x414990{constructor(_0x54d9bc=m,_0x4d8e6e,_0x252bf8){var _0x519760=_0x2199d5;super(),this[_0x519760(0x9b)]=_0x54d9bc,this[_0x519760(0x92)]=_0x4d8e6e,this[_0x519760(0x9d)]=_0x252bf8;const {menu:_0xe67e71,..._0x2251c2}=_0x545f74({},m,this['_config']);_0xe67e71&&this['_configService'][_0x519760(0xaf)](_0x519760(0xb2),_0xe67e71,{'merge':!0x0}),this[_0x519760(0x9d)][_0x519760(0xaf)](b,_0x2251c2);}[_0x2199d5(0xa3)](){var _0x42fcfa=_0x2199d5;[[a]]['forEach'](_0x4c9e31=>this['_injector'][_0x42fcfa(0xa4)](_0x4c9e31));}['onReady'](){var _0x1a1d32=_0x2199d5;this[_0x1a1d32(0x92)][_0x1a1d32(0xaa)](a);}};O(s,'pluginName',$),O(s,'type',_0xf9579c[_0x2199d5(0x9e)]),s=B([_0x181214(_0x3e08bc),g(0x1,_0x306bfd(_0x1a2ada)),g(0x2,_0x3e56c5)],s);function _0x3370(){var _0x16e137=['21gywpwG','exchange.upload','_config','6570GkaEMc','_configService','UNIVER_DOC','symbol','_initMenus','FolderIcon','docs-exchange-client.operation.exchange','onStarting','add','getOwnPropertyDescriptor','defineProperty','registerCommand','1440120UsBFiN','SUBITEMS','get','OPERATION','disposeWithMe','_menuManagerService','OTHERS','setConfig','BUTTON','8224dicSpD','menu','40841BGUrYN','ExportIcon','exchange.file','length','DOC_EXCHANGE_CLIENT_PLUGIN','_commandService','exchange-client.operation.import-docx','2LLckis','_initCommands','3706192DRQXOr','exportDOCXByUnitId','_injector','exchange.download','docs-exchange-client.config','1728534FUeboV','1996080FiVUgs','228939saNtQi','DirectExportIcon'];_0x3370=function(){return _0x16e137;};return _0x3370();}export{_ as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5767(){var _0x13c2bc=['DOC_EXCHANGE_CLIENT_PLUGIN','Disposable','48GaBHat','defineProperty','@univerjs/core','IMenuManagerService','ExportIcon','2983945JSChOg','toStringTag','OPERATION','function','IExchangeOperateService','exchange.upload','OTHERS','getOwnPropertyDescriptor','26234hAzCnj','ImportDOCXOperation','35JpEkJH','2500461RKiiRT','Plugin','getMenuHiddenObservable','4052939bmeufM','UniverProExchangeClient','4kRioxi','length','MenuItemType','amd','UniverUi','SUBITEMS','importDOCXToUnitId','mergeMenu','@univerjs/ui','DependentOn','UniverInstanceType','_config','exchange-client.operation.import-docx','UniverCore','UniverExchangeClientPlugin','_menuManagerService','add','719939BMncRq','Module','15jmtulo','_commandService','CommandType','docs-exchange-client.config','_initMenus','setConfig','UNIVER_DOC','pluginName','_configService','Inject','exchange-client.operation.export-docx','66298080caGbPk','ExportDOCXOperation','exportDOCXByUnitId','docs-exchange-client.operation.exchange','disposeWithMe','get','_initCommands','UniverDocsExchangeClientPlugin','menu','registerCommand','1959954avTMLg','40tVzbeg','symbol','exchange.file','BUTTON'];_0x5767=function(){return _0x13c2bc;};return _0x5767();}function _0x5dd3(_0x3acdb7,_0xbf44c2){_0x3acdb7=_0x3acdb7-0x77;var _0x5767d6=_0x5767();var _0x5dd314=_0x5767d6[_0x3acdb7];return _0x5dd314;}(function(_0x282504,_0x45c1cc){var _0x2d164c=_0x5dd3,_0x51a33a=_0x282504();while(!![]){try{var _0xae1800=parseInt(_0x2d164c(0x88))/0x1+parseInt(_0x2d164c(0xb3))/0x2*(parseInt(_0x2d164c(0x8a))/0x3)+-parseInt(_0x2d164c(0x77))/0x4*(parseInt(_0x2d164c(0xab))/0x5)+-parseInt(_0x2d164c(0x9f))/0x6*(parseInt(_0x2d164c(0xb5))/0x7)+parseInt(_0x2d164c(0xa6))/0x8*(-parseInt(_0x2d164c(0xb6))/0x9)+parseInt(_0x2d164c(0xa0))/0xa*(-parseInt(_0x2d164c(0xb9))/0xb)+parseInt(_0x2d164c(0x95))/0xc;if(_0xae1800===_0x45c1cc)break;else _0x51a33a['push'](_0x51a33a['shift']());}catch(_0x24b49c){_0x51a33a['push'](_0x51a33a['shift']());}}}(_0x5767,0xe55f6),function(_0x1ac394,_0x3d387b){var _0x4e74de=_0x5dd3;typeof exports=='object'&&typeof module<'u'?_0x3d387b(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui')):typeof define==_0x4e74de(0xae)&&define[_0x4e74de(0x7a)]?define(['exports','@univerjs-pro/exchange-client',_0x4e74de(0xa8),_0x4e74de(0x7f)],_0x3d387b):(_0x1ac394=typeof globalThis<'u'?globalThis:_0x1ac394||self,_0x3d387b(_0x1ac394['UniverProDocsExchangeClient']={},_0x1ac394[_0x4e74de(0xba)],_0x1ac394[_0x4e74de(0x84)],_0x1ac394[_0x4e74de(0x7b)]));}(this,function(_0x12df13,_0x1fdf90,_0x574aa4,_0x41c635){'use strict';var _0x3afc9b=_0x5dd3;const _0x50758b={'id':_0x3afc9b(0x83),'type':_0x574aa4[_0x3afc9b(0x8c)][_0x3afc9b(0xad)],'handler':async _0x47ea68=>(_0x47ea68[_0x3afc9b(0x9a)](_0x1fdf90['IExchangeOperateService'])[_0x3afc9b(0x7d)](),!0x0)},_0x1f6eec={'id':_0x3afc9b(0x94),'type':_0x574aa4['CommandType']['OPERATION'],'handler':async _0xb600b=>(_0xb600b[_0x3afc9b(0x9a)](_0x1fdf90[_0x3afc9b(0xaf)])[_0x3afc9b(0x97)](),!0x0)},_0x5b4bf9=_0x3afc9b(0x8d),_0x55e847={},_0x1a1c40=_0x3afc9b(0x98);function _0x5b0fa7(_0x52692a){var _0xa1e613=_0x3afc9b;return{'id':_0x1a1c40,'type':_0x41c635['MenuItemType'][_0xa1e613(0x7c)],'icon':'DirectExportIcon','tooltip':_0xa1e613(0xa2),'hidden$':_0x41c635[_0xa1e613(0xb8)](_0x52692a,_0x574aa4[_0xa1e613(0x81)]['UNIVER_DOC'])};}function _0x432ea1(){var _0x40eabf=_0x3afc9b;return{'id':_0x50758b['id'],'type':_0x41c635[_0x40eabf(0x79)][_0x40eabf(0xa3)],'title':_0x40eabf(0xb0),'icon':'FolderIcon'};}function _0xe64a5a(){var _0x3d462f=_0x3afc9b;return{'id':_0x1f6eec['id'],'type':_0x41c635[_0x3d462f(0x79)][_0x3d462f(0xa3)],'title':'exchange.download','icon':_0x3d462f(0xaa)};}const _0x566524={[_0x41c635['RibbonStartGroup'][_0x3afc9b(0xb1)]]:{[_0x1a1c40]:{'order':0.3,'menuItemFactory':_0x5b0fa7,[_0x50758b['id']]:{'order':0x0,'menuItemFactory':_0x432ea1},[_0x1f6eec['id']]:{'order':0x1,'menuItemFactory':_0xe64a5a}}}};var _0x452663=Object['getOwnPropertyDescriptor'],_0x4b6c0d=(_0x24c5e7,_0x3f5a40,_0x5b6a36,_0x1a0ad9)=>{var _0x3c09bd=_0x3afc9b;for(var _0x4307f8=_0x1a0ad9>0x1?void 0x0:_0x1a0ad9?_0x452663(_0x3f5a40,_0x5b6a36):_0x3f5a40,_0x56520e=_0x24c5e7[_0x3c09bd(0x78)]-0x1,_0x595bf3;_0x56520e>=0x0;_0x56520e--)(_0x595bf3=_0x24c5e7[_0x56520e])&&(_0x4307f8=_0x595bf3(_0x4307f8)||_0x4307f8);return _0x4307f8;},_0x159ac0=(_0x5132ce,_0x2316b9)=>(_0x2c4119,_0x49341f)=>_0x2316b9(_0x2c4119,_0x49341f,_0x5132ce);let _0x32e9d3=class extends _0x574aa4[_0x3afc9b(0xa5)]{constructor(_0x2cb9ae,_0xd7dcb2){var _0x3be42c=_0x3afc9b;super(),this[_0x3be42c(0x8b)]=_0x2cb9ae,this[_0x3be42c(0x86)]=_0xd7dcb2,this[_0x3be42c(0x9b)](),this[_0x3be42c(0x8e)]();}['_initCommands'](){[_0x50758b,_0x1f6eec]['forEach'](_0x49697b=>{var _0x4c0d05=_0x5dd3;this[_0x4c0d05(0x99)](this[_0x4c0d05(0x8b)][_0x4c0d05(0x9e)](_0x49697b));});}['_initMenus'](){var _0x1b1fed=_0x3afc9b;this[_0x1b1fed(0x86)][_0x1b1fed(0x7e)](_0x566524);}};_0x32e9d3=_0x4b6c0d([_0x159ac0(0x0,_0x574aa4['ICommandService']),_0x159ac0(0x1,_0x41c635[_0x3afc9b(0xa9)])],_0x32e9d3);var _0x536bc=Object['defineProperty'],_0x52d516=Object[_0x3afc9b(0xb2)],_0x5843bd=(_0x1bb46c,_0x3fca58,_0x2c2e21)=>_0x3fca58 in _0x1bb46c?_0x536bc(_0x1bb46c,_0x3fca58,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c2e21}):_0x1bb46c[_0x3fca58]=_0x2c2e21,_0x786d3e=(_0xb2a5e,_0x2d59ec,_0x357b5d,_0x255bbf)=>{var _0xd4d7bc=_0x3afc9b;for(var _0x484caa=_0x255bbf>0x1?void 0x0:_0x255bbf?_0x52d516(_0x2d59ec,_0x357b5d):_0x2d59ec,_0x35a7be=_0xb2a5e[_0xd4d7bc(0x78)]-0x1,_0x1b90a5;_0x35a7be>=0x0;_0x35a7be--)(_0x1b90a5=_0xb2a5e[_0x35a7be])&&(_0x484caa=_0x1b90a5(_0x484caa)||_0x484caa);return _0x484caa;},_0x3fe68b=(_0x1456d8,_0x74a98b)=>(_0x412fea,_0xa98604)=>_0x74a98b(_0x412fea,_0xa98604,_0x1456d8),_0x444a74=(_0x43db06,_0x40afb3,_0x15b39e)=>_0x5843bd(_0x43db06,typeof _0x40afb3!=_0x3afc9b(0xa1)?_0x40afb3+'':_0x40afb3,_0x15b39e);const _0x59373b=_0x3afc9b(0xa4);_0x12df13[_0x3afc9b(0x9c)]=class extends _0x574aa4[_0x3afc9b(0xb7)]{constructor(_0x3f6f2f=_0x55e847,_0xc21743,_0x3eef8a){var _0x33b24f=_0x3afc9b;super(),this[_0x33b24f(0x82)]=_0x3f6f2f,this['_injector']=_0xc21743,this[_0x33b24f(0x92)]=_0x3eef8a;const {menu:_0x47b90c,..._0x227f5d}=_0x574aa4['merge']({},_0x55e847,this[_0x33b24f(0x82)]);_0x47b90c&&this['_configService'][_0x33b24f(0x8f)](_0x33b24f(0x9d),_0x47b90c,{'merge':!0x0}),this['_configService']['setConfig'](_0x5b4bf9,_0x227f5d);}['onStarting'](){var _0x5e5b21=_0x3afc9b;[[_0x32e9d3]]['forEach'](_0x5a03a5=>this['_injector'][_0x5e5b21(0x87)](_0x5a03a5));}['onReady'](){this['_injector']['get'](_0x32e9d3);}},_0x444a74(_0x12df13['UniverDocsExchangeClientPlugin'],_0x3afc9b(0x91),_0x59373b),_0x444a74(_0x12df13[_0x3afc9b(0x9c)],'type',_0x574aa4[_0x3afc9b(0x81)][_0x3afc9b(0x90)]),_0x12df13[_0x3afc9b(0x9c)]=_0x786d3e([_0x574aa4[_0x3afc9b(0x80)](_0x1fdf90[_0x3afc9b(0x85)]),_0x3fe68b(0x1,_0x574aa4[_0x3afc9b(0x93)](_0x574aa4['Injector'])),_0x3fe68b(0x2,_0x574aa4['IConfigService'])],_0x12df13['UniverDocsExchangeClientPlugin']),_0x12df13[_0x3afc9b(0x96)]=_0x1f6eec,_0x12df13[_0x3afc9b(0xb4)]=_0x50758b,Object[_0x3afc9b(0xa7)](_0x12df13,Symbol[_0x3afc9b(0xac)],{'value':_0x3afc9b(0x89)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/docs-exchange-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
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.
|
|
46
|
-
"@univerjs/core": "0.
|
|
47
|
-
"@univerjs/ui": "0.
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.16.0",
|
|
46
|
+
"@univerjs/core": "0.16.0",
|
|
47
|
+
"@univerjs/ui": "0.16.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"typescript": "^5.9.3",
|
|
51
51
|
"vite": "^7.3.1",
|
|
52
52
|
"vitest": "^4.0.18",
|
|
53
|
-
"@univerjs-infra/shared": "0.
|
|
53
|
+
"@univerjs-infra/shared": "0.16.0"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"test": "vitest run",
|