@univerjs-pro/docs-exchange-client 0.2.8 → 0.2.10
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
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x3b0b25=_0xdac0;(function(_0x28f06e,_0x457e9e){var _0x2ea4fc=_0xdac0,_0x209c29=_0x28f06e();while(!![]){try{var _0x10ce8f=parseInt(_0x2ea4fc(0x189))/0x1*(parseInt(_0x2ea4fc(0x16b))/0x2)+parseInt(_0x2ea4fc(0x17b))/0x3+-parseInt(_0x2ea4fc(0x18d))/0x4+-parseInt(_0x2ea4fc(0x18c))/0x5*(parseInt(_0x2ea4fc(0x18e))/0x6)+parseInt(_0x2ea4fc(0x15f))/0x7+parseInt(_0x2ea4fc(0x15e))/0x8*(parseInt(_0x2ea4fc(0x18a))/0x9)+parseInt(_0x2ea4fc(0x160))/0xa*(-parseInt(_0x2ea4fc(0x188))/0xb);if(_0x10ce8f===_0x457e9e)break;else _0x209c29['push'](_0x209c29['shift']());}catch(_0x1a0be2){_0x209c29['push'](_0x209c29['shift']());}}}(_0x3b36,0x6dd78));Object[_0x3b0b25(0x176)](exports,Symbol[_0x3b0b25(0x187)],{'value':_0x3b0b25(0x196)});const o=require(_0x3b0b25(0x17f)),u=require(_0x3b0b25(0x19c)),a=require(_0x3b0b25(0x183)),_={'id':_0x3b0b25(0x199),'type':o[_0x3b0b25(0x182)]['OPERATION'],'handler':async _0x358505=>(_0x358505[_0x3b0b25(0x171)](u['IExchangeOperateService'])[_0x3b0b25(0x177)](),!0x0)},h={'id':_0x3b0b25(0x17c),'type':o[_0x3b0b25(0x182)][_0x3b0b25(0x163)],'handler':async _0x71d8ca=>(_0x71d8ca['get'](u['IExchangeOperateService'])['exportDOCXByUnitId'](),!0x0)},g=_0x3b0b25(0x165);function v(_0x1dcde6){var _0x226167=_0x3b0b25;return{'id':g,'group':a[_0x226167(0x15b)][_0x226167(0x175)],'type':a[_0x226167(0x18f)][_0x226167(0x173)],'icon':_0x226167(0x181),'tooltip':_0x226167(0x159),'positions':[a[_0x226167(0x161)]['TOOLBAR_START']],'hidden$':a[_0x226167(0x179)](_0x1dcde6,o[_0x226167(0x180)]['UNIVER_DOC'])};}function C(){var _0x26d594=_0x3b0b25;return{'id':_['id'],'type':a[_0x26d594(0x18f)][_0x26d594(0x19a)],'title':'exchange.upload','icon':_0x26d594(0x16d),'positions':[g]};}function _0x3b36(){var _0x5eb1e1=['Injector','onReady','exchange-client.operation.import-docx','BUTTON','invoke','@univerjs-pro/exchange-client','exchange.file','DOC_EXCHANGE_CLIENT_PLUGIN','MenuGroup','getOwnPropertyDescriptor','OnLifecycle','188248BjghdX','3277666JAoRaf','2468600xbmEeS','MenuPosition','ICommandService','OPERATION','_menuService','docs-exchange-client.operation.exchange','_initMenus','add','Disposable','_commandService','forEach','10tDDOKd','IMenuService','FolderSingle','_injector','length','pluginName','get','createInstance','SUBITEMS','symbol','TOOLBAR_LAYOUT','defineProperty','importDOCXToUnitId','ImportDOCXOperation','getMenuHiddenObservable','DependentOn','1311633nTEEhU','exchange-client.operation.export-docx','UniverDocsExchangeClientPlugin','_initCommands','@univerjs/core','UniverInstanceType','DirectExportSingle','CommandType','@univerjs/ui','Tools','addMenuItem','_config','toStringTag','11wUFuip','20924qDpvcW','81zsFuzi','LifecycleStages','2155vDcfOb','2012380dPomjH','306SqLCuS','MenuItemType','disposeWithMe','UNIVER_DOC','Plugin','Ready','Inject','UniverExchangeClientPlugin','Module'];_0x3b36=function(){return _0x5eb1e1;};return _0x3b36();}var m=Object[_0x3b0b25(0x176)],I=Object[_0x3b0b25(0x15c)],E=(_0x2234fd,_0x1b583e,_0x24ca92,_0x59e895)=>{var _0x19a522=_0x3b0b25;for(var _0xcc3eef=_0x59e895>0x1?void 0x0:_0x59e895?I(_0x1b583e,_0x24ca92):_0x1b583e,_0x32d5c0=_0x2234fd[_0x19a522(0x16f)]-0x1,_0x326a1a;_0x32d5c0>=0x0;_0x32d5c0--)(_0x326a1a=_0x2234fd[_0x32d5c0])&&(_0xcc3eef=(_0x59e895?_0x326a1a(_0x1b583e,_0x24ca92,_0xcc3eef):_0x326a1a(_0xcc3eef))||_0xcc3eef);return _0x59e895&&_0xcc3eef&&m(_0x1b583e,_0x24ca92,_0xcc3eef),_0xcc3eef;},l=(_0x4ea467,_0x39a1c6)=>(_0x59b2db,_0x56429e)=>_0x39a1c6(_0x59b2db,_0x56429e,_0x4ea467);const f={};let p=class extends o[_0x3b0b25(0x168)]{constructor(_0x60ee95,_0x5159cc,_0x3157cf,_0x43c149){var _0x22b8c3=_0x3b0b25;super(),this[_0x22b8c3(0x186)]=_0x60ee95,this[_0x22b8c3(0x16e)]=_0x5159cc,this[_0x22b8c3(0x169)]=_0x3157cf,this['_menuService']=_0x43c149,this['_initCommands'](),this[_0x22b8c3(0x166)]();}[_0x3b0b25(0x17e)](){var _0x53d752=_0x3b0b25;[_,h][_0x53d752(0x16a)](_0x4766c3=>{var _0x37ca87=_0x53d752;this[_0x37ca87(0x190)](this[_0x37ca87(0x169)]['registerCommand'](_0x4766c3));});}[_0x3b0b25(0x166)](){var _0x3d00e5=_0x3b0b25;const {menu:_0x438834={}}=this[_0x3d00e5(0x186)];[v,C]['forEach'](_0x8a074f=>{var _0x426ea5=_0x3d00e5;this[_0x426ea5(0x190)](this[_0x426ea5(0x164)][_0x426ea5(0x185)](this[_0x426ea5(0x16e)][_0x426ea5(0x19b)](_0x8a074f),_0x438834));});}};function _0xdac0(_0x78bd89,_0xc7ca97){var _0x3b3632=_0x3b36();return _0xdac0=function(_0xdac087,_0x5dc65a){_0xdac087=_0xdac087-0x159;var _0x10921d=_0x3b3632[_0xdac087];return _0x10921d;},_0xdac0(_0x78bd89,_0xc7ca97);}p=E([o[_0x3b0b25(0x15d)](o[_0x3b0b25(0x18b)][_0x3b0b25(0x193)],p),l(0x1,o['Inject'](o[_0x3b0b25(0x197)])),l(0x2,o[_0x3b0b25(0x162)]),l(0x3,a[_0x3b0b25(0x16c)])],p);var d=Object[_0x3b0b25(0x176)],D=Object[_0x3b0b25(0x15c)],x=(_0x5c667a,_0x3d9bc8,_0xb8370)=>_0x3d9bc8 in _0x5c667a?d(_0x5c667a,_0x3d9bc8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xb8370}):_0x5c667a[_0x3d9bc8]=_0xb8370,P=(_0x4b4fa2,_0x11d9c2,_0x5522de,_0x335bfe)=>{for(var _0x2db218=_0x335bfe>0x1?void 0x0:_0x335bfe?D(_0x11d9c2,_0x5522de):_0x11d9c2,_0x190522=_0x4b4fa2['length']-0x1,_0x7eb041;_0x190522>=0x0;_0x190522--)(_0x7eb041=_0x4b4fa2[_0x190522])&&(_0x2db218=(_0x335bfe?_0x7eb041(_0x11d9c2,_0x5522de,_0x2db218):_0x7eb041(_0x2db218))||_0x2db218);return _0x335bfe&&_0x2db218&&d(_0x11d9c2,_0x5522de,_0x2db218),_0x2db218;},T=(_0x411a2d,_0x1427b7)=>(_0x5b875e,_0x4968b5)=>_0x1427b7(_0x5b875e,_0x4968b5,_0x411a2d),O=(_0x210a6b,_0x5f4b08,_0x3b7520)=>x(_0x210a6b,typeof _0x5f4b08!=_0x3b0b25(0x174)?_0x5f4b08+'':_0x5f4b08,_0x3b7520);const y=_0x3b0b25(0x15a);exports[_0x3b0b25(0x17d)]=class extends o[_0x3b0b25(0x192)]{constructor(_0x398080={},_0x3abfc5){var _0x364c50=_0x3b0b25;super(),this[_0x364c50(0x186)]=_0x398080,this[_0x364c50(0x16e)]=_0x3abfc5,this[_0x364c50(0x186)]=o[_0x364c50(0x184)]['deepMerge']({},f,this[_0x364c50(0x186)]);}['initialize'](){var _0x42ed59=_0x3b0b25;[[p,{'useFactory':()=>this['_injector'][_0x42ed59(0x172)](p,this['_config'])}]][_0x42ed59(0x16a)](_0x13f78f=>this[_0x42ed59(0x16e)][_0x42ed59(0x167)](_0x13f78f));}[_0x3b0b25(0x198)](){this['initialize']();}},O(exports[_0x3b0b25(0x17d)],_0x3b0b25(0x170),y),O(exports[_0x3b0b25(0x17d)],'type',o[_0x3b0b25(0x180)][_0x3b0b25(0x191)]),exports[_0x3b0b25(0x17d)]=P([o[_0x3b0b25(0x17a)](u[_0x3b0b25(0x195)]),T(0x1,o[_0x3b0b25(0x194)](o[_0x3b0b25(0x197)]))],exports[_0x3b0b25(0x17d)]),exports['ExportDOCXOperation']=h,exports[_0x3b0b25(0x178)]=_;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0xf1b538=_0x1d80;(function(_0x5a49f8,_0x425059){var _0x3f05ee=_0x1d80,_0x1bba74=_0x5a49f8();while(!![]){try{var _0x2511bf=parseInt(_0x3f05ee(0xa9))/0x1*(parseInt(_0x3f05ee(0xc6))/0x2)+-parseInt(_0x3f05ee(0xc4))/0x3+-parseInt(_0x3f05ee(0xa5))/0x4*(parseInt(_0x3f05ee(0xbd))/0x5)+-parseInt(_0x3f05ee(0xbe))/0x6+parseInt(_0x3f05ee(0xae))/0x7*(parseInt(_0x3f05ee(0xc7))/0x8)+parseInt(_0x3f05ee(0xb5))/0x9+parseInt(_0x3f05ee(0xcc))/0xa*(parseInt(_0x3f05ee(0xba))/0xb);if(_0x2511bf===_0x425059)break;else _0x1bba74['push'](_0x1bba74['shift']());}catch(_0x10fef1){_0x1bba74['push'](_0x1bba74['shift']());}}}(_0x1c89,0x23137));import{CommandType as _0x54d00e,UniverInstanceType as _0x56b6f8,OnLifecycle as _0x556b95,LifecycleStages as _0x95b1aa,Inject as _0x41beb7,Injector as _0x30d314,Disposable as _0x351f49,ICommandService as _0x2f0ca4,DependentOn as _0x42cee5,Plugin as _0x30bcff,Tools as _0x47c29a}from'@univerjs/core';import{IExchangeOperateService as _0x95d158,UniverExchangeClientPlugin as _0x2a0ff4}from'@univerjs-pro/exchange-client';import{MenuGroup as _0x263904,MenuItemType as _0x38269b,MenuPosition as _0x437da5,getMenuHiddenObservable as _0x16985c,IMenuService as _0x46ee01}from'@univerjs/ui';const O={'id':'exchange-client.operation.import-docx','type':_0x54d00e[_0xf1b538(0xca)],'handler':async _0xf9993d=>(_0xf9993d[_0xf1b538(0xbc)](_0x95d158)[_0xf1b538(0xbf)](),!0x0)},b={'id':'exchange-client.operation.export-docx','type':_0x54d00e['OPERATION'],'handler':async _0x31f595=>(_0x31f595[_0xf1b538(0xbc)](_0x95d158)[_0xf1b538(0xd0)](),!0x0)},g=_0xf1b538(0xb4);function A(_0x5da9ef){var _0x2e1ea0=_0xf1b538;return{'id':g,'group':_0x263904['TOOLBAR_LAYOUT'],'type':_0x38269b[_0x2e1ea0(0xc1)],'icon':_0x2e1ea0(0xac),'tooltip':'exchange.file','positions':[_0x437da5['TOOLBAR_START']],'hidden$':_0x16985c(_0x5da9ef,_0x56b6f8['UNIVER_DOC'])};}function R(){var _0x265462=_0xf1b538;return{'id':O['id'],'type':_0x38269b[_0x265462(0xc5)],'title':_0x265462(0xb3),'icon':_0x265462(0xb9),'positions':[g]};}var j=Object[_0xf1b538(0xaa)],L=Object[_0xf1b538(0xb2)],X=(_0xbdd879,_0x403df6,_0x1219db,_0x1af6ad)=>{var _0x3689ef=_0xf1b538;for(var _0x588577=_0x1af6ad>0x1?void 0x0:_0x1af6ad?L(_0x403df6,_0x1219db):_0x403df6,_0x2bc5cf=_0xbdd879[_0x3689ef(0xce)]-0x1,_0x37e9c6;_0x2bc5cf>=0x0;_0x2bc5cf--)(_0x37e9c6=_0xbdd879[_0x2bc5cf])&&(_0x588577=(_0x1af6ad?_0x37e9c6(_0x403df6,_0x1219db,_0x588577):_0x37e9c6(_0x588577))||_0x588577);return _0x1af6ad&&_0x588577&&j(_0x403df6,_0x1219db,_0x588577),_0x588577;},p=(_0x3b3d27,_0x279875)=>(_0x469fa9,_0x323383)=>_0x279875(_0x469fa9,_0x323383,_0x3b3d27);const G={};function _0x1c89(){var _0x436038=['581MeDpsV','add','UNIVER_DOC','initialize','getOwnPropertyDescriptor','exchange.upload','docs-exchange-client.operation.exchange','68976bOcDAm','registerCommand','onReady','createInstance','FolderSingle','1913087uWTogZ','symbol','get','5KzEIRn','849630aSeRTX','importDOCXToUnitId','Ready','SUBITEMS','_commandService','_config','156471maxEXm','BUTTON','8VJTrGF','15656KLsEMu','_initMenus','pluginName','OPERATION','_initCommands','10stDNno','_injector','length','type','exportDOCXByUnitId','DOC_EXCHANGE_CLIENT_PLUGIN','854380TMQZvr','deepMerge','invoke','_menuService','51754EjjJWS','defineProperty','disposeWithMe','DirectExportSingle','forEach'];_0x1c89=function(){return _0x436038;};return _0x1c89();}let s=class extends _0x351f49{constructor(_0x460640,_0x175ba0,_0x322df5,_0x27e5f5){var _0x4001da=_0xf1b538;super(),this[_0x4001da(0xc3)]=_0x460640,this[_0x4001da(0xcd)]=_0x175ba0,this['_commandService']=_0x322df5,this[_0x4001da(0xa8)]=_0x27e5f5,this[_0x4001da(0xcb)](),this['_initMenus']();}[_0xf1b538(0xcb)](){[O,b]['forEach'](_0x2aed9a=>{var _0x10e0c4=_0x1d80;this[_0x10e0c4(0xab)](this[_0x10e0c4(0xc2)][_0x10e0c4(0xb6)](_0x2aed9a));});}[_0xf1b538(0xc8)](){var _0x27ee9f=_0xf1b538;const {menu:_0xae1003={}}=this[_0x27ee9f(0xc3)];[A,R]['forEach'](_0x1c618c=>{var _0x428a04=_0x27ee9f;this[_0x428a04(0xab)](this['_menuService']['addMenuItem'](this['_injector'][_0x428a04(0xa7)](_0x1c618c),_0xae1003));});}};s=X([_0x556b95(_0x95b1aa[_0xf1b538(0xc0)],s),p(0x1,_0x41beb7(_0x30d314)),p(0x2,_0x2f0ca4),p(0x3,_0x46ee01)],s);var f=Object['defineProperty'],w=Object[_0xf1b538(0xb2)],B=(_0x235c5b,_0x1288b6,_0x3b9513)=>_0x1288b6 in _0x235c5b?f(_0x235c5b,_0x1288b6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b9513}):_0x235c5b[_0x1288b6]=_0x3b9513,F=(_0x2cefc2,_0x2a5a08,_0x44dfb4,_0xfeea1a)=>{var _0x546ccc=_0xf1b538;for(var _0x5b9b42=_0xfeea1a>0x1?void 0x0:_0xfeea1a?w(_0x2a5a08,_0x44dfb4):_0x2a5a08,_0x5525a9=_0x2cefc2[_0x546ccc(0xce)]-0x1,_0x3a4502;_0x5525a9>=0x0;_0x5525a9--)(_0x3a4502=_0x2cefc2[_0x5525a9])&&(_0x5b9b42=(_0xfeea1a?_0x3a4502(_0x2a5a08,_0x44dfb4,_0x5b9b42):_0x3a4502(_0x5b9b42))||_0x5b9b42);return _0xfeea1a&&_0x5b9b42&&f(_0x2a5a08,_0x44dfb4,_0x5b9b42),_0x5b9b42;},$=(_0x1fb07c,_0x43b611)=>(_0x34a8f5,_0x1853c0)=>_0x43b611(_0x34a8f5,_0x1853c0,_0x1fb07c),v=(_0x591206,_0x42dec6,_0x9f87f6)=>B(_0x591206,typeof _0x42dec6!=_0xf1b538(0xbb)?_0x42dec6+'':_0x42dec6,_0x9f87f6);const H=_0xf1b538(0xd1);let a=class extends _0x30bcff{constructor(_0x491f81={},_0x1d700b){var _0x276d5b=_0xf1b538;super(),this[_0x276d5b(0xc3)]=_0x491f81,this[_0x276d5b(0xcd)]=_0x1d700b,this['_config']=_0x47c29a[_0x276d5b(0xa6)]({},G,this[_0x276d5b(0xc3)]);}['initialize'](){var _0x39a259=_0xf1b538;[[s,{'useFactory':()=>this[_0x39a259(0xcd)][_0x39a259(0xb8)](s,this[_0x39a259(0xc3)])}]][_0x39a259(0xad)](_0x5b77d6=>this['_injector'][_0x39a259(0xaf)](_0x5b77d6));}[_0xf1b538(0xb7)](){var _0x57bd0c=_0xf1b538;this[_0x57bd0c(0xb1)]();}};function _0x1d80(_0x193832,_0x200c11){var _0x1c890d=_0x1c89();return _0x1d80=function(_0x1d80e5,_0x4a7c57){_0x1d80e5=_0x1d80e5-0xa5;var _0xf5997d=_0x1c890d[_0x1d80e5];return _0xf5997d;},_0x1d80(_0x193832,_0x200c11);}v(a,_0xf1b538(0xc9),H),v(a,_0xf1b538(0xcf),_0x56b6f8[_0xf1b538(0xb0)]),a=F([_0x42cee5(_0x2a0ff4),$(0x1,_0x41beb7(_0x30d314))],a);export{b as ExportDOCXOperation,O as ImportDOCXOperation,a as UniverDocsExchangeClientPlugin};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ICommand } from '@univerjs/core';
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
2
|
+
export declare const ImportDOCXOperation: ICommand;
|
|
3
|
+
export declare const ExportDOCXOperation: ICommand;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { UniverDocsExchangeClientPlugin } from './plugin';
|
|
2
|
-
export {
|
|
2
|
+
export { ImportDOCXOperation, ExportDOCXOperation, } from './commands/operations/exchange.operation';
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4a16bc,_0x5a21de){var _0x262613=_0x23c1,_0x2db4b5=_0x4a16bc();while(!![]){try{var _0x2c75d8=parseInt(_0x262613(0x1bd))/0x1*(parseInt(_0x262613(0x1a5))/0x2)+-parseInt(_0x262613(0x1ce))/0x3*(-parseInt(_0x262613(0x1e4))/0x4)+parseInt(_0x262613(0x1c3))/0x5*(-parseInt(_0x262613(0x1d1))/0x6)+parseInt(_0x262613(0x1c7))/0x7+-parseInt(_0x262613(0x1b6))/0x8+parseInt(_0x262613(0x1cc))/0x9+parseInt(_0x262613(0x1b7))/0xa;if(_0x2c75d8===_0x5a21de)break;else _0x2db4b5['push'](_0x2db4b5['shift']());}catch(_0xa2aaef){_0x2db4b5['push'](_0x2db4b5['shift']());}}}(_0x287b,0x7b6cb),function(_0x3f1582,_0x4dcfb9){var _0x2ed269=_0x23c1;typeof exports==_0x2ed269(0x1be)&&typeof module<'u'?_0x4dcfb9(exports,require(_0x2ed269(0x1a4)),require(_0x2ed269(0x1cb)),require('@univerjs/ui')):typeof define==_0x2ed269(0x1ac)&&define[_0x2ed269(0x1e1)]?define([_0x2ed269(0x1a2),_0x2ed269(0x1a4),'@univerjs-pro/exchange-client',_0x2ed269(0x1e2)],_0x4dcfb9):(_0x3f1582=typeof globalThis<'u'?globalThis:_0x3f1582||self,_0x4dcfb9(_0x3f1582[_0x2ed269(0x1af)]={},_0x3f1582[_0x2ed269(0x1b2)],_0x3f1582['UniverExchangeClient'],_0x3f1582[_0x2ed269(0x1d7)]));}(this,function(_0x1194fb,_0x338cf2,_0x39ec35,_0x4fd024){'use strict';var _0x37a9a0=_0x23c1;const _0x2b67a6={'id':_0x37a9a0(0x1ca),'type':_0x338cf2[_0x37a9a0(0x1d0)][_0x37a9a0(0x1b1)],'handler':async _0x3f4727=>(_0x3f4727[_0x37a9a0(0x1e6)](_0x39ec35[_0x37a9a0(0x1de)])[_0x37a9a0(0x1ab)](),!0x0)},_0x1e565c={'id':_0x37a9a0(0x1c4),'type':_0x338cf2['CommandType']['OPERATION'],'handler':async _0x2a2f0f=>(_0x2a2f0f[_0x37a9a0(0x1e6)](_0x39ec35[_0x37a9a0(0x1de)])[_0x37a9a0(0x1aa)](),!0x0)},_0x20f13c=_0x37a9a0(0x1d3);function _0x436319(_0x2e89ee){var _0x4e1305=_0x37a9a0;return{'id':_0x20f13c,'group':_0x4fd024['MenuGroup'][_0x4e1305(0x1bc)],'type':_0x4fd024[_0x4e1305(0x1d8)]['SUBITEMS'],'icon':_0x4e1305(0x1dc),'tooltip':'exchange.file','positions':[_0x4fd024[_0x4e1305(0x1e0)]['TOOLBAR_START']],'hidden$':_0x4fd024[_0x4e1305(0x1d4)](_0x2e89ee,_0x338cf2[_0x4e1305(0x1d6)][_0x4e1305(0x1db)])};}function _0x5883b6(){var _0x3e5b21=_0x37a9a0;return{'id':_0x2b67a6['id'],'type':_0x4fd024[_0x3e5b21(0x1d8)]['BUTTON'],'title':_0x3e5b21(0x1b3),'icon':'FolderSingle','positions':[_0x20f13c]};}var _0x2188e1=Object[_0x37a9a0(0x1c5)],_0x56d2a0=Object[_0x37a9a0(0x1ad)],_0xa1bc21=(_0x571afc,_0xb184eb,_0x2d6ce7,_0xa3c223)=>{for(var _0x3995e3=_0xa3c223>0x1?void 0x0:_0xa3c223?_0x56d2a0(_0xb184eb,_0x2d6ce7):_0xb184eb,_0x539533=_0x571afc['length']-0x1,_0x471867;_0x539533>=0x0;_0x539533--)(_0x471867=_0x571afc[_0x539533])&&(_0x3995e3=(_0xa3c223?_0x471867(_0xb184eb,_0x2d6ce7,_0x3995e3):_0x471867(_0x3995e3))||_0x3995e3);return _0xa3c223&&_0x3995e3&&_0x2188e1(_0xb184eb,_0x2d6ce7,_0x3995e3),_0x3995e3;},_0x375797=(_0x55dd1c,_0xd880be)=>(_0x4d40e0,_0x3da6f7)=>_0xd880be(_0x4d40e0,_0x3da6f7,_0x55dd1c);const _0x130dde={};let _0x129185=class extends _0x338cf2[_0x37a9a0(0x1bb)]{constructor(_0x3cf99c,_0x2eaf59,_0x3a3641,_0x2fe215){var _0x160f06=_0x37a9a0;super(),this[_0x160f06(0x1b0)]=_0x3cf99c,this[_0x160f06(0x1ae)]=_0x2eaf59,this[_0x160f06(0x1cd)]=_0x3a3641,this['_menuService']=_0x2fe215,this[_0x160f06(0x1b5)](),this[_0x160f06(0x1c9)]();}['_initCommands'](){var _0xf1ab2e=_0x37a9a0;[_0x2b67a6,_0x1e565c][_0xf1ab2e(0x1b8)](_0x488347=>{var _0x222a12=_0xf1ab2e;this[_0x222a12(0x1b9)](this[_0x222a12(0x1cd)][_0x222a12(0x1cf)](_0x488347));});}[_0x37a9a0(0x1c9)](){var _0x428547=_0x37a9a0;const {menu:_0x12adf9={}}=this[_0x428547(0x1b0)];[_0x436319,_0x5883b6][_0x428547(0x1b8)](_0x381c55=>{var _0x45ca28=_0x428547;this[_0x45ca28(0x1b9)](this[_0x45ca28(0x1bf)][_0x45ca28(0x1e5)](this[_0x45ca28(0x1ae)][_0x45ca28(0x1e3)](_0x381c55),_0x12adf9));});}};_0x129185=_0xa1bc21([_0x338cf2[_0x37a9a0(0x1c8)](_0x338cf2[_0x37a9a0(0x1c2)][_0x37a9a0(0x1a7)],_0x129185),_0x375797(0x1,_0x338cf2[_0x37a9a0(0x1c0)](_0x338cf2[_0x37a9a0(0x1a9)])),_0x375797(0x2,_0x338cf2[_0x37a9a0(0x1d5)]),_0x375797(0x3,_0x4fd024['IMenuService'])],_0x129185);var _0x22c62e=Object[_0x37a9a0(0x1c5)],_0x543235=Object['getOwnPropertyDescriptor'],_0x33e152=(_0x32ccc2,_0x58443c,_0x361e47)=>_0x58443c in _0x32ccc2?_0x22c62e(_0x32ccc2,_0x58443c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x361e47}):_0x32ccc2[_0x58443c]=_0x361e47,_0x2c6245=(_0x40eca4,_0x49a92c,_0x22f016,_0x5a75c5)=>{var _0x30c9b3=_0x37a9a0;for(var _0x5ef5d7=_0x5a75c5>0x1?void 0x0:_0x5a75c5?_0x543235(_0x49a92c,_0x22f016):_0x49a92c,_0x3adf46=_0x40eca4[_0x30c9b3(0x1dd)]-0x1,_0x1005b2;_0x3adf46>=0x0;_0x3adf46--)(_0x1005b2=_0x40eca4[_0x3adf46])&&(_0x5ef5d7=(_0x5a75c5?_0x1005b2(_0x49a92c,_0x22f016,_0x5ef5d7):_0x1005b2(_0x5ef5d7))||_0x5ef5d7);return _0x5a75c5&&_0x5ef5d7&&_0x22c62e(_0x49a92c,_0x22f016,_0x5ef5d7),_0x5ef5d7;},_0x28db14=(_0x41df49,_0x152890)=>(_0x39fef5,_0x2076ed)=>_0x152890(_0x39fef5,_0x2076ed,_0x41df49),_0x2bdda1=(_0x1e459b,_0x468aef,_0x103fa9)=>_0x33e152(_0x1e459b,typeof _0x468aef!='symbol'?_0x468aef+'':_0x468aef,_0x103fa9);const _0x4fddf8=_0x37a9a0(0x1c6);_0x1194fb['UniverDocsExchangeClientPlugin']=class extends _0x338cf2[_0x37a9a0(0x1da)]{constructor(_0x41aa60={},_0x4e7a33){var _0x4660b7=_0x37a9a0;super(),this[_0x4660b7(0x1b0)]=_0x41aa60,this[_0x4660b7(0x1ae)]=_0x4e7a33,this[_0x4660b7(0x1b0)]=_0x338cf2[_0x4660b7(0x1d2)]['deepMerge']({},_0x130dde,this[_0x4660b7(0x1b0)]);}[_0x37a9a0(0x1a6)](){var _0x44ae6e=_0x37a9a0;[[_0x129185,{'useFactory':()=>this[_0x44ae6e(0x1ae)][_0x44ae6e(0x1b4)](_0x129185,this['_config'])}]]['forEach'](_0x36b0bc=>this[_0x44ae6e(0x1ae)][_0x44ae6e(0x1d9)](_0x36b0bc));}['onReady'](){this['initialize']();}},_0x2bdda1(_0x1194fb[_0x37a9a0(0x1ba)],'pluginName',_0x4fddf8),_0x2bdda1(_0x1194fb[_0x37a9a0(0x1ba)],_0x37a9a0(0x1df),_0x338cf2[_0x37a9a0(0x1d6)]['UNIVER_DOC']),_0x1194fb[_0x37a9a0(0x1ba)]=_0x2c6245([_0x338cf2[_0x37a9a0(0x1c1)](_0x39ec35['UniverExchangeClientPlugin']),_0x28db14(0x1,_0x338cf2[_0x37a9a0(0x1c0)](_0x338cf2[_0x37a9a0(0x1a9)]))],_0x1194fb[_0x37a9a0(0x1ba)]),_0x1194fb[_0x37a9a0(0x1a8)]=_0x1e565c,_0x1194fb[_0x37a9a0(0x1a1)]=_0x2b67a6,Object['defineProperty'](_0x1194fb,Symbol[_0x37a9a0(0x1a3)],{'value':'Module'});}));function _0x23c1(_0x2baa2f,_0x4b4d4b){var _0x287be7=_0x287b();return _0x23c1=function(_0x23c1c4,_0xa4ac8d){_0x23c1c4=_0x23c1c4-0x1a1;var _0x2dd547=_0x287be7[_0x23c1c4];return _0x2dd547;},_0x23c1(_0x2baa2f,_0x4b4d4b);}function _0x287b(){var _0x2e376d=['ExportDOCXOperation','Injector','exportDOCXByUnitId','importDOCXToUnitId','function','getOwnPropertyDescriptor','_injector','UniverDocsExchangeClient','_config','OPERATION','UniverCore','exchange.upload','createInstance','_initCommands','2442592smcnpB','4055810uaSgnt','forEach','disposeWithMe','UniverDocsExchangeClientPlugin','Disposable','TOOLBAR_LAYOUT','33CEPHEL','object','_menuService','Inject','DependentOn','LifecycleStages','5NMmYZG','exchange-client.operation.export-docx','defineProperty','DOC_EXCHANGE_CLIENT_PLUGIN','107597BNMlIO','OnLifecycle','_initMenus','exchange-client.operation.import-docx','@univerjs-pro/exchange-client','3520458vcqGjw','_commandService','1274097COJEkw','registerCommand','CommandType','3929178NWkxGY','Tools','docs-exchange-client.operation.exchange','getMenuHiddenObservable','ICommandService','UniverInstanceType','UniverUi','MenuItemType','add','Plugin','UNIVER_DOC','DirectExportSingle','length','IExchangeOperateService','type','MenuPosition','amd','@univerjs/ui','invoke','4vJTUGr','addMenuItem','get','ImportDOCXOperation','exports','toStringTag','@univerjs/core','13874KlmsXG','initialize','Ready'];_0x287b=function(){return _0x2e376d;};return _0x287b();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/docs-exchange-client",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.10",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -43,15 +43,15 @@
|
|
|
43
43
|
"lib"
|
|
44
44
|
],
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@univerjs/
|
|
47
|
-
"@univerjs/
|
|
48
|
-
"@univerjs
|
|
46
|
+
"@univerjs-pro/exchange-client": "0.2.10",
|
|
47
|
+
"@univerjs/core": "0.2.10",
|
|
48
|
+
"@univerjs/ui": "0.2.10"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@univerjs/icons": "^0.1.72",
|
|
52
|
-
"@univerjs/docs": "0.2.
|
|
53
|
-
"@univerjs/protocol": "0.1.39-alpha.
|
|
54
|
-
"@univerjs/docs-ui": "0.2.
|
|
52
|
+
"@univerjs/docs": "0.2.10",
|
|
53
|
+
"@univerjs/protocol": "0.1.39-alpha.15",
|
|
54
|
+
"@univerjs/docs-ui": "0.2.10"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@types/pako": "^2.0.3",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"typescript": "^5.5.4",
|
|
62
62
|
"vite": "^5.4.0",
|
|
63
63
|
"vitest": "^2.0.5",
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs
|
|
66
|
-
"@univerjs/shared": "0.2.
|
|
64
|
+
"@univerjs-pro/exchange-client": "0.2.10",
|
|
65
|
+
"@univerjs/core": "0.2.10",
|
|
66
|
+
"@univerjs/shared": "0.2.10"
|
|
67
67
|
},
|
|
68
68
|
"univerSpace": {
|
|
69
69
|
".": {
|