From e0b83f525fc51edb85a7e2ae90960c9fbd21829b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 27 Feb 2024 17:52:54 +0000 Subject: [PATCH 1/5] fix(deps): update dependency md-to-react-email to v5 --- packages/markdown/package.json | 2 +- pnpm-lock.yaml | 426 +-------------------------------- 2 files changed, 6 insertions(+), 422 deletions(-) diff --git a/packages/markdown/package.json b/packages/markdown/package.json index ca80a70d46..c2fb37e8f4 100644 --- a/packages/markdown/package.json +++ b/packages/markdown/package.json @@ -57,6 +57,6 @@ "typescript": "5.1.6" }, "dependencies": { - "md-to-react-email": "4.1.0" + "md-to-react-email": "5.0.0" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4ea597f870..9411f6468a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -568,8 +568,8 @@ importers: packages/markdown: dependencies: md-to-react-email: - specifier: 4.1.0 - version: 4.1.0(react-email@2.0.0)(react@18.2.0) + specifier: 5.0.0 + version: 5.0.0(react@18.2.0) react: specifier: 18.2.0 version: 18.2.0 @@ -2066,10 +2066,6 @@ packages: resolution: {integrity: sha512-Yac/bV5sBGkkEXmAX5FWPS9Mmo2rthrOPRQQNfycJPkjUAUclomCPH7QFVCDQ4Mp2k2K1SSM6m0zrxYrOwtFQw==} dev: false - /@next/env@14.0.5-canary.46: - resolution: {integrity: sha512-dvNzrArTfe3VY1VIscpb3E2e7SZ1qwFe82WGzpOVbxilT3JcsnVGYF/uq8Jj1qKWPI5C/aePNXwA97JRNAXpRQ==} - dev: false - /@next/env@14.1.0: resolution: {integrity: sha512-Py8zIo+02ht82brwwhTg36iogzFqGLPXlRGKQw5s+qP/kMNc4MAyDeEwBKDijk6zTIbegEgu8Qy7C1LboslQAw==} dev: false @@ -2089,15 +2085,6 @@ packages: dev: false optional: true - /@next/swc-darwin-arm64@14.0.5-canary.46: - resolution: {integrity: sha512-7Bq9rjWl4sq70Zkn6h6mn8/tgYTH2SQ8lIm8b/j1MAnTiJYyVBLapu//gT/cgtqx6y8SwSc2JNviBue35zeCNw==} - engines: {node: '>= 10'} - cpu: [arm64] - os: [darwin] - requiresBuild: true - dev: false - optional: true - /@next/swc-darwin-arm64@14.1.0: resolution: {integrity: sha512-nUDn7TOGcIeyQni6lZHfzNoo9S0euXnu0jhsbMOmMJUBfgsnESdjN97kM7cBqQxZa8L/bM9om/S5/1dzCrW6wQ==} engines: {node: '>= 10'} @@ -2116,15 +2103,6 @@ packages: dev: false optional: true - /@next/swc-darwin-x64@14.0.5-canary.46: - resolution: {integrity: sha512-3oI8rDVBZsfkTdqXwtRjxA85o0RIjZv9uuOLohfaIuFP3oZnCM0dRZREP2umYcFQRxdavW+TDJzYcqzKxYTujA==} - engines: {node: '>= 10'} - cpu: [x64] - os: [darwin] - requiresBuild: true - dev: false - optional: true - /@next/swc-darwin-x64@14.1.0: resolution: {integrity: sha512-1jgudN5haWxiAl3O1ljUS2GfupPmcftu2RYJqZiMJmmbBT5M1XDffjUtRUzP4W3cBHsrvkfOFdQ71hAreNQP6g==} engines: {node: '>= 10'} @@ -2143,15 +2121,6 @@ packages: dev: false optional: true - /@next/swc-linux-arm64-gnu@14.0.5-canary.46: - resolution: {integrity: sha512-gXSS328bUWxBwQfeDFROOzFSzzoyX1075JxOeArLl63sV59cbnRrwHHhD4CWG1bYYzcHxHfVugZgvyCucaHCIw==} - engines: {node: '>= 10'} - cpu: [arm64] - os: [linux] - requiresBuild: true - dev: false - optional: true - /@next/swc-linux-arm64-gnu@14.1.0: resolution: {integrity: sha512-RHo7Tcj+jllXUbK7xk2NyIDod3YcCPDZxj1WLIYxd709BQ7WuRYl3OWUNG+WUfqeQBds6kvZYlc42NJJTNi4tQ==} engines: {node: '>= 10'} @@ -2170,15 +2139,6 @@ packages: dev: false optional: true - /@next/swc-linux-arm64-musl@14.0.5-canary.46: - resolution: {integrity: sha512-7QkBRKlDsjaWGbfIKh6qJK0HiHJISNGoKpwFTcnZvlhAEaydS5Hmu0zh64kbLRlzwXtkpj6/iCwjrWnHes59aA==} - engines: {node: '>= 10'} - cpu: [arm64] - os: [linux] - requiresBuild: true - dev: false - optional: true - /@next/swc-linux-arm64-musl@14.1.0: resolution: {integrity: sha512-v6kP8sHYxjO8RwHmWMJSq7VZP2nYCkRVQ0qolh2l6xroe9QjbgV8siTbduED4u0hlk0+tjS6/Tuy4n5XCp+l6g==} engines: {node: '>= 10'} @@ -2197,15 +2157,6 @@ packages: dev: false optional: true - /@next/swc-linux-x64-gnu@14.0.5-canary.46: - resolution: {integrity: sha512-DS5wTjw3FtcLFVzRxLMJgmDNMoeaXp5qBdKUSBrKTq4zQnqUi99CGz2461DlUSxJCWPUgAVo23MdoQD6Siuk7A==} - engines: {node: '>= 10'} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: false - optional: true - /@next/swc-linux-x64-gnu@14.1.0: resolution: {integrity: sha512-zJ2pnoFYB1F4vmEVlb/eSe+VH679zT1VdXlZKX+pE66grOgjmKJHKacf82g/sWE4MQ4Rk2FMBCRnX+l6/TVYzQ==} engines: {node: '>= 10'} @@ -2224,15 +2175,6 @@ packages: dev: false optional: true - /@next/swc-linux-x64-musl@14.0.5-canary.46: - resolution: {integrity: sha512-d409ur5JGj6HFp8DBu5M2oTh5EddDcrT+vjewQkAq/A7MZoAMAOH74xOFouEnJs0/dQ71XvH9Lw+1gJSnElcyQ==} - engines: {node: '>= 10'} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: false - optional: true - /@next/swc-linux-x64-musl@14.1.0: resolution: {integrity: sha512-rbaIYFt2X9YZBSbH/CwGAjbBG2/MrACCVu2X0+kSykHzHnYH5FjHxwXLkcoJ10cX0aWCEynpu+rP76x0914atg==} engines: {node: '>= 10'} @@ -2251,15 +2193,6 @@ packages: dev: false optional: true - /@next/swc-win32-arm64-msvc@14.0.5-canary.46: - resolution: {integrity: sha512-goyh/RCFtivflIOvbwircMxTSObETufm3pcxtI8rIz9+pg/M2MmK8/z48EZybkEcPKl41xu4s1iqXThy/jDPng==} - engines: {node: '>= 10'} - cpu: [arm64] - os: [win32] - requiresBuild: true - dev: false - optional: true - /@next/swc-win32-arm64-msvc@14.1.0: resolution: {integrity: sha512-o1N5TsYc8f/HpGt39OUQpQ9AKIGApd3QLueu7hXk//2xq5Z9OxmV6sQfNp8C7qYmiOlHYODOGqNNa0e9jvchGQ==} engines: {node: '>= 10'} @@ -2278,15 +2211,6 @@ packages: dev: false optional: true - /@next/swc-win32-ia32-msvc@14.0.5-canary.46: - resolution: {integrity: sha512-SEnrOZ7ASXdd/GBq2x0IfpSbfamv1rZfcDeZZLF7kzu0pY7jDQwcW8zTKwwC8JH5CLGLfI3wD6wUYrA+PgJSCw==} - engines: {node: '>= 10'} - cpu: [ia32] - os: [win32] - requiresBuild: true - dev: false - optional: true - /@next/swc-win32-ia32-msvc@14.1.0: resolution: {integrity: sha512-XXIuB1DBRCFwNO6EEzCTMHT5pauwaSj4SWs7CYnME57eaReAKBXCnkUE80p/pAZcewm7hs+vGvNqDPacEXHVkw==} engines: {node: '>= 10'} @@ -2305,15 +2229,6 @@ packages: dev: false optional: true - /@next/swc-win32-x64-msvc@14.0.5-canary.46: - resolution: {integrity: sha512-NK1EJLyeUxgX9IHSxO0kN1Nk8VsaDfjHVYL4p9fM24e/9rG8jPcxquIQJ4Wy+ZdqxaVivqQ2eHrJYUpXpfOXmw==} - engines: {node: '>= 10'} - cpu: [x64] - os: [win32] - requiresBuild: true - dev: false - optional: true - /@next/swc-win32-x64-msvc@14.1.0: resolution: {integrity: sha512-9WEbVRRAqJ3YFVqEZIxUqkiO8l1nool1LmNxygr5HWF8AcSYsEpneUDhmjUVJEzO2A04+oPtZdombzzPPkTtgg==} engines: {node: '>= 10'} @@ -2942,174 +2857,6 @@ packages: '@babel/runtime': 7.23.1 dev: false - /@react-email/body@0.0.7(react@18.2.0): - resolution: {integrity: sha512-vjJ5P1MUNWV0KNivaEWA6MGj/I3c764qQJMsKjCHlW6mkFJ4SXbm2OlQFtKAb++Bj8LDqBlnE6oW77bWcMc0NA==} - peerDependencies: - react: 18.2.0 - dependencies: - react: 18.2.0 - dev: false - - /@react-email/button@0.0.13(react@18.2.0): - resolution: {integrity: sha512-e/y8u2odJ8fF83B+wvL2FXzVcbQSUh2Cn2JH2Ez4L6AuPELsh8s2JYo081IDsXc16IyFiYpObn0blOt7s/qp8g==} - engines: {node: '>=18.0.0'} - peerDependencies: - react: 18.2.0 - dependencies: - react: 18.2.0 - dev: false - - /@react-email/code-block@0.0.2(react@18.2.0): - resolution: {integrity: sha512-bQApEmpsvIcVYXdPCXhJB9CGCyShhn/c1JdctE/6R1uIosLbWt40evvVfp2X9STdi02Dhsjxw/AcGuQE6zGZqw==} - engines: {node: '>=18.0.0'} - peerDependencies: - react: 18.2.0 - dependencies: - prismjs: 1.29.0 - react: 18.2.0 - dev: false - - /@react-email/code-inline@0.0.1(react@18.2.0): - resolution: {integrity: sha512-SeZKTB9Q4+TUafzeUm/8tGK3dFgywUHb1od/BrAiJCo/im65aT+oJfggJLjK2jCdSsus8odcK2kReeM3/FCNTQ==} - engines: {node: '>=18.0.0'} - peerDependencies: - react: 18.2.0 - dependencies: - react: 18.2.0 - dev: false - - /@react-email/column@0.0.9(react@18.2.0): - resolution: {integrity: sha512-1ekqNBgmbS6m97/sUFOnVvQtLYljUWamw8Y44VId95v6SjiJ4ca+hMcdOteHWBH67xkRofEOWTvqDRea5SBV8w==} - engines: {node: '>=18.0.0'} - peerDependencies: - react: 18.2.0 - dependencies: - react: 18.2.0 - dev: false - - /@react-email/components@0.0.14(@types/react@18.2.33)(react@18.2.0): - resolution: {integrity: sha512-t/sNj0R9Mx9Sx5degPQcSBeWotNs7eUwiv72KN8v6fxaf87XlnMo0CPcKI/1by2DHZr5S0258ZQOO7vEFrbcLw==} - engines: {node: '>=18.0.0'} - peerDependencies: - react: 18.2.0 - dependencies: - '@react-email/body': 0.0.7(react@18.2.0) - '@react-email/button': 0.0.13(react@18.2.0) - '@react-email/code-block': 0.0.2(react@18.2.0) - '@react-email/code-inline': 0.0.1(react@18.2.0) - '@react-email/column': 0.0.9(react@18.2.0) - '@react-email/container': 0.0.11(react@18.2.0) - '@react-email/font': 0.0.5(react@18.2.0) - '@react-email/head': 0.0.7(react@18.2.0) - '@react-email/heading': 0.0.11(@types/react@18.2.33)(react@18.2.0) - '@react-email/hr': 0.0.7(react@18.2.0) - '@react-email/html': 0.0.7(react@18.2.0) - '@react-email/img': 0.0.7(react@18.2.0) - '@react-email/link': 0.0.7(react@18.2.0) - '@react-email/preview': 0.0.8(react@18.2.0) - '@react-email/render': 0.0.12 - '@react-email/row': 0.0.7(react@18.2.0) - '@react-email/section': 0.0.11(react@18.2.0) - '@react-email/tailwind': 0.0.14(react@18.2.0) - '@react-email/text': 0.0.7(react@18.2.0) - react: 18.2.0 - transitivePeerDependencies: - - '@types/react' - dev: false - - /@react-email/container@0.0.11(react@18.2.0): - resolution: {integrity: sha512-jzl/EHs0ClXIRFamfH+NR/cqv4GsJJscqRhdYtnWYuRAsWpKBM1muycrrPqIVhWvWi6sFHInWTt07jX+bDc3SQ==} - engines: {node: '>=18.0.0'} - peerDependencies: - react: 18.2.0 - dependencies: - react: 18.2.0 - dev: false - - /@react-email/font@0.0.5(react@18.2.0): - resolution: {integrity: sha512-if/qKYmH3rJ2egQJoKbV8SfKCPavu+ikUq/naT/UkCr8Q0lkk309tRA0x7fXG/WeIrmcipjMzFRGTm2TxTecDw==} - peerDependencies: - react: 18.2.0 - dependencies: - react: 18.2.0 - dev: false - - /@react-email/head@0.0.7(react@18.2.0): - resolution: {integrity: sha512-IcXL4jc0H1qzAXJCD9ajcRFBQdbUHkjKJyiUeogpaYSVZSq6cVDWQuGaI23TA9k+pI2TFeQimogUFb3Kgeeudw==} - engines: {node: '>=18.0.0'} - peerDependencies: - react: 18.2.0 - dependencies: - react: 18.2.0 - dev: false - - /@react-email/heading@0.0.11(@types/react@18.2.33)(react@18.2.0): - resolution: {integrity: sha512-EF5ZtRCxhHPw3m+8iibKKg0RAvAeHj1AP68sjU7s6+J+kvRgllr/E972Wi5Y8UvcIGossCvpX1WrSMDzeB4puA==} - engines: {node: '>=18.0.0'} - peerDependencies: - react: 18.2.0 - dependencies: - '@radix-ui/react-slot': 1.0.2(@types/react@18.2.33)(react@18.2.0) - react: 18.2.0 - transitivePeerDependencies: - - '@types/react' - dev: false - - /@react-email/hr@0.0.7(react@18.2.0): - resolution: {integrity: sha512-8suK0M/deXHt0DBSeKhSC4bnCBCBm37xk6KJh9M0/FIKlvdltQBem52YUiuqVl1XLB87Y6v6tvspn3SZ9fuxEA==} - engines: {node: '>=18.0.0'} - peerDependencies: - react: 18.2.0 - dependencies: - react: 18.2.0 - dev: false - - /@react-email/html@0.0.7(react@18.2.0): - resolution: {integrity: sha512-oy7OoRtoOKApVI/5Lz1OZptMKmMYJu9Xn6+lOmdBQchAuSdQtWJqxhrSj/iI/mm8HZWo6MZEQ6SFpfOuf8/P6Q==} - engines: {node: '>=18.0.0'} - peerDependencies: - react: 18.2.0 - dependencies: - react: 18.2.0 - dev: false - - /@react-email/img@0.0.7(react@18.2.0): - resolution: {integrity: sha512-up9tM2/dJ24u/CFjcvioKbyGuPw1yeJg605QA7VkrygEhd0CoQEjjgumfugpJ+VJgIt4ZjT9xMVCK5QWTIWoaA==} - engines: {node: '>=18.0.0'} - peerDependencies: - react: 18.2.0 - dependencies: - react: 18.2.0 - dev: false - - /@react-email/link@0.0.7(react@18.2.0): - resolution: {integrity: sha512-hXPChT3ZMyKnUSA60BLEMD2maEgyB2A37yg5bASbLMrXmsExHi6/IS1h2XiUPLDK4KqH5KFaFxi2cdNo1JOKwA==} - engines: {node: '>=18.0.0'} - peerDependencies: - react: 18.2.0 - dependencies: - react: 18.2.0 - dev: false - - /@react-email/preview@0.0.8(react@18.2.0): - resolution: {integrity: sha512-Jm0KUYBZQd2w0s2QRMQy0zfHdo3Ns+9bYSE1OybjknlvhANirjuZw9E5KfWgdzO7PyrRtB1OBOQD8//Obc4uIQ==} - engines: {node: '>=18.0.0'} - peerDependencies: - react: 18.2.0 - dependencies: - react: 18.2.0 - dev: false - - /@react-email/render@0.0.12: - resolution: {integrity: sha512-S8WRv/PqECEi6x0QJBj0asnAb5GFtJaHlnByxLETLkgJjc76cxMYDH4r9wdbuJ4sjkcbpwP3LPnVzwS+aIjT7g==} - engines: {node: '>=18.0.0'} - dependencies: - html-to-text: 9.0.5 - js-beautify: 1.14.11 - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) - dev: false - /@react-email/render@0.0.9: resolution: {integrity: sha512-nrim7wiACnaXsGtL7GF6jp3Qmml8J6vAjAH88jkC8lIbfNZaCyuPQHANjyYIXlvQeAbsWADQJFZgOHUqFqjh/A==} engines: {node: '>=18.0.0'} @@ -3120,24 +2867,6 @@ packages: react-dom: 18.2.0(react@18.2.0) dev: false - /@react-email/row@0.0.7(react@18.2.0): - resolution: {integrity: sha512-h7pwrLVGk5CIx7Ai/oPxBgCCAGY7BEpCUQ7FCzi4+eThcs5IdjSwDPefLEkwaFS8KZc56UNwTAH92kNq5B7blg==} - engines: {node: '>=18.0.0'} - peerDependencies: - react: 18.2.0 - dependencies: - react: 18.2.0 - dev: false - - /@react-email/section@0.0.11(react@18.2.0): - resolution: {integrity: sha512-3bZ/DuvX1julATI7oqYza6pOtWZgLJDBaa62LFFEvYjisyN+k6lrP2KOucPsDKu2DOkUzlQgK0FOm6VQJX+C0w==} - engines: {node: '>=18.0.0'} - peerDependencies: - react: 18.2.0 - dependencies: - react: 18.2.0 - dev: false - /@react-email/tailwind@0.0.12(react@18.2.0): resolution: {integrity: sha512-s8Ch7GL30qRKScn9NWwItMqxjtzbyUtCnXfC6sL2YTVtulbfvZZ06W+aA0S6f7fdrVlOOlQzZuK/sVaQCHhcSw==} engines: {node: '>=18.0.0'} @@ -3151,24 +2880,6 @@ packages: - ts-node dev: false - /@react-email/tailwind@0.0.14(react@18.2.0): - resolution: {integrity: sha512-SRRcm08zxrAR5XozaW0X+GAJlTJITakZe0UXBiFZDlSDBLwFMxjaGuQwccqNF0LxDnxmduxYB71mzEAqecgTZg==} - engines: {node: '>=18.0.0'} - peerDependencies: - react: 18.2.0 - dependencies: - react: 18.2.0 - dev: false - - /@react-email/text@0.0.7(react@18.2.0): - resolution: {integrity: sha512-eHCx0mdllGcgK9X7wiLKjNZCBRfxRVNjD3NNYRmOc3Icbl8M9JHriJIfxBuGCmGg2UAORK5P3KmaLQ8b99/pbA==} - engines: {node: '>=18.0.0'} - peerDependencies: - react: 18.2.0 - dependencies: - react: 18.2.0 - dev: false - /@rollup/plugin-inject@5.0.5: resolution: {integrity: sha512-2+DEJbNBoPROPkgTDNe8/1YXWcqxbN5DTjASVIOx8HS+pITXushyNiBV56RB08zuptzz8gT3YfkqriTBVycepg==} engines: {node: '>=14.0.0'} @@ -4544,22 +4255,6 @@ packages: resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==} dev: true - /autoprefixer@10.4.14(postcss@8.4.32): - resolution: {integrity: sha512-FQzyfOsTlwVzjHxKEqRIAdJx9niO6VCBCoEwax/VLSoQF29ggECcPuBqUMZ+u8jCZOPSy8b8/8KnuFbp0SaFZQ==} - engines: {node: ^10 || ^12 || >=14} - hasBin: true - peerDependencies: - postcss: ^8.1.0 - dependencies: - browserslist: 4.22.1 - caniuse-lite: 1.0.30001541 - fraction.js: 4.3.6 - normalize-range: 0.1.2 - picocolors: 1.0.0 - postcss: 8.4.32 - postcss-value-parser: 4.2.0 - dev: false - /autoprefixer@10.4.14(postcss@8.4.35): resolution: {integrity: sha512-FQzyfOsTlwVzjHxKEqRIAdJx9niO6VCBCoEwax/VLSoQF29ggECcPuBqUMZ+u8jCZOPSy8b8/8KnuFbp0SaFZQ==} engines: {node: ^10 || ^12 || >=14} @@ -7427,17 +7122,16 @@ packages: /marked@7.0.4: resolution: {integrity: sha512-t8eP0dXRJMtMvBojtkcsA7n48BkauktUKzfkPSCq85ZMTJ0v76Rke4DYz01omYpPTUh4p/f7HePgRo3ebG8+QQ==} engines: {node: '>= 16'} + hasBin: true dev: false - /md-to-react-email@4.1.0(react-email@2.0.0)(react@18.2.0): - resolution: {integrity: sha512-aQvj4dCuy0wmBVvSB377qTErlpjN5Pl61+5v+B8Z76KoxOgKhbzvK3qnO94eOsuGSWwI+9n4zb3xD3/MypxM4w==} + /md-to-react-email@5.0.0(react@18.2.0): + resolution: {integrity: sha512-GdBrBUbAAJHypnuyofYGfVos8oUslxHx69hs3CW9P0L8mS1sT6GnJuMBTlz/Fw+2widiwdavcu9UwyLF/BzZ4w==} peerDependencies: react: 18.x - react-email: '>1.9.3' dependencies: marked: 7.0.4 react: 18.2.0 - react-email: 2.0.0(@babel/core@7.23.9)(eslint@8.50.0) dev: false /md5.js@1.3.5: @@ -7654,45 +7348,6 @@ packages: - babel-plugin-macros dev: false - /next@14.0.5-canary.46(@babel/core@7.23.9)(react-dom@18.2.0)(react@18.2.0): - resolution: {integrity: sha512-u8yiAK7L+fl/U9yFmq3VOpkHlImx5wg3OoDz3qxTXhPmmMzNcPbblWgxBf5d6Z+aik8BEn27L31k/tXCRzwFxA==} - engines: {node: '>=18.17.0'} - hasBin: true - peerDependencies: - '@opentelemetry/api': ^1.1.0 - react: ^18.2.0 - react-dom: ^18.2.0 - sass: ^1.3.0 - peerDependenciesMeta: - '@opentelemetry/api': - optional: true - sass: - optional: true - dependencies: - '@next/env': 14.0.5-canary.46 - '@swc/helpers': 0.5.2 - busboy: 1.6.0 - caniuse-lite: 1.0.30001579 - graceful-fs: 4.2.11 - postcss: 8.4.31 - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) - styled-jsx: 5.1.1(@babel/core@7.23.9)(react@18.2.0) - optionalDependencies: - '@next/swc-darwin-arm64': 14.0.5-canary.46 - '@next/swc-darwin-x64': 14.0.5-canary.46 - '@next/swc-linux-arm64-gnu': 14.0.5-canary.46 - '@next/swc-linux-arm64-musl': 14.0.5-canary.46 - '@next/swc-linux-x64-gnu': 14.0.5-canary.46 - '@next/swc-linux-x64-musl': 14.0.5-canary.46 - '@next/swc-win32-arm64-msvc': 14.0.5-canary.46 - '@next/swc-win32-ia32-msvc': 14.0.5-canary.46 - '@next/swc-win32-x64-msvc': 14.0.5-canary.46 - transitivePeerDependencies: - - '@babel/core' - - babel-plugin-macros - dev: false - /next@14.1.0(@babel/core@7.23.9)(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-wlzrsbfeSU48YQBjZhDzOwhWhGsy+uQycR8bHAOt1LY1bn3zZEcDyHQOEoN3aWzQ8LHCAJ1nqrWCc9XF2+O45Q==} engines: {node: '>=18.17.0'} @@ -8253,15 +7908,6 @@ packages: picocolors: 1.0.0 source-map-js: 1.0.2 - /postcss@8.4.32: - resolution: {integrity: sha512-D/kj5JNu6oo2EIy+XL/26JEDTlIbB8hw85G8StOE6L74RQAVVP5rej6wxCNqyMbR4RkPfqvezVbPw81Ngd6Kcw==} - engines: {node: ^10 || ^12 || >=14} - dependencies: - nanoid: 3.3.7 - picocolors: 1.0.0 - source-map-js: 1.0.2 - dev: false - /postcss@8.4.35: resolution: {integrity: sha512-u5U8qYpBCpN13BsiEB0CbR1Hhh4Gc0zLFuedrHJKMctHCHAGrMdG0PRM/KErzAL3CU6/eckEtmHNB3x6e3c0vA==} engines: {node: ^10 || ^12 || >=14} @@ -8444,68 +8090,6 @@ packages: react: 18.2.0 scheduler: 0.23.0 - /react-email@2.0.0(@babel/core@7.23.9)(eslint@8.50.0): - resolution: {integrity: sha512-XzxyWkrfZC3zF9HnAjWwB823u9eTMpAQCy+SjLMtNSh4i8WuV8Fr5LriTTz/p1RRt6aXoiV3c/ZthaDt0nvBEA==} - engines: {node: '>=18.0.0'} - hasBin: true - dependencies: - '@radix-ui/colors': 1.0.1 - '@radix-ui/react-collapsible': 1.0.3(@types/react-dom@18.2.14)(@types/react@18.2.33)(react-dom@18.2.0)(react@18.2.0) - '@radix-ui/react-popover': 1.0.6(@types/react-dom@18.2.14)(@types/react@18.2.33)(react-dom@18.2.0)(react@18.2.0) - '@radix-ui/react-slot': 1.0.2(@types/react@18.2.33)(react@18.2.0) - '@radix-ui/react-toggle-group': 1.0.4(@types/react-dom@18.2.14)(@types/react@18.2.33)(react-dom@18.2.0)(react@18.2.0) - '@radix-ui/react-tooltip': 1.0.6(@types/react-dom@18.2.14)(@types/react@18.2.33)(react-dom@18.2.0)(react@18.2.0) - '@react-email/components': 0.0.14(@types/react@18.2.33)(react@18.2.0) - '@react-email/render': 0.0.12 - '@swc/core': 1.3.101 - '@types/react': 18.2.33 - '@types/react-dom': 18.2.14 - '@types/webpack': 5.28.5(@swc/core@1.3.101)(esbuild@0.19.11) - autoprefixer: 10.4.14(postcss@8.4.32) - chalk: 4.1.2 - chokidar: 3.5.3 - clsx: 2.1.0 - commander: 11.1.0 - debounce: 2.0.0 - esbuild: 0.19.11 - eslint-config-prettier: 9.0.0(eslint@8.50.0) - eslint-config-turbo: 1.10.12(eslint@8.50.0) - framer-motion: 10.17.4(react-dom@18.2.0)(react@18.2.0) - glob: 10.3.4 - log-symbols: 4.1.0 - mime-types: 2.1.35 - next: 14.0.5-canary.46(@babel/core@7.23.9)(react-dom@18.2.0)(react@18.2.0) - normalize-path: 3.0.0 - ora: 5.4.1 - postcss: 8.4.32 - prism-react-renderer: 2.1.0(react@18.2.0) - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) - shelljs: 0.8.5 - socket.io: 4.7.3 - socket.io-client: 4.7.3 - sonner: 1.3.1(react-dom@18.2.0)(react@18.2.0) - source-map-js: 1.0.2 - stacktrace-parser: 0.1.10 - tailwind-merge: 2.2.0 - tailwindcss: 3.4.0 - tree-cli: 0.6.7 - typescript: 5.1.6 - transitivePeerDependencies: - - '@babel/core' - - '@opentelemetry/api' - - '@swc/helpers' - - babel-plugin-macros - - bufferutil - - eslint - - sass - - supports-color - - ts-node - - uglify-js - - utf-8-validate - - webpack-cli - dev: false - /react-is@16.13.1: resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==} dev: true From 6a6f2fe265ddea929d0a0d98576edb7f0638ddb9 Mon Sep 17 00:00:00 2001 From: gabriel miranda Date: Tue, 27 Feb 2024 14:54:47 -0300 Subject: [PATCH 2/5] chore(markdown): Update usage of md-to-react-email according to the new v5 --- packages/markdown/src/markdown.tsx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/markdown/src/markdown.tsx b/packages/markdown/src/markdown.tsx index e6b7145de1..a1e31fa0ab 100644 --- a/packages/markdown/src/markdown.tsx +++ b/packages/markdown/src/markdown.tsx @@ -1,25 +1,22 @@ import type { StylesType } from "md-to-react-email"; -import { parseMarkdownToReactEmailJSX } from "md-to-react-email"; +import { parseMarkdownToJSX } from "md-to-react-email"; import * as React from "react"; export interface MarkdownProps { children: string; markdownCustomStyles?: StylesType; markdownContainerStyles?: React.CSSProperties; - showDataId?: boolean; } export const Markdown: React.FC = ({ children, markdownContainerStyles, markdownCustomStyles, - showDataId = false, ...props }) => { - const parsedMarkdown = parseMarkdownToReactEmailJSX({ + const parsedMarkdown = parseMarkdownToJSX({ markdown: children, - customStyles: markdownCustomStyles, - withDataAttr: showDataId, + customStyles: markdownCustomStyles }); return ( From 5bec9468cf4d357f9d04299b766dcdee7d00142f Mon Sep 17 00:00:00 2001 From: gabriel miranda Date: Tue, 27 Feb 2024 14:57:00 -0300 Subject: [PATCH 3/5] chore(markdown): Format --- packages/markdown/src/markdown.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/markdown/src/markdown.tsx b/packages/markdown/src/markdown.tsx index a1e31fa0ab..b01228de08 100644 --- a/packages/markdown/src/markdown.tsx +++ b/packages/markdown/src/markdown.tsx @@ -16,7 +16,7 @@ export const Markdown: React.FC = ({ }) => { const parsedMarkdown = parseMarkdownToJSX({ markdown: children, - customStyles: markdownCustomStyles + customStyles: markdownCustomStyles, }); return ( From f8feb5cd6563c8366c3acad5b4eee51a453679aa Mon Sep 17 00:00:00 2001 From: gabriel miranda Date: Thu, 29 Feb 2024 12:22:41 -0300 Subject: [PATCH 4/5] fix(markdown): Testing issues by using non-inline snapshots --- .../src/__snapshots__/markdown.spec.tsx.snap | 50 +++++++++++++++ packages/markdown/src/markdown.spec.tsx | 61 +++---------------- 2 files changed, 60 insertions(+), 51 deletions(-) create mode 100644 packages/markdown/src/__snapshots__/markdown.spec.tsx.snap diff --git a/packages/markdown/src/__snapshots__/markdown.spec.tsx.snap b/packages/markdown/src/__snapshots__/markdown.spec.tsx.snap new file mode 100644 index 0000000000..48761acd7e --- /dev/null +++ b/packages/markdown/src/__snapshots__/markdown.spec.tsx.snap @@ -0,0 +1,50 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[` component renders correctly > renders links in the correct format for browsers 1`] = ` +"

Link to React-email

+
" +`; + +exports[` component renders correctly > renders lists in the correct format for browsers 1`] = ` +"

Below is a list

    +
  • Item One
  • +
  • Item Two
  • +
  • Item Three
  • +
+
" +`; + +exports[` component renders correctly > renders text in the correct format for browsers 1`] = ` +"

This is sample bold text in markdown and this is italic text

+
" +`; + +exports[` component renders correctly > renders the headers in the correct format for browsers 1`] = `"

Heading 1!

Heading 2!

Heading 3!

Heading 4!

Heading 5!
Heading 6!
"`; + +exports[` component renders correctly > renders the markdown in the correct format for browsers 1`] = ` +"

Markdown Test Document

This is a test document to check the capabilities of a Markdown parser.

+

Headings

Third-Level Heading

Fourth-Level Heading

Fifth-Level Heading
Sixth-Level Heading

Text Formatting

This is some bold text and this is some italic text. You can also use strikethrough and inline code.

+

Lists

    +
  1. Ordered List Item 1
  2. +
  3. Ordered List Item 2
  4. +
  5. Ordered List Item 3
  6. +
+
    +
  • Unordered List Item 1
  • +
  • Unordered List Item 2
  • +
  • Unordered List Item 3
  • +
+

Links

Markdown Guide

+

Images

\\"Markdown

+

Blockquotes

+

This is a blockquote.

+
    +
  • Author
  • +
+
+

Code Blocks

function greet(name) {
+console.log(\`Hello, \${name}!\`);
+}
+
+
" +`; diff --git a/packages/markdown/src/markdown.spec.tsx b/packages/markdown/src/markdown.spec.tsx index 9890ffa1f3..00d12d85b1 100644 --- a/packages/markdown/src/markdown.spec.tsx +++ b/packages/markdown/src/markdown.spec.tsx @@ -4,7 +4,7 @@ import { Markdown } from "./markdown"; describe(" component renders correctly", () => { it("renders the markdown in the correct format for browsers", () => { const actualOutput = render( - + {`# Markdown Test Document This is a **test document** to check the capabilities of a Markdown parser. @@ -55,38 +55,12 @@ console.log(\`Hello, $\{name}!\`); \`\`\``} , ); - expect(actualOutput).toMatchInlineSnapshot(` -"

Markdown Test Document

This is a test document to check the capabilities of a Markdown parser.

-

Headings

Third-Level Heading

Fourth-Level Heading

Fifth-Level Heading
Sixth-Level Heading

Text Formatting

This is some bold text and this is some italic text. You can also use strikethrough and inline code.

-

Lists

    -
  1. Ordered List Item 1
  2. -
  3. Ordered List Item 2
  4. -
  5. Ordered List Item 3
  6. -
-
    -
  • Unordered List Item 1
  • -
  • Unordered List Item 2
  • -
  • Unordered List Item 3
  • -
-

Links

Markdown Guide

-

Images

\\"Markdown

-

Blockquotes

-

This is a blockquote.

-
    -
  • Author
  • -
-
-

Code Blocks

function greet(name) {
-console.log(\`Hello, \${name}!\`);
-}
-
-
" -`); + expect(actualOutput).toMatchSnapshot(); }); it("renders the headers in the correct format for browsers", () => { const actualOutput = render( - + {` # Heading 1! ## Heading 2! @@ -97,38 +71,30 @@ console.log(\`Hello, \${name}!\`); `} , ); - expect(actualOutput).toMatchInlineSnapshot( - `"

Heading 1!

Heading 2!

Heading 3!

Heading 4!

Heading 5!
Heading 6!
"`, - ); + expect(actualOutput).toMatchSnapshot(); }); it("renders text in the correct format for browsers", () => { const actualOutput = render( - + **This is sample bold text in markdown** and *this is italic text* , ); - expect(actualOutput).toMatchInlineSnapshot(` -"

This is sample bold text in markdown and this is italic text

-
" -`); + expect(actualOutput).toMatchSnapshot(); }); it("renders links in the correct format for browsers", () => { const actualOutput = render( - + Link to [React-email](https://react.email) , ); - expect(actualOutput).toMatchInlineSnapshot(` -"

Link to React-email

-
" -`); + expect(actualOutput).toMatchSnapshot(); }); it("renders lists in the correct format for browsers", () => { const actualOutput = render( - + {` # Below is a list @@ -138,13 +104,6 @@ console.log(\`Hello, \${name}!\`); `} , ); - expect(actualOutput).toMatchInlineSnapshot(` -"

Below is a list

    -
  • Item One
  • -
  • Item Two
  • -
  • Item Three
  • -
-
" -`); + expect(actualOutput).toMatchSnapshot(); }); }); From 8fb34aedb3b138005797490dc6331840010e3458 Mon Sep 17 00:00:00 2001 From: gabriel miranda Date: Thu, 29 Feb 2024 12:32:40 -0300 Subject: [PATCH 5/5] chore(markdown): Format --- packages/markdown/src/markdown.spec.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/markdown/src/markdown.spec.tsx b/packages/markdown/src/markdown.spec.tsx index 00d12d85b1..2373e9d082 100644 --- a/packages/markdown/src/markdown.spec.tsx +++ b/packages/markdown/src/markdown.spec.tsx @@ -85,9 +85,7 @@ console.log(\`Hello, $\{name}!\`); it("renders links in the correct format for browsers", () => { const actualOutput = render( - - Link to [React-email](https://react.email) - , + Link to [React-email](https://react.email), ); expect(actualOutput).toMatchSnapshot(); });