@univerjs-pro/docs-exchange-client 0.5.2 → 0.5.3-experimental.20250106-e3b7a39
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/umd/index.js +1 -1
- package/package.json +6 -19
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var _0x256358=_0x11c5;(function(_0x308872,_0x118558){var _0x2cb29c=_0x11c5,_0x1ff761=_0x308872();while(!![]){try{var _0x1283ae=-parseInt(_0x2cb29c(0x186))/0x1*(-parseInt(_0x2cb29c(0x1b9))/0x2)+parseInt(_0x2cb29c(0x1aa))/0x3+-parseInt(_0x2cb29c(0x1a5))/0x4*(-parseInt(_0x2cb29c(0x19f))/0x5)+parseInt(_0x2cb29c(0x193))/0x6+-parseInt(_0x2cb29c(0x17e))/0x7+-parseInt(_0x2cb29c(0x18c))/0x8*(parseInt(_0x2cb29c(0x18f))/0x9)+-parseInt(_0x2cb29c(0x19c))/0xa*(parseInt(_0x2cb29c(0x1b2))/0xb);if(_0x1283ae===_0x118558)break;else _0x1ff761['push'](_0x1ff761['shift']());}catch(_0x5d48ea){_0x1ff761['push'](_0x1ff761['shift']());}}}(_0x3dcf,0xae72f));Object['defineProperty'](exports,Symbol['toStringTag'],{'value':'Module'});const l=require(_0x256358(0x1a6)),o=require(_0x256358(0x182)),s=require(_0x256358(0x19a)),I=_0x256358(0x1b7),d={},u={'id':_0x256358(0x192),'type':o[_0x256358(0x199)]['OPERATION'],'handler':async _0xc5a709=>(_0xc5a709[_0x256358(0x18e)](l[_0x256358(0x19d)])[_0x256358(0x1ba)](),!0x0)},g={'id':_0x256358(0x184),'type':o[_0x256358(0x199)][_0x256358(0x183)],'handler':async _0x2d029e=>(_0x2d029e[_0x256358(0x18e)](l[_0x256358(0x19d)])['exportDOCXByUnitId'](),!0x0)},h=_0x256358(0x1a1);function O(_0x128db0){var _0x3a5332=_0x256358;return{'id':h,'type':s[_0x3a5332(0x187)]['SUBITEMS'],'icon':_0x3a5332(0x19e),'tooltip':_0x3a5332(0x1ad),'hidden$':s[_0x3a5332(0x189)](_0x128db0,o[_0x3a5332(0x1b0)][_0x3a5332(0x1b3)])};}function E(){var _0x28913b=_0x256358;return{'id':u['id'],'type':s[_0x28913b(0x187)][_0x28913b(0x18a)],'title':_0x28913b(0x1b4),'icon':_0x28913b(0x190)};}function f(){var _0x11d046=_0x256358;return{'id':g['id'],'type':s[_0x11d046(0x187)][_0x11d046(0x18a)],'title':'exchange.download','icon':'ExportSingle'};}const x={[s[_0x256358(0x188)][_0x256358(0x1af)]]:{[h]:{'order':0x4,'menuItemFactory':O,[u['id']]:{'order':0x0,'menuItemFactory':E},[g['id']]:{'order':0x1,'menuItemFactory':f}}}};var D=Object[_0x256358(0x1a3)],S=Object['getOwnPropertyDescriptor'],P=(_0x268376,_0x3cf1f9,_0xe4e6f9,_0x3e5cab)=>{var _0x234272=_0x256358;for(var _0x3e3326=_0x3e5cab>0x1?void 0x0:_0x3e5cab?S(_0x3cf1f9,_0xe4e6f9):_0x3cf1f9,_0x5d51ea=_0x268376[_0x234272(0x1ae)]-0x1,_0xf54491;_0x5d51ea>=0x0;_0x5d51ea--)(_0xf54491=_0x268376[_0x5d51ea])&&(_0x3e3326=(_0x3e5cab?_0xf54491(_0x3cf1f9,_0xe4e6f9,_0x3e3326):_0xf54491(_0x3e3326))||_0x3e3326);return _0x3e5cab&&_0x3e3326&&D(_0x3cf1f9,_0xe4e6f9,_0x3e3326),_0x3e3326;},_=(_0x2d11a4,_0x42b9a9)=>(_0x42ec9e,_0x57e473)=>_0x42b9a9(_0x42ec9e,_0x57e473,_0x2d11a4);let p=class extends o[_0x256358(0x195)]{constructor(_0x2bfe5b,_0x40861e){var _0xfc1d75=_0x256358;super(),this['_commandService']=_0x2bfe5b,this[_0xfc1d75(0x185)]=_0x40861e,this[_0xfc1d75(0x1b6)](),this[_0xfc1d75(0x181)]();}[_0x256358(0x1b6)](){var _0x2c0f6e=_0x256358;[u,g][_0x2c0f6e(0x198)](_0x2e1887=>{var _0x1f8c7f=_0x2c0f6e;this[_0x1f8c7f(0x18b)](this['_commandService']['registerCommand'](_0x2e1887));});}['_initMenus'](){var _0x397c76=_0x256358;this[_0x397c76(0x185)]['mergeMenu'](x);}};function _0x3dcf(){var _0x67d731=['CommandType','@univerjs/ui','ICommandService','22595260EvpchO','IExchangeOperateService','DirectExportSingle','1465CbpZFs','menu','docs-exchange-client.operation.exchange','_config','defineProperty','DependentOn','17924WSifiG','@univerjs-pro/exchange-client','ExportDOCXOperation','setConfig','_configService','1271193yAFQJI','onReady','IConfigService','exchange.file','length','FILE','UniverInstanceType','onStarting','11nfGCLA','UNIVER_DOC','exchange.upload','symbol','_initCommands','docs-exchange-client.config','Injector','82EtkXeh','importDOCXToUnitId','1980622KDlTtk','UniverDocsExchangeClientPlugin','_injector','_initMenus','@univerjs/core','OPERATION','exchange-client.operation.export-docx','_menuManagerService','20143fnXoRR','MenuItemType','RibbonStartGroup','getMenuHiddenObservable','BUTTON','disposeWithMe','72BVThXl','pluginName','get','76707YXADYd','FolderSingle','Inject','exchange-client.operation.import-docx','4627170ohGhgM','IMenuManagerService','Disposable','type','merge','forEach'];_0x3dcf=function(){return _0x67d731;};return _0x3dcf();}p=P([_(0x0,o[_0x256358(0x19b)]),_(0x1,s[_0x256358(0x194)])],p);var C=Object[_0x256358(0x1a3)],y=Object['getOwnPropertyDescriptor'],T=(_0x2171d9,_0x12cb93,_0x20f028)=>_0x12cb93 in _0x2171d9?C(_0x2171d9,_0x12cb93,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x20f028}):_0x2171d9[_0x12cb93]=_0x20f028,U=(_0x31f951,_0x5223ff,_0x11c90b,_0x253297)=>{var _0x16b3a5=_0x256358;for(var _0xdfb979=_0x253297>0x1?void 0x0:_0x253297?y(_0x5223ff,_0x11c90b):_0x5223ff,_0x4d9a14=_0x31f951[_0x16b3a5(0x1ae)]-0x1,_0x358910;_0x4d9a14>=0x0;_0x4d9a14--)(_0x358910=_0x31f951[_0x4d9a14])&&(_0xdfb979=(_0x253297?_0x358910(_0x5223ff,_0x11c90b,_0xdfb979):_0x358910(_0xdfb979))||_0xdfb979);return _0x253297&&_0xdfb979&&C(_0x5223ff,_0x11c90b,_0xdfb979),_0xdfb979;},m=(_0xbe0971,_0x3e602e)=>(_0x3bb6e7,_0x27f5e8)=>_0x3e602e(_0x3bb6e7,_0x27f5e8,_0xbe0971),v=(_0x3ea68b,_0x5afd53,_0x211c94)=>T(_0x3ea68b,typeof _0x5afd53!=_0x256358(0x1b5)?_0x5afd53+'':_0x5afd53,_0x211c94);function _0x11c5(_0x1ff2fa,_0x10f117){var _0x3dcf45=_0x3dcf();return _0x11c5=function(_0x11c516,_0x70e324){_0x11c516=_0x11c516-0x17e;var _0x1fb438=_0x3dcf45[_0x11c516];return _0x1fb438;},_0x11c5(_0x1ff2fa,_0x10f117);}const N='DOC_EXCHANGE_CLIENT_PLUGIN';exports['UniverDocsExchangeClientPlugin']=class extends o['Plugin']{constructor(_0x4d5968=d,_0x55aac7,_0x23e313){var _0x591e0f=_0x256358;super(),this[_0x591e0f(0x1a2)]=_0x4d5968,this['_injector']=_0x55aac7,this[_0x591e0f(0x1a9)]=_0x23e313;const {menu:_0x4f5cac,..._0x357fb9}=o[_0x591e0f(0x197)]({},d,this[_0x591e0f(0x1a2)]);_0x4f5cac&&this[_0x591e0f(0x1a9)][_0x591e0f(0x1a8)](_0x591e0f(0x1a0),_0x4f5cac,{'merge':!0x0}),this[_0x591e0f(0x1a9)][_0x591e0f(0x1a8)](I,_0x357fb9);}[_0x256358(0x1b1)](){var _0x9bff9b=_0x256358;[[p]][_0x9bff9b(0x198)](_0x2de020=>this[_0x9bff9b(0x180)]['add'](_0x2de020));}[_0x256358(0x1ab)](){var _0x3dce37=_0x256358;this['_injector'][_0x3dce37(0x18e)](p);}},v(exports[_0x256358(0x17f)],_0x256358(0x18d),N),v(exports[_0x256358(0x17f)],_0x256358(0x196),o[_0x256358(0x1b0)]['UNIVER_DOC']),exports[_0x256358(0x17f)]=U([o[_0x256358(0x1a4)](l['UniverExchangeClientPlugin']),m(0x1,o[_0x256358(0x191)](o[_0x256358(0x1b8)])),m(0x2,o[_0x256358(0x1ac)])],exports[_0x256358(0x17f)]),exports[_0x256358(0x1a7)]=g,exports['ImportDOCXOperation']=u;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x9736f1=_0x3e45;(function(_0x223feb,_0x2221e5){var _0x25ee1a=_0x3e45,_0x38126e=_0x223feb();while(!![]){try{var _0x1e365b=parseInt(_0x25ee1a(0x11e))/0x1*(-parseInt(_0x25ee1a(0x10e))/0x2)+parseInt(_0x25ee1a(0x128))/0x3*(parseInt(_0x25ee1a(0x12d))/0x4)+parseInt(_0x25ee1a(0x12a))/0x5*(parseInt(_0x25ee1a(0x116))/0x6)+-parseInt(_0x25ee1a(0x122))/0x7+parseInt(_0x25ee1a(0x124))/0x8*(parseInt(_0x25ee1a(0x11f))/0x9)+-parseInt(_0x25ee1a(0x10c))/0xa*(-parseInt(_0x25ee1a(0x112))/0xb)+parseInt(_0x25ee1a(0x130))/0xc;if(_0x1e365b===_0x2221e5)break;else _0x38126e['push'](_0x38126e['shift']());}catch(_0x2ba65d){_0x38126e['push'](_0x38126e['shift']());}}}(_0x57c3,0x18917));import{IExchangeOperateService as _0x3fbeb8,UniverExchangeClientPlugin as _0x27d29a}from'@univerjs-pro/exchange-client';import{CommandType as _0x511d93,UniverInstanceType as _0xa2d901,Disposable as _0x4f3d99,ICommandService as _0x3e5e57,DependentOn as _0x50b971,Inject as _0x3f1341,Injector as _0x1cee3a,Plugin as _0x1bb845,merge as _0x1d1bd2,IConfigService as _0x350918}from'@univerjs/core';function _0x3e45(_0x29c134,_0x33e6cf){var _0x57c3ac=_0x57c3();return _0x3e45=function(_0x3e4534,_0x4c4c80){_0x3e4534=_0x3e4534-0x108;var _0x2de5af=_0x57c3ac[_0x3e4534];return _0x2de5af;},_0x3e45(_0x29c134,_0x33e6cf);}function _0x57c3(){var _0x1db8eb=['UNIVER_DOC','get','1437uIaNyH','docs-exchange-client.config','172655aavrsn','docs-exchange-client.operation.exchange','_menuManagerService','356mLbjtb','forEach','OPERATION','222720ZGfdgg','mergeMenu','pluginName','exchange.upload','BUTTON','exchange.download','type','3770SoRiAT','_initMenus','14oohwza','exchange-client.operation.import-docx','menu','exchange.file','5038WCPYxw','onReady','length','_commandService','12YaVtwv','_configService','symbol','getOwnPropertyDescriptor','ExportSingle','onStarting','exchange-client.operation.export-docx','registerCommand','17449rvKivi','24372RzPhUp','FILE','add','750575GWBPpV','_injector','80zzSrfm','_config'];_0x57c3=function(){return _0x1db8eb;};return _0x57c3();}import{MenuItemType as _0x28ee6f,getMenuHiddenObservable as _0x579987,RibbonStartGroup as _0x4e4063,IMenuManagerService as _0x141af6}from'@univerjs/ui';const F=_0x9736f1(0x129),m={},_={'id':_0x9736f1(0x10f),'type':_0x511d93[_0x9736f1(0x12f)],'handler':async _0x300f8f=>(_0x300f8f[_0x9736f1(0x127)](_0x3fbeb8)['importDOCXToUnitId'](),!0x0)},d={'id':_0x9736f1(0x11c),'type':_0x511d93[_0x9736f1(0x12f)],'handler':async _0x8a8410=>(_0x8a8410[_0x9736f1(0x127)](_0x3fbeb8)['exportDOCXByUnitId'](),!0x0)},I=_0x9736f1(0x12b);function X(_0x16b4da){var _0x2cfc2a=_0x9736f1;return{'id':I,'type':_0x28ee6f['SUBITEMS'],'icon':'DirectExportSingle','tooltip':_0x2cfc2a(0x111),'hidden$':_0x579987(_0x16b4da,_0xa2d901[_0x2cfc2a(0x126)])};}function G(){var _0x2b9c69=_0x9736f1;return{'id':_['id'],'type':_0x28ee6f[_0x2b9c69(0x109)],'title':_0x2b9c69(0x108),'icon':'FolderSingle'};}function j(){var _0x1a6f8c=_0x9736f1;return{'id':d['id'],'type':_0x28ee6f[_0x1a6f8c(0x109)],'title':_0x1a6f8c(0x10a),'icon':_0x1a6f8c(0x11a)};}const A={[_0x4e4063[_0x9736f1(0x120)]]:{[I]:{'order':0x4,'menuItemFactory':X,[_['id']]:{'order':0x0,'menuItemFactory':G},[d['id']]:{'order':0x1,'menuItemFactory':j}}}};var L=Object['defineProperty'],R=Object[_0x9736f1(0x119)],w=(_0x178766,_0x41ccf9,_0x43fe64,_0x361af7)=>{var _0x4b6da0=_0x9736f1;for(var _0x575a74=_0x361af7>0x1?void 0x0:_0x361af7?R(_0x41ccf9,_0x43fe64):_0x41ccf9,_0x413fb1=_0x178766[_0x4b6da0(0x114)]-0x1,_0x3def2f;_0x413fb1>=0x0;_0x413fb1--)(_0x3def2f=_0x178766[_0x413fb1])&&(_0x575a74=(_0x361af7?_0x3def2f(_0x41ccf9,_0x43fe64,_0x575a74):_0x3def2f(_0x575a74))||_0x575a74);return _0x361af7&&_0x575a74&&L(_0x41ccf9,_0x43fe64,_0x575a74),_0x575a74;},u=(_0x3b2d03,_0x4c80a4)=>(_0x47738f,_0x22082d)=>_0x4c80a4(_0x47738f,_0x22082d,_0x3b2d03);let a=class extends _0x4f3d99{constructor(_0x53d82e,_0x3671d6){var _0x4b0065=_0x9736f1;super(),this['_commandService']=_0x53d82e,this[_0x4b0065(0x12c)]=_0x3671d6,this['_initCommands'](),this[_0x4b0065(0x10d)]();}['_initCommands'](){var _0x316913=_0x9736f1;[_,d][_0x316913(0x12e)](_0x51e803=>{var _0x4d292e=_0x316913;this['disposeWithMe'](this[_0x4d292e(0x115)][_0x4d292e(0x11d)](_0x51e803));});}[_0x9736f1(0x10d)](){var _0x3e791b=_0x9736f1;this['_menuManagerService'][_0x3e791b(0x131)](A);}};a=w([u(0x0,_0x3e5e57),u(0x1,_0x141af6)],a);var f=Object['defineProperty'],B=Object[_0x9736f1(0x119)],H=(_0x1f7d7a,_0x4dce0c,_0x1ed4fc)=>_0x4dce0c in _0x1f7d7a?f(_0x1f7d7a,_0x4dce0c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ed4fc}):_0x1f7d7a[_0x4dce0c]=_0x1ed4fc,$=(_0x497b41,_0x430877,_0x252fc2,_0x4c8f2f)=>{var _0x38dd59=_0x9736f1;for(var _0x314afc=_0x4c8f2f>0x1?void 0x0:_0x4c8f2f?B(_0x430877,_0x252fc2):_0x430877,_0x4d283d=_0x497b41[_0x38dd59(0x114)]-0x1,_0x462e87;_0x4d283d>=0x0;_0x4d283d--)(_0x462e87=_0x497b41[_0x4d283d])&&(_0x314afc=(_0x4c8f2f?_0x462e87(_0x430877,_0x252fc2,_0x314afc):_0x462e87(_0x314afc))||_0x314afc);return _0x4c8f2f&&_0x314afc&&f(_0x430877,_0x252fc2,_0x314afc),_0x314afc;},l=(_0x1ef941,_0x3fd480)=>(_0x22479a,_0x3f1a84)=>_0x3fd480(_0x22479a,_0x3f1a84,_0x1ef941),v=(_0x225613,_0x3f8306,_0x55510c)=>H(_0x225613,typeof _0x3f8306!=_0x9736f1(0x118)?_0x3f8306+'':_0x3f8306,_0x55510c);const V='DOC_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x1bb845{constructor(_0x3613bf=m,_0x35618a,_0x55fd45){var _0x39f8d5=_0x9736f1;super(),this['_config']=_0x3613bf,this[_0x39f8d5(0x123)]=_0x35618a,this[_0x39f8d5(0x117)]=_0x55fd45;const {menu:_0x5bc913,..._0x42b3b0}=_0x1d1bd2({},m,this[_0x39f8d5(0x125)]);_0x5bc913&&this[_0x39f8d5(0x117)]['setConfig'](_0x39f8d5(0x110),_0x5bc913,{'merge':!0x0}),this[_0x39f8d5(0x117)]['setConfig'](F,_0x42b3b0);}[_0x9736f1(0x11b)](){var _0x3914ac=_0x9736f1;[[a]]['forEach'](_0x112f84=>this[_0x3914ac(0x123)][_0x3914ac(0x121)](_0x112f84));}[_0x9736f1(0x113)](){var _0x5f3698=_0x9736f1;this['_injector'][_0x5f3698(0x127)](a);}};v(s,_0x9736f1(0x132),V),v(s,_0x9736f1(0x10b),_0xa2d901['UNIVER_DOC']),s=$([_0x50b971(_0x27d29a),l(0x1,_0x3f1341(_0x1cee3a)),l(0x2,_0x350918)],s);export{d as ExportDOCXOperation,_ as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x2f07(_0x5ee6d7,_0xe01fe5){var _0x34b3fd=_0x34b3();return _0x2f07=function(_0x2f07d6,_0x318379){_0x2f07d6=_0x2f07d6-0x9f;var _0x4fddba=_0x34b3fd[_0x2f07d6];return _0x4fddba;},_0x2f07(_0x5ee6d7,_0xe01fe5);}(function(_0x5bb22c,_0x20ff2d){var _0x2dd438=_0x2f07,_0xa41863=_0x5bb22c();while(!![]){try{var _0x3176d0=-parseInt(_0x2dd438(0xb4))/0x1+-parseInt(_0x2dd438(0xb1))/0x2+-parseInt(_0x2dd438(0xd5))/0x3+-parseInt(_0x2dd438(0xce))/0x4*(parseInt(_0x2dd438(0xa6))/0x5)+-parseInt(_0x2dd438(0xcb))/0x6+-parseInt(_0x2dd438(0xa7))/0x7+parseInt(_0x2dd438(0xcd))/0x8*(parseInt(_0x2dd438(0xa8))/0x9);if(_0x3176d0===_0x20ff2d)break;else _0xa41863['push'](_0xa41863['shift']());}catch(_0x50ecc1){_0xa41863['push'](_0xa41863['shift']());}}}(_0x34b3,0x3b7e5),function(_0x47cf63,_0x55107b){var _0x31bef5=_0x2f07;typeof exports=='object'&&typeof module<'u'?_0x55107b(exports,require(_0x31bef5(0xa3)),require('@univerjs/core'),require('@univerjs/ui')):typeof define==_0x31bef5(0xa2)&&define[_0x31bef5(0xa9)]?define([_0x31bef5(0xa1),_0x31bef5(0xa3),'@univerjs/core',_0x31bef5(0xaa)],_0x55107b):(_0x47cf63=typeof globalThis<'u'?globalThis:_0x47cf63||self,_0x55107b(_0x47cf63[_0x31bef5(0xb9)]={},_0x47cf63['UniverProExchangeClient'],_0x47cf63[_0x31bef5(0xc7)],_0x47cf63[_0x31bef5(0xc3)]));}(this,function(_0x298f92,_0x1f4734,_0xb45f7c,_0x51ea1f){'use strict';var _0x49d36c=_0x2f07;const _0x4b8263='docs-exchange-client.config',_0x43cc81={},_0x6c0574={'id':_0x49d36c(0xdb),'type':_0xb45f7c[_0x49d36c(0xa5)][_0x49d36c(0xb0)],'handler':async _0x5c309b=>(_0x5c309b[_0x49d36c(0xd3)](_0x1f4734[_0x49d36c(0xc6)])[_0x49d36c(0xa0)](),!0x0)},_0x3fe3c1={'id':'exchange-client.operation.export-docx','type':_0xb45f7c[_0x49d36c(0xa5)][_0x49d36c(0xb0)],'handler':async _0x279cef=>(_0x279cef[_0x49d36c(0xd3)](_0x1f4734[_0x49d36c(0xc6)])[_0x49d36c(0xcf)](),!0x0)},_0xf681bb=_0x49d36c(0xbb);function _0x494a1d(_0x53ba37){var _0x23f64a=_0x49d36c;return{'id':_0xf681bb,'type':_0x51ea1f[_0x23f64a(0xc8)][_0x23f64a(0xb7)],'icon':'DirectExportSingle','tooltip':_0x23f64a(0xb6),'hidden$':_0x51ea1f[_0x23f64a(0xd8)](_0x53ba37,_0xb45f7c[_0x23f64a(0xac)][_0x23f64a(0xa4)])};}function _0x12d876(){var _0x57d4ca=_0x49d36c;return{'id':_0x6c0574['id'],'type':_0x51ea1f[_0x57d4ca(0xc8)][_0x57d4ca(0xb2)],'title':_0x57d4ca(0xd9),'icon':'FolderSingle'};}function _0xac5e4b(){var _0x212e80=_0x49d36c;return{'id':_0x3fe3c1['id'],'type':_0x51ea1f['MenuItemType'][_0x212e80(0xb2)],'title':'exchange.download','icon':'ExportSingle'};}const _0x1da543={[_0x51ea1f[_0x49d36c(0xc0)]['FILE']]:{[_0xf681bb]:{'order':0x4,'menuItemFactory':_0x494a1d,[_0x6c0574['id']]:{'order':0x0,'menuItemFactory':_0x12d876},[_0x3fe3c1['id']]:{'order':0x1,'menuItemFactory':_0xac5e4b}}}};var _0xc57b2=Object['defineProperty'],_0x2f47ec=Object[_0x49d36c(0xc1)],_0x23b58d=(_0x57c881,_0x3ab024,_0x297070,_0x2fa2f4)=>{var _0x520c53=_0x49d36c;for(var _0x2f5139=_0x2fa2f4>0x1?void 0x0:_0x2fa2f4?_0x2f47ec(_0x3ab024,_0x297070):_0x3ab024,_0xe9750a=_0x57c881[_0x520c53(0xad)]-0x1,_0xb03953;_0xe9750a>=0x0;_0xe9750a--)(_0xb03953=_0x57c881[_0xe9750a])&&(_0x2f5139=(_0x2fa2f4?_0xb03953(_0x3ab024,_0x297070,_0x2f5139):_0xb03953(_0x2f5139))||_0x2f5139);return _0x2fa2f4&&_0x2f5139&&_0xc57b2(_0x3ab024,_0x297070,_0x2f5139),_0x2f5139;},_0x1aa3a4=(_0x25884b,_0x472a49)=>(_0x5e97de,_0xa3a89a)=>_0x472a49(_0x5e97de,_0xa3a89a,_0x25884b);let _0x15369b=class extends _0xb45f7c[_0x49d36c(0xca)]{constructor(_0x33a39d,_0x3b550b){var _0x140a8b=_0x49d36c;super(),this['_commandService']=_0x33a39d,this[_0x140a8b(0xba)]=_0x3b550b,this[_0x140a8b(0xd2)](),this[_0x140a8b(0xdd)]();}[_0x49d36c(0xd2)](){var _0x4f4cdc=_0x49d36c;[_0x6c0574,_0x3fe3c1][_0x4f4cdc(0xb3)](_0x5c4853=>{var _0x5f1aca=_0x4f4cdc;this[_0x5f1aca(0x9f)](this['_commandService']['registerCommand'](_0x5c4853));});}[_0x49d36c(0xdd)](){var _0x129bbc=_0x49d36c;this['_menuManagerService'][_0x129bbc(0xb5)](_0x1da543);}};_0x15369b=_0x23b58d([_0x1aa3a4(0x0,_0xb45f7c[_0x49d36c(0xab)]),_0x1aa3a4(0x1,_0x51ea1f['IMenuManagerService'])],_0x15369b);var _0x16d59b=Object['defineProperty'],_0x1ddaa8=Object[_0x49d36c(0xc1)],_0xe24373=(_0x1e0497,_0x17dd60,_0x5612e3)=>_0x17dd60 in _0x1e0497?_0x16d59b(_0x1e0497,_0x17dd60,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5612e3}):_0x1e0497[_0x17dd60]=_0x5612e3,_0x11191e=(_0x4e60b8,_0x32640a,_0x456984,_0x1bf4a2)=>{for(var _0x48b5bc=_0x1bf4a2>0x1?void 0x0:_0x1bf4a2?_0x1ddaa8(_0x32640a,_0x456984):_0x32640a,_0x6660a1=_0x4e60b8['length']-0x1,_0x334d39;_0x6660a1>=0x0;_0x6660a1--)(_0x334d39=_0x4e60b8[_0x6660a1])&&(_0x48b5bc=(_0x1bf4a2?_0x334d39(_0x32640a,_0x456984,_0x48b5bc):_0x334d39(_0x48b5bc))||_0x48b5bc);return _0x1bf4a2&&_0x48b5bc&&_0x16d59b(_0x32640a,_0x456984,_0x48b5bc),_0x48b5bc;},_0x178c4d=(_0x492a1e,_0x18eabb)=>(_0x3180e4,_0x5f3bee)=>_0x18eabb(_0x3180e4,_0x5f3bee,_0x492a1e),_0x5db76a=(_0x1a9b75,_0x56c662,_0x315cd3)=>_0xe24373(_0x1a9b75,typeof _0x56c662!=_0x49d36c(0xae)?_0x56c662+'':_0x56c662,_0x315cd3);const _0x7ecf75=_0x49d36c(0xc2);_0x298f92[_0x49d36c(0xc5)]=class extends _0xb45f7c[_0x49d36c(0xd6)]{constructor(_0x40ac2d=_0x43cc81,_0x5cd549,_0x28ba60){var _0x3201d6=_0x49d36c;super(),this[_0x3201d6(0xdc)]=_0x40ac2d,this['_injector']=_0x5cd549,this[_0x3201d6(0xd0)]=_0x28ba60;const {menu:_0x847120,..._0x1b4c1d}=_0xb45f7c[_0x3201d6(0xd4)]({},_0x43cc81,this[_0x3201d6(0xdc)]);_0x847120&&this['_configService'][_0x3201d6(0xbd)](_0x3201d6(0xb8),_0x847120,{'merge':!0x0}),this['_configService']['setConfig'](_0x4b8263,_0x1b4c1d);}['onStarting'](){var _0x4c010d=_0x49d36c;[[_0x15369b]][_0x4c010d(0xb3)](_0x591da8=>this[_0x4c010d(0xd1)][_0x4c010d(0xaf)](_0x591da8));}['onReady'](){var _0xa4df20=_0x49d36c;this['_injector'][_0xa4df20(0xd3)](_0x15369b);}},_0x5db76a(_0x298f92[_0x49d36c(0xc5)],_0x49d36c(0xda),_0x7ecf75),_0x5db76a(_0x298f92[_0x49d36c(0xc5)],_0x49d36c(0xc9),_0xb45f7c[_0x49d36c(0xac)][_0x49d36c(0xa4)]),_0x298f92[_0x49d36c(0xc5)]=_0x11191e([_0xb45f7c[_0x49d36c(0xc4)](_0x1f4734[_0x49d36c(0xcc)]),_0x178c4d(0x1,_0xb45f7c[_0x49d36c(0xd7)](_0xb45f7c[_0x49d36c(0xbc)])),_0x178c4d(0x2,_0xb45f7c['IConfigService'])],_0x298f92['UniverDocsExchangeClientPlugin']),_0x298f92[_0x49d36c(0xbf)]=_0x3fe3c1,_0x298f92['ImportDOCXOperation']=_0x6c0574,Object['defineProperty'](_0x298f92,Symbol['toStringTag'],{'value':_0x49d36c(0xbe)});}));function _0x34b3(){var _0x1a6b41=['symbol','add','OPERATION','704430HeGSCK','BUTTON','forEach','246694npYbEx','mergeMenu','exchange.file','SUBITEMS','menu','UniverProDocsExchangeClient','_menuManagerService','docs-exchange-client.operation.exchange','Injector','setConfig','Module','ExportDOCXOperation','RibbonStartGroup','getOwnPropertyDescriptor','DOC_EXCHANGE_CLIENT_PLUGIN','UniverUi','DependentOn','UniverDocsExchangeClientPlugin','IExchangeOperateService','UniverCore','MenuItemType','type','Disposable','760392dKguYj','UniverExchangeClientPlugin','1830696RPZHIb','343760qkXqVB','exportDOCXByUnitId','_configService','_injector','_initCommands','get','merge','472725HhEvGm','Plugin','Inject','getMenuHiddenObservable','exchange.upload','pluginName','exchange-client.operation.import-docx','_config','_initMenus','disposeWithMe','importDOCXToUnitId','exports','function','@univerjs-pro/exchange-client','UNIVER_DOC','CommandType','25SkChYQ','316806Vseaal','63oFXgIW','amd','@univerjs/ui','ICommandService','UniverInstanceType','length'];_0x34b3=function(){return _0x1a6b41;};return _0x34b3();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/docs-exchange-client",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3-experimental.20250106-e3b7a39",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -42,28 +42,15 @@
|
|
|
42
42
|
"lib"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@univerjs/
|
|
46
|
-
"@univerjs
|
|
47
|
-
"@univerjs/ui": "0.5.
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.5.3-experimental.20250106-e3b7a39",
|
|
46
|
+
"@univerjs/core": "0.5.3-experimental.20250106-e3b7a39",
|
|
47
|
+
"@univerjs/ui": "0.5.3-experimental.20250106-e3b7a39"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"typescript": "^5.7.2",
|
|
51
|
-
"vite": "^6.0.
|
|
51
|
+
"vite": "^6.0.6",
|
|
52
52
|
"vitest": "^2.1.8",
|
|
53
|
-
"@univerjs-infra/shared": "0.5.
|
|
54
|
-
},
|
|
55
|
-
"space": {
|
|
56
|
-
".": {
|
|
57
|
-
"import": "./lib/es/index.js",
|
|
58
|
-
"require": "./lib/cjs/index.js",
|
|
59
|
-
"types": "./lib/types/index.d.ts"
|
|
60
|
-
},
|
|
61
|
-
"./*": {
|
|
62
|
-
"import": "./lib/es/*",
|
|
63
|
-
"require": "./lib/cjs/*",
|
|
64
|
-
"types": "./lib/types/index.d.ts"
|
|
65
|
-
},
|
|
66
|
-
"./lib/*": "./lib/*"
|
|
53
|
+
"@univerjs-infra/shared": "0.5.3"
|
|
67
54
|
},
|
|
68
55
|
"scripts": {
|
|
69
56
|
"test": "vitest run",
|