@univerjs-pro/docs-exchange-client 0.2.11 → 0.2.12
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/types/controllers/config.schema.d.ts +7 -0
- package/lib/types/controllers/exchange.controller.d.ts +4 -10
- package/lib/types/controllers/menu.d.ts +1 -0
- package/lib/types/controllers/menu.schema.d.ts +2 -0
- package/lib/types/plugin.d.ts +4 -3
- package/lib/umd/index.js +1 -1
- package/package.json +10 -10
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x5d3106=_0x7527;(function(_0x3c08aa,_0x4f107b){const _0x19ba31=_0x7527,_0x207371=_0x3c08aa();while(!![]){try{const _0x1f1268=-parseInt(_0x19ba31(0x102))/0x1+-parseInt(_0x19ba31(0x11b))/0x2+parseInt(_0x19ba31(0x11f))/0x3*(-parseInt(_0x19ba31(0x130))/0x4)+parseInt(_0x19ba31(0x121))/0x5*(-parseInt(_0x19ba31(0x129))/0x6)+parseInt(_0x19ba31(0x107))/0x7*(-parseInt(_0x19ba31(0x10a))/0x8)+-parseInt(_0x19ba31(0x127))/0x9+-parseInt(_0x19ba31(0x118))/0xa*(-parseInt(_0x19ba31(0x112))/0xb);if(_0x1f1268===_0x4f107b)break;else _0x207371['push'](_0x207371['shift']());}catch(_0x3cec02){_0x207371['push'](_0x207371['shift']());}}}(_0xd3fd,0x420e6));Object['defineProperty'](exports,Symbol[_0x5d3106(0x128)],{'value':_0x5d3106(0x131)});const o=require('@univerjs/core'),g=require(_0x5d3106(0x12d)),s=require('@univerjs/ui'),u={'id':_0x5d3106(0x120),'type':o['CommandType'][_0x5d3106(0x12c)],'handler':async _0x18309d=>(_0x18309d['get'](g['IExchangeOperateService'])[_0x5d3106(0x103)](),!0x0)},l={'id':'exchange-client.operation.export-docx','type':o[_0x5d3106(0x11d)][_0x5d3106(0x12c)],'handler':async _0x50fd9a=>(_0x50fd9a['get'](g[_0x5d3106(0xff)])[_0x5d3106(0x12a)](),!0x0)},_=_0x5d3106(0x10e);function _0x7527(_0x512c2b,_0x581458){const _0xd3fd87=_0xd3fd();return _0x7527=function(_0x752783,_0x1a5206){_0x752783=_0x752783-0xff;let _0x1773ed=_0xd3fd87[_0x752783];return _0x1773ed;},_0x7527(_0x512c2b,_0x581458);}function C(_0x15a392){const _0x17c1dd=_0x5d3106;return{'id':_,'type':s['MenuItemType'][_0x17c1dd(0x12b)],'icon':'DirectExportSingle','tooltip':_0x17c1dd(0x122),'hidden$':s[_0x17c1dd(0x11a)](_0x15a392,o[_0x17c1dd(0x10d)][_0x17c1dd(0x100)])};}function O(){const _0x1f1a51=_0x5d3106;return{'id':u['id'],'type':s[_0x1f1a51(0x117)][_0x1f1a51(0x12f)],'title':'exchange.upload','icon':_0x1f1a51(0x11c)};}function I(){const _0x22ba19=_0x5d3106;return{'id':l['id'],'type':s[_0x22ba19(0x117)]['BUTTON'],'title':_0x22ba19(0x111),'icon':'ExportSingle'};}const f={[s[_0x5d3106(0x116)]['FILE']]:{[_]:{'order':0x4,'menuItemFactory':C,[u['id']]:{'order':0x0,'menuItemFactory':O},[l['id']]:{'order':0x1,'menuItemFactory':I}}}};var E=Object[_0x5d3106(0x109)],x=Object[_0x5d3106(0x11e)],D=(_0x407f43,_0x3cc1b9,_0x5800d3,_0x1865c0)=>{const _0xa75be1=_0x5d3106;for(var _0x3095de=_0x1865c0>0x1?void 0x0:_0x1865c0?x(_0x3cc1b9,_0x5800d3):_0x3cc1b9,_0x4b5a61=_0x407f43[_0xa75be1(0x105)]-0x1,_0x1a8972;_0x4b5a61>=0x0;_0x4b5a61--)(_0x1a8972=_0x407f43[_0x4b5a61])&&(_0x3095de=(_0x1865c0?_0x1a8972(_0x3cc1b9,_0x5800d3,_0x3095de):_0x1a8972(_0x3095de))||_0x3095de);return _0x1865c0&&_0x3095de&&E(_0x3cc1b9,_0x5800d3,_0x3095de),_0x3095de;},d=(_0x55ca9a,_0x451f02)=>(_0x4e77e7,_0x2fe5d0)=>_0x451f02(_0x4e77e7,_0x2fe5d0,_0x55ca9a);let p=class extends o['Disposable']{constructor(_0x42e427,_0x441935){const _0x249266=_0x5d3106;super(),this[_0x249266(0x104)]=_0x42e427,this['_menuManagerService']=_0x441935,this[_0x249266(0x123)](),this[_0x249266(0x115)]();}[_0x5d3106(0x123)](){const _0x543ae3=_0x5d3106;[u,l][_0x543ae3(0x134)](_0xd22037=>{const _0x2d8a7c=_0x543ae3;this['disposeWithMe'](this['_commandService'][_0x2d8a7c(0x137)](_0xd22037));});}[_0x5d3106(0x115)](){const _0x2475ca=_0x5d3106;this[_0x2475ca(0x10f)][_0x2475ca(0x136)](f);}};p=D([o['OnLifecycle'](o[_0x5d3106(0x10b)][_0x5d3106(0x119)],p),d(0x0,o['ICommandService']),d(0x1,s[_0x5d3106(0x132)])],p);const y=_0x5d3106(0x139),P={};var h=Object[_0x5d3106(0x109)],S=Object[_0x5d3106(0x11e)],U=(_0x5adbf5,_0x10b6da,_0x5267f4)=>_0x10b6da in _0x5adbf5?h(_0x5adbf5,_0x10b6da,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5267f4}):_0x5adbf5[_0x10b6da]=_0x5267f4,T=(_0x2bd595,_0x26e17a,_0x4212fa,_0x49e6f7)=>{for(var _0x21ab5f=_0x49e6f7>0x1?void 0x0:_0x49e6f7?S(_0x26e17a,_0x4212fa):_0x26e17a,_0x368726=_0x2bd595['length']-0x1,_0x182f63;_0x368726>=0x0;_0x368726--)(_0x182f63=_0x2bd595[_0x368726])&&(_0x21ab5f=(_0x49e6f7?_0x182f63(_0x26e17a,_0x4212fa,_0x21ab5f):_0x182f63(_0x21ab5f))||_0x21ab5f);return _0x49e6f7&&_0x21ab5f&&h(_0x26e17a,_0x4212fa,_0x21ab5f),_0x21ab5f;},m=(_0x50c10a,_0x39f1b0)=>(_0x2f8bd1,_0x14cefb)=>_0x39f1b0(_0x2f8bd1,_0x14cefb,_0x50c10a),v=(_0x16824e,_0x2c71d2,_0x5b4292)=>U(_0x16824e,typeof _0x2c71d2!=_0x5d3106(0x108)?_0x2c71d2+'':_0x2c71d2,_0x5b4292);const N='DOC_EXCHANGE_CLIENT_PLUGIN';function _0xd3fd(){const _0x4be1b4=['Ready','getMenuHiddenObservable','881858aVwvAu','FolderSingle','CommandType','getOwnPropertyDescriptor','3HDUXeL','exchange-client.operation.import-docx','5npQOSy','exchange.file','_initCommands','Inject','_configService','add','1676916KRckum','toStringTag','1655538LilIEz','exportDOCXByUnitId','SUBITEMS','OPERATION','@univerjs-pro/exchange-client','ExportDOCXOperation','BUTTON','123356Einazw','Module','IMenuManagerService','UniverDocsExchangeClientPlugin','forEach','_injector','mergeMenu','registerCommand','setConfig','docs-exchange-client.config','pluginName','IExchangeOperateService','UNIVER_DOC','menu','537243LPFANZ','importDOCXToUnitId','_commandService','length','initialize','45311efCGxQ','symbol','defineProperty','392wTxFcS','LifecycleStages','type','UniverInstanceType','docs-exchange-client.operation.exchange','_menuManagerService','onReady','exchange.download','211673CUbsDA','UniverExchangeClientPlugin','_config','_initMenus','RibbonStartGroup','MenuItemType','1070LDDLjA'];_0xd3fd=function(){return _0x4be1b4;};return _0xd3fd();}exports['UniverDocsExchangeClientPlugin']=class extends o['Plugin']{constructor(_0x2d112e=P,_0x1a5689,_0x361150){const _0x2806aa=_0x5d3106;super(),this[_0x2806aa(0x114)]=_0x2d112e,this[_0x2806aa(0x135)]=_0x1a5689,this[_0x2806aa(0x125)]=_0x361150;const {menu:_0x1534be,..._0x25a2fc}=this[_0x2806aa(0x114)];_0x1534be&&this[_0x2806aa(0x125)][_0x2806aa(0x138)](_0x2806aa(0x101),_0x1534be,{'merge':!0x0}),this['_configService'][_0x2806aa(0x138)](y,_0x25a2fc);}['initialize'](){const _0x65d88=_0x5d3106;[[p]][_0x65d88(0x134)](_0x35dd3d=>this['_injector'][_0x65d88(0x126)](_0x35dd3d));}[_0x5d3106(0x110)](){const _0x45b666=_0x5d3106;this[_0x45b666(0x106)]();}},v(exports[_0x5d3106(0x133)],_0x5d3106(0x13a),N),v(exports[_0x5d3106(0x133)],_0x5d3106(0x10c),o[_0x5d3106(0x10d)][_0x5d3106(0x100)]),exports[_0x5d3106(0x133)]=T([o['DependentOn'](g[_0x5d3106(0x113)]),m(0x1,o[_0x5d3106(0x124)](o['Injector'])),m(0x2,o['IConfigService'])],exports[_0x5d3106(0x133)]),exports[_0x5d3106(0x12e)]=l,exports['ImportDOCXOperation']=u;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x5ab593=_0xba7b;(function(_0x14bd98,_0x1cd5fe){const _0x148085=_0xba7b,_0x509c76=_0x14bd98();while(!![]){try{const _0x426301=-parseInt(_0x148085(0x132))/0x1+parseInt(_0x148085(0x12a))/0x2*(parseInt(_0x148085(0x14b))/0x3)+parseInt(_0x148085(0x149))/0x4*(-parseInt(_0x148085(0x14f))/0x5)+-parseInt(_0x148085(0x134))/0x6*(-parseInt(_0x148085(0x157))/0x7)+-parseInt(_0x148085(0x12c))/0x8+-parseInt(_0x148085(0x143))/0x9*(-parseInt(_0x148085(0x13b))/0xa)+-parseInt(_0x148085(0x13d))/0xb*(parseInt(_0x148085(0x130))/0xc);if(_0x426301===_0x1cd5fe)break;else _0x509c76['push'](_0x509c76['shift']());}catch(_0x71d8a9){_0x509c76['push'](_0x509c76['shift']());}}}(_0x2e46,0x50672));import{CommandType as _0x1c239d,UniverInstanceType as _0x23ae67,OnLifecycle as _0x243ca6,LifecycleStages as _0x3aeb31,Disposable as _0x125f76,ICommandService as _0x3d72c6,DependentOn as _0x529155,Inject as _0x3f54d3,Injector as _0x5a62d4,Plugin as _0x4882f2,IConfigService as _0x46301f}from'@univerjs/core';import{IExchangeOperateService as _0x4f79f5,UniverExchangeClientPlugin as _0x2d8460}from'@univerjs-pro/exchange-client';import{MenuItemType as _0x38c53,getMenuHiddenObservable as _0x279ce1,RibbonStartGroup as _0x35bbf1,IMenuManagerService as _0x4e0704}from'@univerjs/ui';const d={'id':'exchange-client.operation.import-docx','type':_0x1c239d[_0x5ab593(0x152)],'handler':async _0x463fb3=>(_0x463fb3['get'](_0x4f79f5)[_0x5ab593(0x151)](),!0x0)},l={'id':_0x5ab593(0x12d),'type':_0x1c239d[_0x5ab593(0x152)],'handler':async _0x5eedec=>(_0x5eedec[_0x5ab593(0x142)](_0x4f79f5)[_0x5ab593(0x141)](),!0x0)},f=_0x5ab593(0x13c);function F(_0xb210e6){const _0x165ebe=_0x5ab593;return{'id':f,'type':_0x38c53[_0x165ebe(0x133)],'icon':_0x165ebe(0x12e),'tooltip':'exchange.file','hidden$':_0x279ce1(_0xb210e6,_0x23ae67[_0x165ebe(0x13f)])};}function X(){const _0x551248=_0x5ab593;return{'id':d['id'],'type':_0x38c53[_0x551248(0x138)],'title':_0x551248(0x13a),'icon':_0x551248(0x13e)};}function G(){const _0x50e47f=_0x5ab593;return{'id':l['id'],'type':_0x38c53[_0x50e47f(0x138)],'title':_0x50e47f(0x129),'icon':'ExportSingle'};}function _0xba7b(_0x205f00,_0x285c8b){const _0x2e461d=_0x2e46();return _0xba7b=function(_0xba7be4,_0x3a1da5){_0xba7be4=_0xba7be4-0x129;let _0x4680aa=_0x2e461d[_0xba7be4];return _0x4680aa;},_0xba7b(_0x205f00,_0x285c8b);}const L={[_0x35bbf1[_0x5ab593(0x139)]]:{[f]:{'order':0x4,'menuItemFactory':F,[d['id']]:{'order':0x0,'menuItemFactory':X},[l['id']]:{'order':0x1,'menuItemFactory':G}}}};var R=Object[_0x5ab593(0x147)],j=Object[_0x5ab593(0x146)],w=(_0x1dcc85,_0x32b168,_0x6e03d0,_0xf2560e)=>{const _0x418499=_0x5ab593;for(var _0x5acc74=_0xf2560e>0x1?void 0x0:_0xf2560e?j(_0x32b168,_0x6e03d0):_0x32b168,_0x303d6f=_0x1dcc85[_0x418499(0x135)]-0x1,_0x53af08;_0x303d6f>=0x0;_0x303d6f--)(_0x53af08=_0x1dcc85[_0x303d6f])&&(_0x5acc74=(_0xf2560e?_0x53af08(_0x32b168,_0x6e03d0,_0x5acc74):_0x53af08(_0x5acc74))||_0x5acc74);return _0xf2560e&&_0x5acc74&&R(_0x32b168,_0x6e03d0,_0x5acc74),_0x5acc74;},u=(_0x12415e,_0x8ed05d)=>(_0x3ef8f0,_0x15074f)=>_0x8ed05d(_0x3ef8f0,_0x15074f,_0x12415e);let a=class extends _0x125f76{constructor(_0x4bc3f1,_0x4fb92b){const _0x351bf5=_0x5ab593;super(),this['_commandService']=_0x4bc3f1,this[_0x351bf5(0x12b)]=_0x4fb92b,this[_0x351bf5(0x154)](),this[_0x351bf5(0x158)]();}[_0x5ab593(0x154)](){[d,l]['forEach'](_0x24a7db=>{const _0x143324=_0xba7b;this[_0x143324(0x153)](this[_0x143324(0x131)][_0x143324(0x155)](_0x24a7db));});}['_initMenus'](){const _0x5708aa=_0x5ab593;this['_menuManagerService'][_0x5708aa(0x136)](L);}};function _0x2e46(){const _0x5d83e6=['length','mergeMenu','_configService','BUTTON','FILE','exchange.upload','1007420KmhFaZ','docs-exchange-client.operation.exchange','16852bHgkKJ','FolderSingle','UNIVER_DOC','add','exportDOCXByUnitId','get','36cWwhoD','onReady','Ready','getOwnPropertyDescriptor','defineProperty','DOC_EXCHANGE_CLIENT_PLUGIN','442628cXTXKX','setConfig','3GJoPjB','initialize','_injector','_config','5vEqOAL','type','importDOCXToUnitId','OPERATION','disposeWithMe','_initCommands','registerCommand','docs-exchange-client.config','1039108ahLckp','_initMenus','exchange.download','863908xoNdFX','_menuManagerService','141216nUepQc','exchange-client.operation.export-docx','DirectExportSingle','symbol','6336iNKbUD','_commandService','13719yFRyrX','SUBITEMS','18NrTueK'];_0x2e46=function(){return _0x5d83e6;};return _0x2e46();}a=w([_0x243ca6(_0x3aeb31[_0x5ab593(0x145)],a),u(0x0,_0x3d72c6),u(0x1,_0x4e0704)],a);const A=_0x5ab593(0x156),B={};var v=Object[_0x5ab593(0x147)],$=Object['getOwnPropertyDescriptor'],H=(_0x292834,_0x38c9ad,_0x1a56a7)=>_0x38c9ad in _0x292834?v(_0x292834,_0x38c9ad,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1a56a7}):_0x292834[_0x38c9ad]=_0x1a56a7,z=(_0x56b651,_0x386688,_0x22fb97,_0x319aa5)=>{const _0x5072c1=_0x5ab593;for(var _0x10c094=_0x319aa5>0x1?void 0x0:_0x319aa5?$(_0x386688,_0x22fb97):_0x386688,_0x2e3882=_0x56b651[_0x5072c1(0x135)]-0x1,_0x36b9a3;_0x2e3882>=0x0;_0x2e3882--)(_0x36b9a3=_0x56b651[_0x2e3882])&&(_0x10c094=(_0x319aa5?_0x36b9a3(_0x386688,_0x22fb97,_0x10c094):_0x36b9a3(_0x10c094))||_0x10c094);return _0x319aa5&&_0x10c094&&v(_0x386688,_0x22fb97,_0x10c094),_0x10c094;},m=(_0x57a937,_0x37afda)=>(_0x53b264,_0x5990af)=>_0x37afda(_0x53b264,_0x5990af,_0x57a937),I=(_0x2f9111,_0x36b8bf,_0x1297be)=>H(_0x2f9111,typeof _0x36b8bf!=_0x5ab593(0x12f)?_0x36b8bf+'':_0x36b8bf,_0x1297be);const V=_0x5ab593(0x148);let s=class extends _0x4882f2{constructor(_0x141772=B,_0x1063a9,_0x48d250){const _0xdd2197=_0x5ab593;super(),this[_0xdd2197(0x14e)]=_0x141772,this['_injector']=_0x1063a9,this[_0xdd2197(0x137)]=_0x48d250;const {menu:_0x1ea5ab,..._0x432be8}=this[_0xdd2197(0x14e)];_0x1ea5ab&&this['_configService']['setConfig']('menu',_0x1ea5ab,{'merge':!0x0}),this[_0xdd2197(0x137)][_0xdd2197(0x14a)](A,_0x432be8);}['initialize'](){const _0x538486=_0x5ab593;[[a]]['forEach'](_0x140fe3=>this[_0x538486(0x14d)][_0x538486(0x140)](_0x140fe3));}[_0x5ab593(0x144)](){const _0x175a9b=_0x5ab593;this[_0x175a9b(0x14c)]();}};I(s,'pluginName',V),I(s,_0x5ab593(0x150),_0x23ae67[_0x5ab593(0x13f)]),s=z([_0x529155(_0x2d8460),m(0x1,_0x3f54d3(_0x5a62d4)),m(0x2,_0x46301f)],s);export{l as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MenuConfig } from '@univerjs/ui';
|
|
2
|
+
export declare const PLUGIN_CONFIG_KEY = "docs-exchange-client.config";
|
|
3
|
+
export declare const configSymbol: unique symbol;
|
|
4
|
+
export interface IUniverDocsExchangeClientConfig {
|
|
5
|
+
menu?: MenuConfig;
|
|
6
|
+
}
|
|
7
|
+
export declare const defaultPluginConfig: IUniverDocsExchangeClientConfig;
|
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
import { Disposable, ICommandService
|
|
2
|
-
import {
|
|
3
|
-
export interface IDocsExchangeClientConfig {
|
|
4
|
-
menu: MenuConfig;
|
|
5
|
-
}
|
|
6
|
-
export declare const DefaultDocsExchangeClientConfig: {};
|
|
1
|
+
import { Disposable, ICommandService } from '@univerjs/core';
|
|
2
|
+
import { IMenuManagerService } from '@univerjs/ui';
|
|
7
3
|
export declare class DocsExchangeClientController extends Disposable {
|
|
8
|
-
private readonly _config;
|
|
9
|
-
private readonly _injector;
|
|
10
4
|
private readonly _commandService;
|
|
11
|
-
|
|
12
|
-
constructor(
|
|
5
|
+
protected readonly _menuManagerService: IMenuManagerService;
|
|
6
|
+
constructor(_commandService: ICommandService, _menuManagerService: IMenuManagerService);
|
|
13
7
|
private _initCommands;
|
|
14
8
|
private _initMenus;
|
|
15
9
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IMenuButtonItem, IMenuSelectorItem } from '@univerjs/ui';
|
|
2
2
|
import { IAccessor } from '@univerjs/core';
|
|
3
|
+
export declare const DOCS_EXCHANGE_OPERATION_ID = "docs-exchange-client.operation.exchange";
|
|
3
4
|
export declare function DocsExchangeMenuItemFactory(accessor: IAccessor): IMenuSelectorItem<string>;
|
|
4
5
|
export declare function ImportDOCXToUnitIdMenuItemFactory(): IMenuButtonItem<string>;
|
|
5
6
|
export declare function ExportDOCXByUnitIdMenuItemFactory(): IMenuButtonItem<string>;
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
2
|
-
import {
|
|
1
|
+
import { IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
2
|
+
import { IUniverDocsExchangeClientConfig } from './controllers/config.schema';
|
|
3
3
|
export declare class UniverDocsExchangeClientPlugin extends Plugin {
|
|
4
4
|
private readonly _config;
|
|
5
5
|
readonly _injector: Injector;
|
|
6
|
+
private readonly _configService;
|
|
6
7
|
static pluginName: string;
|
|
7
8
|
static type: UniverInstanceType;
|
|
8
|
-
constructor(_config: Partial<
|
|
9
|
+
constructor(_config: Partial<IUniverDocsExchangeClientConfig>, _injector: Injector, _configService: IConfigService);
|
|
9
10
|
initialize(): void;
|
|
10
11
|
onReady(): void;
|
|
11
12
|
}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x25a9(_0x43f095,_0x491b53){const _0x54f2ac=_0x54f2();return _0x25a9=function(_0x25a950,_0x48bf7a){_0x25a950=_0x25a950-0xe9;let _0x4e1b47=_0x54f2ac[_0x25a950];return _0x4e1b47;},_0x25a9(_0x43f095,_0x491b53);}(function(_0x5aa857,_0x534e67){const _0x4e92a5=_0x25a9,_0x3cbfc7=_0x5aa857();while(!![]){try{const _0xb26496=parseInt(_0x4e92a5(0xf5))/0x1+-parseInt(_0x4e92a5(0x110))/0x2*(-parseInt(_0x4e92a5(0x10c))/0x3)+-parseInt(_0x4e92a5(0x130))/0x4+-parseInt(_0x4e92a5(0x131))/0x5+-parseInt(_0x4e92a5(0x126))/0x6*(parseInt(_0x4e92a5(0x120))/0x7)+parseInt(_0x4e92a5(0x103))/0x8*(-parseInt(_0x4e92a5(0x111))/0x9)+parseInt(_0x4e92a5(0x11c))/0xa*(parseInt(_0x4e92a5(0x128))/0xb);if(_0xb26496===_0x534e67)break;else _0x3cbfc7['push'](_0x3cbfc7['shift']());}catch(_0xd3d9a8){_0x3cbfc7['push'](_0x3cbfc7['shift']());}}}(_0x54f2,0x55d63),function(_0x2d1057,_0x5e160f){const _0x29703e=_0x25a9;typeof exports==_0x29703e(0xe9)&&typeof module<'u'?_0x5e160f(exports,require('@univerjs/core'),require(_0x29703e(0xf1)),require(_0x29703e(0xf9))):typeof define==_0x29703e(0x12c)&&define[_0x29703e(0x116)]?define([_0x29703e(0xfc),_0x29703e(0x12d),_0x29703e(0xf1),_0x29703e(0xf9)],_0x5e160f):(_0x2d1057=typeof globalThis<'u'?globalThis:_0x2d1057||self,_0x5e160f(_0x2d1057[_0x29703e(0xfb)]={},_0x2d1057[_0x29703e(0x114)],_0x2d1057['UniverExchangeClient'],_0x2d1057[_0x29703e(0x117)]));}(this,function(_0x3a8159,_0x5e1f8b,_0x5b6527,_0x292363){'use strict';const _0x36887a=_0x25a9;const _0x55b417={'id':_0x36887a(0xf2),'type':_0x5e1f8b[_0x36887a(0xfe)][_0x36887a(0xff)],'handler':async _0x5b6f2e=>(_0x5b6f2e['get'](_0x5b6527[_0x36887a(0xf6)])['importDOCXToUnitId'](),!0x0)},_0x250374={'id':_0x36887a(0x11e),'type':_0x5e1f8b['CommandType'][_0x36887a(0xff)],'handler':async _0xd66250=>(_0xd66250[_0x36887a(0xf3)](_0x5b6527['IExchangeOperateService'])[_0x36887a(0x119)](),!0x0)},_0x4976a1=_0x36887a(0xf4);function _0x2ab1d4(_0x3897fc){const _0x242cd4=_0x36887a;return{'id':_0x4976a1,'type':_0x292363[_0x242cd4(0x10a)][_0x242cd4(0x124)],'icon':_0x242cd4(0x104),'tooltip':'exchange.file','hidden$':_0x292363['getMenuHiddenObservable'](_0x3897fc,_0x5e1f8b[_0x242cd4(0x106)][_0x242cd4(0x121)])};}function _0x44abd9(){const _0x54ef6a=_0x36887a;return{'id':_0x55b417['id'],'type':_0x292363[_0x54ef6a(0x10a)][_0x54ef6a(0xfa)],'title':_0x54ef6a(0x11f),'icon':_0x54ef6a(0x12f)};}function _0x455538(){const _0x34da63=_0x36887a;return{'id':_0x250374['id'],'type':_0x292363[_0x34da63(0x10a)]['BUTTON'],'title':_0x34da63(0xea),'icon':'ExportSingle'};}const _0x5363bb={[_0x292363[_0x36887a(0xef)][_0x36887a(0xf8)]]:{[_0x4976a1]:{'order':0x4,'menuItemFactory':_0x2ab1d4,[_0x55b417['id']]:{'order':0x0,'menuItemFactory':_0x44abd9},[_0x250374['id']]:{'order':0x1,'menuItemFactory':_0x455538}}}};var _0x2b38fa=Object[_0x36887a(0xee)],_0x57c75c=Object[_0x36887a(0x125)],_0xc01cf2=(_0x3d249a,_0x495c55,_0x30e18b,_0x58ccde)=>{const _0x4a4ad6=_0x36887a;for(var _0x1a1107=_0x58ccde>0x1?void 0x0:_0x58ccde?_0x57c75c(_0x495c55,_0x30e18b):_0x495c55,_0x1f1392=_0x3d249a[_0x4a4ad6(0xf0)]-0x1,_0xde9c08;_0x1f1392>=0x0;_0x1f1392--)(_0xde9c08=_0x3d249a[_0x1f1392])&&(_0x1a1107=(_0x58ccde?_0xde9c08(_0x495c55,_0x30e18b,_0x1a1107):_0xde9c08(_0x1a1107))||_0x1a1107);return _0x58ccde&&_0x1a1107&&_0x2b38fa(_0x495c55,_0x30e18b,_0x1a1107),_0x1a1107;},_0xad1d4e=(_0x463e76,_0x556839)=>(_0x21a972,_0x4bcdb4)=>_0x556839(_0x21a972,_0x4bcdb4,_0x463e76);let _0x21dfa0=class extends _0x5e1f8b['Disposable']{constructor(_0xc9fff0,_0x13ca69){const _0x11b538=_0x36887a;super(),this['_commandService']=_0xc9fff0,this[_0x11b538(0xeb)]=_0x13ca69,this['_initCommands'](),this[_0x11b538(0x11b)]();}['_initCommands'](){const _0x15bd74=_0x36887a;[_0x55b417,_0x250374][_0x15bd74(0x10b)](_0x1a07f3=>{const _0x4df04a=_0x15bd74;this[_0x4df04a(0x109)](this['_commandService']['registerCommand'](_0x1a07f3));});}[_0x36887a(0x11b)](){const _0x455f92=_0x36887a;this[_0x455f92(0xeb)][_0x455f92(0x102)](_0x5363bb);}};_0x21dfa0=_0xc01cf2([_0x5e1f8b[_0x36887a(0x10e)](_0x5e1f8b[_0x36887a(0xfd)][_0x36887a(0x100)],_0x21dfa0),_0xad1d4e(0x0,_0x5e1f8b[_0x36887a(0x115)]),_0xad1d4e(0x1,_0x292363['IMenuManagerService'])],_0x21dfa0);const _0x5c41fa=_0x36887a(0x129),_0xd798c6={};var _0x1757d2=Object[_0x36887a(0xee)],_0x154ce5=Object[_0x36887a(0x125)],_0x2b8711=(_0x386532,_0xf96525,_0x3acb92)=>_0xf96525 in _0x386532?_0x1757d2(_0x386532,_0xf96525,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3acb92}):_0x386532[_0xf96525]=_0x3acb92,_0x2ced94=(_0x1ce205,_0x5512b2,_0x43db16,_0x5f5289)=>{const _0x169d12=_0x36887a;for(var _0x5e6616=_0x5f5289>0x1?void 0x0:_0x5f5289?_0x154ce5(_0x5512b2,_0x43db16):_0x5512b2,_0x13512b=_0x1ce205[_0x169d12(0xf0)]-0x1,_0x4cbf58;_0x13512b>=0x0;_0x13512b--)(_0x4cbf58=_0x1ce205[_0x13512b])&&(_0x5e6616=(_0x5f5289?_0x4cbf58(_0x5512b2,_0x43db16,_0x5e6616):_0x4cbf58(_0x5e6616))||_0x5e6616);return _0x5f5289&&_0x5e6616&&_0x1757d2(_0x5512b2,_0x43db16,_0x5e6616),_0x5e6616;},_0x18f988=(_0x26120b,_0x5cd18a)=>(_0x1d05ed,_0x2321ae)=>_0x5cd18a(_0x1d05ed,_0x2321ae,_0x26120b),_0x2d67e3=(_0xc8ccbb,_0x1eb5fd,_0x2794fa)=>_0x2b8711(_0xc8ccbb,typeof _0x1eb5fd!=_0x36887a(0x112)?_0x1eb5fd+'':_0x1eb5fd,_0x2794fa);const _0x191f5b=_0x36887a(0x107);_0x3a8159[_0x36887a(0xf7)]=class extends _0x5e1f8b[_0x36887a(0xed)]{constructor(_0x4e3e4b=_0xd798c6,_0xfb9817,_0x11c352){const _0x407f93=_0x36887a;super(),this[_0x407f93(0x105)]=_0x4e3e4b,this[_0x407f93(0x113)]=_0xfb9817,this[_0x407f93(0x122)]=_0x11c352;const {menu:_0x5f1076,..._0x5c94ae}=this[_0x407f93(0x105)];_0x5f1076&&this[_0x407f93(0x122)][_0x407f93(0x127)](_0x407f93(0x11d),_0x5f1076,{'merge':!0x0}),this[_0x407f93(0x122)][_0x407f93(0x127)](_0x5c41fa,_0x5c94ae);}['initialize'](){const _0x4d6ce3=_0x36887a;[[_0x21dfa0]][_0x4d6ce3(0x10b)](_0x4ef05e=>this[_0x4d6ce3(0x113)][_0x4d6ce3(0x101)](_0x4ef05e));}[_0x36887a(0xec)](){const _0x593004=_0x36887a;this[_0x593004(0x12b)]();}},_0x2d67e3(_0x3a8159[_0x36887a(0xf7)],_0x36887a(0x12e),_0x191f5b),_0x2d67e3(_0x3a8159[_0x36887a(0xf7)],_0x36887a(0x123),_0x5e1f8b[_0x36887a(0x106)][_0x36887a(0x121)]),_0x3a8159[_0x36887a(0xf7)]=_0x2ced94([_0x5e1f8b[_0x36887a(0x10d)](_0x5b6527['UniverExchangeClientPlugin']),_0x18f988(0x1,_0x5e1f8b[_0x36887a(0x118)](_0x5e1f8b[_0x36887a(0x11a)])),_0x18f988(0x2,_0x5e1f8b['IConfigService'])],_0x3a8159[_0x36887a(0xf7)]),_0x3a8159[_0x36887a(0x10f)]=_0x250374,_0x3a8159[_0x36887a(0x108)]=_0x55b417,Object['defineProperty'](_0x3a8159,Symbol[_0x36887a(0x12a)],{'value':'Module'});}));function _0x54f2(){const _0x281c5e=['Ready','add','mergeMenu','8QYxgIR','DirectExportSingle','_config','UniverInstanceType','DOC_EXCHANGE_CLIENT_PLUGIN','ImportDOCXOperation','disposeWithMe','MenuItemType','forEach','1031595PQKWvK','DependentOn','OnLifecycle','ExportDOCXOperation','4zpPdoW','5240043DiHiVV','symbol','_injector','UniverCore','ICommandService','amd','UniverUi','Inject','exportDOCXByUnitId','Injector','_initMenus','825710LLJNtD','menu','exchange-client.operation.export-docx','exchange.upload','4431KBQePT','UNIVER_DOC','_configService','type','SUBITEMS','getOwnPropertyDescriptor','1692ksgizL','setConfig','77FGcDLN','docs-exchange-client.config','toStringTag','initialize','function','@univerjs/core','pluginName','FolderSingle','2193036XGKWNU','555500UOCISD','object','exchange.download','_menuManagerService','onReady','Plugin','defineProperty','RibbonStartGroup','length','@univerjs-pro/exchange-client','exchange-client.operation.import-docx','get','docs-exchange-client.operation.exchange','505952ojVbAz','IExchangeOperateService','UniverDocsExchangeClientPlugin','FILE','@univerjs/ui','BUTTON','UniverDocsExchangeClient','exports','LifecycleStages','CommandType','OPERATION'];_0x54f2=function(){return _0x281c5e;};return _0x54f2();}
|
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.12",
|
|
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-pro/exchange-client": "0.2.
|
|
47
|
-
"@univerjs/
|
|
48
|
-
"@univerjs/
|
|
46
|
+
"@univerjs-pro/exchange-client": "0.2.12",
|
|
47
|
+
"@univerjs/ui": "0.2.12",
|
|
48
|
+
"@univerjs/core": "0.2.12"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@univerjs/icons": "^0.1.72",
|
|
52
|
-
"@univerjs/docs
|
|
53
|
-
"@univerjs/
|
|
54
|
-
"@univerjs/
|
|
52
|
+
"@univerjs/docs": "0.2.12",
|
|
53
|
+
"@univerjs/docs-ui": "0.2.12",
|
|
54
|
+
"@univerjs/protocol": "0.1.39-alpha.15"
|
|
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.12",
|
|
65
|
+
"@univerjs/core": "0.2.12",
|
|
66
|
+
"@univerjs/shared": "0.2.12"
|
|
67
67
|
},
|
|
68
68
|
"univerSpace": {
|
|
69
69
|
".": {
|