@univerjs-pro/docs-exchange-client 0.10.11 → 0.10.12-nightly.202510251119
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 _0x4e6bae=_0x4aac;(function(_0x5600ee,_0x2c197f){var _0x2e0739=_0x4aac,_0x4839d7=_0x5600ee();while(!![]){try{var _0x55351d=parseInt(_0x2e0739(0x93))/0x1*(parseInt(_0x2e0739(0x8c))/0x2)+-parseInt(_0x2e0739(0x8f))/0x3+-parseInt(_0x2e0739(0x8a))/0x4*(parseInt(_0x2e0739(0x97))/0x5)+parseInt(_0x2e0739(0x9a))/0x6+parseInt(_0x2e0739(0xac))/0x7*(-parseInt(_0x2e0739(0x9e))/0x8)+parseInt(_0x2e0739(0xb6))/0x9+parseInt(_0x2e0739(0xbf))/0xa;if(_0x55351d===_0x2c197f)break;else _0x4839d7['push'](_0x4839d7['shift']());}catch(_0x2d1153){_0x4839d7['push'](_0x4839d7['shift']());}}}(_0x125f,0x755ef));Object[_0x4e6bae(0x95)](exports,Symbol[_0x4e6bae(0xc1)],{'value':_0x4e6bae(0xa3)});const d=require('@univerjs-pro/exchange-client'),i=require('@univerjs/core'),a=require('@univerjs/ui'),p={'id':'exchange-client.operation.import-docx','type':i['CommandType'][_0x4e6bae(0xb5)],'handler':async _0x5827f7=>(_0x5827f7['get'](d[_0x4e6bae(0xc4)])['importDOCXToUnitId'](),!0x0)},g={'id':_0x4e6bae(0xc5),'type':i[_0x4e6bae(0xa0)][_0x4e6bae(0xb5)],'handler':async _0x129c3f=>(_0x129c3f[_0x4e6bae(0x99)](d[_0x4e6bae(0xc4)])['exportDOCXByUnitId'](),!0x0)},I=_0x4e6bae(0x9f),l={},h=_0x4e6bae(0xbc);function v(_0x17f785){var _0x213d22=_0x4e6bae;return{'id':h,'type':a['MenuItemType'][_0x213d22(0x90)],'icon':_0x213d22(0xa6),'tooltip':_0x213d22(0xbd),'hidden$':a[_0x213d22(0x98)](_0x17f785,i['UniverInstanceType'][_0x213d22(0xbe)])};}function O(){var _0x705b8c=_0x4e6bae;return{'id':p['id'],'type':a[_0x705b8c(0x8d)][_0x705b8c(0xb2)],'title':_0x705b8c(0xb9),'icon':_0x705b8c(0xba)};}function E(){var _0x823d3c=_0x4e6bae;return{'id':g['id'],'type':a[_0x823d3c(0x8d)]['BUTTON'],'title':'exchange.download','icon':_0x823d3c(0x94)};}const x={[a['RibbonStartGroup'][_0x4e6bae(0xae)]]:{[h]:{'order':0.3,'menuItemFactory':v,[p['id']]:{'order':0x0,'menuItemFactory':O},[g['id']]:{'order':0x1,'menuItemFactory':E}}}};var D=Object[_0x4e6bae(0x96)],f=(_0x519a3c,_0xb0771b,_0x3bfed6,_0x49a3eb)=>{var _0x586ed2=_0x4e6bae;for(var _0x67779b=_0x49a3eb>0x1?void 0x0:_0x49a3eb?D(_0xb0771b,_0x3bfed6):_0xb0771b,_0x3a8085=_0x519a3c[_0x586ed2(0xb0)]-0x1,_0x4b9ebd;_0x3a8085>=0x0;_0x3a8085--)(_0x4b9ebd=_0x519a3c[_0x3a8085])&&(_0x67779b=_0x4b9ebd(_0x67779b)||_0x67779b);return _0x67779b;},_=(_0x38c777,_0x4ae365)=>(_0x50b038,_0xb23fc0)=>_0x4ae365(_0x50b038,_0xb23fc0,_0x38c777);let u=class extends i[_0x4e6bae(0xab)]{constructor(_0x4276b8,_0x48121e){var _0x5c8d96=_0x4e6bae;super(),this[_0x5c8d96(0xb1)]=_0x4276b8,this['_menuManagerService']=_0x48121e,this[_0x5c8d96(0x91)](),this['_initMenus']();}[_0x4e6bae(0x91)](){var _0x222046=_0x4e6bae;[p,g][_0x222046(0xa2)](_0xa3fb64=>{var _0x286c6b=_0x222046;this['disposeWithMe'](this[_0x286c6b(0xb1)][_0x286c6b(0x9c)](_0xa3fb64));});}[_0x4e6bae(0x92)](){var _0x4d9634=_0x4e6bae;this[_0x4d9634(0xa1)][_0x4d9634(0x9d)](x);}};u=f([_(0x0,i[_0x4e6bae(0xaf)]),_(0x1,a['IMenuManagerService'])],u);function _0x125f(){var _0x5b2c9b=['SUBITEMS','_initCommands','_initMenus','529941ZUtYnd','ExportIcon','defineProperty','getOwnPropertyDescriptor','22415ELzALe','getMenuHiddenObservable','get','4252038DAbYtw','IConfigService','registerCommand','mergeMenu','8ZffiPG','docs-exchange-client.config','CommandType','_menuManagerService','forEach','Module','_configService','menu','DirectExportIcon','UniverExchangeClientPlugin','_injector','pluginName','setConfig','Disposable','3735613ksbVpR','ExportDOCXOperation','OTHERS','ICommandService','length','_commandService','BUTTON','UniverDocsExchangeClientPlugin','Inject','OPERATION','98955WNJNfy','merge','Plugin','exchange.upload','FolderIcon','type','docs-exchange-client.operation.exchange','exchange.file','UNIVER_DOC','9249810owSNSg','add','toStringTag','onReady','ImportDOCXOperation','IExchangeOperateService','exchange-client.operation.export-docx','568khxadW','DependentOn','2jxjXwG','MenuItemType','_config','1570782VyKGXt'];_0x125f=function(){return _0x5b2c9b;};return _0x125f();}var y=Object['defineProperty'],S=Object['getOwnPropertyDescriptor'],P=(_0x2c22f9,_0x3acc53,_0xed57b1)=>_0x3acc53 in _0x2c22f9?y(_0x2c22f9,_0x3acc53,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xed57b1}):_0x2c22f9[_0x3acc53]=_0xed57b1,T=(_0x276089,_0x7e2f79,_0x13f32f,_0x155bb7)=>{var _0xe1eaa3=_0x4e6bae;for(var _0x1d3830=_0x155bb7>0x1?void 0x0:_0x155bb7?S(_0x7e2f79,_0x13f32f):_0x7e2f79,_0x4a5fac=_0x276089[_0xe1eaa3(0xb0)]-0x1,_0x572ad7;_0x4a5fac>=0x0;_0x4a5fac--)(_0x572ad7=_0x276089[_0x4a5fac])&&(_0x1d3830=_0x572ad7(_0x1d3830)||_0x1d3830);return _0x1d3830;},m=(_0x5c0b9f,_0x21887a)=>(_0x1869b2,_0xce7a16)=>_0x21887a(_0x1869b2,_0xce7a16,_0x5c0b9f),C=(_0x4d5576,_0x488a92,_0x15e0ec)=>P(_0x4d5576,typeof _0x488a92!='symbol'?_0x488a92+'':_0x488a92,_0x15e0ec);const U='DOC_EXCHANGE_CLIENT_PLUGIN';function _0x4aac(_0x39d610,_0x2b3664){var _0x125fb3=_0x125f();return _0x4aac=function(_0x4aac43,_0x1e8187){_0x4aac43=_0x4aac43-0x8a;var _0x323b50=_0x125fb3[_0x4aac43];return _0x323b50;},_0x4aac(_0x39d610,_0x2b3664);}exports['UniverDocsExchangeClientPlugin']=class extends i[_0x4e6bae(0xb8)]{constructor(_0x2063a8=l,_0x140243,_0x1e6ad5){var _0x220837=_0x4e6bae;super(),this[_0x220837(0x8e)]=_0x2063a8,this['_injector']=_0x140243,this['_configService']=_0x1e6ad5;const {menu:_0x2f9b65,..._0x2539f6}=i[_0x220837(0xb7)]({},l,this[_0x220837(0x8e)]);_0x2f9b65&&this['_configService'][_0x220837(0xaa)](_0x220837(0xa5),_0x2f9b65,{'merge':!0x0}),this[_0x220837(0xa4)]['setConfig'](I,_0x2539f6);}['onStarting'](){var _0x45907e=_0x4e6bae;[[u]]['forEach'](_0x1fcaad=>this[_0x45907e(0xa8)][_0x45907e(0xc0)](_0x1fcaad));}[_0x4e6bae(0xc2)](){var _0x5ae6e7=_0x4e6bae;this[_0x5ae6e7(0xa8)][_0x5ae6e7(0x99)](u);}},C(exports[_0x4e6bae(0xb3)],_0x4e6bae(0xa9),U),C(exports['UniverDocsExchangeClientPlugin'],_0x4e6bae(0xbb),i['UniverInstanceType'][_0x4e6bae(0xbe)]),exports[_0x4e6bae(0xb3)]=T([i[_0x4e6bae(0x8b)](d[_0x4e6bae(0xa7)]),m(0x1,i[_0x4e6bae(0xb4)](i['Injector'])),m(0x2,i[_0x4e6bae(0x9b)])],exports['UniverDocsExchangeClientPlugin']),exports[_0x4e6bae(0xad)]=g,exports[_0x4e6bae(0xc3)]=p;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x3390ab=_0x443f;function _0x2200(){var _0xa950ed=['_initCommands','1619376wiHYAQ','2997504yxTJcS','exchange.file','disposeWithMe','defineProperty','397005lYPXiA','_commandService','onStarting','2143256xGCqsc','exchange-client.operation.import-docx','exportDOCXByUnitId','add','OTHERS','importDOCXToUnitId','OPERATION','forEach','_configService','menu','FolderIcon','BUTTON','13302XkBOJl','setConfig','exchange-client.operation.export-docx','4251317SgXYbd','_menuManagerService','pluginName','1275369JbiNVC','UNIVER_DOC','get','length','docs-exchange-client.config','docs-exchange-client.operation.exchange','_injector','1420vSiJkZ','exchange.upload','mergeMenu','getOwnPropertyDescriptor','DirectExportIcon','_config','SUBITEMS'];_0x2200=function(){return _0xa950ed;};return _0x2200();}(function(_0x592769,_0x3c641f){var _0x55666b=_0x443f,_0x5f1d9d=_0x592769();while(!![]){try{var _0x29eeab=-parseInt(_0x55666b(0x136))/0x1+parseInt(_0x55666b(0x131))/0x2+parseInt(_0x55666b(0x14b))/0x3+-parseInt(_0x55666b(0x139))/0x4+parseInt(_0x55666b(0x129))/0x5*(-parseInt(_0x55666b(0x145))/0x6)+parseInt(_0x55666b(0x148))/0x7+parseInt(_0x55666b(0x132))/0x8;if(_0x29eeab===_0x3c641f)break;else _0x5f1d9d['push'](_0x5f1d9d['shift']());}catch(_0x52bcba){_0x5f1d9d['push'](_0x5f1d9d['shift']());}}}(_0x2200,0x9fc2f));import{IExchangeOperateService as _0x114b68,UniverExchangeClientPlugin as _0x5abca3}from'@univerjs-pro/exchange-client';import{CommandType as _0x7111c5,UniverInstanceType as _0x31fb68,Disposable as _0x452fff,ICommandService as _0x52e75e,DependentOn as _0xa1c550,Inject as _0xff871c,Injector as _0x555205,IConfigService as _0x452b08,Plugin as _0x40c7c8,merge as _0x16bbd9}from'@univerjs/core';import{MenuItemType as _0x223401,getMenuHiddenObservable as _0x42c087,RibbonStartGroup as _0x36d4ba,IMenuManagerService as _0xcb958f}from'@univerjs/ui';const d={'id':_0x3390ab(0x13a),'type':_0x7111c5[_0x3390ab(0x13f)],'handler':async _0x4dee8c=>(_0x4dee8c[_0x3390ab(0x14d)](_0x114b68)[_0x3390ab(0x13e)](),!0x0)},_={'id':_0x3390ab(0x147),'type':_0x7111c5[_0x3390ab(0x13f)],'handler':async _0x452e69=>(_0x452e69['get'](_0x114b68)[_0x3390ab(0x13b)](),!0x0)},b=_0x3390ab(0x126),m={},C=_0x3390ab(0x127);function X(_0x36a6cf){var _0x1df78f=_0x3390ab;return{'id':C,'type':_0x223401[_0x1df78f(0x12f)],'icon':_0x1df78f(0x12d),'tooltip':_0x1df78f(0x133),'hidden$':_0x42c087(_0x36a6cf,_0x31fb68[_0x1df78f(0x14c)])};}function _0x443f(_0x3663df,_0x567a06){var _0x22003a=_0x2200();return _0x443f=function(_0x443f79,_0x3e931f){_0x443f79=_0x443f79-0x125;var _0x52c1ce=_0x22003a[_0x443f79];return _0x52c1ce;},_0x443f(_0x3663df,_0x567a06);}function F(){var _0xd5b37=_0x3390ab;return{'id':d['id'],'type':_0x223401[_0xd5b37(0x144)],'title':_0xd5b37(0x12a),'icon':_0xd5b37(0x143)};}function G(){var _0x15c16c=_0x3390ab;return{'id':_['id'],'type':_0x223401[_0x15c16c(0x144)],'title':'exchange.download','icon':'ExportIcon'};}const R={[_0x36d4ba[_0x3390ab(0x13d)]]:{[C]:{'order':0.3,'menuItemFactory':X,[d['id']]:{'order':0x0,'menuItemFactory':F},[_['id']]:{'order':0x1,'menuItemFactory':G}}}};var A=Object[_0x3390ab(0x12c)],j=(_0x2c4c,_0x6a87e7,_0x117b75,_0x317fc7)=>{var _0x35d8a4=_0x3390ab;for(var _0x211dac=_0x317fc7>0x1?void 0x0:_0x317fc7?A(_0x6a87e7,_0x117b75):_0x6a87e7,_0x18643e=_0x2c4c[_0x35d8a4(0x125)]-0x1,_0x104af8;_0x18643e>=0x0;_0x18643e--)(_0x104af8=_0x2c4c[_0x18643e])&&(_0x211dac=_0x104af8(_0x211dac)||_0x211dac);return _0x211dac;},u=(_0x57113d,_0x4719d2)=>(_0x9e6e8c,_0x379e69)=>_0x4719d2(_0x9e6e8c,_0x379e69,_0x57113d);let a=class extends _0x452fff{constructor(_0x19bf11,_0x1c1af2){var _0x1f4044=_0x3390ab;super(),this[_0x1f4044(0x137)]=_0x19bf11,this[_0x1f4044(0x149)]=_0x1c1af2,this[_0x1f4044(0x130)](),this['_initMenus']();}[_0x3390ab(0x130)](){var _0x5edb3c=_0x3390ab;[d,_][_0x5edb3c(0x140)](_0x4e00fc=>{var _0x460747=_0x5edb3c;this[_0x460747(0x134)](this[_0x460747(0x137)]['registerCommand'](_0x4e00fc));});}['_initMenus'](){var _0x5eb0ce=_0x3390ab;this[_0x5eb0ce(0x149)][_0x5eb0ce(0x12b)](R);}};a=j([u(0x0,_0x52e75e),u(0x1,_0xcb958f)],a);var w=Object[_0x3390ab(0x135)],H=Object[_0x3390ab(0x12c)],L=(_0x4187f9,_0x92e225,_0x5ef740)=>_0x92e225 in _0x4187f9?w(_0x4187f9,_0x92e225,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5ef740}):_0x4187f9[_0x92e225]=_0x5ef740,B=(_0x3cbcb2,_0x16c64a,_0x2c8d09,_0x3692d3)=>{var _0x433f7d=_0x3390ab;for(var _0x4be178=_0x3692d3>0x1?void 0x0:_0x3692d3?H(_0x16c64a,_0x2c8d09):_0x16c64a,_0x3fbd72=_0x3cbcb2[_0x433f7d(0x125)]-0x1,_0x21d010;_0x3fbd72>=0x0;_0x3fbd72--)(_0x21d010=_0x3cbcb2[_0x3fbd72])&&(_0x4be178=_0x21d010(_0x4be178)||_0x4be178);return _0x4be178;},g=(_0xafbbc8,_0x2f5e19)=>(_0x4900a3,_0x4cd617)=>_0x2f5e19(_0x4900a3,_0x4cd617,_0xafbbc8),O=(_0x2b2c0b,_0x12136b,_0x37a68c)=>L(_0x2b2c0b,typeof _0x12136b!='symbol'?_0x12136b+'':_0x12136b,_0x37a68c);const $='DOC_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x40c7c8{constructor(_0x59f992=m,_0x49c28e,_0x5dc2f3){var _0x1e93ad=_0x3390ab;super(),this[_0x1e93ad(0x12e)]=_0x59f992,this[_0x1e93ad(0x128)]=_0x49c28e,this[_0x1e93ad(0x141)]=_0x5dc2f3;const {menu:_0x56cf7f,..._0x355f9a}=_0x16bbd9({},m,this[_0x1e93ad(0x12e)]);_0x56cf7f&&this[_0x1e93ad(0x141)][_0x1e93ad(0x146)](_0x1e93ad(0x142),_0x56cf7f,{'merge':!0x0}),this[_0x1e93ad(0x141)][_0x1e93ad(0x146)](b,_0x355f9a);}[_0x3390ab(0x138)](){var _0x28c693=_0x3390ab;[[a]]['forEach'](_0x5d69fb=>this[_0x28c693(0x128)][_0x28c693(0x13c)](_0x5d69fb));}['onReady'](){var _0x472218=_0x3390ab;this[_0x472218(0x128)][_0x472218(0x14d)](a);}};O(s,_0x3390ab(0x14a),$),O(s,'type',_0x31fb68['UNIVER_DOC']),s=B([_0xa1c550(_0x5abca3),g(0x1,_0xff871c(_0x555205)),g(0x2,_0x452b08)],s);export{_ as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x3390ab=_0x443f;function _0x2200(){var _0xa950ed=['_initCommands','1619376wiHYAQ','2997504yxTJcS','exchange.file','disposeWithMe','defineProperty','397005lYPXiA','_commandService','onStarting','2143256xGCqsc','exchange-client.operation.import-docx','exportDOCXByUnitId','add','OTHERS','importDOCXToUnitId','OPERATION','forEach','_configService','menu','FolderIcon','BUTTON','13302XkBOJl','setConfig','exchange-client.operation.export-docx','4251317SgXYbd','_menuManagerService','pluginName','1275369JbiNVC','UNIVER_DOC','get','length','docs-exchange-client.config','docs-exchange-client.operation.exchange','_injector','1420vSiJkZ','exchange.upload','mergeMenu','getOwnPropertyDescriptor','DirectExportIcon','_config','SUBITEMS'];_0x2200=function(){return _0xa950ed;};return _0x2200();}(function(_0x592769,_0x3c641f){var _0x55666b=_0x443f,_0x5f1d9d=_0x592769();while(!![]){try{var _0x29eeab=-parseInt(_0x55666b(0x136))/0x1+parseInt(_0x55666b(0x131))/0x2+parseInt(_0x55666b(0x14b))/0x3+-parseInt(_0x55666b(0x139))/0x4+parseInt(_0x55666b(0x129))/0x5*(-parseInt(_0x55666b(0x145))/0x6)+parseInt(_0x55666b(0x148))/0x7+parseInt(_0x55666b(0x132))/0x8;if(_0x29eeab===_0x3c641f)break;else _0x5f1d9d['push'](_0x5f1d9d['shift']());}catch(_0x52bcba){_0x5f1d9d['push'](_0x5f1d9d['shift']());}}}(_0x2200,0x9fc2f));import{IExchangeOperateService as _0x114b68,UniverExchangeClientPlugin as _0x5abca3}from'@univerjs-pro/exchange-client';import{CommandType as _0x7111c5,UniverInstanceType as _0x31fb68,Disposable as _0x452fff,ICommandService as _0x52e75e,DependentOn as _0xa1c550,Inject as _0xff871c,Injector as _0x555205,IConfigService as _0x452b08,Plugin as _0x40c7c8,merge as _0x16bbd9}from'@univerjs/core';import{MenuItemType as _0x223401,getMenuHiddenObservable as _0x42c087,RibbonStartGroup as _0x36d4ba,IMenuManagerService as _0xcb958f}from'@univerjs/ui';const d={'id':_0x3390ab(0x13a),'type':_0x7111c5[_0x3390ab(0x13f)],'handler':async _0x4dee8c=>(_0x4dee8c[_0x3390ab(0x14d)](_0x114b68)[_0x3390ab(0x13e)](),!0x0)},_={'id':_0x3390ab(0x147),'type':_0x7111c5[_0x3390ab(0x13f)],'handler':async _0x452e69=>(_0x452e69['get'](_0x114b68)[_0x3390ab(0x13b)](),!0x0)},b=_0x3390ab(0x126),m={},C=_0x3390ab(0x127);function X(_0x36a6cf){var _0x1df78f=_0x3390ab;return{'id':C,'type':_0x223401[_0x1df78f(0x12f)],'icon':_0x1df78f(0x12d),'tooltip':_0x1df78f(0x133),'hidden$':_0x42c087(_0x36a6cf,_0x31fb68[_0x1df78f(0x14c)])};}function _0x443f(_0x3663df,_0x567a06){var _0x22003a=_0x2200();return _0x443f=function(_0x443f79,_0x3e931f){_0x443f79=_0x443f79-0x125;var _0x52c1ce=_0x22003a[_0x443f79];return _0x52c1ce;},_0x443f(_0x3663df,_0x567a06);}function F(){var _0xd5b37=_0x3390ab;return{'id':d['id'],'type':_0x223401[_0xd5b37(0x144)],'title':_0xd5b37(0x12a),'icon':_0xd5b37(0x143)};}function G(){var _0x15c16c=_0x3390ab;return{'id':_['id'],'type':_0x223401[_0x15c16c(0x144)],'title':'exchange.download','icon':'ExportIcon'};}const R={[_0x36d4ba[_0x3390ab(0x13d)]]:{[C]:{'order':0.3,'menuItemFactory':X,[d['id']]:{'order':0x0,'menuItemFactory':F},[_['id']]:{'order':0x1,'menuItemFactory':G}}}};var A=Object[_0x3390ab(0x12c)],j=(_0x2c4c,_0x6a87e7,_0x117b75,_0x317fc7)=>{var _0x35d8a4=_0x3390ab;for(var _0x211dac=_0x317fc7>0x1?void 0x0:_0x317fc7?A(_0x6a87e7,_0x117b75):_0x6a87e7,_0x18643e=_0x2c4c[_0x35d8a4(0x125)]-0x1,_0x104af8;_0x18643e>=0x0;_0x18643e--)(_0x104af8=_0x2c4c[_0x18643e])&&(_0x211dac=_0x104af8(_0x211dac)||_0x211dac);return _0x211dac;},u=(_0x57113d,_0x4719d2)=>(_0x9e6e8c,_0x379e69)=>_0x4719d2(_0x9e6e8c,_0x379e69,_0x57113d);let a=class extends _0x452fff{constructor(_0x19bf11,_0x1c1af2){var _0x1f4044=_0x3390ab;super(),this[_0x1f4044(0x137)]=_0x19bf11,this[_0x1f4044(0x149)]=_0x1c1af2,this[_0x1f4044(0x130)](),this['_initMenus']();}[_0x3390ab(0x130)](){var _0x5edb3c=_0x3390ab;[d,_][_0x5edb3c(0x140)](_0x4e00fc=>{var _0x460747=_0x5edb3c;this[_0x460747(0x134)](this[_0x460747(0x137)]['registerCommand'](_0x4e00fc));});}['_initMenus'](){var _0x5eb0ce=_0x3390ab;this[_0x5eb0ce(0x149)][_0x5eb0ce(0x12b)](R);}};a=j([u(0x0,_0x52e75e),u(0x1,_0xcb958f)],a);var w=Object[_0x3390ab(0x135)],H=Object[_0x3390ab(0x12c)],L=(_0x4187f9,_0x92e225,_0x5ef740)=>_0x92e225 in _0x4187f9?w(_0x4187f9,_0x92e225,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5ef740}):_0x4187f9[_0x92e225]=_0x5ef740,B=(_0x3cbcb2,_0x16c64a,_0x2c8d09,_0x3692d3)=>{var _0x433f7d=_0x3390ab;for(var _0x4be178=_0x3692d3>0x1?void 0x0:_0x3692d3?H(_0x16c64a,_0x2c8d09):_0x16c64a,_0x3fbd72=_0x3cbcb2[_0x433f7d(0x125)]-0x1,_0x21d010;_0x3fbd72>=0x0;_0x3fbd72--)(_0x21d010=_0x3cbcb2[_0x3fbd72])&&(_0x4be178=_0x21d010(_0x4be178)||_0x4be178);return _0x4be178;},g=(_0xafbbc8,_0x2f5e19)=>(_0x4900a3,_0x4cd617)=>_0x2f5e19(_0x4900a3,_0x4cd617,_0xafbbc8),O=(_0x2b2c0b,_0x12136b,_0x37a68c)=>L(_0x2b2c0b,typeof _0x12136b!='symbol'?_0x12136b+'':_0x12136b,_0x37a68c);const $='DOC_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x40c7c8{constructor(_0x59f992=m,_0x49c28e,_0x5dc2f3){var _0x1e93ad=_0x3390ab;super(),this[_0x1e93ad(0x12e)]=_0x59f992,this[_0x1e93ad(0x128)]=_0x49c28e,this[_0x1e93ad(0x141)]=_0x5dc2f3;const {menu:_0x56cf7f,..._0x355f9a}=_0x16bbd9({},m,this[_0x1e93ad(0x12e)]);_0x56cf7f&&this[_0x1e93ad(0x141)][_0x1e93ad(0x146)](_0x1e93ad(0x142),_0x56cf7f,{'merge':!0x0}),this[_0x1e93ad(0x141)][_0x1e93ad(0x146)](b,_0x355f9a);}[_0x3390ab(0x138)](){var _0x28c693=_0x3390ab;[[a]]['forEach'](_0x5d69fb=>this[_0x28c693(0x128)][_0x28c693(0x13c)](_0x5d69fb));}['onReady'](){var _0x472218=_0x3390ab;this[_0x472218(0x128)][_0x472218(0x14d)](a);}};O(s,_0x3390ab(0x14a),$),O(s,'type',_0x31fb68['UNIVER_DOC']),s=B([_0xa1c550(_0x5abca3),g(0x1,_0xff871c(_0x555205)),g(0x2,_0x452b08)],s);export{_ as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x3e6d(){var _0x28dadc=['merge','_commandService','_injector','116340gKENgs','UniverExchangeClientPlugin','ImportDOCXOperation','type','Injector','UniverDocsExchangeClientPlugin','IConfigService','BUTTON','4190iSzEdJ','exchange.upload','mergeMenu','5210froQtl','exchange-client.operation.import-docx','docs-exchange-client.operation.exchange','setConfig','_config','UNIVER_DOC','34573RMmARK','get','DirectExportIcon','amd','Plugin','IMenuManagerService','MenuItemType','getMenuHiddenObservable','_initCommands','onStarting','IExchangeOperateService','object','UniverProExchangeClient','Module','registerCommand','menu','UniverInstanceType','_initMenus','FolderIcon','importDOCXToUnitId','ICommandService','add','1742526qFgEkA','@univerjs-pro/exchange-client','OPERATION','UniverCore','OTHERS','DOC_EXCHANGE_CLIENT_PLUGIN','defineProperty','forEach','1479270TWoMKN','3487695DUGTTQ','onReady','toStringTag','4WUsHYz','ExportIcon','CommandType','ExportDOCXOperation','56oDtIri','exchange.download','_menuManagerService','function','getOwnPropertyDescriptor','_configService','97kLWtAN','exportDOCXByUnitId','SUBITEMS','length','14922ElPrIs','1738YbDwmP','RibbonStartGroup','DependentOn'];_0x3e6d=function(){return _0x28dadc;};return _0x3e6d();}function _0x1fb9(_0xb5f1c4,_0x20e52b){var _0x3e6df1=_0x3e6d();return _0x1fb9=function(_0x1fb9e8,_0x466ea4){_0x1fb9e8=_0x1fb9e8-0x1da;var _0x227db7=_0x3e6df1[_0x1fb9e8];return _0x227db7;},_0x1fb9(_0xb5f1c4,_0x20e52b);}(function(_0x6050b3,_0x5d2c00){var _0x34a452=_0x1fb9,_0xe7a3cb=_0x6050b3();while(!![]){try{var _0xaa3253=parseInt(_0x34a452(0x21e))/0x1*(-parseInt(_0x34a452(0x1ec))/0x2)+-parseInt(_0x34a452(0x208))/0x3+parseInt(_0x34a452(0x214))/0x4*(parseInt(_0x34a452(0x211))/0x5)+-parseInt(_0x34a452(0x210))/0x6+parseInt(_0x34a452(0x1f2))/0x7*(-parseInt(_0x34a452(0x218))/0x8)+-parseInt(_0x34a452(0x1da))/0x9*(parseInt(_0x34a452(0x1e9))/0xa)+-parseInt(_0x34a452(0x1db))/0xb*(-parseInt(_0x34a452(0x1e1))/0xc);if(_0xaa3253===_0x5d2c00)break;else _0xe7a3cb['push'](_0xe7a3cb['shift']());}catch(_0x5d7e92){_0xe7a3cb['push'](_0xe7a3cb['shift']());}}}(_0x3e6d,0x668a2),function(_0x8bbb9a,_0x2a024f){var _0x79b6a2=_0x1fb9;typeof exports==_0x79b6a2(0x1fd)&&typeof module<'u'?_0x2a024f(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui')):typeof define==_0x79b6a2(0x21b)&&define[_0x79b6a2(0x1f5)]?define(['exports',_0x79b6a2(0x209),'@univerjs/core','@univerjs/ui'],_0x2a024f):(_0x8bbb9a=typeof globalThis<'u'?globalThis:_0x8bbb9a||self,_0x2a024f(_0x8bbb9a['UniverProDocsExchangeClient']={},_0x8bbb9a[_0x79b6a2(0x1fe)],_0x8bbb9a[_0x79b6a2(0x20b)],_0x8bbb9a['UniverUi']));}(this,function(_0x45d1d4,_0x3d096d,_0x5077d4,_0x2a3a92){'use strict';var _0x26193f=_0x1fb9;const _0x42bee2={'id':_0x26193f(0x1ed),'type':_0x5077d4[_0x26193f(0x216)][_0x26193f(0x20a)],'handler':async _0x34b2b2=>(_0x34b2b2['get'](_0x3d096d['IExchangeOperateService'])[_0x26193f(0x205)](),!0x0)},_0x2dc339={'id':'exchange-client.operation.export-docx','type':_0x5077d4[_0x26193f(0x216)]['OPERATION'],'handler':async _0xe790a3=>(_0xe790a3[_0x26193f(0x1f3)](_0x3d096d[_0x26193f(0x1fc)])[_0x26193f(0x21f)](),!0x0)},_0x387acd='docs-exchange-client.config',_0x2a3fd8={},_0x3b0f73=_0x26193f(0x1ee);function _0xadd7ac(_0x3282a0){var _0x2139c9=_0x26193f;return{'id':_0x3b0f73,'type':_0x2a3a92[_0x2139c9(0x1f8)][_0x2139c9(0x220)],'icon':_0x2139c9(0x1f4),'tooltip':'exchange.file','hidden$':_0x2a3a92[_0x2139c9(0x1f9)](_0x3282a0,_0x5077d4[_0x2139c9(0x202)]['UNIVER_DOC'])};}function _0x286b2d(){var _0x1dbb79=_0x26193f;return{'id':_0x42bee2['id'],'type':_0x2a3a92[_0x1dbb79(0x1f8)][_0x1dbb79(0x1e8)],'title':_0x1dbb79(0x1ea),'icon':_0x1dbb79(0x204)};}function _0x38d938(){var _0x2dc8bf=_0x26193f;return{'id':_0x2dc339['id'],'type':_0x2a3a92['MenuItemType'][_0x2dc8bf(0x1e8)],'title':_0x2dc8bf(0x219),'icon':_0x2dc8bf(0x215)};}const _0x335dce={[_0x2a3a92[_0x26193f(0x1dc)][_0x26193f(0x20c)]]:{[_0x3b0f73]:{'order':0.3,'menuItemFactory':_0xadd7ac,[_0x42bee2['id']]:{'order':0x0,'menuItemFactory':_0x286b2d},[_0x2dc339['id']]:{'order':0x1,'menuItemFactory':_0x38d938}}}};var _0x280ee1=Object['getOwnPropertyDescriptor'],_0x498c61=(_0x2c4fe6,_0x999d13,_0x9dca06,_0x4815c6)=>{var _0x44b148=_0x26193f;for(var _0x3e881b=_0x4815c6>0x1?void 0x0:_0x4815c6?_0x280ee1(_0x999d13,_0x9dca06):_0x999d13,_0x1d2228=_0x2c4fe6[_0x44b148(0x221)]-0x1,_0x1a09d0;_0x1d2228>=0x0;_0x1d2228--)(_0x1a09d0=_0x2c4fe6[_0x1d2228])&&(_0x3e881b=_0x1a09d0(_0x3e881b)||_0x3e881b);return _0x3e881b;},_0x371424=(_0x226067,_0x56af0c)=>(_0x1710bc,_0x5df0dc)=>_0x56af0c(_0x1710bc,_0x5df0dc,_0x226067);let _0x3f8ac6=class extends _0x5077d4['Disposable']{constructor(_0x4144c8,_0x25d9d5){var _0x348d07=_0x26193f;super(),this[_0x348d07(0x1df)]=_0x4144c8,this[_0x348d07(0x21a)]=_0x25d9d5,this[_0x348d07(0x1fa)](),this['_initMenus']();}[_0x26193f(0x1fa)](){var _0x24238a=_0x26193f;[_0x42bee2,_0x2dc339][_0x24238a(0x20f)](_0x425f87=>{var _0x3defeb=_0x24238a;this['disposeWithMe'](this[_0x3defeb(0x1df)][_0x3defeb(0x200)](_0x425f87));});}[_0x26193f(0x203)](){var _0x4a9613=_0x26193f;this[_0x4a9613(0x21a)][_0x4a9613(0x1eb)](_0x335dce);}};_0x3f8ac6=_0x498c61([_0x371424(0x0,_0x5077d4[_0x26193f(0x206)]),_0x371424(0x1,_0x2a3a92[_0x26193f(0x1f7)])],_0x3f8ac6);var _0x5bc486=Object[_0x26193f(0x20e)],_0x2f35fa=Object[_0x26193f(0x21c)],_0x26b2d4=(_0x158c39,_0x4c815d,_0x55ecfd)=>_0x4c815d in _0x158c39?_0x5bc486(_0x158c39,_0x4c815d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x55ecfd}):_0x158c39[_0x4c815d]=_0x55ecfd,_0x14334e=(_0x44376b,_0x29906a,_0x3d5318,_0x2721c3)=>{var _0x225217=_0x26193f;for(var _0x242e32=_0x2721c3>0x1?void 0x0:_0x2721c3?_0x2f35fa(_0x29906a,_0x3d5318):_0x29906a,_0x2a413f=_0x44376b[_0x225217(0x221)]-0x1,_0xd6e324;_0x2a413f>=0x0;_0x2a413f--)(_0xd6e324=_0x44376b[_0x2a413f])&&(_0x242e32=_0xd6e324(_0x242e32)||_0x242e32);return _0x242e32;},_0x2f37e4=(_0x50d34e,_0x1089cc)=>(_0x74297d,_0x53942d)=>_0x1089cc(_0x74297d,_0x53942d,_0x50d34e),_0xd0745f=(_0x73012f,_0x249273,_0x1dd6f1)=>_0x26b2d4(_0x73012f,typeof _0x249273!='symbol'?_0x249273+'':_0x249273,_0x1dd6f1);const _0x43c967=_0x26193f(0x20d);_0x45d1d4[_0x26193f(0x1e6)]=class extends _0x5077d4[_0x26193f(0x1f6)]{constructor(_0x13f0c0=_0x2a3fd8,_0x855167,_0x3674f6){var _0x1e7cef=_0x26193f;super(),this[_0x1e7cef(0x1f0)]=_0x13f0c0,this['_injector']=_0x855167,this[_0x1e7cef(0x21d)]=_0x3674f6;const {menu:_0xef5998,..._0x203f58}=_0x5077d4[_0x1e7cef(0x1de)]({},_0x2a3fd8,this[_0x1e7cef(0x1f0)]);_0xef5998&&this[_0x1e7cef(0x21d)][_0x1e7cef(0x1ef)](_0x1e7cef(0x201),_0xef5998,{'merge':!0x0}),this[_0x1e7cef(0x21d)]['setConfig'](_0x387acd,_0x203f58);}[_0x26193f(0x1fb)](){var _0x18548e=_0x26193f;[[_0x3f8ac6]][_0x18548e(0x20f)](_0x393f76=>this[_0x18548e(0x1e0)][_0x18548e(0x207)](_0x393f76));}[_0x26193f(0x212)](){var _0x93db4d=_0x26193f;this[_0x93db4d(0x1e0)][_0x93db4d(0x1f3)](_0x3f8ac6);}},_0xd0745f(_0x45d1d4['UniverDocsExchangeClientPlugin'],'pluginName',_0x43c967),_0xd0745f(_0x45d1d4['UniverDocsExchangeClientPlugin'],_0x26193f(0x1e4),_0x5077d4['UniverInstanceType'][_0x26193f(0x1f1)]),_0x45d1d4[_0x26193f(0x1e6)]=_0x14334e([_0x5077d4[_0x26193f(0x1dd)](_0x3d096d[_0x26193f(0x1e2)]),_0x2f37e4(0x1,_0x5077d4['Inject'](_0x5077d4[_0x26193f(0x1e5)])),_0x2f37e4(0x2,_0x5077d4[_0x26193f(0x1e7)])],_0x45d1d4['UniverDocsExchangeClientPlugin']),_0x45d1d4[_0x26193f(0x217)]=_0x2dc339,_0x45d1d4[_0x26193f(0x1e3)]=_0x42bee2,Object[_0x26193f(0x20e)](_0x45d1d4,Symbol[_0x26193f(0x213)],{'value':_0x26193f(0x1ff)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/docs-exchange-client",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.12-nightly.202510251119",
|
|
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
|
|
46
|
-
"@univerjs/
|
|
47
|
-
"@univerjs/ui": "0.10.
|
|
45
|
+
"@univerjs/core": "0.10.12-nightly.202510251119",
|
|
46
|
+
"@univerjs-pro/exchange-client": "0.10.12-nightly.202510251119",
|
|
47
|
+
"@univerjs/ui": "0.10.12-nightly.202510251119"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"typescript": "^5.9.3",
|
|
51
51
|
"vite": "^7.1.10",
|
|
52
52
|
"vitest": "^3.2.4",
|
|
53
|
-
"@univerjs-infra/shared": "0.10.
|
|
53
|
+
"@univerjs-infra/shared": "0.10.12"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"test": "vitest run",
|