@univerjs-pro/docs-exchange-client 0.8.0-nightly.202506011606 → 0.8.0-nightly.202506021607
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 _0x5b2b87=_0x4131;(function(_0x2140b3,_0x45896e){var _0x3157da=_0x4131,_0x1aaae3=_0x2140b3();while(!![]){try{var _0x512d32=-parseInt(_0x3157da(0xf1))/0x1+-parseInt(_0x3157da(0xfa))/0x2+parseInt(_0x3157da(0xf3))/0x3+-parseInt(_0x3157da(0xdc))/0x4+parseInt(_0x3157da(0xc8))/0x5+parseInt(_0x3157da(0xe4))/0x6+parseInt(_0x3157da(0xf0))/0x7;if(_0x512d32===_0x45896e)break;else _0x1aaae3['push'](_0x1aaae3['shift']());}catch(_0x5e36f7){_0x1aaae3['push'](_0x1aaae3['shift']());}}}(_0xd1e6,0xb4dc2));Object[_0x5b2b87(0xed)](exports,Symbol[_0x5b2b87(0xe2)],{'value':_0x5b2b87(0xe5)});const d=require(_0x5b2b87(0xcf)),i=require('@univerjs/core'),a=require(_0x5b2b87(0xcc)),I=_0x5b2b87(0xc9),l={},p={'id':'exchange-client.operation.import-docx','type':i[_0x5b2b87(0xf4)][_0x5b2b87(0xf5)],'handler':async _0x2c041c=>(_0x2c041c[_0x5b2b87(0xf2)](d[_0x5b2b87(0xe9)])[_0x5b2b87(0xdd)](),!0x0)},g={'id':_0x5b2b87(0xd3),'type':i['CommandType'][_0x5b2b87(0xf5)],'handler':async _0xdeebb7=>(_0xdeebb7[_0x5b2b87(0xf2)](d[_0x5b2b87(0xe9)])[_0x5b2b87(0xeb)](),!0x0)},h=_0x5b2b87(0xc5);function v(_0xa131b0){var _0x950539=_0x5b2b87;return{'id':h,'type':a[_0x950539(0xec)][_0x950539(0xc1)],'icon':_0x950539(0xe1),'tooltip':_0x950539(0xbe),'hidden$':a[_0x950539(0xd9)](_0xa131b0,i[_0x950539(0xf8)][_0x950539(0xd0)])};}function O(){var _0x218ed5=_0x5b2b87;return{'id':p['id'],'type':a['MenuItemType'][_0x218ed5(0xee)],'title':_0x218ed5(0xe3),'icon':'FolderIcon'};}function E(){var _0x12abe1=_0x5b2b87;return{'id':g['id'],'type':a[_0x12abe1(0xec)][_0x12abe1(0xee)],'title':'exchange.download','icon':'ExportIcon'};}const x={[a[_0x5b2b87(0xcb)]['OTHERS']]:{[h]:{'order':0.3,'menuItemFactory':v,[p['id']]:{'order':0x0,'menuItemFactory':O},[g['id']]:{'order':0x1,'menuItemFactory':E}}}};var D=Object['getOwnPropertyDescriptor'],f=(_0x4e5f96,_0x6615bf,_0x405241,_0x23f73f)=>{var _0x26d3c7=_0x5b2b87;for(var _0x416c14=_0x23f73f>0x1?void 0x0:_0x23f73f?D(_0x6615bf,_0x405241):_0x6615bf,_0x22a037=_0x4e5f96[_0x26d3c7(0xbd)]-0x1,_0x246265;_0x22a037>=0x0;_0x22a037--)(_0x246265=_0x4e5f96[_0x22a037])&&(_0x416c14=_0x246265(_0x416c14)||_0x416c14);return _0x416c14;},_=(_0x5bb6e2,_0x3ccc25)=>(_0x47c9a3,_0x1c9868)=>_0x3ccc25(_0x47c9a3,_0x1c9868,_0x5bb6e2);let u=class extends i[_0x5b2b87(0xd6)]{constructor(_0x2ea8d2,_0x3f0b17){var _0x2df0d9=_0x5b2b87;super(),this[_0x2df0d9(0xc3)]=_0x2ea8d2,this[_0x2df0d9(0xda)]=_0x3f0b17,this['_initCommands'](),this[_0x2df0d9(0xd1)]();}['_initCommands'](){var _0x199ded=_0x5b2b87;[p,g][_0x199ded(0xc6)](_0x5605d1=>{var _0x1b5357=_0x199ded;this[_0x1b5357(0xc0)](this[_0x1b5357(0xc3)][_0x1b5357(0xf6)](_0x5605d1));});}[_0x5b2b87(0xd1)](){var _0x1fec79=_0x5b2b87;this[_0x1fec79(0xda)][_0x1fec79(0xca)](x);}};function _0x4131(_0x194abd,_0x4718a0){var _0xd1e644=_0xd1e6();return _0x4131=function(_0x4131c9,_0x4e2d24){_0x4131c9=_0x4131c9-0xbd;var _0x3fa790=_0xd1e644[_0x4131c9];return _0x3fa790;},_0x4131(_0x194abd,_0x4718a0);}u=f([_(0x0,i[_0x5b2b87(0xd2)]),_(0x1,a[_0x5b2b87(0xc2)])],u);var y=Object[_0x5b2b87(0xed)],S=Object[_0x5b2b87(0xce)],P=(_0x5bbfbb,_0x196c6b,_0x141dd0)=>_0x196c6b in _0x5bbfbb?y(_0x5bbfbb,_0x196c6b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x141dd0}):_0x5bbfbb[_0x196c6b]=_0x141dd0,T=(_0x53a34e,_0x1edbf2,_0x2db6a6,_0x591fb6)=>{var _0x5d9e4d=_0x5b2b87;for(var _0x29718a=_0x591fb6>0x1?void 0x0:_0x591fb6?S(_0x1edbf2,_0x2db6a6):_0x1edbf2,_0x55ea1f=_0x53a34e[_0x5d9e4d(0xbd)]-0x1,_0x346361;_0x55ea1f>=0x0;_0x55ea1f--)(_0x346361=_0x53a34e[_0x55ea1f])&&(_0x29718a=_0x346361(_0x29718a)||_0x29718a);return _0x29718a;},m=(_0xfabba0,_0x84ee76)=>(_0x30758,_0x5c5b04)=>_0x84ee76(_0x30758,_0x5c5b04,_0xfabba0),C=(_0x1d4c53,_0x2e1cc6,_0x148d23)=>P(_0x1d4c53,typeof _0x2e1cc6!='symbol'?_0x2e1cc6+'':_0x2e1cc6,_0x148d23);const U=_0x5b2b87(0xea);exports[_0x5b2b87(0xfb)]=class extends i[_0x5b2b87(0xf9)]{constructor(_0x5ee0d9=l,_0x28f19,_0x4e5215){var _0x3a93a0=_0x5b2b87;super(),this['_config']=_0x5ee0d9,this[_0x3a93a0(0xe0)]=_0x28f19,this[_0x3a93a0(0xd7)]=_0x4e5215;const {menu:_0x46237c,..._0xcef24}=i[_0x3a93a0(0xc7)]({},l,this['_config']);_0x46237c&&this[_0x3a93a0(0xd7)][_0x3a93a0(0xf7)](_0x3a93a0(0xdf),_0x46237c,{'merge':!0x0}),this['_configService'][_0x3a93a0(0xf7)](I,_0xcef24);}[_0x5b2b87(0xde)](){var _0x3acd06=_0x5b2b87;[[u]]['forEach'](_0x13a703=>this[_0x3acd06(0xe0)][_0x3acd06(0xd8)](_0x13a703));}[_0x5b2b87(0xd4)](){var _0x75b4f0=_0x5b2b87;this[_0x75b4f0(0xe0)][_0x75b4f0(0xf2)](u);}},C(exports['UniverDocsExchangeClientPlugin'],_0x5b2b87(0xe7),U),C(exports[_0x5b2b87(0xfb)],_0x5b2b87(0xe6),i[_0x5b2b87(0xf8)]['UNIVER_DOC']),exports['UniverDocsExchangeClientPlugin']=T([i[_0x5b2b87(0xd5)](d[_0x5b2b87(0xcd)]),m(0x1,i[_0x5b2b87(0xdb)](i[_0x5b2b87(0xc4)])),m(0x2,i[_0x5b2b87(0xbf)])],exports[_0x5b2b87(0xfb)]),exports[_0x5b2b87(0xe8)]=g,exports[_0x5b2b87(0xef)]=p;function _0xd1e6(){var _0x514ac0=['4513008kksxyO','importDOCXToUnitId','onStarting','menu','_injector','DirectExportIcon','toStringTag','exchange.upload','2002440NbOpCm','Module','type','pluginName','ExportDOCXOperation','IExchangeOperateService','DOC_EXCHANGE_CLIENT_PLUGIN','exportDOCXByUnitId','MenuItemType','defineProperty','BUTTON','ImportDOCXOperation','19805926wPGgXt','1341649ULineK','get','2122953VXAbqg','CommandType','OPERATION','registerCommand','setConfig','UniverInstanceType','Plugin','1355372QOuXvH','UniverDocsExchangeClientPlugin','length','exchange.file','IConfigService','disposeWithMe','SUBITEMS','IMenuManagerService','_commandService','Injector','docs-exchange-client.operation.exchange','forEach','merge','87900miACmr','docs-exchange-client.config','mergeMenu','RibbonStartGroup','@univerjs/ui','UniverExchangeClientPlugin','getOwnPropertyDescriptor','@univerjs-pro/exchange-client','UNIVER_DOC','_initMenus','ICommandService','exchange-client.operation.export-docx','onReady','DependentOn','Disposable','_configService','add','getMenuHiddenObservable','_menuManagerService','Inject'];_0xd1e6=function(){return _0x514ac0;};return _0xd1e6();}
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x50f0b0=_0x3f98;(function(_0x4eb763,_0x5e6c4c){var _0x4c2051=_0x3f98,_0x4f4a2e=_0x4eb763();while(!![]){try{var _0x39fc73=parseInt(_0x4c2051(0x1d7))/0x1+-parseInt(_0x4c2051(0x1b9))/0x2*(-parseInt(_0x4c2051(0x1cb))/0x3)+-parseInt(_0x4c2051(0x1b2))/0x4*(-parseInt(_0x4c2051(0x1d1))/0x5)+parseInt(_0x4c2051(0x1b4))/0x6+-parseInt(_0x4c2051(0x1ca))/0x7*(parseInt(_0x4c2051(0x1bb))/0x8)+-parseInt(_0x4c2051(0x1d0))/0x9*(parseInt(_0x4c2051(0x1d3))/0xa)+parseInt(_0x4c2051(0x1b8))/0xb*(-parseInt(_0x4c2051(0x1be))/0xc);if(_0x39fc73===_0x5e6c4c)break;else _0x4f4a2e['push'](_0x4f4a2e['shift']());}catch(_0x6f3d74){_0x4f4a2e['push'](_0x4f4a2e['shift']());}}}(_0x4053,0x68b2e));import{IExchangeOperateService as _0x5c3364,UniverExchangeClientPlugin as _0x7be4b1}from'@univerjs-pro/exchange-client';import{CommandType as _0x28b870,UniverInstanceType as _0x4438eb,Disposable as _0x36c065,ICommandService as _0x3324e0,DependentOn as _0x5b5985,Inject as _0xe68cb7,Injector as _0x25baf3,IConfigService as _0x462184,Plugin as _0x261c2a,merge as _0x4a0f07}from'@univerjs/core';import{MenuItemType as _0x257d86,getMenuHiddenObservable as _0x16f05a,RibbonStartGroup as _0x406ac9,IMenuManagerService as _0x2ca529}from'@univerjs/ui';const b=_0x50f0b0(0x1c0),m={},d={'id':_0x50f0b0(0x1db),'type':_0x28b870[_0x50f0b0(0x1da)],'handler':async _0x398e02=>(_0x398e02[_0x50f0b0(0x1d5)](_0x5c3364)[_0x50f0b0(0x1d9)](),!0x0)},_={'id':_0x50f0b0(0x1cf),'type':_0x28b870[_0x50f0b0(0x1da)],'handler':async _0x121c1d=>(_0x121c1d[_0x50f0b0(0x1d5)](_0x5c3364)[_0x50f0b0(0x1cc)](),!0x0)},C=_0x50f0b0(0x1b5);function X(_0x2018df){var _0x52a86c=_0x50f0b0;return{'id':C,'type':_0x257d86[_0x52a86c(0x1c3)],'icon':_0x52a86c(0x1c6),'tooltip':'exchange.file','hidden$':_0x16f05a(_0x2018df,_0x4438eb[_0x52a86c(0x1c1)])};}function F(){var _0x12f5f5=_0x50f0b0;return{'id':d['id'],'type':_0x257d86[_0x12f5f5(0x1d8)],'title':'exchange.upload','icon':_0x12f5f5(0x1c8)};}function _0x3f98(_0x5908ff,_0xe8543){var _0x405378=_0x4053();return _0x3f98=function(_0x3f98cf,_0x49ff71){_0x3f98cf=_0x3f98cf-0x1ae;var _0x4b8076=_0x405378[_0x3f98cf];return _0x4b8076;},_0x3f98(_0x5908ff,_0xe8543);}function _0x4053(){var _0x16eff7=['_configService','85336ZeuxLc','_initCommands','_injector','1247748PDLCLK','registerCommand','docs-exchange-client.config','UNIVER_DOC','forEach','SUBITEMS','mergeMenu','_initMenus','DirectExportIcon','disposeWithMe','FolderIcon','setConfig','28wbdVwS','651bzxLhJ','exportDOCXByUnitId','defineProperty','symbol','exchange-client.operation.export-docx','549SzwfKO','27215KJGYJY','OTHERS','114910SOTAUM','type','get','_menuManagerService','328727IIrMcx','BUTTON','importDOCXToUnitId','OPERATION','exchange-client.operation.import-docx','_commandService','ExportIcon','_config','menu','onStarting','548byeqHZ','pluginName','2458596MeRHTM','docs-exchange-client.operation.exchange','exchange.download','onReady','99dFIHFn','5752ZzWIkD'];_0x4053=function(){return _0x16eff7;};return _0x4053();}function G(){var _0xed63eb=_0x50f0b0;return{'id':_['id'],'type':_0x257d86[_0xed63eb(0x1d8)],'title':_0xed63eb(0x1b6),'icon':_0xed63eb(0x1ae)};}const R={[_0x406ac9[_0x50f0b0(0x1d2)]]:{[C]:{'order':0.3,'menuItemFactory':X,[d['id']]:{'order':0x0,'menuItemFactory':F},[_['id']]:{'order':0x1,'menuItemFactory':G}}}};var A=Object['getOwnPropertyDescriptor'],j=(_0x2af2b5,_0x41926d,_0x2c5f40,_0x37b80c)=>{for(var _0x2dbdc3=_0x37b80c>0x1?void 0x0:_0x37b80c?A(_0x41926d,_0x2c5f40):_0x41926d,_0x341862=_0x2af2b5['length']-0x1,_0x47aade;_0x341862>=0x0;_0x341862--)(_0x47aade=_0x2af2b5[_0x341862])&&(_0x2dbdc3=_0x47aade(_0x2dbdc3)||_0x2dbdc3);return _0x2dbdc3;},u=(_0xbda029,_0x1ef6c7)=>(_0x31938c,_0x1ce948)=>_0x1ef6c7(_0x31938c,_0x1ce948,_0xbda029);let a=class extends _0x36c065{constructor(_0x4a0c6e,_0x363fb0){var _0xb48ec7=_0x50f0b0;super(),this['_commandService']=_0x4a0c6e,this[_0xb48ec7(0x1d6)]=_0x363fb0,this[_0xb48ec7(0x1bc)](),this[_0xb48ec7(0x1c5)]();}[_0x50f0b0(0x1bc)](){var _0x29f2a2=_0x50f0b0;[d,_][_0x29f2a2(0x1c2)](_0x3920d8=>{var _0x531ba3=_0x29f2a2;this[_0x531ba3(0x1c7)](this[_0x531ba3(0x1dc)][_0x531ba3(0x1bf)](_0x3920d8));});}[_0x50f0b0(0x1c5)](){var _0x22ca10=_0x50f0b0;this[_0x22ca10(0x1d6)][_0x22ca10(0x1c4)](R);}};a=j([u(0x0,_0x3324e0),u(0x1,_0x2ca529)],a);var w=Object[_0x50f0b0(0x1cd)],H=Object['getOwnPropertyDescriptor'],L=(_0x5c804e,_0x7153d7,_0x564f9d)=>_0x7153d7 in _0x5c804e?w(_0x5c804e,_0x7153d7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x564f9d}):_0x5c804e[_0x7153d7]=_0x564f9d,B=(_0x14efa6,_0x5a4ebe,_0x4e43f3,_0x447b22)=>{for(var _0x4c78af=_0x447b22>0x1?void 0x0:_0x447b22?H(_0x5a4ebe,_0x4e43f3):_0x5a4ebe,_0x7932b2=_0x14efa6['length']-0x1,_0x238da1;_0x7932b2>=0x0;_0x7932b2--)(_0x238da1=_0x14efa6[_0x7932b2])&&(_0x4c78af=_0x238da1(_0x4c78af)||_0x4c78af);return _0x4c78af;},g=(_0x2dcce4,_0x171dcd)=>(_0x4daf40,_0x4d8aaf)=>_0x171dcd(_0x4daf40,_0x4d8aaf,_0x2dcce4),O=(_0x27250f,_0x4dfd5f,_0xcefc81)=>L(_0x27250f,typeof _0x4dfd5f!=_0x50f0b0(0x1ce)?_0x4dfd5f+'':_0x4dfd5f,_0xcefc81);const $='DOC_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x261c2a{constructor(_0x361f73=m,_0x502bc3,_0x3dd42d){var _0x4556df=_0x50f0b0;super(),this[_0x4556df(0x1af)]=_0x361f73,this[_0x4556df(0x1bd)]=_0x502bc3,this[_0x4556df(0x1ba)]=_0x3dd42d;const {menu:_0x9ecaab,..._0x46cfb2}=_0x4a0f07({},m,this['_config']);_0x9ecaab&&this[_0x4556df(0x1ba)]['setConfig'](_0x4556df(0x1b0),_0x9ecaab,{'merge':!0x0}),this['_configService'][_0x4556df(0x1c9)](b,_0x46cfb2);}[_0x50f0b0(0x1b1)](){var _0xd91142=_0x50f0b0;[[a]][_0xd91142(0x1c2)](_0x4cd9e4=>this['_injector']['add'](_0x4cd9e4));}[_0x50f0b0(0x1b7)](){var _0x438b79=_0x50f0b0;this['_injector'][_0x438b79(0x1d5)](a);}};O(s,_0x50f0b0(0x1b3),$),O(s,_0x50f0b0(0x1d4),_0x4438eb['UNIVER_DOC']),s=B([_0x5b5985(_0x7be4b1),g(0x1,_0xe68cb7(_0x25baf3)),g(0x2,_0x462184)],s);export{_ as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x50f0b0=_0x3f98;(function(_0x4eb763,_0x5e6c4c){var _0x4c2051=_0x3f98,_0x4f4a2e=_0x4eb763();while(!![]){try{var _0x39fc73=parseInt(_0x4c2051(0x1d7))/0x1+-parseInt(_0x4c2051(0x1b9))/0x2*(-parseInt(_0x4c2051(0x1cb))/0x3)+-parseInt(_0x4c2051(0x1b2))/0x4*(-parseInt(_0x4c2051(0x1d1))/0x5)+parseInt(_0x4c2051(0x1b4))/0x6+-parseInt(_0x4c2051(0x1ca))/0x7*(parseInt(_0x4c2051(0x1bb))/0x8)+-parseInt(_0x4c2051(0x1d0))/0x9*(parseInt(_0x4c2051(0x1d3))/0xa)+parseInt(_0x4c2051(0x1b8))/0xb*(-parseInt(_0x4c2051(0x1be))/0xc);if(_0x39fc73===_0x5e6c4c)break;else _0x4f4a2e['push'](_0x4f4a2e['shift']());}catch(_0x6f3d74){_0x4f4a2e['push'](_0x4f4a2e['shift']());}}}(_0x4053,0x68b2e));import{IExchangeOperateService as _0x5c3364,UniverExchangeClientPlugin as _0x7be4b1}from'@univerjs-pro/exchange-client';import{CommandType as _0x28b870,UniverInstanceType as _0x4438eb,Disposable as _0x36c065,ICommandService as _0x3324e0,DependentOn as _0x5b5985,Inject as _0xe68cb7,Injector as _0x25baf3,IConfigService as _0x462184,Plugin as _0x261c2a,merge as _0x4a0f07}from'@univerjs/core';import{MenuItemType as _0x257d86,getMenuHiddenObservable as _0x16f05a,RibbonStartGroup as _0x406ac9,IMenuManagerService as _0x2ca529}from'@univerjs/ui';const b=_0x50f0b0(0x1c0),m={},d={'id':_0x50f0b0(0x1db),'type':_0x28b870[_0x50f0b0(0x1da)],'handler':async _0x398e02=>(_0x398e02[_0x50f0b0(0x1d5)](_0x5c3364)[_0x50f0b0(0x1d9)](),!0x0)},_={'id':_0x50f0b0(0x1cf),'type':_0x28b870[_0x50f0b0(0x1da)],'handler':async _0x121c1d=>(_0x121c1d[_0x50f0b0(0x1d5)](_0x5c3364)[_0x50f0b0(0x1cc)](),!0x0)},C=_0x50f0b0(0x1b5);function X(_0x2018df){var _0x52a86c=_0x50f0b0;return{'id':C,'type':_0x257d86[_0x52a86c(0x1c3)],'icon':_0x52a86c(0x1c6),'tooltip':'exchange.file','hidden$':_0x16f05a(_0x2018df,_0x4438eb[_0x52a86c(0x1c1)])};}function F(){var _0x12f5f5=_0x50f0b0;return{'id':d['id'],'type':_0x257d86[_0x12f5f5(0x1d8)],'title':'exchange.upload','icon':_0x12f5f5(0x1c8)};}function _0x3f98(_0x5908ff,_0xe8543){var _0x405378=_0x4053();return _0x3f98=function(_0x3f98cf,_0x49ff71){_0x3f98cf=_0x3f98cf-0x1ae;var _0x4b8076=_0x405378[_0x3f98cf];return _0x4b8076;},_0x3f98(_0x5908ff,_0xe8543);}function _0x4053(){var _0x16eff7=['_configService','85336ZeuxLc','_initCommands','_injector','1247748PDLCLK','registerCommand','docs-exchange-client.config','UNIVER_DOC','forEach','SUBITEMS','mergeMenu','_initMenus','DirectExportIcon','disposeWithMe','FolderIcon','setConfig','28wbdVwS','651bzxLhJ','exportDOCXByUnitId','defineProperty','symbol','exchange-client.operation.export-docx','549SzwfKO','27215KJGYJY','OTHERS','114910SOTAUM','type','get','_menuManagerService','328727IIrMcx','BUTTON','importDOCXToUnitId','OPERATION','exchange-client.operation.import-docx','_commandService','ExportIcon','_config','menu','onStarting','548byeqHZ','pluginName','2458596MeRHTM','docs-exchange-client.operation.exchange','exchange.download','onReady','99dFIHFn','5752ZzWIkD'];_0x4053=function(){return _0x16eff7;};return _0x4053();}function G(){var _0xed63eb=_0x50f0b0;return{'id':_['id'],'type':_0x257d86[_0xed63eb(0x1d8)],'title':_0xed63eb(0x1b6),'icon':_0xed63eb(0x1ae)};}const R={[_0x406ac9[_0x50f0b0(0x1d2)]]:{[C]:{'order':0.3,'menuItemFactory':X,[d['id']]:{'order':0x0,'menuItemFactory':F},[_['id']]:{'order':0x1,'menuItemFactory':G}}}};var A=Object['getOwnPropertyDescriptor'],j=(_0x2af2b5,_0x41926d,_0x2c5f40,_0x37b80c)=>{for(var _0x2dbdc3=_0x37b80c>0x1?void 0x0:_0x37b80c?A(_0x41926d,_0x2c5f40):_0x41926d,_0x341862=_0x2af2b5['length']-0x1,_0x47aade;_0x341862>=0x0;_0x341862--)(_0x47aade=_0x2af2b5[_0x341862])&&(_0x2dbdc3=_0x47aade(_0x2dbdc3)||_0x2dbdc3);return _0x2dbdc3;},u=(_0xbda029,_0x1ef6c7)=>(_0x31938c,_0x1ce948)=>_0x1ef6c7(_0x31938c,_0x1ce948,_0xbda029);let a=class extends _0x36c065{constructor(_0x4a0c6e,_0x363fb0){var _0xb48ec7=_0x50f0b0;super(),this['_commandService']=_0x4a0c6e,this[_0xb48ec7(0x1d6)]=_0x363fb0,this[_0xb48ec7(0x1bc)](),this[_0xb48ec7(0x1c5)]();}[_0x50f0b0(0x1bc)](){var _0x29f2a2=_0x50f0b0;[d,_][_0x29f2a2(0x1c2)](_0x3920d8=>{var _0x531ba3=_0x29f2a2;this[_0x531ba3(0x1c7)](this[_0x531ba3(0x1dc)][_0x531ba3(0x1bf)](_0x3920d8));});}[_0x50f0b0(0x1c5)](){var _0x22ca10=_0x50f0b0;this[_0x22ca10(0x1d6)][_0x22ca10(0x1c4)](R);}};a=j([u(0x0,_0x3324e0),u(0x1,_0x2ca529)],a);var w=Object[_0x50f0b0(0x1cd)],H=Object['getOwnPropertyDescriptor'],L=(_0x5c804e,_0x7153d7,_0x564f9d)=>_0x7153d7 in _0x5c804e?w(_0x5c804e,_0x7153d7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x564f9d}):_0x5c804e[_0x7153d7]=_0x564f9d,B=(_0x14efa6,_0x5a4ebe,_0x4e43f3,_0x447b22)=>{for(var _0x4c78af=_0x447b22>0x1?void 0x0:_0x447b22?H(_0x5a4ebe,_0x4e43f3):_0x5a4ebe,_0x7932b2=_0x14efa6['length']-0x1,_0x238da1;_0x7932b2>=0x0;_0x7932b2--)(_0x238da1=_0x14efa6[_0x7932b2])&&(_0x4c78af=_0x238da1(_0x4c78af)||_0x4c78af);return _0x4c78af;},g=(_0x2dcce4,_0x171dcd)=>(_0x4daf40,_0x4d8aaf)=>_0x171dcd(_0x4daf40,_0x4d8aaf,_0x2dcce4),O=(_0x27250f,_0x4dfd5f,_0xcefc81)=>L(_0x27250f,typeof _0x4dfd5f!=_0x50f0b0(0x1ce)?_0x4dfd5f+'':_0x4dfd5f,_0xcefc81);const $='DOC_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x261c2a{constructor(_0x361f73=m,_0x502bc3,_0x3dd42d){var _0x4556df=_0x50f0b0;super(),this[_0x4556df(0x1af)]=_0x361f73,this[_0x4556df(0x1bd)]=_0x502bc3,this[_0x4556df(0x1ba)]=_0x3dd42d;const {menu:_0x9ecaab,..._0x46cfb2}=_0x4a0f07({},m,this['_config']);_0x9ecaab&&this[_0x4556df(0x1ba)]['setConfig'](_0x4556df(0x1b0),_0x9ecaab,{'merge':!0x0}),this['_configService'][_0x4556df(0x1c9)](b,_0x46cfb2);}[_0x50f0b0(0x1b1)](){var _0xd91142=_0x50f0b0;[[a]][_0xd91142(0x1c2)](_0x4cd9e4=>this['_injector']['add'](_0x4cd9e4));}[_0x50f0b0(0x1b7)](){var _0x438b79=_0x50f0b0;this['_injector'][_0x438b79(0x1d5)](a);}};O(s,_0x50f0b0(0x1b3),$),O(s,_0x50f0b0(0x1d4),_0x4438eb['UNIVER_DOC']),s=B([_0x5b5985(_0x7be4b1),g(0x1,_0xe68cb7(_0x25baf3)),g(0x2,_0x462184)],s);export{_ as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x2718(_0x1941be,_0x2a4a1d){var _0xa25538=_0xa255();return _0x2718=function(_0x271892,_0x3f80d8){_0x271892=_0x271892-0x182;var _0x2b3b6c=_0xa25538[_0x271892];return _0x2b3b6c;},_0x2718(_0x1941be,_0x2a4a1d);}(function(_0x5b6a33,_0x4a0cf2){var _0x218e7e=_0x2718,_0x3ab710=_0x5b6a33();while(!![]){try{var _0x759fee=parseInt(_0x218e7e(0x1be))/0x1*(-parseInt(_0x218e7e(0x19f))/0x2)+-parseInt(_0x218e7e(0x1a1))/0x3*(parseInt(_0x218e7e(0x195))/0x4)+-parseInt(_0x218e7e(0x1a2))/0x5*(-parseInt(_0x218e7e(0x1b4))/0x6)+-parseInt(_0x218e7e(0x191))/0x7+parseInt(_0x218e7e(0x1bb))/0x8+parseInt(_0x218e7e(0x192))/0x9*(-parseInt(_0x218e7e(0x184))/0xa)+parseInt(_0x218e7e(0x1b3))/0xb*(parseInt(_0x218e7e(0x1b0))/0xc);if(_0x759fee===_0x4a0cf2)break;else _0x3ab710['push'](_0x3ab710['shift']());}catch(_0x4e6885){_0x3ab710['push'](_0x3ab710['shift']());}}}(_0xa255,0x86a9d),function(_0x35fbe0,_0x15ddb6){var _0xa9833d=_0x2718;typeof exports==_0xa9833d(0x1b9)&&typeof module<'u'?_0x15ddb6(exports,require('@univerjs-pro/exchange-client'),require(_0xa9833d(0x1bc)),require('@univerjs/ui')):typeof define==_0xa9833d(0x1a9)&&define['amd']?define(['exports',_0xa9833d(0x199),'@univerjs/core','@univerjs/ui'],_0x15ddb6):(_0x35fbe0=typeof globalThis<'u'?globalThis:_0x35fbe0||self,_0x15ddb6(_0x35fbe0['UniverProDocsExchangeClient']={},_0x35fbe0[_0xa9833d(0x1a6)],_0x35fbe0['UniverCore'],_0x35fbe0[_0xa9833d(0x189)]));}(this,function(_0x4f1cba,_0x206b44,_0x459f2f,_0x5c4e0a){'use strict';var _0x5c1479=_0x2718;const _0x2bc115='docs-exchange-client.config',_0x42d51d={},_0x5cf09b={'id':_0x5c1479(0x18f),'type':_0x459f2f[_0x5c1479(0x1c4)][_0x5c1479(0x1b6)],'handler':async _0x5e9254=>(_0x5e9254[_0x5c1479(0x1a5)](_0x206b44[_0x5c1479(0x1c0)])[_0x5c1479(0x1b2)](),!0x0)},_0x1b1fe2={'id':_0x5c1479(0x1a7),'type':_0x459f2f[_0x5c1479(0x1c4)][_0x5c1479(0x1b6)],'handler':async _0x30528f=>(_0x30528f[_0x5c1479(0x1a5)](_0x206b44[_0x5c1479(0x1c0)])[_0x5c1479(0x1b1)](),!0x0)},_0x1941dc=_0x5c1479(0x1bd);function _0x5d4f35(_0x2419fa){var _0x3f68c8=_0x5c1479;return{'id':_0x1941dc,'type':_0x5c4e0a[_0x3f68c8(0x18b)]['SUBITEMS'],'icon':_0x3f68c8(0x188),'tooltip':_0x3f68c8(0x1ba),'hidden$':_0x5c4e0a[_0x3f68c8(0x18c)](_0x2419fa,_0x459f2f[_0x3f68c8(0x19c)][_0x3f68c8(0x182)])};}function _0x329cdd(){var _0x37a062=_0x5c1479;return{'id':_0x5cf09b['id'],'type':_0x5c4e0a[_0x37a062(0x18b)]['BUTTON'],'title':_0x37a062(0x1aa),'icon':'FolderIcon'};}function _0x5759e4(){var _0x42deae=_0x5c1479;return{'id':_0x1b1fe2['id'],'type':_0x5c4e0a[_0x42deae(0x18b)][_0x42deae(0x19e)],'title':_0x42deae(0x1c3),'icon':'ExportIcon'};}const _0xc1ab54={[_0x5c4e0a['RibbonStartGroup'][_0x5c1479(0x198)]]:{[_0x1941dc]:{'order':0.3,'menuItemFactory':_0x5d4f35,[_0x5cf09b['id']]:{'order':0x0,'menuItemFactory':_0x329cdd},[_0x1b1fe2['id']]:{'order':0x1,'menuItemFactory':_0x5759e4}}}};var _0x2f75c8=Object['getOwnPropertyDescriptor'],_0x3f5cbf=(_0x48f8a5,_0x21f1c6,_0x4b2197,_0x5bdd97)=>{var _0x5c41ed=_0x5c1479;for(var _0x3c9542=_0x5bdd97>0x1?void 0x0:_0x5bdd97?_0x2f75c8(_0x21f1c6,_0x4b2197):_0x21f1c6,_0x6e650a=_0x48f8a5[_0x5c41ed(0x1b8)]-0x1,_0x5bc960;_0x6e650a>=0x0;_0x6e650a--)(_0x5bc960=_0x48f8a5[_0x6e650a])&&(_0x3c9542=_0x5bc960(_0x3c9542)||_0x3c9542);return _0x3c9542;},_0x54aaa2=(_0x367665,_0x1058dd)=>(_0x3375d9,_0x492867)=>_0x1058dd(_0x3375d9,_0x492867,_0x367665);let _0x4e52a0=class extends _0x459f2f[_0x5c1479(0x19a)]{constructor(_0x53e7bb,_0x4e0be0){var _0x37afba=_0x5c1479;super(),this[_0x37afba(0x18e)]=_0x53e7bb,this[_0x37afba(0x187)]=_0x4e0be0,this[_0x37afba(0x1af)](),this[_0x37afba(0x185)]();}[_0x5c1479(0x1af)](){var _0x852ff0=_0x5c1479;[_0x5cf09b,_0x1b1fe2][_0x852ff0(0x1ae)](_0x1a5b00=>{var _0x3b9898=_0x852ff0;this[_0x3b9898(0x196)](this[_0x3b9898(0x18e)][_0x3b9898(0x1c5)](_0x1a5b00));});}[_0x5c1479(0x185)](){var _0x9982ff=_0x5c1479;this[_0x9982ff(0x187)][_0x9982ff(0x193)](_0xc1ab54);}};_0x4e52a0=_0x3f5cbf([_0x54aaa2(0x0,_0x459f2f[_0x5c1479(0x1a8)]),_0x54aaa2(0x1,_0x5c4e0a[_0x5c1479(0x19d)])],_0x4e52a0);var _0x1305b0=Object[_0x5c1479(0x1b5)],_0x43a9e7=Object[_0x5c1479(0x1c2)],_0x29af14=(_0x2b7b3d,_0x40a650,_0x42f6fe)=>_0x40a650 in _0x2b7b3d?_0x1305b0(_0x2b7b3d,_0x40a650,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x42f6fe}):_0x2b7b3d[_0x40a650]=_0x42f6fe,_0x4e9701=(_0x34ed4b,_0xe2ea72,_0x4120d2,_0x3b2c54)=>{var _0x188a18=_0x5c1479;for(var _0x356e2a=_0x3b2c54>0x1?void 0x0:_0x3b2c54?_0x43a9e7(_0xe2ea72,_0x4120d2):_0xe2ea72,_0x1b3cd5=_0x34ed4b[_0x188a18(0x1b8)]-0x1,_0x14ab76;_0x1b3cd5>=0x0;_0x1b3cd5--)(_0x14ab76=_0x34ed4b[_0x1b3cd5])&&(_0x356e2a=_0x14ab76(_0x356e2a)||_0x356e2a);return _0x356e2a;},_0x4992d3=(_0x14216a,_0xe6c5bf)=>(_0x7b1114,_0x16a4a4)=>_0xe6c5bf(_0x7b1114,_0x16a4a4,_0x14216a),_0x2b5493=(_0x2bad76,_0xe2e20b,_0x600a40)=>_0x29af14(_0x2bad76,typeof _0xe2e20b!='symbol'?_0xe2e20b+'':_0xe2e20b,_0x600a40);const _0x4f1129=_0x5c1479(0x1c1);_0x4f1cba[_0x5c1479(0x1b7)]=class extends _0x459f2f[_0x5c1479(0x1a0)]{constructor(_0x45798e=_0x42d51d,_0x38769f,_0x4d9bbf){var _0x44be2d=_0x5c1479;super(),this[_0x44be2d(0x1a4)]=_0x45798e,this[_0x44be2d(0x1bf)]=_0x38769f,this[_0x44be2d(0x1ad)]=_0x4d9bbf;const {menu:_0x4a39e5,..._0x5d5ea2}=_0x459f2f['merge']({},_0x42d51d,this[_0x44be2d(0x1a4)]);_0x4a39e5&&this[_0x44be2d(0x1ad)][_0x44be2d(0x186)](_0x44be2d(0x1ac),_0x4a39e5,{'merge':!0x0}),this[_0x44be2d(0x1ad)][_0x44be2d(0x186)](_0x2bc115,_0x5d5ea2);}[_0x5c1479(0x1ab)](){var _0x187e09=_0x5c1479;[[_0x4e52a0]]['forEach'](_0x192390=>this[_0x187e09(0x1bf)]['add'](_0x192390));}[_0x5c1479(0x1a3)](){var _0x33fc1c=_0x5c1479;this['_injector'][_0x33fc1c(0x1a5)](_0x4e52a0);}},_0x2b5493(_0x4f1cba[_0x5c1479(0x1b7)],'pluginName',_0x4f1129),_0x2b5493(_0x4f1cba[_0x5c1479(0x1b7)],_0x5c1479(0x18d),_0x459f2f[_0x5c1479(0x19c)][_0x5c1479(0x182)]),_0x4f1cba[_0x5c1479(0x1b7)]=_0x4e9701([_0x459f2f[_0x5c1479(0x190)](_0x206b44['UniverExchangeClientPlugin']),_0x4992d3(0x1,_0x459f2f[_0x5c1479(0x18a)](_0x459f2f[_0x5c1479(0x19b)])),_0x4992d3(0x2,_0x459f2f[_0x5c1479(0x183)])],_0x4f1cba[_0x5c1479(0x1b7)]),_0x4f1cba['ExportDOCXOperation']=_0x1b1fe2,_0x4f1cba[_0x5c1479(0x194)]=_0x5cf09b,Object[_0x5c1479(0x1b5)](_0x4f1cba,Symbol[_0x5c1479(0x197)],{'value':'Module'});}));function _0xa255(){var _0x1e11e7=['OPERATION','UniverDocsExchangeClientPlugin','length','object','exchange.file','2911216FYHCHM','@univerjs/core','docs-exchange-client.operation.exchange','12482ABZGTT','_injector','IExchangeOperateService','DOC_EXCHANGE_CLIENT_PLUGIN','getOwnPropertyDescriptor','exchange.download','CommandType','registerCommand','UNIVER_DOC','IConfigService','9238430eGMHYI','_initMenus','setConfig','_menuManagerService','DirectExportIcon','UniverUi','Inject','MenuItemType','getMenuHiddenObservable','type','_commandService','exchange-client.operation.import-docx','DependentOn','1220527yZumSm','9QbewWH','mergeMenu','ImportDOCXOperation','1421588vFndCf','disposeWithMe','toStringTag','OTHERS','@univerjs-pro/exchange-client','Disposable','Injector','UniverInstanceType','IMenuManagerService','BUTTON','130vVWmQC','Plugin','9bkxrlm','5203315XmAIIG','onReady','_config','get','UniverProExchangeClient','exchange-client.operation.export-docx','ICommandService','function','exchange.upload','onStarting','menu','_configService','forEach','_initCommands','12FDlyir','exportDOCXByUnitId','importDOCXToUnitId','23350151NUKNOz','6vDFQpo','defineProperty'];_0xa255=function(){return _0x1e11e7;};return _0xa255();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/docs-exchange-client",
|
|
3
|
-
"version": "0.8.0-nightly.
|
|
3
|
+
"version": "0.8.0-nightly.202506021607",
|
|
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.8.0-nightly.
|
|
46
|
-
"@univerjs/
|
|
47
|
-
"@univerjs/
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.8.0-nightly.202506021607",
|
|
46
|
+
"@univerjs/core": "0.8.0-nightly.202506021607",
|
|
47
|
+
"@univerjs/ui": "0.8.0-nightly.202506021607"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"typescript": "^5.8.3",
|