Skip to content

Commit

Permalink
chore: bump react-pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
diegomura committed Sep 23, 2024
1 parent 897b6dd commit d876a67
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 85 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@fortawesome/react-fontawesome": "^0.1.14",
"@mdx-js/loader": "^1.5.1",
"@next/mdx": "^9.1.1",
"@react-pdf/renderer": "^3.4.5",
"@react-pdf/renderer": "^4.0.0",
"@vercel/analytics": "^1.1.1",
"add": "^2.0.6",
"buble": "^0.19.3",
Expand Down
5 changes: 3 additions & 2 deletions src/components/Layout/VersionPicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ const Popup = styled.div`
}
`;

const VersionPicker = ({ selected = 'v3' }) => {
const VersionPicker = ({ selected = 'v4' }) => {
const [menuOpen, toggleMenu] = useToggle(false);

const onItemClick = (v) => {
const hostname = location.hostname.replace(/^(v\d\.)/, '')
const subdomain = v === 'v3' ? '' : `${v}.` ;
const subdomain = v === 'v4' ? '' : `${v}.` ;
const url = `${location.protocol}//${subdomain}${hostname}:${location.port}${location.pathname}`;

window.location.replace(url);
Expand All @@ -87,6 +87,7 @@ const VersionPicker = ({ selected = 'v3' }) => {
<div onClick={() => onItemClick('v1')}>v1</div>
<div onClick={() => onItemClick('v2')}>v2</div>
<div onClick={() => onItemClick('v3')}>v3</div>
<div onClick={() => onItemClick('v4')}>v4</div>
</Popup>
</Wrapper>
);
Expand Down
164 changes: 82 additions & 82 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -518,139 +518,139 @@
resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-13.5.6.tgz#4a3e2a206251abc729339ba85f60bc0433c2865d"
integrity sha512-Cqfe1YmOS7k+5mGu92nl5ULkzpKuxJrP3+4AEuPmrpFZ3BHxTY3TnHmU1On3bFmFFs6FbTcdF58CCUProGpIGQ==

"@react-pdf/fns@2.2.1":
version "2.2.1"
resolved "https://registry.yarnpkg.com/@react-pdf/fns/-/fns-2.2.1.tgz#04fe664a6f70214569c9c27e249e3395836f37d5"
integrity sha512-s78aDg0vDYaijU5lLOCsUD+qinQbfOvcNeaoX9AiE7+kZzzCo6B/nX+l48cmt9OosJmvZvE9DWR9cLhrhOi2pA==
"@react-pdf/fns@3.0.0":
version "3.0.0"
resolved "https://registry.yarnpkg.com/@react-pdf/fns/-/fns-3.0.0.tgz#2e0137d48b14c531b2f6a9214cb36ea2a7aea3ba"
integrity sha512-ICbIWR93PE6+xf2Xd/fXYO1dAuiOAJaszEuGGv3wp5lLSeeelDXlEYLh6R05okxh28YqMzc0Qd85x6n6MtaLUQ==
dependencies:
"@babel/runtime" "^7.20.13"

"@react-pdf/font@^2.5.2":
version "2.5.2"
resolved "https://registry.yarnpkg.com/@react-pdf/font/-/font-2.5.2.tgz#4a2fcaac3b55470a2727387ec28937b54cba0d77"
integrity sha512-Ud0EfZ2FwrbvwAWx8nz+KKLmiqACCH9a/N/xNDOja0e/YgSnqTpuyHegFBgIMKjuBtO5dNvkb4dXkxAhGe/ayw==
"@react-pdf/font@^3.0.0":
version "3.0.0"
resolved "https://registry.yarnpkg.com/@react-pdf/font/-/font-3.0.0.tgz#3d017e04544eea2c5546fdf711ecfeec7bb7c63d"
integrity sha512-/SYEud06maGQiAD0H6J5xnqigKm/FpLKqFYH6+2OjQ2tb32nnKqwqL3pS7glDTFYBJ11B6fVgSNex6tc1V8UDA==
dependencies:
"@babel/runtime" "^7.20.13"
"@react-pdf/types" "^2.6.0"
"@react-pdf/types" "^2.7.0"
cross-fetch "^3.1.5"
fontkit "^2.0.2"
is-url "^1.2.4"

"@react-pdf/image@^2.3.6":
version "2.3.6"
resolved "https://registry.yarnpkg.com/@react-pdf/image/-/image-2.3.6.tgz#72444842517f8b0c08bbf4c216d8b41110498d16"
integrity sha512-7iZDYZrZlJqNzS6huNl2XdMcLFUo68e6mOdzQeJ63d5eApdthhSHBnkGzHfLhH5t8DCpZNtClmklzuLL63ADfw==
"@react-pdf/image@^3.0.0":
version "3.0.0"
resolved "https://registry.yarnpkg.com/@react-pdf/image/-/image-3.0.0.tgz#5a8c96821c4a12c2150a9484b414b7b909c24c1e"
integrity sha512-l4HV5NutPw52Wbuvxol0BiFc6TkKXK/kJNwVIElphw47nwfueLEjIfBxRTuOeHmpdibvEh3a5STwYmMTQjXSxg==
dependencies:
"@babel/runtime" "^7.20.13"
"@react-pdf/png-js" "^2.3.1"
"@react-pdf/png-js" "^3.0.0"
cross-fetch "^3.1.5"
jay-peg "^1.0.2"
jay-peg "^1.1.0"

"@react-pdf/layout@^3.13.0":
version "3.13.0"
resolved "https://registry.yarnpkg.com/@react-pdf/layout/-/layout-3.13.0.tgz#2ef1423f32e891b5ec24f2d9d5c2daad4da01c66"
integrity sha512-lpPj/EJYHFOc0ALiJwLP09H28B4ADyvTjxOf67xTF+qkWd+dq1vg7dw3wnYESPnWk5T9NN+HlUenJqdYEY9AvA==
"@react-pdf/layout@^4.0.0":
version "4.0.0"
resolved "https://registry.yarnpkg.com/@react-pdf/layout/-/layout-4.0.0.tgz#fc736ab3e18e65610662f86b520a4b88156d3ee3"
integrity sha512-BNipDwULk9ehvf0V5HLrP2QIujkfj2LzHs8yfCQ/Z8TkAX6dEt1AgwDttBpBLfzcu8w8HFjgpLR1TNOTXiOsAQ==
dependencies:
"@babel/runtime" "^7.20.13"
"@react-pdf/fns" "2.2.1"
"@react-pdf/image" "^2.3.6"
"@react-pdf/pdfkit" "^3.2.0"
"@react-pdf/primitives" "^3.1.1"
"@react-pdf/stylesheet" "^4.3.0"
"@react-pdf/textkit" "^4.4.1"
"@react-pdf/types" "^2.6.0"
"@react-pdf/fns" "3.0.0"
"@react-pdf/image" "^3.0.0"
"@react-pdf/pdfkit" "^4.0.0"
"@react-pdf/primitives" "^4.0.0"
"@react-pdf/stylesheet" "^5.0.0"
"@react-pdf/textkit" "^5.0.0"
"@react-pdf/types" "^2.7.0"
cross-fetch "^3.1.5"
emoji-regex "^10.3.0"
queue "^6.0.1"
yoga-layout "^2.0.1"
yoga-layout "^3.1.0"

"@react-pdf/pdfkit@^3.2.0":
version "3.2.0"
resolved "https://registry.yarnpkg.com/@react-pdf/pdfkit/-/pdfkit-3.2.0.tgz#d4a088b8cc61c35512dc885e67ff2c6058518bea"
integrity sha512-OBfCcnTC6RpD9uv9L2woF60Zj1uQxhLFzTBXTdcYE9URzPE/zqXIyzpXEA4Vf3TFbvBCgFE2RzJ2ZUS0asq7yA==
"@react-pdf/pdfkit@^4.0.0":
version "4.0.0"
resolved "https://registry.yarnpkg.com/@react-pdf/pdfkit/-/pdfkit-4.0.0.tgz#8dbbfc8e546ebd0b76e88bd525fd6bec43c19df4"
integrity sha512-HaaAoBpoRGJ6c1ZOANNQZ3q6Ehmagqa8n40x+OZ5s9HcmUviZ34SCm+QBa42s1o4299M+Lgw3UoqpW7sHv3/Hg==
dependencies:
"@babel/runtime" "^7.20.13"
"@react-pdf/png-js" "^2.3.1"
"@react-pdf/png-js" "^3.0.0"
browserify-zlib "^0.2.0"
crypto-js "^4.2.0"
fontkit "^2.0.2"
jay-peg "^1.0.2"
jay-peg "^1.1.0"
vite-compatible-readable-stream "^3.6.1"

"@react-pdf/png-js@^2.3.1":
version "2.3.1"
resolved "https://registry.yarnpkg.com/@react-pdf/png-js/-/png-js-2.3.1.tgz#5381d5443ac1134e98fc446fa1debb45950665bc"
integrity sha512-pEZ18I4t1vAUS4lmhvXPmXYP4PHeblpWP/pAlMMRkEyP7tdAeHUN7taQl9sf9OPq7YITMY3lWpYpJU6t4CZgZg==
"@react-pdf/png-js@^3.0.0":
version "3.0.0"
resolved "https://registry.yarnpkg.com/@react-pdf/png-js/-/png-js-3.0.0.tgz#c0b7dc7c77e36f0830e9b7bccca7ddd64ada1c5e"
integrity sha512-eSJnEItZ37WPt6Qv5pncQDxLJRK15eaRwPT+gZoujP548CodenOVp49GST8XJvKMFt9YqIBzGBV/j9AgrOQzVA==
dependencies:
browserify-zlib "^0.2.0"

"@react-pdf/primitives@^3.1.1":
version "3.1.1"
resolved "https://registry.yarnpkg.com/@react-pdf/primitives/-/primitives-3.1.1.tgz#45a3253806fa61046f3821b8553bfee3cd848d14"
integrity sha512-miwjxLwTnO3IjoqkTVeTI+9CdyDggwekmSLhVCw+a/7FoQc+gF3J2dSKwsHvAcVFM0gvU8mzCeTofgw0zPDq0w==
"@react-pdf/primitives@^4.0.0":
version "4.0.0"
resolved "https://registry.yarnpkg.com/@react-pdf/primitives/-/primitives-4.0.0.tgz#0a710664923547c315386e82a643e58008612844"
integrity sha512-yp4E0rDL03NaUp/CnDBz3HQNfH2Mzdlgku57yhTMGNzetwB0NJusXcjYg5XsTGIXnR7Tv80JKI4O4ajj+oaLeQ==

"@react-pdf/render@^3.5.0":
version "3.5.0"
resolved "https://registry.yarnpkg.com/@react-pdf/render/-/render-3.5.0.tgz#1be1f7ca280473680ce4f11e90b697e2c635ad16"
integrity sha512-gFOpnyqCgJ6l7VzfJz6rG1i2S7iVSD8bUHDjPW9Mze8TmyksHzN2zBH3y7NbsQOw1wU6hN4NhRmslrsn+BRDPA==
"@react-pdf/render@^4.0.0":
version "4.0.0"
resolved "https://registry.yarnpkg.com/@react-pdf/render/-/render-4.0.0.tgz#ee368153328cc644c47427d4baf04928634bedca"
integrity sha512-gvrw4HM9RocuDLd+19cvP2xaSs3h4OgYn2N6VDXzj6LYQnoHBAazRV9qMpGi8FuNlQ3Va+s82R1ynXYMr0FXIg==
dependencies:
"@babel/runtime" "^7.20.13"
"@react-pdf/fns" "2.2.1"
"@react-pdf/primitives" "^3.1.1"
"@react-pdf/textkit" "^4.4.1"
"@react-pdf/types" "^2.6.0"
"@react-pdf/fns" "3.0.0"
"@react-pdf/primitives" "^4.0.0"
"@react-pdf/textkit" "^5.0.0"
"@react-pdf/types" "^2.7.0"
abs-svg-path "^0.1.1"
color-string "^1.9.1"
normalize-svg-path "^1.1.0"
parse-svg-path "^0.1.2"
svg-arc-to-cubic-bezier "^3.2.0"

"@react-pdf/renderer@^3.4.5":
version "3.4.5"
resolved "https://registry.yarnpkg.com/@react-pdf/renderer/-/renderer-3.4.5.tgz#e369149d12815b53934183353fcfcee2386fb862"
integrity sha512-O1N8q45bTs7YuC+x9afJSKQWDYQy2RjoCxlxEGdbCwP+WD5G6dWRUWXlc8F0TtzU3uFglYMmDab2YhXTmnVN9g==
"@react-pdf/renderer@^4.0.0":
version "4.0.0"
resolved "https://registry.yarnpkg.com/@react-pdf/renderer/-/renderer-4.0.0.tgz#cb858789e40a67181ec5d34b1162f123b7a4c7ae"
integrity sha512-yDObqmnF08Mwc24W8axmT/y+JPxJkweVQ/EM3GOXh0qyZN5VP5JvKDiCqmftI6QEKfvTFNsquuEQm13GBjkbMg==
dependencies:
"@babel/runtime" "^7.20.13"
"@react-pdf/font" "^2.5.2"
"@react-pdf/layout" "^3.13.0"
"@react-pdf/pdfkit" "^3.2.0"
"@react-pdf/primitives" "^3.1.1"
"@react-pdf/render" "^3.5.0"
"@react-pdf/types" "^2.6.0"
"@react-pdf/font" "^3.0.0"
"@react-pdf/layout" "^4.0.0"
"@react-pdf/pdfkit" "^4.0.0"
"@react-pdf/primitives" "^4.0.0"
"@react-pdf/render" "^4.0.0"
"@react-pdf/types" "^2.7.0"
events "^3.3.0"
object-assign "^4.1.1"
prop-types "^15.6.2"
queue "^6.0.1"
scheduler "^0.17.0"

"@react-pdf/stylesheet@^4.3.0":
version "4.3.0"
resolved "https://registry.yarnpkg.com/@react-pdf/stylesheet/-/stylesheet-4.3.0.tgz#3b0ad11e8d304347c8de5caacaa708f16d4a0473"
integrity sha512-x7IVZOqRrUum9quuDeFXBveXwBht+z/6B0M+z4a4XjfSg1vZVvzoTl07Oa1yvQ/4yIC5yIkG2TSMWeKnDB+hrw==
"@react-pdf/stylesheet@^5.0.0":
version "5.0.0"
resolved "https://registry.yarnpkg.com/@react-pdf/stylesheet/-/stylesheet-5.0.0.tgz#ad3633d0806159e03802407f362639a387642823"
integrity sha512-FrJXUMsvSGee13gpL82HOhhk16y3IKxLmYvmJU1ZUo9Jm9pLydnHDPlSUDK+rKmxdSD2X+twUR7sv6FlrA5i+A==
dependencies:
"@babel/runtime" "^7.20.13"
"@react-pdf/fns" "2.2.1"
"@react-pdf/types" "^2.6.0"
"@react-pdf/fns" "3.0.0"
"@react-pdf/types" "^2.7.0"
color-string "^1.9.1"
hsl-to-hex "^1.0.0"
media-engine "^1.0.3"
postcss-value-parser "^4.1.0"

"@react-pdf/textkit@^4.4.1":
version "4.4.1"
resolved "https://registry.yarnpkg.com/@react-pdf/textkit/-/textkit-4.4.1.tgz#b4e4181ea7d4269c54a1794d4022b55c5135f0e7"
integrity sha512-Jl9wdTqIvJ5pX+vAGz0EOhP7ut5Two9H6CzTKo/YYPeD79cM2yTXF3JzTERBC28y7LR0Waq9D2LHQjI+b/EYUQ==
"@react-pdf/textkit@^5.0.0":
version "5.0.0"
resolved "https://registry.yarnpkg.com/@react-pdf/textkit/-/textkit-5.0.0.tgz#b1e07db36c8427644b81723a8491380fdfd59b63"
integrity sha512-+K6zkF6lDXHIZZ9nNzplJ48IrjXNGQqVfO5v73AsutHbvx44E62t46EeoGLHsmjGeMG70TooSI1Mwq/7f/5tLw==
dependencies:
"@babel/runtime" "^7.20.13"
"@react-pdf/fns" "2.2.1"
"@react-pdf/fns" "3.0.0"
bidi-js "^1.0.2"
hyphen "^1.6.4"
unicode-properties "^1.4.1"

"@react-pdf/types@^2.6.0":
version "2.6.0"
resolved "https://registry.yarnpkg.com/@react-pdf/types/-/types-2.6.0.tgz#0fee340bc7acd09bac9e3c860b95aec1a38b6806"
integrity sha512-iRF5WX6uek9rud/t6TC5srH8f80siGICNh0KvvV1+YoNVJfvpwQW4BEuG4C0VSQbZU0qkA/OLZthFoYyiCqmcg==
"@react-pdf/types@^2.7.0":
version "2.7.0"
resolved "https://registry.yarnpkg.com/@react-pdf/types/-/types-2.7.0.tgz#56a0232ce420c313fe67cef193cbf57870a01477"
integrity sha512-7KrPPCpgRPKR+g+T127PE4bpw9Q84ZiY07EYRwXKVtTEVW9wJ5BZiF9smT9IvH19s+MQaDLmYRgjESsnqlyH0Q==

"@swc/[email protected]":
version "0.5.2"
Expand Down Expand Up @@ -1595,10 +1595,10 @@ isomorphic-fetch@^2.1.1:
node-fetch "^1.0.1"
whatwg-fetch ">=0.10.0"

jay-peg@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/jay-peg/-/jay-peg-1.0.2.tgz#17a54d386e472f5f313f3d6e88770b170ea569f4"
integrity sha512-fyV3NVvv6pTys/3BTapBUGAWAuU9rM2gRcgijZHzptd5KKL+s+S7hESFN+wOsbDH1MzFwdlRAXi0aGxS6uiMKg==
jay-peg@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/jay-peg/-/jay-peg-1.1.0.tgz#5cc2bc7a3023f62fcd862b97472263e308f6a3c6"
integrity sha512-WhyKySfx5CEFoKDnpmHyJUrpX5fUrr/X3kqVHISmiO9jrJC73RQBOAZJB8bDrWT4PHEkl0QgNZLlWJfAWAIFew==
dependencies:
restructure "^3.0.0"

Expand Down Expand Up @@ -2806,10 +2806,10 @@ yaml@^1.7.2:
resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.10.2.tgz#2301c5ffbf12b467de8da2333a459e29e7920e4b"
integrity sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==

yoga-layout@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/yoga-layout/-/yoga-layout-2.0.1.tgz#4bc686abe2464f977866650ddccc1dbcf9f0d03c"
integrity sha512-tT/oChyDXelLo2A+UVnlW9GU7CsvFMaEnd9kVFsaiCQonFAXd3xrHhkLYu+suwwosrAEQ746xBU+HvYtm1Zs2Q==
yoga-layout@^3.1.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/yoga-layout/-/yoga-layout-3.1.0.tgz#04d00d7c2160635640dc79b48e7e4fc6a2fba2b2"
integrity sha512-auzJ8lEovThZIpR8wLGWNo/JEj4VTO79q9/gOJ0dWb3shAYPFdX3t9VN0fC0v+jeQF77STUdCzebLwRMqzn5gQ==

zwitch@^1.0.0:
version "1.0.5"
Expand Down

0 comments on commit d876a67

Please sign in to comment.