@univerjs-pro/docs-exchange-client 0.9.2-nightly.202507171607 → 0.9.2-nightly.202507181608
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 +4 -4
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var _0x102305=_0x5235;(function(_0xd0ef5b,_0x34a899){var _0x397b47=_0x5235,_0x28e02e=_0xd0ef5b();while(!![]){try{var _0x1c1069=-parseInt(_0x397b47(0x18c))/0x1*(parseInt(_0x397b47(0x1aa))/0x2)+-parseInt(_0x397b47(0x1ae))/0x3*(parseInt(_0x397b47(0x1ba))/0x4)+-parseInt(_0x397b47(0x1c5))/0x5+-parseInt(_0x397b47(0x19e))/0x6*(-parseInt(_0x397b47(0x199))/0x7)+parseInt(_0x397b47(0x1c8))/0x8+parseInt(_0x397b47(0x1af))/0x9*(parseInt(_0x397b47(0x1ac))/0xa)+-parseInt(_0x397b47(0x1b7))/0xb*(parseInt(_0x397b47(0x1be))/0xc);if(_0x1c1069===_0x34a899)break;else _0x28e02e['push'](_0x28e02e['shift']());}catch(_0x399be6){_0x28e02e['push'](_0x28e02e['shift']());}}}(_0xcc81,0x635a6));Object[_0x102305(0x1bd)](exports,Symbol[_0x102305(0x1b1)],{'value':_0x102305(0x1c9)});const d=require('@univerjs-pro/exchange-client'),i=require('@univerjs/core'),a=require('@univerjs/ui'),I='docs-exchange-client.config',l={},p={'id':_0x102305(0x18a),'type':i[_0x102305(0x19f)]['OPERATION'],'handler':async _0x547b60=>(_0x547b60[_0x102305(0x19b)](d[_0x102305(0x1ca)])[_0x102305(0x1c7)](),!0x0)},g={'id':_0x102305(0x1ab),'type':i[_0x102305(0x19f)]['OPERATION'],'handler':async _0x4bb84d=>(_0x4bb84d[_0x102305(0x19b)](d['IExchangeOperateService'])['exportDOCXByUnitId'](),!0x0)},h='docs-exchange-client.operation.exchange';function _0xcc81(){var _0x2442ea=['RibbonStartGroup','add','SUBITEMS','_initCommands','UniverDocsExchangeClientPlugin','16394ZzmSNO','forEach','get','_commandService','disposeWithMe','1026OomHce','CommandType','menu','type','_injector','UniverInstanceType','exchange.upload','getOwnPropertyDescriptor','onStarting','UNIVER_DOC','merge','BUTTON','166754zpNohf','exchange-client.operation.export-docx','14380cyLUqM','onReady','7851enBcPR','3636htoJGv','ExportIcon','toStringTag','UniverExchangeClientPlugin','registerCommand','symbol','exchange.download','IMenuManagerService','25839WjiLdR','setConfig','ExportDOCXOperation','172hpBdYr','mergeMenu','MenuItemType','defineProperty','132eFDkGH','Disposable','IConfigService','ImportDOCXOperation','OTHERS','_initMenus','length','650035cvHcfG','Injector','importDOCXToUnitId','2220256xxTGPS','Module','IExchangeOperateService','exchange-client.operation.import-docx','Inject','7oyqJLR','pluginName','_config','Plugin','_configService','_menuManagerService','exchange.file','getMenuHiddenObservable'];_0xcc81=function(){return _0x2442ea;};return _0xcc81();}function v(_0x264e93){var _0x34f874=_0x102305;return{'id':h,'type':a[_0x34f874(0x1bc)][_0x34f874(0x196)],'icon':'DirectExportIcon','tooltip':_0x34f874(0x192),'hidden$':a[_0x34f874(0x193)](_0x264e93,i['UniverInstanceType'][_0x34f874(0x1a7)])};}function O(){var _0x544b54=_0x102305;return{'id':p['id'],'type':a[_0x544b54(0x1bc)][_0x544b54(0x1a9)],'title':_0x544b54(0x1a4),'icon':'FolderIcon'};}function E(){var _0x208b35=_0x102305;return{'id':g['id'],'type':a[_0x208b35(0x1bc)][_0x208b35(0x1a9)],'title':_0x208b35(0x1b5),'icon':_0x208b35(0x1b0)};}const x={[a[_0x102305(0x194)][_0x102305(0x1c2)]]:{[h]:{'order':0.3,'menuItemFactory':v,[p['id']]:{'order':0x0,'menuItemFactory':O},[g['id']]:{'order':0x1,'menuItemFactory':E}}}};var D=Object[_0x102305(0x1a5)],f=(_0x458d41,_0x56597e,_0x4d7b8b,_0x5d4d03)=>{for(var _0x459b23=_0x5d4d03>0x1?void 0x0:_0x5d4d03?D(_0x56597e,_0x4d7b8b):_0x56597e,_0x862391=_0x458d41['length']-0x1,_0x473b86;_0x862391>=0x0;_0x862391--)(_0x473b86=_0x458d41[_0x862391])&&(_0x459b23=_0x473b86(_0x459b23)||_0x459b23);return _0x459b23;},_=(_0x20a0dc,_0x1fa9b9)=>(_0x15b1f4,_0x539d76)=>_0x1fa9b9(_0x15b1f4,_0x539d76,_0x20a0dc);function _0x5235(_0x27997c,_0x192c49){var _0xcc81fa=_0xcc81();return _0x5235=function(_0x52351c,_0x141f25){_0x52351c=_0x52351c-0x18a;var _0x57700f=_0xcc81fa[_0x52351c];return _0x57700f;},_0x5235(_0x27997c,_0x192c49);}let u=class extends i[_0x102305(0x1bf)]{constructor(_0x5239bc,_0x367cbc){var _0xec3dd6=_0x102305;super(),this[_0xec3dd6(0x19c)]=_0x5239bc,this[_0xec3dd6(0x191)]=_0x367cbc,this['_initCommands'](),this[_0xec3dd6(0x1c3)]();}[_0x102305(0x197)](){var _0x10b5b5=_0x102305;[p,g][_0x10b5b5(0x19a)](_0x411223=>{var _0x414d33=_0x10b5b5;this[_0x414d33(0x19d)](this[_0x414d33(0x19c)][_0x414d33(0x1b3)](_0x411223));});}[_0x102305(0x1c3)](){var _0x5f49d7=_0x102305;this['_menuManagerService'][_0x5f49d7(0x1bb)](x);}};u=f([_(0x0,i['ICommandService']),_(0x1,a[_0x102305(0x1b6)])],u);var y=Object[_0x102305(0x1bd)],S=Object[_0x102305(0x1a5)],P=(_0x55d3fe,_0x57dd4f,_0x5eab27)=>_0x57dd4f in _0x55d3fe?y(_0x55d3fe,_0x57dd4f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5eab27}):_0x55d3fe[_0x57dd4f]=_0x5eab27,T=(_0xa0ffca,_0x2613f3,_0x5ea631,_0x48094d)=>{var _0x33a401=_0x102305;for(var _0x746955=_0x48094d>0x1?void 0x0:_0x48094d?S(_0x2613f3,_0x5ea631):_0x2613f3,_0x2cbbc7=_0xa0ffca[_0x33a401(0x1c4)]-0x1,_0x311803;_0x2cbbc7>=0x0;_0x2cbbc7--)(_0x311803=_0xa0ffca[_0x2cbbc7])&&(_0x746955=_0x311803(_0x746955)||_0x746955);return _0x746955;},m=(_0x193a75,_0xd835f0)=>(_0x5cc50b,_0x3094fc)=>_0xd835f0(_0x5cc50b,_0x3094fc,_0x193a75),C=(_0x406d8c,_0x35fa1c,_0x2f4a18)=>P(_0x406d8c,typeof _0x35fa1c!=_0x102305(0x1b4)?_0x35fa1c+'':_0x35fa1c,_0x2f4a18);const U='DOC_EXCHANGE_CLIENT_PLUGIN';exports[_0x102305(0x198)]=class extends i[_0x102305(0x18f)]{constructor(_0x56425f=l,_0xff82a,_0x57f14b){var _0x591098=_0x102305;super(),this[_0x591098(0x18e)]=_0x56425f,this['_injector']=_0xff82a,this[_0x591098(0x190)]=_0x57f14b;const {menu:_0x483509,..._0x2a23fb}=i[_0x591098(0x1a8)]({},l,this[_0x591098(0x18e)]);_0x483509&&this[_0x591098(0x190)][_0x591098(0x1b8)](_0x591098(0x1a0),_0x483509,{'merge':!0x0}),this[_0x591098(0x190)][_0x591098(0x1b8)](I,_0x2a23fb);}[_0x102305(0x1a6)](){var _0xd9b84=_0x102305;[[u]]['forEach'](_0x3ccb67=>this[_0xd9b84(0x1a2)][_0xd9b84(0x195)](_0x3ccb67));}[_0x102305(0x1ad)](){var _0x5d88db=_0x102305;this['_injector'][_0x5d88db(0x19b)](u);}},C(exports['UniverDocsExchangeClientPlugin'],_0x102305(0x18d),U),C(exports['UniverDocsExchangeClientPlugin'],_0x102305(0x1a1),i[_0x102305(0x1a3)][_0x102305(0x1a7)]),exports['UniverDocsExchangeClientPlugin']=T([i['DependentOn'](d[_0x102305(0x1b2)]),m(0x1,i[_0x102305(0x18b)](i[_0x102305(0x1c6)])),m(0x2,i[_0x102305(0x1c0)])],exports['UniverDocsExchangeClientPlugin']),exports[_0x102305(0x1b9)]=g,exports[_0x102305(0x1c1)]=p;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x12108f=_0xce3c;(function(_0x2c781a,_0x28758c){var _0x57ea52=_0xce3c,_0x4a93aa=_0x2c781a();while(!![]){try{var _0x2cdc0c=-parseInt(_0x57ea52(0x114))/0x1*(-parseInt(_0x57ea52(0x11c))/0x2)+-parseInt(_0x57ea52(0x102))/0x3+parseInt(_0x57ea52(0x10c))/0x4*(-parseInt(_0x57ea52(0x125))/0x5)+parseInt(_0x57ea52(0x107))/0x6+parseInt(_0x57ea52(0x10d))/0x7+parseInt(_0x57ea52(0x11f))/0x8+-parseInt(_0x57ea52(0x100))/0x9;if(_0x2cdc0c===_0x28758c)break;else _0x4a93aa['push'](_0x4a93aa['shift']());}catch(_0x2f3298){_0x4a93aa['push'](_0x4a93aa['shift']());}}}(_0x5625,0x78607));import{IExchangeOperateService as _0x4a5006,UniverExchangeClientPlugin as _0x101559}from'@univerjs-pro/exchange-client';import{CommandType as _0x42c9b6,UniverInstanceType as _0x45b1d0,Disposable as _0x16f05f,ICommandService as _0x518a98,DependentOn as _0x286cb1,Inject as _0x4cd510,Injector as _0x22b81a,IConfigService as _0x4788d9,Plugin as _0x517ef9,merge as _0x23e5ac}from'@univerjs/core';import{MenuItemType as _0x1919b4,getMenuHiddenObservable as _0x577c10,RibbonStartGroup as _0x5a5f4d,IMenuManagerService as _0x192c85}from'@univerjs/ui';const b=_0x12108f(0xfe),m={},d={'id':_0x12108f(0x11a),'type':_0x42c9b6['OPERATION'],'handler':async _0x6e93b2=>(_0x6e93b2[_0x12108f(0x10b)](_0x4a5006)['importDOCXToUnitId'](),!0x0)},_={'id':_0x12108f(0x104),'type':_0x42c9b6['OPERATION'],'handler':async _0xdf5e05=>(_0xdf5e05[_0x12108f(0x10b)](_0x4a5006)[_0x12108f(0x120)](),!0x0)},C=_0x12108f(0x126);function X(_0x1f0f07){var _0x3d5268=_0x12108f;return{'id':C,'type':_0x1919b4['SUBITEMS'],'icon':_0x3d5268(0x101),'tooltip':_0x3d5268(0xff),'hidden$':_0x577c10(_0x1f0f07,_0x45b1d0['UNIVER_DOC'])};}function F(){var _0x535e69=_0x12108f;return{'id':d['id'],'type':_0x1919b4[_0x535e69(0x10a)],'title':_0x535e69(0x117),'icon':_0x535e69(0x11b)};}function G(){var _0x345b0f=_0x12108f;return{'id':_['id'],'type':_0x1919b4[_0x345b0f(0x10a)],'title':_0x345b0f(0x127),'icon':'ExportIcon'};}const R={[_0x5a5f4d[_0x12108f(0x112)]]:{[C]:{'order':0.3,'menuItemFactory':X,[d['id']]:{'order':0x0,'menuItemFactory':F},[_['id']]:{'order':0x1,'menuItemFactory':G}}}};var A=Object[_0x12108f(0x11d)],j=(_0x841854,_0x30b514,_0x58000f,_0x21ea4d)=>{var _0x549543=_0x12108f;for(var _0x411fff=_0x21ea4d>0x1?void 0x0:_0x21ea4d?A(_0x30b514,_0x58000f):_0x30b514,_0x412e2c=_0x841854[_0x549543(0x116)]-0x1,_0x35de38;_0x412e2c>=0x0;_0x412e2c--)(_0x35de38=_0x841854[_0x412e2c])&&(_0x411fff=_0x35de38(_0x411fff)||_0x411fff);return _0x411fff;},u=(_0x4ff3e2,_0x460c45)=>(_0x39d208,_0x44cb60)=>_0x460c45(_0x39d208,_0x44cb60,_0x4ff3e2);let a=class extends _0x16f05f{constructor(_0x5908e4,_0x241508){var _0x5f213c=_0x12108f;super(),this[_0x5f213c(0x105)]=_0x5908e4,this[_0x5f213c(0x115)]=_0x241508,this['_initCommands'](),this[_0x5f213c(0x11e)]();}[_0x12108f(0x113)](){[d,_]['forEach'](_0xf94c7b=>{var _0x57ce7a=_0xce3c;this[_0x57ce7a(0xfd)](this[_0x57ce7a(0x105)][_0x57ce7a(0x119)](_0xf94c7b));});}[_0x12108f(0x11e)](){var _0x578e53=_0x12108f;this[_0x578e53(0x115)][_0x578e53(0x118)](R);}};function _0xce3c(_0x53f902,_0x20027c){var _0x5625a9=_0x5625();return _0xce3c=function(_0xce3c34,_0x1958e0){_0xce3c34=_0xce3c34-0xfd;var _0x467ee9=_0x5625a9[_0xce3c34];return _0x467ee9;},_0xce3c(_0x53f902,_0x20027c);}a=j([u(0x0,_0x518a98),u(0x1,_0x192c85)],a);var w=Object['defineProperty'],H=Object['getOwnPropertyDescriptor'],L=(_0x400091,_0x3696f8,_0x5b676c)=>_0x3696f8 in _0x400091?w(_0x400091,_0x3696f8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5b676c}):_0x400091[_0x3696f8]=_0x5b676c,B=(_0x251f9c,_0x346e77,_0x47c672,_0x2ad143)=>{for(var _0x404d1e=_0x2ad143>0x1?void 0x0:_0x2ad143?H(_0x346e77,_0x47c672):_0x346e77,_0x49098b=_0x251f9c['length']-0x1,_0x28d718;_0x49098b>=0x0;_0x49098b--)(_0x28d718=_0x251f9c[_0x49098b])&&(_0x404d1e=_0x28d718(_0x404d1e)||_0x404d1e);return _0x404d1e;},g=(_0x4d4fe0,_0xa609fd)=>(_0x44bba1,_0x47b334)=>_0xa609fd(_0x44bba1,_0x47b334,_0x4d4fe0),O=(_0x221cdd,_0x70bde2,_0x1c38af)=>L(_0x221cdd,typeof _0x70bde2!=_0x12108f(0x121)?_0x70bde2+'':_0x70bde2,_0x1c38af);function _0x5625(){var _0x1bac60=['exportDOCXByUnitId','symbol','onReady','_config','_configService','3173090ocdDOQ','docs-exchange-client.operation.exchange','exchange.download','disposeWithMe','docs-exchange-client.config','exchange.file','344043pyJndX','DirectExportIcon','2901210tiQaWz','type','exchange-client.operation.export-docx','_commandService','DOC_EXCHANGE_CLIENT_PLUGIN','4084002zXujjn','forEach','setConfig','BUTTON','get','4bdJeis','4654916llbcPz','menu','_injector','onStarting','add','OTHERS','_initCommands','2EgfPlX','_menuManagerService','length','exchange.upload','mergeMenu','registerCommand','exchange-client.operation.import-docx','FolderIcon','566452VbXGfU','getOwnPropertyDescriptor','_initMenus','1766968uXRLMI'];_0x5625=function(){return _0x1bac60;};return _0x5625();}const $=_0x12108f(0x106);let s=class extends _0x517ef9{constructor(_0x510456=m,_0x146a14,_0x154535){var _0x30c39d=_0x12108f;super(),this[_0x30c39d(0x123)]=_0x510456,this[_0x30c39d(0x10f)]=_0x146a14,this['_configService']=_0x154535;const {menu:_0x570639,..._0x320ca3}=_0x23e5ac({},m,this[_0x30c39d(0x123)]);_0x570639&&this[_0x30c39d(0x124)][_0x30c39d(0x109)](_0x30c39d(0x10e),_0x570639,{'merge':!0x0}),this[_0x30c39d(0x124)]['setConfig'](b,_0x320ca3);}[_0x12108f(0x110)](){var _0xc1d41f=_0x12108f;[[a]][_0xc1d41f(0x108)](_0x5073e1=>this[_0xc1d41f(0x10f)][_0xc1d41f(0x111)](_0x5073e1));}[_0x12108f(0x122)](){var _0x2cb38a=_0x12108f;this[_0x2cb38a(0x10f)][_0x2cb38a(0x10b)](a);}};O(s,'pluginName',$),O(s,_0x12108f(0x103),_0x45b1d0['UNIVER_DOC']),s=B([_0x286cb1(_0x101559),g(0x1,_0x4cd510(_0x22b81a)),g(0x2,_0x4788d9)],s);export{_ as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x12108f=_0xce3c;(function(_0x2c781a,_0x28758c){var _0x57ea52=_0xce3c,_0x4a93aa=_0x2c781a();while(!![]){try{var _0x2cdc0c=-parseInt(_0x57ea52(0x114))/0x1*(-parseInt(_0x57ea52(0x11c))/0x2)+-parseInt(_0x57ea52(0x102))/0x3+parseInt(_0x57ea52(0x10c))/0x4*(-parseInt(_0x57ea52(0x125))/0x5)+parseInt(_0x57ea52(0x107))/0x6+parseInt(_0x57ea52(0x10d))/0x7+parseInt(_0x57ea52(0x11f))/0x8+-parseInt(_0x57ea52(0x100))/0x9;if(_0x2cdc0c===_0x28758c)break;else _0x4a93aa['push'](_0x4a93aa['shift']());}catch(_0x2f3298){_0x4a93aa['push'](_0x4a93aa['shift']());}}}(_0x5625,0x78607));import{IExchangeOperateService as _0x4a5006,UniverExchangeClientPlugin as _0x101559}from'@univerjs-pro/exchange-client';import{CommandType as _0x42c9b6,UniverInstanceType as _0x45b1d0,Disposable as _0x16f05f,ICommandService as _0x518a98,DependentOn as _0x286cb1,Inject as _0x4cd510,Injector as _0x22b81a,IConfigService as _0x4788d9,Plugin as _0x517ef9,merge as _0x23e5ac}from'@univerjs/core';import{MenuItemType as _0x1919b4,getMenuHiddenObservable as _0x577c10,RibbonStartGroup as _0x5a5f4d,IMenuManagerService as _0x192c85}from'@univerjs/ui';const b=_0x12108f(0xfe),m={},d={'id':_0x12108f(0x11a),'type':_0x42c9b6['OPERATION'],'handler':async _0x6e93b2=>(_0x6e93b2[_0x12108f(0x10b)](_0x4a5006)['importDOCXToUnitId'](),!0x0)},_={'id':_0x12108f(0x104),'type':_0x42c9b6['OPERATION'],'handler':async _0xdf5e05=>(_0xdf5e05[_0x12108f(0x10b)](_0x4a5006)[_0x12108f(0x120)](),!0x0)},C=_0x12108f(0x126);function X(_0x1f0f07){var _0x3d5268=_0x12108f;return{'id':C,'type':_0x1919b4['SUBITEMS'],'icon':_0x3d5268(0x101),'tooltip':_0x3d5268(0xff),'hidden$':_0x577c10(_0x1f0f07,_0x45b1d0['UNIVER_DOC'])};}function F(){var _0x535e69=_0x12108f;return{'id':d['id'],'type':_0x1919b4[_0x535e69(0x10a)],'title':_0x535e69(0x117),'icon':_0x535e69(0x11b)};}function G(){var _0x345b0f=_0x12108f;return{'id':_['id'],'type':_0x1919b4[_0x345b0f(0x10a)],'title':_0x345b0f(0x127),'icon':'ExportIcon'};}const R={[_0x5a5f4d[_0x12108f(0x112)]]:{[C]:{'order':0.3,'menuItemFactory':X,[d['id']]:{'order':0x0,'menuItemFactory':F},[_['id']]:{'order':0x1,'menuItemFactory':G}}}};var A=Object[_0x12108f(0x11d)],j=(_0x841854,_0x30b514,_0x58000f,_0x21ea4d)=>{var _0x549543=_0x12108f;for(var _0x411fff=_0x21ea4d>0x1?void 0x0:_0x21ea4d?A(_0x30b514,_0x58000f):_0x30b514,_0x412e2c=_0x841854[_0x549543(0x116)]-0x1,_0x35de38;_0x412e2c>=0x0;_0x412e2c--)(_0x35de38=_0x841854[_0x412e2c])&&(_0x411fff=_0x35de38(_0x411fff)||_0x411fff);return _0x411fff;},u=(_0x4ff3e2,_0x460c45)=>(_0x39d208,_0x44cb60)=>_0x460c45(_0x39d208,_0x44cb60,_0x4ff3e2);let a=class extends _0x16f05f{constructor(_0x5908e4,_0x241508){var _0x5f213c=_0x12108f;super(),this[_0x5f213c(0x105)]=_0x5908e4,this[_0x5f213c(0x115)]=_0x241508,this['_initCommands'](),this[_0x5f213c(0x11e)]();}[_0x12108f(0x113)](){[d,_]['forEach'](_0xf94c7b=>{var _0x57ce7a=_0xce3c;this[_0x57ce7a(0xfd)](this[_0x57ce7a(0x105)][_0x57ce7a(0x119)](_0xf94c7b));});}[_0x12108f(0x11e)](){var _0x578e53=_0x12108f;this[_0x578e53(0x115)][_0x578e53(0x118)](R);}};function _0xce3c(_0x53f902,_0x20027c){var _0x5625a9=_0x5625();return _0xce3c=function(_0xce3c34,_0x1958e0){_0xce3c34=_0xce3c34-0xfd;var _0x467ee9=_0x5625a9[_0xce3c34];return _0x467ee9;},_0xce3c(_0x53f902,_0x20027c);}a=j([u(0x0,_0x518a98),u(0x1,_0x192c85)],a);var w=Object['defineProperty'],H=Object['getOwnPropertyDescriptor'],L=(_0x400091,_0x3696f8,_0x5b676c)=>_0x3696f8 in _0x400091?w(_0x400091,_0x3696f8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5b676c}):_0x400091[_0x3696f8]=_0x5b676c,B=(_0x251f9c,_0x346e77,_0x47c672,_0x2ad143)=>{for(var _0x404d1e=_0x2ad143>0x1?void 0x0:_0x2ad143?H(_0x346e77,_0x47c672):_0x346e77,_0x49098b=_0x251f9c['length']-0x1,_0x28d718;_0x49098b>=0x0;_0x49098b--)(_0x28d718=_0x251f9c[_0x49098b])&&(_0x404d1e=_0x28d718(_0x404d1e)||_0x404d1e);return _0x404d1e;},g=(_0x4d4fe0,_0xa609fd)=>(_0x44bba1,_0x47b334)=>_0xa609fd(_0x44bba1,_0x47b334,_0x4d4fe0),O=(_0x221cdd,_0x70bde2,_0x1c38af)=>L(_0x221cdd,typeof _0x70bde2!=_0x12108f(0x121)?_0x70bde2+'':_0x70bde2,_0x1c38af);function _0x5625(){var _0x1bac60=['exportDOCXByUnitId','symbol','onReady','_config','_configService','3173090ocdDOQ','docs-exchange-client.operation.exchange','exchange.download','disposeWithMe','docs-exchange-client.config','exchange.file','344043pyJndX','DirectExportIcon','2901210tiQaWz','type','exchange-client.operation.export-docx','_commandService','DOC_EXCHANGE_CLIENT_PLUGIN','4084002zXujjn','forEach','setConfig','BUTTON','get','4bdJeis','4654916llbcPz','menu','_injector','onStarting','add','OTHERS','_initCommands','2EgfPlX','_menuManagerService','length','exchange.upload','mergeMenu','registerCommand','exchange-client.operation.import-docx','FolderIcon','566452VbXGfU','getOwnPropertyDescriptor','_initMenus','1766968uXRLMI'];_0x5625=function(){return _0x1bac60;};return _0x5625();}const $=_0x12108f(0x106);let s=class extends _0x517ef9{constructor(_0x510456=m,_0x146a14,_0x154535){var _0x30c39d=_0x12108f;super(),this[_0x30c39d(0x123)]=_0x510456,this[_0x30c39d(0x10f)]=_0x146a14,this['_configService']=_0x154535;const {menu:_0x570639,..._0x320ca3}=_0x23e5ac({},m,this[_0x30c39d(0x123)]);_0x570639&&this[_0x30c39d(0x124)][_0x30c39d(0x109)](_0x30c39d(0x10e),_0x570639,{'merge':!0x0}),this[_0x30c39d(0x124)]['setConfig'](b,_0x320ca3);}[_0x12108f(0x110)](){var _0xc1d41f=_0x12108f;[[a]][_0xc1d41f(0x108)](_0x5073e1=>this[_0xc1d41f(0x10f)][_0xc1d41f(0x111)](_0x5073e1));}[_0x12108f(0x122)](){var _0x2cb38a=_0x12108f;this[_0x2cb38a(0x10f)][_0x2cb38a(0x10b)](a);}};O(s,'pluginName',$),O(s,_0x12108f(0x103),_0x45b1d0['UNIVER_DOC']),s=B([_0x286cb1(_0x101559),g(0x1,_0x4cd510(_0x22b81a)),g(0x2,_0x4788d9)],s);export{_ as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x7bbb(_0x4139dd,_0x304766){var _0x1a4da7=_0x1a4d();return _0x7bbb=function(_0x7bbb5f,_0x57b538){_0x7bbb5f=_0x7bbb5f-0xd9;var _0x355092=_0x1a4da7[_0x7bbb5f];return _0x355092;},_0x7bbb(_0x4139dd,_0x304766);}(function(_0x548e29,_0x4a4a47){var _0x43c339=_0x7bbb,_0x58a2c7=_0x548e29();while(!![]){try{var _0x1b9765=-parseInt(_0x43c339(0xe1))/0x1+-parseInt(_0x43c339(0x101))/0x2*(parseInt(_0x43c339(0xf1))/0x3)+parseInt(_0x43c339(0xfc))/0x4+parseInt(_0x43c339(0xf2))/0x5+-parseInt(_0x43c339(0xde))/0x6*(-parseInt(_0x43c339(0xd9))/0x7)+parseInt(_0x43c339(0x113))/0x8+-parseInt(_0x43c339(0x107))/0x9;if(_0x1b9765===_0x4a4a47)break;else _0x58a2c7['push'](_0x58a2c7['shift']());}catch(_0x568d5a){_0x58a2c7['push'](_0x58a2c7['shift']());}}}(_0x1a4d,0x8840c),function(_0x21d52d,_0x29f445){var _0x114eae=_0x7bbb;typeof exports==_0x114eae(0x11c)&&typeof module<'u'?_0x29f445(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui')):typeof define==_0x114eae(0xe4)&&define[_0x114eae(0x102)]?define(['exports',_0x114eae(0x106),_0x114eae(0x116),_0x114eae(0xeb)],_0x29f445):(_0x21d52d=typeof globalThis<'u'?globalThis:_0x21d52d||self,_0x29f445(_0x21d52d[_0x114eae(0xf7)]={},_0x21d52d[_0x114eae(0xda)],_0x21d52d[_0x114eae(0xdf)],_0x21d52d[_0x114eae(0x110)]));}(this,function(_0x36f9e0,_0x2bbd5c,_0x14b1a9,_0x10711b){'use strict';var _0x5524ae=_0x7bbb;const _0x4e0b99=_0x5524ae(0xdb),_0x184f98={},_0x55a4bf={'id':_0x5524ae(0x10e),'type':_0x14b1a9[_0x5524ae(0x111)]['OPERATION'],'handler':async _0xffd7a6=>(_0xffd7a6[_0x5524ae(0xdd)](_0x2bbd5c[_0x5524ae(0x11e)])[_0x5524ae(0xe9)](),!0x0)},_0x45a61f={'id':_0x5524ae(0x104),'type':_0x14b1a9[_0x5524ae(0x111)][_0x5524ae(0xf5)],'handler':async _0x9127fe=>(_0x9127fe[_0x5524ae(0xdd)](_0x2bbd5c[_0x5524ae(0x11e)])[_0x5524ae(0xf6)](),!0x0)},_0x4587a1=_0x5524ae(0x115);function _0x331b4b(_0x52b446){var _0x241b9f=_0x5524ae;return{'id':_0x4587a1,'type':_0x10711b[_0x241b9f(0x11b)][_0x241b9f(0xf8)],'icon':_0x241b9f(0xe6),'tooltip':_0x241b9f(0xe7),'hidden$':_0x10711b[_0x241b9f(0x118)](_0x52b446,_0x14b1a9['UniverInstanceType'][_0x241b9f(0x10b)])};}function _0x19ff7e(){var _0x41070a=_0x5524ae;return{'id':_0x55a4bf['id'],'type':_0x10711b['MenuItemType']['BUTTON'],'title':_0x41070a(0xfe),'icon':_0x41070a(0xef)};}function _0x3f684a(){var _0x1487e7=_0x5524ae;return{'id':_0x45a61f['id'],'type':_0x10711b[_0x1487e7(0x11b)][_0x1487e7(0xe0)],'title':_0x1487e7(0x114),'icon':_0x1487e7(0xff)};}const _0x24bc55={[_0x10711b[_0x5524ae(0xf4)][_0x5524ae(0xe2)]]:{[_0x4587a1]:{'order':0.3,'menuItemFactory':_0x331b4b,[_0x55a4bf['id']]:{'order':0x0,'menuItemFactory':_0x19ff7e},[_0x45a61f['id']]:{'order':0x1,'menuItemFactory':_0x3f684a}}}};var _0x3a5c8f=Object['getOwnPropertyDescriptor'],_0x20cbee=(_0x3461d6,_0x14e0b9,_0x3556de,_0x6c8348)=>{var _0x363d7f=_0x5524ae;for(var _0x7a7405=_0x6c8348>0x1?void 0x0:_0x6c8348?_0x3a5c8f(_0x14e0b9,_0x3556de):_0x14e0b9,_0x24efaf=_0x3461d6[_0x363d7f(0xf3)]-0x1,_0xd3493f;_0x24efaf>=0x0;_0x24efaf--)(_0xd3493f=_0x3461d6[_0x24efaf])&&(_0x7a7405=_0xd3493f(_0x7a7405)||_0x7a7405);return _0x7a7405;},_0x48357b=(_0x575a70,_0x2c1dae)=>(_0x4282f6,_0x2a0313)=>_0x2c1dae(_0x4282f6,_0x2a0313,_0x575a70);let _0x1d3378=class extends _0x14b1a9['Disposable']{constructor(_0x204277,_0x15a17d){var _0x226f37=_0x5524ae;super(),this[_0x226f37(0xe3)]=_0x204277,this['_menuManagerService']=_0x15a17d,this[_0x226f37(0xec)](),this['_initMenus']();}[_0x5524ae(0xec)](){var _0x518ef4=_0x5524ae;[_0x55a4bf,_0x45a61f][_0x518ef4(0xfd)](_0x176678=>{var _0x33cf3a=_0x518ef4;this[_0x33cf3a(0x120)](this[_0x33cf3a(0xe3)][_0x33cf3a(0xfa)](_0x176678));});}['_initMenus'](){var _0x2db755=_0x5524ae;this[_0x2db755(0x11f)][_0x2db755(0x105)](_0x24bc55);}};_0x1d3378=_0x20cbee([_0x48357b(0x0,_0x14b1a9['ICommandService']),_0x48357b(0x1,_0x10711b[_0x5524ae(0x11d)])],_0x1d3378);var _0x3f93c5=Object[_0x5524ae(0x112)],_0x4ba45=Object[_0x5524ae(0xe8)],_0x4b5de0=(_0x4177ae,_0xe6220c,_0x556849)=>_0xe6220c in _0x4177ae?_0x3f93c5(_0x4177ae,_0xe6220c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x556849}):_0x4177ae[_0xe6220c]=_0x556849,_0x103c35=(_0x104e25,_0x10f9fc,_0x56e65f,_0xd9987e)=>{var _0x23e88f=_0x5524ae;for(var _0x36b32d=_0xd9987e>0x1?void 0x0:_0xd9987e?_0x4ba45(_0x10f9fc,_0x56e65f):_0x10f9fc,_0x449c88=_0x104e25[_0x23e88f(0xf3)]-0x1,_0x526c32;_0x449c88>=0x0;_0x449c88--)(_0x526c32=_0x104e25[_0x449c88])&&(_0x36b32d=_0x526c32(_0x36b32d)||_0x36b32d);return _0x36b32d;},_0x24bbe6=(_0x52ebd7,_0x20a949)=>(_0x11a3b4,_0x7d6b00)=>_0x20a949(_0x11a3b4,_0x7d6b00,_0x52ebd7),_0xf142eb=(_0x4bcb7d,_0x237191,_0x15880c)=>_0x4b5de0(_0x4bcb7d,typeof _0x237191!='symbol'?_0x237191+'':_0x237191,_0x15880c);const _0x1a8d53='DOC_EXCHANGE_CLIENT_PLUGIN';_0x36f9e0[_0x5524ae(0xe5)]=class extends _0x14b1a9[_0x5524ae(0xf9)]{constructor(_0x4399a4=_0x184f98,_0x3b6bc7,_0x5bb00f){var _0x495fe2=_0x5524ae;super(),this[_0x495fe2(0xed)]=_0x4399a4,this[_0x495fe2(0x10f)]=_0x3b6bc7,this[_0x495fe2(0xdc)]=_0x5bb00f;const {menu:_0x3bad2b,..._0x27ac62}=_0x14b1a9['merge']({},_0x184f98,this['_config']);_0x3bad2b&&this[_0x495fe2(0xdc)]['setConfig'](_0x495fe2(0x119),_0x3bad2b,{'merge':!0x0}),this[_0x495fe2(0xdc)][_0x495fe2(0x10d)](_0x4e0b99,_0x27ac62);}[_0x5524ae(0xfb)](){var _0x443635=_0x5524ae;[[_0x1d3378]]['forEach'](_0x5ebe1d=>this[_0x443635(0x10f)][_0x443635(0xf0)](_0x5ebe1d));}[_0x5524ae(0x103)](){var _0x4df536=_0x5524ae;this[_0x4df536(0x10f)]['get'](_0x1d3378);}},_0xf142eb(_0x36f9e0[_0x5524ae(0xe5)],_0x5524ae(0x10c),_0x1a8d53),_0xf142eb(_0x36f9e0[_0x5524ae(0xe5)],_0x5524ae(0x100),_0x14b1a9[_0x5524ae(0x108)][_0x5524ae(0x10b)]),_0x36f9e0[_0x5524ae(0xe5)]=_0x103c35([_0x14b1a9[_0x5524ae(0xea)](_0x2bbd5c[_0x5524ae(0x117)]),_0x24bbe6(0x1,_0x14b1a9['Inject'](_0x14b1a9[_0x5524ae(0x109)])),_0x24bbe6(0x2,_0x14b1a9[_0x5524ae(0xee)])],_0x36f9e0[_0x5524ae(0xe5)]),_0x36f9e0[_0x5524ae(0x121)]=_0x45a61f,_0x36f9e0[_0x5524ae(0x10a)]=_0x55a4bf,Object['defineProperty'](_0x36f9e0,Symbol['toStringTag'],{'value':_0x5524ae(0x11a)});}));function _0x1a4d(){var _0x5be002=['exchange.file','getOwnPropertyDescriptor','importDOCXToUnitId','DependentOn','@univerjs/ui','_initCommands','_config','IConfigService','FolderIcon','add','1935147ctcGaj','505140xlyYjw','length','RibbonStartGroup','OPERATION','exportDOCXByUnitId','UniverProDocsExchangeClient','SUBITEMS','Plugin','registerCommand','onStarting','3076060OoQOeY','forEach','exchange.upload','ExportIcon','type','2gygtew','amd','onReady','exchange-client.operation.export-docx','mergeMenu','@univerjs-pro/exchange-client','126468gIztkq','UniverInstanceType','Injector','ImportDOCXOperation','UNIVER_DOC','pluginName','setConfig','exchange-client.operation.import-docx','_injector','UniverUi','CommandType','defineProperty','4858864IfcOud','exchange.download','docs-exchange-client.operation.exchange','@univerjs/core','UniverExchangeClientPlugin','getMenuHiddenObservable','menu','Module','MenuItemType','object','IMenuManagerService','IExchangeOperateService','_menuManagerService','disposeWithMe','ExportDOCXOperation','135121CXIuwO','UniverProExchangeClient','docs-exchange-client.config','_configService','get','12rZWgbw','UniverCore','BUTTON','298814drrcGM','OTHERS','_commandService','function','UniverDocsExchangeClientPlugin','DirectExportIcon'];_0x1a4d=function(){return _0x5be002;};return _0x1a4d();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/docs-exchange-client",
|
|
3
|
-
"version": "0.9.2-nightly.
|
|
3
|
+
"version": "0.9.2-nightly.202507181608",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"lib"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@univerjs-pro/exchange-client": "0.9.2-nightly.
|
|
46
|
-
"@univerjs/core": "0.9.2-nightly.
|
|
47
|
-
"@univerjs/ui": "0.9.2-nightly.
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.9.2-nightly.202507181608",
|
|
46
|
+
"@univerjs/core": "0.9.2-nightly.202507181608",
|
|
47
|
+
"@univerjs/ui": "0.9.2-nightly.202507181608"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"typescript": "^5.8.3",
|