-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update react-pdf from 4.0.5 to 5.7.2
This update provides version 2.12.313 of pdfjs-dist. This version resolves rendering issues with some PDFs. BREAKING CHANGE: This update requires the two changes above in your application if you use the `Viewer` to display PDF. You can find more detail in `Viewer` documentation : https://docs.cozy.io/cozy-ui/react/#!/Viewer Before : - react-pdf alias : `react-pdf/dist/esm/entry.webpack` - public import for pdf worker : `react-pdf/dist/pdf.worker.entry.js` After : - react-pdf alias : `react-pdf/dist/esm/entry.webpack` - public import for pdf worker : `react-pdf/dist/esm/pdf.worker.entry`
- Loading branch information
Showing
3 changed files
with
67 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2855,6 +2855,11 @@ | |
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.5.tgz#dcce4430e64b443ba8945f0290fb564ad5bac6dd" | ||
integrity sha512-7+2BITlgjgDhH0vvwZU/HZJVyk+2XUlvxXe8dFMedNX/aMkaOq++rMAFXc0tM7ij15QaWlbdQASBR9dihi+bDQ== | ||
|
||
"@types/json-schema@^7.0.8": | ||
version "7.0.11" | ||
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.11.tgz#d421b6c527a3037f7c84433fd2c4229e016863d3" | ||
integrity sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ== | ||
|
||
"@types/json-schema@^7.0.9": | ||
version "7.0.10" | ||
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.10.tgz#9b05b7896166cd00e9cbd59864853abf65d9ac23" | ||
|
@@ -3394,6 +3399,11 @@ ajv-keywords@^3.1.0, ajv-keywords@^3.4.1: | |
resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.4.1.tgz#ef916e271c64ac12171fd8384eaae6b2345854da" | ||
integrity sha512-RO1ibKvd27e6FEShVFfPALuHI3WjSVNeK5FIsmme/LYRNxjKuNj+Dt7bucLa6NdSv3JcVTyMlm9kGR84z1XpaQ== | ||
|
||
ajv-keywords@^3.5.2: | ||
version "3.5.2" | ||
resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.5.2.tgz#31f29da5ab6e00d1c2d329acf7b5929614d5014d" | ||
integrity sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ== | ||
|
||
ajv@^6.1.0, ajv@^6.10.2, ajv@^6.12.2, ajv@^6.9.1: | ||
version "6.12.3" | ||
resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.3.tgz#18c5af38a111ddeb4f2697bd78d68abc1cabd706" | ||
|
@@ -3404,7 +3414,7 @@ ajv@^6.1.0, ajv@^6.10.2, ajv@^6.12.2, ajv@^6.9.1: | |
json-schema-traverse "^0.4.1" | ||
uri-js "^4.2.2" | ||
|
||
ajv@^6.10.0, ajv@^6.12.3, ajv@^6.12.4: | ||
ajv@^6.10.0, ajv@^6.12.3, ajv@^6.12.4, ajv@^6.12.5: | ||
version "6.12.6" | ||
resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" | ||
integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== | ||
|
@@ -8184,6 +8194,14 @@ file-entry-cache@^6.0.1: | |
dependencies: | ||
flat-cache "^3.0.4" | ||
|
||
file-loader@^6.0.0: | ||
version "6.2.0" | ||
resolved "https://registry.yarnpkg.com/file-loader/-/file-loader-6.2.0.tgz#baef7cf8e1840df325e4390b4484879480eebe4d" | ||
integrity sha512-qo3glqyTa61Ytg4u73GultjHGjdRyig3tG6lPtyX/jOEJvHif9uB0/OCI2Kif6ctF3caQTW2G5gym21oAsI4pw== | ||
dependencies: | ||
loader-utils "^2.0.0" | ||
schema-utils "^3.0.0" | ||
|
||
filename-regex@^2.0.0: | ||
version "2.0.1" | ||
resolved "https://registry.yarnpkg.com/filename-regex/-/filename-regex-2.0.1.tgz#c1c4b9bee3e09725ddb106b75c1e301fe2f18b26" | ||
|
@@ -11875,7 +11893,7 @@ loader-utils@^0.2.16: | |
json5 "^0.5.0" | ||
object-assign "^4.0.1" | ||
|
||
loader-utils@^1.0.0, loader-utils@^1.0.2, loader-utils@^1.1.0, loader-utils@^1.2.3: | ||
loader-utils@^1.0.2, loader-utils@^1.1.0, loader-utils@^1.2.3: | ||
version "1.4.0" | ||
resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-1.4.0.tgz#c579b5e34cb34b1a74edc6c1fb36bfa371d5a613" | ||
integrity sha512-qH0WSMBtn/oHuwjy/NucEgbx5dbxxnxup9s4PVXJUDHZBQY+s0NWA9rJf53RBnQZxfch7euUui7hpoAPvALZdA== | ||
|
@@ -12049,11 +12067,6 @@ lodash.merge@^4.6.2: | |
resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" | ||
integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== | ||
|
||
lodash.once@^4.1.1: | ||
version "4.1.1" | ||
resolved "https://registry.yarnpkg.com/lodash.once/-/lodash.once-4.1.1.tgz#0dd3971213c7c56df880977d504c88fb471a97ac" | ||
integrity sha1-DdOXEhPHxW34gJd9UEyI+0cal6w= | ||
|
||
lodash.pick@^4.2.1: | ||
version "4.4.0" | ||
resolved "https://registry.yarnpkg.com/lodash.pick/-/lodash.pick-4.4.0.tgz#52f05610fff9ded422611441ed1fc123a03001b3" | ||
|
@@ -12192,6 +12205,11 @@ magic-string@^0.25.2: | |
dependencies: | ||
sourcemap-codec "^1.4.4" | ||
|
||
make-cancellable-promise@^1.0.0: | ||
version "1.2.1" | ||
resolved "https://registry.yarnpkg.com/make-cancellable-promise/-/make-cancellable-promise-1.2.1.tgz#b644fbc1ead91ef4968ac63da762476a462732ac" | ||
integrity sha512-nigEn7brgUhjUb2lEobWUW4ZiJdIZ/Wct0UsmDsqaZhgLMvY1OC6FGLa/5SU2RvnyuilkjM7g5JGxt6CJZQGNw== | ||
|
||
make-dir@^1.0.0: | ||
version "1.3.0" | ||
resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-1.3.0.tgz#79c1033b80515bd6d24ec9933e860ca75ee27f0c" | ||
|
@@ -12476,9 +12494,9 @@ meow@^8.0.0: | |
yargs-parser "^20.2.3" | ||
|
||
merge-class-names@^1.1.1: | ||
version "1.2.0" | ||
resolved "https://registry.yarnpkg.com/merge-class-names/-/merge-class-names-1.2.0.tgz#cb30ecfc3bdbd96b6f76d0a98777907e5fbb3462" | ||
integrity sha512-ifHxhC8DojHT1rG3PHCaJYInUqPd0WO+PxsaYDMkgy7RzfyOFtnlpr/hbhki+m/3R/ujIRVnZkD/AHjgjb5uhg== | ||
version "1.4.2" | ||
resolved "https://registry.yarnpkg.com/merge-class-names/-/merge-class-names-1.4.2.tgz#78d6d95ab259e7e647252a7988fd25a27d5a8835" | ||
integrity sha512-bOl98VzwCGi25Gcn3xKxnR5p/WrhWFQB59MS/aGENcmUc6iSm96yrFDF0XSNurX9qN4LbJm0R9kfvsQ17i8zCw== | ||
|
||
merge-deep@^3.0.2: | ||
version "3.0.2" | ||
|
@@ -12501,6 +12519,13 @@ [email protected]: | |
dependencies: | ||
is-plain-obj "^1.1" | ||
|
||
merge-refs@^1.0.0: | ||
version "1.1.3" | ||
resolved "https://registry.yarnpkg.com/merge-refs/-/merge-refs-1.1.3.tgz#9acf9ac86cb32dfdd3004f9c25fe2f4ff035874a" | ||
integrity sha512-di/iXo7YUDHs38KoIROE2BQvL6xmqiKYpNQSM0NG2jdvikvhJOeihXXyOXXMKkoMxdCXF2SvyxTJ92NuRA5wfA== | ||
dependencies: | ||
"@types/react" "*" | ||
|
||
merge-stream@^2.0.0: | ||
version "2.0.0" | ||
resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" | ||
|
@@ -13121,11 +13146,6 @@ node-emoji@^1.11.0: | |
dependencies: | ||
lodash "^4.17.21" | ||
|
||
node-ensure@^0.0.0: | ||
version "0.0.0" | ||
resolved "https://registry.yarnpkg.com/node-ensure/-/node-ensure-0.0.0.tgz#ecae764150de99861ec5c810fd5d096b183932a7" | ||
integrity sha1-7K52QVDemYYexcgQ/V0Jaxg5Mqc= | ||
|
||
[email protected], node-fetch@^2.6.7: | ||
version "2.6.7" | ||
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.7.tgz#24de9fba827e3b4ae44dc8b20256a379160052ad" | ||
|
@@ -14443,13 +14463,10 @@ pbkdf2@^3.0.3: | |
safe-buffer "^5.0.1" | ||
sha.js "^2.4.8" | ||
|
||
[email protected]: | ||
version "2.1.266" | ||
resolved "https://registry.yarnpkg.com/pdfjs-dist/-/pdfjs-dist-2.1.266.tgz#cded02268b389559e807f410d2a729db62160026" | ||
integrity sha512-Jy7o1wE3NezPxozexSbq4ltuLT0Z21ew/qrEiAEeUZzHxMHGk4DUV1D7RuCXg5vJDvHmjX1YssN+we9QfRRgXQ== | ||
dependencies: | ||
node-ensure "^0.0.0" | ||
worker-loader "^2.0.0" | ||
[email protected]: | ||
version "2.12.313" | ||
resolved "https://registry.yarnpkg.com/pdfjs-dist/-/pdfjs-dist-2.12.313.tgz#62f2273737bb956267ae2e02cdfaddcb1099819c" | ||
integrity sha512-1x6iXO4Qnv6Eb+YFdN5JdUzt4pAkxSp3aLAYPX93eQCyg/m7QFzXVWJHJVtoW48CI8HCXju4dSkhQZwoheL5mA== | ||
|
||
pend@~1.2.0: | ||
version "1.2.0" | ||
|
@@ -15991,17 +16008,21 @@ react-markdown@^4.2.2: | |
unist-util-visit "^1.3.0" | ||
xtend "^4.0.1" | ||
|
||
react-pdf@^4.0.5: | ||
version "4.0.5" | ||
resolved "https://registry.yarnpkg.com/react-pdf/-/react-pdf-4.0.5.tgz#4f5584005a504cb7941b01670b40355f4706b726" | ||
integrity sha512-hoIL08qU5pU1fNEx6NnLl3omD08LAUc+UkmxGXEql/PXiNWjMZHWlu8MSVg9pwSTN6dXtfky0gehrisWvSOrCg== | ||
react-pdf@^5.7.2: | ||
version "5.7.2" | ||
resolved "https://registry.yarnpkg.com/react-pdf/-/react-pdf-5.7.2.tgz#c458dedf7983822668b40dcac1eae052c1f6e056" | ||
integrity sha512-hdDwvf007V0i2rPCqQVS1fa70CXut17SN3laJYlRHzuqcu8sLLjEoeXihty6c0Ev5g1mw31b8OT8EwRw1s8C4g== | ||
dependencies: | ||
"@babel/runtime" "^7.0.0" | ||
lodash.once "^4.1.1" | ||
file-loader "^6.0.0" | ||
make-cancellable-promise "^1.0.0" | ||
make-event-props "^1.1.0" | ||
merge-class-names "^1.1.1" | ||
pdfjs-dist "2.1.266" | ||
merge-refs "^1.0.0" | ||
pdfjs-dist "2.12.313" | ||
prop-types "^15.6.2" | ||
tiny-invariant "^1.0.0" | ||
tiny-warning "^1.0.0" | ||
|
||
react-popper@^2.2.3: | ||
version "2.2.3" | ||
|
@@ -17396,6 +17417,15 @@ schema-utils@^2.6.5: | |
ajv "^6.12.2" | ||
ajv-keywords "^3.4.1" | ||
|
||
schema-utils@^3.0.0: | ||
version "3.1.1" | ||
resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-3.1.1.tgz#bc74c4b6b6995c1d88f76a8b77bea7219e0c8281" | ||
integrity sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw== | ||
dependencies: | ||
"@types/json-schema" "^7.0.8" | ||
ajv "^6.12.5" | ||
ajv-keywords "^3.5.2" | ||
|
||
section-iterator@^2.0.0: | ||
version "2.0.0" | ||
resolved "https://registry.yarnpkg.com/section-iterator/-/section-iterator-2.0.0.tgz#bf444d7afeeb94ad43c39ad2fb26151627ccba2a" | ||
|
@@ -18911,12 +18941,17 @@ timsort@^0.3.0: | |
resolved "https://registry.yarnpkg.com/timsort/-/timsort-0.3.0.tgz#405411a8e7e6339fe64db9a234de11dc31e02bd4" | ||
integrity sha1-QFQRqOfmM5/mTbmiNN4R3DHgK9Q= | ||
|
||
tiny-invariant@^1.0.0: | ||
version "1.3.1" | ||
resolved "https://registry.yarnpkg.com/tiny-invariant/-/tiny-invariant-1.3.1.tgz#8560808c916ef02ecfd55e66090df23a4b7aa642" | ||
integrity sha512-AD5ih2NlSssTCwsMznbvwMZpJ1cbhkGd2uueNxzv2jDlEeZdU04JQfRnggJQ8DrcVBGjAsCKwFBbDlVNtEMlzw== | ||
|
||
tiny-relative-date@^1.3.0: | ||
version "1.3.0" | ||
resolved "https://registry.yarnpkg.com/tiny-relative-date/-/tiny-relative-date-1.3.0.tgz#fa08aad501ed730f31cc043181d995c39a935e07" | ||
integrity sha512-MOQHpzllWxDCHHaDno30hhLfbouoYlOI8YlMNtvKe1zXbjEVhbcEovQxvZrPvtiYW630GQDoMMarCnjfyfHA+A== | ||
|
||
tiny-warning@^1.0.2: | ||
tiny-warning@^1.0.0, tiny-warning@^1.0.2: | ||
version "1.0.3" | ||
resolved "https://registry.yarnpkg.com/tiny-warning/-/tiny-warning-1.0.3.tgz#94a30db453df4c643d0fd566060d60a875d84754" | ||
integrity sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA== | ||
|
@@ -20318,14 +20353,6 @@ worker-farm@^1.7.0: | |
dependencies: | ||
errno "~0.1.7" | ||
|
||
worker-loader@^2.0.0: | ||
version "2.0.0" | ||
resolved "https://registry.yarnpkg.com/worker-loader/-/worker-loader-2.0.0.tgz#45fda3ef76aca815771a89107399ee4119b430ac" | ||
integrity sha512-tnvNp4K3KQOpfRnD20m8xltE3eWh89Ye+5oj7wXEEHKac1P4oZ6p9oTj8/8ExqoSBnk9nu5Pr4nKfQ1hn2APJw== | ||
dependencies: | ||
loader-utils "^1.0.0" | ||
schema-utils "^0.4.0" | ||
|
||
worker-rpc@^0.1.0: | ||
version "0.1.1" | ||
resolved "https://registry.yarnpkg.com/worker-rpc/-/worker-rpc-0.1.1.tgz#cb565bd6d7071a8f16660686051e969ad32f54d5" | ||
|