mirror of
https://github.com/VladSez/easy-invoice-pdf
synced 2026-04-21 13:37:40 +00:00
* feat: add QR code functionality to invoice templates and enhance user experience * Introduced QR code generation for invoices, allowing users to include a QR code with customizable descriptions. * Updated invoice templates to display QR codes in both default and Stripe formats. * Enhanced form components to support QR code data input and visibility toggles. * Added utility functions for generating QR code data URLs. * Updated tests and snapshots to cover new QR code features and ensure visual consistency across templates. * Introduced a Code of Conduct document to promote a respectful community environment. * feat: enhance error handling and metadata management in invoice application * Updated error handling to reset invoice metadata to default upon error occurrence. * Refactored invoice client page to utilize a constant for default mobile tab value. * Improved metadata structure by including last visited mobile tab in the default metadata. * Adjusted schema to allow optional item name field for better flexibility in invoice items. * fix: downgrade react-pdf version and update mobile tab handling * Downgraded react-pdf from version 10.1.0 to 9.2.1 for compatibility. * Updated mobile tab handling to utilize the last visited tab from app metadata. * Refactored invoice client page to improve metadata management and ensure proper tab state persistence. * fix: remove redundant validation message for item name in invoice form * chore: update TODO list and comment out scroll to top effect in AppPageClient * Added a new issue link to the TODO.md for tracking. * Commented out the scroll to top effect in page.client.tsx for potential future use. * refactor: streamline viewport settings and restore scroll to top effect in AppPageClient * Simplified viewport configuration by removing unnecessary properties. * Restored the scroll to top effect in AppPageClient for improved user experience on initial render. * revert viewport * fix: prevent jumping on iOS when typing in textarea component * Added resize-none class to the textarea to improve user experience on iOS devices by preventing layout shifts while typing. * feat: reworked app logic, improved multi-page pdf layout, add/update e2e tests, improvements and bug fixes * Enhanced README.md with new features, including multi-page PDF support, QR code functionality, and live preview demos. * Added demo GIFs to showcase new features and improve user understanding. * Updated key features section for clarity and added a news & updates section for version tracking. * feat: add debounced error handling in invoice form component * Introduced a debounced callback for showing form errors to improve user experience by preventing rapid toast notifications. * Updated validation logic to utilize the new debounced error handling mechanism. * chore: update e2e snapshots and improved form errors toast * fix: improve PDF viewer and QR code layout in invoice templates * Added state management for page numbers in the mobile PDF viewer to handle multi-page documents. * Adjusted QR code positioning and size to prevent overlap with the fixed footer. * Updated padding in the Stripe template styles to resolve overlapping issues with the footer. * Updated TODO.md with additional context on preventing layout issues in PDF rendering. * feat: enhance invoice sharing logic with validation error handling * Added a new test to verify error toast visibility when the invoice form has validation errors. * Implemented state management for form validation errors in the AppPageClient. * Updated the InvoiceForm component to manage error states and trigger appropriate toasts for user feedback. * Ensured that the share button behavior reflects the form's validation state, improving user experience. * feat: enhance invoice template with authorized person fields * Added fields for Person Authorized to Receive and Person Authorized to Issue in the default invoice template. * Implemented visibility toggles for these fields in the invoice form. * Updated tests to verify the correct behavior of these fields in both default and Stripe invoice templates. * Enhanced PDF rendering to include names of authorized persons when applicable. * feat: implement cooldown for CTA toasts and update UI elements * Introduced a 5-minute cooldown for showing CTA toasts to enhance user experience. * Updated toast management logic in various components to respect the new cooldown. * Adjusted text color in the InvoiceClientPage for better visibility. * Refined tooltip content in the invoice form to clarify functionality. * Updated TODO.md to reflect changes in toast behavior. * feat: add unit column switch to stripe invoice template * Changed toggle labels from Show/hide to Show for various fields in the invoice forms and dialogs to enhance clarity. * Updated related test cases to reflect the new label changes across buyer, seller, and invoice templates. * Ensured consistency in user interface elements for better user experience. * chore: adjust text size * feat: update README and improve CTA toast logic * Replaced the EasyInvoicePDF logo with a new design and adjusted its size for better visibility. * Enhanced the call-to-action (CTA) toast functionality by refining the logic for showing toasts based on user interactions and session activity. * Updated text in the invoice form to clarify user actions and improve overall user experience. * Added a new logo image to the project assets. * update readme * refactor: improved mobile PDF viewer by importing the PDF worker directl, improve CTA toast logic, update readme * Renamed sections in README for clarity, including Live Preview to Invoice PDF Live Preview and Instant Download to Instant PDF Download. * Adjusted text in CTA toasts for better engagement. * Updated minimum time on page and interactions required for showing CTA toasts to enhance user experience. * Improved mobile PDF viewer by importing the PDF worker directly and addressing related issues in TODO.md. * fix: adjust CTA toast display timing for improved user experience * Updated the timeout for showing the CTA toast to 6 seconds after the invoice link notification, enhancing the visibility and timing of user prompts. * feat: Improved handling of invoice sharing logic to differentiate between mobile and desktop sharing methods, enhancing user experience. * Added a new command in package.json for running cloudflared tunnel. * Updated tests to verify the visibility of the share invoice link description toast. * Refined toast notifications in the AppPageClient to include new IDs for better tracking and user feedback. * Improved handling of invoice sharing logic to differentiate between mobile and desktop sharing methods, enhancing user experience. * feat: enhance toast notifications with unique IDs for better ux * fix: adjust invoice item limit in tests and update translations for total excluding tax * Reduced the maximum number of invoice items in the test from 20 to 15 to better align with URL limits. * Updated translations in the PDF i18n schema and related files to include total excluding tax in multiple languages. * Modified the invoice PDF template to display the total excluding tax using localized text. * fix qr code race condition * fix: update URL variable names and enhance sharing logic for better clarity * Renamed variables for generated URLs to improve code readability. * Updated sharing logic to ensure consistent use of the new variable names across mobile and desktop sharing methods. * Enhanced toast notifications to dismiss previous messages and track share events more effectively. * fix: update tax label helper message for clarity in invoice items * readme upd * fix: adjust idle time and minimum interactions for CTA toast display * Increased idle time from 3 seconds to 5 seconds to improve user engagement. * Updated minimum interactions required for showing the CTA toast from 2 to 3 to enhance user experience. * feat: implement cooldown logic for CTA toast display * Added functionality to track the last shown timestamp of the CTA toast using localStorage. * Introduced a 7-day cooldown period to prevent the toast from being shown multiple times within a week. * Updated context to reflect whether the CTA toast was shown recently, enhancing user experience. * chore: update dependencies and add GitHub workflows for linting and type checking * Updated package versions in package.json and pnpm-lock.yaml for better compatibility and performance. * Added GitHub Actions workflows for ESLint and TypeScript type checking to ensure code quality and consistency. * Enhanced buyer and seller management components with improved state management and type safety. * feat: enhance invoice sharing and download tracking * Added functionality to track the number of times invoices are shared via link and downloaded as PDF. * Updated the app metadata structure to include and . * Implemented logic to increment these counts upon sharing and downloading invoices, improving analytics and user engagement. * refactor: update README and TODO for clarity and consistency
124 lines
4.2 KiB
JSON
124 lines
4.2 KiB
JSON
{
|
|
"name": "pdf-invoice-generator",
|
|
"version": "1.0.1",
|
|
"private": true,
|
|
"packageManager": "pnpm@10.30.1+sha512.3590e550d5384caa39bd5c7c739f72270234b2f6059e13018f975c313b1eb9fefcc09714048765d4d9efe961382c312e624572c0420762bdc5d5940cdf9be73a",
|
|
"engines": {
|
|
"node": ">=20.0.0"
|
|
},
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"type-check": "tsc --noEmit --diagnostics",
|
|
"type-check:go": "npx tsgo --diagnostics",
|
|
"lint": "pnpm eslint . --cache",
|
|
"lint:fix": "pnpm eslint . --fix",
|
|
"prettify": "prettier --write --cache '**/*.{ts?(x),json,js,mjs,yml,yaml,md}'",
|
|
"knip": "knip",
|
|
"update-deps": "pnpm upgrade --interactive --latest -rLi --config.minimum-release-age=4320",
|
|
"vitest": "vitest --reporter=verbose",
|
|
"vitest:ui": "vitest --ui",
|
|
"e2e": "pnpm exec playwright test --reporter=list",
|
|
"e2e:ui": "pnpm exec playwright test --ui",
|
|
"e2e:not-flaky": "pnpm e2e --workers=2",
|
|
"e2e:update-snapshots": "pnpm e2e --update-snapshots",
|
|
"dedupe": "pnpm dedupe",
|
|
"lint-stage": "npx lint-staged --verbose",
|
|
"check-meta": "pnpx check-site-meta",
|
|
"dev:email": "email dev --dir src/emails",
|
|
"prepare": "husky",
|
|
"expose-to-internet": "pnpm dlx cloudflared tunnel --url http://localhost:3000",
|
|
"cloudflared:tunnel": "pnpm dlx cloudflared tunnel run easy-invoice-pdf-local-dev",
|
|
"corepack:enable": "corepack enable",
|
|
"corepack:prepare": "corepack prepare pnpm@latest"
|
|
},
|
|
"dependencies": {
|
|
"@hookform/resolvers": "3.9.0",
|
|
"@mdx-js/loader": "3.1.0",
|
|
"@mdx-js/react": "3.1.0",
|
|
"@microlink/react-json-view": "1.27.0",
|
|
"@next/mdx": "15.3.3",
|
|
"@radix-ui/react-accordion": "1.2.3",
|
|
"@radix-ui/react-alert-dialog": "1.1.6",
|
|
"@radix-ui/react-dialog": "1.1.6",
|
|
"@radix-ui/react-dropdown-menu": "2.1.6",
|
|
"@radix-ui/react-label": "2.1.2",
|
|
"@radix-ui/react-popover": "1.1.6",
|
|
"@radix-ui/react-separator": "1.1.2",
|
|
"@radix-ui/react-slot": "1.1.2",
|
|
"@radix-ui/react-switch": "1.1.3",
|
|
"@radix-ui/react-tabs": "1.1.3",
|
|
"@radix-ui/react-tooltip": "1.1.8",
|
|
"@react-email/components": "0.0.36",
|
|
"@react-email/tailwind": "1.0.4",
|
|
"@react-pdf/renderer": "4.3.0",
|
|
"@sentry/nextjs": "9.3.0",
|
|
"@t3-oss/env-nextjs": "0.13.4",
|
|
"@tailwindcss/typography": "0.5.16",
|
|
"@types/mdx": "2.0.13",
|
|
"@types/qrcode": "1.5.6",
|
|
"@types/ua-parser-js": "0.7.39",
|
|
"@upstash/ratelimit": "2.0.5",
|
|
"@upstash/redis": "1.34.6",
|
|
"@vercel/speed-insights": "1.2.0",
|
|
"class-variance-authority": "0.7.1",
|
|
"clsx": "2.1.1",
|
|
"cmdk": "1.0.0",
|
|
"dayjs": "1.11.13",
|
|
"eslint-plugin-react-hooks": "5.2.0",
|
|
"file-saver": "2.0.5",
|
|
"googleapis": "148.0.0",
|
|
"jiti": "2.4.2",
|
|
"jszip": "3.10.1",
|
|
"lucide-react": "0.477.0",
|
|
"lz-string": "1.5.0",
|
|
"n2words": "1.21.0",
|
|
"next": "14.2.15",
|
|
"next-intl": "4.0.2",
|
|
"qrcode": "1.5.4",
|
|
"react": "18.3.1",
|
|
"react-dom": "18.3.1",
|
|
"react-hook-form": "7.53.1",
|
|
"react-intersection-observer": "9.16.0",
|
|
"react-pdf": "9.2.1",
|
|
"remark-gfm": "4.0.1",
|
|
"resend": "4.2.0",
|
|
"sonner": "1.7.4",
|
|
"tailwind-merge": "2.6.0",
|
|
"tailwindcss-animate": "1.0.7",
|
|
"ua-parser-js": "2.0.3",
|
|
"use-debounce": "10.0.4",
|
|
"zod": "3.24.4"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/eslintrc": "3.3.1",
|
|
"@next/eslint-plugin-next": "15.2.3",
|
|
"@playwright/test": "1.56.1",
|
|
"@types/file-saver": "2.0.7",
|
|
"@types/node": "22.8.1",
|
|
"@types/react": "18.3.12",
|
|
"@types/react-dom": "18.3.1",
|
|
"@typescript/native-preview": "7.0.0-dev.20260217.1",
|
|
"autoprefixer": "10.4.21",
|
|
"dotenv": "17.2.3",
|
|
"eslint": "9.33.0",
|
|
"eslint-config-next": "15.2.3",
|
|
"eslint-plugin-playwright": "2.2.0",
|
|
"eslint-plugin-react-you-might-not-need-an-effect": "0.0.39",
|
|
"husky": "9.1.7",
|
|
"knip": "5.55.1",
|
|
"lint-staged": "15.5.0",
|
|
"postcss": "^8",
|
|
"prettier": "3.5.3",
|
|
"prettier-plugin-tailwindcss": "0.6.11",
|
|
"react-email": "4.0.4",
|
|
"react-scan": "0.3.4",
|
|
"schema-dts": "1.1.5",
|
|
"shadcn": "3.2.1",
|
|
"tailwindcss": "3.4.14",
|
|
"typescript": "5.9.3",
|
|
"typescript-eslint": "8.56.0",
|
|
"vitest": "3.2.4"
|
|
}
|
|
}
|