@univer-cli/unit-screenshot-command 1.4.0 → 1.6.0
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/README.md +2 -0
- package/README.zh-CN.md +2 -0
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -39,3 +39,5 @@ Commander exits non-zero when arguments are invalid or Unit loading, rendering,
|
|
|
39
39
|
`createUniverRenderBrowserSetupCommand()` provides optional browser installation and detection for environments without a system Chromium. It does not implicitly download a browser for every screenshot.
|
|
40
40
|
|
|
41
41
|
Both factories return native Commander `Command` instances. Target selection, pagination, naming, and limits belong to the capability. This package handles only argv, presentation, and the writer adapter.
|
|
42
|
+
|
|
43
|
+
Full Board content accepts finite non-negative `padding` (`--padding` in the CLI) without a region or element selection; omission keeps native defaults. The renderer fits the complete content and returns the actual scale. Explicit `scale` (`--scale`) still requires a region or element selector; requests beyond the capture viewport fail instead of silently changing the requested scale.
|
package/README.zh-CN.md
CHANGED
|
@@ -45,3 +45,5 @@ application 在 composition root 统一关闭。
|
|
|
45
45
|
|
|
46
46
|
Factory 均返回原生 Commander `Command`。Target 选择、分页、命名与限制属于 capability,本 package 只拥有
|
|
47
47
|
argv、presentation 与 writer adapter。
|
|
48
|
+
|
|
49
|
+
Board 完整内容截图可直接指定 `padding`(CLI 为 `--padding`),无需另选 region 或 elementIds;数值必须有限且非负,省略时保持原生默认。此时 renderer 自动适配完整内容,输出记录实际 scale。显式 `scale`(CLI 为 `--scale`)仍要求 region 或 elementIds;超过画布可捕获范围时会失败,不静默缩放。
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x2f4c21,_0x2edef4){const _0x423439=_0x3cab,_0x2e0136=_0x2f4c21();while(!![]){try{const _0xce2425=parseInt(_0x423439(0xb7))/0x1*(parseInt(_0x423439(0xbc))/0x2)+parseInt(_0x423439(0x91))/0x3*(parseInt(_0x423439(0xff))/0x4)+parseInt(_0x423439(0xa1))/0x5*(parseInt(_0x423439(0xa7))/0x6)+-parseInt(_0x423439(0xdc))/0x7*(parseInt(_0x423439(0xbe))/0x8)+-parseInt(_0x423439(0x96))/0x9*(parseInt(_0x423439(0xf9))/0xa)+-parseInt(_0x423439(0xe0))/0xb+-parseInt(_0x423439(0x10c))/0xc;if(_0xce2425===_0x2edef4)break;else _0x2e0136['push'](_0x2e0136['shift']());}catch(_0x529164){_0x2e0136['push'](_0x2e0136['shift']());}}}(_0x59b0,0x8792b));import{UnitScreenshotError as _0x2c3bc8}from'@univer-cli/unit-screenshot';import{Command as _0x257098}from'commander';function _0x59b0(){const _0x591051=['260xnXzYs','stringify','):\x20','resolve','trim','write\x20a\x20structured\x20output\x20summary\x20as\x20JSON','515560scIhdT','--region\x20width\x20and\x20height\x20must\x20be\x20positive','json','code','error','configureOutput','--sheet\x20<name>','region','map','Screenshot\x20failed','--out\x20<destination>','--region\x20<left,top,width,height>','Sheet\x20name\x20used\x20with\x20--range','6375240TyrQAb','isSafeInteger','UnitScreenshotCommandInputError','tile','Slide','9wzrAfx','--elements\x20must\x20contain\x20non-empty\x20IDs','loadUnit','board','unitId','248634dxqaZt','--pages\x20contains\x20an\x20empty\x20selector','pages','split','slide-pages','--region\x20must\x20contain\x20left,top,width,height\x20as\x20finite\x20numbers','sheet','doc','--json','location','action','15WNTuwG','--padding\x20<pixels>','Screenshot\x20writer\x20returned\x20','A\x20--pages\x20range\x20cannot\x20exceed\x20','Board','executablePath','2012484BTqaBU','--unit\x20<unit-id>','string','toLowerCase','join','Render\x20a\x20Univer\x20Unit\x20as\x20PNG\x20images','found','--sheet\x20requires\x20--range','option','--range\x20<a1-range>','--force','Doc','Resolve\x20or\x20install\x20the\x20browser\x20used\x20for\x20Univer\x20rendering','source','scale','\x20pages','149194gZqsdv','--tile\x20requires\x20--contact-slide','message','out','--padding','10pgUwgj','description','24224zrmcYR','setup','Board\x20content\x20padding','browserSetup','optsWithGlobals','replace','--padding\x20and\x20--scale\x20require\x20--region\x20or\x20--elements','Base','Slide\x20overview\x20containing\x20all\x20captured\x20pages','board-content','\x20must\x20be\x20a\x20finite\x20number','unit','isFinite','contactSlide','every','\x20images','Invalid\x20--tile\x20','exec','elements','status','Screenshot\x20writer\x20output\x20','cacheDir','\x20is\x20not\x20supported\x20for\x20','probe','screenshot\x20browser\x20installed:\x20','--scale\x20<factor>','--elements\x20and\x20--region\x20cannot\x20be\x20used\x20together','--pages\x20cannot\x20be\x20empty','screenshot','write\x20the\x20setup\x20result\x20as\x20JSON','721qiBSCm','\x20does\x20not\x20match\x20the\x20captured\x20image\x20name','buildId','name','243595OMogfP','build:\x20','unitType','\x20outputs\x20for\x20','writeImages','push','padding','screenshot\x20browser\x20already\x20installed:\x20',';\x20expected\x20<columns>x<rows>','Board\x20element\x20IDs\x20separated\x20by\x20commas','sheet-range','screenshot.setup-failed','range','capture','writeOut','Sheet','parent','length','addCommand','resolved','screenshot.failed','run\x20`screenshot\x20setup\x20--force`\x20to\x20ensure\x20the\x20pinned\x20Chromium\x20build','cache:\x20','Contact\x20slide\x20grid,\x20for\x20example\x204x2','images'];_0x59b0=function(){return _0x591051;};return _0x59b0();}function _0x3cab(_0x46e69c,_0x4e1534){_0x46e69c=_0x46e69c-0x90;const _0x59b0d8=_0x59b0();let _0x3cab3e=_0x59b0d8[_0x46e69c];return _0x3cab3e;}import{installUniverRenderBrowser as _0x5b8013,probeUniverRenderBrowser as _0xee5cf6,resolveUniverRenderBrowser as _0x3f8cc6}from'@univer-cli/univer-render-runtime';var a={'install':async()=>await _0x5b8013(),'probe':async _0x44c453=>await _0xee5cf6(_0x44c453),'resolve':async()=>await _0x3f8cc6()};function o(_0x8424fa=a){const _0x4a22be=_0x3cab;let _0x3ff3c1=new _0x257098(_0x4a22be(0xbf))[_0x4a22be(0xbd)](_0x4a22be(0xb3))[_0x4a22be(0xaf)](_0x4a22be(0xb1),'skip\x20discovery\x20and\x20ensure\x20the\x20pinned\x20Chromium\x20build')[_0x4a22be(0xaf)](_0x4a22be(0x9e),_0x4a22be(0xdb));return _0x3ff3c1[_0x4a22be(0xa0)](async _0x527a07=>{const _0x4be112=_0x4a22be;l(_0x3ff3c1);let _0x1ab04a={..._0x3ff3c1[_0x4be112(0xc2)](),..._0x527a07},_0x485743;try{_0x485743=await s(_0x8424fa,_0x1ab04a['force']===!0x0);}catch(_0x404ef4){u(_0x404ef4)&&_0x3ff3c1[_0x4be112(0x103)](_0x404ef4['code']+':\x20'+_0x404ef4[_0x4be112(0xb9)],{'code':'screenshot.setup-failed','exitCode':0x1}),_0x3ff3c1[_0x4be112(0x103)](_0x404ef4 instanceof Error?_0x404ef4['message']:'Browser\x20setup\x20failed',{'code':_0x4be112(0xeb),'exitCode':0x1});}let _0x1d9da0=_0x1ab04a[_0x4be112(0x101)]===!0x0?JSON[_0x4be112(0xfa)]({'ok':!0x0,..._0x485743},null,0x2)+'\x0a':c(_0x485743);_0x3ff3c1[_0x4be112(0x104)]()[_0x4be112(0xee)]?.(_0x1d9da0);}),_0x3ff3c1;}async function s(_0xe03800,_0x2467a4){const _0x1311b4=_0x3cab;if(!_0x2467a4){let _0x4f9f51=await _0xe03800[_0x1311b4(0xfc)]();if(_0x4f9f51[_0x1311b4(0xd1)]===_0x1311b4(0xad))return await _0xe03800[_0x1311b4(0xd5)]({'executablePath':_0x4f9f51[_0x1311b4(0xa6)]}),{'status':'resolved','executablePath':_0x4f9f51[_0x1311b4(0xa6)],'source':_0x4f9f51[_0x1311b4(0xb4)]};}let _0x1fb9bc=await _0xe03800['install']();return await _0xe03800[_0x1311b4(0xd5)]({'executablePath':_0x1fb9bc[_0x1311b4(0xa6)]}),{'status':'installed',..._0x1fb9bc};}function c(_0x57d404){const _0x17f1c0=_0x3cab;return _0x57d404[_0x17f1c0(0xd1)]===_0x17f1c0(0xf3)?['usable\x20browser\x20found\x20('+_0x57d404[_0x17f1c0(0xb4)]+_0x17f1c0(0xfb)+_0x57d404['executablePath'],_0x17f1c0(0xf5),''][_0x17f1c0(0xab)]('\x0a'):[_0x57d404['alreadyInstalled']?_0x17f1c0(0xe7)+_0x57d404[_0x17f1c0(0xa6)]:_0x17f1c0(0xd6)+_0x57d404[_0x17f1c0(0xa6)],_0x17f1c0(0xe1)+_0x57d404[_0x17f1c0(0xde)],_0x17f1c0(0xf6)+_0x57d404[_0x17f1c0(0xd3)],''][_0x17f1c0(0xab)]('\x0a');}function l(_0x103716){const _0x260a91=_0x3cab;_0x103716[_0x260a91(0xf0)]!==null&&_0x103716[_0x260a91(0x104)](_0x103716[_0x260a91(0xf0)][_0x260a91(0x104)]());}function u(_0x1a0e21){const _0x4f3143=_0x3cab;return _0x1a0e21 instanceof Error&&typeof _0x1a0e21[_0x4f3143(0x102)]==_0x4f3143(0xa9);}var d=0x2710,f=class extends Error{constructor(_0x138b06){const _0x330279=_0x3cab;super(_0x138b06),this[_0x330279(0xdf)]=_0x330279(0x10e);}};function p(_0x262dcf){const _0x30b193=_0x3cab;let _0x22a990=new _0x257098(_0x30b193(0xda))[_0x30b193(0xbd)](_0x30b193(0xac))[_0x30b193(0xaf)](_0x30b193(0xa8),'Unit\x20to\x20capture')[_0x30b193(0xaf)]('--pages\x20<pages>','Slide\x20pages\x20or\x20page\x20IDs,\x20for\x20example\x201,3-5,cover')['option']('--contact-slide',_0x30b193(0xc6))['option']('--tile\x20<columns>x<rows>',_0x30b193(0xf7))[_0x30b193(0xaf)](_0x30b193(0x105),_0x30b193(0x10b))['option'](_0x30b193(0xb0),'Sheet\x20range,\x20for\x20example\x20B2:H40')['option'](_0x30b193(0x10a),'Board\x20region')[_0x30b193(0xaf)]('--elements\x20<ids>',_0x30b193(0xe9))['option'](_0x30b193(0xa2),_0x30b193(0xc0))[_0x30b193(0xaf)](_0x30b193(0xd7),'Board\x20selector\x20scale\x20between\x200.1\x20and\x204')[_0x30b193(0xaf)](_0x30b193(0x109),'Opaque\x20output\x20destination\x20passed\x20to\x20the\x20writer')[_0x30b193(0xaf)](_0x30b193(0x9e),_0x30b193(0xfe));return _0x22a990[_0x30b193(0xf2)](o(_0x262dcf[_0x30b193(0xc1)])),_0x22a990[_0x30b193(0xa0)](async _0x2c5975=>{const _0x156b45=_0x30b193;let _0x36ffdd;try{let _0x36cdef=await _0x262dcf[_0x156b45(0x93)](_0x2c5975[_0x156b45(0xc9)]===void 0x0?{}:{'unitId':_0x2c5975[_0x156b45(0xc9)]});_0x36ffdd=await m(_0x262dcf['screenshot'],_0x36cdef,_0x2c5975);}catch(_0x87eb7){C(_0x22a990,_0x87eb7);}let _0x47ef34;try{_0x47ef34=await _0x262dcf[_0x156b45(0xe4)]({'result':_0x36ffdd,..._0x2c5975[_0x156b45(0xba)]===void 0x0?{}:{'destination':_0x2c5975[_0x156b45(0xba)]}}),x(_0x36ffdd,_0x47ef34);}catch(_0x5e00e0){C(_0x22a990,_0x5e00e0);}let _0xa86558=_0x2c5975[_0x156b45(0x101)]===!0x0?JSON[_0x156b45(0xfa)](S(_0x36ffdd,_0x47ef34),null,0x2)+'\x0a':_0x47ef34[_0x156b45(0x107)](({location:_0x4b0fcc})=>_0x4b0fcc)['join']('\x0a')+'\x0a';_0x22a990[_0x156b45(0x104)]()['writeOut']?.(_0xa86558);}),_0x22a990;}async function m(_0x320245,_0x5dfbcf,_0x1e54ec){const _0x4da3b4=_0x3cab;switch(_0x5dfbcf[_0x4da3b4(0xe2)]){case _0x4da3b4(0x9c):if(b(_0x1e54ec,[_0x4da3b4(0x98),_0x4da3b4(0xcb),_0x4da3b4(0x10f),'region',_0x4da3b4(0xd0),_0x4da3b4(0xe6),_0x4da3b4(0xb5)],_0x4da3b4(0xef)),_0x1e54ec[_0x4da3b4(0x9c)]!==void 0x0&&_0x1e54ec['range']===void 0x0)throw new f(_0x4da3b4(0xae));return await _0x320245[_0x4da3b4(0xed)]({..._0x5dfbcf,..._0x1e54ec[_0x4da3b4(0xec)]===void 0x0?{}:{'target':{'kind':_0x4da3b4(0xea),'range':_0x1e54ec[_0x4da3b4(0xec)],..._0x1e54ec[_0x4da3b4(0x9c)]===void 0x0?{}:{'sheetName':_0x1e54ec[_0x4da3b4(0x9c)]}}}});case _0x4da3b4(0x9d):return b(_0x1e54ec,[_0x4da3b4(0x98),_0x4da3b4(0xcb),_0x4da3b4(0x10f),_0x4da3b4(0x9c),_0x4da3b4(0xec),_0x4da3b4(0x106),'elements',_0x4da3b4(0xe6),'scale'],_0x4da3b4(0xb2)),await _0x320245[_0x4da3b4(0xed)](_0x5dfbcf);case'slide':{if(b(_0x1e54ec,[_0x4da3b4(0x9c),_0x4da3b4(0xec),_0x4da3b4(0x106),'elements',_0x4da3b4(0xe6),'scale'],_0x4da3b4(0x90)),_0x1e54ec[_0x4da3b4(0x10f)]!==void 0x0&&_0x1e54ec[_0x4da3b4(0xcb)]!==!0x0)throw new f(_0x4da3b4(0xb8));let _0x5d2424=h(_0x1e54ec[_0x4da3b4(0x98)]),_0x34b14d=g(_0x1e54ec[_0x4da3b4(0x10f)]);return await _0x320245['capture']({..._0x5dfbcf,..._0x5d2424===void 0x0&&_0x1e54ec['contactSlide']!==!0x0?{}:{'target':{'kind':_0x4da3b4(0x9a),..._0x5d2424===void 0x0?{}:{'pages':_0x5d2424},..._0x1e54ec[_0x4da3b4(0xcb)]===!0x0?{'contactSheet':_0x34b14d===void 0x0?{}:{'tile':_0x34b14d}}:{}}}});}case _0x4da3b4(0x94):{b(_0x1e54ec,[_0x4da3b4(0x98),_0x4da3b4(0xcb),_0x4da3b4(0x10f),'sheet',_0x4da3b4(0xec)],_0x4da3b4(0xa5));let _0x3a369f=_(_0x1e54ec[_0x4da3b4(0xd0)]),_0x1ccd40=v(_0x1e54ec[_0x4da3b4(0x106)]),_0x2fadfa=y(_0x4da3b4(0xbb),_0x1e54ec[_0x4da3b4(0xe6)]),_0x5cd66e=y('--scale',_0x1e54ec[_0x4da3b4(0xb5)]);if(_0x3a369f!==void 0x0&&_0x1ccd40!==void 0x0)throw new f(_0x4da3b4(0xd8));if(_0x3a369f===void 0x0&&_0x1ccd40===void 0x0&&(_0x2fadfa!==void 0x0||_0x5cd66e!==void 0x0))throw new f(_0x4da3b4(0xc4));return await _0x320245[_0x4da3b4(0xed)]({..._0x5dfbcf,..._0x3a369f===void 0x0&&_0x1ccd40===void 0x0&&_0x2fadfa===void 0x0&&_0x5cd66e===void 0x0?{}:{'target':{'kind':_0x4da3b4(0xc7),..._0x3a369f===void 0x0?{}:{'elementIds':_0x3a369f},..._0x1ccd40===void 0x0?{}:{'region':_0x1ccd40},..._0x2fadfa===void 0x0?{}:{'padding':_0x2fadfa},..._0x5cd66e===void 0x0?{}:{'scale':_0x5cd66e}}}});}case'base':return b(_0x1e54ec,[_0x4da3b4(0x98),'contactSlide',_0x4da3b4(0x10f),_0x4da3b4(0x9c),_0x4da3b4(0xec),_0x4da3b4(0x106),_0x4da3b4(0xd0),_0x4da3b4(0xe6),_0x4da3b4(0xb5)],_0x4da3b4(0xc5)),await _0x320245['capture'](_0x5dfbcf);}}function h(_0x322300){const _0x21f66d=_0x3cab;if(_0x322300===void 0x0||_0x322300[_0x21f66d(0xfd)]()==='all')return;if(_0x322300['trim']()[_0x21f66d(0xf1)]===0x0)throw new f(_0x21f66d(0xd9));let _0x2f1179=[];for(let _0x1d3410 of _0x322300[_0x21f66d(0x99)](',')){let _0x42c900=_0x1d3410['trim']();if(_0x42c900[_0x21f66d(0xf1)]===0x0)throw new f(_0x21f66d(0x97));let _0x9d2fde=/^(\d+)(?:-(\d+))?$/['exec'](_0x42c900);if(_0x9d2fde===null){_0x2f1179[_0x21f66d(0xe5)](_0x42c900);continue;}let _0x52d72b=Number(_0x9d2fde[0x1]),_0x166b4d=Number(_0x9d2fde[0x2]??_0x9d2fde[0x1]);if(!Number[_0x21f66d(0x10d)](_0x52d72b)||!Number['isSafeInteger'](_0x166b4d)||_0x52d72b<0x1||_0x166b4d<_0x52d72b)throw new f('Invalid\x20--pages\x20range\x20'+JSON['stringify'](_0x1d3410[_0x21f66d(0xfd)]()));if(_0x166b4d-_0x52d72b+0x1>d)throw new f(_0x21f66d(0xa4)+d+_0x21f66d(0xb6));for(let _0x448cdc=_0x52d72b;_0x448cdc<=_0x166b4d;_0x448cdc+=0x1)_0x2f1179[_0x21f66d(0xe5)](_0x448cdc);if(_0x2f1179[_0x21f66d(0xf1)]>d)throw new f('--pages\x20cannot\x20expand\x20to\x20more\x20than\x20'+d+_0x21f66d(0xb6));}return[...new Set(_0x2f1179)];}function g(_0x32cb2e){const _0x56958c=_0x3cab;if(_0x32cb2e===void 0x0)return;let _0x13ec36=/^(\d+)x(\d+)$/iu[_0x56958c(0xcf)](_0x32cb2e[_0x56958c(0xfd)]()),_0x26fb64=Number(_0x13ec36?.[0x1]),_0x62f312=Number(_0x13ec36?.[0x2]);if(_0x13ec36===null||!Number[_0x56958c(0x10d)](_0x26fb64)||_0x26fb64<0x1||!Number['isSafeInteger'](_0x62f312)||_0x62f312<0x1)throw new f(_0x56958c(0xce)+JSON[_0x56958c(0xfa)](_0x32cb2e)+_0x56958c(0xe8));return{'columns':_0x26fb64,'rows':_0x62f312};}function _(_0x218739){const _0x4320e8=_0x3cab;if(_0x218739===void 0x0)return;let _0xf0e5=[...new Set(_0x218739[_0x4320e8(0x99)](',')[_0x4320e8(0x107)](_0x4610a4=>_0x4610a4[_0x4320e8(0xfd)]()))];if(_0xf0e5['some'](_0x1b0052=>_0x1b0052[_0x4320e8(0xf1)]===0x0))throw new f(_0x4320e8(0x92));return _0xf0e5;}function v(_0x3a2154){const _0x120db5=_0x3cab;if(_0x3a2154===void 0x0)return;let _0x44d231=_0x3a2154['split'](','),_0x3c378e=_0x44d231[_0x120db5(0x107)](Number);if(_0x44d231[_0x120db5(0xf1)]!==0x4||_0x44d231['some'](_0x50171d=>_0x50171d[_0x120db5(0xfd)]()[_0x120db5(0xf1)]===0x0)||_0x3c378e[_0x120db5(0xf1)]!==0x4||!_0x3c378e[_0x120db5(0xcc)](Number[_0x120db5(0xca)]))throw new f(_0x120db5(0x9b));let [_0x104b5a,_0x1503e1,_0x8b7956,_0x3d2167]=_0x3c378e;if(_0x8b7956<=0x0||_0x3d2167<=0x0)throw new f(_0x120db5(0x100));return{'left':_0x104b5a,'top':_0x1503e1,'width':_0x8b7956,'height':_0x3d2167};}function y(_0x32845b,_0x5e0ff0){const _0x119975=_0x3cab;if(_0x5e0ff0===void 0x0)return;if(_0x5e0ff0[_0x119975(0xfd)]()['length']===0x0)throw new f(_0x32845b+_0x119975(0xc8));let _0x2c7496=Number(_0x5e0ff0);if(!Number['isFinite'](_0x2c7496))throw new f(_0x32845b+_0x119975(0xc8));return _0x2c7496;}function b(_0x394bdb,_0x32ad59,_0x23d07b){const _0x53f08c=_0x3cab;for(let _0x1c9757 of _0x32ad59)if(_0x394bdb[_0x1c9757]!==void 0x0)throw new f('--'+_0x1c9757[_0x53f08c(0xc3)](/[A-Z]/gu,_0x1b1b49=>'-'+_0x1b1b49[_0x53f08c(0xaa)]())+_0x53f08c(0xd4)+_0x23d07b);}function x(_0x36a0be,_0x56616b){const _0x58fefc=_0x3cab;if(_0x56616b['length']!==_0x36a0be[_0x58fefc(0xf8)]['length'])throw Error(_0x58fefc(0xa3)+_0x56616b[_0x58fefc(0xf1)]+_0x58fefc(0xe3)+_0x36a0be[_0x58fefc(0xf8)][_0x58fefc(0xf1)]+_0x58fefc(0xcd));for(let _0x34f84b=0x0;_0x34f84b<_0x56616b['length'];_0x34f84b+=0x1)if(_0x56616b[_0x34f84b]?.[_0x58fefc(0xdf)]!==_0x36a0be[_0x58fefc(0xf8)][_0x34f84b]?.['name'])throw Error(_0x58fefc(0xd2)+(_0x34f84b+0x1)+_0x58fefc(0xdd));}function S(_0x302207,_0x33eef5){const _0x5ea854=_0x3cab;return{'ok':!0x0,'unitId':_0x302207[_0x5ea854(0x95)],'unitKind':_0x302207[_0x5ea854(0xe2)],'outputs':_0x302207[_0x5ea854(0xf8)][_0x5ea854(0x107)](({bytes:_0x3fc470,..._0x426b28},_0x5a3038)=>({..._0x426b28,'location':_0x33eef5[_0x5a3038][_0x5ea854(0x9f)]}))};}function C(_0x5bc8b5,_0x5523b2){const _0x23c503=_0x3cab;_0x5523b2 instanceof f&&_0x5bc8b5[_0x23c503(0x103)](_0x5523b2[_0x23c503(0xb9)],{'code':'screenshot.invalid-input','exitCode':0x1}),(_0x5523b2 instanceof _0x2c3bc8||w(_0x5523b2))&&_0x5bc8b5[_0x23c503(0x103)](_0x5523b2[_0x23c503(0x102)]+':\x20'+_0x5523b2[_0x23c503(0xb9)],{'code':'screenshot.failed','exitCode':0x1}),_0x5523b2 instanceof Error&&_0x5bc8b5[_0x23c503(0x103)](_0x5523b2[_0x23c503(0xb9)],{'code':'screenshot.failed','exitCode':0x1}),_0x5bc8b5['error'](_0x23c503(0x108),{'code':_0x23c503(0xf4),'exitCode':0x1});}function w(_0x23f1ac){const _0x47a08b=_0x3cab;return _0x23f1ac instanceof Error&&typeof _0x23f1ac[_0x47a08b(0x102)]==_0x47a08b(0xa9);}export{f as UnitScreenshotCommandInputError,p as createUnitScreenshotCommand,o as createUniverRenderBrowserSetupCommand};
|
|
1
|
+
(function(_0x53f16d,_0xeb52fd){const _0x135bf2=_0x7c57,_0x39e520=_0x53f16d();while(!![]){try{const _0x4ade63=-parseInt(_0x135bf2(0x16b))/0x1+-parseInt(_0x135bf2(0x18a))/0x2+-parseInt(_0x135bf2(0x122))/0x3*(parseInt(_0x135bf2(0x115))/0x4)+-parseInt(_0x135bf2(0x160))/0x5+parseInt(_0x135bf2(0x131))/0x6*(parseInt(_0x135bf2(0x10e))/0x7)+parseInt(_0x135bf2(0x10f))/0x8+parseInt(_0x135bf2(0x140))/0x9;if(_0x4ade63===_0xeb52fd)break;else _0x39e520['push'](_0x39e520['shift']());}catch(_0x47460c){_0x39e520['push'](_0x39e520['shift']());}}}(_0x2044,0xbd225));import{UnitScreenshotError as _0x4b3d5d}from'@univer-cli/unit-screenshot';import{Command as _0x5db5b8}from'commander';import{installUniverRenderBrowser as _0x4fa0eb,probeUniverRenderBrowser as _0xb6b791,resolveUniverRenderBrowser as _0x50f56b}from'@univer-cli/univer-render-runtime';var a={'install':async()=>await _0x4fa0eb(),'probe':async _0x28cef6=>await _0xb6b791(_0x28cef6),'resolve':async()=>await _0x50f56b()};function o(_0x10228e=a){const _0x316184=_0x7c57;let _0xba36a9=new _0x5db5b8(_0x316184(0x13d))[_0x316184(0x116)](_0x316184(0x16e))['option'](_0x316184(0x16a),_0x316184(0x139))[_0x316184(0x13e)](_0x316184(0x161),'write\x20the\x20setup\x20result\x20as\x20JSON');return _0xba36a9['action'](async _0x591def=>{const _0x3be2c4=_0x316184;l(_0xba36a9);let _0x412284={..._0xba36a9[_0x3be2c4(0x16f)](),..._0x591def},_0x1d95fd;try{_0x1d95fd=await s(_0x10228e,_0x412284[_0x3be2c4(0x14d)]===!0x0);}catch(_0x12e738){u(_0x12e738)&&_0xba36a9['error'](_0x12e738['code']+':\x20'+_0x12e738[_0x3be2c4(0x147)],{'code':'screenshot.setup-failed','exitCode':0x1}),_0xba36a9['error'](_0x12e738 instanceof Error?_0x12e738[_0x3be2c4(0x147)]:'Browser\x20setup\x20failed',{'code':_0x3be2c4(0x15d),'exitCode':0x1});}let _0x55258a=_0x412284[_0x3be2c4(0x130)]===!0x0?JSON[_0x3be2c4(0x154)]({'ok':!0x0,..._0x1d95fd},null,0x2)+'\x0a':c(_0x1d95fd);_0xba36a9[_0x3be2c4(0x178)]()[_0x3be2c4(0x13f)]?.(_0x55258a);}),_0xba36a9;}async function s(_0x5e1b1f,_0x45752d){const _0x23750c=_0x7c57;if(!_0x45752d){let _0x8016b4=await _0x5e1b1f[_0x23750c(0x113)]();if(_0x8016b4[_0x23750c(0x171)]===_0x23750c(0x152))return await _0x5e1b1f[_0x23750c(0x146)]({'executablePath':_0x8016b4[_0x23750c(0x143)]}),{'status':'resolved','executablePath':_0x8016b4[_0x23750c(0x143)],'source':_0x8016b4['source']};}let _0x1ad8e9=await _0x5e1b1f[_0x23750c(0x185)]();return await _0x5e1b1f[_0x23750c(0x146)]({'executablePath':_0x1ad8e9[_0x23750c(0x143)]}),{'status':'installed',..._0x1ad8e9};}function c(_0x118bb1){const _0x6498f2=_0x7c57;return _0x118bb1[_0x6498f2(0x171)]===_0x6498f2(0x14f)?[_0x6498f2(0x11c)+_0x118bb1[_0x6498f2(0x138)]+_0x6498f2(0x180)+_0x118bb1[_0x6498f2(0x143)],'run\x20`screenshot\x20setup\x20--force`\x20to\x20ensure\x20the\x20pinned\x20Chromium\x20build',''][_0x6498f2(0x165)]('\x0a'):[_0x118bb1[_0x6498f2(0x179)]?_0x6498f2(0x11a)+_0x118bb1[_0x6498f2(0x143)]:_0x6498f2(0x187)+_0x118bb1[_0x6498f2(0x143)],_0x6498f2(0x135)+_0x118bb1[_0x6498f2(0x114)],_0x6498f2(0x184)+_0x118bb1[_0x6498f2(0x166)],'']['join']('\x0a');}function l(_0x332f64){const _0x137e40=_0x7c57;_0x332f64[_0x137e40(0x17d)]!==null&&_0x332f64[_0x137e40(0x178)](_0x332f64['parent'][_0x137e40(0x178)]());}function u(_0x1cd9b){const _0x15c321=_0x7c57;return _0x1cd9b instanceof Error&&typeof _0x1cd9b[_0x15c321(0x11d)]==_0x15c321(0x13b);}var d=0x2710,f=class extends Error{constructor(_0x18bcde){const _0x44f6b9=_0x7c57;super(_0x18bcde),this[_0x44f6b9(0x118)]=_0x44f6b9(0x144);}};function p(_0x5dc3cb){const _0x34f9b0=_0x7c57;let _0x49c66e=new _0x5db5b8(_0x34f9b0(0x156))[_0x34f9b0(0x116)]('Render\x20a\x20Univer\x20Unit\x20as\x20PNG\x20images')[_0x34f9b0(0x13e)]('--unit\x20<unit-id>',_0x34f9b0(0x12b))[_0x34f9b0(0x13e)](_0x34f9b0(0x151),_0x34f9b0(0x14c))['option'](_0x34f9b0(0x111),_0x34f9b0(0x158))[_0x34f9b0(0x13e)]('--tile\x20<columns>x<rows>','Contact\x20slide\x20grid,\x20for\x20example\x204x2')[_0x34f9b0(0x13e)](_0x34f9b0(0x188),'Sheet\x20name\x20used\x20with\x20--range')[_0x34f9b0(0x13e)](_0x34f9b0(0x132),'Sheet\x20range,\x20for\x20example\x20B2:H40')['option'](_0x34f9b0(0x155),_0x34f9b0(0x177))[_0x34f9b0(0x13e)]('--elements\x20<ids>',_0x34f9b0(0x172))[_0x34f9b0(0x13e)](_0x34f9b0(0x169),'Board\x20content\x20padding')['option'](_0x34f9b0(0x183),_0x34f9b0(0x10d))[_0x34f9b0(0x13e)]('--out\x20<destination>','Opaque\x20output\x20destination\x20passed\x20to\x20the\x20writer')[_0x34f9b0(0x13e)](_0x34f9b0(0x161),_0x34f9b0(0x128));return _0x49c66e['addCommand'](o(_0x5dc3cb[_0x34f9b0(0x167)])),_0x49c66e['action'](async _0x582a92=>{const _0x57819d=_0x34f9b0;let _0x2d528e;try{let _0x19f595=await _0x5dc3cb[_0x57819d(0x14b)](_0x582a92[_0x57819d(0x181)]===void 0x0?{}:{'unitId':_0x582a92[_0x57819d(0x181)]});_0x2d528e=await m(_0x5dc3cb[_0x57819d(0x156)],_0x19f595,_0x582a92);}catch(_0x2f27a2){C(_0x49c66e,_0x2f27a2);}let _0x2cfc79;try{_0x2cfc79=await _0x5dc3cb[_0x57819d(0x121)]({'result':_0x2d528e,..._0x582a92['out']===void 0x0?{}:{'destination':_0x582a92[_0x57819d(0x153)]}}),x(_0x2d528e,_0x2cfc79);}catch(_0xd6fef2){C(_0x49c66e,_0xd6fef2);}let _0x10e163=_0x582a92[_0x57819d(0x130)]===!0x0?JSON['stringify'](S(_0x2d528e,_0x2cfc79),null,0x2)+'\x0a':_0x2cfc79['map'](({location:_0x4407a9})=>_0x4407a9)[_0x57819d(0x165)]('\x0a')+'\x0a';_0x49c66e['configureOutput']()[_0x57819d(0x13f)]?.(_0x10e163);}),_0x49c66e;}async function m(_0x27906f,_0x2f2c63,_0x12ea69){const _0x3310ed=_0x7c57;switch(_0x2f2c63[_0x3310ed(0x117)]){case'sheet':if(b(_0x12ea69,[_0x3310ed(0x168),_0x3310ed(0x17a),_0x3310ed(0x112),'region','elements',_0x3310ed(0x134),_0x3310ed(0x149)],_0x3310ed(0x141)),_0x12ea69[_0x3310ed(0x12c)]!==void 0x0&&_0x12ea69[_0x3310ed(0x12d)]===void 0x0)throw new f(_0x3310ed(0x15a));return await _0x27906f[_0x3310ed(0x11b)]({..._0x2f2c63,..._0x12ea69[_0x3310ed(0x12d)]===void 0x0?{}:{'target':{'kind':_0x3310ed(0x15e),'range':_0x12ea69[_0x3310ed(0x12d)],..._0x12ea69[_0x3310ed(0x12c)]===void 0x0?{}:{'sheetName':_0x12ea69[_0x3310ed(0x12c)]}}}});case _0x3310ed(0x174):return b(_0x12ea69,[_0x3310ed(0x168),_0x3310ed(0x17a),_0x3310ed(0x112),'sheet','range',_0x3310ed(0x173),_0x3310ed(0x145),_0x3310ed(0x134),_0x3310ed(0x149)],'Doc'),await _0x27906f[_0x3310ed(0x11b)](_0x2f2c63);case'slide':{if(b(_0x12ea69,[_0x3310ed(0x12c),_0x3310ed(0x12d),_0x3310ed(0x173),_0x3310ed(0x145),_0x3310ed(0x134),_0x3310ed(0x149)],_0x3310ed(0x162)),_0x12ea69['tile']!==void 0x0&&_0x12ea69[_0x3310ed(0x17a)]!==!0x0)throw new f(_0x3310ed(0x15b));let _0x1001f0=h(_0x12ea69[_0x3310ed(0x168)]),_0x346ff2=g(_0x12ea69[_0x3310ed(0x112)]);return await _0x27906f[_0x3310ed(0x11b)]({..._0x2f2c63,..._0x1001f0===void 0x0&&_0x12ea69['contactSlide']!==!0x0?{}:{'target':{'kind':_0x3310ed(0x142),..._0x1001f0===void 0x0?{}:{'pages':_0x1001f0},..._0x12ea69[_0x3310ed(0x17a)]===!0x0?{'contactSheet':_0x346ff2===void 0x0?{}:{'tile':_0x346ff2}}:{}}}});}case _0x3310ed(0x159):{b(_0x12ea69,['pages','contactSlide',_0x3310ed(0x112),_0x3310ed(0x12c),_0x3310ed(0x12d)],_0x3310ed(0x150));let _0x48d4ae=_(_0x12ea69['elements']),_0xc33587=v(_0x12ea69[_0x3310ed(0x173)]),_0x2ef4f3=y('--padding',_0x12ea69['padding']),_0xbf7df2=y(_0x3310ed(0x17b),_0x12ea69['scale']);if(_0x48d4ae!==void 0x0&&_0xc33587!==void 0x0)throw new f(_0x3310ed(0x13a));if(_0x48d4ae===void 0x0&&_0xc33587===void 0x0&&_0xbf7df2!==void 0x0)throw new f(_0x3310ed(0x189));return await _0x27906f[_0x3310ed(0x11b)]({..._0x2f2c63,..._0x48d4ae===void 0x0&&_0xc33587===void 0x0&&_0x2ef4f3===void 0x0&&_0xbf7df2===void 0x0?{}:{'target':{'kind':_0x3310ed(0x15f),..._0x48d4ae===void 0x0?{}:{'elementIds':_0x48d4ae},..._0xc33587===void 0x0?{}:{'region':_0xc33587},..._0x2ef4f3===void 0x0?{}:{'padding':_0x2ef4f3},..._0xbf7df2===void 0x0?{}:{'scale':_0xbf7df2}}}});}case _0x3310ed(0x126):return b(_0x12ea69,[_0x3310ed(0x168),_0x3310ed(0x17a),_0x3310ed(0x112),_0x3310ed(0x12c),_0x3310ed(0x12d),_0x3310ed(0x173),_0x3310ed(0x145),_0x3310ed(0x134),_0x3310ed(0x149)],_0x3310ed(0x182)),await _0x27906f[_0x3310ed(0x11b)](_0x2f2c63);}}function h(_0x1581d6){const _0x4f4f0d=_0x7c57;if(_0x1581d6===void 0x0||_0x1581d6[_0x4f4f0d(0x14e)]()==='all')return;if(_0x1581d6[_0x4f4f0d(0x14e)]()[_0x4f4f0d(0x15c)]===0x0)throw new f(_0x4f4f0d(0x12a));let _0x5b1925=[];for(let _0x25571d of _0x1581d6['split'](',')){let _0xd449c5=_0x25571d['trim']();if(_0xd449c5[_0x4f4f0d(0x15c)]===0x0)throw new f(_0x4f4f0d(0x17f));let _0x1b6bd9=/^(\d+)(?:-(\d+))?$/[_0x4f4f0d(0x125)](_0xd449c5);if(_0x1b6bd9===null){_0x5b1925[_0x4f4f0d(0x127)](_0xd449c5);continue;}let _0x3f3867=Number(_0x1b6bd9[0x1]),_0x45f950=Number(_0x1b6bd9[0x2]??_0x1b6bd9[0x1]);if(!Number['isSafeInteger'](_0x3f3867)||!Number[_0x4f4f0d(0x176)](_0x45f950)||_0x3f3867<0x1||_0x45f950<_0x3f3867)throw new f(_0x4f4f0d(0x133)+JSON['stringify'](_0x25571d['trim']()));if(_0x45f950-_0x3f3867+0x1>d)throw new f(_0x4f4f0d(0x120)+d+'\x20pages');for(let _0x311af9=_0x3f3867;_0x311af9<=_0x45f950;_0x311af9+=0x1)_0x5b1925['push'](_0x311af9);if(_0x5b1925[_0x4f4f0d(0x15c)]>d)throw new f(_0x4f4f0d(0x11e)+d+_0x4f4f0d(0x186));}return[...new Set(_0x5b1925)];}function g(_0x234e44){const _0x2627e5=_0x7c57;if(_0x234e44===void 0x0)return;let _0x38383e=/^(\d+)x(\d+)$/iu['exec'](_0x234e44[_0x2627e5(0x14e)]()),_0x4c7d18=Number(_0x38383e?.[0x1]),_0x46efb1=Number(_0x38383e?.[0x2]);if(_0x38383e===null||!Number[_0x2627e5(0x176)](_0x4c7d18)||_0x4c7d18<0x1||!Number['isSafeInteger'](_0x46efb1)||_0x46efb1<0x1)throw new f(_0x2627e5(0x11f)+JSON[_0x2627e5(0x154)](_0x234e44)+_0x2627e5(0x157));return{'columns':_0x4c7d18,'rows':_0x46efb1};}function _(_0x23e76f){const _0x586acf=_0x7c57;if(_0x23e76f===void 0x0)return;let _0x52e9bc=[...new Set(_0x23e76f[_0x586acf(0x119)](',')[_0x586acf(0x170)](_0x34b94a=>_0x34b94a[_0x586acf(0x14e)]()))];if(_0x52e9bc[_0x586acf(0x17c)](_0x2a9097=>_0x2a9097['length']===0x0))throw new f(_0x586acf(0x16d));return _0x52e9bc;}function _0x2044(){const _0x21d2ae=['Board\x20element\x20IDs\x20separated\x20by\x20commas','region','doc','Screenshot\x20failed','isSafeInteger','Board\x20region','configureOutput','alreadyInstalled','contactSlide','--scale','some','parent','isFinite','--pages\x20contains\x20an\x20empty\x20selector','):\x20','unit','Base','--scale\x20<factor>','cache:\x20','install','\x20pages','screenshot\x20browser\x20installed:\x20','--sheet\x20<name>','--scale\x20requires\x20--region\x20or\x20--elements','2364862kammiA','Board\x20selector\x20scale\x20between\x200.1\x20and\x204','7WgEtTd','7222424avaQAn','location','--contact-slide','tile','resolve','buildId','5763624OlwDhF','description','unitType','name','split','screenshot\x20browser\x20already\x20installed:\x20','capture','usable\x20browser\x20found\x20(','code','--pages\x20cannot\x20expand\x20to\x20more\x20than\x20','Invalid\x20--tile\x20','A\x20--pages\x20range\x20cannot\x20exceed\x20','writeImages','3SxYjSa','\x20must\x20be\x20a\x20finite\x20number','toLowerCase','exec','base','push','write\x20a\x20structured\x20output\x20summary\x20as\x20JSON','screenshot.invalid-input','--pages\x20cannot\x20be\x20empty','Unit\x20to\x20capture','sheet','range','Screenshot\x20writer\x20returned\x20','--region\x20must\x20contain\x20left,top,width,height\x20as\x20finite\x20numbers','json','5606184DpoXnZ','--range\x20<a1-range>','Invalid\x20--pages\x20range\x20','padding','build:\x20','screenshot.failed','\x20does\x20not\x20match\x20the\x20captured\x20image\x20name','source','skip\x20discovery\x20and\x20ensure\x20the\x20pinned\x20Chromium\x20build','--elements\x20and\x20--region\x20cannot\x20be\x20used\x20together','string','Screenshot\x20writer\x20output\x20','setup','option','writeOut','23360400tgxHoP','Sheet','slide-pages','executablePath','UnitScreenshotCommandInputError','elements','probe','message','unitId','scale','images','loadUnit','Slide\x20pages\x20or\x20page\x20IDs,\x20for\x20example\x201,3-5,cover','force','trim','resolved','Board','--pages\x20<pages>','found','out','stringify','--region\x20<left,top,width,height>','screenshot',';\x20expected\x20<columns>x<rows>','Slide\x20overview\x20containing\x20all\x20captured\x20pages','board','--sheet\x20requires\x20--range','--tile\x20requires\x20--contact-slide','length','screenshot.setup-failed','sheet-range','board-content','451885PKpkUf','--json','Slide','\x20is\x20not\x20supported\x20for\x20','replace','join','cacheDir','browserSetup','pages','--padding\x20<pixels>','--force','944360lFoaae','error','--elements\x20must\x20contain\x20non-empty\x20IDs','Resolve\x20or\x20install\x20the\x20browser\x20used\x20for\x20Univer\x20rendering','optsWithGlobals','map','status'];_0x2044=function(){return _0x21d2ae;};return _0x2044();}function v(_0x3c87b4){const _0x7a2775=_0x7c57;if(_0x3c87b4===void 0x0)return;let _0x539e14=_0x3c87b4[_0x7a2775(0x119)](','),_0x148b63=_0x539e14[_0x7a2775(0x170)](Number);if(_0x539e14[_0x7a2775(0x15c)]!==0x4||_0x539e14[_0x7a2775(0x17c)](_0x28bea2=>_0x28bea2[_0x7a2775(0x14e)]()[_0x7a2775(0x15c)]===0x0)||_0x148b63['length']!==0x4||!_0x148b63['every'](Number[_0x7a2775(0x17e)]))throw new f(_0x7a2775(0x12f));let [_0x3cf262,_0x4dc784,_0x1c678d,_0x38489e]=_0x148b63;if(_0x1c678d<=0x0||_0x38489e<=0x0)throw new f('--region\x20width\x20and\x20height\x20must\x20be\x20positive');return{'left':_0x3cf262,'top':_0x4dc784,'width':_0x1c678d,'height':_0x38489e};}function y(_0x41875c,_0x3f7616){const _0x43e560=_0x7c57;if(_0x3f7616===void 0x0)return;if(_0x3f7616[_0x43e560(0x14e)]()[_0x43e560(0x15c)]===0x0)throw new f(_0x41875c+_0x43e560(0x123));let _0x55d6ee=Number(_0x3f7616);if(!Number[_0x43e560(0x17e)](_0x55d6ee))throw new f(_0x41875c+'\x20must\x20be\x20a\x20finite\x20number');return _0x55d6ee;}function _0x7c57(_0x349ef3,_0x40ed77){_0x349ef3=_0x349ef3-0x10d;const _0x204475=_0x2044();let _0x7c571a=_0x204475[_0x349ef3];return _0x7c571a;}function b(_0x2addaa,_0x1cfc9f,_0x360373){const _0x22d2e1=_0x7c57;for(let _0x404f8b of _0x1cfc9f)if(_0x2addaa[_0x404f8b]!==void 0x0)throw new f('--'+_0x404f8b[_0x22d2e1(0x164)](/[A-Z]/gu,_0x5a0b8f=>'-'+_0x5a0b8f[_0x22d2e1(0x124)]())+_0x22d2e1(0x163)+_0x360373);}function x(_0x340969,_0x3ea2f5){const _0x4e2eb5=_0x7c57;if(_0x3ea2f5['length']!==_0x340969[_0x4e2eb5(0x14a)][_0x4e2eb5(0x15c)])throw Error(_0x4e2eb5(0x12e)+_0x3ea2f5[_0x4e2eb5(0x15c)]+'\x20outputs\x20for\x20'+_0x340969[_0x4e2eb5(0x14a)][_0x4e2eb5(0x15c)]+'\x20images');for(let _0x2876ad=0x0;_0x2876ad<_0x3ea2f5[_0x4e2eb5(0x15c)];_0x2876ad+=0x1)if(_0x3ea2f5[_0x2876ad]?.[_0x4e2eb5(0x118)]!==_0x340969['images'][_0x2876ad]?.['name'])throw Error(_0x4e2eb5(0x13c)+(_0x2876ad+0x1)+_0x4e2eb5(0x137));}function S(_0x530cf8,_0x586192){const _0x4f3293=_0x7c57;return{'ok':!0x0,'unitId':_0x530cf8[_0x4f3293(0x148)],'unitKind':_0x530cf8[_0x4f3293(0x117)],'outputs':_0x530cf8[_0x4f3293(0x14a)][_0x4f3293(0x170)](({bytes:_0x29cdef,..._0x2abc3d},_0x3cb81c)=>({..._0x2abc3d,'location':_0x586192[_0x3cb81c][_0x4f3293(0x110)]}))};}function C(_0x5e8c8b,_0x2062f9){const _0x38c495=_0x7c57;_0x2062f9 instanceof f&&_0x5e8c8b[_0x38c495(0x16c)](_0x2062f9[_0x38c495(0x147)],{'code':_0x38c495(0x129),'exitCode':0x1}),(_0x2062f9 instanceof _0x4b3d5d||w(_0x2062f9))&&_0x5e8c8b[_0x38c495(0x16c)](_0x2062f9[_0x38c495(0x11d)]+':\x20'+_0x2062f9[_0x38c495(0x147)],{'code':_0x38c495(0x136),'exitCode':0x1}),_0x2062f9 instanceof Error&&_0x5e8c8b[_0x38c495(0x16c)](_0x2062f9['message'],{'code':_0x38c495(0x136),'exitCode':0x1}),_0x5e8c8b['error'](_0x38c495(0x175),{'code':_0x38c495(0x136),'exitCode':0x1});}function w(_0xbb870b){const _0x130dc=_0x7c57;return _0xbb870b instanceof Error&&typeof _0xbb870b['code']==_0x130dc(0x13b);}export{f as UnitScreenshotCommandInputError,p as createUnitScreenshotCommand,o as createUniverRenderBrowserSetupCommand};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univer-cli/unit-screenshot-command",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.6.0",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"README.zh-CN.md"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@univer-cli/unit-screenshot": "1.
|
|
22
|
-
"@univer-cli/univer-render-runtime": "1.
|
|
21
|
+
"@univer-cli/unit-screenshot": "1.6.0",
|
|
22
|
+
"@univer-cli/univer-render-runtime": "1.6.0"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"commander": "^15.0.0"
|