@univerjs-pro/docs-exchange-client 0.7.0-nightly.202505011607 → 0.7.0-nightly.202505021607
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';var
|
|
1
|
+
'use strict';var _0x4a3202=_0x2320;(function(_0x90ee48,_0x200372){var _0x1368f3=_0x2320,_0x141c66=_0x90ee48();while(!![]){try{var _0x1ce012=-parseInt(_0x1368f3(0x173))/0x1+-parseInt(_0x1368f3(0x16c))/0x2+-parseInt(_0x1368f3(0x17d))/0x3*(-parseInt(_0x1368f3(0x18c))/0x4)+-parseInt(_0x1368f3(0x19c))/0x5+parseInt(_0x1368f3(0x19b))/0x6*(-parseInt(_0x1368f3(0x193))/0x7)+-parseInt(_0x1368f3(0x168))/0x8*(parseInt(_0x1368f3(0x17f))/0x9)+parseInt(_0x1368f3(0x196))/0xa;if(_0x1ce012===_0x200372)break;else _0x141c66['push'](_0x141c66['shift']());}catch(_0x2c57a0){_0x141c66['push'](_0x141c66['shift']());}}}(_0x1a7b,0xbc6da));Object['defineProperty'](exports,Symbol[_0x4a3202(0x163)],{'value':_0x4a3202(0x188)});const l=require(_0x4a3202(0x172)),i=require(_0x4a3202(0x185)),a=require(_0x4a3202(0x165)),v=_0x4a3202(0x169),d={},g={'id':_0x4a3202(0x167),'type':i[_0x4a3202(0x187)][_0x4a3202(0x194)],'handler':async _0x3e46eb=>(_0x3e46eb[_0x4a3202(0x184)](l[_0x4a3202(0x19a)])[_0x4a3202(0x18e)](),!0x0)},p={'id':_0x4a3202(0x15b),'type':i['CommandType']['OPERATION'],'handler':async _0x5677ad=>(_0x5677ad[_0x4a3202(0x184)](l[_0x4a3202(0x19a)])[_0x4a3202(0x170)](),!0x0)},h=_0x4a3202(0x198);function I(_0x53a9ed){var _0x11f704=_0x4a3202;return{'id':h,'type':a[_0x11f704(0x18b)][_0x11f704(0x160)],'icon':_0x11f704(0x17c),'tooltip':_0x11f704(0x15e),'hidden$':a[_0x11f704(0x164)](_0x53a9ed,i['UniverInstanceType'][_0x11f704(0x171)])};}function O(){var _0x102452=_0x4a3202;return{'id':g['id'],'type':a[_0x102452(0x18b)]['BUTTON'],'title':_0x102452(0x159),'icon':_0x102452(0x16d)};}function _0x2320(_0x374bb6,_0x3318e4){var _0x1a7bb3=_0x1a7b();return _0x2320=function(_0x232066,_0x14f99c){_0x232066=_0x232066-0x157;var _0x4699e8=_0x1a7bb3[_0x232066];return _0x4699e8;},_0x2320(_0x374bb6,_0x3318e4);}function E(){var _0x4d1d7c=_0x4a3202;return{'id':p['id'],'type':a[_0x4d1d7c(0x18b)][_0x4d1d7c(0x191)],'title':_0x4d1d7c(0x189),'icon':_0x4d1d7c(0x174)};}const x={[a[_0x4a3202(0x162)]['FILE']]:{[h]:{'order':0x4,'menuItemFactory':I,[g['id']]:{'order':0x0,'menuItemFactory':O},[p['id']]:{'order':0x1,'menuItemFactory':E}}}};function _0x1a7b(){var _0x1cedfd=['exchange-client.operation.import-docx','16504dlybhd','docs-exchange-client.config','pluginName','Plugin','1723900yhVpBS','FolderSingle','DependentOn','_injector','exportDOCXByUnitId','UNIVER_DOC','@univerjs-pro/exchange-client','34176ReRimq','ExportSingle','UniverExchangeClientPlugin','UniverDocsExchangeClientPlugin','mergeMenu','disposeWithMe','_initMenus','_config','onStarting','DirectExportSingle','183468YqVENM','ImportDOCXOperation','2403ITDKmI','_configService','_menuManagerService','type','symbol','get','@univerjs/core','_initCommands','CommandType','Module','exchange.download','DOC_EXCHANGE_CLIENT_PLUGIN','MenuItemType','4gMnHZH','registerCommand','importDOCXToUnitId','_commandService','length','BUTTON','onReady','7NzqTaL','OPERATION','IConfigService','27255730QoLnOB','Disposable','docs-exchange-client.operation.exchange','UniverInstanceType','IExchangeOperateService','3232812WaBhTr','145890dzpnaZ','defineProperty','setConfig','exchange.upload','merge','exchange-client.operation.export-docx','Injector','forEach','exchange.file','IMenuManagerService','SUBITEMS','getOwnPropertyDescriptor','RibbonStartGroup','toStringTag','getMenuHiddenObservable','@univerjs/ui','ExportDOCXOperation'];_0x1a7b=function(){return _0x1cedfd;};return _0x1a7b();}var D=Object['getOwnPropertyDescriptor'],f=(_0x359f58,_0x1b9679,_0x43dc83,_0x57afe9)=>{var _0xd8ceed=_0x4a3202;for(var _0x14cc3e=_0x57afe9>0x1?void 0x0:_0x57afe9?D(_0x1b9679,_0x43dc83):_0x1b9679,_0x3018f9=_0x359f58[_0xd8ceed(0x190)]-0x1,_0x5327f6;_0x3018f9>=0x0;_0x3018f9--)(_0x5327f6=_0x359f58[_0x3018f9])&&(_0x14cc3e=_0x5327f6(_0x14cc3e)||_0x14cc3e);return _0x14cc3e;},_=(_0x54afc4,_0x5a6bd9)=>(_0x10aebd,_0xc829cd)=>_0x5a6bd9(_0x10aebd,_0xc829cd,_0x54afc4);let u=class extends i[_0x4a3202(0x197)]{constructor(_0xb5f356,_0xf328c2){var _0x29c36c=_0x4a3202;super(),this[_0x29c36c(0x18f)]=_0xb5f356,this[_0x29c36c(0x181)]=_0xf328c2,this[_0x29c36c(0x186)](),this[_0x29c36c(0x179)]();}[_0x4a3202(0x186)](){[g,p]['forEach'](_0x517c9c=>{var _0x5f3cb0=_0x2320;this[_0x5f3cb0(0x178)](this[_0x5f3cb0(0x18f)][_0x5f3cb0(0x18d)](_0x517c9c));});}[_0x4a3202(0x179)](){var _0x57effd=_0x4a3202;this[_0x57effd(0x181)][_0x57effd(0x177)](x);}};u=f([_(0x0,i['ICommandService']),_(0x1,a[_0x4a3202(0x15f)])],u);var S=Object[_0x4a3202(0x157)],y=Object[_0x4a3202(0x161)],P=(_0x5c9838,_0x48b751,_0xa5cea7)=>_0x48b751 in _0x5c9838?S(_0x5c9838,_0x48b751,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xa5cea7}):_0x5c9838[_0x48b751]=_0xa5cea7,T=(_0x401398,_0x349639,_0x566fa7,_0x440c2a)=>{var _0x381362=_0x4a3202;for(var _0x2856ba=_0x440c2a>0x1?void 0x0:_0x440c2a?y(_0x349639,_0x566fa7):_0x349639,_0x10d270=_0x401398[_0x381362(0x190)]-0x1,_0x577c14;_0x10d270>=0x0;_0x10d270--)(_0x577c14=_0x401398[_0x10d270])&&(_0x2856ba=_0x577c14(_0x2856ba)||_0x2856ba);return _0x2856ba;},m=(_0x2e2423,_0x5bd614)=>(_0x5f2fe6,_0x1cbc82)=>_0x5bd614(_0x5f2fe6,_0x1cbc82,_0x2e2423),C=(_0x27fb10,_0x178337,_0x5c0119)=>P(_0x27fb10,typeof _0x178337!=_0x4a3202(0x183)?_0x178337+'':_0x178337,_0x5c0119);const U=_0x4a3202(0x18a);exports[_0x4a3202(0x176)]=class extends i[_0x4a3202(0x16b)]{constructor(_0x2848b1=d,_0x500377,_0x267486){var _0x535f6d=_0x4a3202;super(),this[_0x535f6d(0x17a)]=_0x2848b1,this[_0x535f6d(0x16f)]=_0x500377,this[_0x535f6d(0x180)]=_0x267486;const {menu:_0x12876a,..._0x50a459}=i[_0x535f6d(0x15a)]({},d,this[_0x535f6d(0x17a)]);_0x12876a&&this[_0x535f6d(0x180)]['setConfig']('menu',_0x12876a,{'merge':!0x0}),this[_0x535f6d(0x180)][_0x535f6d(0x158)](v,_0x50a459);}[_0x4a3202(0x17b)](){var _0x1eae89=_0x4a3202;[[u]][_0x1eae89(0x15d)](_0x27ff5d=>this[_0x1eae89(0x16f)]['add'](_0x27ff5d));}[_0x4a3202(0x192)](){var _0x2a850c=_0x4a3202;this[_0x2a850c(0x16f)]['get'](u);}},C(exports[_0x4a3202(0x176)],_0x4a3202(0x16a),U),C(exports[_0x4a3202(0x176)],_0x4a3202(0x182),i[_0x4a3202(0x199)][_0x4a3202(0x171)]),exports['UniverDocsExchangeClientPlugin']=T([i[_0x4a3202(0x16e)](l[_0x4a3202(0x175)]),m(0x1,i['Inject'](i[_0x4a3202(0x15c)])),m(0x2,i[_0x4a3202(0x195)])],exports['UniverDocsExchangeClientPlugin']),exports[_0x4a3202(0x166)]=p,exports[_0x4a3202(0x17e)]=g;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var _0x2459d8=_0x2a6a;(function(_0x172751,_0x4876d5){var _0x529365=_0x2a6a,_0x2d00bc=_0x172751();while(!![]){try{var _0xba8de8=-parseInt(_0x529365(0xcd))/0x1*(-parseInt(_0x529365(0xda))/0x2)+parseInt(_0x529365(0xdb))/0x3*(parseInt(_0x529365(0xdc))/0x4)+parseInt(_0x529365(0xd1))/0x5+-parseInt(_0x529365(0xe8))/0x6+-parseInt(_0x529365(0xe6))/0x7*(parseInt(_0x529365(0xdf))/0x8)+parseInt(_0x529365(0xee))/0x9*(-parseInt(_0x529365(0xec))/0xa)+parseInt(_0x529365(0xef))/0xb;if(_0xba8de8===_0x4876d5)break;else _0x2d00bc['push'](_0x2d00bc['shift']());}catch(_0x5ad3c9){_0x2d00bc['push'](_0x2d00bc['shift']());}}}(_0x415b,0x6d699));import{IExchangeOperateService as _0x45bb70,UniverExchangeClientPlugin as _0x103a0f}from'@univerjs-pro/exchange-client';function _0x415b(){var _0x2cc7e5=['_configService','_injector','930920GyLtzI','423aufCwD','7692VixcXZ','get','UNIVER_DOC','520ykTUbu','exchange.file','FILE','exportDOCXByUnitId','onReady','mergeMenu','_menuManagerService','4151iipttZ','symbol','3876384wmNvgD','setConfig','ExportSingle','getOwnPropertyDescriptor','70tGZTRU','type','1117017CkHpvX','9466545wVlgHS','defineProperty','exchange.download','importDOCXToUnitId','add','_commandService','1stBbqm','exchange-client.operation.export-docx','length','_initCommands','2021775lNdVaJ','docs-exchange-client.operation.exchange','_config','disposeWithMe','_initMenus','OPERATION','forEach'];_0x415b=function(){return _0x2cc7e5;};return _0x415b();}import{CommandType as _0x50343e,UniverInstanceType as _0x1f88bf,Disposable as _0x521019,ICommandService as _0x5101fa,DependentOn as _0x2a7e50,Inject as _0x6ade35,Injector as _0x51b7f7,IConfigService as _0xa944a8,Plugin as _0x49a467,merge as _0x1c82c4}from'@univerjs/core';import{MenuItemType as _0x276a70,getMenuHiddenObservable as _0x458ce8,RibbonStartGroup as _0xabb7a5,IMenuManagerService as _0x5e683b}from'@univerjs/ui';const b='docs-exchange-client.config',m={},d={'id':'exchange-client.operation.import-docx','type':_0x50343e[_0x2459d8(0xd6)],'handler':async _0x57a6e9=>(_0x57a6e9['get'](_0x45bb70)[_0x2459d8(0xca)](),!0x0)},_={'id':_0x2459d8(0xce),'type':_0x50343e[_0x2459d8(0xd6)],'handler':async _0x4b1ba2=>(_0x4b1ba2[_0x2459d8(0xdd)](_0x45bb70)[_0x2459d8(0xe2)](),!0x0)},I=_0x2459d8(0xd2);function F(_0x9fbd2){var _0x224890=_0x2459d8;return{'id':I,'type':_0x276a70['SUBITEMS'],'icon':'DirectExportSingle','tooltip':_0x224890(0xe0),'hidden$':_0x458ce8(_0x9fbd2,_0x1f88bf[_0x224890(0xde)])};}function _0x2a6a(_0x4b0723,_0xf64b8f){var _0x415b82=_0x415b();return _0x2a6a=function(_0x2a6ac0,_0x4227ac){_0x2a6ac0=_0x2a6ac0-0xca;var _0x218b0b=_0x415b82[_0x2a6ac0];return _0x218b0b;},_0x2a6a(_0x4b0723,_0xf64b8f);}function X(){return{'id':d['id'],'type':_0x276a70['BUTTON'],'title':'exchange.upload','icon':'FolderSingle'};}function G(){var _0x2daaa3=_0x2459d8;return{'id':_['id'],'type':_0x276a70['BUTTON'],'title':_0x2daaa3(0xf1),'icon':_0x2daaa3(0xea)};}const A={[_0xabb7a5[_0x2459d8(0xe1)]]:{[I]:{'order':0x4,'menuItemFactory':F,[d['id']]:{'order':0x0,'menuItemFactory':X},[_['id']]:{'order':0x1,'menuItemFactory':G}}}};var L=Object[_0x2459d8(0xeb)],R=(_0x2554c8,_0x4abd6c,_0xe655fc,_0x3ed9bb)=>{var _0x103333=_0x2459d8;for(var _0x4c7b0e=_0x3ed9bb>0x1?void 0x0:_0x3ed9bb?L(_0x4abd6c,_0xe655fc):_0x4abd6c,_0x181528=_0x2554c8[_0x103333(0xcf)]-0x1,_0x4cc626;_0x181528>=0x0;_0x181528--)(_0x4cc626=_0x2554c8[_0x181528])&&(_0x4c7b0e=_0x4cc626(_0x4c7b0e)||_0x4c7b0e);return _0x4c7b0e;},u=(_0x120af5,_0x5d53c5)=>(_0xa943cd,_0xb02549)=>_0x5d53c5(_0xa943cd,_0xb02549,_0x120af5);let a=class extends _0x521019{constructor(_0x17533c,_0x2d74ff){var _0x255911=_0x2459d8;super(),this[_0x255911(0xcc)]=_0x17533c,this[_0x255911(0xe5)]=_0x2d74ff,this[_0x255911(0xd0)](),this[_0x255911(0xd5)]();}[_0x2459d8(0xd0)](){var _0x37d4e1=_0x2459d8;[d,_][_0x37d4e1(0xd7)](_0x55d565=>{var _0x23c20a=_0x37d4e1;this[_0x23c20a(0xd4)](this[_0x23c20a(0xcc)]['registerCommand'](_0x55d565));});}[_0x2459d8(0xd5)](){var _0x4e266e=_0x2459d8;this[_0x4e266e(0xe5)][_0x4e266e(0xe4)](A);}};a=R([u(0x0,_0x5101fa),u(0x1,_0x5e683b)],a);var j=Object[_0x2459d8(0xf0)],w=Object[_0x2459d8(0xeb)],B=(_0x5414dc,_0x2d3ae8,_0x51bbdf)=>_0x2d3ae8 in _0x5414dc?j(_0x5414dc,_0x2d3ae8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x51bbdf}):_0x5414dc[_0x2d3ae8]=_0x51bbdf,H=(_0x4f54c9,_0x1ba1a1,_0x59c5f8,_0x29d6b8)=>{for(var _0x3f1986=_0x29d6b8>0x1?void 0x0:_0x29d6b8?w(_0x1ba1a1,_0x59c5f8):_0x1ba1a1,_0x121215=_0x4f54c9['length']-0x1,_0x4653c6;_0x121215>=0x0;_0x121215--)(_0x4653c6=_0x4f54c9[_0x121215])&&(_0x3f1986=_0x4653c6(_0x3f1986)||_0x3f1986);return _0x3f1986;},g=(_0x1e8a8b,_0x245445)=>(_0x161ef8,_0x1515a5)=>_0x245445(_0x161ef8,_0x1515a5,_0x1e8a8b),v=(_0x4fbd0f,_0x188238,_0x2b1c35)=>B(_0x4fbd0f,typeof _0x188238!=_0x2459d8(0xe7)?_0x188238+'':_0x188238,_0x2b1c35);const $='DOC_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x49a467{constructor(_0x11330d=m,_0x553eb0,_0x2e728c){var _0x3ed41d=_0x2459d8;super(),this[_0x3ed41d(0xd3)]=_0x11330d,this[_0x3ed41d(0xd9)]=_0x553eb0,this['_configService']=_0x2e728c;const {menu:_0x30e8b2,..._0x51e097}=_0x1c82c4({},m,this[_0x3ed41d(0xd3)]);_0x30e8b2&&this[_0x3ed41d(0xd8)][_0x3ed41d(0xe9)]('menu',_0x30e8b2,{'merge':!0x0}),this[_0x3ed41d(0xd8)][_0x3ed41d(0xe9)](b,_0x51e097);}['onStarting'](){var _0x202a9c=_0x2459d8;[[a]]['forEach'](_0xe55882=>this[_0x202a9c(0xd9)][_0x202a9c(0xcb)](_0xe55882));}[_0x2459d8(0xe3)](){var _0x580317=_0x2459d8;this[_0x580317(0xd9)][_0x580317(0xdd)](a);}};v(s,'pluginName',$),v(s,_0x2459d8(0xed),_0x1f88bf[_0x2459d8(0xde)]),s=H([_0x2a7e50(_0x103a0f),g(0x1,_0x6ade35(_0x51b7f7)),g(0x2,_0xa944a8)],s);export{_ as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var _0x2459d8=_0x2a6a;(function(_0x172751,_0x4876d5){var _0x529365=_0x2a6a,_0x2d00bc=_0x172751();while(!![]){try{var _0xba8de8=-parseInt(_0x529365(0xcd))/0x1*(-parseInt(_0x529365(0xda))/0x2)+parseInt(_0x529365(0xdb))/0x3*(parseInt(_0x529365(0xdc))/0x4)+parseInt(_0x529365(0xd1))/0x5+-parseInt(_0x529365(0xe8))/0x6+-parseInt(_0x529365(0xe6))/0x7*(parseInt(_0x529365(0xdf))/0x8)+parseInt(_0x529365(0xee))/0x9*(-parseInt(_0x529365(0xec))/0xa)+parseInt(_0x529365(0xef))/0xb;if(_0xba8de8===_0x4876d5)break;else _0x2d00bc['push'](_0x2d00bc['shift']());}catch(_0x5ad3c9){_0x2d00bc['push'](_0x2d00bc['shift']());}}}(_0x415b,0x6d699));import{IExchangeOperateService as _0x45bb70,UniverExchangeClientPlugin as _0x103a0f}from'@univerjs-pro/exchange-client';function _0x415b(){var _0x2cc7e5=['_configService','_injector','930920GyLtzI','423aufCwD','7692VixcXZ','get','UNIVER_DOC','520ykTUbu','exchange.file','FILE','exportDOCXByUnitId','onReady','mergeMenu','_menuManagerService','4151iipttZ','symbol','3876384wmNvgD','setConfig','ExportSingle','getOwnPropertyDescriptor','70tGZTRU','type','1117017CkHpvX','9466545wVlgHS','defineProperty','exchange.download','importDOCXToUnitId','add','_commandService','1stBbqm','exchange-client.operation.export-docx','length','_initCommands','2021775lNdVaJ','docs-exchange-client.operation.exchange','_config','disposeWithMe','_initMenus','OPERATION','forEach'];_0x415b=function(){return _0x2cc7e5;};return _0x415b();}import{CommandType as _0x50343e,UniverInstanceType as _0x1f88bf,Disposable as _0x521019,ICommandService as _0x5101fa,DependentOn as _0x2a7e50,Inject as _0x6ade35,Injector as _0x51b7f7,IConfigService as _0xa944a8,Plugin as _0x49a467,merge as _0x1c82c4}from'@univerjs/core';import{MenuItemType as _0x276a70,getMenuHiddenObservable as _0x458ce8,RibbonStartGroup as _0xabb7a5,IMenuManagerService as _0x5e683b}from'@univerjs/ui';const b='docs-exchange-client.config',m={},d={'id':'exchange-client.operation.import-docx','type':_0x50343e[_0x2459d8(0xd6)],'handler':async _0x57a6e9=>(_0x57a6e9['get'](_0x45bb70)[_0x2459d8(0xca)](),!0x0)},_={'id':_0x2459d8(0xce),'type':_0x50343e[_0x2459d8(0xd6)],'handler':async _0x4b1ba2=>(_0x4b1ba2[_0x2459d8(0xdd)](_0x45bb70)[_0x2459d8(0xe2)](),!0x0)},I=_0x2459d8(0xd2);function F(_0x9fbd2){var _0x224890=_0x2459d8;return{'id':I,'type':_0x276a70['SUBITEMS'],'icon':'DirectExportSingle','tooltip':_0x224890(0xe0),'hidden$':_0x458ce8(_0x9fbd2,_0x1f88bf[_0x224890(0xde)])};}function _0x2a6a(_0x4b0723,_0xf64b8f){var _0x415b82=_0x415b();return _0x2a6a=function(_0x2a6ac0,_0x4227ac){_0x2a6ac0=_0x2a6ac0-0xca;var _0x218b0b=_0x415b82[_0x2a6ac0];return _0x218b0b;},_0x2a6a(_0x4b0723,_0xf64b8f);}function X(){return{'id':d['id'],'type':_0x276a70['BUTTON'],'title':'exchange.upload','icon':'FolderSingle'};}function G(){var _0x2daaa3=_0x2459d8;return{'id':_['id'],'type':_0x276a70['BUTTON'],'title':_0x2daaa3(0xf1),'icon':_0x2daaa3(0xea)};}const A={[_0xabb7a5[_0x2459d8(0xe1)]]:{[I]:{'order':0x4,'menuItemFactory':F,[d['id']]:{'order':0x0,'menuItemFactory':X},[_['id']]:{'order':0x1,'menuItemFactory':G}}}};var L=Object[_0x2459d8(0xeb)],R=(_0x2554c8,_0x4abd6c,_0xe655fc,_0x3ed9bb)=>{var _0x103333=_0x2459d8;for(var _0x4c7b0e=_0x3ed9bb>0x1?void 0x0:_0x3ed9bb?L(_0x4abd6c,_0xe655fc):_0x4abd6c,_0x181528=_0x2554c8[_0x103333(0xcf)]-0x1,_0x4cc626;_0x181528>=0x0;_0x181528--)(_0x4cc626=_0x2554c8[_0x181528])&&(_0x4c7b0e=_0x4cc626(_0x4c7b0e)||_0x4c7b0e);return _0x4c7b0e;},u=(_0x120af5,_0x5d53c5)=>(_0xa943cd,_0xb02549)=>_0x5d53c5(_0xa943cd,_0xb02549,_0x120af5);let a=class extends _0x521019{constructor(_0x17533c,_0x2d74ff){var _0x255911=_0x2459d8;super(),this[_0x255911(0xcc)]=_0x17533c,this[_0x255911(0xe5)]=_0x2d74ff,this[_0x255911(0xd0)](),this[_0x255911(0xd5)]();}[_0x2459d8(0xd0)](){var _0x37d4e1=_0x2459d8;[d,_][_0x37d4e1(0xd7)](_0x55d565=>{var _0x23c20a=_0x37d4e1;this[_0x23c20a(0xd4)](this[_0x23c20a(0xcc)]['registerCommand'](_0x55d565));});}[_0x2459d8(0xd5)](){var _0x4e266e=_0x2459d8;this[_0x4e266e(0xe5)][_0x4e266e(0xe4)](A);}};a=R([u(0x0,_0x5101fa),u(0x1,_0x5e683b)],a);var j=Object[_0x2459d8(0xf0)],w=Object[_0x2459d8(0xeb)],B=(_0x5414dc,_0x2d3ae8,_0x51bbdf)=>_0x2d3ae8 in _0x5414dc?j(_0x5414dc,_0x2d3ae8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x51bbdf}):_0x5414dc[_0x2d3ae8]=_0x51bbdf,H=(_0x4f54c9,_0x1ba1a1,_0x59c5f8,_0x29d6b8)=>{for(var _0x3f1986=_0x29d6b8>0x1?void 0x0:_0x29d6b8?w(_0x1ba1a1,_0x59c5f8):_0x1ba1a1,_0x121215=_0x4f54c9['length']-0x1,_0x4653c6;_0x121215>=0x0;_0x121215--)(_0x4653c6=_0x4f54c9[_0x121215])&&(_0x3f1986=_0x4653c6(_0x3f1986)||_0x3f1986);return _0x3f1986;},g=(_0x1e8a8b,_0x245445)=>(_0x161ef8,_0x1515a5)=>_0x245445(_0x161ef8,_0x1515a5,_0x1e8a8b),v=(_0x4fbd0f,_0x188238,_0x2b1c35)=>B(_0x4fbd0f,typeof _0x188238!=_0x2459d8(0xe7)?_0x188238+'':_0x188238,_0x2b1c35);const $='DOC_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x49a467{constructor(_0x11330d=m,_0x553eb0,_0x2e728c){var _0x3ed41d=_0x2459d8;super(),this[_0x3ed41d(0xd3)]=_0x11330d,this[_0x3ed41d(0xd9)]=_0x553eb0,this['_configService']=_0x2e728c;const {menu:_0x30e8b2,..._0x51e097}=_0x1c82c4({},m,this[_0x3ed41d(0xd3)]);_0x30e8b2&&this[_0x3ed41d(0xd8)][_0x3ed41d(0xe9)]('menu',_0x30e8b2,{'merge':!0x0}),this[_0x3ed41d(0xd8)][_0x3ed41d(0xe9)](b,_0x51e097);}['onStarting'](){var _0x202a9c=_0x2459d8;[[a]]['forEach'](_0xe55882=>this[_0x202a9c(0xd9)][_0x202a9c(0xcb)](_0xe55882));}[_0x2459d8(0xe3)](){var _0x580317=_0x2459d8;this[_0x580317(0xd9)][_0x580317(0xdd)](a);}};v(s,'pluginName',$),v(s,_0x2459d8(0xed),_0x1f88bf[_0x2459d8(0xde)]),s=H([_0x2a7e50(_0x103a0f),g(0x1,_0x6ade35(_0x51b7f7)),g(0x2,_0xa944a8)],s);export{_ as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x3591(){var _0x13f4b3=['pluginName','FILE','728035sDjukk','mergeMenu','DependentOn','toStringTag','UniverDocsExchangeClientPlugin','141290TmcGyo','@univerjs/ui','importDOCXToUnitId','441khWNrY','MenuItemType','function','RibbonStartGroup','UniverProDocsExchangeClient','Inject','24828oJvSfx','symbol','forEach','_initCommands','Disposable','_initMenus','merge','add','_configService','_commandService','_config','@univerjs-pro/exchange-client','length','@univerjs/core','_injector','DOC_EXCHANGE_CLIENT_PLUGIN','6044CdpcYw','12067ukEjzP','getOwnPropertyDescriptor','IMenuManagerService','docs-exchange-client.config','onStarting','10274JLqxdh','2xEsGvq','UniverProExchangeClient','66UrOUOk','_menuManagerService','IExchangeOperateService','menu','exchange-client.operation.import-docx','534RpFsMD','defineProperty','exportDOCXByUnitId','UniverUi','disposeWithMe','amd','ExportDOCXOperation','BUTTON','UniverExchangeClientPlugin','get','34349pBQfuP','4618488vIxFaQ','OPERATION','Injector','Plugin','UNIVER_DOC','CommandType','exports','setConfig','DirectExportSingle','type','IConfigService','FolderSingle','UniverInstanceType'];_0x3591=function(){return _0x13f4b3;};return _0x3591();}function _0x1536(_0x4bbe6a,_0x597bc6){var _0x35915c=_0x3591();return _0x1536=function(_0x1536a6,_0x2de567){_0x1536a6=_0x1536a6-0x1ae;var _0x4a5d11=_0x35915c[_0x1536a6];return _0x4a5d11;},_0x1536(_0x4bbe6a,_0x597bc6);}(function(_0x1356ee,_0x849bd5){var _0x530bc7=_0x1536,_0x4ffe15=_0x1356ee();while(!![]){try{var _0x33de3f=-parseInt(_0x530bc7(0x1d5))/0x1*(-parseInt(_0x530bc7(0x1d6))/0x2)+-parseInt(_0x530bc7(0x1d8))/0x3*(-parseInt(_0x530bc7(0x1cf))/0x4)+-parseInt(_0x530bc7(0x1b1))/0x5+parseInt(_0x530bc7(0x1dd))/0x6*(-parseInt(_0x530bc7(0x1e7))/0x7)+-parseInt(_0x530bc7(0x1e8))/0x8+-parseInt(_0x530bc7(0x1b9))/0x9*(parseInt(_0x530bc7(0x1b6))/0xa)+-parseInt(_0x530bc7(0x1d0))/0xb*(-parseInt(_0x530bc7(0x1bf))/0xc);if(_0x33de3f===_0x849bd5)break;else _0x4ffe15['push'](_0x4ffe15['shift']());}catch(_0x6a4248){_0x4ffe15['push'](_0x4ffe15['shift']());}}}(_0x3591,0x709bf),function(_0xa3be00,_0x230291){var _0x53fa45=_0x1536;typeof exports=='object'&&typeof module<'u'?_0x230291(exports,require(_0x53fa45(0x1ca)),require('@univerjs/core'),require(_0x53fa45(0x1b7))):typeof define==_0x53fa45(0x1bb)&&define[_0x53fa45(0x1e2)]?define([_0x53fa45(0x1ee),_0x53fa45(0x1ca),_0x53fa45(0x1cc),_0x53fa45(0x1b7)],_0x230291):(_0xa3be00=typeof globalThis<'u'?globalThis:_0xa3be00||self,_0x230291(_0xa3be00[_0x53fa45(0x1bd)]={},_0xa3be00[_0x53fa45(0x1d7)],_0xa3be00['UniverCore'],_0xa3be00[_0x53fa45(0x1e0)]));}(this,function(_0x32f256,_0x1e282b,_0x1fa435,_0x2efc4e){'use strict';var _0x4ff943=_0x1536;const _0x46a313=_0x4ff943(0x1d3),_0x28011d={},_0x298d47={'id':_0x4ff943(0x1dc),'type':_0x1fa435[_0x4ff943(0x1ed)][_0x4ff943(0x1e9)],'handler':async _0x4b13e8=>(_0x4b13e8[_0x4ff943(0x1e6)](_0x1e282b['IExchangeOperateService'])[_0x4ff943(0x1b8)](),!0x0)},_0x933d45={'id':'exchange-client.operation.export-docx','type':_0x1fa435[_0x4ff943(0x1ed)][_0x4ff943(0x1e9)],'handler':async _0x4c4031=>(_0x4c4031[_0x4ff943(0x1e6)](_0x1e282b[_0x4ff943(0x1da)])[_0x4ff943(0x1df)](),!0x0)},_0x4399ab='docs-exchange-client.operation.exchange';function _0x3e0852(_0x5e9805){var _0x4ac5b3=_0x4ff943;return{'id':_0x4399ab,'type':_0x2efc4e[_0x4ac5b3(0x1ba)]['SUBITEMS'],'icon':_0x4ac5b3(0x1f0),'tooltip':'exchange.file','hidden$':_0x2efc4e['getMenuHiddenObservable'](_0x5e9805,_0x1fa435[_0x4ac5b3(0x1ae)][_0x4ac5b3(0x1ec)])};}function _0x12d069(){var _0x520045=_0x4ff943;return{'id':_0x298d47['id'],'type':_0x2efc4e[_0x520045(0x1ba)][_0x520045(0x1e4)],'title':'exchange.upload','icon':_0x520045(0x1f3)};}function _0x5e2067(){var _0x3e8db1=_0x4ff943;return{'id':_0x933d45['id'],'type':_0x2efc4e[_0x3e8db1(0x1ba)][_0x3e8db1(0x1e4)],'title':'exchange.download','icon':'ExportSingle'};}const _0x51a68b={[_0x2efc4e[_0x4ff943(0x1bc)][_0x4ff943(0x1b0)]]:{[_0x4399ab]:{'order':0x4,'menuItemFactory':_0x3e0852,[_0x298d47['id']]:{'order':0x0,'menuItemFactory':_0x12d069},[_0x933d45['id']]:{'order':0x1,'menuItemFactory':_0x5e2067}}}};var _0x288098=Object['getOwnPropertyDescriptor'],_0x17bffa=(_0x113367,_0x1fc7b8,_0x1a2a99,_0x5998e7)=>{var _0xec57c5=_0x4ff943;for(var _0x42b784=_0x5998e7>0x1?void 0x0:_0x5998e7?_0x288098(_0x1fc7b8,_0x1a2a99):_0x1fc7b8,_0x4ecb78=_0x113367[_0xec57c5(0x1cb)]-0x1,_0x56c791;_0x4ecb78>=0x0;_0x4ecb78--)(_0x56c791=_0x113367[_0x4ecb78])&&(_0x42b784=_0x56c791(_0x42b784)||_0x42b784);return _0x42b784;},_0x278092=(_0x283415,_0x2fcb9a)=>(_0x52f99f,_0x39176f)=>_0x2fcb9a(_0x52f99f,_0x39176f,_0x283415);let _0x411dc6=class extends _0x1fa435[_0x4ff943(0x1c3)]{constructor(_0x2c918c,_0x3850c4){var _0x5d99b7=_0x4ff943;super(),this[_0x5d99b7(0x1c8)]=_0x2c918c,this['_menuManagerService']=_0x3850c4,this[_0x5d99b7(0x1c2)](),this[_0x5d99b7(0x1c4)]();}[_0x4ff943(0x1c2)](){var _0x5d634a=_0x4ff943;[_0x298d47,_0x933d45][_0x5d634a(0x1c1)](_0x1b9dc3=>{var _0x1374bc=_0x5d634a;this[_0x1374bc(0x1e1)](this[_0x1374bc(0x1c8)]['registerCommand'](_0x1b9dc3));});}[_0x4ff943(0x1c4)](){var _0x37d3de=_0x4ff943;this[_0x37d3de(0x1d9)][_0x37d3de(0x1b2)](_0x51a68b);}};_0x411dc6=_0x17bffa([_0x278092(0x0,_0x1fa435['ICommandService']),_0x278092(0x1,_0x2efc4e[_0x4ff943(0x1d2)])],_0x411dc6);var _0x1156a7=Object[_0x4ff943(0x1de)],_0x36956b=Object[_0x4ff943(0x1d1)],_0x20d062=(_0x57da3a,_0x34ae44,_0x40b4f4)=>_0x34ae44 in _0x57da3a?_0x1156a7(_0x57da3a,_0x34ae44,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x40b4f4}):_0x57da3a[_0x34ae44]=_0x40b4f4,_0x411ef0=(_0xac6ddc,_0x433776,_0x2db46f,_0x2b16c0)=>{var _0x35d261=_0x4ff943;for(var _0x42642f=_0x2b16c0>0x1?void 0x0:_0x2b16c0?_0x36956b(_0x433776,_0x2db46f):_0x433776,_0x472476=_0xac6ddc[_0x35d261(0x1cb)]-0x1,_0xb3762e;_0x472476>=0x0;_0x472476--)(_0xb3762e=_0xac6ddc[_0x472476])&&(_0x42642f=_0xb3762e(_0x42642f)||_0x42642f);return _0x42642f;},_0xfadd7=(_0x5bf5dc,_0x39d1ed)=>(_0x130c09,_0x5786d0)=>_0x39d1ed(_0x130c09,_0x5786d0,_0x5bf5dc),_0x369b57=(_0x67f724,_0x5d595c,_0x2082d2)=>_0x20d062(_0x67f724,typeof _0x5d595c!=_0x4ff943(0x1c0)?_0x5d595c+'':_0x5d595c,_0x2082d2);const _0x157598=_0x4ff943(0x1ce);_0x32f256[_0x4ff943(0x1b5)]=class extends _0x1fa435[_0x4ff943(0x1eb)]{constructor(_0x3feb4e=_0x28011d,_0x266512,_0xc6116c){var _0x9f7e9d=_0x4ff943;super(),this[_0x9f7e9d(0x1c9)]=_0x3feb4e,this['_injector']=_0x266512,this[_0x9f7e9d(0x1c7)]=_0xc6116c;const {menu:_0x26369f,..._0x4ba498}=_0x1fa435[_0x9f7e9d(0x1c5)]({},_0x28011d,this['_config']);_0x26369f&&this['_configService'][_0x9f7e9d(0x1ef)](_0x9f7e9d(0x1db),_0x26369f,{'merge':!0x0}),this['_configService'][_0x9f7e9d(0x1ef)](_0x46a313,_0x4ba498);}[_0x4ff943(0x1d4)](){var _0x1032ea=_0x4ff943;[[_0x411dc6]][_0x1032ea(0x1c1)](_0x52257a=>this[_0x1032ea(0x1cd)][_0x1032ea(0x1c6)](_0x52257a));}['onReady'](){var _0x1d5d1b=_0x4ff943;this[_0x1d5d1b(0x1cd)][_0x1d5d1b(0x1e6)](_0x411dc6);}},_0x369b57(_0x32f256[_0x4ff943(0x1b5)],_0x4ff943(0x1af),_0x157598),_0x369b57(_0x32f256[_0x4ff943(0x1b5)],_0x4ff943(0x1f1),_0x1fa435[_0x4ff943(0x1ae)][_0x4ff943(0x1ec)]),_0x32f256[_0x4ff943(0x1b5)]=_0x411ef0([_0x1fa435[_0x4ff943(0x1b3)](_0x1e282b[_0x4ff943(0x1e5)]),_0xfadd7(0x1,_0x1fa435[_0x4ff943(0x1be)](_0x1fa435[_0x4ff943(0x1ea)])),_0xfadd7(0x2,_0x1fa435[_0x4ff943(0x1f2)])],_0x32f256['UniverDocsExchangeClientPlugin']),_0x32f256[_0x4ff943(0x1e3)]=_0x933d45,_0x32f256['ImportDOCXOperation']=_0x298d47,Object['defineProperty'](_0x32f256,Symbol[_0x4ff943(0x1b4)],{'value':'Module'});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/docs-exchange-client",
|
|
3
|
-
"version": "0.7.0-nightly.
|
|
3
|
+
"version": "0.7.0-nightly.202505021607",
|
|
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.7.0-nightly.
|
|
46
|
-
"@univerjs/core": "0.7.0-nightly.
|
|
47
|
-
"@univerjs/ui": "0.7.0-nightly.
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.7.0-nightly.202505021607",
|
|
46
|
+
"@univerjs/core": "0.7.0-nightly.202505021607",
|
|
47
|
+
"@univerjs/ui": "0.7.0-nightly.202505021607"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"typescript": "^5.8.3",
|