@univerjs-pro/docs-exchange-client 0.2.11 → 0.2.13
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 +13 -13
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x409c64=_0x53bb;(function(_0x2209d7,_0x41f6a9){const _0x2920f1=_0x53bb,_0x3fbf68=_0x2209d7();while(!![]){try{const _0x40d711=-parseInt(_0x2920f1(0xed))/0x1*(-parseInt(_0x2920f1(0x11a))/0x2)+parseInt(_0x2920f1(0xef))/0x3+parseInt(_0x2920f1(0x11f))/0x4+parseInt(_0x2920f1(0xfd))/0x5*(parseInt(_0x2920f1(0xe9))/0x6)+-parseInt(_0x2920f1(0x100))/0x7*(parseInt(_0x2920f1(0x113))/0x8)+-parseInt(_0x2920f1(0x124))/0x9*(parseInt(_0x2920f1(0x106))/0xa)+-parseInt(_0x2920f1(0x112))/0xb*(parseInt(_0x2920f1(0x104))/0xc);if(_0x40d711===_0x41f6a9)break;else _0x3fbf68['push'](_0x3fbf68['shift']());}catch(_0xa0a4d3){_0x3fbf68['push'](_0x3fbf68['shift']());}}}(_0xe9df,0x6fd02));function _0xe9df(){const _0x4dd4c8=['Module','410788rQvGUL','exchange-client.operation.import-docx','exportDOCXByUnitId','get','12duBZrb','Disposable','10DAYtcR','exchange.download','onReady','type','ICommandService','exchange-client.operation.export-docx','BUTTON','forEach','RibbonStartGroup','LifecycleStages','_initCommands','_initMenus','2399507omiKkK','16TZOTsB','CommandType','Ready','defineProperty','docs-exchange-client.config','MenuItemType','UNIVER_DOC','432526dpbCdo','@univerjs-pro/exchange-client','initialize','toStringTag','registerCommand','2764388FEpuWG','@univerjs/core','mergeMenu','menu','OPERATION','8067366ZieweC','FolderSingle','SUBITEMS','exchange.upload','Plugin','UniverDocsExchangeClientPlugin','6SlESSC','getOwnPropertyDescriptor','_menuManagerService','UniverInstanceType','1RMYXtp','Injector','465126vxnkvO','ImportDOCXOperation','IMenuManagerService','exchange.file','setConfig','IConfigService','_injector','_config','getMenuHiddenObservable','DependentOn','pluginName','disposeWithMe','_configService','importDOCXToUnitId','3137315tvqPpl','length'];_0xe9df=function(){return _0x4dd4c8;};return _0xe9df();}Object['defineProperty'](exports,Symbol[_0x409c64(0x11d)],{'value':_0x409c64(0xff)});const o=require(_0x409c64(0x120)),g=require(_0x409c64(0x11b)),s=require('@univerjs/ui'),u={'id':_0x409c64(0x101),'type':o[_0x409c64(0x114)][_0x409c64(0x123)],'handler':async _0x5ee5f0=>(_0x5ee5f0[_0x409c64(0x103)](g['IExchangeOperateService'])[_0x409c64(0xfc)](),!0x0)},l={'id':_0x409c64(0x10b),'type':o[_0x409c64(0x114)][_0x409c64(0x123)],'handler':async _0x3d851c=>(_0x3d851c[_0x409c64(0x103)](g['IExchangeOperateService'])[_0x409c64(0x102)](),!0x0)},_='docs-exchange-client.operation.exchange';function C(_0x222b72){const _0x350750=_0x409c64;return{'id':_,'type':s[_0x350750(0x118)][_0x350750(0x126)],'icon':'DirectExportSingle','tooltip':_0x350750(0xf2),'hidden$':s[_0x350750(0xf7)](_0x222b72,o['UniverInstanceType'][_0x350750(0x119)])};}function O(){const _0x13af04=_0x409c64;return{'id':u['id'],'type':s['MenuItemType'][_0x13af04(0x10c)],'title':_0x13af04(0x127),'icon':_0x13af04(0x125)};}function I(){const _0x17ef46=_0x409c64;return{'id':l['id'],'type':s['MenuItemType'][_0x17ef46(0x10c)],'title':_0x17ef46(0x107),'icon':'ExportSingle'};}const f={[s[_0x409c64(0x10e)]['FILE']]:{[_]:{'order':0x4,'menuItemFactory':C,[u['id']]:{'order':0x0,'menuItemFactory':O},[l['id']]:{'order':0x1,'menuItemFactory':I}}}};function _0x53bb(_0x2bb83e,_0x15f530){const _0xe9dfa9=_0xe9df();return _0x53bb=function(_0x53bb2f,_0x362777){_0x53bb2f=_0x53bb2f-0xe7;let _0x43ae5e=_0xe9dfa9[_0x53bb2f];return _0x43ae5e;},_0x53bb(_0x2bb83e,_0x15f530);}var E=Object[_0x409c64(0x116)],x=Object['getOwnPropertyDescriptor'],D=(_0x13919a,_0x292b97,_0x15d585,_0x312dfd)=>{const _0xbd89f2=_0x409c64;for(var _0x2ba5ca=_0x312dfd>0x1?void 0x0:_0x312dfd?x(_0x292b97,_0x15d585):_0x292b97,_0x577147=_0x13919a[_0xbd89f2(0xfe)]-0x1,_0x1698fb;_0x577147>=0x0;_0x577147--)(_0x1698fb=_0x13919a[_0x577147])&&(_0x2ba5ca=(_0x312dfd?_0x1698fb(_0x292b97,_0x15d585,_0x2ba5ca):_0x1698fb(_0x2ba5ca))||_0x2ba5ca);return _0x312dfd&&_0x2ba5ca&&E(_0x292b97,_0x15d585,_0x2ba5ca),_0x2ba5ca;},d=(_0x36e8c2,_0xe580de)=>(_0x2c55bc,_0x33c8b0)=>_0xe580de(_0x2c55bc,_0x33c8b0,_0x36e8c2);let p=class extends o[_0x409c64(0x105)]{constructor(_0x39f6b2,_0x1cffef){const _0x496daa=_0x409c64;super(),this['_commandService']=_0x39f6b2,this[_0x496daa(0xeb)]=_0x1cffef,this[_0x496daa(0x110)](),this[_0x496daa(0x111)]();}[_0x409c64(0x110)](){const _0x1a2cd3=_0x409c64;[u,l][_0x1a2cd3(0x10d)](_0x24eb8c=>{const _0x599d7d=_0x1a2cd3;this[_0x599d7d(0xfa)](this['_commandService'][_0x599d7d(0x11e)](_0x24eb8c));});}[_0x409c64(0x111)](){const _0x4b639c=_0x409c64;this[_0x4b639c(0xeb)][_0x4b639c(0x121)](f);}};p=D([o['OnLifecycle'](o[_0x409c64(0x10f)][_0x409c64(0x115)],p),d(0x0,o[_0x409c64(0x10a)]),d(0x1,s[_0x409c64(0xf1)])],p);const y=_0x409c64(0x117),P={};var h=Object['defineProperty'],S=Object[_0x409c64(0xea)],U=(_0x31028b,_0x1e181e,_0x5e567c)=>_0x1e181e in _0x31028b?h(_0x31028b,_0x1e181e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e567c}):_0x31028b[_0x1e181e]=_0x5e567c,T=(_0x47a959,_0x10aedb,_0x3ea7af,_0x1446af)=>{const _0x2d3540=_0x409c64;for(var _0x46cdee=_0x1446af>0x1?void 0x0:_0x1446af?S(_0x10aedb,_0x3ea7af):_0x10aedb,_0x47637c=_0x47a959[_0x2d3540(0xfe)]-0x1,_0x36011c;_0x47637c>=0x0;_0x47637c--)(_0x36011c=_0x47a959[_0x47637c])&&(_0x46cdee=(_0x1446af?_0x36011c(_0x10aedb,_0x3ea7af,_0x46cdee):_0x36011c(_0x46cdee))||_0x46cdee);return _0x1446af&&_0x46cdee&&h(_0x10aedb,_0x3ea7af,_0x46cdee),_0x46cdee;},m=(_0x28e8af,_0x5492c6)=>(_0x3cdd1d,_0x4815cb)=>_0x5492c6(_0x3cdd1d,_0x4815cb,_0x28e8af),v=(_0x39f90b,_0x1bd252,_0x1f79d4)=>U(_0x39f90b,typeof _0x1bd252!='symbol'?_0x1bd252+'':_0x1bd252,_0x1f79d4);const N='DOC_EXCHANGE_CLIENT_PLUGIN';exports[_0x409c64(0xe8)]=class extends o[_0x409c64(0xe7)]{constructor(_0x4842cd=P,_0x342310,_0x3fcd22){const _0x26c2a1=_0x409c64;super(),this[_0x26c2a1(0xf6)]=_0x4842cd,this['_injector']=_0x342310,this[_0x26c2a1(0xfb)]=_0x3fcd22;const {menu:_0x5e0f41,..._0x329df7}=this[_0x26c2a1(0xf6)];_0x5e0f41&&this[_0x26c2a1(0xfb)][_0x26c2a1(0xf3)](_0x26c2a1(0x122),_0x5e0f41,{'merge':!0x0}),this[_0x26c2a1(0xfb)][_0x26c2a1(0xf3)](y,_0x329df7);}[_0x409c64(0x11c)](){const _0x1c5063=_0x409c64;[[p]]['forEach'](_0x55031d=>this[_0x1c5063(0xf5)]['add'](_0x55031d));}[_0x409c64(0x108)](){const _0x19b957=_0x409c64;this[_0x19b957(0x11c)]();}},v(exports[_0x409c64(0xe8)],_0x409c64(0xf9),N),v(exports['UniverDocsExchangeClientPlugin'],_0x409c64(0x109),o[_0x409c64(0xec)][_0x409c64(0x119)]),exports[_0x409c64(0xe8)]=T([o[_0x409c64(0xf8)](g['UniverExchangeClientPlugin']),m(0x1,o['Inject'](o[_0x409c64(0xee)])),m(0x2,o[_0x409c64(0xf4)])],exports['UniverDocsExchangeClientPlugin']),exports['ExportDOCXOperation']=l,exports[_0x409c64(0xf0)]=u;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x4435a0=_0x2aad;function _0x5677(){const _0x5a1263=['pluginName','exchange-client.operation.export-docx','Ready','symbol','_config','DOC_EXCHANGE_CLIENT_PLUGIN','358WPDjdH','docs-exchange-client.config','onReady','exchange.download','604iHWghp','_initMenus','FolderSingle','581XqFzJc','FILE','defineProperty','exchange.upload','length','BUTTON','importDOCXToUnitId','1316034iQrvfK','SUBITEMS','_initCommands','getOwnPropertyDescriptor','_menuManagerService','ExportSingle','_commandService','_configService','get','_injector','exchange.file','775092lOYFnY','initialize','1915KxLMPu','2653820lGEJSH','setConfig','DirectExportSingle','registerCommand','type','65769OKBwbq','1828utcNig','25736QmJPuZ','add','UNIVER_DOC','disposeWithMe','exportDOCXByUnitId','forEach','OPERATION'];_0x5677=function(){return _0x5a1263;};return _0x5677();}(function(_0x341a0e,_0x2bbd56){const _0x213558=_0x2aad,_0x3df9ae=_0x341a0e();while(!![]){try{const _0x2384aa=-parseInt(_0x213558(0x1f6))/0x1*(parseInt(_0x213558(0x1f2))/0x2)+parseInt(_0x213558(0x1e3))/0x3+-parseInt(_0x213558(0x1e4))/0x4*(parseInt(_0x213558(0x1dd))/0x5)+parseInt(_0x213558(0x1db))/0x6+-parseInt(_0x213558(0x1f9))/0x7*(-parseInt(_0x213558(0x1e5))/0x8)+-parseInt(_0x213558(0x1d0))/0x9+parseInt(_0x213558(0x1de))/0xa;if(_0x2384aa===_0x2bbd56)break;else _0x3df9ae['push'](_0x3df9ae['shift']());}catch(_0x207ec1){_0x3df9ae['push'](_0x3df9ae['shift']());}}}(_0x5677,0x3e0ad));import{CommandType as _0x275069,UniverInstanceType as _0x3c205c,OnLifecycle as _0x11c9db,LifecycleStages as _0x5d1f64,Disposable as _0x93484f,ICommandService as _0x244c2c,DependentOn as _0x19e90a,Inject as _0x14d0d0,Injector as _0x17307f,Plugin as _0x473b6e,IConfigService as _0xd78ae3}from'@univerjs/core';import{IExchangeOperateService as _0x591837,UniverExchangeClientPlugin as _0x5332a6}from'@univerjs-pro/exchange-client';import{MenuItemType as _0x1ed95a,getMenuHiddenObservable as _0x59af1e,RibbonStartGroup as _0xc9a05c,IMenuManagerService as _0x9ff945}from'@univerjs/ui';const d={'id':'exchange-client.operation.import-docx','type':_0x275069[_0x4435a0(0x1eb)],'handler':async _0x1c415c=>(_0x1c415c[_0x4435a0(0x1d8)](_0x591837)[_0x4435a0(0x1cf)](),!0x0)},l={'id':_0x4435a0(0x1ed),'type':_0x275069[_0x4435a0(0x1eb)],'handler':async _0xbb72f1=>(_0xbb72f1[_0x4435a0(0x1d8)](_0x591837)[_0x4435a0(0x1e9)](),!0x0)},f='docs-exchange-client.operation.exchange';function F(_0x495af8){const _0x3ba6e3=_0x4435a0;return{'id':f,'type':_0x1ed95a[_0x3ba6e3(0x1d1)],'icon':_0x3ba6e3(0x1e0),'tooltip':_0x3ba6e3(0x1da),'hidden$':_0x59af1e(_0x495af8,_0x3c205c[_0x3ba6e3(0x1e7)])};}function X(){const _0x1a3db6=_0x4435a0;return{'id':d['id'],'type':_0x1ed95a[_0x1a3db6(0x1ce)],'title':_0x1a3db6(0x1cc),'icon':_0x1a3db6(0x1f8)};}function _0x2aad(_0x4fd29a,_0x259a52){const _0x56775e=_0x5677();return _0x2aad=function(_0x2aadd5,_0xb8e56f){_0x2aadd5=_0x2aadd5-0x1cb;let _0x29466d=_0x56775e[_0x2aadd5];return _0x29466d;},_0x2aad(_0x4fd29a,_0x259a52);}function G(){const _0x41bb2b=_0x4435a0;return{'id':l['id'],'type':_0x1ed95a['BUTTON'],'title':_0x41bb2b(0x1f5),'icon':_0x41bb2b(0x1d5)};}const L={[_0xc9a05c[_0x4435a0(0x1fa)]]:{[f]:{'order':0x4,'menuItemFactory':F,[d['id']]:{'order':0x0,'menuItemFactory':X},[l['id']]:{'order':0x1,'menuItemFactory':G}}}};var R=Object[_0x4435a0(0x1cb)],j=Object[_0x4435a0(0x1d3)],w=(_0x23912d,_0x5492b5,_0x62da53,_0x398409)=>{for(var _0x3994bb=_0x398409>0x1?void 0x0:_0x398409?j(_0x5492b5,_0x62da53):_0x5492b5,_0x2a0d59=_0x23912d['length']-0x1,_0x1e4cd6;_0x2a0d59>=0x0;_0x2a0d59--)(_0x1e4cd6=_0x23912d[_0x2a0d59])&&(_0x3994bb=(_0x398409?_0x1e4cd6(_0x5492b5,_0x62da53,_0x3994bb):_0x1e4cd6(_0x3994bb))||_0x3994bb);return _0x398409&&_0x3994bb&&R(_0x5492b5,_0x62da53,_0x3994bb),_0x3994bb;},u=(_0x5bdf95,_0x1184f7)=>(_0x23c214,_0x287ff9)=>_0x1184f7(_0x23c214,_0x287ff9,_0x5bdf95);let a=class extends _0x93484f{constructor(_0x32e56d,_0x1c049d){const _0x2f494f=_0x4435a0;super(),this[_0x2f494f(0x1d6)]=_0x32e56d,this[_0x2f494f(0x1d4)]=_0x1c049d,this[_0x2f494f(0x1d2)](),this[_0x2f494f(0x1f7)]();}[_0x4435a0(0x1d2)](){const _0x658977=_0x4435a0;[d,l][_0x658977(0x1ea)](_0x3a162d=>{const _0x32cff9=_0x658977;this[_0x32cff9(0x1e8)](this[_0x32cff9(0x1d6)][_0x32cff9(0x1e1)](_0x3a162d));});}[_0x4435a0(0x1f7)](){const _0x375af1=_0x4435a0;this[_0x375af1(0x1d4)]['mergeMenu'](L);}};a=w([_0x11c9db(_0x5d1f64[_0x4435a0(0x1ee)],a),u(0x0,_0x244c2c),u(0x1,_0x9ff945)],a);const A=_0x4435a0(0x1f3),B={};var v=Object['defineProperty'],$=Object[_0x4435a0(0x1d3)],H=(_0x2731d5,_0xb9a2d,_0x445548)=>_0xb9a2d in _0x2731d5?v(_0x2731d5,_0xb9a2d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x445548}):_0x2731d5[_0xb9a2d]=_0x445548,z=(_0x5c4e28,_0x505edc,_0xeec63e,_0xa085e)=>{const _0x446ea1=_0x4435a0;for(var _0x321483=_0xa085e>0x1?void 0x0:_0xa085e?$(_0x505edc,_0xeec63e):_0x505edc,_0x891b13=_0x5c4e28[_0x446ea1(0x1cd)]-0x1,_0x4d9f29;_0x891b13>=0x0;_0x891b13--)(_0x4d9f29=_0x5c4e28[_0x891b13])&&(_0x321483=(_0xa085e?_0x4d9f29(_0x505edc,_0xeec63e,_0x321483):_0x4d9f29(_0x321483))||_0x321483);return _0xa085e&&_0x321483&&v(_0x505edc,_0xeec63e,_0x321483),_0x321483;},m=(_0x2627d6,_0x4c54e0)=>(_0x15257f,_0x4fd8a4)=>_0x4c54e0(_0x15257f,_0x4fd8a4,_0x2627d6),I=(_0x3785b9,_0x1d9aba,_0x43aa81)=>H(_0x3785b9,typeof _0x1d9aba!=_0x4435a0(0x1ef)?_0x1d9aba+'':_0x1d9aba,_0x43aa81);const V=_0x4435a0(0x1f1);let s=class extends _0x473b6e{constructor(_0x4b3fe3=B,_0x48495a,_0x1d4ff1){const _0xac9b2e=_0x4435a0;super(),this['_config']=_0x4b3fe3,this[_0xac9b2e(0x1d9)]=_0x48495a,this[_0xac9b2e(0x1d7)]=_0x1d4ff1;const {menu:_0x11f176,..._0x328643}=this[_0xac9b2e(0x1f0)];_0x11f176&&this[_0xac9b2e(0x1d7)][_0xac9b2e(0x1df)]('menu',_0x11f176,{'merge':!0x0}),this[_0xac9b2e(0x1d7)][_0xac9b2e(0x1df)](A,_0x328643);}[_0x4435a0(0x1dc)](){const _0x50615c=_0x4435a0;[[a]][_0x50615c(0x1ea)](_0x2457bb=>this[_0x50615c(0x1d9)][_0x50615c(0x1e6)](_0x2457bb));}[_0x4435a0(0x1f4)](){this['initialize']();}};I(s,_0x4435a0(0x1ec),V),I(s,_0x4435a0(0x1e2),_0x3c205c['UNIVER_DOC']),s=z([_0x19e90a(_0x5332a6),m(0x1,_0x14d0d0(_0x17307f)),m(0x2,_0xd78ae3)],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> | undefined, _injector: Injector, _configService: IConfigService);
|
|
9
10
|
initialize(): void;
|
|
10
11
|
onReady(): void;
|
|
11
12
|
}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1cdc05,_0xef365e){const _0x1144aa=_0x4878,_0x222472=_0x1cdc05();while(!![]){try{const _0x34dcef=parseInt(_0x1144aa(0x17a))/0x1*(-parseInt(_0x1144aa(0x172))/0x2)+parseInt(_0x1144aa(0x19d))/0x3+-parseInt(_0x1144aa(0x19a))/0x4+-parseInt(_0x1144aa(0x196))/0x5+-parseInt(_0x1144aa(0x19b))/0x6+-parseInt(_0x1144aa(0x182))/0x7*(parseInt(_0x1144aa(0x19c))/0x8)+parseInt(_0x1144aa(0x16f))/0x9*(parseInt(_0x1144aa(0x18e))/0xa);if(_0x34dcef===_0xef365e)break;else _0x222472['push'](_0x222472['shift']());}catch(_0x4ac4d0){_0x222472['push'](_0x222472['shift']());}}}(_0x2f5c,0x9f8d3),function(_0x482fba,_0x1e7d9a){const _0x358072=_0x4878;typeof exports==_0x358072(0x17b)&&typeof module<'u'?_0x1e7d9a(exports,require(_0x358072(0x1a0)),require(_0x358072(0x18a)),require('@univerjs/ui')):typeof define==_0x358072(0x1a3)&&define[_0x358072(0x18c)]?define([_0x358072(0x18b),_0x358072(0x1a0),_0x358072(0x18a),_0x358072(0x176)],_0x1e7d9a):(_0x482fba=typeof globalThis<'u'?globalThis:_0x482fba||self,_0x1e7d9a(_0x482fba['UniverDocsExchangeClient']={},_0x482fba[_0x358072(0x17f)],_0x482fba[_0x358072(0x192)],_0x482fba[_0x358072(0x1ab)]));}(this,function(_0x583355,_0x117494,_0x4b144c,_0x390d0b){'use strict';const _0x15887a=_0x4878;const _0x9dc6db={'id':'exchange-client.operation.import-docx','type':_0x117494['CommandType'][_0x15887a(0x1a9)],'handler':async _0x2e2061=>(_0x2e2061['get'](_0x4b144c[_0x15887a(0x178)])[_0x15887a(0x18d)](),!0x0)},_0x5d7415={'id':_0x15887a(0x1a7),'type':_0x117494['CommandType'][_0x15887a(0x1a9)],'handler':async _0x36b4dc=>(_0x36b4dc[_0x15887a(0x193)](_0x4b144c[_0x15887a(0x178)])[_0x15887a(0x180)](),!0x0)},_0x56f6dc=_0x15887a(0x184);function _0x5847fa(_0x5ecdc0){const _0x296432=_0x15887a;return{'id':_0x56f6dc,'type':_0x390d0b[_0x296432(0x1a8)]['SUBITEMS'],'icon':'DirectExportSingle','tooltip':'exchange.file','hidden$':_0x390d0b[_0x296432(0x190)](_0x5ecdc0,_0x117494['UniverInstanceType']['UNIVER_DOC'])};}function _0x280aea(){const _0x1f9202=_0x15887a;return{'id':_0x9dc6db['id'],'type':_0x390d0b[_0x1f9202(0x1a8)][_0x1f9202(0x198)],'title':_0x1f9202(0x188),'icon':_0x1f9202(0x187)};}function _0x280447(){const _0x21eaf7=_0x15887a;return{'id':_0x5d7415['id'],'type':_0x390d0b[_0x21eaf7(0x1a8)][_0x21eaf7(0x198)],'title':_0x21eaf7(0x185),'icon':_0x21eaf7(0x175)};}const _0x217deb={[_0x390d0b['RibbonStartGroup'][_0x15887a(0x195)]]:{[_0x56f6dc]:{'order':0x4,'menuItemFactory':_0x5847fa,[_0x9dc6db['id']]:{'order':0x0,'menuItemFactory':_0x280aea},[_0x5d7415['id']]:{'order':0x1,'menuItemFactory':_0x280447}}}};var _0x584ad1=Object['defineProperty'],_0xc7e7a0=Object['getOwnPropertyDescriptor'],_0x16c246=(_0x3443fd,_0x33bb36,_0x22d267,_0x29d0e0)=>{for(var _0x9eea75=_0x29d0e0>0x1?void 0x0:_0x29d0e0?_0xc7e7a0(_0x33bb36,_0x22d267):_0x33bb36,_0x5a0e9a=_0x3443fd['length']-0x1,_0x356150;_0x5a0e9a>=0x0;_0x5a0e9a--)(_0x356150=_0x3443fd[_0x5a0e9a])&&(_0x9eea75=(_0x29d0e0?_0x356150(_0x33bb36,_0x22d267,_0x9eea75):_0x356150(_0x9eea75))||_0x9eea75);return _0x29d0e0&&_0x9eea75&&_0x584ad1(_0x33bb36,_0x22d267,_0x9eea75),_0x9eea75;},_0x2922f5=(_0x203d56,_0x10dff9)=>(_0x286376,_0x3501b5)=>_0x10dff9(_0x286376,_0x3501b5,_0x203d56);let _0x15f090=class extends _0x117494['Disposable']{constructor(_0x2b02fe,_0x1b49e9){const _0x40a025=_0x15887a;super(),this['_commandService']=_0x2b02fe,this[_0x40a025(0x177)]=_0x1b49e9,this[_0x40a025(0x186)](),this[_0x40a025(0x189)]();}['_initCommands'](){const _0x326e42=_0x15887a;[_0x9dc6db,_0x5d7415][_0x326e42(0x183)](_0x23ec52=>{const _0x44ee13=_0x326e42;this[_0x44ee13(0x1a1)](this[_0x44ee13(0x1ac)][_0x44ee13(0x194)](_0x23ec52));});}[_0x15887a(0x189)](){const _0x3eaf39=_0x15887a;this[_0x3eaf39(0x177)][_0x3eaf39(0x170)](_0x217deb);}};_0x15f090=_0x16c246([_0x117494[_0x15887a(0x1ad)](_0x117494[_0x15887a(0x173)]['Ready'],_0x15f090),_0x2922f5(0x0,_0x117494[_0x15887a(0x1aa)]),_0x2922f5(0x1,_0x390d0b['IMenuManagerService'])],_0x15f090);const _0x82d8f9=_0x15887a(0x1b0),_0x561914={};var _0x34fca1=Object[_0x15887a(0x19f)],_0x436d9b=Object['getOwnPropertyDescriptor'],_0x4656d7=(_0x4e18ee,_0x4e8cf5,_0x26a3e2)=>_0x4e8cf5 in _0x4e18ee?_0x34fca1(_0x4e18ee,_0x4e8cf5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26a3e2}):_0x4e18ee[_0x4e8cf5]=_0x26a3e2,_0x3bd73d=(_0xa28192,_0x121188,_0xfd7a82,_0x54a98a)=>{for(var _0x1ce375=_0x54a98a>0x1?void 0x0:_0x54a98a?_0x436d9b(_0x121188,_0xfd7a82):_0x121188,_0x1f6330=_0xa28192['length']-0x1,_0x463387;_0x1f6330>=0x0;_0x1f6330--)(_0x463387=_0xa28192[_0x1f6330])&&(_0x1ce375=(_0x54a98a?_0x463387(_0x121188,_0xfd7a82,_0x1ce375):_0x463387(_0x1ce375))||_0x1ce375);return _0x54a98a&&_0x1ce375&&_0x34fca1(_0x121188,_0xfd7a82,_0x1ce375),_0x1ce375;},_0xdccbf9=(_0x5f25dc,_0x1af478)=>(_0x34719b,_0x423c38)=>_0x1af478(_0x34719b,_0x423c38,_0x5f25dc),_0x577b67=(_0xde247f,_0x85d929,_0x4696e2)=>_0x4656d7(_0xde247f,typeof _0x85d929!=_0x15887a(0x1a5)?_0x85d929+'':_0x85d929,_0x4696e2);const _0x284a45='DOC_EXCHANGE_CLIENT_PLUGIN';_0x583355[_0x15887a(0x171)]=class extends _0x117494['Plugin']{constructor(_0x9d4e1=_0x561914,_0x21b5c8,_0x3eff0f){const _0x40bee5=_0x15887a;super(),this['_config']=_0x9d4e1,this['_injector']=_0x21b5c8,this[_0x40bee5(0x179)]=_0x3eff0f;const {menu:_0x53ffbd,..._0x1783cf}=this[_0x40bee5(0x197)];_0x53ffbd&&this[_0x40bee5(0x179)]['setConfig'](_0x40bee5(0x1a2),_0x53ffbd,{'merge':!0x0}),this['_configService']['setConfig'](_0x82d8f9,_0x1783cf);}[_0x15887a(0x18f)](){const _0x248b34=_0x15887a;[[_0x15f090]][_0x248b34(0x183)](_0x2262a9=>this[_0x248b34(0x1a6)][_0x248b34(0x191)](_0x2262a9));}[_0x15887a(0x17c)](){this['initialize']();}},_0x577b67(_0x583355[_0x15887a(0x171)],_0x15887a(0x17d),_0x284a45),_0x577b67(_0x583355[_0x15887a(0x171)],_0x15887a(0x1af),_0x117494[_0x15887a(0x199)][_0x15887a(0x1ae)]),_0x583355[_0x15887a(0x171)]=_0x3bd73d([_0x117494[_0x15887a(0x181)](_0x4b144c[_0x15887a(0x17e)]),_0xdccbf9(0x1,_0x117494[_0x15887a(0x19e)](_0x117494[_0x15887a(0x174)])),_0xdccbf9(0x2,_0x117494['IConfigService'])],_0x583355[_0x15887a(0x171)]),_0x583355[_0x15887a(0x1a4)]=_0x5d7415,_0x583355['ImportDOCXOperation']=_0x9dc6db,Object['defineProperty'](_0x583355,Symbol['toStringTag'],{'value':'Module'});}));function _0x4878(_0x57f875,_0x2b2fd2){const _0x2f5ce2=_0x2f5c();return _0x4878=function(_0x487826,_0x488917){_0x487826=_0x487826-0x16f;let _0x806197=_0x2f5ce2[_0x487826];return _0x806197;},_0x4878(_0x57f875,_0x2b2fd2);}function _0x2f5c(){const _0x3e1acd=['_initMenus','@univerjs-pro/exchange-client','exports','amd','importDOCXToUnitId','43455770nMviOg','initialize','getMenuHiddenObservable','add','UniverExchangeClient','get','registerCommand','FILE','4657360GymeTS','_config','BUTTON','UniverInstanceType','2496240MRlcaW','4885668UvpAKc','86168jDMdZB','1621125NgccNp','Inject','defineProperty','@univerjs/core','disposeWithMe','menu','function','ExportDOCXOperation','symbol','_injector','exchange-client.operation.export-docx','MenuItemType','OPERATION','ICommandService','UniverUi','_commandService','OnLifecycle','UNIVER_DOC','type','docs-exchange-client.config','9CzKgsD','mergeMenu','UniverDocsExchangeClientPlugin','2444IlLciu','LifecycleStages','Injector','ExportSingle','@univerjs/ui','_menuManagerService','IExchangeOperateService','_configService','634KwBHBh','object','onReady','pluginName','UniverExchangeClientPlugin','UniverCore','exportDOCXByUnitId','DependentOn','707eKRHpK','forEach','docs-exchange-client.operation.exchange','exchange.download','_initCommands','FolderSingle','exchange.upload'];_0x2f5c=function(){return _0x3e1acd;};return _0x2f5c();}
|
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.13",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -43,27 +43,27 @@
|
|
|
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.13",
|
|
47
|
+
"@univerjs/ui": "0.2.13",
|
|
48
|
+
"@univerjs/core": "0.2.13"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@univerjs/icons": "^0.1.
|
|
52
|
-
"
|
|
51
|
+
"@univerjs/icons": "^0.1.78",
|
|
52
|
+
"pako": "^2.1.0",
|
|
53
|
+
"@univerjs-pro/exchange-client": "0.2.13",
|
|
54
|
+
"@univerjs/core": "0.2.13",
|
|
55
|
+
"@univerjs/docs": "0.2.13",
|
|
53
56
|
"@univerjs/protocol": "0.1.39-alpha.15",
|
|
54
|
-
"@univerjs/docs": "0.2.
|
|
57
|
+
"@univerjs/docs-ui": "0.2.13"
|
|
55
58
|
},
|
|
56
59
|
"devDependencies": {
|
|
57
60
|
"@types/pako": "^2.0.3",
|
|
58
61
|
"less": "^4.2.0",
|
|
59
|
-
"pako": "^2.1.0",
|
|
60
62
|
"rxjs": "^7.8.1",
|
|
61
|
-
"typescript": "^5.
|
|
62
|
-
"vite": "^5.4.
|
|
63
|
+
"typescript": "^5.6.2",
|
|
64
|
+
"vite": "^5.4.3",
|
|
63
65
|
"vitest": "^2.0.5",
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs-pro/exchange-client": "0.2.11",
|
|
66
|
-
"@univerjs/shared": "0.2.11"
|
|
66
|
+
"@univerjs-infra/shared": "0.2.13"
|
|
67
67
|
},
|
|
68
68
|
"univerSpace": {
|
|
69
69
|
".": {
|