@univerjs-pro/docs-exchange-client 0.8.0-nightly.202506061607 → 0.8.0-nightly.202506081606
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 _0x3f5715=_0xefc5;(function(_0x2a5851,_0x544c44){var _0x145366=_0xefc5,_0x512aad=_0x2a5851();while(!![]){try{var _0x319bfd=-parseInt(_0x145366(0x1a0))/0x1*(-parseInt(_0x145366(0x1d3))/0x2)+parseInt(_0x145366(0x1bb))/0x3+parseInt(_0x145366(0x1a6))/0x4*(parseInt(_0x145366(0x1c5))/0x5)+parseInt(_0x145366(0x1c4))/0x6+-parseInt(_0x145366(0x1ce))/0x7*(-parseInt(_0x145366(0x1d6))/0x8)+-parseInt(_0x145366(0x1a8))/0x9*(parseInt(_0x145366(0x1c1))/0xa)+parseInt(_0x145366(0x1df))/0xb*(-parseInt(_0x145366(0x1be))/0xc);if(_0x319bfd===_0x544c44)break;else _0x512aad['push'](_0x512aad['shift']());}catch(_0x2a1042){_0x512aad['push'](_0x512aad['shift']());}}}(_0x1931,0x1d773));Object[_0x3f5715(0x1b8)](exports,Symbol[_0x3f5715(0x1c7)],{'value':_0x3f5715(0x1aa)});const d=require('@univerjs-pro/exchange-client'),i=require('@univerjs/core'),a=require('@univerjs/ui'),I=_0x3f5715(0x1c6),l={},p={'id':_0x3f5715(0x1c0),'type':i[_0x3f5715(0x1a9)][_0x3f5715(0x1ab)],'handler':async _0x34a43f=>(_0x34a43f[_0x3f5715(0x1b4)](d[_0x3f5715(0x1a5)])['importDOCXToUnitId'](),!0x0)},g={'id':_0x3f5715(0x1dc),'type':i['CommandType']['OPERATION'],'handler':async _0x486936=>(_0x486936[_0x3f5715(0x1b4)](d[_0x3f5715(0x1a5)])[_0x3f5715(0x1d9)](),!0x0)},h=_0x3f5715(0x1d8);function v(_0x56ed6a){var _0x4c4217=_0x3f5715;return{'id':h,'type':a[_0x4c4217(0x1b6)]['SUBITEMS'],'icon':_0x4c4217(0x1b5),'tooltip':'exchange.file','hidden$':a[_0x4c4217(0x1bc)](_0x56ed6a,i[_0x4c4217(0x1de)][_0x4c4217(0x1ac)])};}function _0x1931(){var _0x75586e=['16812bdSmPp','Plugin','99gzPsps','CommandType','Module','OPERATION','UNIVER_DOC','add','IMenuManagerService','UniverDocsExchangeClientPlugin','exchange.upload','registerCommand','Injector','type','get','DirectExportIcon','MenuItemType','onStarting','defineProperty','ICommandService','_initMenus','434676ITVFBk','getMenuHiddenObservable','_menuManagerService','4236qPOyuc','DependentOn','exchange-client.operation.import-docx','16300LeFGXA','pluginName','_injector','383406nmegvY','285jzXjgD','docs-exchange-client.config','toStringTag','DOC_EXCHANGE_CLIENT_PLUGIN','_config','ExportDOCXOperation','ImportDOCXOperation','ExportIcon','symbol','180481HINqgj','UniverExchangeClientPlugin','forEach','merge','BUTTON','172KQKJdn','OTHERS','_initCommands','32fVjFVS','_configService','docs-exchange-client.operation.exchange','exportDOCXByUnitId','disposeWithMe','getOwnPropertyDescriptor','exchange-client.operation.export-docx','setConfig','UniverInstanceType','16489HZIoDY','1352RUIbgY','RibbonStartGroup','menu','length','FolderIcon','IExchangeOperateService'];_0x1931=function(){return _0x75586e;};return _0x1931();}function O(){var _0x5362a7=_0x3f5715;return{'id':p['id'],'type':a[_0x5362a7(0x1b6)][_0x5362a7(0x1d2)],'title':_0x5362a7(0x1b0),'icon':_0x5362a7(0x1a4)};}function E(){var _0x2c93c7=_0x3f5715;return{'id':g['id'],'type':a['MenuItemType'][_0x2c93c7(0x1d2)],'title':'exchange.download','icon':_0x2c93c7(0x1cc)};}const x={[a[_0x3f5715(0x1a1)][_0x3f5715(0x1d4)]]:{[h]:{'order':0.3,'menuItemFactory':v,[p['id']]:{'order':0x0,'menuItemFactory':O},[g['id']]:{'order':0x1,'menuItemFactory':E}}}};var D=Object[_0x3f5715(0x1db)],f=(_0x514117,_0x5ce9f9,_0x14f6af,_0x30d3d9)=>{for(var _0xba7562=_0x30d3d9>0x1?void 0x0:_0x30d3d9?D(_0x5ce9f9,_0x14f6af):_0x5ce9f9,_0x592adb=_0x514117['length']-0x1,_0xc1892b;_0x592adb>=0x0;_0x592adb--)(_0xc1892b=_0x514117[_0x592adb])&&(_0xba7562=_0xc1892b(_0xba7562)||_0xba7562);return _0xba7562;},_=(_0xf8cca2,_0x2b58f5)=>(_0x444d2a,_0x316bfb)=>_0x2b58f5(_0x444d2a,_0x316bfb,_0xf8cca2);function _0xefc5(_0x2dbd48,_0x5548bc){var _0x19316b=_0x1931();return _0xefc5=function(_0xefc59b,_0x571760){_0xefc59b=_0xefc59b-0x1a0;var _0x56eaa8=_0x19316b[_0xefc59b];return _0x56eaa8;},_0xefc5(_0x2dbd48,_0x5548bc);}let u=class extends i['Disposable']{constructor(_0x58556c,_0x987be9){var _0x5dfd23=_0x3f5715;super(),this['_commandService']=_0x58556c,this[_0x5dfd23(0x1bd)]=_0x987be9,this[_0x5dfd23(0x1d5)](),this[_0x5dfd23(0x1ba)]();}[_0x3f5715(0x1d5)](){[p,g]['forEach'](_0x281c8c=>{var _0x34d4b5=_0xefc5;this[_0x34d4b5(0x1da)](this['_commandService'][_0x34d4b5(0x1b1)](_0x281c8c));});}['_initMenus'](){var _0xfe987e=_0x3f5715;this[_0xfe987e(0x1bd)]['mergeMenu'](x);}};u=f([_(0x0,i[_0x3f5715(0x1b9)]),_(0x1,a[_0x3f5715(0x1ae)])],u);var y=Object['defineProperty'],S=Object[_0x3f5715(0x1db)],P=(_0x5ecf38,_0x3786ad,_0x1d8f75)=>_0x3786ad in _0x5ecf38?y(_0x5ecf38,_0x3786ad,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d8f75}):_0x5ecf38[_0x3786ad]=_0x1d8f75,T=(_0x2f95b5,_0x440d2e,_0x1f5573,_0x31f197)=>{var _0x6623a7=_0x3f5715;for(var _0x4ea8a7=_0x31f197>0x1?void 0x0:_0x31f197?S(_0x440d2e,_0x1f5573):_0x440d2e,_0xb107e6=_0x2f95b5[_0x6623a7(0x1a3)]-0x1,_0x2f2f79;_0xb107e6>=0x0;_0xb107e6--)(_0x2f2f79=_0x2f95b5[_0xb107e6])&&(_0x4ea8a7=_0x2f2f79(_0x4ea8a7)||_0x4ea8a7);return _0x4ea8a7;},m=(_0x2b2478,_0x245907)=>(_0x40a9c2,_0x51dcbe)=>_0x245907(_0x40a9c2,_0x51dcbe,_0x2b2478),C=(_0xd96197,_0x4e5c04,_0x206eb9)=>P(_0xd96197,typeof _0x4e5c04!=_0x3f5715(0x1cd)?_0x4e5c04+'':_0x4e5c04,_0x206eb9);const U=_0x3f5715(0x1c8);exports[_0x3f5715(0x1af)]=class extends i[_0x3f5715(0x1a7)]{constructor(_0x5c3f1b=l,_0x38fa6b,_0x2f4921){var _0x1ba29d=_0x3f5715;super(),this['_config']=_0x5c3f1b,this[_0x1ba29d(0x1c3)]=_0x38fa6b,this['_configService']=_0x2f4921;const {menu:_0x28c99a,..._0x141ce7}=i[_0x1ba29d(0x1d1)]({},l,this[_0x1ba29d(0x1c9)]);_0x28c99a&&this[_0x1ba29d(0x1d7)][_0x1ba29d(0x1dd)](_0x1ba29d(0x1a2),_0x28c99a,{'merge':!0x0}),this['_configService']['setConfig'](I,_0x141ce7);}[_0x3f5715(0x1b7)](){var _0x4b938d=_0x3f5715;[[u]][_0x4b938d(0x1d0)](_0x3a81ad=>this[_0x4b938d(0x1c3)][_0x4b938d(0x1ad)](_0x3a81ad));}['onReady'](){var _0x562293=_0x3f5715;this[_0x562293(0x1c3)][_0x562293(0x1b4)](u);}},C(exports[_0x3f5715(0x1af)],_0x3f5715(0x1c2),U),C(exports['UniverDocsExchangeClientPlugin'],_0x3f5715(0x1b3),i[_0x3f5715(0x1de)]['UNIVER_DOC']),exports[_0x3f5715(0x1af)]=T([i[_0x3f5715(0x1bf)](d[_0x3f5715(0x1cf)]),m(0x1,i['Inject'](i[_0x3f5715(0x1b2)])),m(0x2,i['IConfigService'])],exports[_0x3f5715(0x1af)]),exports[_0x3f5715(0x1ca)]=g,exports[_0x3f5715(0x1cb)]=p;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x1b0b80=_0x466d;(function(_0x2e6569,_0xd7dc2b){var _0x37a454=_0x466d,_0x9fb97e=_0x2e6569();while(!![]){try{var _0x126139=parseInt(_0x37a454(0xb6))/0x1*(-parseInt(_0x37a454(0x9e))/0x2)+-parseInt(_0x37a454(0xab))/0x3*(-parseInt(_0x37a454(0x9f))/0x4)+-parseInt(_0x37a454(0xb9))/0x5*(-parseInt(_0x37a454(0xa9))/0x6)+-parseInt(_0x37a454(0xad))/0x7*(parseInt(_0x37a454(0xbc))/0x8)+parseInt(_0x37a454(0x95))/0x9+parseInt(_0x37a454(0xaf))/0xa+parseInt(_0x37a454(0xba))/0xb*(-parseInt(_0x37a454(0x9c))/0xc);if(_0x126139===_0xd7dc2b)break;else _0x9fb97e['push'](_0x9fb97e['shift']());}catch(_0xac9072){_0x9fb97e['push'](_0x9fb97e['shift']());}}}(_0x3f2b,0xef6fa));import{IExchangeOperateService as _0x18b0c7,UniverExchangeClientPlugin as _0x4e8585}from'@univerjs-pro/exchange-client';import{CommandType as _0x2dade6,UniverInstanceType as _0x39423d,Disposable as _0x18f97e,ICommandService as _0x27eb7b,DependentOn as _0x55adac,Inject as _0x582a66,Injector as _0x4808a0,IConfigService as _0x143326,Plugin as _0x590286,merge as _0x2fe26a}from'@univerjs/core';import{MenuItemType as _0x1e2d1c,getMenuHiddenObservable as _0x15deaf,RibbonStartGroup as _0x35ed2d,IMenuManagerService as _0x536036}from'@univerjs/ui';const b='docs-exchange-client.config',m={},d={'id':'exchange-client.operation.import-docx','type':_0x2dade6[_0x1b0b80(0xa4)],'handler':async _0xf5cec0=>(_0xf5cec0[_0x1b0b80(0xa1)](_0x18b0c7)['importDOCXToUnitId'](),!0x0)},_={'id':_0x1b0b80(0xb3),'type':_0x2dade6[_0x1b0b80(0xa4)],'handler':async _0xf5a372=>(_0xf5a372[_0x1b0b80(0xa1)](_0x18b0c7)[_0x1b0b80(0xa7)](),!0x0)},C=_0x1b0b80(0xaa);function X(_0x5dfcc9){var _0x1648ff=_0x1b0b80;return{'id':C,'type':_0x1e2d1c['SUBITEMS'],'icon':_0x1648ff(0x9d),'tooltip':_0x1648ff(0xa3),'hidden$':_0x15deaf(_0x5dfcc9,_0x39423d[_0x1648ff(0xbf)])};}function F(){var _0x2d9049=_0x1b0b80;return{'id':d['id'],'type':_0x1e2d1c[_0x2d9049(0xbe)],'title':'exchange.upload','icon':_0x2d9049(0xb8)};}function G(){var _0x119c47=_0x1b0b80;return{'id':_['id'],'type':_0x1e2d1c[_0x119c47(0xbe)],'title':_0x119c47(0xb7),'icon':_0x119c47(0xb5)};}function _0x3f2b(){var _0x438cc4=['_commandService','exchange-client.operation.export-docx','_config','ExportIcon','20tHNPRq','exchange.download','FolderIcon','160REZIeJ','121RottKq','onReady','8udEdfI','mergeMenu','BUTTON','UNIVER_DOC','10226223LDgaIV','_menuManagerService','OTHERS','symbol','type','forEach','registerCommand','1725852vIXsRo','DirectExportIcon','63158WUfGKk','879196FFSVrB','defineProperty','get','DOC_EXCHANGE_CLIENT_PLUGIN','exchange.file','OPERATION','onStarting','_injector','exportDOCXByUnitId','_configService','196284cNdkSo','docs-exchange-client.operation.exchange','6nvPuhX','length','853566nOsVAx','disposeWithMe','6935860AykUtf','setConfig','pluginName'];_0x3f2b=function(){return _0x438cc4;};return _0x3f2b();}const R={[_0x35ed2d[_0x1b0b80(0x97)]]:{[C]:{'order':0.3,'menuItemFactory':X,[d['id']]:{'order':0x0,'menuItemFactory':F},[_['id']]:{'order':0x1,'menuItemFactory':G}}}};var A=Object['getOwnPropertyDescriptor'],j=(_0x18e0dc,_0x558ba,_0x426b1f,_0xaa53e2)=>{var _0x4a75c8=_0x1b0b80;for(var _0xe7899d=_0xaa53e2>0x1?void 0x0:_0xaa53e2?A(_0x558ba,_0x426b1f):_0x558ba,_0x8369be=_0x18e0dc[_0x4a75c8(0xac)]-0x1,_0x2e160e;_0x8369be>=0x0;_0x8369be--)(_0x2e160e=_0x18e0dc[_0x8369be])&&(_0xe7899d=_0x2e160e(_0xe7899d)||_0xe7899d);return _0xe7899d;},u=(_0x54afee,_0xe03a25)=>(_0x31781b,_0x4db99c)=>_0xe03a25(_0x31781b,_0x4db99c,_0x54afee);let a=class extends _0x18f97e{constructor(_0x16fa15,_0x4ea430){var _0x28f8ef=_0x1b0b80;super(),this[_0x28f8ef(0xb2)]=_0x16fa15,this[_0x28f8ef(0x96)]=_0x4ea430,this['_initCommands'](),this['_initMenus']();}['_initCommands'](){var _0xb8a9ae=_0x1b0b80;[d,_][_0xb8a9ae(0x9a)](_0xaa2e74=>{var _0x2f0b6b=_0xb8a9ae;this[_0x2f0b6b(0xae)](this[_0x2f0b6b(0xb2)][_0x2f0b6b(0x9b)](_0xaa2e74));});}['_initMenus'](){var _0x5c5963=_0x1b0b80;this[_0x5c5963(0x96)][_0x5c5963(0xbd)](R);}};a=j([u(0x0,_0x27eb7b),u(0x1,_0x536036)],a);var w=Object[_0x1b0b80(0xa0)],H=Object['getOwnPropertyDescriptor'],L=(_0x1b07ad,_0x1ba107,_0x2569d4)=>_0x1ba107 in _0x1b07ad?w(_0x1b07ad,_0x1ba107,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2569d4}):_0x1b07ad[_0x1ba107]=_0x2569d4,B=(_0x5c53af,_0x4d5fad,_0x2a3786,_0x23d3a8)=>{var _0x5b2519=_0x1b0b80;for(var _0x640f74=_0x23d3a8>0x1?void 0x0:_0x23d3a8?H(_0x4d5fad,_0x2a3786):_0x4d5fad,_0x297a38=_0x5c53af[_0x5b2519(0xac)]-0x1,_0x44d062;_0x297a38>=0x0;_0x297a38--)(_0x44d062=_0x5c53af[_0x297a38])&&(_0x640f74=_0x44d062(_0x640f74)||_0x640f74);return _0x640f74;},g=(_0x57c10f,_0x13ab89)=>(_0xbb71b8,_0x5e565a)=>_0x13ab89(_0xbb71b8,_0x5e565a,_0x57c10f),O=(_0x228640,_0x40eeaa,_0x38a36f)=>L(_0x228640,typeof _0x40eeaa!=_0x1b0b80(0x98)?_0x40eeaa+'':_0x40eeaa,_0x38a36f);const $=_0x1b0b80(0xa2);let s=class extends _0x590286{constructor(_0x357099=m,_0x473a5c,_0x44bb7b){var _0x145fc9=_0x1b0b80;super(),this[_0x145fc9(0xb4)]=_0x357099,this[_0x145fc9(0xa6)]=_0x473a5c,this[_0x145fc9(0xa8)]=_0x44bb7b;const {menu:_0x24cf3e,..._0x12ccaa}=_0x2fe26a({},m,this[_0x145fc9(0xb4)]);_0x24cf3e&&this['_configService'][_0x145fc9(0xb0)]('menu',_0x24cf3e,{'merge':!0x0}),this[_0x145fc9(0xa8)][_0x145fc9(0xb0)](b,_0x12ccaa);}[_0x1b0b80(0xa5)](){var _0x48971e=_0x1b0b80;[[a]]['forEach'](_0x37e5cb=>this[_0x48971e(0xa6)]['add'](_0x37e5cb));}[_0x1b0b80(0xbb)](){var _0x259d45=_0x1b0b80;this[_0x259d45(0xa6)]['get'](a);}};function _0x466d(_0x10ae78,_0xa55940){var _0x3f2b1c=_0x3f2b();return _0x466d=function(_0x466da3,_0x2a5bd2){_0x466da3=_0x466da3-0x95;var _0x2f3edb=_0x3f2b1c[_0x466da3];return _0x2f3edb;},_0x466d(_0x10ae78,_0xa55940);}O(s,_0x1b0b80(0xb1),$),O(s,_0x1b0b80(0x99),_0x39423d['UNIVER_DOC']),s=B([_0x55adac(_0x4e8585),g(0x1,_0x582a66(_0x4808a0)),g(0x2,_0x143326)],s);export{_ as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x1b0b80=_0x466d;(function(_0x2e6569,_0xd7dc2b){var _0x37a454=_0x466d,_0x9fb97e=_0x2e6569();while(!![]){try{var _0x126139=parseInt(_0x37a454(0xb6))/0x1*(-parseInt(_0x37a454(0x9e))/0x2)+-parseInt(_0x37a454(0xab))/0x3*(-parseInt(_0x37a454(0x9f))/0x4)+-parseInt(_0x37a454(0xb9))/0x5*(-parseInt(_0x37a454(0xa9))/0x6)+-parseInt(_0x37a454(0xad))/0x7*(parseInt(_0x37a454(0xbc))/0x8)+parseInt(_0x37a454(0x95))/0x9+parseInt(_0x37a454(0xaf))/0xa+parseInt(_0x37a454(0xba))/0xb*(-parseInt(_0x37a454(0x9c))/0xc);if(_0x126139===_0xd7dc2b)break;else _0x9fb97e['push'](_0x9fb97e['shift']());}catch(_0xac9072){_0x9fb97e['push'](_0x9fb97e['shift']());}}}(_0x3f2b,0xef6fa));import{IExchangeOperateService as _0x18b0c7,UniverExchangeClientPlugin as _0x4e8585}from'@univerjs-pro/exchange-client';import{CommandType as _0x2dade6,UniverInstanceType as _0x39423d,Disposable as _0x18f97e,ICommandService as _0x27eb7b,DependentOn as _0x55adac,Inject as _0x582a66,Injector as _0x4808a0,IConfigService as _0x143326,Plugin as _0x590286,merge as _0x2fe26a}from'@univerjs/core';import{MenuItemType as _0x1e2d1c,getMenuHiddenObservable as _0x15deaf,RibbonStartGroup as _0x35ed2d,IMenuManagerService as _0x536036}from'@univerjs/ui';const b='docs-exchange-client.config',m={},d={'id':'exchange-client.operation.import-docx','type':_0x2dade6[_0x1b0b80(0xa4)],'handler':async _0xf5cec0=>(_0xf5cec0[_0x1b0b80(0xa1)](_0x18b0c7)['importDOCXToUnitId'](),!0x0)},_={'id':_0x1b0b80(0xb3),'type':_0x2dade6[_0x1b0b80(0xa4)],'handler':async _0xf5a372=>(_0xf5a372[_0x1b0b80(0xa1)](_0x18b0c7)[_0x1b0b80(0xa7)](),!0x0)},C=_0x1b0b80(0xaa);function X(_0x5dfcc9){var _0x1648ff=_0x1b0b80;return{'id':C,'type':_0x1e2d1c['SUBITEMS'],'icon':_0x1648ff(0x9d),'tooltip':_0x1648ff(0xa3),'hidden$':_0x15deaf(_0x5dfcc9,_0x39423d[_0x1648ff(0xbf)])};}function F(){var _0x2d9049=_0x1b0b80;return{'id':d['id'],'type':_0x1e2d1c[_0x2d9049(0xbe)],'title':'exchange.upload','icon':_0x2d9049(0xb8)};}function G(){var _0x119c47=_0x1b0b80;return{'id':_['id'],'type':_0x1e2d1c[_0x119c47(0xbe)],'title':_0x119c47(0xb7),'icon':_0x119c47(0xb5)};}function _0x3f2b(){var _0x438cc4=['_commandService','exchange-client.operation.export-docx','_config','ExportIcon','20tHNPRq','exchange.download','FolderIcon','160REZIeJ','121RottKq','onReady','8udEdfI','mergeMenu','BUTTON','UNIVER_DOC','10226223LDgaIV','_menuManagerService','OTHERS','symbol','type','forEach','registerCommand','1725852vIXsRo','DirectExportIcon','63158WUfGKk','879196FFSVrB','defineProperty','get','DOC_EXCHANGE_CLIENT_PLUGIN','exchange.file','OPERATION','onStarting','_injector','exportDOCXByUnitId','_configService','196284cNdkSo','docs-exchange-client.operation.exchange','6nvPuhX','length','853566nOsVAx','disposeWithMe','6935860AykUtf','setConfig','pluginName'];_0x3f2b=function(){return _0x438cc4;};return _0x3f2b();}const R={[_0x35ed2d[_0x1b0b80(0x97)]]:{[C]:{'order':0.3,'menuItemFactory':X,[d['id']]:{'order':0x0,'menuItemFactory':F},[_['id']]:{'order':0x1,'menuItemFactory':G}}}};var A=Object['getOwnPropertyDescriptor'],j=(_0x18e0dc,_0x558ba,_0x426b1f,_0xaa53e2)=>{var _0x4a75c8=_0x1b0b80;for(var _0xe7899d=_0xaa53e2>0x1?void 0x0:_0xaa53e2?A(_0x558ba,_0x426b1f):_0x558ba,_0x8369be=_0x18e0dc[_0x4a75c8(0xac)]-0x1,_0x2e160e;_0x8369be>=0x0;_0x8369be--)(_0x2e160e=_0x18e0dc[_0x8369be])&&(_0xe7899d=_0x2e160e(_0xe7899d)||_0xe7899d);return _0xe7899d;},u=(_0x54afee,_0xe03a25)=>(_0x31781b,_0x4db99c)=>_0xe03a25(_0x31781b,_0x4db99c,_0x54afee);let a=class extends _0x18f97e{constructor(_0x16fa15,_0x4ea430){var _0x28f8ef=_0x1b0b80;super(),this[_0x28f8ef(0xb2)]=_0x16fa15,this[_0x28f8ef(0x96)]=_0x4ea430,this['_initCommands'](),this['_initMenus']();}['_initCommands'](){var _0xb8a9ae=_0x1b0b80;[d,_][_0xb8a9ae(0x9a)](_0xaa2e74=>{var _0x2f0b6b=_0xb8a9ae;this[_0x2f0b6b(0xae)](this[_0x2f0b6b(0xb2)][_0x2f0b6b(0x9b)](_0xaa2e74));});}['_initMenus'](){var _0x5c5963=_0x1b0b80;this[_0x5c5963(0x96)][_0x5c5963(0xbd)](R);}};a=j([u(0x0,_0x27eb7b),u(0x1,_0x536036)],a);var w=Object[_0x1b0b80(0xa0)],H=Object['getOwnPropertyDescriptor'],L=(_0x1b07ad,_0x1ba107,_0x2569d4)=>_0x1ba107 in _0x1b07ad?w(_0x1b07ad,_0x1ba107,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2569d4}):_0x1b07ad[_0x1ba107]=_0x2569d4,B=(_0x5c53af,_0x4d5fad,_0x2a3786,_0x23d3a8)=>{var _0x5b2519=_0x1b0b80;for(var _0x640f74=_0x23d3a8>0x1?void 0x0:_0x23d3a8?H(_0x4d5fad,_0x2a3786):_0x4d5fad,_0x297a38=_0x5c53af[_0x5b2519(0xac)]-0x1,_0x44d062;_0x297a38>=0x0;_0x297a38--)(_0x44d062=_0x5c53af[_0x297a38])&&(_0x640f74=_0x44d062(_0x640f74)||_0x640f74);return _0x640f74;},g=(_0x57c10f,_0x13ab89)=>(_0xbb71b8,_0x5e565a)=>_0x13ab89(_0xbb71b8,_0x5e565a,_0x57c10f),O=(_0x228640,_0x40eeaa,_0x38a36f)=>L(_0x228640,typeof _0x40eeaa!=_0x1b0b80(0x98)?_0x40eeaa+'':_0x40eeaa,_0x38a36f);const $=_0x1b0b80(0xa2);let s=class extends _0x590286{constructor(_0x357099=m,_0x473a5c,_0x44bb7b){var _0x145fc9=_0x1b0b80;super(),this[_0x145fc9(0xb4)]=_0x357099,this[_0x145fc9(0xa6)]=_0x473a5c,this[_0x145fc9(0xa8)]=_0x44bb7b;const {menu:_0x24cf3e,..._0x12ccaa}=_0x2fe26a({},m,this[_0x145fc9(0xb4)]);_0x24cf3e&&this['_configService'][_0x145fc9(0xb0)]('menu',_0x24cf3e,{'merge':!0x0}),this[_0x145fc9(0xa8)][_0x145fc9(0xb0)](b,_0x12ccaa);}[_0x1b0b80(0xa5)](){var _0x48971e=_0x1b0b80;[[a]]['forEach'](_0x37e5cb=>this[_0x48971e(0xa6)]['add'](_0x37e5cb));}[_0x1b0b80(0xbb)](){var _0x259d45=_0x1b0b80;this[_0x259d45(0xa6)]['get'](a);}};function _0x466d(_0x10ae78,_0xa55940){var _0x3f2b1c=_0x3f2b();return _0x466d=function(_0x466da3,_0x2a5bd2){_0x466da3=_0x466da3-0x95;var _0x2f3edb=_0x3f2b1c[_0x466da3];return _0x2f3edb;},_0x466d(_0x10ae78,_0xa55940);}O(s,_0x1b0b80(0xb1),$),O(s,_0x1b0b80(0x99),_0x39423d['UNIVER_DOC']),s=B([_0x55adac(_0x4e8585),g(0x1,_0x582a66(_0x4808a0)),g(0x2,_0x143326)],s);export{_ as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x4aa3(){var _0x3c545f=['276393znBcZF','mergeMenu','CommandType','UniverProDocsExchangeClient','_initMenus','exchange-client.operation.export-docx','exchange.upload','merge','DependentOn','onReady','get','Disposable','symbol','@univerjs/ui','MenuItemType','add','setConfig','exchange.file','30NpVYin','34564365WtQiuz','ICommandService','28PBuEbx','disposeWithMe','defineProperty','SUBITEMS','@univerjs-pro/exchange-client','menu','OTHERS','Module','Inject','DirectExportIcon','_commandService','ExportDOCXOperation','190024mtxvke','ExportIcon','docs-exchange-client.operation.exchange','UniverInstanceType','registerCommand','UniverDocsExchangeClientPlugin','732951AJEKNO','_config','5626350ZqrGSx','exports','type','pluginName','onStarting','@univerjs/core','exchange-client.operation.import-docx','RibbonStartGroup','1563486aZORhT','forEach','getOwnPropertyDescriptor','_injector','IConfigService','toStringTag','getMenuHiddenObservable','217urVyAZ','UniverExchangeClientPlugin','UniverCore','_configService','Plugin','UniverProExchangeClient','exportDOCXByUnitId','UniverUi','function','BUTTON','docs-exchange-client.config','_initCommands','length','OPERATION','682951ohwsWs','4RPeuPT','amd'];_0x4aa3=function(){return _0x3c545f;};return _0x4aa3();}function _0x3ae2(_0x53d180,_0x48a85c){var _0x4aa3be=_0x4aa3();return _0x3ae2=function(_0x3ae2bc,_0x3df67d){_0x3ae2bc=_0x3ae2bc-0x16d;var _0x23f1f5=_0x4aa3be[_0x3ae2bc];return _0x23f1f5;},_0x3ae2(_0x53d180,_0x48a85c);}(function(_0x527a20,_0xc02053){var _0x5e620a=_0x3ae2,_0x29ad6b=_0x527a20();while(!![]){try{var _0x73c80=parseInt(_0x5e620a(0x192))/0x1*(parseInt(_0x5e620a(0x193))/0x2)+-parseInt(_0x5e620a(0x195))/0x3*(-parseInt(_0x5e620a(0x1aa))/0x4)+parseInt(_0x5e620a(0x175))/0x5+parseInt(_0x5e620a(0x17d))/0x6+-parseInt(_0x5e620a(0x184))/0x7*(-parseInt(_0x5e620a(0x16d))/0x8)+-parseInt(_0x5e620a(0x173))/0x9*(parseInt(_0x5e620a(0x1a7))/0xa)+-parseInt(_0x5e620a(0x1a8))/0xb;if(_0x73c80===_0xc02053)break;else _0x29ad6b['push'](_0x29ad6b['shift']());}catch(_0x38115d){_0x29ad6b['push'](_0x29ad6b['shift']());}}}(_0x4aa3,0xb63f1),function(_0x59abc6,_0x4c0404){var _0x434337=_0x3ae2;typeof exports=='object'&&typeof module<'u'?_0x4c0404(exports,require(_0x434337(0x1ae)),require(_0x434337(0x17a)),require(_0x434337(0x1a2))):typeof define==_0x434337(0x18c)&&define[_0x434337(0x194)]?define([_0x434337(0x176),_0x434337(0x1ae),_0x434337(0x17a),_0x434337(0x1a2)],_0x4c0404):(_0x59abc6=typeof globalThis<'u'?globalThis:_0x59abc6||self,_0x4c0404(_0x59abc6[_0x434337(0x198)]={},_0x59abc6[_0x434337(0x189)],_0x59abc6[_0x434337(0x186)],_0x59abc6[_0x434337(0x18b)]));}(this,function(_0x1910fb,_0x3a1015,_0xab42ea,_0x100528){'use strict';var _0x4b4cec=_0x3ae2;const _0x55073c=_0x4b4cec(0x18e),_0x19d601={},_0x3b8846={'id':_0x4b4cec(0x17b),'type':_0xab42ea[_0x4b4cec(0x197)][_0x4b4cec(0x191)],'handler':async _0x458eab=>(_0x458eab[_0x4b4cec(0x19f)](_0x3a1015['IExchangeOperateService'])['importDOCXToUnitId'](),!0x0)},_0x3976c1={'id':_0x4b4cec(0x19a),'type':_0xab42ea[_0x4b4cec(0x197)]['OPERATION'],'handler':async _0x4ccb36=>(_0x4ccb36[_0x4b4cec(0x19f)](_0x3a1015['IExchangeOperateService'])[_0x4b4cec(0x18a)](),!0x0)},_0x417e87=_0x4b4cec(0x16f);function _0x21fdc9(_0x4be6df){var _0x5daeb2=_0x4b4cec;return{'id':_0x417e87,'type':_0x100528[_0x5daeb2(0x1a3)][_0x5daeb2(0x1ad)],'icon':_0x5daeb2(0x1b3),'tooltip':_0x5daeb2(0x1a6),'hidden$':_0x100528[_0x5daeb2(0x183)](_0x4be6df,_0xab42ea[_0x5daeb2(0x170)]['UNIVER_DOC'])};}function _0x1f42e2(){var _0xe4093=_0x4b4cec;return{'id':_0x3b8846['id'],'type':_0x100528['MenuItemType']['BUTTON'],'title':_0xe4093(0x19b),'icon':'FolderIcon'};}function _0x2ccbbf(){var _0x2a4848=_0x4b4cec;return{'id':_0x3976c1['id'],'type':_0x100528[_0x2a4848(0x1a3)][_0x2a4848(0x18d)],'title':'exchange.download','icon':_0x2a4848(0x16e)};}const _0x2afa2e={[_0x100528[_0x4b4cec(0x17c)][_0x4b4cec(0x1b0)]]:{[_0x417e87]:{'order':0.3,'menuItemFactory':_0x21fdc9,[_0x3b8846['id']]:{'order':0x0,'menuItemFactory':_0x1f42e2},[_0x3976c1['id']]:{'order':0x1,'menuItemFactory':_0x2ccbbf}}}};var _0x34fb2d=Object[_0x4b4cec(0x17f)],_0x1ff486=(_0xa564cf,_0x1ef49a,_0x43f617,_0x5b2215)=>{var _0x5a0d87=_0x4b4cec;for(var _0x3ab54d=_0x5b2215>0x1?void 0x0:_0x5b2215?_0x34fb2d(_0x1ef49a,_0x43f617):_0x1ef49a,_0x3763db=_0xa564cf[_0x5a0d87(0x190)]-0x1,_0x3125bd;_0x3763db>=0x0;_0x3763db--)(_0x3125bd=_0xa564cf[_0x3763db])&&(_0x3ab54d=_0x3125bd(_0x3ab54d)||_0x3ab54d);return _0x3ab54d;},_0x3f922b=(_0xef6383,_0xcbb4b6)=>(_0x33f263,_0x2a00d9)=>_0xcbb4b6(_0x33f263,_0x2a00d9,_0xef6383);let _0x170d5d=class extends _0xab42ea[_0x4b4cec(0x1a0)]{constructor(_0x5aa4ff,_0x55da33){var _0x1c402e=_0x4b4cec;super(),this[_0x1c402e(0x1b4)]=_0x5aa4ff,this['_menuManagerService']=_0x55da33,this[_0x1c402e(0x18f)](),this[_0x1c402e(0x199)]();}[_0x4b4cec(0x18f)](){var _0x4a9ded=_0x4b4cec;[_0x3b8846,_0x3976c1][_0x4a9ded(0x17e)](_0x214fde=>{var _0x5d8c97=_0x4a9ded;this[_0x5d8c97(0x1ab)](this[_0x5d8c97(0x1b4)][_0x5d8c97(0x171)](_0x214fde));});}['_initMenus'](){var _0x10f2d3=_0x4b4cec;this['_menuManagerService'][_0x10f2d3(0x196)](_0x2afa2e);}};_0x170d5d=_0x1ff486([_0x3f922b(0x0,_0xab42ea[_0x4b4cec(0x1a9)]),_0x3f922b(0x1,_0x100528['IMenuManagerService'])],_0x170d5d);var _0x4b097e=Object[_0x4b4cec(0x1ac)],_0x5b90b9=Object[_0x4b4cec(0x17f)],_0x4f9ebe=(_0x29ef75,_0x23106a,_0x3d7928)=>_0x23106a in _0x29ef75?_0x4b097e(_0x29ef75,_0x23106a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3d7928}):_0x29ef75[_0x23106a]=_0x3d7928,_0x2b49ea=(_0x584b7f,_0x1afa6b,_0x6d5ba0,_0x19bea3)=>{var _0xe1c578=_0x4b4cec;for(var _0x5d32d2=_0x19bea3>0x1?void 0x0:_0x19bea3?_0x5b90b9(_0x1afa6b,_0x6d5ba0):_0x1afa6b,_0x8cbfc1=_0x584b7f[_0xe1c578(0x190)]-0x1,_0x2d346d;_0x8cbfc1>=0x0;_0x8cbfc1--)(_0x2d346d=_0x584b7f[_0x8cbfc1])&&(_0x5d32d2=_0x2d346d(_0x5d32d2)||_0x5d32d2);return _0x5d32d2;},_0x2e979d=(_0x4bd385,_0x520da8)=>(_0x5e6f2e,_0x473774)=>_0x520da8(_0x5e6f2e,_0x473774,_0x4bd385),_0x26a197=(_0x1ca7d6,_0x5c16d8,_0x33a6d8)=>_0x4f9ebe(_0x1ca7d6,typeof _0x5c16d8!=_0x4b4cec(0x1a1)?_0x5c16d8+'':_0x5c16d8,_0x33a6d8);const _0x4bb393='DOC_EXCHANGE_CLIENT_PLUGIN';_0x1910fb['UniverDocsExchangeClientPlugin']=class extends _0xab42ea[_0x4b4cec(0x188)]{constructor(_0x559e7b=_0x19d601,_0x4d857b,_0x1981a4){var _0x2fde12=_0x4b4cec;super(),this[_0x2fde12(0x174)]=_0x559e7b,this[_0x2fde12(0x180)]=_0x4d857b,this[_0x2fde12(0x187)]=_0x1981a4;const {menu:_0x8e3403,..._0x38a753}=_0xab42ea[_0x2fde12(0x19c)]({},_0x19d601,this['_config']);_0x8e3403&&this[_0x2fde12(0x187)]['setConfig'](_0x2fde12(0x1af),_0x8e3403,{'merge':!0x0}),this[_0x2fde12(0x187)][_0x2fde12(0x1a5)](_0x55073c,_0x38a753);}[_0x4b4cec(0x179)](){var _0x2954c2=_0x4b4cec;[[_0x170d5d]][_0x2954c2(0x17e)](_0x46ebfb=>this[_0x2954c2(0x180)][_0x2954c2(0x1a4)](_0x46ebfb));}[_0x4b4cec(0x19e)](){var _0x4a58bf=_0x4b4cec;this[_0x4a58bf(0x180)][_0x4a58bf(0x19f)](_0x170d5d);}},_0x26a197(_0x1910fb[_0x4b4cec(0x172)],_0x4b4cec(0x178),_0x4bb393),_0x26a197(_0x1910fb[_0x4b4cec(0x172)],_0x4b4cec(0x177),_0xab42ea[_0x4b4cec(0x170)]['UNIVER_DOC']),_0x1910fb['UniverDocsExchangeClientPlugin']=_0x2b49ea([_0xab42ea[_0x4b4cec(0x19d)](_0x3a1015[_0x4b4cec(0x185)]),_0x2e979d(0x1,_0xab42ea[_0x4b4cec(0x1b2)](_0xab42ea['Injector'])),_0x2e979d(0x2,_0xab42ea[_0x4b4cec(0x181)])],_0x1910fb[_0x4b4cec(0x172)]),_0x1910fb[_0x4b4cec(0x1b5)]=_0x3976c1,_0x1910fb['ImportDOCXOperation']=_0x3b8846,Object['defineProperty'](_0x1910fb,Symbol[_0x4b4cec(0x182)],{'value':_0x4b4cec(0x1b1)});}));
|
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.202506081606",
|
|
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.202506081606",
|
|
46
|
+
"@univerjs/ui": "0.8.0-nightly.202506081606",
|
|
47
|
+
"@univerjs/core": "0.8.0-nightly.202506081606"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"typescript": "^5.8.3",
|