@univerjs-pro/docs-exchange-client 0.10.3 → 0.10.4-nightly.202508220605
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 +7 -7
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x5273b0=_0x56a1;(function(_0x5a6e9f,_0x2e66cf){var _0x410d40=_0x56a1,_0x3203e5=_0x5a6e9f();while(!![]){try{var _0x5becb5=-parseInt(_0x410d40(0xe4))/0x1+-parseInt(_0x410d40(0xdc))/0x2+parseInt(_0x410d40(0xc0))/0x3+-parseInt(_0x410d40(0xc8))/0x4*(-parseInt(_0x410d40(0xac))/0x5)+parseInt(_0x410d40(0xb6))/0x6*(parseInt(_0x410d40(0xb0))/0x7)+parseInt(_0x410d40(0xd4))/0x8+parseInt(_0x410d40(0xde))/0x9*(-parseInt(_0x410d40(0xc7))/0xa);if(_0x5becb5===_0x2e66cf)break;else _0x3203e5['push'](_0x3203e5['shift']());}catch(_0x4a8878){_0x3203e5['push'](_0x3203e5['shift']());}}}(_0x33db,0x658fc));function _0x56a1(_0xc4ebe4,_0x35d729){var _0x33dbca=_0x33db();return _0x56a1=function(_0x56a16e,_0x273861){_0x56a16e=_0x56a16e-0xa4;var _0x778063=_0x33dbca[_0x56a16e];return _0x778063;},_0x56a1(_0xc4ebe4,_0x35d729);}Object['defineProperty'](exports,Symbol[_0x5273b0(0xd5)],{'value':_0x5273b0(0xb2)});const d=require('@univerjs-pro/exchange-client'),i=require('@univerjs/core'),a=require('@univerjs/ui'),p={'id':_0x5273b0(0xa5),'type':i[_0x5273b0(0xcf)][_0x5273b0(0xe2)],'handler':async _0x4d2444=>(_0x4d2444[_0x5273b0(0xb7)](d['IExchangeOperateService'])[_0x5273b0(0xe3)](),!0x0)},g={'id':_0x5273b0(0xdd),'type':i[_0x5273b0(0xcf)]['OPERATION'],'handler':async _0x143092=>(_0x143092['get'](d['IExchangeOperateService'])[_0x5273b0(0xc1)](),!0x0)},I=_0x5273b0(0xbc),l={},h=_0x5273b0(0xca);function v(_0x3ec924){var _0x68453a=_0x5273b0;return{'id':h,'type':a[_0x68453a(0xe0)][_0x68453a(0xa4)],'icon':_0x68453a(0xad),'tooltip':'exchange.file','hidden$':a['getMenuHiddenObservable'](_0x3ec924,i[_0x68453a(0xc6)][_0x68453a(0xd0)])};}function O(){var _0x26c1cb=_0x5273b0;return{'id':p['id'],'type':a[_0x26c1cb(0xe0)][_0x26c1cb(0xc9)],'title':_0x26c1cb(0xcc),'icon':_0x26c1cb(0xaf)};}function E(){var _0x2a7356=_0x5273b0;return{'id':g['id'],'type':a[_0x2a7356(0xe0)]['BUTTON'],'title':'exchange.download','icon':_0x2a7356(0xd8)};}const x={[a[_0x5273b0(0xd3)]['OTHERS']]:{[h]:{'order':0.3,'menuItemFactory':v,[p['id']]:{'order':0x0,'menuItemFactory':O},[g['id']]:{'order':0x1,'menuItemFactory':E}}}};var D=Object[_0x5273b0(0xcd)],f=(_0x41d659,_0x4747c0,_0x5eae57,_0x4b50b2)=>{for(var _0x30b330=_0x4b50b2>0x1?void 0x0:_0x4b50b2?D(_0x4747c0,_0x5eae57):_0x4747c0,_0x427096=_0x41d659['length']-0x1,_0x3396bb;_0x427096>=0x0;_0x427096--)(_0x3396bb=_0x41d659[_0x427096])&&(_0x30b330=_0x3396bb(_0x30b330)||_0x30b330);return _0x30b330;},_=(_0x2696f7,_0x29a568)=>(_0x222523,_0x54c83a)=>_0x29a568(_0x222523,_0x54c83a,_0x2696f7);let u=class extends i[_0x5273b0(0xb9)]{constructor(_0x11dec3,_0x169875){var _0x467ffc=_0x5273b0;super(),this[_0x467ffc(0xbb)]=_0x11dec3,this[_0x467ffc(0xd1)]=_0x169875,this[_0x467ffc(0xbd)](),this[_0x467ffc(0xce)]();}[_0x5273b0(0xbd)](){var _0x2404bd=_0x5273b0;[p,g][_0x2404bd(0xab)](_0xcaf4f=>{var _0x547cb0=_0x2404bd;this[_0x547cb0(0xb1)](this[_0x547cb0(0xbb)][_0x547cb0(0xba)](_0xcaf4f));});}[_0x5273b0(0xce)](){var _0x348286=_0x5273b0;this['_menuManagerService'][_0x348286(0xa6)](x);}};u=f([_(0x0,i[_0x5273b0(0xbe)]),_(0x1,a[_0x5273b0(0xc2)])],u);var y=Object[_0x5273b0(0xc5)],S=Object[_0x5273b0(0xcd)],P=(_0x4891a9,_0x3c0bea,_0x2cc50c)=>_0x3c0bea in _0x4891a9?y(_0x4891a9,_0x3c0bea,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2cc50c}):_0x4891a9[_0x3c0bea]=_0x2cc50c,T=(_0xce7657,_0x13b379,_0x4211fe,_0x4fa2fe)=>{for(var _0x47a586=_0x4fa2fe>0x1?void 0x0:_0x4fa2fe?S(_0x13b379,_0x4211fe):_0x13b379,_0x5001c6=_0xce7657['length']-0x1,_0x1f5d5c;_0x5001c6>=0x0;_0x5001c6--)(_0x1f5d5c=_0xce7657[_0x5001c6])&&(_0x47a586=_0x1f5d5c(_0x47a586)||_0x47a586);return _0x47a586;},m=(_0x35e828,_0x1d1a14)=>(_0x5db01d,_0x491796)=>_0x1d1a14(_0x5db01d,_0x491796,_0x35e828),C=(_0x57390c,_0x3d9926,_0xbbdc14)=>P(_0x57390c,typeof _0x3d9926!=_0x5273b0(0xaa)?_0x3d9926+'':_0x3d9926,_0xbbdc14);function _0x33db(){var _0x20eef0=['ICommandService','Inject','2003526iNEJYz','exportDOCXByUnitId','IMenuManagerService','setConfig','merge','defineProperty','UniverInstanceType','1420zTzuFP','68512PLUHdh','BUTTON','docs-exchange-client.operation.exchange','ExportDOCXOperation','exchange.upload','getOwnPropertyDescriptor','_initMenus','CommandType','UNIVER_DOC','_menuManagerService','DependentOn','RibbonStartGroup','4554208XQnZch','toStringTag','pluginName','DOC_EXCHANGE_CLIENT_PLUGIN','ExportIcon','Plugin','menu','onReady','507238eDAzAc','exchange-client.operation.export-docx','93393vqJkou','add','MenuItemType','UniverExchangeClientPlugin','OPERATION','importDOCXToUnitId','189453rDGSFy','SUBITEMS','exchange-client.operation.import-docx','mergeMenu','_config','UniverDocsExchangeClientPlugin','_configService','symbol','forEach','85sqNRkM','DirectExportIcon','_injector','FolderIcon','1407539GKRpgw','disposeWithMe','Module','ImportDOCXOperation','type','Injector','24FXiTYw','get','onStarting','Disposable','registerCommand','_commandService','docs-exchange-client.config','_initCommands'];_0x33db=function(){return _0x20eef0;};return _0x33db();}const U=_0x5273b0(0xd7);exports[_0x5273b0(0xa8)]=class extends i[_0x5273b0(0xd9)]{constructor(_0x2a04ec=l,_0x26c864,_0x219026){var _0x253ea5=_0x5273b0;super(),this[_0x253ea5(0xa7)]=_0x2a04ec,this[_0x253ea5(0xae)]=_0x26c864,this[_0x253ea5(0xa9)]=_0x219026;const {menu:_0x1485d3,..._0xac7edd}=i[_0x253ea5(0xc4)]({},l,this['_config']);_0x1485d3&&this['_configService'][_0x253ea5(0xc3)](_0x253ea5(0xda),_0x1485d3,{'merge':!0x0}),this['_configService'][_0x253ea5(0xc3)](I,_0xac7edd);}[_0x5273b0(0xb8)](){var _0x52e710=_0x5273b0;[[u]][_0x52e710(0xab)](_0x263663=>this[_0x52e710(0xae)][_0x52e710(0xdf)](_0x263663));}[_0x5273b0(0xdb)](){var _0x230b47=_0x5273b0;this[_0x230b47(0xae)][_0x230b47(0xb7)](u);}},C(exports['UniverDocsExchangeClientPlugin'],_0x5273b0(0xd6),U),C(exports[_0x5273b0(0xa8)],_0x5273b0(0xb4),i[_0x5273b0(0xc6)][_0x5273b0(0xd0)]),exports[_0x5273b0(0xa8)]=T([i[_0x5273b0(0xd2)](d[_0x5273b0(0xe1)]),m(0x1,i[_0x5273b0(0xbf)](i[_0x5273b0(0xb5)])),m(0x2,i['IConfigService'])],exports['UniverDocsExchangeClientPlugin']),exports[_0x5273b0(0xcb)]=g,exports[_0x5273b0(0xb3)]=p;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x41779e=_0x5b1d;(function(_0x49fb18,_0x381219){var _0xe74fe9=_0x5b1d,_0x52aa41=_0x49fb18();while(!![]){try{var _0x1ab962=-parseInt(_0xe74fe9(0x209))/0x1*(-parseInt(_0xe74fe9(0x1f4))/0x2)+parseInt(_0xe74fe9(0x1ee))/0x3+parseInt(_0xe74fe9(0x1e8))/0x4+-parseInt(_0xe74fe9(0x1f8))/0x5+-parseInt(_0xe74fe9(0x1eb))/0x6+-parseInt(_0xe74fe9(0x1e7))/0x7+-parseInt(_0xe74fe9(0x205))/0x8;if(_0x1ab962===_0x381219)break;else _0x52aa41['push'](_0x52aa41['shift']());}catch(_0x4b131b){_0x52aa41['push'](_0x52aa41['shift']());}}}(_0x6e8c,0x9c2f2));import{IExchangeOperateService as _0x2b6fd7,UniverExchangeClientPlugin as _0x15ab0b}from'@univerjs-pro/exchange-client';import{CommandType as _0x3d835d,UniverInstanceType as _0x356ee0,Disposable as _0x3c4673,ICommandService as _0x3d086a,DependentOn as _0x46d230,Inject as _0x4496fa,Injector as _0x2ab70b,IConfigService as _0x42ac97,Plugin as _0x491a13,merge as _0x21af4a}from'@univerjs/core';import{MenuItemType as _0x43a19b,getMenuHiddenObservable as _0x437a01,RibbonStartGroup as _0x89df16,IMenuManagerService as _0x27194f}from'@univerjs/ui';const d={'id':_0x41779e(0x1ec),'type':_0x3d835d[_0x41779e(0x207)],'handler':async _0x53af7c=>(_0x53af7c[_0x41779e(0x1e9)](_0x2b6fd7)[_0x41779e(0x200)](),!0x0)},_={'id':'exchange-client.operation.export-docx','type':_0x3d835d[_0x41779e(0x207)],'handler':async _0x5499ab=>(_0x5499ab['get'](_0x2b6fd7)['exportDOCXByUnitId'](),!0x0)},b=_0x41779e(0x204),m={},C=_0x41779e(0x208);function X(_0x1ae0b2){var _0x1f57e0=_0x41779e;return{'id':C,'type':_0x43a19b[_0x1f57e0(0x1fd)],'icon':'DirectExportIcon','tooltip':_0x1f57e0(0x1fa),'hidden$':_0x437a01(_0x1ae0b2,_0x356ee0['UNIVER_DOC'])};}function F(){var _0x5282bd=_0x41779e;return{'id':d['id'],'type':_0x43a19b[_0x5282bd(0x1f6)],'title':'exchange.upload','icon':_0x5282bd(0x203)};}function G(){var _0x2c648d=_0x41779e;return{'id':_['id'],'type':_0x43a19b[_0x2c648d(0x1f6)],'title':'exchange.download','icon':_0x2c648d(0x1ed)};}const R={[_0x89df16[_0x41779e(0x1fe)]]:{[C]:{'order':0.3,'menuItemFactory':X,[d['id']]:{'order':0x0,'menuItemFactory':F},[_['id']]:{'order':0x1,'menuItemFactory':G}}}};var A=Object[_0x41779e(0x1f3)],j=(_0x4910fa,_0x343ff9,_0x3f9f1e,_0x429a44)=>{var _0x2a4d2f=_0x41779e;for(var _0x3a7c67=_0x429a44>0x1?void 0x0:_0x429a44?A(_0x343ff9,_0x3f9f1e):_0x343ff9,_0x12c024=_0x4910fa[_0x2a4d2f(0x20c)]-0x1,_0x1f1d9e;_0x12c024>=0x0;_0x12c024--)(_0x1f1d9e=_0x4910fa[_0x12c024])&&(_0x3a7c67=_0x1f1d9e(_0x3a7c67)||_0x3a7c67);return _0x3a7c67;},u=(_0x25b6a9,_0x378966)=>(_0x5dca2f,_0x439b22)=>_0x378966(_0x5dca2f,_0x439b22,_0x25b6a9);let a=class extends _0x3c4673{constructor(_0x2b5161,_0xaf23e1){var _0x39e199=_0x41779e;super(),this[_0x39e199(0x1f2)]=_0x2b5161,this[_0x39e199(0x1f7)]=_0xaf23e1,this[_0x39e199(0x1ff)](),this[_0x39e199(0x1f0)]();}['_initCommands'](){var _0x2c476d=_0x41779e;[d,_][_0x2c476d(0x20b)](_0x3a20cf=>{var _0x96d147=_0x2c476d;this['disposeWithMe'](this[_0x96d147(0x1f2)][_0x96d147(0x202)](_0x3a20cf));});}[_0x41779e(0x1f0)](){var _0x5ca74a=_0x41779e;this[_0x5ca74a(0x1f7)]['mergeMenu'](R);}};a=j([u(0x0,_0x3d086a),u(0x1,_0x27194f)],a);var w=Object['defineProperty'],H=Object['getOwnPropertyDescriptor'],L=(_0x2ead2b,_0x12259e,_0x5d6ad9)=>_0x12259e in _0x2ead2b?w(_0x2ead2b,_0x12259e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5d6ad9}):_0x2ead2b[_0x12259e]=_0x5d6ad9,B=(_0x5f3f22,_0x9a6b3f,_0x57e8fe,_0xec0820)=>{var _0x30c82d=_0x41779e;for(var _0x4934a5=_0xec0820>0x1?void 0x0:_0xec0820?H(_0x9a6b3f,_0x57e8fe):_0x9a6b3f,_0x456856=_0x5f3f22[_0x30c82d(0x20c)]-0x1,_0x448a80;_0x456856>=0x0;_0x456856--)(_0x448a80=_0x5f3f22[_0x456856])&&(_0x4934a5=_0x448a80(_0x4934a5)||_0x4934a5);return _0x4934a5;},g=(_0x1fede6,_0x5e957d)=>(_0x3a9344,_0x2e56fd)=>_0x5e957d(_0x3a9344,_0x2e56fd,_0x1fede6),O=(_0x6f16dd,_0x137207,_0x2280d4)=>L(_0x6f16dd,typeof _0x137207!=_0x41779e(0x1fc)?_0x137207+'':_0x137207,_0x2280d4);const $=_0x41779e(0x206);let s=class extends _0x491a13{constructor(_0x4d2384=m,_0x129db1,_0x253182){var _0x439bd0=_0x41779e;super(),this[_0x439bd0(0x1ef)]=_0x4d2384,this[_0x439bd0(0x1f9)]=_0x129db1,this['_configService']=_0x253182;const {menu:_0x126535,..._0x5ea038}=_0x21af4a({},m,this[_0x439bd0(0x1ef)]);_0x126535&&this[_0x439bd0(0x1fb)][_0x439bd0(0x1f1)](_0x439bd0(0x1f5),_0x126535,{'merge':!0x0}),this[_0x439bd0(0x1fb)]['setConfig'](b,_0x5ea038);}['onStarting'](){var _0x373dd7=_0x41779e;[[a]][_0x373dd7(0x20b)](_0x10461e=>this[_0x373dd7(0x1f9)][_0x373dd7(0x20a)](_0x10461e));}[_0x41779e(0x201)](){var _0xea9eaf=_0x41779e;this[_0xea9eaf(0x1f9)][_0xea9eaf(0x1e9)](a);}};O(s,'pluginName',$),O(s,'type',_0x356ee0[_0x41779e(0x1ea)]),s=B([_0x46d230(_0x15ab0b),g(0x1,_0x4496fa(_0x2ab70b)),g(0x2,_0x42ac97)],s);function _0x5b1d(_0x4196d9,_0x2bb617){var _0x6e8c57=_0x6e8c();return _0x5b1d=function(_0x5b1d61,_0xc7d875){_0x5b1d61=_0x5b1d61-0x1e7;var _0x1ac396=_0x6e8c57[_0x5b1d61];return _0x1ac396;},_0x5b1d(_0x4196d9,_0x2bb617);}function _0x6e8c(){var _0x59170a=['get','UNIVER_DOC','2140722EOhcAj','exchange-client.operation.import-docx','ExportIcon','2041083zBIDxK','_config','_initMenus','setConfig','_commandService','getOwnPropertyDescriptor','12EYdmLO','menu','BUTTON','_menuManagerService','1346305mGGToH','_injector','exchange.file','_configService','symbol','SUBITEMS','OTHERS','_initCommands','importDOCXToUnitId','onReady','registerCommand','FolderIcon','docs-exchange-client.config','4264376QihDTZ','DOC_EXCHANGE_CLIENT_PLUGIN','OPERATION','docs-exchange-client.operation.exchange','93829LFZzIT','add','forEach','length','1052982lDnqwR','2823664aTyqvZ'];_0x6e8c=function(){return _0x59170a;};return _0x6e8c();}export{_ as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x41779e=_0x5b1d;(function(_0x49fb18,_0x381219){var _0xe74fe9=_0x5b1d,_0x52aa41=_0x49fb18();while(!![]){try{var _0x1ab962=-parseInt(_0xe74fe9(0x209))/0x1*(-parseInt(_0xe74fe9(0x1f4))/0x2)+parseInt(_0xe74fe9(0x1ee))/0x3+parseInt(_0xe74fe9(0x1e8))/0x4+-parseInt(_0xe74fe9(0x1f8))/0x5+-parseInt(_0xe74fe9(0x1eb))/0x6+-parseInt(_0xe74fe9(0x1e7))/0x7+-parseInt(_0xe74fe9(0x205))/0x8;if(_0x1ab962===_0x381219)break;else _0x52aa41['push'](_0x52aa41['shift']());}catch(_0x4b131b){_0x52aa41['push'](_0x52aa41['shift']());}}}(_0x6e8c,0x9c2f2));import{IExchangeOperateService as _0x2b6fd7,UniverExchangeClientPlugin as _0x15ab0b}from'@univerjs-pro/exchange-client';import{CommandType as _0x3d835d,UniverInstanceType as _0x356ee0,Disposable as _0x3c4673,ICommandService as _0x3d086a,DependentOn as _0x46d230,Inject as _0x4496fa,Injector as _0x2ab70b,IConfigService as _0x42ac97,Plugin as _0x491a13,merge as _0x21af4a}from'@univerjs/core';import{MenuItemType as _0x43a19b,getMenuHiddenObservable as _0x437a01,RibbonStartGroup as _0x89df16,IMenuManagerService as _0x27194f}from'@univerjs/ui';const d={'id':_0x41779e(0x1ec),'type':_0x3d835d[_0x41779e(0x207)],'handler':async _0x53af7c=>(_0x53af7c[_0x41779e(0x1e9)](_0x2b6fd7)[_0x41779e(0x200)](),!0x0)},_={'id':'exchange-client.operation.export-docx','type':_0x3d835d[_0x41779e(0x207)],'handler':async _0x5499ab=>(_0x5499ab['get'](_0x2b6fd7)['exportDOCXByUnitId'](),!0x0)},b=_0x41779e(0x204),m={},C=_0x41779e(0x208);function X(_0x1ae0b2){var _0x1f57e0=_0x41779e;return{'id':C,'type':_0x43a19b[_0x1f57e0(0x1fd)],'icon':'DirectExportIcon','tooltip':_0x1f57e0(0x1fa),'hidden$':_0x437a01(_0x1ae0b2,_0x356ee0['UNIVER_DOC'])};}function F(){var _0x5282bd=_0x41779e;return{'id':d['id'],'type':_0x43a19b[_0x5282bd(0x1f6)],'title':'exchange.upload','icon':_0x5282bd(0x203)};}function G(){var _0x2c648d=_0x41779e;return{'id':_['id'],'type':_0x43a19b[_0x2c648d(0x1f6)],'title':'exchange.download','icon':_0x2c648d(0x1ed)};}const R={[_0x89df16[_0x41779e(0x1fe)]]:{[C]:{'order':0.3,'menuItemFactory':X,[d['id']]:{'order':0x0,'menuItemFactory':F},[_['id']]:{'order':0x1,'menuItemFactory':G}}}};var A=Object[_0x41779e(0x1f3)],j=(_0x4910fa,_0x343ff9,_0x3f9f1e,_0x429a44)=>{var _0x2a4d2f=_0x41779e;for(var _0x3a7c67=_0x429a44>0x1?void 0x0:_0x429a44?A(_0x343ff9,_0x3f9f1e):_0x343ff9,_0x12c024=_0x4910fa[_0x2a4d2f(0x20c)]-0x1,_0x1f1d9e;_0x12c024>=0x0;_0x12c024--)(_0x1f1d9e=_0x4910fa[_0x12c024])&&(_0x3a7c67=_0x1f1d9e(_0x3a7c67)||_0x3a7c67);return _0x3a7c67;},u=(_0x25b6a9,_0x378966)=>(_0x5dca2f,_0x439b22)=>_0x378966(_0x5dca2f,_0x439b22,_0x25b6a9);let a=class extends _0x3c4673{constructor(_0x2b5161,_0xaf23e1){var _0x39e199=_0x41779e;super(),this[_0x39e199(0x1f2)]=_0x2b5161,this[_0x39e199(0x1f7)]=_0xaf23e1,this[_0x39e199(0x1ff)](),this[_0x39e199(0x1f0)]();}['_initCommands'](){var _0x2c476d=_0x41779e;[d,_][_0x2c476d(0x20b)](_0x3a20cf=>{var _0x96d147=_0x2c476d;this['disposeWithMe'](this[_0x96d147(0x1f2)][_0x96d147(0x202)](_0x3a20cf));});}[_0x41779e(0x1f0)](){var _0x5ca74a=_0x41779e;this[_0x5ca74a(0x1f7)]['mergeMenu'](R);}};a=j([u(0x0,_0x3d086a),u(0x1,_0x27194f)],a);var w=Object['defineProperty'],H=Object['getOwnPropertyDescriptor'],L=(_0x2ead2b,_0x12259e,_0x5d6ad9)=>_0x12259e in _0x2ead2b?w(_0x2ead2b,_0x12259e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5d6ad9}):_0x2ead2b[_0x12259e]=_0x5d6ad9,B=(_0x5f3f22,_0x9a6b3f,_0x57e8fe,_0xec0820)=>{var _0x30c82d=_0x41779e;for(var _0x4934a5=_0xec0820>0x1?void 0x0:_0xec0820?H(_0x9a6b3f,_0x57e8fe):_0x9a6b3f,_0x456856=_0x5f3f22[_0x30c82d(0x20c)]-0x1,_0x448a80;_0x456856>=0x0;_0x456856--)(_0x448a80=_0x5f3f22[_0x456856])&&(_0x4934a5=_0x448a80(_0x4934a5)||_0x4934a5);return _0x4934a5;},g=(_0x1fede6,_0x5e957d)=>(_0x3a9344,_0x2e56fd)=>_0x5e957d(_0x3a9344,_0x2e56fd,_0x1fede6),O=(_0x6f16dd,_0x137207,_0x2280d4)=>L(_0x6f16dd,typeof _0x137207!=_0x41779e(0x1fc)?_0x137207+'':_0x137207,_0x2280d4);const $=_0x41779e(0x206);let s=class extends _0x491a13{constructor(_0x4d2384=m,_0x129db1,_0x253182){var _0x439bd0=_0x41779e;super(),this[_0x439bd0(0x1ef)]=_0x4d2384,this[_0x439bd0(0x1f9)]=_0x129db1,this['_configService']=_0x253182;const {menu:_0x126535,..._0x5ea038}=_0x21af4a({},m,this[_0x439bd0(0x1ef)]);_0x126535&&this[_0x439bd0(0x1fb)][_0x439bd0(0x1f1)](_0x439bd0(0x1f5),_0x126535,{'merge':!0x0}),this[_0x439bd0(0x1fb)]['setConfig'](b,_0x5ea038);}['onStarting'](){var _0x373dd7=_0x41779e;[[a]][_0x373dd7(0x20b)](_0x10461e=>this[_0x373dd7(0x1f9)][_0x373dd7(0x20a)](_0x10461e));}[_0x41779e(0x201)](){var _0xea9eaf=_0x41779e;this[_0xea9eaf(0x1f9)][_0xea9eaf(0x1e9)](a);}};O(s,'pluginName',$),O(s,'type',_0x356ee0[_0x41779e(0x1ea)]),s=B([_0x46d230(_0x15ab0b),g(0x1,_0x4496fa(_0x2ab70b)),g(0x2,_0x42ac97)],s);function _0x5b1d(_0x4196d9,_0x2bb617){var _0x6e8c57=_0x6e8c();return _0x5b1d=function(_0x5b1d61,_0xc7d875){_0x5b1d61=_0x5b1d61-0x1e7;var _0x1ac396=_0x6e8c57[_0x5b1d61];return _0x1ac396;},_0x5b1d(_0x4196d9,_0x2bb617);}function _0x6e8c(){var _0x59170a=['get','UNIVER_DOC','2140722EOhcAj','exchange-client.operation.import-docx','ExportIcon','2041083zBIDxK','_config','_initMenus','setConfig','_commandService','getOwnPropertyDescriptor','12EYdmLO','menu','BUTTON','_menuManagerService','1346305mGGToH','_injector','exchange.file','_configService','symbol','SUBITEMS','OTHERS','_initCommands','importDOCXToUnitId','onReady','registerCommand','FolderIcon','docs-exchange-client.config','4264376QihDTZ','DOC_EXCHANGE_CLIENT_PLUGIN','OPERATION','docs-exchange-client.operation.exchange','93829LFZzIT','add','forEach','length','1052982lDnqwR','2823664aTyqvZ'];_0x6e8c=function(){return _0x59170a;};return _0x6e8c();}export{_ as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x4160(){var _0x539f3f=['RibbonStartGroup','FolderIcon','docs-exchange-client.operation.exchange','OPERATION','UniverExchangeClientPlugin','length','@univerjs/ui','1uFePeK','mergeMenu','335218jbHHpQ','add','symbol','menu','UniverProDocsExchangeClient','MenuItemType','disposeWithMe','_menuManagerService','getOwnPropertyDescriptor','12kXQyOV','554781kkpjpU','139414oisAlk','ImportDOCXOperation','onReady','toStringTag','_initMenus','registerCommand','UniverInstanceType','pluginName','forEach','@univerjs-pro/exchange-client','UniverProExchangeClient','type','Inject','exchange.download','254060IuqQwE','Module','1260816FJLzyb','Injector','ExportDOCXOperation','@univerjs/core','UniverCore','UniverDocsExchangeClientPlugin','ICommandService','function','exchange.file','amd','defineProperty','UniverUi','get','796860UkmrlO','_config','setConfig','exchange-client.operation.import-docx','144PrTedj','_configService','OTHERS','exchange-client.operation.export-docx','UNIVER_DOC','36kPRvRS','_commandService','SUBITEMS','_initCommands','Plugin','onStarting','100268YNaqbn','BUTTON','IConfigService','IExchangeOperateService','exchange.upload','Disposable','9kCmtIX','_injector','DependentOn','CommandType','ExportIcon'];_0x4160=function(){return _0x539f3f;};return _0x4160();}function _0x1c3d(_0x3c9bf9,_0x4f8b33){var _0x416025=_0x4160();return _0x1c3d=function(_0x1c3d82,_0x4b6934){_0x1c3d82=_0x1c3d82-0x160;var _0x4387bb=_0x416025[_0x1c3d82];return _0x4387bb;},_0x1c3d(_0x3c9bf9,_0x4f8b33);}(function(_0x58e997,_0x48cb05){var _0x1b81e5=_0x1c3d,_0xf451cf=_0x58e997();while(!![]){try{var _0x2aea57=parseInt(_0x1b81e5(0x198))/0x1*(parseInt(_0x1b81e5(0x19a))/0x2)+-parseInt(_0x1b81e5(0x1a4))/0x3+-parseInt(_0x1b81e5(0x1a3))/0x4*(-parseInt(_0x1b81e5(0x168))/0x5)+-parseInt(_0x1b81e5(0x180))/0x6*(parseInt(_0x1b81e5(0x186))/0x7)+parseInt(_0x1b81e5(0x16a))/0x8*(parseInt(_0x1b81e5(0x18c))/0x9)+parseInt(_0x1b81e5(0x177))/0xa+-parseInt(_0x1b81e5(0x1a5))/0xb*(parseInt(_0x1b81e5(0x17b))/0xc);if(_0x2aea57===_0x48cb05)break;else _0xf451cf['push'](_0xf451cf['shift']());}catch(_0x38eb3a){_0xf451cf['push'](_0xf451cf['shift']());}}}(_0x4160,0x20ce6),function(_0x347beb,_0x5683ae){var _0x109bfe=_0x1c3d;typeof exports=='object'&&typeof module<'u'?_0x5683ae(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui')):typeof define==_0x109bfe(0x171)&&define[_0x109bfe(0x173)]?define(['exports',_0x109bfe(0x163),_0x109bfe(0x16d),_0x109bfe(0x197)],_0x5683ae):(_0x347beb=typeof globalThis<'u'?globalThis:_0x347beb||self,_0x5683ae(_0x347beb[_0x109bfe(0x19e)]={},_0x347beb[_0x109bfe(0x164)],_0x347beb[_0x109bfe(0x16e)],_0x347beb[_0x109bfe(0x175)]));}(this,function(_0x52c19a,_0x230cf0,_0x1e65f5,_0xcd5e1b){'use strict';var _0x112e07=_0x1c3d;const _0x692e79={'id':_0x112e07(0x17a),'type':_0x1e65f5[_0x112e07(0x18f)][_0x112e07(0x194)],'handler':async _0x5e52a2=>(_0x5e52a2[_0x112e07(0x176)](_0x230cf0[_0x112e07(0x189)])['importDOCXToUnitId'](),!0x0)},_0x41161d={'id':_0x112e07(0x17e),'type':_0x1e65f5['CommandType'][_0x112e07(0x194)],'handler':async _0x3c5f24=>(_0x3c5f24[_0x112e07(0x176)](_0x230cf0[_0x112e07(0x189)])['exportDOCXByUnitId'](),!0x0)},_0x5aeff2='docs-exchange-client.config',_0x2226c9={},_0xce3609=_0x112e07(0x193);function _0x14f4d7(_0x57ea02){var _0x19093f=_0x112e07;return{'id':_0xce3609,'type':_0xcd5e1b[_0x19093f(0x19f)][_0x19093f(0x182)],'icon':'DirectExportIcon','tooltip':_0x19093f(0x172),'hidden$':_0xcd5e1b['getMenuHiddenObservable'](_0x57ea02,_0x1e65f5[_0x19093f(0x160)][_0x19093f(0x17f)])};}function _0x2a4894(){var _0x3a5675=_0x112e07;return{'id':_0x692e79['id'],'type':_0xcd5e1b[_0x3a5675(0x19f)][_0x3a5675(0x187)],'title':_0x3a5675(0x18a),'icon':_0x3a5675(0x192)};}function _0x1d8cbf(){var _0x447cc0=_0x112e07;return{'id':_0x41161d['id'],'type':_0xcd5e1b[_0x447cc0(0x19f)]['BUTTON'],'title':_0x447cc0(0x167),'icon':_0x447cc0(0x190)};}const _0x6290da={[_0xcd5e1b[_0x112e07(0x191)][_0x112e07(0x17d)]]:{[_0xce3609]:{'order':0.3,'menuItemFactory':_0x14f4d7,[_0x692e79['id']]:{'order':0x0,'menuItemFactory':_0x2a4894},[_0x41161d['id']]:{'order':0x1,'menuItemFactory':_0x1d8cbf}}}};var _0x141a37=Object[_0x112e07(0x1a2)],_0x1a9e7f=(_0x4da86f,_0xf3fd3f,_0x37c527,_0x5eaba9)=>{var _0x41b678=_0x112e07;for(var _0x203bf4=_0x5eaba9>0x1?void 0x0:_0x5eaba9?_0x141a37(_0xf3fd3f,_0x37c527):_0xf3fd3f,_0x45ae6a=_0x4da86f[_0x41b678(0x196)]-0x1,_0x4daa5e;_0x45ae6a>=0x0;_0x45ae6a--)(_0x4daa5e=_0x4da86f[_0x45ae6a])&&(_0x203bf4=_0x4daa5e(_0x203bf4)||_0x203bf4);return _0x203bf4;},_0x1d572e=(_0x160888,_0x3da6ca)=>(_0x45c787,_0x31a0c2)=>_0x3da6ca(_0x45c787,_0x31a0c2,_0x160888);let _0x533e01=class extends _0x1e65f5[_0x112e07(0x18b)]{constructor(_0x5aada2,_0x42fc18){var _0x179c7e=_0x112e07;super(),this[_0x179c7e(0x181)]=_0x5aada2,this[_0x179c7e(0x1a1)]=_0x42fc18,this[_0x179c7e(0x183)](),this[_0x179c7e(0x1a9)]();}[_0x112e07(0x183)](){[_0x692e79,_0x41161d]['forEach'](_0x4b633f=>{var _0x18fea7=_0x1c3d;this[_0x18fea7(0x1a0)](this[_0x18fea7(0x181)][_0x18fea7(0x1aa)](_0x4b633f));});}[_0x112e07(0x1a9)](){var _0x599fd3=_0x112e07;this[_0x599fd3(0x1a1)][_0x599fd3(0x199)](_0x6290da);}};_0x533e01=_0x1a9e7f([_0x1d572e(0x0,_0x1e65f5[_0x112e07(0x170)]),_0x1d572e(0x1,_0xcd5e1b['IMenuManagerService'])],_0x533e01);var _0x230969=Object[_0x112e07(0x174)],_0x54dfda=Object[_0x112e07(0x1a2)],_0x16cbac=(_0x3c442b,_0x19dd68,_0x3d1579)=>_0x19dd68 in _0x3c442b?_0x230969(_0x3c442b,_0x19dd68,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3d1579}):_0x3c442b[_0x19dd68]=_0x3d1579,_0x219723=(_0x4df533,_0x4b52e6,_0x47de72,_0x20c2cd)=>{var _0x517351=_0x112e07;for(var _0xb444c5=_0x20c2cd>0x1?void 0x0:_0x20c2cd?_0x54dfda(_0x4b52e6,_0x47de72):_0x4b52e6,_0x59ce3a=_0x4df533[_0x517351(0x196)]-0x1,_0x2589bd;_0x59ce3a>=0x0;_0x59ce3a--)(_0x2589bd=_0x4df533[_0x59ce3a])&&(_0xb444c5=_0x2589bd(_0xb444c5)||_0xb444c5);return _0xb444c5;},_0x5a0e9d=(_0x91ef6f,_0x6e2c8)=>(_0x35118b,_0x4a0606)=>_0x6e2c8(_0x35118b,_0x4a0606,_0x91ef6f),_0x1cb2d4=(_0x535c78,_0x2e0bf3,_0xc11c7d)=>_0x16cbac(_0x535c78,typeof _0x2e0bf3!=_0x112e07(0x19c)?_0x2e0bf3+'':_0x2e0bf3,_0xc11c7d);const _0x6fa4f2='DOC_EXCHANGE_CLIENT_PLUGIN';_0x52c19a[_0x112e07(0x16f)]=class extends _0x1e65f5[_0x112e07(0x184)]{constructor(_0x5b0777=_0x2226c9,_0x25e407,_0x8e4dd9){var _0x412f25=_0x112e07;super(),this[_0x412f25(0x178)]=_0x5b0777,this[_0x412f25(0x18d)]=_0x25e407,this[_0x412f25(0x17c)]=_0x8e4dd9;const {menu:_0x2f4960,..._0x522347}=_0x1e65f5['merge']({},_0x2226c9,this['_config']);_0x2f4960&&this[_0x412f25(0x17c)][_0x412f25(0x179)](_0x412f25(0x19d),_0x2f4960,{'merge':!0x0}),this[_0x412f25(0x17c)][_0x412f25(0x179)](_0x5aeff2,_0x522347);}[_0x112e07(0x185)](){var _0x172aad=_0x112e07;[[_0x533e01]][_0x172aad(0x162)](_0x357832=>this['_injector'][_0x172aad(0x19b)](_0x357832));}[_0x112e07(0x1a7)](){var _0x5c8ddb=_0x112e07;this['_injector'][_0x5c8ddb(0x176)](_0x533e01);}},_0x1cb2d4(_0x52c19a['UniverDocsExchangeClientPlugin'],_0x112e07(0x161),_0x6fa4f2),_0x1cb2d4(_0x52c19a['UniverDocsExchangeClientPlugin'],_0x112e07(0x165),_0x1e65f5['UniverInstanceType']['UNIVER_DOC']),_0x52c19a['UniverDocsExchangeClientPlugin']=_0x219723([_0x1e65f5[_0x112e07(0x18e)](_0x230cf0[_0x112e07(0x195)]),_0x5a0e9d(0x1,_0x1e65f5[_0x112e07(0x166)](_0x1e65f5[_0x112e07(0x16b)])),_0x5a0e9d(0x2,_0x1e65f5[_0x112e07(0x188)])],_0x52c19a[_0x112e07(0x16f)]),_0x52c19a[_0x112e07(0x16c)]=_0x41161d,_0x52c19a[_0x112e07(0x1a6)]=_0x692e79,Object[_0x112e07(0x174)](_0x52c19a,Symbol[_0x112e07(0x1a8)],{'value':_0x112e07(0x169)});}));
|
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.4-nightly.202508220605",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -42,21 +42,21 @@
|
|
|
42
42
|
"lib"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@univerjs-pro/exchange-client": "0.10.
|
|
46
|
-
"@univerjs/core": "0.10.
|
|
47
|
-
"@univerjs/ui": "0.10.
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.10.4-nightly.202508220605",
|
|
46
|
+
"@univerjs/core": "0.10.4-nightly.202508220605",
|
|
47
|
+
"@univerjs/ui": "0.10.4-nightly.202508220605"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"typescript": "^5.8.3",
|
|
51
|
-
"vite": "^7.
|
|
51
|
+
"vite": "^7.1.3",
|
|
52
52
|
"vitest": "^3.2.4",
|
|
53
|
-
"@univerjs-infra/shared": "0.10.
|
|
53
|
+
"@univerjs-infra/shared": "0.10.4"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"test": "vitest run",
|
|
57
57
|
"test:watch": "vitest",
|
|
58
58
|
"coverage": "vitest run --coverage",
|
|
59
|
-
"
|
|
59
|
+
"typecheck": "tsc --noEmit",
|
|
60
60
|
"build": "univer-cli build"
|
|
61
61
|
},
|
|
62
62
|
"module": "./lib/es/index.js"
|