Files
Voiced/package.json
T
xavierk f7a1302e94 Fix header overlap in invoice PDF and Bongbetic wordmark on light theme
react-pdf wraps text once at the first flex measure; when yoga then shrank
the vendor column the cached lines ran under the INVOICE meta column. The
header now pins column widths (299 + 24 + 192 pt), sizes the logo from its
own aspect (stacked above the text when it would leave under 160 pt), uses
absolute per-Text line heights, and turns hyphenation off.

Also: repeating table header with an orphan-header guard, wrap=false rows,
Page n of N footer, GSTIN printed only when present, one Text per address
line, HTML twin header grid. The light-theme header showed the white-text
wordmark; the ternary was inverted.

Adds vitest + pdfjs-dist harness that fails on the old document (address
overlaps Invoice No.) and passes on the new one.
2026-10-04 03:57:47 +05:30

47 lines
1.3 KiB
JSON

{
"name": "voiced",
"private": true,
"version": "0.1.0",
"description": "Voiced — offline invoicing desktop app by Bongbetic",
"type": "module",
"author": "Bongbetic",
"scripts": {
"dev": "vite",
"build": "tsc --noEmit && vite build",
"preview": "vite preview",
"test": "vitest run",
"tauri": "tauri",
"app:dev": "tauri dev",
"app:build": "tauri build --features custom-protocol",
"app:build:windows": "tauri build --runner cargo-xwin --target x86_64-pc-windows-msvc --features custom-protocol"
},
"dependencies": {
"@carbon/icons-react": "^11.89.0",
"@carbon/react": "^1.117.0",
"@carbon/styles": "^1.116.0",
"@ibm/plex": "^6.4.1",
"@react-pdf/renderer": "^4.9.0",
"@tauri-apps/api": "^2.12.1",
"@tauri-apps/plugin-dialog": "^2.8.1",
"@tauri-apps/plugin-opener": "^2.7.0",
"react": "^19.3.0",
"react-dom": "^19.3.0",
"react-is": "^19.3.0"
},
"devDependencies": {
"@tauri-apps/cli": "^2.12.1",
"@types/node": "^26.6.4",
"@types/react": "^19.2.0",
"@types/react-dom": "^19.2.0",
"@vitejs/plugin-react": "^5.2.0",
"pdfjs-dist": "6.4.299",
"sass": "^1.105.1",
"typescript": "^5.9.3",
"vite": "^7.3.6",
"vitest": "^5.0.3"
},
"optionalDependencies": {
"@napi-rs/canvas": "^1.0.10"
}
}