@univerjs-pro/docs-exchange-client 0.12.4-insiders.20251212-6c41730 → 0.12.4-insiders.20251213-692494c
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 _0x195601=_0x32eb;(function(_0x2e1313,_0x1108dc){var _0x4627ce=_0x32eb,_0x3f5cba=_0x2e1313();while(!![]){try{var _0x3ae5f6=-parseInt(_0x4627ce(0x189))/0x1*(parseInt(_0x4627ce(0x15f))/0x2)+parseInt(_0x4627ce(0x187))/0x3*(parseInt(_0x4627ce(0x181))/0x4)+-parseInt(_0x4627ce(0x171))/0x5*(-parseInt(_0x4627ce(0x177))/0x6)+-parseInt(_0x4627ce(0x17f))/0x7*(parseInt(_0x4627ce(0x16b))/0x8)+-parseInt(_0x4627ce(0x166))/0x9*(-parseInt(_0x4627ce(0x162))/0xa)+-parseInt(_0x4627ce(0x175))/0xb+parseInt(_0x4627ce(0x164))/0xc*(parseInt(_0x4627ce(0x186))/0xd);if(_0x3ae5f6===_0x1108dc)break;else _0x3f5cba['push'](_0x3f5cba['shift']());}catch(_0x376492){_0x3f5cba['push'](_0x3f5cba['shift']());}}}(_0x3a5e,0x6e55a));Object[_0x195601(0x169)](exports,Symbol['toStringTag'],{'value':'Module'});function _0x32eb(_0x609990,_0x430551){_0x609990=_0x609990-0x156;var _0x3a5ee8=_0x3a5e();var _0x32ebf2=_0x3a5ee8[_0x609990];return _0x32ebf2;}const d=require('@univerjs-pro/exchange-client'),i=require('@univerjs/core'),a=require('@univerjs/ui'),p={'id':_0x195601(0x16e),'type':i[_0x195601(0x18d)][_0x195601(0x176)],'handler':async _0xbc7cae=>(_0xbc7cae['get'](d[_0x195601(0x170)])[_0x195601(0x15a)](),!0x0)},g={'id':_0x195601(0x17a),'type':i[_0x195601(0x18d)]['OPERATION'],'handler':async _0x21b0e8=>(_0x21b0e8[_0x195601(0x163)](d[_0x195601(0x170)])[_0x195601(0x15c)](),!0x0)},I=_0x195601(0x159),l={},h='docs-exchange-client.operation.exchange';function v(_0x156acb){var _0x4427d1=_0x195601;return{'id':h,'type':a[_0x4427d1(0x180)]['SUBITEMS'],'icon':_0x4427d1(0x16c),'tooltip':'exchange.file','hidden$':a[_0x4427d1(0x191)](_0x156acb,i[_0x4427d1(0x17e)][_0x4427d1(0x16a)])};}function O(){var _0x2c16e5=_0x195601;return{'id':p['id'],'type':a[_0x2c16e5(0x180)][_0x2c16e5(0x165)],'title':_0x2c16e5(0x18a),'icon':_0x2c16e5(0x179)};}function E(){var _0x565306=_0x195601;return{'id':g['id'],'type':a['MenuItemType']['BUTTON'],'title':_0x565306(0x190),'icon':_0x565306(0x178)};}const x={[a[_0x195601(0x15b)][_0x195601(0x195)]]:{[h]:{'order':0.3,'menuItemFactory':v,[p['id']]:{'order':0x0,'menuItemFactory':O},[g['id']]:{'order':0x1,'menuItemFactory':E}}}};var D=Object['getOwnPropertyDescriptor'],f=(_0x178f2d,_0x3d1a2c,_0x404303,_0x267fb5)=>{for(var _0x3b927a=_0x267fb5>0x1?void 0x0:_0x267fb5?D(_0x3d1a2c,_0x404303):_0x3d1a2c,_0x57b908=_0x178f2d['length']-0x1,_0x348059;_0x57b908>=0x0;_0x57b908--)(_0x348059=_0x178f2d[_0x57b908])&&(_0x3b927a=_0x348059(_0x3b927a)||_0x3b927a);return _0x3b927a;},_=(_0x9f4a79,_0x2e13eb)=>(_0x1ed035,_0x2ef122)=>_0x2e13eb(_0x1ed035,_0x2ef122,_0x9f4a79);let u=class extends i[_0x195601(0x188)]{constructor(_0x26bbdf,_0x4f0449){var _0x219d99=_0x195601;super(),this[_0x219d99(0x16f)]=_0x26bbdf,this[_0x219d99(0x183)]=_0x4f0449,this[_0x219d99(0x18e)](),this[_0x219d99(0x168)]();}[_0x195601(0x18e)](){var _0x3447e2=_0x195601;[p,g][_0x3447e2(0x158)](_0x3b1e84=>{var _0x18663a=_0x3447e2;this[_0x18663a(0x194)](this[_0x18663a(0x16f)][_0x18663a(0x192)](_0x3b1e84));});}[_0x195601(0x168)](){var _0x21d6db=_0x195601;this[_0x21d6db(0x183)][_0x21d6db(0x184)](x);}};u=f([_(0x0,i[_0x195601(0x15e)]),_(0x1,a['IMenuManagerService'])],u);var y=Object['defineProperty'],S=Object[_0x195601(0x18c)],P=(_0x1f8ed3,_0x34c207,_0x4c5ff0)=>_0x34c207 in _0x1f8ed3?y(_0x1f8ed3,_0x34c207,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4c5ff0}):_0x1f8ed3[_0x34c207]=_0x4c5ff0,T=(_0x10955c,_0x15f8c9,_0x2bb64a,_0x3bc593)=>{for(var _0x703e2e=_0x3bc593>0x1?void 0x0:_0x3bc593?S(_0x15f8c9,_0x2bb64a):_0x15f8c9,_0x125469=_0x10955c['length']-0x1,_0x4788fc;_0x125469>=0x0;_0x125469--)(_0x4788fc=_0x10955c[_0x125469])&&(_0x703e2e=_0x4788fc(_0x703e2e)||_0x703e2e);return _0x703e2e;},m=(_0x4012f8,_0x4c8e0c)=>(_0x3ede7d,_0x197b2f)=>_0x4c8e0c(_0x3ede7d,_0x197b2f,_0x4012f8),C=(_0x47de6f,_0x2e7f84,_0x35e3ed)=>P(_0x47de6f,typeof _0x2e7f84!=_0x195601(0x15d)?_0x2e7f84+'':_0x2e7f84,_0x35e3ed);const U='DOC_EXCHANGE_CLIENT_PLUGIN';exports[_0x195601(0x182)]=class extends i[_0x195601(0x17d)]{constructor(_0x13ce9b=l,_0x3afdbc,_0x53d50b){var _0x4fe3c3=_0x195601;super(),this[_0x4fe3c3(0x172)]=_0x13ce9b,this[_0x4fe3c3(0x17c)]=_0x3afdbc,this[_0x4fe3c3(0x160)]=_0x53d50b;const {menu:_0x4febca,..._0x2048fe}=i[_0x4fe3c3(0x157)]({},l,this[_0x4fe3c3(0x172)]);_0x4febca&&this[_0x4fe3c3(0x160)][_0x4fe3c3(0x18b)](_0x4fe3c3(0x16d),_0x4febca,{'merge':!0x0}),this[_0x4fe3c3(0x160)]['setConfig'](I,_0x2048fe);}['onStarting'](){var _0x51cad8=_0x195601;[[u]]['forEach'](_0x2690c0=>this[_0x51cad8(0x17c)][_0x51cad8(0x167)](_0x2690c0));}['onReady'](){var _0x591df1=_0x195601;this[_0x591df1(0x17c)][_0x591df1(0x163)](u);}},C(exports['UniverDocsExchangeClientPlugin'],_0x195601(0x18f),U),C(exports[_0x195601(0x182)],_0x195601(0x156),i[_0x195601(0x17e)][_0x195601(0x16a)]),exports[_0x195601(0x182)]=T([i[_0x195601(0x17b)](d[_0x195601(0x161)]),m(0x1,i[_0x195601(0x173)](i['Injector'])),m(0x2,i[_0x195601(0x193)])],exports[_0x195601(0x182)]),exports[_0x195601(0x185)]=g,exports[_0x195601(0x174)]=p;function _0x3a5e(){var _0x15d7d4=['_commandService','IExchangeOperateService','210mmFPZl','_config','Inject','ImportDOCXOperation','9812935bNCiit','OPERATION','27504OwOxku','ExportIcon','FolderIcon','exchange-client.operation.export-docx','DependentOn','_injector','Plugin','UniverInstanceType','12817eLGOvT','MenuItemType','692PEsHlg','UniverDocsExchangeClientPlugin','_menuManagerService','mergeMenu','ExportDOCXOperation','8723mwwlDg','14412QCEWXR','Disposable','497888jNJQVL','exchange.upload','setConfig','getOwnPropertyDescriptor','CommandType','_initCommands','pluginName','exchange.download','getMenuHiddenObservable','registerCommand','IConfigService','disposeWithMe','OTHERS','type','merge','forEach','docs-exchange-client.config','importDOCXToUnitId','RibbonStartGroup','exportDOCXByUnitId','symbol','ICommandService','2TNLsam','_configService','UniverExchangeClientPlugin','1020qzmvbV','get','13116CwSWIo','BUTTON','47556gHpseG','add','_initMenus','defineProperty','UNIVER_DOC','1984qzsHqn','DirectExportIcon','menu','exchange-client.operation.import-docx'];_0x3a5e=function(){return _0x15d7d4;};return _0x3a5e();}
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x5304(_0x2044ce,_0x2ecd06){_0x2044ce=_0x2044ce-0xe7;var _0xea84fb=_0xea84();var _0x5304a1=_0xea84fb[_0x2044ce];return _0x5304a1;}var _0x3c9e0c=_0x5304;(function(_0x296553,_0x16373b){var _0x3162d0=_0x5304,_0x1aac54=_0x296553();while(!![]){try{var _0x1e420e=parseInt(_0x3162d0(0x109))/0x1*(parseInt(_0x3162d0(0x102))/0x2)+-parseInt(_0x3162d0(0x10e))/0x3*(parseInt(_0x3162d0(0xee))/0x4)+parseInt(_0x3162d0(0xf0))/0x5*(parseInt(_0x3162d0(0x101))/0x6)+parseInt(_0x3162d0(0x110))/0x7+-parseInt(_0x3162d0(0xfb))/0x8*(parseInt(_0x3162d0(0x108))/0x9)+parseInt(_0x3162d0(0x106))/0xa*(parseInt(_0x3162d0(0xec))/0xb)+parseInt(_0x3162d0(0xfe))/0xc*(-parseInt(_0x3162d0(0x10f))/0xd);if(_0x1e420e===_0x16373b)break;else _0x1aac54['push'](_0x1aac54['shift']());}catch(_0x5e15fc){_0x1aac54['push'](_0x1aac54['shift']());}}}(_0xea84,0xdb6b9));import{IExchangeOperateService as _0xe90439,UniverExchangeClientPlugin as _0x5cbe85}from'@univerjs-pro/exchange-client';import{CommandType as _0x682a4f,UniverInstanceType as _0x2335d9,Disposable as _0x34aab0,ICommandService as _0x530b34,DependentOn as _0x52dd6a,Inject as _0x1187bd,Injector as _0x36bcc2,IConfigService as _0x477d0d,Plugin as _0x17c06b,merge as _0x22a245}from'@univerjs/core';import{MenuItemType as _0x3c2b6c,getMenuHiddenObservable as _0x1e75a1,RibbonStartGroup as _0x26129d,IMenuManagerService as _0xd0f098}from'@univerjs/ui';const d={'id':'exchange-client.operation.import-docx','type':_0x682a4f[_0x3c9e0c(0xeb)],'handler':async _0x1b925=>(_0x1b925[_0x3c9e0c(0x10c)](_0xe90439)['importDOCXToUnitId'](),!0x0)},_={'id':_0x3c9e0c(0xf8),'type':_0x682a4f['OPERATION'],'handler':async _0x3ac0ea=>(_0x3ac0ea['get'](_0xe90439)[_0x3c9e0c(0xf1)](),!0x0)},b=_0x3c9e0c(0xe9),m={},C='docs-exchange-client.operation.exchange';function _0xea84(){var _0x5c4633=['exchange-client.operation.export-docx','registerCommand','pluginName','16KOjQLs','defineProperty','onReady','996tJQhPT','_menuManagerService','OTHERS','9246ZbEUuh','12xkwPMI','SUBITEMS','_initMenus','_config','648250eAiuvm','symbol','2096433NjTQal','290182HSsjGS','FolderIcon','add','get','forEach','21MBwjdm','350636csrQoS','11995585ffNzIb','disposeWithMe','_configService','menu','docs-exchange-client.config','onStarting','OPERATION','22QQxiEM','BUTTON','42916ErVVsQ','setConfig','305BUFwMF','exportDOCXByUnitId','length','getOwnPropertyDescriptor','UNIVER_DOC','exchange.file','DOC_EXCHANGE_CLIENT_PLUGIN','_injector'];_0xea84=function(){return _0x5c4633;};return _0xea84();}function X(_0x350579){var _0x11b1d5=_0x3c9e0c;return{'id':C,'type':_0x3c2b6c[_0x11b1d5(0x103)],'icon':'DirectExportIcon','tooltip':_0x11b1d5(0xf5),'hidden$':_0x1e75a1(_0x350579,_0x2335d9[_0x11b1d5(0xf4)])};}function F(){var _0x20672e=_0x3c9e0c;return{'id':d['id'],'type':_0x3c2b6c['BUTTON'],'title':'exchange.upload','icon':_0x20672e(0x10a)};}function G(){var _0xc0bcb2=_0x3c9e0c;return{'id':_['id'],'type':_0x3c2b6c[_0xc0bcb2(0xed)],'title':'exchange.download','icon':'ExportIcon'};}const R={[_0x26129d[_0x3c9e0c(0x100)]]:{[C]:{'order':0.3,'menuItemFactory':X,[d['id']]:{'order':0x0,'menuItemFactory':F},[_['id']]:{'order':0x1,'menuItemFactory':G}}}};var A=Object[_0x3c9e0c(0xf3)],j=(_0x59d022,_0x5d55e9,_0x191cd0,_0x30b2c9)=>{var _0xd28b49=_0x3c9e0c;for(var _0x30a906=_0x30b2c9>0x1?void 0x0:_0x30b2c9?A(_0x5d55e9,_0x191cd0):_0x5d55e9,_0x2d3313=_0x59d022[_0xd28b49(0xf2)]-0x1,_0x1be9bd;_0x2d3313>=0x0;_0x2d3313--)(_0x1be9bd=_0x59d022[_0x2d3313])&&(_0x30a906=_0x1be9bd(_0x30a906)||_0x30a906);return _0x30a906;},u=(_0x4e3201,_0x115dda)=>(_0x3621df,_0x1beb10)=>_0x115dda(_0x3621df,_0x1beb10,_0x4e3201);let a=class extends _0x34aab0{constructor(_0x2c27e3,_0x3df158){var _0x234cc9=_0x3c9e0c;super(),this['_commandService']=_0x2c27e3,this[_0x234cc9(0xff)]=_0x3df158,this['_initCommands'](),this[_0x234cc9(0x104)]();}['_initCommands'](){var _0x1bcce2=_0x3c9e0c;[d,_][_0x1bcce2(0x10d)](_0x3bf645=>{var _0x40d81a=_0x1bcce2;this[_0x40d81a(0x111)](this['_commandService'][_0x40d81a(0xf9)](_0x3bf645));});}['_initMenus'](){var _0x249f42=_0x3c9e0c;this[_0x249f42(0xff)]['mergeMenu'](R);}};a=j([u(0x0,_0x530b34),u(0x1,_0xd0f098)],a);var w=Object[_0x3c9e0c(0xfc)],H=Object[_0x3c9e0c(0xf3)],L=(_0x852c32,_0x21d2c5,_0x31cc6a)=>_0x21d2c5 in _0x852c32?w(_0x852c32,_0x21d2c5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x31cc6a}):_0x852c32[_0x21d2c5]=_0x31cc6a,B=(_0x1aea4d,_0x13c825,_0x337580,_0x3e8caf)=>{var _0x39d057=_0x3c9e0c;for(var _0x116829=_0x3e8caf>0x1?void 0x0:_0x3e8caf?H(_0x13c825,_0x337580):_0x13c825,_0x2a1fdf=_0x1aea4d[_0x39d057(0xf2)]-0x1,_0x1ad08b;_0x2a1fdf>=0x0;_0x2a1fdf--)(_0x1ad08b=_0x1aea4d[_0x2a1fdf])&&(_0x116829=_0x1ad08b(_0x116829)||_0x116829);return _0x116829;},g=(_0x3a1bfe,_0x28eb55)=>(_0x38bbdb,_0x50d6ea)=>_0x28eb55(_0x38bbdb,_0x50d6ea,_0x3a1bfe),O=(_0x228b0d,_0x5ca012,_0x38f0be)=>L(_0x228b0d,typeof _0x5ca012!=_0x3c9e0c(0x107)?_0x5ca012+'':_0x5ca012,_0x38f0be);const $=_0x3c9e0c(0xf6);let s=class extends _0x17c06b{constructor(_0x597656=m,_0x34f9d5,_0x3f7155){var _0x2d6928=_0x3c9e0c;super(),this[_0x2d6928(0x105)]=_0x597656,this['_injector']=_0x34f9d5,this[_0x2d6928(0xe7)]=_0x3f7155;const {menu:_0x34c02c,..._0x2f41b6}=_0x22a245({},m,this['_config']);_0x34c02c&&this[_0x2d6928(0xe7)]['setConfig'](_0x2d6928(0xe8),_0x34c02c,{'merge':!0x0}),this['_configService'][_0x2d6928(0xef)](b,_0x2f41b6);}[_0x3c9e0c(0xea)](){var _0x357a6f=_0x3c9e0c;[[a]][_0x357a6f(0x10d)](_0x567bd2=>this[_0x357a6f(0xf7)][_0x357a6f(0x10b)](_0x567bd2));}[_0x3c9e0c(0xfd)](){var _0x743482=_0x3c9e0c;this[_0x743482(0xf7)][_0x743482(0x10c)](a);}};O(s,_0x3c9e0c(0xfa),$),O(s,'type',_0x2335d9[_0x3c9e0c(0xf4)]),s=B([_0x52dd6a(_0x5cbe85),g(0x1,_0x1187bd(_0x36bcc2)),g(0x2,_0x477d0d)],s);export{_ as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x5304(_0x2044ce,_0x2ecd06){_0x2044ce=_0x2044ce-0xe7;var _0xea84fb=_0xea84();var _0x5304a1=_0xea84fb[_0x2044ce];return _0x5304a1;}var _0x3c9e0c=_0x5304;(function(_0x296553,_0x16373b){var _0x3162d0=_0x5304,_0x1aac54=_0x296553();while(!![]){try{var _0x1e420e=parseInt(_0x3162d0(0x109))/0x1*(parseInt(_0x3162d0(0x102))/0x2)+-parseInt(_0x3162d0(0x10e))/0x3*(parseInt(_0x3162d0(0xee))/0x4)+parseInt(_0x3162d0(0xf0))/0x5*(parseInt(_0x3162d0(0x101))/0x6)+parseInt(_0x3162d0(0x110))/0x7+-parseInt(_0x3162d0(0xfb))/0x8*(parseInt(_0x3162d0(0x108))/0x9)+parseInt(_0x3162d0(0x106))/0xa*(parseInt(_0x3162d0(0xec))/0xb)+parseInt(_0x3162d0(0xfe))/0xc*(-parseInt(_0x3162d0(0x10f))/0xd);if(_0x1e420e===_0x16373b)break;else _0x1aac54['push'](_0x1aac54['shift']());}catch(_0x5e15fc){_0x1aac54['push'](_0x1aac54['shift']());}}}(_0xea84,0xdb6b9));import{IExchangeOperateService as _0xe90439,UniverExchangeClientPlugin as _0x5cbe85}from'@univerjs-pro/exchange-client';import{CommandType as _0x682a4f,UniverInstanceType as _0x2335d9,Disposable as _0x34aab0,ICommandService as _0x530b34,DependentOn as _0x52dd6a,Inject as _0x1187bd,Injector as _0x36bcc2,IConfigService as _0x477d0d,Plugin as _0x17c06b,merge as _0x22a245}from'@univerjs/core';import{MenuItemType as _0x3c2b6c,getMenuHiddenObservable as _0x1e75a1,RibbonStartGroup as _0x26129d,IMenuManagerService as _0xd0f098}from'@univerjs/ui';const d={'id':'exchange-client.operation.import-docx','type':_0x682a4f[_0x3c9e0c(0xeb)],'handler':async _0x1b925=>(_0x1b925[_0x3c9e0c(0x10c)](_0xe90439)['importDOCXToUnitId'](),!0x0)},_={'id':_0x3c9e0c(0xf8),'type':_0x682a4f['OPERATION'],'handler':async _0x3ac0ea=>(_0x3ac0ea['get'](_0xe90439)[_0x3c9e0c(0xf1)](),!0x0)},b=_0x3c9e0c(0xe9),m={},C='docs-exchange-client.operation.exchange';function _0xea84(){var _0x5c4633=['exchange-client.operation.export-docx','registerCommand','pluginName','16KOjQLs','defineProperty','onReady','996tJQhPT','_menuManagerService','OTHERS','9246ZbEUuh','12xkwPMI','SUBITEMS','_initMenus','_config','648250eAiuvm','symbol','2096433NjTQal','290182HSsjGS','FolderIcon','add','get','forEach','21MBwjdm','350636csrQoS','11995585ffNzIb','disposeWithMe','_configService','menu','docs-exchange-client.config','onStarting','OPERATION','22QQxiEM','BUTTON','42916ErVVsQ','setConfig','305BUFwMF','exportDOCXByUnitId','length','getOwnPropertyDescriptor','UNIVER_DOC','exchange.file','DOC_EXCHANGE_CLIENT_PLUGIN','_injector'];_0xea84=function(){return _0x5c4633;};return _0xea84();}function X(_0x350579){var _0x11b1d5=_0x3c9e0c;return{'id':C,'type':_0x3c2b6c[_0x11b1d5(0x103)],'icon':'DirectExportIcon','tooltip':_0x11b1d5(0xf5),'hidden$':_0x1e75a1(_0x350579,_0x2335d9[_0x11b1d5(0xf4)])};}function F(){var _0x20672e=_0x3c9e0c;return{'id':d['id'],'type':_0x3c2b6c['BUTTON'],'title':'exchange.upload','icon':_0x20672e(0x10a)};}function G(){var _0xc0bcb2=_0x3c9e0c;return{'id':_['id'],'type':_0x3c2b6c[_0xc0bcb2(0xed)],'title':'exchange.download','icon':'ExportIcon'};}const R={[_0x26129d[_0x3c9e0c(0x100)]]:{[C]:{'order':0.3,'menuItemFactory':X,[d['id']]:{'order':0x0,'menuItemFactory':F},[_['id']]:{'order':0x1,'menuItemFactory':G}}}};var A=Object[_0x3c9e0c(0xf3)],j=(_0x59d022,_0x5d55e9,_0x191cd0,_0x30b2c9)=>{var _0xd28b49=_0x3c9e0c;for(var _0x30a906=_0x30b2c9>0x1?void 0x0:_0x30b2c9?A(_0x5d55e9,_0x191cd0):_0x5d55e9,_0x2d3313=_0x59d022[_0xd28b49(0xf2)]-0x1,_0x1be9bd;_0x2d3313>=0x0;_0x2d3313--)(_0x1be9bd=_0x59d022[_0x2d3313])&&(_0x30a906=_0x1be9bd(_0x30a906)||_0x30a906);return _0x30a906;},u=(_0x4e3201,_0x115dda)=>(_0x3621df,_0x1beb10)=>_0x115dda(_0x3621df,_0x1beb10,_0x4e3201);let a=class extends _0x34aab0{constructor(_0x2c27e3,_0x3df158){var _0x234cc9=_0x3c9e0c;super(),this['_commandService']=_0x2c27e3,this[_0x234cc9(0xff)]=_0x3df158,this['_initCommands'](),this[_0x234cc9(0x104)]();}['_initCommands'](){var _0x1bcce2=_0x3c9e0c;[d,_][_0x1bcce2(0x10d)](_0x3bf645=>{var _0x40d81a=_0x1bcce2;this[_0x40d81a(0x111)](this['_commandService'][_0x40d81a(0xf9)](_0x3bf645));});}['_initMenus'](){var _0x249f42=_0x3c9e0c;this[_0x249f42(0xff)]['mergeMenu'](R);}};a=j([u(0x0,_0x530b34),u(0x1,_0xd0f098)],a);var w=Object[_0x3c9e0c(0xfc)],H=Object[_0x3c9e0c(0xf3)],L=(_0x852c32,_0x21d2c5,_0x31cc6a)=>_0x21d2c5 in _0x852c32?w(_0x852c32,_0x21d2c5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x31cc6a}):_0x852c32[_0x21d2c5]=_0x31cc6a,B=(_0x1aea4d,_0x13c825,_0x337580,_0x3e8caf)=>{var _0x39d057=_0x3c9e0c;for(var _0x116829=_0x3e8caf>0x1?void 0x0:_0x3e8caf?H(_0x13c825,_0x337580):_0x13c825,_0x2a1fdf=_0x1aea4d[_0x39d057(0xf2)]-0x1,_0x1ad08b;_0x2a1fdf>=0x0;_0x2a1fdf--)(_0x1ad08b=_0x1aea4d[_0x2a1fdf])&&(_0x116829=_0x1ad08b(_0x116829)||_0x116829);return _0x116829;},g=(_0x3a1bfe,_0x28eb55)=>(_0x38bbdb,_0x50d6ea)=>_0x28eb55(_0x38bbdb,_0x50d6ea,_0x3a1bfe),O=(_0x228b0d,_0x5ca012,_0x38f0be)=>L(_0x228b0d,typeof _0x5ca012!=_0x3c9e0c(0x107)?_0x5ca012+'':_0x5ca012,_0x38f0be);const $=_0x3c9e0c(0xf6);let s=class extends _0x17c06b{constructor(_0x597656=m,_0x34f9d5,_0x3f7155){var _0x2d6928=_0x3c9e0c;super(),this[_0x2d6928(0x105)]=_0x597656,this['_injector']=_0x34f9d5,this[_0x2d6928(0xe7)]=_0x3f7155;const {menu:_0x34c02c,..._0x2f41b6}=_0x22a245({},m,this['_config']);_0x34c02c&&this[_0x2d6928(0xe7)]['setConfig'](_0x2d6928(0xe8),_0x34c02c,{'merge':!0x0}),this['_configService'][_0x2d6928(0xef)](b,_0x2f41b6);}[_0x3c9e0c(0xea)](){var _0x357a6f=_0x3c9e0c;[[a]][_0x357a6f(0x10d)](_0x567bd2=>this[_0x357a6f(0xf7)][_0x357a6f(0x10b)](_0x567bd2));}[_0x3c9e0c(0xfd)](){var _0x743482=_0x3c9e0c;this[_0x743482(0xf7)][_0x743482(0x10c)](a);}};O(s,_0x3c9e0c(0xfa),$),O(s,'type',_0x2335d9[_0x3c9e0c(0xf4)]),s=B([_0x52dd6a(_0x5cbe85),g(0x1,_0x1187bd(_0x36bcc2)),g(0x2,_0x477d0d)],s);export{_ as ExportDOCXOperation,d as ImportDOCXOperation,s as UniverDocsExchangeClientPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x4852(){var _0xefa40f=['16103124roYjll','ICommandService','onStarting','exchange.file','merge','getOwnPropertyDescriptor','length','7uBVleZ','Module','symbol','@univerjs/core','RibbonStartGroup','UNIVER_DOC','ImportDOCXOperation','IMenuManagerService','83745JoBDqu','@univerjs/ui','Injector','12650696TUxufO','UniverProDocsExchangeClient','BUTTON','2636nDtuzx','UniverProExchangeClient','docs-exchange-client.operation.exchange','forEach','MenuItemType','OPERATION','type','object','_initCommands','exports','function','11PsJGne','10MZEQNo','exchange.download','UniverInstanceType','UniverExchangeClientPlugin','_injector','add','importDOCXToUnitId','UniverUi','SUBITEMS','_menuManagerService','get','docs-exchange-client.config','toStringTag','exchange-client.operation.export-docx','UniverDocsExchangeClientPlugin','ExportDOCXOperation','Disposable','amd','CommandType','pluginName','@univerjs-pro/exchange-client','41586ltPRjL','_configService','DOC_EXCHANGE_CLIENT_PLUGIN','204jPYodL','onReady','exchange.upload','_config','120KjhXfl','setConfig','defineProperty','_initMenus','15585516IdnBmK','IExchangeOperateService','2018736izGBpE','Plugin','FolderIcon','Inject'];_0x4852=function(){return _0xefa40f;};return _0x4852();}function _0x2bd8(_0x233a71,_0x4534d4){_0x233a71=_0x233a71-0x1a1;var _0x4852e7=_0x4852();var _0x2bd8a7=_0x4852e7[_0x233a71];return _0x2bd8a7;}(function(_0x15e2b2,_0x455f5a){var _0x3f158e=_0x2bd8,_0x6d72d2=_0x15e2b2();while(!![]){try{var _0x3b00f8=-parseInt(_0x3f158e(0x1b7))/0x1*(parseInt(_0x3f158e(0x1da))/0x2)+parseInt(_0x3f158e(0x1b4))/0x3+parseInt(_0x3f158e(0x1bb))/0x4*(-parseInt(_0x3f158e(0x1d4))/0x5)+-parseInt(_0x3f158e(0x1c1))/0x6+-parseInt(_0x3f158e(0x1cc))/0x7*(-parseInt(_0x3f158e(0x1d7))/0x8)+-parseInt(_0x3f158e(0x1c5))/0x9*(-parseInt(_0x3f158e(0x1e6))/0xa)+parseInt(_0x3f158e(0x1e5))/0xb*(-parseInt(_0x3f158e(0x1bf))/0xc);if(_0x3b00f8===_0x455f5a)break;else _0x6d72d2['push'](_0x6d72d2['shift']());}catch(_0x5c7cc6){_0x6d72d2['push'](_0x6d72d2['shift']());}}}(_0x4852,0xeebb4),function(_0x2b8774,_0x5b0e8a){var _0x27aa99=_0x2bd8;typeof exports==_0x27aa99(0x1e1)&&typeof module<'u'?_0x5b0e8a(exports,require('@univerjs-pro/exchange-client'),require('@univerjs/core'),require('@univerjs/ui')):typeof define==_0x27aa99(0x1e4)&&define[_0x27aa99(0x1b0)]?define([_0x27aa99(0x1e3),_0x27aa99(0x1b3),_0x27aa99(0x1cf),_0x27aa99(0x1d5)],_0x5b0e8a):(_0x2b8774=typeof globalThis<'u'?globalThis:_0x2b8774||self,_0x5b0e8a(_0x2b8774[_0x27aa99(0x1d8)]={},_0x2b8774[_0x27aa99(0x1db)],_0x2b8774['UniverCore'],_0x2b8774[_0x27aa99(0x1a6)]));}(this,function(_0x98fcf4,_0x2fe12e,_0x5bf3a6,_0x12fc23){'use strict';var _0x105b91=_0x2bd8;const _0xbc9eb9={'id':'exchange-client.operation.import-docx','type':_0x5bf3a6[_0x105b91(0x1b1)][_0x105b91(0x1df)],'handler':async _0x544b19=>(_0x544b19[_0x105b91(0x1a9)](_0x2fe12e[_0x105b91(0x1c0)])[_0x105b91(0x1a5)](),!0x0)},_0x200e60={'id':_0x105b91(0x1ac),'type':_0x5bf3a6[_0x105b91(0x1b1)][_0x105b91(0x1df)],'handler':async _0x1ca039=>(_0x1ca039[_0x105b91(0x1a9)](_0x2fe12e[_0x105b91(0x1c0)])['exportDOCXByUnitId'](),!0x0)},_0x37ab4a=_0x105b91(0x1aa),_0x475491={},_0x4ddeea=_0x105b91(0x1dc);function _0x55787d(_0x1e0d7c){var _0x45f3cf=_0x105b91;return{'id':_0x4ddeea,'type':_0x12fc23[_0x45f3cf(0x1de)][_0x45f3cf(0x1a7)],'icon':'DirectExportIcon','tooltip':_0x45f3cf(0x1c8),'hidden$':_0x12fc23['getMenuHiddenObservable'](_0x1e0d7c,_0x5bf3a6[_0x45f3cf(0x1a1)][_0x45f3cf(0x1d1)])};}function _0x47b9f6(){var _0x3d3ef3=_0x105b91;return{'id':_0xbc9eb9['id'],'type':_0x12fc23[_0x3d3ef3(0x1de)][_0x3d3ef3(0x1d9)],'title':_0x3d3ef3(0x1b9),'icon':_0x3d3ef3(0x1c3)};}function _0x5424ed(){var _0x38952a=_0x105b91;return{'id':_0x200e60['id'],'type':_0x12fc23[_0x38952a(0x1de)][_0x38952a(0x1d9)],'title':_0x38952a(0x1e7),'icon':'ExportIcon'};}const _0x43a95a={[_0x12fc23[_0x105b91(0x1d0)]['OTHERS']]:{[_0x4ddeea]:{'order':0.3,'menuItemFactory':_0x55787d,[_0xbc9eb9['id']]:{'order':0x0,'menuItemFactory':_0x47b9f6},[_0x200e60['id']]:{'order':0x1,'menuItemFactory':_0x5424ed}}}};var _0x1c7537=Object[_0x105b91(0x1ca)],_0x5d8ecd=(_0x582c75,_0x2e6dbe,_0x2cfd97,_0x5dcdff)=>{for(var _0x4dc0c1=_0x5dcdff>0x1?void 0x0:_0x5dcdff?_0x1c7537(_0x2e6dbe,_0x2cfd97):_0x2e6dbe,_0x5e40f0=_0x582c75['length']-0x1,_0xb27325;_0x5e40f0>=0x0;_0x5e40f0--)(_0xb27325=_0x582c75[_0x5e40f0])&&(_0x4dc0c1=_0xb27325(_0x4dc0c1)||_0x4dc0c1);return _0x4dc0c1;},_0x173f2f=(_0x1c0217,_0x3148cd)=>(_0x4aa2ae,_0xe4ba2b)=>_0x3148cd(_0x4aa2ae,_0xe4ba2b,_0x1c0217);let _0x1caadd=class extends _0x5bf3a6[_0x105b91(0x1af)]{constructor(_0x11712a,_0x1eaafc){var _0x1d6a38=_0x105b91;super(),this['_commandService']=_0x11712a,this[_0x1d6a38(0x1a8)]=_0x1eaafc,this['_initCommands'](),this[_0x1d6a38(0x1be)]();}[_0x105b91(0x1e2)](){var _0x4ab538=_0x105b91;[_0xbc9eb9,_0x200e60][_0x4ab538(0x1dd)](_0x3f3247=>{this['disposeWithMe'](this['_commandService']['registerCommand'](_0x3f3247));});}['_initMenus'](){var _0x2f0629=_0x105b91;this[_0x2f0629(0x1a8)]['mergeMenu'](_0x43a95a);}};_0x1caadd=_0x5d8ecd([_0x173f2f(0x0,_0x5bf3a6[_0x105b91(0x1c6)]),_0x173f2f(0x1,_0x12fc23[_0x105b91(0x1d3)])],_0x1caadd);var _0x586dbf=Object[_0x105b91(0x1bd)],_0x4ffcfd=Object[_0x105b91(0x1ca)],_0x1bef59=(_0x450dfe,_0x927225,_0x52cfe8)=>_0x927225 in _0x450dfe?_0x586dbf(_0x450dfe,_0x927225,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x52cfe8}):_0x450dfe[_0x927225]=_0x52cfe8,_0xdbbf6=(_0x206d38,_0x5cd9b8,_0x854ee7,_0x30a74d)=>{var _0x43ac3a=_0x105b91;for(var _0x553e03=_0x30a74d>0x1?void 0x0:_0x30a74d?_0x4ffcfd(_0x5cd9b8,_0x854ee7):_0x5cd9b8,_0x3b9821=_0x206d38[_0x43ac3a(0x1cb)]-0x1,_0x7a1bcd;_0x3b9821>=0x0;_0x3b9821--)(_0x7a1bcd=_0x206d38[_0x3b9821])&&(_0x553e03=_0x7a1bcd(_0x553e03)||_0x553e03);return _0x553e03;},_0x56e505=(_0x16538c,_0x3ae908)=>(_0xf6ebea,_0x95b9e6)=>_0x3ae908(_0xf6ebea,_0x95b9e6,_0x16538c),_0x5b92e5=(_0x1fc2df,_0x3abf17,_0x126d5a)=>_0x1bef59(_0x1fc2df,typeof _0x3abf17!=_0x105b91(0x1ce)?_0x3abf17+'':_0x3abf17,_0x126d5a);const _0x5b021e=_0x105b91(0x1b6);_0x98fcf4[_0x105b91(0x1ad)]=class extends _0x5bf3a6[_0x105b91(0x1c2)]{constructor(_0x48cd1e=_0x475491,_0x2cf194,_0x5a27a7){var _0x486b05=_0x105b91;super(),this[_0x486b05(0x1ba)]=_0x48cd1e,this[_0x486b05(0x1a3)]=_0x2cf194,this['_configService']=_0x5a27a7;const {menu:_0x3e8033,..._0x587823}=_0x5bf3a6[_0x486b05(0x1c9)]({},_0x475491,this[_0x486b05(0x1ba)]);_0x3e8033&&this[_0x486b05(0x1b5)][_0x486b05(0x1bc)]('menu',_0x3e8033,{'merge':!0x0}),this[_0x486b05(0x1b5)][_0x486b05(0x1bc)](_0x37ab4a,_0x587823);}[_0x105b91(0x1c7)](){var _0x3b7f5a=_0x105b91;[[_0x1caadd]]['forEach'](_0x8a9970=>this[_0x3b7f5a(0x1a3)][_0x3b7f5a(0x1a4)](_0x8a9970));}[_0x105b91(0x1b8)](){var _0xff7018=_0x105b91;this[_0xff7018(0x1a3)][_0xff7018(0x1a9)](_0x1caadd);}},_0x5b92e5(_0x98fcf4[_0x105b91(0x1ad)],_0x105b91(0x1b2),_0x5b021e),_0x5b92e5(_0x98fcf4['UniverDocsExchangeClientPlugin'],_0x105b91(0x1e0),_0x5bf3a6[_0x105b91(0x1a1)][_0x105b91(0x1d1)]),_0x98fcf4[_0x105b91(0x1ad)]=_0xdbbf6([_0x5bf3a6['DependentOn'](_0x2fe12e[_0x105b91(0x1a2)]),_0x56e505(0x1,_0x5bf3a6[_0x105b91(0x1c4)](_0x5bf3a6[_0x105b91(0x1d6)])),_0x56e505(0x2,_0x5bf3a6['IConfigService'])],_0x98fcf4[_0x105b91(0x1ad)]),_0x98fcf4[_0x105b91(0x1ae)]=_0x200e60,_0x98fcf4[_0x105b91(0x1d2)]=_0xbc9eb9,Object[_0x105b91(0x1bd)](_0x98fcf4,Symbol[_0x105b91(0x1ab)],{'value':_0x105b91(0x1cd)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/docs-exchange-client",
|
|
3
|
-
"version": "0.12.4-insiders.
|
|
3
|
+
"version": "0.12.4-insiders.20251213-692494c",
|
|
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.12.4-insiders.
|
|
46
|
-
"@univerjs/
|
|
47
|
-
"@univerjs/
|
|
45
|
+
"@univerjs-pro/exchange-client": "0.12.4-insiders.20251213-692494c",
|
|
46
|
+
"@univerjs/core": "0.12.4-insiders.20251213-692494c",
|
|
47
|
+
"@univerjs/ui": "0.12.4-insiders.20251213-692494c"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"typescript": "^5.9.3",
|