@univerjs-pro/docs-exchange-client 0.12.4 → 0.13.0
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 +6 -6
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x103f(){var _0x2f3bcc=['Module','751677JhffrX','32855RDfqdY','DOC_EXCHANGE_CLIENT_PLUGIN','MenuItemType','ICommandService','_config','disposeWithMe','SUBITEMS','4162980kDmWSv','toStringTag','UniverExchangeClientPlugin','1787806MRcPfR','OPERATION','defineProperty','_injector','UniverDocsExchangeClientPlugin','BUTTON','1KhtonY','pluginName','OTHERS','805HuFghl','forEach','462JZKKcE','get','Inject','9WkFpMa','41228814ZgzWmh','length','_initMenus','onStarting','importDOCXToUnitId','ExportIcon','CommandType','Injector','menu','ImportDOCXOperation','docs-exchange-client.config','UniverInstanceType','Plugin','onReady','DependentOn','FolderIcon','_menuManagerService','exchange.download','_configService','ExportDOCXOperation','mergeMenu','IMenuManagerService','registerCommand','3323284ZswdRs','docs-exchange-client.operation.exchange','type','getMenuHiddenObservable','62056CbyEhR','UNIVER_DOC','symbol','exchange-client.operation.export-docx','setConfig','exchange.file','DirectExportIcon','_initCommands','getOwnPropertyDescriptor','IConfigService','IExchangeOperateService'];_0x103f=function(){return _0x2f3bcc;};return _0x103f();}var _0x4cf90a=_0x5245;(function(_0x5f809c,_0x3bb779){var _0x224d79=_0x5245,_0x161dab=_0x5f809c();while(!![]){try{var _0x470e2f=-parseInt(_0x224d79(0x91))/0x1*(parseInt(_0x224d79(0xcc))/0x2)+parseInt(_0x224d79(0xc1))/0x3+-parseInt(_0x224d79(0xb1))/0x4+parseInt(_0x224d79(0xc2))/0x5*(-parseInt(_0x224d79(0x96))/0x6)+parseInt(_0x224d79(0x94))/0x7*(-parseInt(_0x224d79(0xb5))/0x8)+-parseInt(_0x224d79(0x99))/0x9*(parseInt(_0x224d79(0xc9))/0xa)+parseInt(_0x224d79(0x9a))/0xb;if(_0x470e2f===_0x3bb779)break;else _0x161dab['push'](_0x161dab['shift']());}catch(_0xb1ee3b){_0x161dab['push'](_0x161dab['shift']());}}}(_0x103f,0x70345));Object[_0x4cf90a(0x8d)](exports,Symbol[_0x4cf90a(0xca)],{'value':_0x4cf90a(0xc0)});const d=require('@univerjs-pro/exchange-client'),i=require('@univerjs/core'),a=require('@univerjs/ui'),p={'id':'exchange-client.operation.import-docx','type':i[_0x4cf90a(0xa0)]['OPERATION'],'handler':async _0x944e60=>(_0x944e60[_0x4cf90a(0x97)](d[_0x4cf90a(0xbf)])[_0x4cf90a(0x9e)](),!0x0)},g={'id':_0x4cf90a(0xb8),'type':i[_0x4cf90a(0xa0)][_0x4cf90a(0xcd)],'handler':async _0x48890e=>(_0x48890e[_0x4cf90a(0x97)](d['IExchangeOperateService'])['exportDOCXByUnitId'](),!0x0)},I=_0x4cf90a(0xa4),l={},h=_0x4cf90a(0xb2);function v(_0x174be6){var _0x38f179=_0x4cf90a;return{'id':h,'type':a['MenuItemType'][_0x38f179(0xc8)],'icon':_0x38f179(0xbb),'tooltip':_0x38f179(0xba),'hidden$':a[_0x38f179(0xb4)](_0x174be6,i[_0x38f179(0xa5)]['UNIVER_DOC'])};}function O(){var _0x35a2a5=_0x4cf90a;return{'id':p['id'],'type':a[_0x35a2a5(0xc4)]['BUTTON'],'title':'exchange.upload','icon':_0x35a2a5(0xa9)};}function _0x5245(_0x14e1e7,_0x526ae4){_0x14e1e7=_0x14e1e7-0x8d;var _0x103f9f=_0x103f();var _0x5245ab=_0x103f9f[_0x14e1e7];return _0x5245ab;}function E(){var _0x4d3247=_0x4cf90a;return{'id':g['id'],'type':a[_0x4d3247(0xc4)][_0x4d3247(0x90)],'title':_0x4d3247(0xab),'icon':_0x4d3247(0x9f)};}const x={[a['RibbonStartGroup'][_0x4cf90a(0x93)]]:{[h]:{'order':0.3,'menuItemFactory':v,[p['id']]:{'order':0x0,'menuItemFactory':O},[g['id']]:{'order':0x1,'menuItemFactory':E}}}};var D=Object['getOwnPropertyDescriptor'],f=(_0x23f0bc,_0xa59005,_0x41acc2,_0x21cd56)=>{var _0x5b60a3=_0x4cf90a;for(var _0x495ef4=_0x21cd56>0x1?void 0x0:_0x21cd56?D(_0xa59005,_0x41acc2):_0xa59005,_0x4ab4db=_0x23f0bc[_0x5b60a3(0x9b)]-0x1,_0x4546a4;_0x4ab4db>=0x0;_0x4ab4db--)(_0x4546a4=_0x23f0bc[_0x4ab4db])&&(_0x495ef4=_0x4546a4(_0x495ef4)||_0x495ef4);return _0x495ef4;},_=(_0x226abb,_0x232302)=>(_0x101b0e,_0x5c35f3)=>_0x232302(_0x101b0e,_0x5c35f3,_0x226abb);let u=class extends i['Disposable']{constructor(_0x5f1f77,_0x308392){var _0x59fbb5=_0x4cf90a;super(),this['_commandService']=_0x5f1f77,this[_0x59fbb5(0xaa)]=_0x308392,this[_0x59fbb5(0xbc)](),this[_0x59fbb5(0x9c)]();}['_initCommands'](){var _0x4478f0=_0x4cf90a;[p,g][_0x4478f0(0x95)](_0x5d55be=>{var _0x5cca58=_0x4478f0;this[_0x5cca58(0xc7)](this['_commandService'][_0x5cca58(0xb0)](_0x5d55be));});}[_0x4cf90a(0x9c)](){var _0x44c470=_0x4cf90a;this[_0x44c470(0xaa)][_0x44c470(0xae)](x);}};u=f([_(0x0,i[_0x4cf90a(0xc5)]),_(0x1,a[_0x4cf90a(0xaf)])],u);var y=Object[_0x4cf90a(0x8d)],S=Object[_0x4cf90a(0xbd)],P=(_0x50c81e,_0x8142ce,_0x2a2491)=>_0x8142ce in _0x50c81e?y(_0x50c81e,_0x8142ce,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2a2491}):_0x50c81e[_0x8142ce]=_0x2a2491,T=(_0x4abec5,_0x22fc22,_0xe461d4,_0x5a3931)=>{var _0xe81b3b=_0x4cf90a;for(var _0x30d935=_0x5a3931>0x1?void 0x0:_0x5a3931?S(_0x22fc22,_0xe461d4):_0x22fc22,_0x1db43b=_0x4abec5[_0xe81b3b(0x9b)]-0x1,_0x75af4a;_0x1db43b>=0x0;_0x1db43b--)(_0x75af4a=_0x4abec5[_0x1db43b])&&(_0x30d935=_0x75af4a(_0x30d935)||_0x30d935);return _0x30d935;},m=(_0x1f862b,_0x3a4b41)=>(_0x5b4ff7,_0x4b8e40)=>_0x3a4b41(_0x5b4ff7,_0x4b8e40,_0x1f862b),C=(_0x1e769c,_0x1a9856,_0x13c5a0)=>P(_0x1e769c,typeof _0x1a9856!=_0x4cf90a(0xb7)?_0x1a9856+'':_0x1a9856,_0x13c5a0);const U=_0x4cf90a(0xc3);exports[_0x4cf90a(0x8f)]=class extends i[_0x4cf90a(0xa6)]{constructor(_0x230116=l,_0x543df8,_0x4666bc){var _0x41535c=_0x4cf90a;super(),this[_0x41535c(0xc6)]=_0x230116,this[_0x41535c(0x8e)]=_0x543df8,this[_0x41535c(0xac)]=_0x4666bc;const {menu:_0xf5df1c,..._0x4ada9d}=i['merge']({},l,this[_0x41535c(0xc6)]);_0xf5df1c&&this[_0x41535c(0xac)][_0x41535c(0xb9)](_0x41535c(0xa2),_0xf5df1c,{'merge':!0x0}),this['_configService'][_0x41535c(0xb9)](I,_0x4ada9d);}[_0x4cf90a(0x9d)](){var _0xd1678d=_0x4cf90a;[[u]][_0xd1678d(0x95)](_0xe10cdc=>this[_0xd1678d(0x8e)]['add'](_0xe10cdc));}[_0x4cf90a(0xa7)](){var _0x43faaa=_0x4cf90a;this[_0x43faaa(0x8e)]['get'](u);}},C(exports[_0x4cf90a(0x8f)],_0x4cf90a(0x92),U),C(exports[_0x4cf90a(0x8f)],_0x4cf90a(0xb3),i[_0x4cf90a(0xa5)][_0x4cf90a(0xb6)]),exports[_0x4cf90a(0x8f)]=T([i[_0x4cf90a(0xa8)](d[_0x4cf90a(0xcb)]),m(0x1,i[_0x4cf90a(0x98)](i[_0x4cf90a(0xa1)])),m(0x2,i[_0x4cf90a(0xbe)])],exports[_0x4cf90a(0x8f)]),exports[_0x4cf90a(0xad)]=g,exports[_0x4cf90a(0xa3)]=p;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var _0x4657c1=_0x5c91;(function(_0x347edd,_0x4bca13){var _0x5e4a72=_0x5c91,_0x485fd0=_0x347edd();while(!![]){try{var _0x11c02d=-parseInt(_0x5e4a72(0x176))/0x1+-parseInt(_0x5e4a72(0x182))/0x2+parseInt(_0x5e4a72(0x17a))/0x3*(-parseInt(_0x5e4a72(0x18d))/0x4)+parseInt(_0x5e4a72(0x197))/0x5+-parseInt(_0x5e4a72(0x189))/0x6*(-parseInt(_0x5e4a72(0x188))/0x7)+parseInt(_0x5e4a72(0x17b))/0x8+parseInt(_0x5e4a72(0x17d))/0x9;if(_0x11c02d===_0x4bca13)break;else _0x485fd0['push'](_0x485fd0['shift']());}catch(_0x108574){_0x485fd0['push'](_0x485fd0['shift']());}}}(_0xfcc2,0x4325b));import{IExchangeOperateService as _0x1cd003,UniverExchangeClientPlugin as _0x26bb42}from'@univerjs-pro/exchange-client';import{CommandType as _0x1e8280,UniverInstanceType as _0x54292e,Disposable as _0x2ea075,ICommandService as _0x245d7a,DependentOn as _0x3b7c27,Inject as _0x209d8e,Injector as _0x57e244,IConfigService as _0x24f459,Plugin as _0x31d138,merge as _0x4cfb2a}from'@univerjs/core';import{MenuItemType as _0x49a64b,getMenuHiddenObservable as _0x224f59,RibbonStartGroup as _0x3f1e4f,IMenuManagerService as _0x4c6710}from'@univerjs/ui';const d={'id':_0x4657c1(0x19c),'type':_0x1e8280['OPERATION'],'handler':async _0x2e6d8b=>(_0x2e6d8b['get'](_0x1cd003)[_0x4657c1(0x17c)](),!0x0)},_={'id':_0x4657c1(0x18e),'type':_0x1e8280[_0x4657c1(0x19d)],'handler':async _0x33e1f9=>(_0x33e1f9[_0x4657c1(0x175)](_0x1cd003)[_0x4657c1(0x198)](),!0x0)},b=_0x4657c1(0x179),m={},C='docs-exchange-client.operation.exchange';function X(_0x4c58a5){var _0x4e1b7d=_0x4657c1;return{'id':C,'type':_0x49a64b[_0x4e1b7d(0x192)],'icon':_0x4e1b7d(0x191),'tooltip':_0x4e1b7d(0x18b),'hidden$':_0x224f59(_0x4c58a5,_0x54292e['UNIVER_DOC'])};}function F(){var _0x1a9804=_0x4657c1;return{'id':d['id'],'type':_0x49a64b['BUTTON'],'title':'exchange.upload','icon':_0x1a9804(0x177)};}function G(){var _0x1ebde8=_0x4657c1;return{'id':_['id'],'type':_0x49a64b[_0x1ebde8(0x180)],'title':'exchange.download','icon':'ExportIcon'};}const R={[_0x3f1e4f[_0x4657c1(0x184)]]:{[C]:{'order':0.3,'menuItemFactory':X,[d['id']]:{'order':0x0,'menuItemFactory':F},[_['id']]:{'order':0x1,'menuItemFactory':G}}}};function _0x5c91(_0x36eabd,_0x47fbd9){_0x36eabd=_0x36eabd-0x175;var _0xfcc21b=_0xfcc2();var _0x5c914c=_0xfcc21b[_0x36eabd];return _0x5c914c;}var A=Object['getOwnPropertyDescriptor'],j=(_0x81adcd,_0x275e30,_0x59631c,_0x25f59e)=>{var _0xa8dc3e=_0x4657c1;for(var _0x1b6fc5=_0x25f59e>0x1?void 0x0:_0x25f59e?A(_0x275e30,_0x59631c):_0x275e30,_0x149095=_0x81adcd[_0xa8dc3e(0x18f)]-0x1,_0x3c86df;_0x149095>=0x0;_0x149095--)(_0x3c86df=_0x81adcd[_0x149095])&&(_0x1b6fc5=_0x3c86df(_0x1b6fc5)||_0x1b6fc5);return _0x1b6fc5;},u=(_0x44e112,_0x371f16)=>(_0x2ddafc,_0x691b9d)=>_0x371f16(_0x2ddafc,_0x691b9d,_0x44e112);let a=class extends _0x2ea075{constructor(_0x57ffb6,_0x28acd7){var _0x45b398=_0x4657c1;super(),this['_commandService']=_0x57ffb6,this['_menuManagerService']=_0x28acd7,this[_0x45b398(0x183)](),this[_0x45b398(0x18a)]();}[_0x4657c1(0x183)](){var _0x41da6f=_0x4657c1;[d,_][_0x41da6f(0x18c)](_0x1acea2=>{var _0x33c64b=_0x41da6f;this[_0x33c64b(0x185)](this[_0x33c64b(0x181)][_0x33c64b(0x187)](_0x1acea2));});}[_0x4657c1(0x18a)](){var _0x32093d=_0x4657c1;this[_0x32093d(0x194)]['mergeMenu'](R);}};a=j([u(0x0,_0x245d7a),u(0x1,_0x4c6710)],a);var w=Object[_0x4657c1(0x193)],H=Object['getOwnPropertyDescriptor'],L=(_0x46d39c,_0xaab060,_0xc2f692)=>_0xaab060 in _0x46d39c?w(_0x46d39c,_0xaab060,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc2f692}):_0x46d39c[_0xaab060]=_0xc2f692,B=(_0x173f9d,_0x1b10a4,_0x12e93b,_0x287077)=>{for(var _0x2665c3=_0x287077>0x1?void 0x0:_0x287077?H(_0x1b10a4,_0x12e93b):_0x1b10a4,_0x2e1675=_0x173f9d['length']-0x1,_0x54e583;_0x2e1675>=0x0;_0x2e1675--)(_0x54e583=_0x173f9d[_0x2e1675])&&(_0x2665c3=_0x54e583(_0x2665c3)||_0x2665c3);return _0x2665c3;},g=(_0x531e7e,_0xa46ce5)=>(_0x15498d,_0x139226)=>_0xa46ce5(_0x15498d,_0x139226,_0x531e7e),O=(_0x2d5627,_0x2ad97b,_0x5c7862)=>L(_0x2d5627,typeof _0x2ad97b!=_0x4657c1(0x186)?_0x2ad97b+'':_0x2ad97b,_0x5c7862);const $='DOC_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x31d138{constructor(_0x288b6d=m,_0x11878e,_0x4994f4){var _0x25892e=_0x4657c1;super(),this[_0x25892e(0x17e)]=_0x288b6d,this[_0x25892e(0x196)]=_0x11878e,this[_0x25892e(0x199)]=_0x4994f4;const {menu:_0x35f92c,..._0x4142bf}=_0x4cfb2a({},m,this['_config']);_0x35f92c&&this[_0x25892e(0x199)]['setConfig']('menu',_0x35f92c,{'merge':!0x0}),this[_0x25892e(0x199)][_0x25892e(0x19e)](b,_0x4142bf);}[_0x4657c1(0x19b)](){var _0x3461a8=_0x4657c1;[[a]]['forEach'](_0x3c664f=>this[_0x3461a8(0x196)][_0x3461a8(0x19a)](_0x3c664f));}[_0x4657c1(0x178)](){var _0x3a8c05=_0x4657c1;this[_0x3a8c05(0x196)][_0x3a8c05(0x175)](a);}};O(s,_0x4657c1(0x195),$),O(s,_0x4657c1(0x190),_0x54292e[_0x4657c1(0x17f)]),s=B([_0x3b7c27(_0x26bb42),g(0x1,_0x209d8e(_0x57e244)),g(0x2,_0x24f459)],s);export{_ as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};function _0xfcc2(){var _0x5eeccc=['registerCommand','39599nIejMP','180ediLYq','_initMenus','exchange.file','forEach','8QuzJDj','exchange-client.operation.export-docx','length','type','DirectExportIcon','SUBITEMS','defineProperty','_menuManagerService','pluginName','_injector','990460fDshRs','exportDOCXByUnitId','_configService','add','onStarting','exchange-client.operation.import-docx','OPERATION','setConfig','get','12616qngQln','FolderIcon','onReady','docs-exchange-client.config','748569KIhFhB','2249288TwrBZu','importDOCXToUnitId','2143710KnnYLm','_config','UNIVER_DOC','BUTTON','_commandService','200912qlWqeM','_initCommands','OTHERS','disposeWithMe','symbol'];_0xfcc2=function(){return _0x5eeccc;};return _0xfcc2();}
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var _0x4657c1=_0x5c91;(function(_0x347edd,_0x4bca13){var _0x5e4a72=_0x5c91,_0x485fd0=_0x347edd();while(!![]){try{var _0x11c02d=-parseInt(_0x5e4a72(0x176))/0x1+-parseInt(_0x5e4a72(0x182))/0x2+parseInt(_0x5e4a72(0x17a))/0x3*(-parseInt(_0x5e4a72(0x18d))/0x4)+parseInt(_0x5e4a72(0x197))/0x5+-parseInt(_0x5e4a72(0x189))/0x6*(-parseInt(_0x5e4a72(0x188))/0x7)+parseInt(_0x5e4a72(0x17b))/0x8+parseInt(_0x5e4a72(0x17d))/0x9;if(_0x11c02d===_0x4bca13)break;else _0x485fd0['push'](_0x485fd0['shift']());}catch(_0x108574){_0x485fd0['push'](_0x485fd0['shift']());}}}(_0xfcc2,0x4325b));import{IExchangeOperateService as _0x1cd003,UniverExchangeClientPlugin as _0x26bb42}from'@univerjs-pro/exchange-client';import{CommandType as _0x1e8280,UniverInstanceType as _0x54292e,Disposable as _0x2ea075,ICommandService as _0x245d7a,DependentOn as _0x3b7c27,Inject as _0x209d8e,Injector as _0x57e244,IConfigService as _0x24f459,Plugin as _0x31d138,merge as _0x4cfb2a}from'@univerjs/core';import{MenuItemType as _0x49a64b,getMenuHiddenObservable as _0x224f59,RibbonStartGroup as _0x3f1e4f,IMenuManagerService as _0x4c6710}from'@univerjs/ui';const d={'id':_0x4657c1(0x19c),'type':_0x1e8280['OPERATION'],'handler':async _0x2e6d8b=>(_0x2e6d8b['get'](_0x1cd003)[_0x4657c1(0x17c)](),!0x0)},_={'id':_0x4657c1(0x18e),'type':_0x1e8280[_0x4657c1(0x19d)],'handler':async _0x33e1f9=>(_0x33e1f9[_0x4657c1(0x175)](_0x1cd003)[_0x4657c1(0x198)](),!0x0)},b=_0x4657c1(0x179),m={},C='docs-exchange-client.operation.exchange';function X(_0x4c58a5){var _0x4e1b7d=_0x4657c1;return{'id':C,'type':_0x49a64b[_0x4e1b7d(0x192)],'icon':_0x4e1b7d(0x191),'tooltip':_0x4e1b7d(0x18b),'hidden$':_0x224f59(_0x4c58a5,_0x54292e['UNIVER_DOC'])};}function F(){var _0x1a9804=_0x4657c1;return{'id':d['id'],'type':_0x49a64b['BUTTON'],'title':'exchange.upload','icon':_0x1a9804(0x177)};}function G(){var _0x1ebde8=_0x4657c1;return{'id':_['id'],'type':_0x49a64b[_0x1ebde8(0x180)],'title':'exchange.download','icon':'ExportIcon'};}const R={[_0x3f1e4f[_0x4657c1(0x184)]]:{[C]:{'order':0.3,'menuItemFactory':X,[d['id']]:{'order':0x0,'menuItemFactory':F},[_['id']]:{'order':0x1,'menuItemFactory':G}}}};function _0x5c91(_0x36eabd,_0x47fbd9){_0x36eabd=_0x36eabd-0x175;var _0xfcc21b=_0xfcc2();var _0x5c914c=_0xfcc21b[_0x36eabd];return _0x5c914c;}var A=Object['getOwnPropertyDescriptor'],j=(_0x81adcd,_0x275e30,_0x59631c,_0x25f59e)=>{var _0xa8dc3e=_0x4657c1;for(var _0x1b6fc5=_0x25f59e>0x1?void 0x0:_0x25f59e?A(_0x275e30,_0x59631c):_0x275e30,_0x149095=_0x81adcd[_0xa8dc3e(0x18f)]-0x1,_0x3c86df;_0x149095>=0x0;_0x149095--)(_0x3c86df=_0x81adcd[_0x149095])&&(_0x1b6fc5=_0x3c86df(_0x1b6fc5)||_0x1b6fc5);return _0x1b6fc5;},u=(_0x44e112,_0x371f16)=>(_0x2ddafc,_0x691b9d)=>_0x371f16(_0x2ddafc,_0x691b9d,_0x44e112);let a=class extends _0x2ea075{constructor(_0x57ffb6,_0x28acd7){var _0x45b398=_0x4657c1;super(),this['_commandService']=_0x57ffb6,this['_menuManagerService']=_0x28acd7,this[_0x45b398(0x183)](),this[_0x45b398(0x18a)]();}[_0x4657c1(0x183)](){var _0x41da6f=_0x4657c1;[d,_][_0x41da6f(0x18c)](_0x1acea2=>{var _0x33c64b=_0x41da6f;this[_0x33c64b(0x185)](this[_0x33c64b(0x181)][_0x33c64b(0x187)](_0x1acea2));});}[_0x4657c1(0x18a)](){var _0x32093d=_0x4657c1;this[_0x32093d(0x194)]['mergeMenu'](R);}};a=j([u(0x0,_0x245d7a),u(0x1,_0x4c6710)],a);var w=Object[_0x4657c1(0x193)],H=Object['getOwnPropertyDescriptor'],L=(_0x46d39c,_0xaab060,_0xc2f692)=>_0xaab060 in _0x46d39c?w(_0x46d39c,_0xaab060,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc2f692}):_0x46d39c[_0xaab060]=_0xc2f692,B=(_0x173f9d,_0x1b10a4,_0x12e93b,_0x287077)=>{for(var _0x2665c3=_0x287077>0x1?void 0x0:_0x287077?H(_0x1b10a4,_0x12e93b):_0x1b10a4,_0x2e1675=_0x173f9d['length']-0x1,_0x54e583;_0x2e1675>=0x0;_0x2e1675--)(_0x54e583=_0x173f9d[_0x2e1675])&&(_0x2665c3=_0x54e583(_0x2665c3)||_0x2665c3);return _0x2665c3;},g=(_0x531e7e,_0xa46ce5)=>(_0x15498d,_0x139226)=>_0xa46ce5(_0x15498d,_0x139226,_0x531e7e),O=(_0x2d5627,_0x2ad97b,_0x5c7862)=>L(_0x2d5627,typeof _0x2ad97b!=_0x4657c1(0x186)?_0x2ad97b+'':_0x2ad97b,_0x5c7862);const $='DOC_EXCHANGE_CLIENT_PLUGIN';let s=class extends _0x31d138{constructor(_0x288b6d=m,_0x11878e,_0x4994f4){var _0x25892e=_0x4657c1;super(),this[_0x25892e(0x17e)]=_0x288b6d,this[_0x25892e(0x196)]=_0x11878e,this[_0x25892e(0x199)]=_0x4994f4;const {menu:_0x35f92c,..._0x4142bf}=_0x4cfb2a({},m,this['_config']);_0x35f92c&&this[_0x25892e(0x199)]['setConfig']('menu',_0x35f92c,{'merge':!0x0}),this[_0x25892e(0x199)][_0x25892e(0x19e)](b,_0x4142bf);}[_0x4657c1(0x19b)](){var _0x3461a8=_0x4657c1;[[a]]['forEach'](_0x3c664f=>this[_0x3461a8(0x196)][_0x3461a8(0x19a)](_0x3c664f));}[_0x4657c1(0x178)](){var _0x3a8c05=_0x4657c1;this[_0x3a8c05(0x196)][_0x3a8c05(0x175)](a);}};O(s,_0x4657c1(0x195),$),O(s,_0x4657c1(0x190),_0x54292e[_0x4657c1(0x17f)]),s=B([_0x3b7c27(_0x26bb42),g(0x1,_0x209d8e(_0x57e244)),g(0x2,_0x24f459)],s);export{_ as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};function _0xfcc2(){var _0x5eeccc=['registerCommand','39599nIejMP','180ediLYq','_initMenus','exchange.file','forEach','8QuzJDj','exchange-client.operation.export-docx','length','type','DirectExportIcon','SUBITEMS','defineProperty','_menuManagerService','pluginName','_injector','990460fDshRs','exportDOCXByUnitId','_configService','add','onStarting','exchange-client.operation.import-docx','OPERATION','setConfig','get','12616qngQln','FolderIcon','onReady','docs-exchange-client.config','748569KIhFhB','2249288TwrBZu','importDOCXToUnitId','2143710KnnYLm','_config','UNIVER_DOC','BUTTON','_commandService','200912qlWqeM','_initCommands','OTHERS','disposeWithMe','symbol'];_0xfcc2=function(){return _0x5eeccc;};return _0xfcc2();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x29a5(){var _0x36ef0b=['function','importDOCXToUnitId','SUBITEMS','forEach','MenuItemType','_injector','menu','ICommandService','setConfig','7524780jYzLxm','2566032xRnRkp','getOwnPropertyDescriptor','defineProperty','Inject','360751uyqcmS','429160MahMKf','CommandType','_commandService','symbol','Module','9NBOqTR','length','UniverInstanceType','@univerjs-pro/exchange-client','onReady','object','onStarting','DirectExportIcon','disposeWithMe','12436mqzLwJ','_configService','merge','exchange.upload','7tSaLLC','get','getMenuHiddenObservable','@univerjs/core','_initMenus','IMenuManagerService','exchange.file','_initCommands','258920vHoCNR','FolderIcon','UniverProExchangeClient','6OBUUiY','docs-exchange-client.operation.exchange','UNIVER_DOC','IExchangeOperateService','UniverCore','ExportIcon','DOC_EXCHANGE_CLIENT_PLUGIN','ImportDOCXOperation','toStringTag','exportDOCXByUnitId','_config','OPERATION','IConfigService','add','ExportDOCXOperation','registerCommand','UniverExchangeClientPlugin','UniverDocsExchangeClientPlugin','1561575yIWYaN','exports','RibbonStartGroup','@univerjs/ui','DependentOn','UniverProDocsExchangeClient','BUTTON','OTHERS'];_0x29a5=function(){return _0x36ef0b;};return _0x29a5();}function _0x1970(_0x2be71a,_0x1de934){_0x2be71a=_0x2be71a-0xf3;var _0x29a5fa=_0x29a5();var _0x19706f=_0x29a5fa[_0x2be71a];return _0x19706f;}(function(_0x3e968e,_0x56f3e7){var _0x479355=_0x1970,_0x22e1cd=_0x3e968e();while(!![]){try{var _0x5df184=parseInt(_0x479355(0x131))/0x1+-parseInt(_0x479355(0xfa))/0x2*(-parseInt(_0x479355(0x109))/0x3)+-parseInt(_0x479355(0x132))/0x4+parseInt(_0x479355(0x11b))/0x5+parseInt(_0x479355(0x12d))/0x6*(parseInt(_0x479355(0xfe))/0x7)+-parseInt(_0x479355(0x106))/0x8*(-parseInt(_0x479355(0x137))/0x9)+-parseInt(_0x479355(0x12c))/0xa;if(_0x5df184===_0x56f3e7)break;else _0x22e1cd['push'](_0x22e1cd['shift']());}catch(_0x2a140c){_0x22e1cd['push'](_0x22e1cd['shift']());}}}(_0x29a5,0x45c4b),function(_0x424a9c,_0x41de8e){var _0x39e484=_0x1970;typeof exports==_0x39e484(0xf6)&&typeof module<'u'?_0x41de8e(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui')):typeof define==_0x39e484(0x123)&&define['amd']?define([_0x39e484(0x11c),_0x39e484(0xf4),_0x39e484(0x101),_0x39e484(0x11e)],_0x41de8e):(_0x424a9c=typeof globalThis<'u'?globalThis:_0x424a9c||self,_0x41de8e(_0x424a9c[_0x39e484(0x120)]={},_0x424a9c[_0x39e484(0x108)],_0x424a9c[_0x39e484(0x10d)],_0x424a9c['UniverUi']));}(this,function(_0x537a8a,_0x48a93b,_0x5b0243,_0x4e44b1){'use strict';var _0x2662dc=_0x1970;const _0x467d81={'id':'exchange-client.operation.import-docx','type':_0x5b0243[_0x2662dc(0x133)]['OPERATION'],'handler':async _0x2a272f=>(_0x2a272f[_0x2662dc(0xff)](_0x48a93b[_0x2662dc(0x10c)])[_0x2662dc(0x124)](),!0x0)},_0x54dfcf={'id':'exchange-client.operation.export-docx','type':_0x5b0243[_0x2662dc(0x133)][_0x2662dc(0x114)],'handler':async _0x4d9a33=>(_0x4d9a33[_0x2662dc(0xff)](_0x48a93b[_0x2662dc(0x10c)])[_0x2662dc(0x112)](),!0x0)},_0x4ee864='docs-exchange-client.config',_0x372ff9={},_0x55ec8c=_0x2662dc(0x10a);function _0x40d120(_0x54c7c6){var _0x27055a=_0x2662dc;return{'id':_0x55ec8c,'type':_0x4e44b1['MenuItemType'][_0x27055a(0x125)],'icon':_0x27055a(0xf8),'tooltip':_0x27055a(0x104),'hidden$':_0x4e44b1[_0x27055a(0x100)](_0x54c7c6,_0x5b0243[_0x27055a(0xf3)][_0x27055a(0x10b)])};}function _0x4719a0(){var _0x3c00bf=_0x2662dc;return{'id':_0x467d81['id'],'type':_0x4e44b1[_0x3c00bf(0x127)][_0x3c00bf(0x121)],'title':_0x3c00bf(0xfd),'icon':_0x3c00bf(0x107)};}function _0x3b7b55(){var _0x578621=_0x2662dc;return{'id':_0x54dfcf['id'],'type':_0x4e44b1[_0x578621(0x127)][_0x578621(0x121)],'title':'exchange.download','icon':_0x578621(0x10e)};}const _0x300e66={[_0x4e44b1[_0x2662dc(0x11d)][_0x2662dc(0x122)]]:{[_0x55ec8c]:{'order':0.3,'menuItemFactory':_0x40d120,[_0x467d81['id']]:{'order':0x0,'menuItemFactory':_0x4719a0},[_0x54dfcf['id']]:{'order':0x1,'menuItemFactory':_0x3b7b55}}}};var _0xa36522=Object['getOwnPropertyDescriptor'],_0x2a12f8=(_0x1c1266,_0x47bae7,_0x36ab10,_0x573a6d)=>{var _0x4234cf=_0x2662dc;for(var _0x1f64f8=_0x573a6d>0x1?void 0x0:_0x573a6d?_0xa36522(_0x47bae7,_0x36ab10):_0x47bae7,_0xaff9a3=_0x1c1266[_0x4234cf(0x138)]-0x1,_0x45fc84;_0xaff9a3>=0x0;_0xaff9a3--)(_0x45fc84=_0x1c1266[_0xaff9a3])&&(_0x1f64f8=_0x45fc84(_0x1f64f8)||_0x1f64f8);return _0x1f64f8;},_0x4d52b2=(_0x365012,_0x4cce0c)=>(_0x323025,_0x4a6a0c)=>_0x4cce0c(_0x323025,_0x4a6a0c,_0x365012);let _0x426bb1=class extends _0x5b0243['Disposable']{constructor(_0x1151be,_0x19fb2a){var _0x290af3=_0x2662dc;super(),this[_0x290af3(0x134)]=_0x1151be,this['_menuManagerService']=_0x19fb2a,this[_0x290af3(0x105)](),this['_initMenus']();}['_initCommands'](){var _0x3c4dd2=_0x2662dc;[_0x467d81,_0x54dfcf][_0x3c4dd2(0x126)](_0x5a5657=>{var _0x4e3bb1=_0x3c4dd2;this[_0x4e3bb1(0xf9)](this[_0x4e3bb1(0x134)][_0x4e3bb1(0x118)](_0x5a5657));});}[_0x2662dc(0x102)](){this['_menuManagerService']['mergeMenu'](_0x300e66);}};_0x426bb1=_0x2a12f8([_0x4d52b2(0x0,_0x5b0243[_0x2662dc(0x12a)]),_0x4d52b2(0x1,_0x4e44b1[_0x2662dc(0x103)])],_0x426bb1);var _0x3daae7=Object[_0x2662dc(0x12f)],_0x257ff9=Object[_0x2662dc(0x12e)],_0x7b9eda=(_0x30a2ef,_0x217e14,_0x2d23ac)=>_0x217e14 in _0x30a2ef?_0x3daae7(_0x30a2ef,_0x217e14,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2d23ac}):_0x30a2ef[_0x217e14]=_0x2d23ac,_0x266155=(_0x3442bd,_0x422591,_0x5728ae,_0x7c9e5)=>{var _0x451439=_0x2662dc;for(var _0x502ea5=_0x7c9e5>0x1?void 0x0:_0x7c9e5?_0x257ff9(_0x422591,_0x5728ae):_0x422591,_0x3b30cb=_0x3442bd[_0x451439(0x138)]-0x1,_0x3d503a;_0x3b30cb>=0x0;_0x3b30cb--)(_0x3d503a=_0x3442bd[_0x3b30cb])&&(_0x502ea5=_0x3d503a(_0x502ea5)||_0x502ea5);return _0x502ea5;},_0x56d1af=(_0x4ea641,_0x13c381)=>(_0x2a6641,_0x554d62)=>_0x13c381(_0x2a6641,_0x554d62,_0x4ea641),_0xa6e1a=(_0x230ea9,_0x15def9,_0xc83601)=>_0x7b9eda(_0x230ea9,typeof _0x15def9!=_0x2662dc(0x135)?_0x15def9+'':_0x15def9,_0xc83601);const _0x331809=_0x2662dc(0x10f);_0x537a8a[_0x2662dc(0x11a)]=class extends _0x5b0243['Plugin']{constructor(_0x460773=_0x372ff9,_0x185894,_0x5b1c1b){var _0x40a1c7=_0x2662dc;super(),this[_0x40a1c7(0x113)]=_0x460773,this[_0x40a1c7(0x128)]=_0x185894,this[_0x40a1c7(0xfb)]=_0x5b1c1b;const {menu:_0x290822,..._0x3c77e1}=_0x5b0243[_0x40a1c7(0xfc)]({},_0x372ff9,this[_0x40a1c7(0x113)]);_0x290822&&this[_0x40a1c7(0xfb)][_0x40a1c7(0x12b)](_0x40a1c7(0x129),_0x290822,{'merge':!0x0}),this[_0x40a1c7(0xfb)][_0x40a1c7(0x12b)](_0x4ee864,_0x3c77e1);}[_0x2662dc(0xf7)](){var _0x4ceb8d=_0x2662dc;[[_0x426bb1]]['forEach'](_0x494b15=>this['_injector'][_0x4ceb8d(0x116)](_0x494b15));}[_0x2662dc(0xf5)](){var _0x207e5c=_0x2662dc;this['_injector'][_0x207e5c(0xff)](_0x426bb1);}},_0xa6e1a(_0x537a8a[_0x2662dc(0x11a)],'pluginName',_0x331809),_0xa6e1a(_0x537a8a[_0x2662dc(0x11a)],'type',_0x5b0243[_0x2662dc(0xf3)][_0x2662dc(0x10b)]),_0x537a8a[_0x2662dc(0x11a)]=_0x266155([_0x5b0243[_0x2662dc(0x11f)](_0x48a93b[_0x2662dc(0x119)]),_0x56d1af(0x1,_0x5b0243[_0x2662dc(0x130)](_0x5b0243['Injector'])),_0x56d1af(0x2,_0x5b0243[_0x2662dc(0x115)])],_0x537a8a[_0x2662dc(0x11a)]),_0x537a8a[_0x2662dc(0x117)]=_0x54dfcf,_0x537a8a[_0x2662dc(0x110)]=_0x467d81,Object[_0x2662dc(0x12f)](_0x537a8a,Symbol[_0x2662dc(0x111)],{'value':_0x2662dc(0x136)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/docs-exchange-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -42,15 +42,15 @@
|
|
|
42
42
|
"lib"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@univerjs/
|
|
46
|
-
"@univerjs/
|
|
47
|
-
"@univerjs
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.13.0",
|
|
46
|
+
"@univerjs/core": "0.13.0",
|
|
47
|
+
"@univerjs/ui": "0.13.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"typescript": "^5.9.3",
|
|
51
|
-
"vite": "^7.2.
|
|
51
|
+
"vite": "^7.2.7",
|
|
52
52
|
"vitest": "^4.0.15",
|
|
53
|
-
"@univerjs-infra/shared": "0.
|
|
53
|
+
"@univerjs-infra/shared": "0.13.0"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"test": "vitest run",
|