Free & Open-Source Invoice Generator - No Sign-Up, No Ads, Instant PDF Export, 100% In-Browser, and Fully Customizable Templates.
TypeScript fintechinvoiceinvoice-generatorinvoice-pdfinvoice-templateinvoicesnextjsopen-sourcequotesreactreact-pdf-rendererself-hostedshadcn-uitailwindcsstypescript
fix: delete invoice item flow (#180)
Vlad Sazonau88860d0e40a1
diff --git a/e2e/invoice-form.test.ts b/e2e/invoice-form.test.tsindex 74ade89..8777a9d 100644--- a/e2e/invoice-form.test.ts+++ b/e2e/invoice-form.test.ts@@ -547,7 +547,9 @@ test.describe("Invoice Generator Page", () => {).toBeVisible();});- test("can add and remove invoice items", async ({ page }) => {+ test("can add and remove invoice items and recalculates totals correctly", async ({+ page,+ }) => {const invoiceItemsSection = page.getByTestId(`invoice-items-section`);// Add new invoice item@@ -566,62 +568,166 @@ test.describe("Invoice Generator Page", () => {await itemNameInput.fill("TEST INVOICE ITEM");await expect(itemNameInput).toHaveValue("TEST INVOICE ITEM");- // Set up dialog handler before triggering the action- page.on("dialog", async (dialog) => {- expect(dialog.message()).toBe(- "Are you sure you want to delete invoice item #2?",- );- await dialog.accept();- });+ const finalSection = page.getByTestId(`final-section`);++ // Fill in net price for Item 1 (5000)+ await invoiceItemsSection+ .getByRole("spinbutton", {+ name: "Net Price (Rate or Unit Price)",+ exact: true,+ })+ .nth(0)+ .fill("5000");++ // Verify total reflects Item 1 only (1 * 5000 = 5000, vat is "NP")+ await expect(+ finalSection.getByRole("textbox", { name: "Total", exact: true }),+ ).toHaveValue("5,000.00");++ // Fill in amount and net price for Item 2 (3 * 10000 = 30000)+ await invoiceItemsSection+ .getByRole("spinbutton", { name: "Amount (Quantity)", exact: true })+ .nth(1)+ .fill("3");+ await invoiceItemsSection+ .getByRole("spinbutton", {+ name: "Net Price (Rate or Unit Price)",+ exact: true,+ })+ .nth(1)+ .fill("10000");- // Remove the added item+ // Verify total is updated (5000 + 3*10000 = 35000, vat is "NP" so no tax)+ await expect(+ finalSection.getByRole("textbox", { name: "Total", exact: true }),+ ).toHaveValue("35,000.00");++ // Click delete button to open confirmation dialogawait invoiceItemsSection.getByRole("button", { name: "Delete Invoice Item 2" }).click();+ // Verify confirmation dialog appears+ await expect(page.getByRole("alertdialog")).toBeVisible();+ await expect(+ page.getByText('Are you sure you want to delete the invoice item "#2"?'),+ ).toBeVisible();++ // Confirm deletion+ await page.getByRole("button", { name: "Delete" }).click();++ // Verify item is removedawait expect(invoiceItemsSection.getByText("Item 2", { exact: true }),).toBeHidden();++ // Verify total reverts to Item 1 only after deletion (5000)+ await expect(+ finalSection.getByRole("textbox", { name: "Total", exact: true }),+ ).toHaveValue("5,000.00");});test("calculates totals correctly", async ({ page }) => {const invoiceItemsSection = page.getByTestId(`invoice-items-section`);+ const finalSection = page.getByTestId(`final-section`);- // Fill in item details+ // Item 1: qty=2, price=500, VAT=23% → net=1000, vat=230await invoiceItemsSection.getByRole("spinbutton", { name: "Amount (Quantity)", exact: true })+ .nth(0).fill("2");await invoiceItemsSection.getByRole("spinbutton", {name: "Net Price (Rate or Unit Price)",exact: true,})- .fill("100");+ .nth(0)+ .fill("500");await invoiceItemsSection.getByRole("textbox", { name: "VAT Rate", exact: true })+ .nth(0).fill("23");- // Check calculated valuesawait expect(- invoiceItemsSection.getByRole("textbox", {- name: "Net Amount",+ invoiceItemsSection+ .getByRole("textbox", { name: "Net Amount", exact: true })+ .nth(0),+ ).toHaveValue("1,000.00");+ await expect(+ invoiceItemsSection+ .getByRole("textbox", { name: "VAT Amount", exact: true })+ .nth(0),+ ).toHaveValue("230.00");++ // Add Item 2: qty=5, price=1000, VAT=NP → net=5000, vat=0+ await invoiceItemsSection+ .getByRole("button", { name: "Add invoice item" })+ .click();+ await expect(+ invoiceItemsSection.getByText("Item 2", { exact: true }),+ ).toBeVisible();++ await invoiceItemsSection+ .getByRole("spinbutton", { name: "Amount (Quantity)", exact: true })+ .nth(1)+ .fill("5");+ await invoiceItemsSection+ .getByRole("spinbutton", {+ name: "Net Price (Rate or Unit Price)",exact: true,- }),- ).toHaveValue("200.00");+ })+ .nth(1)+ .fill("1000");+await expect(- invoiceItemsSection.getByRole("textbox", {- name: "VAT Amount",+ invoiceItemsSection+ .getByRole("textbox", { name: "Net Amount", exact: true })+ .nth(1),+ ).toHaveValue("5,000.00");+ await expect(+ invoiceItemsSection+ .getByRole("textbox", { name: "VAT Amount", exact: true })+ .nth(1),+ ).toHaveValue("0.00");++ // Add Item 3: qty=1, price=10000, VAT=10% → net=10000, vat=1000+ await invoiceItemsSection+ .getByRole("button", { name: "Add invoice item" })+ .click();+ await expect(+ invoiceItemsSection.getByText("Item 3", { exact: true }),+ ).toBeVisible();++ await invoiceItemsSection+ .getByRole("spinbutton", {+ name: "Net Price (Rate or Unit Price)",exact: true,- }),- ).toHaveValue("46.00");+ })+ .nth(2)+ .fill("10000");+ await invoiceItemsSection+ .getByRole("textbox", { name: "VAT Rate", exact: true })+ .nth(2)+ .fill("10");- const finalSection = page.getByTestId(`final-section`);+ await expect(+ invoiceItemsSection+ .getByRole("textbox", { name: "Net Amount", exact: true })+ .nth(2),+ ).toHaveValue("10,000.00");+ await expect(+ invoiceItemsSection+ .getByRole("textbox", { name: "VAT Amount", exact: true })+ .nth(2),+ ).toHaveValue("1,000.00");++ // Grand total = 1230 + 5000 + 11000 = 17,230.00await expect(finalSection.getByRole("textbox", {name: "Total",exact: true,}),- ).toHaveValue("246.00");+ ).toHaveValue("17,230.00");});test("handles form validation", async ({ page }) => {diff --git a/knip.ts b/knip.tsindex d2e80fb..09b42db 100644--- a/knip.ts+++ b/knip.ts@@ -3,6 +3,7 @@ import type { KnipConfig } from "knip";// https://knip.dev/reference/configuration#_topconst config: KnipConfig = {ignoreDependencies: [+ "shadcn","@radix-ui/react-separator","@types/ua-parser-js","cmdk",@@ -13,19 +14,18 @@ const config: KnipConfig = {"@types/file-saver","eslint-config-next","@ianvs/prettier-plugin-sort-imports",- "react-email","react-scan",+ "pdfjs-dist",],ignore: [- "lint-staged.config.js","src/app/**/invoice-pdf-download-multiple-languages.tsx","src/components/ui/**/*.tsx","global.ts",- "i18n-messages/**/*","src/i18n/**/*","src/app/schema/**/*","src/**/dev/**/*","src/app/changelog/content/**/*",+ "src/app/(app)/pdf-i18n-translations/pdf-translations.ts",],includeEntryExports: true,// ignore tagsdiff --git a/lint-staged.config.js b/lint-staged.config.jsindex 9c91b4e..a8c267a 100644--- a/lint-staged.config.js+++ b/lint-staged.config.js@@ -4,7 +4,7 @@ module.exports = {"*": () => [`pnpm run type-check:go`,`pnpm run lint`,- // `pnpm run knip`, // TODO: temporarily disabled due to issues with knip+ `pnpm run knip`,`pnpm run prettify --write`,],};diff --git a/package.json b/package.jsonindex 510c6e7..d34b86c 100644--- a/package.json+++ b/package.json@@ -37,7 +37,6 @@"@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",@@ -50,8 +49,6 @@"@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",@@ -107,7 +104,7 @@"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",+ "knip": "5.85.0","lint-staged": "15.5.0","postcss": "^8","prettier": "3.5.3",diff --git a/playwright.config.ts b/playwright.config.tsindex b0d8353..f37bae9 100644--- a/playwright.config.ts+++ b/playwright.config.ts@@ -33,7 +33,7 @@ export default defineConfig({workers: process.env.CI ? 1 : undefined, // IMPORTANT: if tests are flaky locally, make `workers: 1` or `workers: 2`/* timeout for expect assertions */expect: {- timeout: isLocal ? 10_000 : 25_000,+ timeout: isLocal ? 15_000 : 25_000,},// /* timeout for test execution */diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 86e49d5..257617e 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -17,9 +17,6 @@ importers:'@mdx-js/react':specifier: 3.1.0version: 3.1.0(@types/[email protected])([email protected])- '@microlink/react-json-view':- specifier: 1.27.0- version: 1.27.0(@types/[email protected])([email protected]([email protected]))([email protected])'@next/mdx':specifier: 15.3.3version: 15.3.3(@mdx-js/[email protected]([email protected])([email protected]))(@mdx-js/[email protected](@types/[email protected])([email protected]))@@ -56,12 +53,6 @@ importers:'@radix-ui/react-tooltip':specifier: 1.1.8version: 1.1.8(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])- '@react-email/components':- specifier: 0.0.36- '@react-email/tailwind':- specifier: 1.0.4- version: 1.0.4([email protected])'@react-pdf/renderer':specifier: 4.3.0version: 4.3.0([email protected])@@ -223,8 +214,8 @@ importers:specifier: 9.1.7version: 9.1.7knip:- specifier: 5.55.1- version: 5.55.1(@types/[email protected])([email protected])+ specifier: 5.85.0+ version: 5.85.0(@types/[email protected])([email protected])lint-staged:specifier: 15.5.0version: 15.5.0@@ -494,12 +485,21 @@ packages:'@emnapi/[email protected]':resolution: {integrity: sha512-XsLw1dEOpkSX/WucdqUhPWP7hDxSvZiY+fsUC14h+FtQ2Ifni4znbBt8punRX+Uj2JG/uDb8nEHVKvrVlvdZ5Q==}+ '@emnapi/[email protected]':+ resolution: {integrity: sha512-AvT9QFpxK0Zd8J0jopedNm+w/2fIzvtPKPjqyw9jwvBaReTTqPBk9Hixaz7KbjimP+QNz605/XnjFcDAL2pqBg==}+'@emnapi/[email protected]':resolution: {integrity: sha512-++LApOtY0pEEz1zrd9vy1/zXVaVJJ/EbAF3u0fXIzPJEDtnITsBGbbK0EkM72amhl/R5b+5xx0Y/QhcVOpuulg==}+ '@emnapi/[email protected]':+ resolution: {integrity: sha512-mehfKSMWjjNol8659Z8KxEMrdSJDDot5SXMq00dM8BN4o+CLNXQ0xH2V7EchNHV4RmbZLmmPdEaXZc5H2FXmDg==}+'@emnapi/[email protected]':resolution: {integrity: sha512-PJR+bOmMOPH8AtcTGAyYNiuJ3/Fcoj2XN/gBEWzDIKh254XO+mM9XoXHk5GNEhodxeMznbg7BlRojVbKN+gC6g==}+ '@emnapi/[email protected]':+ resolution: {integrity: sha512-WI0DdZ8xFSbgMjR1sFsKABJ/C5OnRrjT06JXbZKexJGrDuPTzZdDYfFlsgcCXCyf+suG5QU2e/y1Wo2V/OapLQ==}+'@esbuild/[email protected]':resolution: {integrity: sha512-O7vun9Sf8DFjH2UtqK8Ku3LkquL9SZL8OLY1T5NZkA34+wG3OQF7cl4Ql8vdNzM6fzBbYfLaiRLIOZ+2FOCgBQ==}engines: {node: '>=18'}@@ -949,13 +949,6 @@ packages:'@types/react': '>=16'react: '>=16'- '@microlink/[email protected]':- resolution: {integrity: sha512-/IwWmMuRR2edvxrRYRBJzjyi4vGvIn/ltM8wqesz+HLZsoGKIUgwiwEkblOLZqXj8BGWmeRnyAdCqf0uACqRFw==}- engines: {node: '>=17'}- peerDependencies:- react: '>= 15'- react-dom: '>= 15'-'@modelcontextprotocol/[email protected]':resolution: {integrity: sha512-QakrKIGniGuRVfWBdMsDea/dx1PNE739QJ7gCM41s9q+qaCYTHCdsIBXQVVXry3mfWAiaM9kT22Hyz53Uw8mfg==}engines: {node: '>=18'}@@ -967,6 +960,9 @@ packages:'@napi-rs/[email protected]':resolution: {integrity: sha512-ZVWUcfwY4E/yPitQJl481FjFo3K22D6qF0DuFH6Y/nbnE11GY5uguDxZMGXPQ8WQ0128MXQD7TnfHyK4oWoIJQ==}+ '@napi-rs/[email protected]':+ resolution: {integrity: sha512-p64ah1M1ld8xjWv3qbvFwHiFVWrq1yFvV4f7w+mzaqiR4IlSgkqhcRdHwsGgomwzBH51sRY4NEowLxnaBjcW/A==}+'@next/[email protected]':resolution: {integrity: sha512-S1qaj25Wru2dUpcIZMjxeMVSwkt8BK4dmWHHiBuRstcIyOsMapqT4A4jSB6onvqeygkSSmOkyny9VVx8JIGamQ==}@@ -1328,6 +1324,114 @@ packages:peerDependencies:'@opentelemetry/api': ^1.1.0+ '@oxc-resolver/[email protected]':+ resolution: {integrity: sha512-aUs47y+xyXHUKlbhqHUjBABjvycq6YSD7bpxSW7vplUmdzAlJ93yXY6ZR0c1o1x5A/QKbENCvs3+NlY8IpIVzg==}+ cpu: [arm]+ os: [android]++ '@oxc-resolver/[email protected]':+ resolution: {integrity: sha512-oolbkRX+m7Pq2LNjr/kKgYeC7bRDMVTWPgxBGMjSpZi/+UskVo4jsMU3MLheZV55jL6c3rNelPl4oD60ggYmqA==}+ cpu: [arm64]+ os: [android]++ '@oxc-resolver/[email protected]':+ resolution: {integrity: sha512-nUC6d2i3R5B12sUW4O646qD5cnMXf2oBGPLIIeaRfU9doJRORAbE2SGv4eW6rMqhD+G7nf2Y8TTJTLiiO3Q/dQ==}+ cpu: [arm64]+ os: [darwin]++ '@oxc-resolver/[email protected]':+ resolution: {integrity: sha512-cV50vE5+uAgNcFa3QY1JOeKDSkM/9ReIcc/9wn4TavhW/itkDGrXhw9jaKnkQnGbjJ198Yh5nbX/Gr2mr4Z5jQ==}+ cpu: [x64]+ os: [darwin]++ '@oxc-resolver/[email protected]':+ resolution: {integrity: sha512-xZOQiYGFxtk48PBKff+Zwoym7ScPAIVp4c14lfLxizO2LTTTJe5sx9vQNGrBymrf/vatSPNMD4FgsaaRigPkqw==}+ cpu: [x64]+ os: [freebsd]++ '@oxc-resolver/[email protected]':+ resolution: {integrity: sha512-lXZYWAC6kaGe/ky2su94e9jN9t6M0/6c+GrSlCqL//XO1cxi5lpAhnJYdyrKfm0ZEr/c7RNyAx3P7FSBcBd5+A==}+ cpu: [arm]+ os: [linux]++ '@oxc-resolver/[email protected]':+ resolution: {integrity: sha512-veG1kKsuK5+t2IsO9q0DErYVSw2azvCVvWHnfTOS73WE0STdLLB7Q1bB9WR+yHPQM76ASkFyRbogWo1GR1+WbQ==}+ cpu: [arm]+ os: [linux]++ '@oxc-resolver/[email protected]':+ resolution: {integrity: sha512-heV2+jmXyYnUrpUXSPugqWDRpnsQcDm2AX4wzTuvgdlZfoNYO0O3W2AVpJYaDn9AG4JdM6Kxom8+foE7/BcSig==}+ cpu: [arm64]+ os: [linux]+ libc: [glibc]++ '@oxc-resolver/[email protected]':+ resolution: {integrity: sha512-jvo2Pjs1c9KPxMuMPIeQsgu0mOJF9rEb3y3TdpsrqwxRM+AN6/nDDwv45n5ZrUnQMsdBy5gIabioMKnQfWo9ew==}+ cpu: [arm64]+ os: [linux]+ libc: [musl]++ '@oxc-resolver/[email protected]':+ resolution: {integrity: sha512-vLmdNxWCdN7Uo5suays6A/+ywBby2PWBBPXctWPg5V0+eVuzsJxgAn6MMB4mPlshskYbppjpN2Zg83ArHze9gQ==}+ cpu: [ppc64]+ os: [linux]+ libc: [glibc]++ '@oxc-resolver/[email protected]':+ resolution: {integrity: sha512-/b+WgR+VTSBxzgOhDO7TlMXC1ufPIMR6Vj1zN+/x+MnyXGW7prTLzU9eW85Aj7Th7CCEG9ArCbTeqxCzFWdg2w==}+ cpu: [riscv64]+ os: [linux]+ libc: [glibc]++ '@oxc-resolver/[email protected]':+ resolution: {integrity: sha512-YlRdeWb9j42p29ROh+h4eg/OQ3dTJlpHSa+84pUM9+p6i3djtPz1q55yLJhgW9XfDch7FN1pQ/Vd6YP+xfRIuw==}+ cpu: [riscv64]+ os: [linux]+ libc: [musl]++ '@oxc-resolver/[email protected]':+ resolution: {integrity: sha512-EDpafVOQWF8/MJynsjOGFThcqhRHy417sRyLfQmeiamJ8qVhSKAn2Dn2VVKUGCjVB9C46VGjhNo7nOPUi1x6uA==}+ cpu: [s390x]+ os: [linux]+ libc: [glibc]++ '@oxc-resolver/[email protected]':+ resolution: {integrity: sha512-NxjZe+rqWhr+RT8/Ik+5ptA3oz7tUw361Wa5RWQXKnfqwSSHdHyrw6IdcTfYuml9dM856AlKWZIUXDmA9kkiBQ==}+ cpu: [x64]+ os: [linux]+ libc: [glibc]++ '@oxc-resolver/[email protected]':+ resolution: {integrity: sha512-cM/hQwsO3ReJg5kR+SpI69DMfvNCp+A/eVR4b4YClE5bVZwz8rh2Nh05InhwI5HR/9cArbEkzMjcKgTHS6UaNw==}+ cpu: [x64]+ os: [linux]+ libc: [musl]++ '@oxc-resolver/[email protected]':+ resolution: {integrity: sha512-QF080IowFB0+9Rh6RcD19bdgh49BpQHUW5TajG1qvWHvmrQznTZZjYlgE2ltLXyKY+qs4F/v5xuX1XS7Is+3qA==}+ cpu: [arm64]+ os: [openharmony]++ '@oxc-resolver/[email protected]':+ resolution: {integrity: sha512-w8UCKhX826cP/ZLokXDS6+milN8y4X7zidsAttEdWlVoamTNf6lhBJldaWr3ukTDiye7s4HRcuPEPOXNC432Vg==}+ engines: {node: '>=14.0.0'}+ cpu: [wasm32]++ '@oxc-resolver/[email protected]':+ resolution: {integrity: sha512-nJ4AsUVZrVKwnU/QRdzPCCrO0TrabBqgJ8pJhXITdZGYOV28TIYystV1VFLbQ7DtAcaBHpocT5/ZJnF78YJPtQ==}+ cpu: [arm64]+ os: [win32]++ '@oxc-resolver/[email protected]':+ resolution: {integrity: sha512-EW+ND5q2Tl+a3pH81l1QbfgbF3HmqgwLfDfVithRFheac8OTcnbXt/JxqD2GbDkb7xYEqy1zNaVFRr3oeG8npA==}+ cpu: [ia32]+ os: [win32]++ '@oxc-resolver/[email protected]':+ resolution: {integrity: sha512-6hIU3RQu45B+VNTY4Ru8ppFwjVS/S5qwYyGhBotmjxfEKk41I2DlGtRfGJndZ5+6lneE2pwloqunlOyZuX/XAw==}+ cpu: [x64]+ os: [win32]+'@pivanov/[email protected]':resolution: {integrity: sha512-q9CN0bFWxWgMY5hVVYyBgez1jGiLBa6I+LkG37ycylPhFvEGOOeaADGtUSu46CaZasPnlY8fCdVJZmrgKb1EPA==}peerDependencies:@@ -1927,100 +2031,6 @@ packages:'@radix-ui/[email protected]':resolution: {integrity: sha512-A9+lCBZoaMJlVKcRBz2YByCG+Cp2t6nAnMnNba+XiWxnj6r4JUFqfsgwocMBZU9LPtdxC6wB56ySYpc7LQIoJg==}- '@react-email/[email protected]':- resolution: {integrity: sha512-ZSD2SxVSgUjHGrB0Wi+4tu3MEpB4fYSbezsFNEJk2xCWDBkFiOeEsjTmR5dvi+CxTK691hQTQlHv0XWuP7ENTg==}- peerDependencies:- react: ^18.0 || ^19.0 || ^19.0.0-rc-- '@react-email/[email protected]':- resolution: {integrity: sha512-HYHrhyVGt7rdM/ls6FuuD6XE7fa7bjZTJqB2byn6/oGsfiEZaogY77OtoLL/mrQHjHjZiJadtAMSik9XLcm7+A==}- engines: {node: '>=18.0.0'}- peerDependencies:- react: ^18.0 || ^19.0 || ^19.0.0-rc-- '@react-email/[email protected]':- resolution: {integrity: sha512-Faw3Ij9+/Qwq6moWaeHnV8Hn7ekc/EqyAzPi6yUar21dhcqYugCC4Da1x4d9nA9zC0H9KU3lYVJczh8D3cA+Eg==}- engines: {node: '>=18.0.0'}- peerDependencies:- react: ^18.0 || ^19.0 || ^19.0.0-rc-- '@react-email/[email protected]':- resolution: {integrity: sha512-MmAsOzdJpzsnY2cZoPHFPk6uDO/Ncpb4Kh1hAt9UZc1xOW3fIzpe1Pi9y9p6wwUmpaeeDalJxAxH6/fnTquinA==}- engines: {node: '>=18.0.0'}- peerDependencies:- react: ^18.0 || ^19.0 || ^19.0.0-rc-- '@react-email/[email protected]':- resolution: {integrity: sha512-Lqq17l7ShzJG/d3b1w/+lVO+gp2FM05ZUo/nW0rjxB8xBICXOVv6PqjDnn3FXKssvhO5qAV20lHM6S+spRhEwQ==}- engines: {node: '>=18.0.0'}- peerDependencies:- react: ^18.0 || ^19.0 || ^19.0.0-rc-- '@react-email/[email protected]':- resolution: {integrity: sha512-VMh+OQplAnG8JMLlJjdnjt+ThJZ+JVkp0q2YMS2NEz+T88N22bLD2p7DZO0QgtNaKgumOhJI/0a2Q7VzCrwu5g==}- engines: {node: '>=18.0.0'}- peerDependencies:- react: ^18.0 || ^19.0 || ^19.0.0-rc-- '@react-email/[email protected]':- resolution: {integrity: sha512-Qo2IQo0ru2kZq47REmHW3iXjAQaKu4tpeq/M8m1zHIVwKduL2vYOBQWbC2oDnMtWPmkBjej6XxgtZByxM6cCFg==}- engines: {node: '>=18.0.0'}- peerDependencies:- react: ^18.0 || ^19.0 || ^19.0.0-rc-- '@react-email/[email protected]':- resolution: {integrity: sha512-4zjq23oT9APXkerqeslPH3OZWuh5X4crHK6nx82mVHV2SrLba8+8dPEnWbaACWTNjOCbcLIzaC9unk7Wq2MIXw==}- peerDependencies:- react: ^18.0 || ^19.0 || ^19.0.0-rc-- '@react-email/[email protected]':- resolution: {integrity: sha512-X2Ii6dDFMF+D4niNwMAHbTkeCjlYYnMsd7edXOsi0JByxt9wNyZ9EnhFiBoQdqkE+SMDcu8TlNNttMrf5sJeMA==}- engines: {node: '>=18.0.0'}- peerDependencies:- react: ^18.0 || ^19.0 || ^19.0.0-rc-- '@react-email/[email protected]':- resolution: {integrity: sha512-xF2GqsvBrp/HbRHWEfOgSfRFX+Q8I5KBEIG5+Lv3Vb2R/NYr0s8A5JhHHGf2pWBMJdbP4B2WHgj/VUrhy8dkIg==}- engines: {node: '>=18.0.0'}- peerDependencies:- react: ^18.0 || ^19.0 || ^19.0.0-rc-- '@react-email/[email protected]':- resolution: {integrity: sha512-S1gZHVhwOsd1Iad5IFhpfICwNPMGPJidG/Uysy1AwmspyoAP5a4Iw3OWEpINFdgh9MHladbxcLKO2AJO+cA9Lw==}- engines: {node: '>=18.0.0'}- peerDependencies:- react: ^18.0 || ^19.0 || ^19.0.0-rc-- '@react-email/[email protected]':- resolution: {integrity: sha512-qJhbOQy5VW5qzU74AimjAR9FRFQfrMa7dn4gkEXKMB/S9xZN8e1yC1uA9C15jkXI/PzmJ0muDIWmFwatm5/+VA==}- engines: {node: '>=18.0.0'}- peerDependencies:- react: ^18.0 || ^19.0 || ^19.0.0-rc-- '@react-email/[email protected]':- resolution: {integrity: sha512-aGc8Y6U5C3igoMaqAJKsCpkbm1XjguQ09Acd+YcTKwjnC2+0w3yGUJkjWB2vTx4tN8dCqQCXO8FmdJpMfOA9EQ==}- engines: {node: '>=18.0.0'}- peerDependencies:- react: ^18.0 || ^19.0 || ^19.0.0-rc-- '@react-email/[email protected]':- resolution: {integrity: sha512-vF+xxQk2fGS1CN7UPQDbzvcBGfffr+GjTPNiWM38fhBfsLv6A/YUfaqxWlmL7zLzVmo0K2cvvV9wxlSyNba1aQ==}- engines: {node: '>=18.0.0'}- peerDependencies:- react: ^18.0 || ^19.0 || ^19.0.0-rc-- '@react-email/[email protected]':- resolution: {integrity: sha512-5IsobCyPkb4XwnQO8uFfGcNOxnsg3311GRXhJ3uKv51P7Jxme4ycC/MITnwIZ10w2zx7HIyTiqVzTj4XbuIHbg==}- engines: {node: '>=18.0.0'}- peerDependencies:- react: ^18.0 || ^19.0 || ^19.0.0-rc-- '@react-email/[email protected]':- resolution: {integrity: sha512-g/H5fa9PQPDK6WUEG7iTlC19sAktI23qyoiJtMLqQiXFCfWeQMhqjLGKeLSKkfzszqmfJCjZtpSiKtBoOdxp3Q==}- engines: {node: '>=18.0.0'}- peerDependencies:- react: ^18.0 || ^19.0 || ^19.0.0-rc-'@react-email/[email protected]':resolution: {integrity: sha512-CA69HYXPk21HhtAXATIr+9JJwpDNmAFCvdMUjWmeoD1+KhJ9NAxusMRxKNeibdZdslmq3edaeOKGbdQ9qjK8LQ==}engines: {node: '>=18.0.0'}@@ -2028,37 +2038,6 @@ packages:react: ^18.0 || ^19.0 || ^19.0.0-rcreact-dom: ^18.0 || ^19.0 || ^19.0.0-rc- '@react-email/[email protected]':- resolution: {integrity: sha512-zNueW5Wn/4jNC1c5LFgXzbUdv5Lhms+FWjOvWAhal7gx5YVf0q6dPJ0dnR70+ifo59gcMLwCZEaTS9EEuUhKvQ==}- engines: {node: '>=18.0.0'}- peerDependencies:- react: ^18.0 || ^19.0 || ^19.0.0-rc- react-dom: ^18.0 || ^19.0 || ^19.0.0-rc-- '@react-email/[email protected]':- resolution: {integrity: sha512-HkCdnEjvK3o+n0y0tZKXYhIXUNPDx+2vq1dJTmqappVHXS5tXS6W5JOPZr5j+eoZ8gY3PShI2LWj5rWF7ZEtIQ==}- engines: {node: '>=18.0.0'}- peerDependencies:- react: ^18.0 || ^19.0 || ^19.0.0-rc-- '@react-email/[email protected]':- resolution: {integrity: sha512-FjqF9xQ8FoeUZYKSdt8sMIKvoT9XF8BrzhT3xiFKdEMwYNbsDflcjfErJe3jb7Wj/es/lKTbV5QR1dnLzGpL3w==}- engines: {node: '>=18.0.0'}- peerDependencies:- react: ^18.0 || ^19.0 || ^19.0.0-rc-- '@react-email/[email protected]':- resolution: {integrity: sha512-tJdcusncdqgvTUYZIuhNC6LYTfL9vNTSQpwWdTCQhQ1lsrNCEE4OKCSdzSV3S9F32pi0i0xQ+YPJHKIzGjdTSA==}- engines: {node: '>=18.0.0'}- peerDependencies:- react: ^18.0 || ^19.0 || ^19.0.0-rc-- '@react-email/[email protected]':- resolution: {integrity: sha512-Zo9tSEzkO3fODLVH1yVhzVCiwETfeEL5wU93jXKWo2DHoMuiZ9Iabaso3T0D0UjhrCB1PBMeq2YiejqeToTyIQ==}- engines: {node: '>=18.0.0'}- peerDependencies:- react: ^18.0 || ^19.0 || ^19.0.0-rc-'@react-pdf/[email protected]':resolution: {integrity: sha512-qTKGUf0iAMGg2+OsUcp9ffKnKi41RukM/zYIWMDJ4hRVYSr89Q7e3wSDW/Koqx3ea3Uy/z3h2y3wPX6Bdfxk6g==}@@ -2417,8 +2396,8 @@ packages:'@tybys/[email protected]':resolution: {integrity: sha512-VyyPYFlOMNylG45GoAe0xDoLwWuowvf92F9kySqzYh8vmYm7D2u4iUJKa1tOUpS70Ku13ASrOkS4ScXFsTaCNQ==}- '@types/[email protected]':- resolution: {integrity: sha512-OzOWrTluG9cwqidEzC/Q6FAmIPcnZfm8BFRlIx0+UIUqnuAmi5OS88O0RpT3Yz6qdmqObvUhasrbNsCofE4W9A==}+ '@tybys/[email protected]':+ resolution: {integrity: sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==}'@types/[email protected]':resolution: {integrity: sha512-8kB30R7Hwqf40JPiKhVzodJs2Qc1ZJ5zuT3uzw5Hq/dhNCl3G3l83jfpdI1e20BP348+fV7VIL/+FxaXkqBmWg==}@@ -2465,9 +2444,6 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==}- '@types/[email protected]':- resolution: {integrity: sha512-H3MHACvFUEiujabxhaI/ImO6gUrd8oOurg7LQtS7mbwIXA/cUqWrvBsaeJ23aZEPk1TAYkurjfMbSELfoCXlGA==}-'@types/[email protected]':resolution: {integrity: sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==}@@ -3092,9 +3068,6 @@ packages:resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==}- resolution: {integrity: sha512-pNdYkNPiJUnEhnfXV56+sQy8+AaPcG3POZAUnwr4EeqCUZFz4u2PePbo3e5Gj4ziYPCWGUZT9RHisvJKnwFuBQ==}-resolution: {integrity: sha512-3XSA2cR/h/73EzlXXdU6YNycmYI7+kicTxks4eJg2g39biHR84slg2+des+p7iHYhbRg/udIS4TD53WabcOUkw==}engines: {node: '>= 0.4'}@@ -3311,25 +3284,16 @@ packages:resolution: {integrity: sha512-loKTxY1zCOuG4j9f6EPnuyyYkf58RnhhWTvRoZEokgB+WbdXehfjFviyOVYkqzEWz1Q5kRiZdBYS5SwxbQYwzw==}- resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==}-resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==}engines: {node: '>=7.0.0'}- resolution: {integrity: sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==}-resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==}resolution: {integrity: sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==}- resolution: {integrity: sha512-aBl7dZI9ENN6fUGC7mWpMTPNHmWUSNan9tuWN6ahh5ZLNk9baLJOnSMlrQkHcrfFgz2/RigjUVAjdx36VcemKA==}-resolution: {integrity: sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A==}engines: {node: '>=12.5.0'}@@ -4048,8 +4012,8 @@ packages:resolution: {integrity: sha512-hGfm/slu0ZabnNt4oaRZ6uREyfCj6P4fT/n6A1rGV+Z0VdGXjfOhVUpkn6qVQONHGIFwmveGXyDs75+nr6FM8w==}engines: {node: '>= 6'}- resolution: {integrity: sha512-lIN7GpcvX/l/i24r/L9bnJ0I8Qn01qijWpQpDDvTLL29nKqSaJJu4h20+7VJ6m2CAhQ2/En/GbxDiHCzq/0MyA==}+ resolution: {integrity: sha512-9XNj/o4wrRFyhSMJOvsuyMwy8aUfBaZ1VrqHVfohyXf0Sw0e+yfKG+xZaY3arGCOMdwFsqObtzVOc1gU9KiT9w==}engines: {node: '>=18.3.0'}hasBin: true@@ -4614,6 +4578,10 @@ packages:resolution: {integrity: sha512-rg9zJN+G4n2nfJl5MW3BMygZX56zKPNVEYYqq7adpmMh4Jn2QNEwhvQlFy6jPVdcod7txZtKHWnyZiA3a0zP7A==}hasBin: true+ resolution: {integrity: sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==}+ hasBin: true+resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}@@ -4624,6 +4592,10 @@ packages:resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==}hasBin: true+ resolution: {integrity: sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==}+ hasBin: true+resolution: {integrity: sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==}engines: {node: '>=6'}@@ -4683,13 +4655,13 @@ packages:resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==}engines: {node: '>=6'}- resolution: {integrity: sha512-NYXjgGrXgMdabUKCP2TlBH/e83m9KnLc1VLyWHUtoRrCEJ/C15YtbafrpTvm3td+jE4VdDPgudvXT1IMtCx8lw==}+ resolution: {integrity: sha512-V2kyON+DZiYdNNdY6GALseiNCwX7dYdpz9Pv85AUn69Gk0UKCts+glOKWfe5KmaMByRjM9q17Mzj/KinTVOyxg==}engines: {node: '>=18.18.0'}hasBin: truepeerDependencies:'@types/node': '>=18'- typescript: '>=5.0.4'+ typescript: '>=5.0.4 <7'resolution: {integrity: sha512-0K65Lea881pHotoGEa5gDlMxt3pctLi2RplBb7Ezh4rRdLEOtgi7n4EwK9lamnUCkKBqaeKRVebTq6BAxSkpXQ==}@@ -4746,9 +4718,6 @@ packages:resolution: {integrity: sha512-aVx8ztPv7/2ULbArGJ2Y42bG1mEQ5mGjpdvrbJcJFU3TbYybe+QlLS4pst9zV52ymy2in1KpFPiZnAOATxD4+Q==}- resolution: {integrity: sha512-/u14pXGviLaweY5JI0IUzgzF2J6Ne8INyzAZjImcryjgkZ+ebruBxy2/JaOOkTqScddcYtakjhSaeemV8lR0tA==}-resolution: {integrity: sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==}@@ -4812,20 +4781,10 @@ packages:resolution: {integrity: sha512-wiYz4+JrLyb/DqW2hkFJxP7Vd7JuTDm77fvbM8VfEQdmSMqcImWeeRbHwZjBjIFki/VaMK2BhFi7oUUZeM5bqw==}- resolution: {integrity: sha512-t8eP0dXRJMtMvBojtkcsA7n48BkauktUKzfkPSCq85ZMTJ0v76Rke4DYz01omYpPTUh4p/f7HePgRo3ebG8+QQ==}- engines: {node: '>= 16'}- hasBin: true-resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==}engines: {node: '>= 0.4'}- resolution: {integrity: sha512-OvAXqwq57uOk+WZqFFNCMZz8yDp8BD3WazW1wAKHUrPbbdr89K9DWS6JXY09vd9xNdPNeurI8DU/X4flcfaD8A==}- peerDependencies:- react: ^18.0 || ^19.0-resolution: {integrity: sha512-Tmd1Vg/m3Xz43afeNxDIhWRtFZgM2VLyaf4vSTYwudTyeuTneoL3qtWMA5jeLyz/O1vDJmmV4QuScFCA2tBPwg==}@@ -5306,6 +5265,9 @@ packages:resolution: {integrity: sha512-qFOyK5PjiWZd+QQIh+1jhdb9LpxTF0qs7Pm8o5QHYZ0M3vKqSqzsZaEB6oWlxZ+q2sJBMI/Ktgd2N5ZwQoRHfg==}engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-qE/CIg/spwrTBFt5aKmwe3ifeDdLfA2NESN30E42X/lII5ClF8V7Wt6WIJhcGZjp0/Q+nQ+9vgxGk//xZNX2hg==}+resolution: {integrity: sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==}engines: {node: '>=6'}@@ -5626,10 +5588,6 @@ packages:resolution: {integrity: sha512-4yf0QO/sllf/1zbZWYnvWw3NxCQwLXKzIj0G849LSufP15BXKM0rbD2Z3wVnkMfjdn/CB0Dpp444gYAACdsplg==}engines: {node: '>=18'}- resolution: {integrity: sha512-DEvV2ZF2r2/63V+tK8hQvrR2ZGn10srHbXviTlcv7Kpzw8jWiNTqbVgjO3IY8RxrrOUF8VPMQQFysYYYv0YZxw==}- engines: {node: '>=6'}-resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==}@@ -5691,9 +5649,6 @@ packages:resolution: {integrity: sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==}hasBin: true- resolution: {integrity: sha512-1s0CY1zRBOQ5M3T61wetEpvQmsYSNtWEcdYzyZNxKa8t7oDvaOn9d21xrGezGAHFWLM7SHcktPuPTrvoqxSfKw==}-resolution: {integrity: sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==}peerDependencies:@@ -5722,9 +5677,6 @@ packages:resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==}- resolution: {integrity: sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA==}-resolution: {integrity: sha512-AJt0lAIkItWEZRA5d/mO+Om4nPCuTiQ0saA+qItO967DTjmGjnhmF+Bi2tL286mOTfBlF5CyLzJ35KTMaDoH+A==}peerDependencies:@@ -5798,12 +5750,6 @@ packages:'@types/react':optional: true- resolution: {integrity: sha512-U1DGlIQN5AwgjTyOEnI1oCcMuEr1pv1qOtklB2l4nyMGbHzWrI0eFsYK0zos2YWqAolJyG0IWJaqWmWj5ETh0A==}- engines: {node: '>=10'}- peerDependencies:- react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-resolution: {integrity: sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==}engines: {node: '>=0.10.0'}@@ -6093,8 +6039,8 @@ packages:resolution: {integrity: sha512-bSiSngZ/jWeX93BqeIAbImyTbEihizcwNjFoRUIY/T1wWQsfsm2Vw1agPKylXvQTU7iASGdHhyqRlqQzfz+Htg==}engines: {node: '>=18'}- resolution: {integrity: sha512-rInDH6lCNiEyn3+hH8KVGFdbjc099j47+OSgbMrfDYX1CmXLfdKd7qi6IfcWj2wFxvSVkuI46M+wPGYfEOEj6g==}+ resolution: {integrity: sha512-4zemZi0HvTnYwLfrpk/CF9LOd9Lt87kAt50GnqhMpyF9U3poDAP2+iukq2bZsO/ufegbYehBkqINbsWxj4l4cw==}engines: {node: '>= 18'}@@ -6252,8 +6198,8 @@ packages:resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==}engines: {node: '>=8'}- resolution: {integrity: sha512-0fk9zBqO67Nq5M/m45qHCJxylV/DhBlIOVExqgOMiCCrzrhU6tCibRXNqE3jwJLftzE9SNuZtYbpzcO+i9FiKw==}+ resolution: {integrity: sha512-1tB5mhVo7U+ETBKNf92xT4hrQa3pm0MZ0PQvuDnWgAAGHDsfp4lPSpiS6psrSiet87wyGPh9ft6wmhOMQ0hDiw==}engines: {node: '>=14.16'}@@ -6599,15 +6545,6 @@ packages:'@types/react':optional: true- resolution: {integrity: sha512-djviaxuOOh7wkj0paeO1Q/4wMZ8Zrnag5H6yBvzN7AKKe8beOaED9SF5/ByLqsku8NP4zQqsvM2u3ew/tJK8/w==}- peerDependencies:- '@types/react': '*'- react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0- peerDependenciesMeta:- '@types/react':- optional: true-resolution: {integrity: sha512-6Cf7Yr7Wk7Kdv77nnJMf6de4HuDE4dTxKij+RqE9rufDsI6zsbjyAxcH5y2ueJCQAnfgKbzXbZHYlkFwmBlWkw==}engines: {node: '>= 16.0.0'}@@ -6619,24 +6556,6 @@ packages:peerDependencies:react: ^17.0.0 || ^18.0.0 || >=19.0.0-rc <19.0.0 || ^19.0.0- resolution: {integrity: sha512-tpZZ+EX0gaghDAiFR37hj5MgY6ZN55kLiPkJsKxBMZ6GZdOSPJXiOzPM984oPYZ5AnehYx5WQp1+ME8I/P/pRA==}- peerDependencies:- '@types/react': '*'- react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0- peerDependenciesMeta:- '@types/react':- optional: true-- resolution: {integrity: sha512-mhg3xdm9NaM8q+gLT8KryJPnRFOz1/5XPBhmDEVZK1webPzDjrPk7f/mbpeLqTgB9msytYWANxgALOCJKnLvcQ==}- peerDependencies:- '@types/react': '*'- react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0- peerDependenciesMeta:- '@types/react':- optional: true-resolution: {integrity: sha512-Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ==}engines: {node: '>=10'}@@ -6909,15 +6828,12 @@ packages:peerDependencies:zod: ^3.24.1- resolution: {integrity: sha512-OT5Y8lbUadqVZCsnyFaTQ4/O2mys4tj7PqhdbBCp7McPwvIEKfPtdA6QfPeFQK2/Rz5LgwmAXRJTugBNBi0btw==}- engines: {node: '>=18.0.0'}- peerDependencies:- zod: ^3.25.0 || ^4.0.0-resolution: {integrity: sha512-OdqJE9UDRPwWsrHjLN2F8bPxvwJBK22EHLWtanu0LSYr5YqzsaaW3RMgmjwr8Rypg5k+meEJdSPXJZXE/yqOMg==}+ resolution: {integrity: sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==}+resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==}@@ -7264,16 +7180,32 @@ snapshots:tslib: 2.8.1optional: true+ '@emnapi/[email protected]':+ dependencies:+ '@emnapi/wasi-threads': 1.1.0+ tslib: 2.8.1+ optional: true+'@emnapi/[email protected]':dependencies:tslib: 2.8.1optional: true+ '@emnapi/[email protected]':+ dependencies:+ tslib: 2.8.1+ optional: true+'@emnapi/[email protected]':dependencies:tslib: 2.8.1optional: true+ '@emnapi/[email protected]':+ dependencies:+ tslib: 2.8.1+ optional: true+'@esbuild/[email protected]':optional: true@@ -7645,16 +7577,6 @@ snapshots:'@types/react': 18.3.12react: 18.3.1- '@microlink/[email protected](@types/[email protected])([email protected]([email protected]))([email protected])':- dependencies:- react: 18.3.1- react-base16-styling: 0.9.1- react-dom: 18.3.1([email protected])- react-lifecycles-compat: 3.0.4- react-textarea-autosize: 8.5.9(@types/[email protected])([email protected])- transitivePeerDependencies:- - '@types/react'-'@modelcontextprotocol/[email protected]':dependencies:ajv: 6.12.6@@ -7688,6 +7610,13 @@ snapshots:'@tybys/wasm-util': 0.10.0optional: true+ '@napi-rs/[email protected]':+ dependencies:+ '@emnapi/core': 1.8.1+ '@emnapi/runtime': 1.8.1+ '@tybys/wasm-util': 0.10.1+ optional: true+'@next/[email protected]': {}'@next/[email protected]': {}@@ -8036,6 +7965,68 @@ snapshots:'@opentelemetry/api': 1.9.0'@opentelemetry/core': 1.30.1(@opentelemetry/[email protected])+ '@oxc-resolver/[email protected]':+ optional: true++ '@oxc-resolver/[email protected]':+ optional: true++ '@oxc-resolver/[email protected]':+ optional: true++ '@oxc-resolver/[email protected]':+ optional: true++ '@oxc-resolver/[email protected]':+ optional: true++ '@oxc-resolver/[email protected]':+ optional: true++ '@oxc-resolver/[email protected]':+ optional: true++ '@oxc-resolver/[email protected]':+ optional: true++ '@oxc-resolver/[email protected]':+ optional: true++ '@oxc-resolver/[email protected]':+ optional: true++ '@oxc-resolver/[email protected]':+ optional: true++ '@oxc-resolver/[email protected]':+ optional: true++ '@oxc-resolver/[email protected]':+ optional: true++ '@oxc-resolver/[email protected]':+ optional: true++ '@oxc-resolver/[email protected]':+ optional: true++ '@oxc-resolver/[email protected]':+ optional: true++ '@oxc-resolver/[email protected]':+ dependencies:+ '@napi-rs/wasm-runtime': 1.1.1+ optional: true++ '@oxc-resolver/[email protected]':+ optional: true++ '@oxc-resolver/[email protected]':+ optional: true++ '@oxc-resolver/[email protected]':+ optional: true+dependencies:react: 18.3.1@@ -8621,94 +8612,6 @@ snapshots:'@radix-ui/[email protected]': {}- '@react-email/[email protected]([email protected])':- dependencies:- react: 18.3.1-- '@react-email/[email protected]([email protected])':- dependencies:- react: 18.3.1-- '@react-email/[email protected]([email protected])':- dependencies:- prismjs: 1.30.0- react: 18.3.1-- '@react-email/[email protected]([email protected])':- dependencies:- react: 18.3.1-- '@react-email/[email protected]([email protected])':- dependencies:- react: 18.3.1-- dependencies:- '@react-email/body': 0.0.11([email protected])- '@react-email/button': 0.0.19([email protected])- '@react-email/code-block': 0.0.12([email protected])- '@react-email/code-inline': 0.0.5([email protected])- '@react-email/column': 0.0.13([email protected])- '@react-email/container': 0.0.15([email protected])- '@react-email/font': 0.0.9([email protected])- '@react-email/head': 0.0.12([email protected])- '@react-email/heading': 0.0.15([email protected])- '@react-email/hr': 0.0.11([email protected])- '@react-email/html': 0.0.11([email protected])- '@react-email/img': 0.0.11([email protected])- '@react-email/link': 0.0.12([email protected])- '@react-email/markdown': 0.0.14([email protected])- '@react-email/preview': 0.0.12([email protected])- '@react-email/row': 0.0.12([email protected])- '@react-email/section': 0.0.16([email protected])- '@react-email/tailwind': 1.0.4([email protected])- '@react-email/text': 0.1.1([email protected])- react: 18.3.1- transitivePeerDependencies:- - react-dom-- '@react-email/[email protected]([email protected])':- dependencies:- react: 18.3.1-- '@react-email/[email protected]([email protected])':- dependencies:- react: 18.3.1-- '@react-email/[email protected]([email protected])':- dependencies:- react: 18.3.1-- '@react-email/[email protected]([email protected])':- dependencies:- react: 18.3.1-- '@react-email/[email protected]([email protected])':- dependencies:- react: 18.3.1-- '@react-email/[email protected]([email protected])':- dependencies:- react: 18.3.1-- '@react-email/[email protected]([email protected])':- dependencies:- react: 18.3.1-- '@react-email/[email protected]([email protected])':- dependencies:- react: 18.3.1-- '@react-email/[email protected]([email protected])':- dependencies:- md-to-react-email: 5.0.5([email protected])- react: 18.3.1-- '@react-email/[email protected]([email protected])':- dependencies:- react: 18.3.1-dependencies:html-to-text: 9.0.5@@ -8717,30 +8620,6 @@ snapshots:react-dom: 18.3.1([email protected])react-promise-suspense: 0.3.4- dependencies:- html-to-text: 9.0.5- prettier: 3.5.3- react: 18.3.1- react-dom: 18.3.1([email protected])- react-promise-suspense: 0.3.4-- '@react-email/[email protected]([email protected])':- dependencies:- react: 18.3.1-- '@react-email/[email protected]([email protected])':- dependencies:- react: 18.3.1-- '@react-email/[email protected]([email protected])':- dependencies:- react: 18.3.1-- '@react-email/[email protected]([email protected])':- dependencies:- react: 18.3.1-'@react-pdf/[email protected]': {}'@react-pdf/[email protected]':@@ -9167,7 +9046,10 @@ snapshots:tslib: 2.8.1optional: true- '@types/[email protected]': {}+ '@tybys/[email protected]':+ dependencies:+ tslib: 2.8.1+ optional: true'@types/[email protected]':dependencies:@@ -9217,8 +9099,6 @@ snapshots:'@types/[email protected]': {}- '@types/[email protected]': {}-'@types/[email protected]':dependencies:'@types/unist': 3.0.3@@ -9902,8 +9782,6 @@ snapshots:- [email protected]: {}-@@ -10131,16 +10009,10 @@ snapshots:- dependencies:- color-name: 1.1.3-dependencies:color-name: 1.1.4- [email protected]: {}-@@ -10148,11 +10020,6 @@ snapshots:color-name: 1.1.4simple-swizzle: 0.2.2- dependencies:- color-convert: 1.9.3- color-string: 1.9.1-dependencies:color-convert: 2.0.1@@ -10587,7 +10454,7 @@ snapshots:eslint: 9.33.0([email protected])eslint-import-resolver-node: 0.3.9- eslint-plugin-import: 2.32.0(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))+ eslint-plugin-import: 2.32.0(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))eslint-plugin-jsx-a11y: 6.10.2([email protected]([email protected]))eslint-plugin-react: 7.37.5([email protected]([email protected]))eslint-plugin-react-hooks: 5.2.0([email protected]([email protected]))@@ -10617,22 +10484,21 @@ snapshots:tinyglobby: 0.2.14unrs-resolver: 1.11.1optionalDependencies:- eslint-plugin-import: 2.32.0(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))+ eslint-plugin-import: 2.32.0(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))transitivePeerDependencies:- supports-color- [email protected](@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected]([email protected])):+ [email protected](@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected])):dependencies:debug: 3.2.7optionalDependencies:eslint: 9.33.0([email protected])eslint-import-resolver-node: 0.3.9- eslint-import-resolver-typescript: 3.10.1([email protected])([email protected]([email protected]))transitivePeerDependencies:- supports-color- [email protected](@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected])):+ [email protected](@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected])):dependencies:'@rtsao/scc': 1.1.0array-includes: 3.1.9@@ -10643,7 +10509,7 @@ snapshots:doctrine: 2.1.0eslint: 9.33.0([email protected])eslint-import-resolver-node: 0.3.9- eslint-module-utils: 2.12.1(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected]([email protected]))+ eslint-module-utils: 2.12.1(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))hasown: 2.0.2is-core-module: 2.16.1is-glob: 4.0.3@@ -10655,7 +10521,7 @@ snapshots:string.prototype.trimend: 1.0.9tsconfig-paths: 3.15.0optionalDependencies:transitivePeerDependencies:- eslint-import-resolver-typescript- eslint-import-resolver-webpack@@ -11049,7 +10915,7 @@ snapshots:es-set-tostringtag: 2.1.0mime-types: 2.1.35dependencies:fd-package-json: 2.0.0@@ -11659,6 +11525,8 @@ snapshots:+ [email protected]: {}+@@ -11667,6 +11535,10 @@ snapshots:dependencies:argparse: 2.0.1+ dependencies:+ argparse: 2.0.1+@@ -11728,23 +11600,22 @@ snapshots:dependencies:'@nodelib/fs.walk': 1.2.8'@types/node': 22.8.1- enhanced-resolve: 5.18.3fast-glob: 3.3.3- formatly: 0.2.4- jiti: 2.4.2- js-yaml: 4.1.0+ formatly: 0.3.0+ jiti: 2.6.1+ js-yaml: 4.1.1minimist: 1.2.8+ oxc-resolver: 11.19.1picocolors: 1.1.1picomatch: 4.0.3- smol-toml: 1.4.2- strip-json-comments: 5.0.1+ smol-toml: 1.6.0+ strip-json-comments: 5.0.3typescript: 5.9.3- zod: 3.24.4- zod-validation-error: 3.5.3([email protected])+ zod: 4.3.6@@ -11810,8 +11681,6 @@ snapshots:- [email protected]: {}-@@ -11870,15 +11739,8 @@ snapshots:- [email protected]: {}-- dependencies:- marked: 7.0.4- react: 18.3.1-dependencies:'@types/mdast': 4.0.4@@ -12641,6 +12503,29 @@ snapshots:object-keys: 1.1.1safe-push-apply: 1.0.0+ optionalDependencies:+ '@oxc-resolver/binding-android-arm-eabi': 11.19.1+ '@oxc-resolver/binding-android-arm64': 11.19.1+ '@oxc-resolver/binding-darwin-arm64': 11.19.1+ '@oxc-resolver/binding-darwin-x64': 11.19.1+ '@oxc-resolver/binding-freebsd-x64': 11.19.1+ '@oxc-resolver/binding-linux-arm-gnueabihf': 11.19.1+ '@oxc-resolver/binding-linux-arm-musleabihf': 11.19.1+ '@oxc-resolver/binding-linux-arm64-gnu': 11.19.1+ '@oxc-resolver/binding-linux-arm64-musl': 11.19.1+ '@oxc-resolver/binding-linux-ppc64-gnu': 11.19.1+ '@oxc-resolver/binding-linux-riscv64-gnu': 11.19.1+ '@oxc-resolver/binding-linux-riscv64-musl': 11.19.1+ '@oxc-resolver/binding-linux-s390x-gnu': 11.19.1+ '@oxc-resolver/binding-linux-x64-gnu': 11.19.1+ '@oxc-resolver/binding-linux-x64-musl': 11.19.1+ '@oxc-resolver/binding-openharmony-arm64': 11.19.1+ '@oxc-resolver/binding-wasm32-wasi': 11.19.1+ '@oxc-resolver/binding-win32-arm64-msvc': 11.19.1+ '@oxc-resolver/binding-win32-ia32-msvc': 11.19.1+ '@oxc-resolver/binding-win32-x64-msvc': 11.19.1+dependencies:p-try: 2.2.0@@ -12874,8 +12759,6 @@ snapshots:dependencies:parse-ms: 4.0.0- [email protected]: {}-@@ -12945,16 +12828,6 @@ snapshots:strip-json-comments: 2.0.1optional: true- dependencies:- '@babel/runtime': 7.26.9- '@types/base16': 1.0.5- '@types/lodash': 4.17.20- base16: 1.0.0- color: 3.2.1- csstype: 3.1.3- lodash.curry: 4.1.1-dependencies:loose-envify: 1.4.0@@ -13002,8 +12875,6 @@ snapshots:- [email protected]: {}-[email protected](@types/[email protected])([email protected]([email protected]))([email protected]):dependencies:clsx: 2.1.1@@ -13090,15 +12961,6 @@ snapshots:optionalDependencies:'@types/react': 18.3.12- dependencies:- '@babel/runtime': 7.26.9- react: 18.3.1- use-composed-ref: 1.4.0(@types/[email protected])([email protected])- use-latest: 1.3.0(@types/[email protected])([email protected])- transitivePeerDependencies:- - '@types/react'-dependencies:loose-envify: 1.4.0@@ -13579,7 +13441,7 @@ snapshots:ansi-styles: 6.2.1is-fullwidth-code-point: 5.0.0- [email protected]: {}+ [email protected]: {}dependencies:@@ -13764,7 +13626,7 @@ snapshots:- [email protected]: {}+ [email protected]: {}dependencies:@@ -14174,12 +14036,6 @@ snapshots:optionalDependencies:'@types/react': 18.3.12- dependencies:- react: 18.3.1- optionalDependencies:- '@types/react': 18.3.12-dependencies:react: 18.3.1@@ -14191,19 +14047,6 @@ snapshots:intl-messageformat: 10.7.16react: 18.3.1- dependencies:- react: 18.3.1- optionalDependencies:- '@types/react': 18.3.12-- dependencies:- react: 18.3.1- use-isomorphic-layout-effect: 1.2.1(@types/[email protected])([email protected])- optionalDependencies:- '@types/react': 18.3.12-dependencies:detect-node-es: 1.1.0@@ -14513,10 +14356,8 @@ snapshots:dependencies:zod: 3.24.4- dependencies:- zod: 3.24.4-+ [email protected]: {}+diff --git a/src/app/(app)/components/cta-toasts/index.tsx b/src/app/(app)/components/cta-toasts/index.tsxindex 1fbcd36..a33bdf9 100644--- a/src/app/(app)/components/cta-toasts/index.tsx+++ b/src/app/(app)/components/cta-toasts/index.tsx@@ -24,7 +24,7 @@ interface ToastProps {/*** Renders a premium donation toast*/-export function customPremiumToast(toast: ToastProps) {+function customPremiumToast(toast: ToastProps) {// dismiss any existing toastssonnerToast.dismiss();@@ -45,7 +45,7 @@ export function customPremiumToast(toast: ToastProps) {/*** Renders a default donation toast*/-export function customDefaultToast(toast: ToastProps) {+function customDefaultToast(toast: ToastProps) {// dismiss any existing toastssonnerToast.dismiss();@@ -240,7 +240,7 @@ function DefaultToastFeedbackButton();}-export const CTA_TOASTS = [+const CTA_TOASTS = [{id: "premium-donation-toast-client-page",title: "Support Open Source",diff --git a/src/app/(app)/components/invoice-form/index.tsx b/src/app/(app)/components/invoice-form/index.tsxindex e7ecb1d..bf5be70 100644--- a/src/app/(app)/components/invoice-form/index.tsx+++ b/src/app/(app)/components/invoice-form/index.tsx@@ -122,7 +122,7 @@ export const InvoiceForm = memo(function InvoiceForm({dayjs(paymentDue).isAfter(dayjs(dateOfIssue).add(14, "days")) ||dayjs(paymentDue).isSame(dayjs(dateOfIssue).add(14, "days"));- const { fields, append, remove } = useFieldArray({+ const { fields, append } = useFieldArray({control,name: "items",});@@ -146,6 +146,15 @@ export const InvoiceForm = memo(function InvoiceForm({): 0;+ console.log(+ "[useEffect] recalculating totals because invoice items changed",+ {+ invoiceItems,+ validatedItems,+ total,+ },+ );+// Update total firstsetValue("total", total, { shouldValidate: true });@@ -244,19 +253,27 @@ export const InvoiceForm = memo(function InvoiceForm({setCanShareInvoice(canShareInvoice);}, [template, logo, setCanShareInvoice]);- // Add a wrapper function for remove item that triggers the form update+ /**+ * Remove an invoice item from the form and trigger the form update+ *+ * @param index - The index of the invoice item to remove+ */const handleRemoveItem = useCallback((index: number) => {- remove(index);-// analytics track eventumamiTrackEvent("remove_invoice_item");- // Manually trigger form submission after removal- const currentFormData = watch();- void debouncedRegeneratePdfOnFormChange(currentFormData);+ setValue(+ "items",+ invoiceItems.filter((_, i) => i !== index),+ {+ shouldValidate: true,+ shouldTouch: true,+ shouldDirty: true,+ },+ );},- [remove, watch, debouncedRegeneratePdfOnFormChange],+ [invoiceItems, setValue],);const onSubmit = (data: InvoiceData) => {@@ -421,6 +438,7 @@ export const InvoiceForm = memo(function InvoiceForm({append={append}template={template}taxLabelText={taxLabelText}+ invoiceData={invoiceData}/></AccordionContent></AccordionItem>diff --git a/src/app/(app)/components/invoice-form/sections/invoice-items.tsx b/src/app/(app)/components/invoice-form/sections/invoice-items.tsxindex dd87f35..bb6d36f 100644--- a/src/app/(app)/components/invoice-form/sections/invoice-items.tsx+++ b/src/app/(app)/components/invoice-form/sections/invoice-items.tsx@@ -5,7 +5,7 @@ import {} from "@/app/schema";import { Label } from "@/components/ui/label";import { Switch } from "@/components/ui/switch";-import { memo } from "react";+import { memo, useState } from "react";import {type Control,Controller,@@ -27,6 +27,16 @@ import {getNumberFractionalPart,} from "@/utils/invoice.utils";import { Button } from "@/components/ui/button";+import {+ AlertDialog,+ AlertDialogAction,+ AlertDialogCancel,+ AlertDialogContent,+ AlertDialogDescription,+ AlertDialogFooter,+ AlertDialogHeader,+ AlertDialogTitle,+} from "@/components/ui/alert-dialog";import { INVOICE_PDF_TRANSLATIONS } from "@/app/(app)/pdf-i18n-translations/pdf-translations";const ErrorMessage = ({ children }: { children: React.ReactNode }) => {@@ -43,6 +53,7 @@ interface InvoiceItemsSettingsProps {language: SupportedLanguages;template: InvoiceData["template"];taxLabelText: string;+ invoiceData: InvoiceData;}export const InvoiceItems = memo(function InvoiceItems({@@ -55,7 +66,10 @@ export const InvoiceItems = memo(function InvoiceItems({append,template,taxLabelText,+ invoiceData,}: InvoiceItemsSettingsProps) {+ const [deleteItemIndex, setDeleteItemIndex] = useState<number | null>(null);+return (<>{/** we only want to show these settings for default template */}@@ -120,15 +134,7 @@ export const InvoiceItems = memo(function InvoiceItems({trigger={<buttontype="button"- onClick={() => {- const canDelete = window.confirm(- `Are you sure you want to delete invoice item #${index + 1}?`,- );-- if (canDelete) {- handleRemoveItem(index);- }- }}+ onClick={() => setDeleteItemIndex(index)}className="flex items-center justify-center rounded-full bg-red-600 p-2 transition-colors hover:bg-red-700 active:scale-[98%] active:transition-transform"><span className="sr-only">@@ -814,6 +820,69 @@ export const InvoiceItems = memo(function InvoiceItems({<Plus className="mr-2 h-4 w-4" />Add invoice item</Button>++ <DeleteInvoiceItemConfirmationDialog+ deleteItemIndex={deleteItemIndex}+ setDeleteItemIndex={setDeleteItemIndex}+ handleRemoveItem={handleRemoveItem}+ invoiceData={invoiceData}+ /></>);});++interface DeleteInvoiceItemConfirmationDialogProps {+ deleteItemIndex: number | null;+ setDeleteItemIndex: (index: number | null) => void;+ handleRemoveItem: (index: number) => void;+ invoiceData: InvoiceData;+}++/**+ * A confirmation dialog for deleting an invoice item.+ */+function DeleteInvoiceItemConfirmationDialog({+ deleteItemIndex = 0,+ setDeleteItemIndex,+ handleRemoveItem,+ invoiceData,+}: DeleteInvoiceItemConfirmationDialogProps) {+ const itemNumber = deleteItemIndex ?? 0;++ const itemName =+ invoiceData?.items?.[itemNumber]?.name || `#${itemNumber + 1}`;++ return (+ <AlertDialog+ open={deleteItemIndex !== null}+ onOpenChange={(open) => {+ if (!open) setDeleteItemIndex(null);+ }}+ >+ <AlertDialogContent>+ <AlertDialogHeader>+ <AlertDialogTitle>Delete Invoice Item</AlertDialogTitle>+ <AlertDialogDescription>+ Are you sure you want to delete the invoice item{" "}+ <strong>"{itemName}"</strong>? This action cannot be+ undone.+ </AlertDialogDescription>+ </AlertDialogHeader>+ <AlertDialogFooter>+ <AlertDialogCancel>Cancel</AlertDialogCancel>+ <AlertDialogAction+ onClick={() => {+ if (deleteItemIndex !== null) {+ handleRemoveItem(deleteItemIndex);+ setDeleteItemIndex(null);+ }+ }}+ className="bg-red-500 text-red-50 hover:bg-red-500/90"+ >+ Delete+ </AlertDialogAction>+ </AlertDialogFooter>+ </AlertDialogContent>+ </AlertDialog>+ );+}diff --git a/src/app/(app)/components/invoice-page-header.tsx b/src/app/(app)/components/invoice-page-header.tsxindex 5846452..f0ba99a 100644--- a/src/app/(app)/components/invoice-page-header.tsx+++ b/src/app/(app)/components/invoice-page-header.tsx@@ -167,7 +167,7 @@ export function InvoicePageHeader({);}-export function ProjectInfoLinks() {+function ProjectInfoLinks() {const [isVideoDialogOpen, setIsVideoDialogOpen] = useState(false);const handleWatchDemoClick = () => {diff --git a/src/app/(app)/pdf-i18n-translations/pdf-translations.ts b/src/app/(app)/pdf-i18n-translations/pdf-translations.tsindex 8db7533..5677642 100644--- a/src/app/(app)/pdf-i18n-translations/pdf-translations.ts+++ b/src/app/(app)/pdf-i18n-translations/pdf-translations.ts@@ -208,7 +208,7 @@ export const invoicePDFtranslationsSchema = z.object(languageToSchemaMap);type TranslationSchema = z.infer<typeof translationSchema>;// Type for all translations-export type TranslationsSchema = z.infer<typeof invoicePDFtranslationsSchema>;+// export type TranslationsSchema = z.infer<typeof invoicePDFtranslationsSchema>;export const INVOICE_PDF_TRANSLATIONS = {en: {diff --git a/src/app/changelog/utils.ts b/src/app/changelog/utils.tsindex 606099b..60ec345 100644--- a/src/app/changelog/utils.ts+++ b/src/app/changelog/utils.ts@@ -18,7 +18,7 @@ export interface ChangelogEntry {}// Validate metadata with Zod schema-export const changelogEntryMetadataSchema = z.object({+const changelogEntryMetadataSchema = z.object({title: z.string().min(1, "Title is required"),description: z.string().min(1, "Description is required"),date: z.string().date(),diff --git a/src/emails/confirm-subscription.tsx b/src/emails/confirm-subscription.tsxdeleted file mode 100644index a31e8f7..0000000--- a/src/emails/confirm-subscription.tsx+++ /dev/null@@ -1,61 +0,0 @@-import {- Body,- Button,- Container,- Head,- Heading,- Html,- Link,- Preview,- Section,- Text,-} from "@react-email/components";-import { Tailwind } from "@react-email/tailwind";--interface ConfirmSubscriptionEmailProps {- confirmationUrl: string;-}--export default function ConfirmSubscriptionEmail({- confirmationUrl,-}: ConfirmSubscriptionEmailProps) {- return (- <Html>- <Head />- <Preview>- Confirm your subscription to EasyInvoicePDF.com newsletter- </Preview>- <Tailwind>- <Body className="bg-white font-sans">- <Container className="mx-auto py-20">- <Heading className="text-2xl font-bold text-gray-900">- Confirm your subscription- </Heading>- <Section className="mt-4">- <Text className="text-gray-600">- Thank you for subscribing to the EasyInvoicePDF newsletter!- Please confirm your subscription by clicking the button below.- </Text>- <Button- className="mt-8 rounded-md bg-slate-900 px-6 py-3 text-white"- href={confirmationUrl}- >- Confirm subscription- </Button>- <Text className="mt-4 text-sm text-gray-500">- Or copy and paste this URL into your browser:{" "}- <Link href={confirmationUrl} className="text-blue-600">- {confirmationUrl}- </Link>- </Text>- <Text className="mt-8 text-sm text-gray-500">- If you didn't request this subscription, you can safely- ignore this email.- </Text>- </Section>- </Container>- </Body>- </Tailwind>- </Html>- );-}diff --git a/src/lib/haptic.ts b/src/lib/haptic.tsindex d4cd74f..42b1371 100644--- a/src/lib/haptic.ts+++ b/src/lib/haptic.ts@@ -1,6 +1,6 @@"use client";-export const supportsHaptic =+const supportsHaptic =typeof window !== "undefined"? window.matchMedia("(pointer: coarse)").matches: false;diff --git a/src/lib/rate-limit.ts b/src/lib/rate-limit.tsindex 21f2ba4..ee02b7c 100644--- a/src/lib/rate-limit.ts+++ b/src/lib/rate-limit.ts@@ -9,43 +9,3 @@ export const ipLimiter = new Ratelimit({analytics: true,prefix: "ratelimit:ip",});--export const emailLimiter = new Ratelimit({- redis,- // 5 emails per hour- limiter: Ratelimit.slidingWindow(5, "1 h"),- analytics: true,- prefix: "ratelimit:email",-});--interface RateLimitResult {- success: boolean;- error?: string;-}--export async function checkRateLimit(- identifier: string,- limiter: Ratelimit,-): Promise<RateLimitResult> {- try {- const result = await limiter.limit(identifier);-- if (!result.success) {- console.error("Rate limit exceeded:", {- identifier,- });- }-- return {- success: result.success,- error: result.success ? undefined : "Rate limit exceeded",- };- } catch (error) {- console.error("Rate limit error:", error);- // Fail open - allow the request if rate limiting fails- // for example if redis is down- return {- success: true,- };- }-}diff --git a/src/utils/__tests__/data.ts b/src/utils/__tests__/data.tsindex 299d153..6d19120 100644--- a/src/utils/__tests__/data.ts+++ b/src/utils/__tests__/data.ts@@ -6,7 +6,7 @@ import type {} from "@/app/schema";// Test data fixtures-export const MOCK_SELLER_DATA = {+const MOCK_SELLER_DATA = {id: "seller-123",name: "ACME Corp",address: "123 Main St, City, 12345",@@ -22,7 +22,7 @@ export const MOCK_SELLER_DATA = {vatNoLabelText: "VAT no",} as const satisfies SellerData;-export const MOCK_BUYER_DATA = {+const MOCK_BUYER_DATA = {id: "buyer-456",name: "XYZ Ltd",address: "456 Oak Ave, Town, 67890",diff --git a/src/utils/url-compression.ts b/src/utils/url-compression.tsindex f6a50f6..d217350 100644--- a/src/utils/url-compression.ts+++ b/src/utils/url-compression.ts@@ -15,7 +15,7 @@ import type {/*** Type that extracts all possible keys from InvoiceData and its nested objects*/-export type AllInvoiceKeys =+type AllInvoiceKeys =// Root level InvoiceData keys| keyof InvoiceData// Invoice number object keys