diff --git a/package.json b/package.json index 828103965..f91bfca90 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "@mui/x-date-pickers": "^5.0.8", "@next/font": "^13.0.5", "@paypal/react-paypal-js": "^7.8.1", - "@react-pdf/renderer": "^3.0.1", + "@react-pdf/renderer": "^3.1.3", "@sentry/nextjs": "7.21.1", "@stripe/react-stripe-js": "^1.16.1", "@stripe/stripe-js": "^1.46.0", diff --git a/src/decs.d.ts b/src/decs.d.ts index 6590844df..7de23f7d1 100644 --- a/src/decs.d.ts +++ b/src/decs.d.ts @@ -1,4 +1,2 @@ declare module 'react-in-viewport' declare module 'i18next' -// Temporary solution since their types are missing the children property -declare module '@react-pdf/renderer' diff --git a/yarn.lock b/yarn.lock index f73f3c133..4cfacc543 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1988,23 +1988,23 @@ __metadata: languageName: node linkType: hard -"@react-pdf/layout@npm:^3.2.1": - version: 3.2.1 - resolution: "@react-pdf/layout@npm:3.2.1" +"@react-pdf/layout@npm:^3.3.0": + version: 3.3.0 + resolution: "@react-pdf/layout@npm:3.3.0" dependencies: "@babel/runtime": ^7.16.4 "@react-pdf/fns": 2.0.0 "@react-pdf/image": ^2.2.0 "@react-pdf/pdfkit": ^3.0.0 "@react-pdf/primitives": ^3.0.0 - "@react-pdf/stylesheet": ^4.0.0 + "@react-pdf/stylesheet": ^4.1.0 "@react-pdf/textkit": ^4.1.0 - "@react-pdf/types": ^2.1.0 - "@react-pdf/yoga": ^3.0.0 + "@react-pdf/types": ^2.2.0 + "@react-pdf/yoga": ^4.0.0 cross-fetch: ^3.1.5 emoji-regex: ^8.0.0 queue: ^6.0.1 - checksum: 2f58cf70512d0e5b52a0a900f02b1917495534f2b4e4f83a8a74809b39d494e77e76952855b8989fd06411165ac30caa7c2e96bc1e63e4bbc1064ed6d6a0cff9 + checksum: 0ecadf50b0ebdbcbe74b48bcfdbbe0fa4528bb42b0a47f36491a330d45860c8a64e67eb6fff81b18985855da29215928f8b3a36dcdc347cd93b60252ae11c516 languageName: node linkType: hard @@ -2022,6 +2022,20 @@ __metadata: languageName: node linkType: hard +"@react-pdf/pdfkit@npm:^3.0.1": + version: 3.0.1 + resolution: "@react-pdf/pdfkit@npm:3.0.1" + dependencies: + "@babel/runtime": ^7.16.4 + "@react-pdf/png-js": ^2.2.0 + browserify-zlib: ^0.2.0 + crypto-js: ^4.0.0 + fontkit: ^2.0.2 + vite-compatible-readable-stream: ^3.6.1 + checksum: d2c5a157ada00a5936b82fb559cd65edf141426edf0a5688a62f1ba3685f0800c8b35564cce461a9eacbb86d801e1966548f094d4075d24139a4f9b09f2d7b1b + languageName: node + linkType: hard + "@react-pdf/png-js@npm:^2.2.0": version: 2.2.0 resolution: "@react-pdf/png-js@npm:2.2.0" @@ -2056,38 +2070,40 @@ __metadata: languageName: node linkType: hard -"@react-pdf/renderer@npm:^3.0.1": - version: 3.0.1 - resolution: "@react-pdf/renderer@npm:3.0.1" +"@react-pdf/renderer@npm:^3.1.3": + version: 3.1.3 + resolution: "@react-pdf/renderer@npm:3.1.3" dependencies: "@babel/runtime": ^7.16.4 "@react-pdf/font": ^2.3.1 - "@react-pdf/layout": ^3.2.1 - "@react-pdf/pdfkit": ^3.0.0 + "@react-pdf/layout": ^3.3.0 + "@react-pdf/pdfkit": ^3.0.1 "@react-pdf/primitives": ^3.0.0 "@react-pdf/render": ^3.2.1 - "@react-pdf/types": ^2.1.0 + "@react-pdf/types": ^2.2.0 + loose-envify: ^1.1.0 + object-assign: ^4.1.1 + prop-types: ^15.6.2 queue: ^6.0.1 - react-reconciler: ^0.23.0 scheduler: ^0.17.0 peerDependencies: - react: ^16.8.6 || ^17.0.0 - checksum: 518945e560d8edfa22f4816af4a915a960eeedd49427a639622f22fbdca75720e8c2470dfe6eb466f91f69ea015e77422e000b56f083157721696ea3b112b76e + react: ^16.8.6 || ^17.0.0 || ^18.0.0 + checksum: e10aafe3760a53a24c032fcd499c532797886031ccab3851bc48b179cb456197b497fc8008dee736c164f352c7948ed1f17be738257af2332ab154214aa446b9 languageName: node linkType: hard -"@react-pdf/stylesheet@npm:^4.0.0": - version: 4.0.0 - resolution: "@react-pdf/stylesheet@npm:4.0.0" +"@react-pdf/stylesheet@npm:^4.1.0": + version: 4.1.0 + resolution: "@react-pdf/stylesheet@npm:4.1.0" dependencies: "@babel/runtime": ^7.16.4 "@react-pdf/fns": 2.0.0 - "@react-pdf/types": ^2.1.0 + "@react-pdf/types": ^2.2.0 color-string: ^1.5.3 hsl-to-hex: ^1.0.0 media-engine: ^1.0.3 postcss-value-parser: ^4.1.0 - checksum: 5a78b17ea291f24a9ce50530fb62d9f40b69e7f15336a79144a94ffbce240054370fcda1996e9fbfbbadb30020abae4fb59785b82e7966412734b95b3c5eeafe + checksum: 9a58e56430752aecf80ca1fb2ccd3525afaad288ace2117981abdb367b42a79fe130f1c7cb2e765fa7d47df072d82e029849ee9b989475b4d4430d21fa9da7a4 languageName: node linkType: hard @@ -2110,12 +2126,19 @@ __metadata: languageName: node linkType: hard -"@react-pdf/yoga@npm:^3.0.0": - version: 3.0.0 - resolution: "@react-pdf/yoga@npm:3.0.0" +"@react-pdf/types@npm:^2.2.0": + version: 2.2.0 + resolution: "@react-pdf/types@npm:2.2.0" + checksum: c0d5dcac934e3c6f7edbaac995445223cd083bcb6985269322114b86d735918fa1e20f7e022dc44418ed29565f45dc4e84d0c56d8db9d37058070e08c454bf72 + languageName: node + linkType: hard + +"@react-pdf/yoga@npm:^4.0.0": + version: 4.0.1 + resolution: "@react-pdf/yoga@npm:4.0.1" dependencies: - "@types/yoga-layout": ^1.9.3 - checksum: d854112020d3081afa21023cf85bf4dcad520ba7cd8d8e8f0c7cacf84b9b0d865fbafb858236cb95ae70bf6941ffb5f0ff97dccad459740a90bb75f55b1a4760 + "@babel/runtime": ^7.16.4 + checksum: 74180c52dfa1b2748bebd0d6c4e285fa47e05a700b19ab1aabd91adca5b08e45db61316d7a9fe818f7c8e6e2528eedeaaffd27b8d0576ecf932db8566e518443 languageName: node linkType: hard @@ -2784,13 +2807,6 @@ __metadata: languageName: node linkType: hard -"@types/yoga-layout@npm:^1.9.3": - version: 1.9.4 - resolution: "@types/yoga-layout@npm:1.9.4" - checksum: 48e143b691ce0489c129cbe79d1ea25c0145a1ec3cf54f4e45459d08c2cb381edebf5e3217d05b8c1f6f634582f3d713823e570fd2fe190ef19b9812aa74024e - languageName: node - linkType: hard - "@types/yup@npm:0.29.11": version: 0.29.11 resolution: "@types/yup@npm:0.29.11" @@ -8802,7 +8818,7 @@ __metadata: "@next/bundle-analyzer": ^12.1.0 "@next/font": ^13.0.5 "@paypal/react-paypal-js": ^7.8.1 - "@react-pdf/renderer": ^3.0.1 + "@react-pdf/renderer": ^3.1.3 "@sentry/nextjs": 7.21.1 "@stripe/react-stripe-js": ^1.16.1 "@stripe/stripe-js": ^1.46.0 @@ -9335,20 +9351,6 @@ __metadata: languageName: node linkType: hard -"react-reconciler@npm:^0.23.0": - version: 0.23.0 - resolution: "react-reconciler@npm:0.23.0" - dependencies: - loose-envify: ^1.1.0 - object-assign: ^4.1.1 - prop-types: ^15.6.2 - scheduler: ^0.17.0 - peerDependencies: - react: ^16.0.0 - checksum: 6bccf22c656eddecc2d7cdb9cb7cb22f89a0ce45cea6981ad8fe5b2958bcba2edd36b67d801d09b443efde6605b472e73139b4fe1eb6a415ccb6bdfd737c3741 - languageName: node - linkType: hard - "react-slick@npm:^0.29.0": version: 0.29.0 resolution: "react-slick@npm:0.29.0"