@univerjs-pro/docs-exchange-client 0.10.1 → 0.10.2
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 +5 -5
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0xc5fef1=_0x4c90;(function(_0x262b43,_0x18a092){var _0x3d3a17=_0x4c90,_0x39e964=_0x262b43();while(!![]){try{var _0x2834e2=-parseInt(_0x3d3a17(0xbc))/0x1+-parseInt(_0x3d3a17(0xd6))/0x2*(parseInt(_0x3d3a17(0xcb))/0x3)+parseInt(_0x3d3a17(0xe2))/0x4*(parseInt(_0x3d3a17(0xe8))/0x5)+parseInt(_0x3d3a17(0xe9))/0x6*(parseInt(_0x3d3a17(0xc1))/0x7)+-parseInt(_0x3d3a17(0xea))/0x8+-parseInt(_0x3d3a17(0xc4))/0x9*(parseInt(_0x3d3a17(0xb7))/0xa)+parseInt(_0x3d3a17(0xc7))/0xb;if(_0x2834e2===_0x18a092)break;else _0x39e964['push'](_0x39e964['shift']());}catch(_0x3eb986){_0x39e964['push'](_0x39e964['shift']());}}}(_0x5b58,0xc02eb));Object[_0xc5fef1(0xbe)](exports,Symbol[_0xc5fef1(0xb4)],{'value':_0xc5fef1(0xe7)});const d=require('@univerjs-pro/exchange-client'),i=require('@univerjs/core'),a=require('@univerjs/ui'),I=_0xc5fef1(0xd0),l={},p={'id':_0xc5fef1(0xb3),'type':i['CommandType'][_0xc5fef1(0xef)],'handler':async _0xc14bfb=>(_0xc14bfb[_0xc5fef1(0xce)](d[_0xc5fef1(0xd3)])[_0xc5fef1(0xc0)](),!0x0)},g={'id':'exchange-client.operation.export-docx','type':i[_0xc5fef1(0xd1)][_0xc5fef1(0xef)],'handler':async _0x481b38=>(_0x481b38['get'](d['IExchangeOperateService'])[_0xc5fef1(0xdb)](),!0x0)},h=_0xc5fef1(0xd9);function v(_0x9c5342){var _0x22bdab=_0xc5fef1;return{'id':h,'type':a[_0x22bdab(0xd8)][_0x22bdab(0xe6)],'icon':_0x22bdab(0xbd),'tooltip':_0x22bdab(0xd2),'hidden$':a[_0x22bdab(0xb6)](_0x9c5342,i['UniverInstanceType'][_0x22bdab(0xe5)])};}function _0x4c90(_0x1d0745,_0x5a541d){var _0x5b5835=_0x5b58();return _0x4c90=function(_0x4c9039,_0xfcbaa9){_0x4c9039=_0x4c9039-0xb3;var _0x367a3d=_0x5b5835[_0x4c9039];return _0x367a3d;},_0x4c90(_0x1d0745,_0x5a541d);}function O(){var _0x65733=_0xc5fef1;return{'id':p['id'],'type':a[_0x65733(0xd8)][_0x65733(0xf0)],'title':'exchange.upload','icon':_0x65733(0xd7)};}function E(){var _0x3a4a0d=_0xc5fef1;return{'id':g['id'],'type':a[_0x3a4a0d(0xd8)][_0x3a4a0d(0xf0)],'title':'exchange.download','icon':_0x3a4a0d(0xdf)};}const x={[a[_0xc5fef1(0xb9)][_0xc5fef1(0xcd)]]:{[h]:{'order':0.3,'menuItemFactory':v,[p['id']]:{'order':0x0,'menuItemFactory':O},[g['id']]:{'order':0x1,'menuItemFactory':E}}}};var D=Object[_0xc5fef1(0xb5)],f=(_0x4c55ce,_0x456455,_0x5ab837,_0x1fc809)=>{var _0x50b97f=_0xc5fef1;for(var _0xb78bd=_0x1fc809>0x1?void 0x0:_0x1fc809?D(_0x456455,_0x5ab837):_0x456455,_0x256b85=_0x4c55ce[_0x50b97f(0xde)]-0x1,_0x2918c2;_0x256b85>=0x0;_0x256b85--)(_0x2918c2=_0x4c55ce[_0x256b85])&&(_0xb78bd=_0x2918c2(_0xb78bd)||_0xb78bd);return _0xb78bd;},_=(_0x353c8c,_0x10a984)=>(_0x4453ab,_0x45cf87)=>_0x10a984(_0x4453ab,_0x45cf87,_0x353c8c);let u=class extends i['Disposable']{constructor(_0x371ee0,_0x1721ae){var _0x12f531=_0xc5fef1;super(),this['_commandService']=_0x371ee0,this['_menuManagerService']=_0x1721ae,this['_initCommands'](),this[_0x12f531(0xd5)]();}['_initCommands'](){var _0x16db6e=_0xc5fef1;[p,g][_0x16db6e(0xec)](_0x43abaa=>{var _0x359827=_0x16db6e;this[_0x359827(0xc3)](this[_0x359827(0xda)]['registerCommand'](_0x43abaa));});}[_0xc5fef1(0xd5)](){var _0x481810=_0xc5fef1;this[_0x481810(0xe1)]['mergeMenu'](x);}};u=f([_(0x0,i[_0xc5fef1(0xcc)]),_(0x1,a[_0xc5fef1(0xe3)])],u);function _0x5b58(){var _0x3bdd72=['5024592NmuNMT','setConfig','forEach','_injector','DOC_EXCHANGE_CLIENT_PLUGIN','OPERATION','BUTTON','exchange-client.operation.import-docx','toStringTag','getOwnPropertyDescriptor','getMenuHiddenObservable','10iQSXWC','UniverInstanceType','RibbonStartGroup','Injector','pluginName','962469iWnvAi','DirectExportIcon','defineProperty','ImportDOCXOperation','importDOCXToUnitId','1757JSuKFW','UniverExchangeClientPlugin','disposeWithMe','7217289EUwhfU','UniverDocsExchangeClientPlugin','_config','16623332KXXNgy','ExportDOCXOperation','onStarting','IConfigService','19977QBwTaN','ICommandService','OTHERS','get','DependentOn','docs-exchange-client.config','CommandType','exchange.file','IExchangeOperateService','Inject','_initMenus','4SCTzSR','FolderIcon','MenuItemType','docs-exchange-client.operation.exchange','_commandService','exportDOCXByUnitId','_configService','type','length','ExportIcon','merge','_menuManagerService','4GCjxOp','IMenuManagerService','Plugin','UNIVER_DOC','SUBITEMS','Module','2736145NIeeaX','27120FDYmEr'];_0x5b58=function(){return _0x3bdd72;};return _0x5b58();}var y=Object[_0xc5fef1(0xbe)],S=Object['getOwnPropertyDescriptor'],P=(_0x1af64b,_0x316031,_0x6c7560)=>_0x316031 in _0x1af64b?y(_0x1af64b,_0x316031,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x6c7560}):_0x1af64b[_0x316031]=_0x6c7560,T=(_0x320239,_0x48d85a,_0x70569d,_0x4f4de5)=>{var _0x56153b=_0xc5fef1;for(var _0x45b39b=_0x4f4de5>0x1?void 0x0:_0x4f4de5?S(_0x48d85a,_0x70569d):_0x48d85a,_0x193bc4=_0x320239[_0x56153b(0xde)]-0x1,_0x4e6a58;_0x193bc4>=0x0;_0x193bc4--)(_0x4e6a58=_0x320239[_0x193bc4])&&(_0x45b39b=_0x4e6a58(_0x45b39b)||_0x45b39b);return _0x45b39b;},m=(_0x16e874,_0x5e6e95)=>(_0x4ad934,_0x2c7a5f)=>_0x5e6e95(_0x4ad934,_0x2c7a5f,_0x16e874),C=(_0x429cd5,_0x69fce9,_0x310b29)=>P(_0x429cd5,typeof _0x69fce9!='symbol'?_0x69fce9+'':_0x69fce9,_0x310b29);const U=_0xc5fef1(0xee);exports[_0xc5fef1(0xc5)]=class extends i[_0xc5fef1(0xe4)]{constructor(_0x336ce6=l,_0x28e534,_0x2e5b9e){var _0x144678=_0xc5fef1;super(),this['_config']=_0x336ce6,this[_0x144678(0xed)]=_0x28e534,this[_0x144678(0xdc)]=_0x2e5b9e;const {menu:_0xd80b02,..._0x53ab90}=i[_0x144678(0xe0)]({},l,this[_0x144678(0xc6)]);_0xd80b02&&this[_0x144678(0xdc)][_0x144678(0xeb)]('menu',_0xd80b02,{'merge':!0x0}),this[_0x144678(0xdc)][_0x144678(0xeb)](I,_0x53ab90);}[_0xc5fef1(0xc9)](){[[u]]['forEach'](_0x54c5ec=>this['_injector']['add'](_0x54c5ec));}['onReady'](){this['_injector']['get'](u);}},C(exports[_0xc5fef1(0xc5)],_0xc5fef1(0xbb),U),C(exports[_0xc5fef1(0xc5)],_0xc5fef1(0xdd),i[_0xc5fef1(0xb8)][_0xc5fef1(0xe5)]),exports[_0xc5fef1(0xc5)]=T([i[_0xc5fef1(0xcf)](d[_0xc5fef1(0xc2)]),m(0x1,i[_0xc5fef1(0xd4)](i[_0xc5fef1(0xba)])),m(0x2,i[_0xc5fef1(0xca)])],exports[_0xc5fef1(0xc5)]),exports[_0xc5fef1(0xc8)]=g,exports[_0xc5fef1(0xbf)]=p;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x31baf6=_0xb6f6;(function(_0x5c6ccd,_0xc03732){var _0x3ede24=_0xb6f6,_0x1e286d=_0x5c6ccd();while(!![]){try{var _0x4a75e7=parseInt(_0x3ede24(0x17b))/0x1+parseInt(_0x3ede24(0x181))/0x2*(parseInt(_0x3ede24(0x17d))/0x3)+-parseInt(_0x3ede24(0x17f))/0x4*(parseInt(_0x3ede24(0x183))/0x5)+parseInt(_0x3ede24(0x176))/0x6+parseInt(_0x3ede24(0x187))/0x7+parseInt(_0x3ede24(0x177))/0x8*(-parseInt(_0x3ede24(0x174))/0x9)+-parseInt(_0x3ede24(0x16c))/0xa;if(_0x4a75e7===_0xc03732)break;else _0x1e286d['push'](_0x1e286d['shift']());}catch(_0x36c91c){_0x1e286d['push'](_0x1e286d['shift']());}}}(_0x260d,0xa60aa));import{IExchangeOperateService as _0x34cc84,UniverExchangeClientPlugin as _0x390c02}from'@univerjs-pro/exchange-client';import{CommandType as _0xed84c4,UniverInstanceType as _0x5e8348,Disposable as _0x44b786,ICommandService as _0x474892,DependentOn as _0x27e22a,Inject as _0x5c721f,Injector as _0x1bfcc8,IConfigService as _0x279c11,Plugin as _0x26812d,merge as _0x15c085}from'@univerjs/core';function _0x260d(){var _0x5094d1=['symbol','menu','docs-exchange-client.config','onStarting','exchange-client.operation.import-docx','exchange-client.operation.export-docx','18zsaEIp','UNIVER_DOC','6662844ZxmstI','1137496jsLZhm','_commandService','docs-exchange-client.operation.exchange','DOC_EXCHANGE_CLIENT_PLUGIN','424312KWmJfp','pluginName','1299KiUOSo','forEach','2028704AFXOLB','get','2012ghaNYn','_menuManagerService','5vhvpQQ','onReady','_config','setConfig','1968743XDStWU','_initCommands','OPERATION','_configService','_injector','ExportIcon','length','exchange.download','OTHERS','exchange.file','mergeMenu','DirectExportIcon','_initMenus','BUTTON','7799770oyKMqU','SUBITEMS'];_0x260d=function(){return _0x5094d1;};return _0x260d();}import{MenuItemType as _0x141096,getMenuHiddenObservable as _0x126206,RibbonStartGroup as _0x35146d,IMenuManagerService as _0x1922d0}from'@univerjs/ui';const b=_0x31baf6(0x170),m={},d={'id':_0x31baf6(0x172),'type':_0xed84c4[_0x31baf6(0x189)],'handler':async _0x46e89b=>(_0x46e89b['get'](_0x34cc84)['importDOCXToUnitId'](),!0x0)},_={'id':_0x31baf6(0x173),'type':_0xed84c4[_0x31baf6(0x189)],'handler':async _0xecbfaf=>(_0xecbfaf[_0x31baf6(0x180)](_0x34cc84)['exportDOCXByUnitId'](),!0x0)},C=_0x31baf6(0x179);function X(_0x30e2b0){var _0x3ade23=_0x31baf6;return{'id':C,'type':_0x141096[_0x3ade23(0x16d)],'icon':_0x3ade23(0x169),'tooltip':_0x3ade23(0x167),'hidden$':_0x126206(_0x30e2b0,_0x5e8348['UNIVER_DOC'])};}function F(){var _0x352fa2=_0x31baf6;return{'id':d['id'],'type':_0x141096[_0x352fa2(0x16b)],'title':'exchange.upload','icon':'FolderIcon'};}function G(){var _0x1b2fb8=_0x31baf6;return{'id':_['id'],'type':_0x141096['BUTTON'],'title':_0x1b2fb8(0x165),'icon':_0x1b2fb8(0x163)};}const R={[_0x35146d[_0x31baf6(0x166)]]:{[C]:{'order':0.3,'menuItemFactory':X,[d['id']]:{'order':0x0,'menuItemFactory':F},[_['id']]:{'order':0x1,'menuItemFactory':G}}}};var A=Object['getOwnPropertyDescriptor'],j=(_0x1b9984,_0x1ea355,_0x2c9d38,_0x316fd3)=>{var _0x5360d9=_0x31baf6;for(var _0x3c2379=_0x316fd3>0x1?void 0x0:_0x316fd3?A(_0x1ea355,_0x2c9d38):_0x1ea355,_0x2e68f2=_0x1b9984[_0x5360d9(0x164)]-0x1,_0x1db02b;_0x2e68f2>=0x0;_0x2e68f2--)(_0x1db02b=_0x1b9984[_0x2e68f2])&&(_0x3c2379=_0x1db02b(_0x3c2379)||_0x3c2379);return _0x3c2379;},u=(_0x2a8dd7,_0x425416)=>(_0x223e25,_0x2d1b70)=>_0x425416(_0x223e25,_0x2d1b70,_0x2a8dd7);let a=class extends _0x44b786{constructor(_0x1c31bf,_0xb152b){var _0x3eea2b=_0x31baf6;super(),this[_0x3eea2b(0x178)]=_0x1c31bf,this[_0x3eea2b(0x182)]=_0xb152b,this[_0x3eea2b(0x188)](),this[_0x3eea2b(0x16a)]();}[_0x31baf6(0x188)](){var _0x267899=_0x31baf6;[d,_][_0x267899(0x17e)](_0x345e7a=>{var _0x5d2f99=_0x267899;this['disposeWithMe'](this[_0x5d2f99(0x178)]['registerCommand'](_0x345e7a));});}[_0x31baf6(0x16a)](){var _0x58161e=_0x31baf6;this[_0x58161e(0x182)][_0x58161e(0x168)](R);}};a=j([u(0x0,_0x474892),u(0x1,_0x1922d0)],a);var w=Object['defineProperty'],H=Object['getOwnPropertyDescriptor'],L=(_0x390bd2,_0x1ebbb9,_0x685291)=>_0x1ebbb9 in _0x390bd2?w(_0x390bd2,_0x1ebbb9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x685291}):_0x390bd2[_0x1ebbb9]=_0x685291,B=(_0x3a5f2b,_0x3a0b96,_0x7c637d,_0x5e844a)=>{var _0x1ac142=_0x31baf6;for(var _0x133dc4=_0x5e844a>0x1?void 0x0:_0x5e844a?H(_0x3a0b96,_0x7c637d):_0x3a0b96,_0x24709b=_0x3a5f2b[_0x1ac142(0x164)]-0x1,_0x510eb9;_0x24709b>=0x0;_0x24709b--)(_0x510eb9=_0x3a5f2b[_0x24709b])&&(_0x133dc4=_0x510eb9(_0x133dc4)||_0x133dc4);return _0x133dc4;},g=(_0x1326c4,_0x3a69a8)=>(_0x30663f,_0x4ee57e)=>_0x3a69a8(_0x30663f,_0x4ee57e,_0x1326c4),O=(_0x479e60,_0x26b7ec,_0x247203)=>L(_0x479e60,typeof _0x26b7ec!=_0x31baf6(0x16e)?_0x26b7ec+'':_0x26b7ec,_0x247203);function _0xb6f6(_0x3b8d36,_0x142b60){var _0x260d4c=_0x260d();return _0xb6f6=function(_0xb6f60e,_0x33f9bf){_0xb6f60e=_0xb6f60e-0x161;var _0x337f32=_0x260d4c[_0xb6f60e];return _0x337f32;},_0xb6f6(_0x3b8d36,_0x142b60);}const $=_0x31baf6(0x17a);let s=class extends _0x26812d{constructor(_0x4e130f=m,_0x40dee6,_0x50713e){var _0xf38cb9=_0x31baf6;super(),this[_0xf38cb9(0x185)]=_0x4e130f,this[_0xf38cb9(0x162)]=_0x40dee6,this[_0xf38cb9(0x161)]=_0x50713e;const {menu:_0x418993,..._0x462de8}=_0x15c085({},m,this[_0xf38cb9(0x185)]);_0x418993&&this[_0xf38cb9(0x161)]['setConfig'](_0xf38cb9(0x16f),_0x418993,{'merge':!0x0}),this['_configService'][_0xf38cb9(0x186)](b,_0x462de8);}[_0x31baf6(0x171)](){var _0x2ddef9=_0x31baf6;[[a]][_0x2ddef9(0x17e)](_0x1f8365=>this[_0x2ddef9(0x162)]['add'](_0x1f8365));}[_0x31baf6(0x184)](){var _0x299f54=_0x31baf6;this[_0x299f54(0x162)][_0x299f54(0x180)](a);}};O(s,_0x31baf6(0x17c),$),O(s,'type',_0x5e8348[_0x31baf6(0x175)]),s=B([_0x27e22a(_0x390c02),g(0x1,_0x5c721f(_0x1bfcc8)),g(0x2,_0x279c11)],s);export{_ as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x31baf6=_0xb6f6;(function(_0x5c6ccd,_0xc03732){var _0x3ede24=_0xb6f6,_0x1e286d=_0x5c6ccd();while(!![]){try{var _0x4a75e7=parseInt(_0x3ede24(0x17b))/0x1+parseInt(_0x3ede24(0x181))/0x2*(parseInt(_0x3ede24(0x17d))/0x3)+-parseInt(_0x3ede24(0x17f))/0x4*(parseInt(_0x3ede24(0x183))/0x5)+parseInt(_0x3ede24(0x176))/0x6+parseInt(_0x3ede24(0x187))/0x7+parseInt(_0x3ede24(0x177))/0x8*(-parseInt(_0x3ede24(0x174))/0x9)+-parseInt(_0x3ede24(0x16c))/0xa;if(_0x4a75e7===_0xc03732)break;else _0x1e286d['push'](_0x1e286d['shift']());}catch(_0x36c91c){_0x1e286d['push'](_0x1e286d['shift']());}}}(_0x260d,0xa60aa));import{IExchangeOperateService as _0x34cc84,UniverExchangeClientPlugin as _0x390c02}from'@univerjs-pro/exchange-client';import{CommandType as _0xed84c4,UniverInstanceType as _0x5e8348,Disposable as _0x44b786,ICommandService as _0x474892,DependentOn as _0x27e22a,Inject as _0x5c721f,Injector as _0x1bfcc8,IConfigService as _0x279c11,Plugin as _0x26812d,merge as _0x15c085}from'@univerjs/core';function _0x260d(){var _0x5094d1=['symbol','menu','docs-exchange-client.config','onStarting','exchange-client.operation.import-docx','exchange-client.operation.export-docx','18zsaEIp','UNIVER_DOC','6662844ZxmstI','1137496jsLZhm','_commandService','docs-exchange-client.operation.exchange','DOC_EXCHANGE_CLIENT_PLUGIN','424312KWmJfp','pluginName','1299KiUOSo','forEach','2028704AFXOLB','get','2012ghaNYn','_menuManagerService','5vhvpQQ','onReady','_config','setConfig','1968743XDStWU','_initCommands','OPERATION','_configService','_injector','ExportIcon','length','exchange.download','OTHERS','exchange.file','mergeMenu','DirectExportIcon','_initMenus','BUTTON','7799770oyKMqU','SUBITEMS'];_0x260d=function(){return _0x5094d1;};return _0x260d();}import{MenuItemType as _0x141096,getMenuHiddenObservable as _0x126206,RibbonStartGroup as _0x35146d,IMenuManagerService as _0x1922d0}from'@univerjs/ui';const b=_0x31baf6(0x170),m={},d={'id':_0x31baf6(0x172),'type':_0xed84c4[_0x31baf6(0x189)],'handler':async _0x46e89b=>(_0x46e89b['get'](_0x34cc84)['importDOCXToUnitId'](),!0x0)},_={'id':_0x31baf6(0x173),'type':_0xed84c4[_0x31baf6(0x189)],'handler':async _0xecbfaf=>(_0xecbfaf[_0x31baf6(0x180)](_0x34cc84)['exportDOCXByUnitId'](),!0x0)},C=_0x31baf6(0x179);function X(_0x30e2b0){var _0x3ade23=_0x31baf6;return{'id':C,'type':_0x141096[_0x3ade23(0x16d)],'icon':_0x3ade23(0x169),'tooltip':_0x3ade23(0x167),'hidden$':_0x126206(_0x30e2b0,_0x5e8348['UNIVER_DOC'])};}function F(){var _0x352fa2=_0x31baf6;return{'id':d['id'],'type':_0x141096[_0x352fa2(0x16b)],'title':'exchange.upload','icon':'FolderIcon'};}function G(){var _0x1b2fb8=_0x31baf6;return{'id':_['id'],'type':_0x141096['BUTTON'],'title':_0x1b2fb8(0x165),'icon':_0x1b2fb8(0x163)};}const R={[_0x35146d[_0x31baf6(0x166)]]:{[C]:{'order':0.3,'menuItemFactory':X,[d['id']]:{'order':0x0,'menuItemFactory':F},[_['id']]:{'order':0x1,'menuItemFactory':G}}}};var A=Object['getOwnPropertyDescriptor'],j=(_0x1b9984,_0x1ea355,_0x2c9d38,_0x316fd3)=>{var _0x5360d9=_0x31baf6;for(var _0x3c2379=_0x316fd3>0x1?void 0x0:_0x316fd3?A(_0x1ea355,_0x2c9d38):_0x1ea355,_0x2e68f2=_0x1b9984[_0x5360d9(0x164)]-0x1,_0x1db02b;_0x2e68f2>=0x0;_0x2e68f2--)(_0x1db02b=_0x1b9984[_0x2e68f2])&&(_0x3c2379=_0x1db02b(_0x3c2379)||_0x3c2379);return _0x3c2379;},u=(_0x2a8dd7,_0x425416)=>(_0x223e25,_0x2d1b70)=>_0x425416(_0x223e25,_0x2d1b70,_0x2a8dd7);let a=class extends _0x44b786{constructor(_0x1c31bf,_0xb152b){var _0x3eea2b=_0x31baf6;super(),this[_0x3eea2b(0x178)]=_0x1c31bf,this[_0x3eea2b(0x182)]=_0xb152b,this[_0x3eea2b(0x188)](),this[_0x3eea2b(0x16a)]();}[_0x31baf6(0x188)](){var _0x267899=_0x31baf6;[d,_][_0x267899(0x17e)](_0x345e7a=>{var _0x5d2f99=_0x267899;this['disposeWithMe'](this[_0x5d2f99(0x178)]['registerCommand'](_0x345e7a));});}[_0x31baf6(0x16a)](){var _0x58161e=_0x31baf6;this[_0x58161e(0x182)][_0x58161e(0x168)](R);}};a=j([u(0x0,_0x474892),u(0x1,_0x1922d0)],a);var w=Object['defineProperty'],H=Object['getOwnPropertyDescriptor'],L=(_0x390bd2,_0x1ebbb9,_0x685291)=>_0x1ebbb9 in _0x390bd2?w(_0x390bd2,_0x1ebbb9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x685291}):_0x390bd2[_0x1ebbb9]=_0x685291,B=(_0x3a5f2b,_0x3a0b96,_0x7c637d,_0x5e844a)=>{var _0x1ac142=_0x31baf6;for(var _0x133dc4=_0x5e844a>0x1?void 0x0:_0x5e844a?H(_0x3a0b96,_0x7c637d):_0x3a0b96,_0x24709b=_0x3a5f2b[_0x1ac142(0x164)]-0x1,_0x510eb9;_0x24709b>=0x0;_0x24709b--)(_0x510eb9=_0x3a5f2b[_0x24709b])&&(_0x133dc4=_0x510eb9(_0x133dc4)||_0x133dc4);return _0x133dc4;},g=(_0x1326c4,_0x3a69a8)=>(_0x30663f,_0x4ee57e)=>_0x3a69a8(_0x30663f,_0x4ee57e,_0x1326c4),O=(_0x479e60,_0x26b7ec,_0x247203)=>L(_0x479e60,typeof _0x26b7ec!=_0x31baf6(0x16e)?_0x26b7ec+'':_0x26b7ec,_0x247203);function _0xb6f6(_0x3b8d36,_0x142b60){var _0x260d4c=_0x260d();return _0xb6f6=function(_0xb6f60e,_0x33f9bf){_0xb6f60e=_0xb6f60e-0x161;var _0x337f32=_0x260d4c[_0xb6f60e];return _0x337f32;},_0xb6f6(_0x3b8d36,_0x142b60);}const $=_0x31baf6(0x17a);let s=class extends _0x26812d{constructor(_0x4e130f=m,_0x40dee6,_0x50713e){var _0xf38cb9=_0x31baf6;super(),this[_0xf38cb9(0x185)]=_0x4e130f,this[_0xf38cb9(0x162)]=_0x40dee6,this[_0xf38cb9(0x161)]=_0x50713e;const {menu:_0x418993,..._0x462de8}=_0x15c085({},m,this[_0xf38cb9(0x185)]);_0x418993&&this[_0xf38cb9(0x161)]['setConfig'](_0xf38cb9(0x16f),_0x418993,{'merge':!0x0}),this['_configService'][_0xf38cb9(0x186)](b,_0x462de8);}[_0x31baf6(0x171)](){var _0x2ddef9=_0x31baf6;[[a]][_0x2ddef9(0x17e)](_0x1f8365=>this[_0x2ddef9(0x162)]['add'](_0x1f8365));}[_0x31baf6(0x184)](){var _0x299f54=_0x31baf6;this[_0x299f54(0x162)][_0x299f54(0x180)](a);}};O(s,_0x31baf6(0x17c),$),O(s,'type',_0x5e8348[_0x31baf6(0x175)]),s=B([_0x27e22a(_0x390c02),g(0x1,_0x5c721f(_0x1bfcc8)),g(0x2,_0x279c11)],s);export{_ as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x381f(_0x28a047,_0x502864){var _0x4dc23b=_0x4dc2();return _0x381f=function(_0x381f19,_0x1ac0b8){_0x381f19=_0x381f19-0x149;var _0x2203a6=_0x4dc23b[_0x381f19];return _0x2203a6;},_0x381f(_0x28a047,_0x502864);}(function(_0x4e3a78,_0x2bd1e0){var _0x31f55d=_0x381f,_0x5d545f=_0x4e3a78();while(!![]){try{var _0xd1cc4f=-parseInt(_0x31f55d(0x152))/0x1*(-parseInt(_0x31f55d(0x179))/0x2)+-parseInt(_0x31f55d(0x149))/0x3*(parseInt(_0x31f55d(0x185))/0x4)+parseInt(_0x31f55d(0x186))/0x5+parseInt(_0x31f55d(0x14d))/0x6*(-parseInt(_0x31f55d(0x175))/0x7)+-parseInt(_0x31f55d(0x15a))/0x8*(parseInt(_0x31f55d(0x17f))/0x9)+-parseInt(_0x31f55d(0x156))/0xa+parseInt(_0x31f55d(0x16c))/0xb;if(_0xd1cc4f===_0x2bd1e0)break;else _0x5d545f['push'](_0x5d545f['shift']());}catch(_0x551712){_0x5d545f['push'](_0x5d545f['shift']());}}}(_0x4dc2,0x63159),function(_0x9eadca,_0x45fd44){var _0x98da89=_0x381f;typeof exports=='object'&&typeof module<'u'?_0x45fd44(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui')):typeof define==_0x98da89(0x174)&&define[_0x98da89(0x15e)]?define([_0x98da89(0x184),_0x98da89(0x16f),_0x98da89(0x172),_0x98da89(0x177)],_0x45fd44):(_0x9eadca=typeof globalThis<'u'?globalThis:_0x9eadca||self,_0x45fd44(_0x9eadca[_0x98da89(0x173)]={},_0x9eadca[_0x98da89(0x18b)],_0x9eadca[_0x98da89(0x161)],_0x9eadca['UniverUi']));}(this,function(_0x23145f,_0x22db7a,_0xe683be,_0x2da9f4){'use strict';var _0x5af28e=_0x381f;const _0xb7364=_0x5af28e(0x14c),_0x381e6f={},_0x3ec079={'id':_0x5af28e(0x180),'type':_0xe683be['CommandType'][_0x5af28e(0x160)],'handler':async _0x2b277c=>(_0x2b277c[_0x5af28e(0x16a)](_0x22db7a[_0x5af28e(0x164)])[_0x5af28e(0x150)](),!0x0)},_0x3f2ccf={'id':'exchange-client.operation.export-docx','type':_0xe683be[_0x5af28e(0x14e)][_0x5af28e(0x160)],'handler':async _0x5c1d00=>(_0x5c1d00['get'](_0x22db7a[_0x5af28e(0x164)])[_0x5af28e(0x165)](),!0x0)},_0x4ef0ac=_0x5af28e(0x181);function _0x4f98e6(_0x41836e){var _0x2cf335=_0x5af28e;return{'id':_0x4ef0ac,'type':_0x2da9f4['MenuItemType']['SUBITEMS'],'icon':_0x2cf335(0x163),'tooltip':_0x2cf335(0x162),'hidden$':_0x2da9f4[_0x2cf335(0x158)](_0x41836e,_0xe683be[_0x2cf335(0x154)][_0x2cf335(0x15b)])};}function _0x533472(){var _0x140749=_0x5af28e;return{'id':_0x3ec079['id'],'type':_0x2da9f4[_0x140749(0x169)]['BUTTON'],'title':_0x140749(0x16b),'icon':_0x140749(0x153)};}function _0x4a645a(){var _0x1b817f=_0x5af28e;return{'id':_0x3f2ccf['id'],'type':_0x2da9f4[_0x1b817f(0x169)][_0x1b817f(0x183)],'title':_0x1b817f(0x14f),'icon':'ExportIcon'};}const _0x34b540={[_0x2da9f4[_0x5af28e(0x151)]['OTHERS']]:{[_0x4ef0ac]:{'order':0.3,'menuItemFactory':_0x4f98e6,[_0x3ec079['id']]:{'order':0x0,'menuItemFactory':_0x533472},[_0x3f2ccf['id']]:{'order':0x1,'menuItemFactory':_0x4a645a}}}};var _0x5abe3a=Object[_0x5af28e(0x176)],_0x3399c0=(_0x19ed77,_0x4192a7,_0x23f8c3,_0x21c113)=>{for(var _0x3843ed=_0x21c113>0x1?void 0x0:_0x21c113?_0x5abe3a(_0x4192a7,_0x23f8c3):_0x4192a7,_0x451c9b=_0x19ed77['length']-0x1,_0x5aaac4;_0x451c9b>=0x0;_0x451c9b--)(_0x5aaac4=_0x19ed77[_0x451c9b])&&(_0x3843ed=_0x5aaac4(_0x3843ed)||_0x3843ed);return _0x3843ed;},_0x57e5a5=(_0x2afadc,_0xa7ae4e)=>(_0x4d974d,_0x2f7854)=>_0xa7ae4e(_0x4d974d,_0x2f7854,_0x2afadc);let _0x5a1d42=class extends _0xe683be[_0x5af28e(0x17a)]{constructor(_0x369b2a,_0x543cce){var _0x4bc528=_0x5af28e;super(),this['_commandService']=_0x369b2a,this[_0x4bc528(0x18a)]=_0x543cce,this[_0x4bc528(0x170)](),this[_0x4bc528(0x167)]();}['_initCommands'](){var _0x23f0f4=_0x5af28e;[_0x3ec079,_0x3f2ccf][_0x23f0f4(0x157)](_0x133637=>{var _0x20b68e=_0x23f0f4;this[_0x20b68e(0x155)](this[_0x20b68e(0x15c)]['registerCommand'](_0x133637));});}['_initMenus'](){var _0x943dd4=_0x5af28e;this[_0x943dd4(0x18a)]['mergeMenu'](_0x34b540);}};_0x5a1d42=_0x3399c0([_0x57e5a5(0x0,_0xe683be['ICommandService']),_0x57e5a5(0x1,_0x2da9f4[_0x5af28e(0x18c)])],_0x5a1d42);var _0x30a2d8=Object['defineProperty'],_0x73ee98=Object[_0x5af28e(0x176)],_0x5ed5ae=(_0x3ec028,_0x3856fc,_0x5e6f3d)=>_0x3856fc in _0x3ec028?_0x30a2d8(_0x3ec028,_0x3856fc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e6f3d}):_0x3ec028[_0x3856fc]=_0x5e6f3d,_0x1d1957=(_0xbca75f,_0x30a5ff,_0x2adba2,_0x3f5579)=>{for(var _0x1712c6=_0x3f5579>0x1?void 0x0:_0x3f5579?_0x73ee98(_0x30a5ff,_0x2adba2):_0x30a5ff,_0x545df5=_0xbca75f['length']-0x1,_0x1dbd58;_0x545df5>=0x0;_0x545df5--)(_0x1dbd58=_0xbca75f[_0x545df5])&&(_0x1712c6=_0x1dbd58(_0x1712c6)||_0x1712c6);return _0x1712c6;},_0x10609b=(_0x43407c,_0x4e1e14)=>(_0xa3f832,_0x15b788)=>_0x4e1e14(_0xa3f832,_0x15b788,_0x43407c),_0x11b94e=(_0x36c26b,_0x4d523d,_0x4c99e5)=>_0x5ed5ae(_0x36c26b,typeof _0x4d523d!=_0x5af28e(0x171)?_0x4d523d+'':_0x4d523d,_0x4c99e5);const _0x48bdf3=_0x5af28e(0x168);_0x23145f['UniverDocsExchangeClientPlugin']=class extends _0xe683be[_0x5af28e(0x15d)]{constructor(_0x37c000=_0x381e6f,_0x4d525e,_0xb636fd){var _0x28a604=_0x5af28e;super(),this['_config']=_0x37c000,this[_0x28a604(0x178)]=_0x4d525e,this[_0x28a604(0x182)]=_0xb636fd;const {menu:_0x41614b,..._0x2ee93e}=_0xe683be[_0x28a604(0x17e)]({},_0x381e6f,this[_0x28a604(0x17d)]);_0x41614b&&this['_configService'][_0x28a604(0x159)](_0x28a604(0x188),_0x41614b,{'merge':!0x0}),this[_0x28a604(0x182)][_0x28a604(0x159)](_0xb7364,_0x2ee93e);}[_0x5af28e(0x14a)](){var _0x45a602=_0x5af28e;[[_0x5a1d42]][_0x45a602(0x157)](_0x4a866c=>this['_injector']['add'](_0x4a866c));}['onReady'](){var _0x4dc35d=_0x5af28e;this[_0x4dc35d(0x178)][_0x4dc35d(0x16a)](_0x5a1d42);}},_0x11b94e(_0x23145f[_0x5af28e(0x189)],'pluginName',_0x48bdf3),_0x11b94e(_0x23145f[_0x5af28e(0x189)],_0x5af28e(0x16d),_0xe683be[_0x5af28e(0x154)][_0x5af28e(0x15b)]),_0x23145f[_0x5af28e(0x189)]=_0x1d1957([_0xe683be['DependentOn'](_0x22db7a[_0x5af28e(0x17b)]),_0x10609b(0x1,_0xe683be[_0x5af28e(0x187)](_0xe683be[_0x5af28e(0x166)])),_0x10609b(0x2,_0xe683be['IConfigService'])],_0x23145f[_0x5af28e(0x189)]),_0x23145f[_0x5af28e(0x16e)]=_0x3f2ccf,_0x23145f[_0x5af28e(0x17c)]=_0x3ec079,Object[_0x5af28e(0x14b)](_0x23145f,Symbol['toStringTag'],{'value':_0x5af28e(0x15f)});}));function _0x4dc2(){var _0x21021e=['UniverProDocsExchangeClient','function','4518955gDMPfc','getOwnPropertyDescriptor','@univerjs/ui','_injector','1491730DftnMq','Disposable','UniverExchangeClientPlugin','ImportDOCXOperation','_config','merge','45783KQFjGk','exchange-client.operation.import-docx','docs-exchange-client.operation.exchange','_configService','BUTTON','exports','204QuHvJw','2314265kfZBIY','Inject','menu','UniverDocsExchangeClientPlugin','_menuManagerService','UniverProExchangeClient','IMenuManagerService','2334MiYWYL','onStarting','defineProperty','docs-exchange-client.config','6doqCpW','CommandType','exchange.download','importDOCXToUnitId','RibbonStartGroup','1byWLwH','FolderIcon','UniverInstanceType','disposeWithMe','1113040bmyjcp','forEach','getMenuHiddenObservable','setConfig','656VpQWqq','UNIVER_DOC','_commandService','Plugin','amd','Module','OPERATION','UniverCore','exchange.file','DirectExportIcon','IExchangeOperateService','exportDOCXByUnitId','Injector','_initMenus','DOC_EXCHANGE_CLIENT_PLUGIN','MenuItemType','get','exchange.upload','4518932ZSWFgS','type','ExportDOCXOperation','@univerjs-pro/exchange-client','_initCommands','symbol','@univerjs/core'];_0x4dc2=function(){return _0x21021e;};return _0x4dc2();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/docs-exchange-client",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.2",
|
|
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-pro/exchange-client": "0.10.
|
|
46
|
-
"@univerjs/
|
|
47
|
-
"@univerjs/
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.10.2",
|
|
46
|
+
"@univerjs/ui": "0.10.2",
|
|
47
|
+
"@univerjs/core": "0.10.2"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"typescript": "^5.8.3",
|
|
51
51
|
"vite": "^7.0.6",
|
|
52
52
|
"vitest": "^3.2.4",
|
|
53
|
-
"@univerjs-infra/shared": "0.10.
|
|
53
|
+
"@univerjs-infra/shared": "0.10.2"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"test": "vitest run",
|