@univerjs-pro/docs-exchange-client 0.6.8 → 0.6.9-experimental.20250406-d422c87
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 _0x2a4e6c=_0x2183;function _0x2183(_0x11e4ba,_0x3983de){var _0x5f24f9=_0x5f24();return _0x2183=function(_0x21838c,_0xef458c){_0x21838c=_0x21838c-0x9d;var _0x14534e=_0x5f24f9[_0x21838c];return _0x14534e;},_0x2183(_0x11e4ba,_0x3983de);}(function(_0x480025,_0x58c48e){var _0x268505=_0x2183,_0x5957de=_0x480025();while(!![]){try{var _0x54284c=-parseInt(_0x268505(0xdf))/0x1+parseInt(_0x268505(0xc0))/0x2*(parseInt(_0x268505(0xa1))/0x3)+parseInt(_0x268505(0xd1))/0x4*(-parseInt(_0x268505(0xbd))/0x5)+parseInt(_0x268505(0xd9))/0x6*(-parseInt(_0x268505(0xaa))/0x7)+-parseInt(_0x268505(0xc9))/0x8+-parseInt(_0x268505(0xd2))/0x9+-parseInt(_0x268505(0xca))/0xa*(-parseInt(_0x268505(0xa8))/0xb);if(_0x54284c===_0x58c48e)break;else _0x5957de['push'](_0x5957de['shift']());}catch(_0x210048){_0x5957de['push'](_0x5957de['shift']());}}}(_0x5f24,0xa7a2d));Object[_0x2a4e6c(0xdc)](exports,Symbol[_0x2a4e6c(0xb1)],{'value':_0x2a4e6c(0xa4)});function _0x5f24(){var _0x2e6bcd=['DependentOn','disposeWithMe','7678zCifWP','forEach','8429183zllCBb','pluginName','@univerjs/core','add','_configService','_initCommands','_menuManagerService','toStringTag','CommandType','MenuItemType','@univerjs-pro/exchange-client','DOC_EXCHANGE_CLIENT_PLUGIN','getOwnPropertyDescriptor','exportDOCXByUnitId','BUTTON','setConfig','merge','exchange.upload','UniverDocsExchangeClientPlugin','3170HVjCEH','Plugin','ICommandService','6pxrlRN','UNIVER_DOC','Injector','IConfigService','mergeMenu','OPERATION','exchange.file','FILE','_injector','9313072YoAArA','75040XCcDGb','registerCommand','IExchangeOperateService','docs-exchange-client.operation.exchange','ImportDOCXOperation','exchange.download','RibbonStartGroup','132axcrYp','10040220xEnVxJ','length','importDOCXToUnitId','_initMenus','docs-exchange-client.config','menu','type','6BaMzjN','exchange-client.operation.import-docx','get','defineProperty','_commandService','DirectExportSingle','1139662qwWkCc','FolderSingle','SUBITEMS','_config','ExportSingle','Inject','UniverExchangeClientPlugin','93312KnkibW','UniverInstanceType','@univerjs/ui','Module','symbol'];_0x5f24=function(){return _0x2e6bcd;};return _0x5f24();}const l=require(_0x2a4e6c(0xb4)),i=require(_0x2a4e6c(0xac)),a=require(_0x2a4e6c(0xa3)),v=_0x2a4e6c(0xd6),d={},g={'id':_0x2a4e6c(0xda),'type':i[_0x2a4e6c(0xb2)]['OPERATION'],'handler':async _0x5c01d4=>(_0x5c01d4['get'](l[_0x2a4e6c(0xcc)])[_0x2a4e6c(0xd4)](),!0x0)},p={'id':'exchange-client.operation.export-docx','type':i[_0x2a4e6c(0xb2)][_0x2a4e6c(0xc5)],'handler':async _0x4a4834=>(_0x4a4834['get'](l[_0x2a4e6c(0xcc)])[_0x2a4e6c(0xb7)](),!0x0)},h=_0x2a4e6c(0xcd);function I(_0xfa1186){var _0x47a22f=_0x2a4e6c;return{'id':h,'type':a[_0x47a22f(0xb3)][_0x47a22f(0xe1)],'icon':_0x47a22f(0xde),'tooltip':_0x47a22f(0xc6),'hidden$':a['getMenuHiddenObservable'](_0xfa1186,i['UniverInstanceType'][_0x47a22f(0xc1)])};}function O(){var _0xeff31c=_0x2a4e6c;return{'id':g['id'],'type':a[_0xeff31c(0xb3)]['BUTTON'],'title':_0xeff31c(0xbb),'icon':_0xeff31c(0xe0)};}function E(){var _0x1fc481=_0x2a4e6c;return{'id':p['id'],'type':a[_0x1fc481(0xb3)][_0x1fc481(0xb8)],'title':_0x1fc481(0xcf),'icon':_0x1fc481(0x9e)};}const x={[a[_0x2a4e6c(0xd0)][_0x2a4e6c(0xc7)]]:{[h]:{'order':0x4,'menuItemFactory':I,[g['id']]:{'order':0x0,'menuItemFactory':O},[p['id']]:{'order':0x1,'menuItemFactory':E}}}};var D=Object['getOwnPropertyDescriptor'],f=(_0xba6042,_0x368d82,_0x3756eb,_0x173f4e)=>{var _0x56ce40=_0x2a4e6c;for(var _0x5d45c6=_0x173f4e>0x1?void 0x0:_0x173f4e?D(_0x368d82,_0x3756eb):_0x368d82,_0x15034e=_0xba6042[_0x56ce40(0xd3)]-0x1,_0x2bbbcc;_0x15034e>=0x0;_0x15034e--)(_0x2bbbcc=_0xba6042[_0x15034e])&&(_0x5d45c6=_0x2bbbcc(_0x5d45c6)||_0x5d45c6);return _0x5d45c6;},_=(_0x3be43e,_0x9e2e58)=>(_0x3fd4d7,_0xb0f043)=>_0x9e2e58(_0x3fd4d7,_0xb0f043,_0x3be43e);let u=class extends i['Disposable']{constructor(_0x3e3e01,_0x518e0c){var _0x20fa9a=_0x2a4e6c;super(),this[_0x20fa9a(0xdd)]=_0x3e3e01,this[_0x20fa9a(0xb0)]=_0x518e0c,this[_0x20fa9a(0xaf)](),this[_0x20fa9a(0xd5)]();}[_0x2a4e6c(0xaf)](){var _0x139cae=_0x2a4e6c;[g,p][_0x139cae(0xa9)](_0x20b9b9=>{var _0x42b172=_0x139cae;this[_0x42b172(0xa7)](this[_0x42b172(0xdd)][_0x42b172(0xcb)](_0x20b9b9));});}[_0x2a4e6c(0xd5)](){var _0x570f1b=_0x2a4e6c;this['_menuManagerService'][_0x570f1b(0xc4)](x);}};u=f([_(0x0,i[_0x2a4e6c(0xbf)]),_(0x1,a['IMenuManagerService'])],u);var S=Object[_0x2a4e6c(0xdc)],y=Object[_0x2a4e6c(0xb6)],P=(_0x48619c,_0xda18,_0x27d304)=>_0xda18 in _0x48619c?S(_0x48619c,_0xda18,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x27d304}):_0x48619c[_0xda18]=_0x27d304,T=(_0x1ba1fe,_0x3485a5,_0x2c6072,_0x62249c)=>{var _0x28f376=_0x2a4e6c;for(var _0x2d5d94=_0x62249c>0x1?void 0x0:_0x62249c?y(_0x3485a5,_0x2c6072):_0x3485a5,_0x39a708=_0x1ba1fe[_0x28f376(0xd3)]-0x1,_0x1941ca;_0x39a708>=0x0;_0x39a708--)(_0x1941ca=_0x1ba1fe[_0x39a708])&&(_0x2d5d94=_0x1941ca(_0x2d5d94)||_0x2d5d94);return _0x2d5d94;},m=(_0xa6fe2,_0x19c6d1)=>(_0x4eb345,_0x2e22da)=>_0x19c6d1(_0x4eb345,_0x2e22da,_0xa6fe2),C=(_0x52d358,_0x2abcd1,_0x5e5929)=>P(_0x52d358,typeof _0x2abcd1!=_0x2a4e6c(0xa5)?_0x2abcd1+'':_0x2abcd1,_0x5e5929);const U=_0x2a4e6c(0xb5);exports['UniverDocsExchangeClientPlugin']=class extends i[_0x2a4e6c(0xbe)]{constructor(_0x1d2d8d=d,_0x4884b1,_0x3c2ddf){var _0x23cd29=_0x2a4e6c;super(),this[_0x23cd29(0x9d)]=_0x1d2d8d,this['_injector']=_0x4884b1,this[_0x23cd29(0xae)]=_0x3c2ddf;const {menu:_0x8d94d7,..._0x1cfcf7}=i[_0x23cd29(0xba)]({},d,this['_config']);_0x8d94d7&&this['_configService']['setConfig'](_0x23cd29(0xd7),_0x8d94d7,{'merge':!0x0}),this[_0x23cd29(0xae)][_0x23cd29(0xb9)](v,_0x1cfcf7);}['onStarting'](){var _0x4cb011=_0x2a4e6c;[[u]]['forEach'](_0x29af05=>this[_0x4cb011(0xc8)][_0x4cb011(0xad)](_0x29af05));}['onReady'](){var _0x6a2cc1=_0x2a4e6c;this[_0x6a2cc1(0xc8)][_0x6a2cc1(0xdb)](u);}},C(exports['UniverDocsExchangeClientPlugin'],_0x2a4e6c(0xab),U),C(exports[_0x2a4e6c(0xbc)],_0x2a4e6c(0xd8),i[_0x2a4e6c(0xa2)][_0x2a4e6c(0xc1)]),exports[_0x2a4e6c(0xbc)]=T([i[_0x2a4e6c(0xa6)](l[_0x2a4e6c(0xa0)]),m(0x1,i[_0x2a4e6c(0x9f)](i[_0x2a4e6c(0xc2)])),m(0x2,i[_0x2a4e6c(0xc3)])],exports['UniverDocsExchangeClientPlugin']),exports['ExportDOCXOperation']=p,exports[_0x2a4e6c(0xce)]=g;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x58f721=_0x1591;(function(_0x3e2be2,_0xedac5e){var _0x33eae6=_0x1591,_0x4e3add=_0x3e2be2();while(!![]){try{var _0x37bbab=parseInt(_0x33eae6(0x1c3))/0x1*(parseInt(_0x33eae6(0x19f))/0x2)+-parseInt(_0x33eae6(0x1b8))/0x3*(parseInt(_0x33eae6(0x1c2))/0x4)+parseInt(_0x33eae6(0x1ae))/0x5*(parseInt(_0x33eae6(0x1a4))/0x6)+parseInt(_0x33eae6(0x1b3))/0x7+-parseInt(_0x33eae6(0x1ac))/0x8*(parseInt(_0x33eae6(0x1bd))/0x9)+parseInt(_0x33eae6(0x1bb))/0xa*(parseInt(_0x33eae6(0x1a6))/0xb)+parseInt(_0x33eae6(0x1be))/0xc*(parseInt(_0x33eae6(0x1c5))/0xd);if(_0x37bbab===_0xedac5e)break;else _0x4e3add['push'](_0x4e3add['shift']());}catch(_0x4df348){_0x4e3add['push'](_0x4e3add['shift']());}}}(_0x3882,0x1bb2b));import{IExchangeOperateService as _0x511bf3,UniverExchangeClientPlugin as _0x206a65}from'@univerjs-pro/exchange-client';import{CommandType as _0x3b2c98,UniverInstanceType as _0x256306,Disposable as _0x46170a,ICommandService as _0x43aa3c,DependentOn as _0x41bb0e,Inject as _0x1cf912,Injector as _0x2abd5a,IConfigService as _0x35bef1,Plugin as _0x4177ca,merge as _0x3580d2}from'@univerjs/core';import{MenuItemType as _0x3153c2,getMenuHiddenObservable as _0x55d024,RibbonStartGroup as _0x9960b0,IMenuManagerService as _0x3e2c50}from'@univerjs/ui';const b='docs-exchange-client.config',m={},d={'id':_0x58f721(0x1a3),'type':_0x3b2c98['OPERATION'],'handler':async _0x5798a6=>(_0x5798a6['get'](_0x511bf3)[_0x58f721(0x1a1)](),!0x0)},_={'id':'exchange-client.operation.export-docx','type':_0x3b2c98['OPERATION'],'handler':async _0xc48804=>(_0xc48804[_0x58f721(0x1ab)](_0x511bf3)['exportDOCXByUnitId'](),!0x0)},I=_0x58f721(0x1b4);function F(_0xf62cdc){var _0x38f69a=_0x58f721;return{'id':I,'type':_0x3153c2[_0x38f69a(0x1b5)],'icon':_0x38f69a(0x1ca),'tooltip':_0x38f69a(0x1c9),'hidden$':_0x55d024(_0xf62cdc,_0x256306[_0x38f69a(0x1c7)])};}function X(){var _0x363d0b=_0x58f721;return{'id':d['id'],'type':_0x3153c2[_0x363d0b(0x1b1)],'title':'exchange.upload','icon':_0x363d0b(0x1a9)};}function G(){var _0x38937a=_0x58f721;return{'id':_['id'],'type':_0x3153c2['BUTTON'],'title':_0x38937a(0x1b6),'icon':_0x38937a(0x1a8)};}const A={[_0x9960b0[_0x58f721(0x1b9)]]:{[I]:{'order':0x4,'menuItemFactory':F,[d['id']]:{'order':0x0,'menuItemFactory':X},[_['id']]:{'order':0x1,'menuItemFactory':G}}}};var L=Object['getOwnPropertyDescriptor'],R=(_0x4e8875,_0x2601fd,_0x28e540,_0x4d4764)=>{var _0x5d7635=_0x58f721;for(var _0x11ff05=_0x4d4764>0x1?void 0x0:_0x4d4764?L(_0x2601fd,_0x28e540):_0x2601fd,_0x49fd29=_0x4e8875[_0x5d7635(0x1b0)]-0x1,_0x5ee58f;_0x49fd29>=0x0;_0x49fd29--)(_0x5ee58f=_0x4e8875[_0x49fd29])&&(_0x11ff05=_0x5ee58f(_0x11ff05)||_0x11ff05);return _0x11ff05;},u=(_0x51bc08,_0x5d48e6)=>(_0x45bd58,_0x198aa4)=>_0x5d48e6(_0x45bd58,_0x198aa4,_0x51bc08);let a=class extends _0x46170a{constructor(_0x199e1c,_0x162cde){var _0x3b8518=_0x58f721;super(),this[_0x3b8518(0x1bc)]=_0x199e1c,this[_0x3b8518(0x1c6)]=_0x162cde,this[_0x3b8518(0x1aa)](),this[_0x3b8518(0x1c1)]();}['_initCommands'](){var _0x57f82e=_0x58f721;[d,_][_0x57f82e(0x19e)](_0x3ac826=>{var _0x4d409e=_0x57f82e;this[_0x4d409e(0x1a7)](this['_commandService'][_0x4d409e(0x1af)](_0x3ac826));});}['_initMenus'](){var _0x677c68=_0x58f721;this[_0x677c68(0x1c6)][_0x677c68(0x1bf)](A);}};a=R([u(0x0,_0x43aa3c),u(0x1,_0x3e2c50)],a);function _0x3882(){var _0x56f43b=['_initMenus','16eFSkJQ','3yzYXCZ','add','13gfSwws','_menuManagerService','UNIVER_DOC','_configService','exchange.file','DirectExportSingle','forEach','83634QUPJTr','onReady','importDOCXToUnitId','_injector','exchange-client.operation.import-docx','144MzleAo','_config','1799809fnlaAw','disposeWithMe','ExportSingle','FolderSingle','_initCommands','get','68296kwnYLP','setConfig','12465XOILQl','registerCommand','length','BUTTON','defineProperty','29995lbMzXP','docs-exchange-client.operation.exchange','SUBITEMS','exchange.download','getOwnPropertyDescriptor','162408yKWAZU','FILE','symbol','10TVjtQa','_commandService','198NZAOKZ','1975464QYYFMJ','mergeMenu','onStarting'];_0x3882=function(){return _0x56f43b;};return _0x3882();}function _0x1591(_0x1b757d,_0x5e73ed){var _0x3882f6=_0x3882();return _0x1591=function(_0x15912e,_0x11b35d){_0x15912e=_0x15912e-0x19e;var _0x388598=_0x3882f6[_0x15912e];return _0x388598;},_0x1591(_0x1b757d,_0x5e73ed);}var j=Object[_0x58f721(0x1b2)],w=Object[_0x58f721(0x1b7)],B=(_0x147e37,_0x10cd00,_0x42e964)=>_0x10cd00 in _0x147e37?j(_0x147e37,_0x10cd00,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x42e964}):_0x147e37[_0x10cd00]=_0x42e964,H=(_0x9c39b,_0x555991,_0x1b30b3,_0x5be789)=>{var _0x166cfc=_0x58f721;for(var _0x5db370=_0x5be789>0x1?void 0x0:_0x5be789?w(_0x555991,_0x1b30b3):_0x555991,_0x2d77f0=_0x9c39b[_0x166cfc(0x1b0)]-0x1,_0x46a427;_0x2d77f0>=0x0;_0x2d77f0--)(_0x46a427=_0x9c39b[_0x2d77f0])&&(_0x5db370=_0x46a427(_0x5db370)||_0x5db370);return _0x5db370;},g=(_0x117108,_0x1aa313)=>(_0x5a793e,_0x102574)=>_0x1aa313(_0x5a793e,_0x102574,_0x117108),v=(_0x2821f2,_0x1962ac,_0x2b89c7)=>B(_0x2821f2,typeof _0x1962ac!=_0x58f721(0x1ba)?_0x1962ac+'':_0x1962ac,_0x2b89c7);const $='DOC_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x4177ca{constructor(_0x52a036=m,_0xb4d679,_0x1dc5f0){var _0x49e153=_0x58f721;super(),this[_0x49e153(0x1a5)]=_0x52a036,this[_0x49e153(0x1a2)]=_0xb4d679,this[_0x49e153(0x1c8)]=_0x1dc5f0;const {menu:_0x156dcc,..._0x36a0b3}=_0x3580d2({},m,this[_0x49e153(0x1a5)]);_0x156dcc&&this[_0x49e153(0x1c8)][_0x49e153(0x1ad)]('menu',_0x156dcc,{'merge':!0x0}),this['_configService'][_0x49e153(0x1ad)](b,_0x36a0b3);}[_0x58f721(0x1c0)](){var _0x5775a7=_0x58f721;[[a]][_0x5775a7(0x19e)](_0x335e0c=>this[_0x5775a7(0x1a2)][_0x5775a7(0x1c4)](_0x335e0c));}[_0x58f721(0x1a0)](){var _0x199d04=_0x58f721;this[_0x199d04(0x1a2)]['get'](a);}};v(s,'pluginName',$),v(s,'type',_0x256306[_0x58f721(0x1c7)]),s=H([_0x41bb0e(_0x206a65),g(0x1,_0x1cf912(_0x2abd5a)),g(0x2,_0x35bef1)],s);export{_ as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x58f721=_0x1591;(function(_0x3e2be2,_0xedac5e){var _0x33eae6=_0x1591,_0x4e3add=_0x3e2be2();while(!![]){try{var _0x37bbab=parseInt(_0x33eae6(0x1c3))/0x1*(parseInt(_0x33eae6(0x19f))/0x2)+-parseInt(_0x33eae6(0x1b8))/0x3*(parseInt(_0x33eae6(0x1c2))/0x4)+parseInt(_0x33eae6(0x1ae))/0x5*(parseInt(_0x33eae6(0x1a4))/0x6)+parseInt(_0x33eae6(0x1b3))/0x7+-parseInt(_0x33eae6(0x1ac))/0x8*(parseInt(_0x33eae6(0x1bd))/0x9)+parseInt(_0x33eae6(0x1bb))/0xa*(parseInt(_0x33eae6(0x1a6))/0xb)+parseInt(_0x33eae6(0x1be))/0xc*(parseInt(_0x33eae6(0x1c5))/0xd);if(_0x37bbab===_0xedac5e)break;else _0x4e3add['push'](_0x4e3add['shift']());}catch(_0x4df348){_0x4e3add['push'](_0x4e3add['shift']());}}}(_0x3882,0x1bb2b));import{IExchangeOperateService as _0x511bf3,UniverExchangeClientPlugin as _0x206a65}from'@univerjs-pro/exchange-client';import{CommandType as _0x3b2c98,UniverInstanceType as _0x256306,Disposable as _0x46170a,ICommandService as _0x43aa3c,DependentOn as _0x41bb0e,Inject as _0x1cf912,Injector as _0x2abd5a,IConfigService as _0x35bef1,Plugin as _0x4177ca,merge as _0x3580d2}from'@univerjs/core';import{MenuItemType as _0x3153c2,getMenuHiddenObservable as _0x55d024,RibbonStartGroup as _0x9960b0,IMenuManagerService as _0x3e2c50}from'@univerjs/ui';const b='docs-exchange-client.config',m={},d={'id':_0x58f721(0x1a3),'type':_0x3b2c98['OPERATION'],'handler':async _0x5798a6=>(_0x5798a6['get'](_0x511bf3)[_0x58f721(0x1a1)](),!0x0)},_={'id':'exchange-client.operation.export-docx','type':_0x3b2c98['OPERATION'],'handler':async _0xc48804=>(_0xc48804[_0x58f721(0x1ab)](_0x511bf3)['exportDOCXByUnitId'](),!0x0)},I=_0x58f721(0x1b4);function F(_0xf62cdc){var _0x38f69a=_0x58f721;return{'id':I,'type':_0x3153c2[_0x38f69a(0x1b5)],'icon':_0x38f69a(0x1ca),'tooltip':_0x38f69a(0x1c9),'hidden$':_0x55d024(_0xf62cdc,_0x256306[_0x38f69a(0x1c7)])};}function X(){var _0x363d0b=_0x58f721;return{'id':d['id'],'type':_0x3153c2[_0x363d0b(0x1b1)],'title':'exchange.upload','icon':_0x363d0b(0x1a9)};}function G(){var _0x38937a=_0x58f721;return{'id':_['id'],'type':_0x3153c2['BUTTON'],'title':_0x38937a(0x1b6),'icon':_0x38937a(0x1a8)};}const A={[_0x9960b0[_0x58f721(0x1b9)]]:{[I]:{'order':0x4,'menuItemFactory':F,[d['id']]:{'order':0x0,'menuItemFactory':X},[_['id']]:{'order':0x1,'menuItemFactory':G}}}};var L=Object['getOwnPropertyDescriptor'],R=(_0x4e8875,_0x2601fd,_0x28e540,_0x4d4764)=>{var _0x5d7635=_0x58f721;for(var _0x11ff05=_0x4d4764>0x1?void 0x0:_0x4d4764?L(_0x2601fd,_0x28e540):_0x2601fd,_0x49fd29=_0x4e8875[_0x5d7635(0x1b0)]-0x1,_0x5ee58f;_0x49fd29>=0x0;_0x49fd29--)(_0x5ee58f=_0x4e8875[_0x49fd29])&&(_0x11ff05=_0x5ee58f(_0x11ff05)||_0x11ff05);return _0x11ff05;},u=(_0x51bc08,_0x5d48e6)=>(_0x45bd58,_0x198aa4)=>_0x5d48e6(_0x45bd58,_0x198aa4,_0x51bc08);let a=class extends _0x46170a{constructor(_0x199e1c,_0x162cde){var _0x3b8518=_0x58f721;super(),this[_0x3b8518(0x1bc)]=_0x199e1c,this[_0x3b8518(0x1c6)]=_0x162cde,this[_0x3b8518(0x1aa)](),this[_0x3b8518(0x1c1)]();}['_initCommands'](){var _0x57f82e=_0x58f721;[d,_][_0x57f82e(0x19e)](_0x3ac826=>{var _0x4d409e=_0x57f82e;this[_0x4d409e(0x1a7)](this['_commandService'][_0x4d409e(0x1af)](_0x3ac826));});}['_initMenus'](){var _0x677c68=_0x58f721;this[_0x677c68(0x1c6)][_0x677c68(0x1bf)](A);}};a=R([u(0x0,_0x43aa3c),u(0x1,_0x3e2c50)],a);function _0x3882(){var _0x56f43b=['_initMenus','16eFSkJQ','3yzYXCZ','add','13gfSwws','_menuManagerService','UNIVER_DOC','_configService','exchange.file','DirectExportSingle','forEach','83634QUPJTr','onReady','importDOCXToUnitId','_injector','exchange-client.operation.import-docx','144MzleAo','_config','1799809fnlaAw','disposeWithMe','ExportSingle','FolderSingle','_initCommands','get','68296kwnYLP','setConfig','12465XOILQl','registerCommand','length','BUTTON','defineProperty','29995lbMzXP','docs-exchange-client.operation.exchange','SUBITEMS','exchange.download','getOwnPropertyDescriptor','162408yKWAZU','FILE','symbol','10TVjtQa','_commandService','198NZAOKZ','1975464QYYFMJ','mergeMenu','onStarting'];_0x3882=function(){return _0x56f43b;};return _0x3882();}function _0x1591(_0x1b757d,_0x5e73ed){var _0x3882f6=_0x3882();return _0x1591=function(_0x15912e,_0x11b35d){_0x15912e=_0x15912e-0x19e;var _0x388598=_0x3882f6[_0x15912e];return _0x388598;},_0x1591(_0x1b757d,_0x5e73ed);}var j=Object[_0x58f721(0x1b2)],w=Object[_0x58f721(0x1b7)],B=(_0x147e37,_0x10cd00,_0x42e964)=>_0x10cd00 in _0x147e37?j(_0x147e37,_0x10cd00,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x42e964}):_0x147e37[_0x10cd00]=_0x42e964,H=(_0x9c39b,_0x555991,_0x1b30b3,_0x5be789)=>{var _0x166cfc=_0x58f721;for(var _0x5db370=_0x5be789>0x1?void 0x0:_0x5be789?w(_0x555991,_0x1b30b3):_0x555991,_0x2d77f0=_0x9c39b[_0x166cfc(0x1b0)]-0x1,_0x46a427;_0x2d77f0>=0x0;_0x2d77f0--)(_0x46a427=_0x9c39b[_0x2d77f0])&&(_0x5db370=_0x46a427(_0x5db370)||_0x5db370);return _0x5db370;},g=(_0x117108,_0x1aa313)=>(_0x5a793e,_0x102574)=>_0x1aa313(_0x5a793e,_0x102574,_0x117108),v=(_0x2821f2,_0x1962ac,_0x2b89c7)=>B(_0x2821f2,typeof _0x1962ac!=_0x58f721(0x1ba)?_0x1962ac+'':_0x1962ac,_0x2b89c7);const $='DOC_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x4177ca{constructor(_0x52a036=m,_0xb4d679,_0x1dc5f0){var _0x49e153=_0x58f721;super(),this[_0x49e153(0x1a5)]=_0x52a036,this[_0x49e153(0x1a2)]=_0xb4d679,this[_0x49e153(0x1c8)]=_0x1dc5f0;const {menu:_0x156dcc,..._0x36a0b3}=_0x3580d2({},m,this[_0x49e153(0x1a5)]);_0x156dcc&&this[_0x49e153(0x1c8)][_0x49e153(0x1ad)]('menu',_0x156dcc,{'merge':!0x0}),this['_configService'][_0x49e153(0x1ad)](b,_0x36a0b3);}[_0x58f721(0x1c0)](){var _0x5775a7=_0x58f721;[[a]][_0x5775a7(0x19e)](_0x335e0c=>this[_0x5775a7(0x1a2)][_0x5775a7(0x1c4)](_0x335e0c));}[_0x58f721(0x1a0)](){var _0x199d04=_0x58f721;this[_0x199d04(0x1a2)]['get'](a);}};v(s,'pluginName',$),v(s,'type',_0x256306[_0x58f721(0x1c7)]),s=H([_0x41bb0e(_0x206a65),g(0x1,_0x1cf912(_0x2abd5a)),g(0x2,_0x35bef1)],s);export{_ as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x3873(_0x24ee32,_0x465e77){var _0x548924=_0x5489();return _0x3873=function(_0x3873ba,_0x1c5e15){_0x3873ba=_0x3873ba-0xba;var _0x3fa58d=_0x548924[_0x3873ba];return _0x3fa58d;},_0x3873(_0x24ee32,_0x465e77);}(function(_0x3fd909,_0xdc5860){var _0x126abd=_0x3873,_0xb72381=_0x3fd909();while(!![]){try{var _0x356185=parseInt(_0x126abd(0xf1))/0x1*(parseInt(_0x126abd(0xe2))/0x2)+-parseInt(_0x126abd(0xf9))/0x3*(parseInt(_0x126abd(0xbc))/0x4)+-parseInt(_0x126abd(0xd7))/0x5+-parseInt(_0x126abd(0xfd))/0x6*(parseInt(_0x126abd(0xba))/0x7)+-parseInt(_0x126abd(0xf6))/0x8*(-parseInt(_0x126abd(0xd3))/0x9)+-parseInt(_0x126abd(0xc4))/0xa*(-parseInt(_0x126abd(0xc2))/0xb)+parseInt(_0x126abd(0xe7))/0xc;if(_0x356185===_0xdc5860)break;else _0xb72381['push'](_0xb72381['shift']());}catch(_0x4aac4e){_0xb72381['push'](_0xb72381['shift']());}}}(_0x5489,0x76fe1),function(_0x2bb8d3,_0xa90a19){var _0x5841c7=_0x3873;typeof exports=='object'&&typeof module<'u'?_0xa90a19(exports,require('@univerjs-pro/exchange-client'),require(_0x5841c7(0xc5)),require(_0x5841c7(0xe4))):typeof define==_0x5841c7(0xbf)&&define[_0x5841c7(0xf8)]?define([_0x5841c7(0xc6),_0x5841c7(0xd2),'@univerjs/core','@univerjs/ui'],_0xa90a19):(_0x2bb8d3=typeof globalThis<'u'?globalThis:_0x2bb8d3||self,_0xa90a19(_0x2bb8d3[_0x5841c7(0xc7)]={},_0x2bb8d3[_0x5841c7(0xcf)],_0x2bb8d3[_0x5841c7(0xd1)],_0x2bb8d3[_0x5841c7(0xdf)]));}(this,function(_0x5c9fa6,_0x327758,_0x3a033b,_0x437d25){'use strict';var _0x3a8f45=_0x3873;const _0x3970af=_0x3a8f45(0x100),_0x1cee4f={},_0x66f1f1={'id':_0x3a8f45(0xe1),'type':_0x3a033b[_0x3a8f45(0xf4)][_0x3a8f45(0xbd)],'handler':async _0x4ea640=>(_0x4ea640[_0x3a8f45(0xca)](_0x327758[_0x3a8f45(0xea)])[_0x3a8f45(0xe3)](),!0x0)},_0x5edee2={'id':_0x3a8f45(0xda),'type':_0x3a033b[_0x3a8f45(0xf4)][_0x3a8f45(0xbd)],'handler':async _0x4e3bd0=>(_0x4e3bd0[_0x3a8f45(0xca)](_0x327758[_0x3a8f45(0xea)])['exportDOCXByUnitId'](),!0x0)},_0x17b4da=_0x3a8f45(0xde);function _0x22ceaa(_0x4e8ef2){var _0x4f882b=_0x3a8f45;return{'id':_0x17b4da,'type':_0x437d25[_0x4f882b(0x102)]['SUBITEMS'],'icon':_0x4f882b(0xc8),'tooltip':_0x4f882b(0xf7),'hidden$':_0x437d25['getMenuHiddenObservable'](_0x4e8ef2,_0x3a033b[_0x4f882b(0xe8)][_0x4f882b(0xf0)])};}function _0x2d5ec6(){var _0x522caf=_0x3a8f45;return{'id':_0x66f1f1['id'],'type':_0x437d25[_0x522caf(0x102)][_0x522caf(0x101)],'title':_0x522caf(0xfc),'icon':_0x522caf(0xcb)};}function _0x5787fa(){var _0x3512d1=_0x3a8f45;return{'id':_0x5edee2['id'],'type':_0x437d25[_0x3512d1(0x102)][_0x3512d1(0x101)],'title':_0x3512d1(0xc9),'icon':_0x3512d1(0xc0)};}const _0x4f5c5b={[_0x437d25[_0x3a8f45(0xce)][_0x3a8f45(0xfb)]]:{[_0x17b4da]:{'order':0x4,'menuItemFactory':_0x22ceaa,[_0x66f1f1['id']]:{'order':0x0,'menuItemFactory':_0x2d5ec6},[_0x5edee2['id']]:{'order':0x1,'menuItemFactory':_0x5787fa}}}};var _0x5bc06d=Object[_0x3a8f45(0xbb)],_0x478ff7=(_0x396b0e,_0x3f73ef,_0x19eaad,_0x1a8f6b)=>{var _0x298479=_0x3a8f45;for(var _0x138b9a=_0x1a8f6b>0x1?void 0x0:_0x1a8f6b?_0x5bc06d(_0x3f73ef,_0x19eaad):_0x3f73ef,_0xbe79b8=_0x396b0e[_0x298479(0xd8)]-0x1,_0x547e37;_0xbe79b8>=0x0;_0xbe79b8--)(_0x547e37=_0x396b0e[_0xbe79b8])&&(_0x138b9a=_0x547e37(_0x138b9a)||_0x138b9a);return _0x138b9a;},_0x4ced7f=(_0x562e39,_0x154c14)=>(_0x35e981,_0x52a4b1)=>_0x154c14(_0x35e981,_0x52a4b1,_0x562e39);let _0x519646=class extends _0x3a033b['Disposable']{constructor(_0x8083e7,_0x10736a){var _0x16a2c4=_0x3a8f45;super(),this['_commandService']=_0x8083e7,this['_menuManagerService']=_0x10736a,this[_0x16a2c4(0xd5)](),this['_initMenus']();}[_0x3a8f45(0xd5)](){var _0x1a6606=_0x3a8f45;[_0x66f1f1,_0x5edee2][_0x1a6606(0x103)](_0x428cc7=>{var _0x46cf36=_0x1a6606;this[_0x46cf36(0xfa)](this[_0x46cf36(0xf2)]['registerCommand'](_0x428cc7));});}[_0x3a8f45(0xd0)](){var _0x5146c4=_0x3a8f45;this[_0x5146c4(0xf5)][_0x5146c4(0xff)](_0x4f5c5b);}};_0x519646=_0x478ff7([_0x4ced7f(0x0,_0x3a033b['ICommandService']),_0x4ced7f(0x1,_0x437d25[_0x3a8f45(0xf3)])],_0x519646);var _0x10e994=Object[_0x3a8f45(0xdd)],_0x2b98c9=Object['getOwnPropertyDescriptor'],_0x46653c=(_0xafc55c,_0x329030,_0x42f6e4)=>_0x329030 in _0xafc55c?_0x10e994(_0xafc55c,_0x329030,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x42f6e4}):_0xafc55c[_0x329030]=_0x42f6e4,_0x249616=(_0x541666,_0xdcbabf,_0x2b8cf8,_0x47e976)=>{var _0x39f716=_0x3a8f45;for(var _0x31e96b=_0x47e976>0x1?void 0x0:_0x47e976?_0x2b98c9(_0xdcbabf,_0x2b8cf8):_0xdcbabf,_0x44fd85=_0x541666[_0x39f716(0xd8)]-0x1,_0x16ef77;_0x44fd85>=0x0;_0x44fd85--)(_0x16ef77=_0x541666[_0x44fd85])&&(_0x31e96b=_0x16ef77(_0x31e96b)||_0x31e96b);return _0x31e96b;},_0x3e4f18=(_0x4a9db7,_0x30d583)=>(_0x2b9279,_0x12e496)=>_0x30d583(_0x2b9279,_0x12e496,_0x4a9db7),_0x4291c2=(_0x3c8aa5,_0x3cca36,_0x2223ea)=>_0x46653c(_0x3c8aa5,typeof _0x3cca36!=_0x3a8f45(0xee)?_0x3cca36+'':_0x3cca36,_0x2223ea);const _0x27e534=_0x3a8f45(0xd4);_0x5c9fa6[_0x3a8f45(0xbe)]=class extends _0x3a033b[_0x3a8f45(0xe9)]{constructor(_0x3febc2=_0x1cee4f,_0x4852b8,_0x4f3377){var _0x3e73af=_0x3a8f45;super(),this[_0x3e73af(0xed)]=_0x3febc2,this[_0x3e73af(0xcc)]=_0x4852b8,this[_0x3e73af(0xeb)]=_0x4f3377;const {menu:_0x12df31,..._0x4382fa}=_0x3a033b[_0x3e73af(0xe5)]({},_0x1cee4f,this[_0x3e73af(0xed)]);_0x12df31&&this[_0x3e73af(0xeb)][_0x3e73af(0xcd)](_0x3e73af(0xfe),_0x12df31,{'merge':!0x0}),this[_0x3e73af(0xeb)][_0x3e73af(0xcd)](_0x3970af,_0x4382fa);}[_0x3a8f45(0xd6)](){var _0x33b748=_0x3a8f45;[[_0x519646]][_0x33b748(0x103)](_0x468d97=>this['_injector']['add'](_0x468d97));}[_0x3a8f45(0xdb)](){var _0x936510=_0x3a8f45;this[_0x936510(0xcc)][_0x936510(0xca)](_0x519646);}},_0x4291c2(_0x5c9fa6['UniverDocsExchangeClientPlugin'],_0x3a8f45(0xc3),_0x27e534),_0x4291c2(_0x5c9fa6[_0x3a8f45(0xbe)],_0x3a8f45(0xef),_0x3a033b[_0x3a8f45(0xe8)][_0x3a8f45(0xf0)]),_0x5c9fa6[_0x3a8f45(0xbe)]=_0x249616([_0x3a033b['DependentOn'](_0x327758[_0x3a8f45(0xe6)]),_0x3e4f18(0x1,_0x3a033b[_0x3a8f45(0xec)](_0x3a033b['Injector'])),_0x3e4f18(0x2,_0x3a033b[_0x3a8f45(0xdc)])],_0x5c9fa6['UniverDocsExchangeClientPlugin']),_0x5c9fa6['ExportDOCXOperation']=_0x5edee2,_0x5c9fa6[_0x3a8f45(0xc1)]=_0x66f1f1,Object['defineProperty'](_0x5c9fa6,Symbol[_0x3a8f45(0xe0)],{'value':_0x3a8f45(0xd9)});}));function _0x5489(){var _0x52408b=['32Vhgvqu','exchange.file','amd','3PvLbbb','disposeWithMe','FILE','exchange.upload','4878lIrLha','menu','mergeMenu','docs-exchange-client.config','BUTTON','MenuItemType','forEach','7924TQFTii','getOwnPropertyDescriptor','2599832kzRqIh','OPERATION','UniverDocsExchangeClientPlugin','function','ExportSingle','ImportDOCXOperation','341tReBeC','pluginName','175890AFImla','@univerjs/core','exports','UniverProDocsExchangeClient','DirectExportSingle','exchange.download','get','FolderSingle','_injector','setConfig','RibbonStartGroup','UniverProExchangeClient','_initMenus','UniverCore','@univerjs-pro/exchange-client','673326cJekyY','DOC_EXCHANGE_CLIENT_PLUGIN','_initCommands','onStarting','1093530wnimdq','length','Module','exchange-client.operation.export-docx','onReady','IConfigService','defineProperty','docs-exchange-client.operation.exchange','UniverUi','toStringTag','exchange-client.operation.import-docx','2LNCkJW','importDOCXToUnitId','@univerjs/ui','merge','UniverExchangeClientPlugin','10526340LyFQZv','UniverInstanceType','Plugin','IExchangeOperateService','_configService','Inject','_config','symbol','type','UNIVER_DOC','554663AuXXkc','_commandService','IMenuManagerService','CommandType','_menuManagerService'];_0x5489=function(){return _0x52408b;};return _0x5489();}
|
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.9-experimental.20250406-d422c87",
|
|
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/
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.6.9-experimental.20250406-d422c87",
|
|
46
|
+
"@univerjs/ui": "0.6.9-experimental.20250406-d422c87",
|
|
47
|
+
"@univerjs/core": "0.6.9-experimental.20250406-d422c87"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"typescript": "^5.8.2",
|
|
51
51
|
"vite": "^6.2.2",
|
|
52
52
|
"vitest": "^3.0.9",
|
|
53
|
-
"@univerjs-infra/shared": "0.6.
|
|
53
|
+
"@univerjs-infra/shared": "0.6.9"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"test": "vitest run",
|