@gtchakama/wa-tui 1.6.0 → 1.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gtchakama/wa-tui",
3
- "version": "1.6.0",
3
+ "version": "1.7.0",
4
4
  "description": "Terminal UI for WhatsApp Web (blessed + whatsapp-web.js)",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -40,6 +40,7 @@
40
40
  },
41
41
  "homepage": "https://github.com/gtchakama/wa-tui#readme",
42
42
  "dependencies": {
43
+ "@puppeteer/browsers": "^2.13.0",
43
44
  "chromium-bidi": "^15.0.0",
44
45
  "neo-blessed": "^0.2.0",
45
46
  "puppeteer-core": "^24.40.0",
@@ -1640,8 +1640,8 @@ function syncQrLayout() {
1640
1640
  layout.qrPaneBody.width = layout.qrPane._inner.width;
1641
1641
  layout.qrPaneBody.height = layout.qrPane._inner.height;
1642
1642
  if (layout.qrBox) {
1643
- layout.qrBox.top = Math.max(1, Math.floor((layout.qrPaneBody.height - layout.qrBox.height) / 2));
1644
- layout.qrBox.left = Math.max(1, Math.floor((layout.qrPaneBody.width - layout.qrBox.width) / 2));
1643
+ layout.qrBox.width = layout.qrPaneBody.width;
1644
+ layout.qrBox.height = layout.qrPaneBody.height;
1645
1645
  }
1646
1646
  }
1647
1647
 
@@ -1686,16 +1686,14 @@ function ensureQrLayout() {
1686
1686
  parent: layout.qrPaneBody,
1687
1687
  top: 0,
1688
1688
  left: 0,
1689
- width: 42,
1690
- height: 18,
1691
- border: 'line',
1689
+ width: '100%',
1690
+ height: '100%',
1692
1691
  tags: true,
1693
1692
  align: 'center',
1694
1693
  valign: 'middle',
1695
1694
  transparent: true,
1696
1695
  style: {
1697
- fg: theme.fg,
1698
- border: { fg: theme.fgDim }
1696
+ fg: theme.fg
1699
1697
  }
1700
1698
  });
1701
1699
 
@@ -1,7 +1,6 @@
1
1
  const fs = require('fs');
2
2
  const path = require('path');
3
3
  const os = require('os');
4
- const { install, detectBrowserPlatform, Browser } = require('@puppeteer/browsers');
5
4
  const {
6
5
  Client,
7
6
  LocalAuth,
@@ -56,6 +55,7 @@ function cleanStaleChromeCache() {
56
55
  */
57
56
  async function installBrowser(onProgress) {
58
57
  cleanStaleChromeCache();
58
+ const { install, detectBrowserPlatform, Browser } = require('@puppeteer/browsers');
59
59
  const { PUPPETEER_REVISIONS } = require('puppeteer-core/lib/cjs/puppeteer/revisions.js');
60
60
  const cacheDir = path.join(os.homedir(), '.cache', 'puppeteer');
61
61
  await install({