From 058334020b48540d5f23fed9e5f3fbc96ba37bcd Mon Sep 17 00:00:00 2001 From: cballevre Date: Thu, 21 Nov 2024 17:39:59 +0100 Subject: [PATCH 1/8] feat: Update cozy-intent from 2.18.0 to 2.29.1 --- package.json | 2 +- yarn.lock | 16 ++++++++++++---- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index c11260d9..982204e5 100644 --- a/package.json +++ b/package.json @@ -81,7 +81,7 @@ "cozy-doctypes": "1.85.4", "cozy-flags": "3.0.1", "cozy-harvest-lib": "^30.0.0", - "cozy-intent": "^2.18.0", + "cozy-intent": "2.29.1", "cozy-keys-lib": "6.0.0", "cozy-logger": "1.9.1", "cozy-pouch-link": "^44.0.0", diff --git a/yarn.lock b/yarn.lock index 94e93659..1f60d6d8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6331,11 +6331,12 @@ cozy-harvest-lib@^30.0.0: use-deep-compare-effect "^1.8.1" uuid "^3.3.2" -cozy-intent@^2.18.0: - version "2.18.0" - resolved "https://registry.yarnpkg.com/cozy-intent/-/cozy-intent-2.18.0.tgz#9a1f0f3017f45d7b7c86710e01326f9b08ae69d8" - integrity sha512-iTt26OGLY9YwolJnu9Ylct8NCap6lE8rxF7ftK0RYEr/i2/hQHcoMZ2gEHXabyoPqLE6NynsJ9xYlKbdFUb+VA== +cozy-intent@2.29.1: + version "2.29.1" + resolved "https://registry.yarnpkg.com/cozy-intent/-/cozy-intent-2.29.1.tgz#929d6dfe1e7d619ed5d62447483c5899914b04ed" + integrity sha512-Es+7WkPU+mkrMM1RDjuVXZqWeXEYXo0xLZinEBJIYyTrz/gopLLztHcrjfL4bglKqAt9XTdDxrT1KxsenDd1bw== dependencies: + cozy-minilog "^3.9.1" post-me "0.4.5" cozy-interapp@^0.5.4: @@ -6459,6 +6460,13 @@ cozy-logger@^1.3.0: chalk "^2.4.2" json-stringify-safe "5.0.1" +cozy-minilog@^3.9.1: + version "3.9.1" + resolved "https://registry.yarnpkg.com/cozy-minilog/-/cozy-minilog-3.9.1.tgz#8a89743664145da7b1808d78cc53daacaa97e758" + integrity sha512-UwtNfRWKIWpNA4NK2MovPvUalijmYpFk726r1zxLlMixRTBtHTqVZtEcDF+3PrE5o5UiUAUC8Z+MWiz3ivstbw== + dependencies: + microee "0.0.6" + cozy-pouch-link@^44.0.0: version "44.0.0" resolved "https://registry.yarnpkg.com/cozy-pouch-link/-/cozy-pouch-link-44.0.0.tgz#e68996872536419f1a7670dbf497f05a15c61640" From 53c2eeb51c72fd45600ae0a307de30423bc98df3 Mon Sep 17 00:00:00 2001 From: cballevre Date: Thu, 21 Nov 2024 17:42:57 +0100 Subject: [PATCH 2/8] feat: Update cozy-ui from 111.12.0 to 113.3.0 --- package.json | 2 +- yarn.lock | 148 ++++----------------------------------------------- 2 files changed, 11 insertions(+), 139 deletions(-) diff --git a/package.json b/package.json index 982204e5..b5fa4e96 100644 --- a/package.json +++ b/package.json @@ -90,7 +90,7 @@ "cozy-scripts": "^8.2.0", "cozy-sharing": "^16.0.0", "cozy-stack-client": "^48.16.0", - "cozy-ui": "^111.12.0", + "cozy-ui": "113.3.0", "date-fns": "1.30.1", "justified-layout": "2.1.2", "kd-tree-javascript": "1.0.3", diff --git a/yarn.lock b/yarn.lock index 1f60d6d8..adc144a9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3564,11 +3564,6 @@ resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.6.tgz#f4c7ec43e81b319a9815115031709f26987891f0" integrity sha512-3c+yGKvVP5Y9TYBEibGNR+kLtijnj7mYrXRg+WpFb2X9xm04g/DXYkfg4hmzJQosc9snFNUPkbYIhu+KAm6jJw== -"@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" @@ -3599,11 +3594,6 @@ resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz#d3357479a0fdfdd5907fe67e17e0a85c906e1301" integrity sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw== -"@types/parse-json@^4.0.0": - version "4.0.0" - resolved "https://registry.yarnpkg.com/@types/parse-json/-/parse-json-4.0.0.tgz#2f8bb441434d163b35fb8ffdccd7138927ffb8c0" - integrity sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA== - "@types/prettier@^2.0.0": version "2.4.4" resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.4.4.tgz#5d9b63132df54d8909fce1c3f8ca260fdd693e17" @@ -4030,7 +4020,7 @@ ajv-keywords@^3.1.0, ajv-keywords@^3.4.1, ajv-keywords@^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.0, ajv@^6.10.2, ajv@^6.12.3, ajv@^6.12.4, ajv@^6.12.5, ajv@^6.9.1: +ajv@^6.1.0, ajv@^6.10.0, ajv@^6.10.2, ajv@^6.12.3, ajv@^6.12.4, ajv@^6.9.1: version "6.12.6" resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== @@ -4495,13 +4485,6 @@ axios-retry@^4.5.0: dependencies: is-retry-allowed "^2.2.0" -axios@^0.21.1: - version "0.21.4" - resolved "https://registry.yarnpkg.com/axios/-/axios-0.21.4.tgz#c67b90dc0568e5c1cf2b0b858c43ba28e2eda575" - integrity sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg== - dependencies: - follow-redirects "^1.14.0" - axios@^1.7.5: version "1.7.7" resolved "https://registry.yarnpkg.com/axios/-/axios-1.7.7.tgz#2f554296f9892a72ac8d8e4c5b79c14a91d0a47f" @@ -5170,13 +5153,6 @@ builtins@^1.0.3: resolved "https://registry.yarnpkg.com/builtins/-/builtins-1.0.3.tgz#cb94faeb61c8696451db36534e1422f94f0aee88" integrity sha1-y5T662HIaWRR2zZTThQi+U8K7og= -bundlemon-utils@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/bundlemon-utils/-/bundlemon-utils-0.4.0.tgz#52220218faf11f985cce0951ecbd158969d54fec" - integrity sha512-BqYhoCgkPNgdN3ORpj2Xqphj+OQ4iHGBqq9KfM2aQpj+RAauVS2F0EAe77ZXpme2JLbLJq6MyrUOHoeXvB2lGA== - dependencies: - bytes "^3.1.0" - bundlemon-utils@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/bundlemon-utils/-/bundlemon-utils-2.0.1.tgz#c1c31365432da9ab1f6b703e1f486d3d989cb283" @@ -5201,22 +5177,6 @@ bundlemon@3.1.0: micromatch "^4.0.8" yup "^0.32.11" -bundlemon@^1.3.2: - version "1.3.2" - resolved "https://registry.yarnpkg.com/bundlemon/-/bundlemon-1.3.2.tgz#164a038b1f4e8f520119367d3ba3b11a2372d19d" - integrity sha512-Mc2OWqZK2rJge6htxeFtK6imjgyOPn8mniH7RcqUv4GLeNG7LWbu+p9QNbW2tEWtuk+AKhkBZdlNCdo1KP4v8Q== - dependencies: - axios "^0.21.1" - brotli-size "^4.0.0" - bundlemon-utils "^0.4.0" - bytes "^3.1.0" - chalk "^4.1.1" - commander "^8.0.0" - cosmiconfig "^7.0.0" - gzip-size "^6.0.0" - micromatch "^4.0.4" - yup "^0.32.11" - bytes@3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.0.0.tgz#d32815404d689699f85a4ea4fa8755dd13a96048" @@ -5414,7 +5374,7 @@ chalk@3, chalk@^3.0.0: ansi-styles "^4.1.0" supports-color "^7.1.0" -chalk@^4.0.0, chalk@^4.1.0, chalk@^4.1.1: +chalk@^4.0.0, chalk@^4.1.0: version "4.1.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== @@ -5859,11 +5819,6 @@ commander@^2.18.0, commander@^2.20.0: resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== -commander@^8.0.0: - version "8.3.0" - resolved "https://registry.yarnpkg.com/commander/-/commander-8.3.0.tgz#4837ea1b2da67b9c616a67afbb0fafee567bca66" - integrity sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww== - commondir@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b" @@ -6073,17 +6028,6 @@ cosmiconfig@^5.0.0: js-yaml "^3.13.1" parse-json "^4.0.0" -cosmiconfig@^7.0.0: - version "7.0.1" - resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-7.0.1.tgz#714d756522cace867867ccb4474c5d01bbae5d6d" - integrity sha512-a1YWNUV2HwGimB7dU2s1wUMurNKjpx60HxBB6xUM8Re+2s1g1IIfJvFR0/iCF+XHdE0GMTKTuLR32UQff4TEyQ== - dependencies: - "@types/parse-json" "^4.0.0" - import-fresh "^3.2.1" - parse-json "^5.0.0" - path-type "^4.0.0" - yaml "^1.10.0" - cosmiconfig@^8.3.6: version "8.3.6" resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-8.3.6.tgz#060a2b871d66dba6c8538ea1118ba1ac16f5fae3" @@ -6604,16 +6548,15 @@ cozy-tsconfig@1.2.0: resolved "https://registry.yarnpkg.com/cozy-tsconfig/-/cozy-tsconfig-1.2.0.tgz#17e61f960f139fae4d26cbac2254b9ab632b269e" integrity sha512-TRHnY9goF3FzVlUbP7BcHxuN2XAA4AmppT4fHHZmTKaSwYTByVR1Al+riFMDbce94kJZ1wzl9WNLWQuqzGZ6Cw== -cozy-ui@^111.12.0: - version "111.12.0" - resolved "https://registry.yarnpkg.com/cozy-ui/-/cozy-ui-111.12.0.tgz#c0db5fa110037ab0c3d364a55adf504091b4fb98" - integrity sha512-JmQUA9ysnJWsSf4eaVqdaMYV8IgmzNVOlVLwMSVCRzs5lerRnVZZ3KDBW78pyrx4Au6k0ijnAct3su5hUOTldA== +cozy-ui@113.3.0: + version "113.3.0" + resolved "https://registry.yarnpkg.com/cozy-ui/-/cozy-ui-113.3.0.tgz#2acd1818a329ec4b8288ca7d603db8580f4ce249" + integrity sha512-D3SMBVBCIA4FFyoiqYeduJtRASlKaLgHAFJ0dSZ4mTc1GcBX++86Y2fU5WcohAtmLtdDoWPD2J4GdhcrzEvYdw== dependencies: "@babel/runtime" "^7.3.4" "@material-ui/core" "4.12.3" "@material-ui/lab" "^4.0.0-alpha.61" "@popperjs/core" "^2.4.4" - bundlemon "^1.3.2" chart.js "3.7.1" classnames "^2.2.5" cozy-interapp "^0.5.4" @@ -6629,7 +6572,6 @@ cozy-ui@^111.12.0: piwik-react-router "0.12.1" react-chartjs-2 "4.1.0" react-markdown "^4.0.8" - react-pdf "^5.7.2" react-popper "^2.2.3" react-remove-scroll "^2.4.0" react-select "^4.3.0" @@ -8715,14 +8657,6 @@ file-loader@3.0.1: loader-utils "^1.0.2" schema-utils "^1.0.0" -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" - file-type@^16.5.0: version "16.5.4" resolved "https://registry.yarnpkg.com/file-type/-/file-type-16.5.4.tgz#474fb4f704bee427681f98dd390058a172a6c2fd" @@ -8909,7 +8843,7 @@ flush-write-stream@^1.0.0: inherits "^2.0.3" readable-stream "^2.3.6" -follow-redirects@^1.0.0, follow-redirects@^1.14.0: +follow-redirects@^1.0.0: version "1.14.8" resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.8.tgz#016996fb9a11a100566398b1c6839337d7bfa8fc" integrity sha512-1x0S9UVJHsQprFcEC/qnNzBLcIxsjAV905f/UkQxbclCsoTWlacCNOpQa/anodLl2uaEKFhfWOvM2Qg77+15zA== @@ -12333,11 +12267,6 @@ lz-string@^1.4.4: resolved "https://registry.yarnpkg.com/lz-string/-/lz-string-1.5.0.tgz#c1ab50f77887b712621201ba9fd4e3a6ed099941" integrity sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ== -make-cancellable-promise@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/make-cancellable-promise/-/make-cancellable-promise-1.0.0.tgz#826214115b0827ca7a45ba204df7c31546243870" - integrity sha512-+YO6Grg2uy/z8Mv3uV90OP6yAUHIF43YGgEFbejmBrK9VWFsVO6DvzFMcopXr9wCNg3/QIltIKiSCROC7zFB2g== - make-dir@^1.0.0: version "1.3.0" resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-1.3.0.tgz#79c1033b80515bd6d24ec9933e860ca75ee27f0c" @@ -12360,11 +12289,6 @@ make-dir@^3.0.0, make-dir@^3.0.2: dependencies: semver "^6.0.0" -make-event-props@^1.1.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/make-event-props/-/make-event-props-1.2.0.tgz#96b87d88919533b8f8934b58b4c3d5679459a0cf" - integrity sha512-BmWFkm/jZzVH9A0tEBdkjAARUz/eha+5IRyfOndeSMKRadkgR5DawoBHoRwLxkYmjJOI5bHkXKpaZocxj+dKgg== - makeerror@1.0.12: version "1.0.12" resolved "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.12.tgz#3e5dd2079a82e812e983cc6610c4a2cb0eaa801a" @@ -12483,11 +12407,6 @@ memorystream@^0.3.1: resolved "https://registry.yarnpkg.com/memorystream/-/memorystream-0.3.1.tgz#86d7090b30ce455d63fbae12dda51a47ddcaf9b2" integrity sha1-htcJCzDORV1j+64S3aUaR93K+bI= -merge-class-names@^1.1.1: - version "1.3.0" - resolved "https://registry.yarnpkg.com/merge-class-names/-/merge-class-names-1.3.0.tgz#c4cdc1a981a81dd9afc27aa4287e912a337c5dee" - integrity sha512-k0Qaj36VBpKgdc8c188LEZvo6v/zzry/FUufwopWbMSp6/knfVFU/KIB55/hJjeIpg18IH2WskXJCRnM/1BrdQ== - merge-descriptors@1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.1.tgz#b00aaa556dd8b44568150ec9d1b953f3f90cbb61" @@ -12500,13 +12419,6 @@ merge-options@1.0.1: 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" @@ -12857,9 +12769,9 @@ msgpack5@^4.0.2: readable-stream "^2.3.6" safe-buffer "^5.1.2" -"mui-bottom-sheet@https://github.com/cozy/mui-bottom-sheet.git#v1.0.9": +"mui-bottom-sheet@git+https://github.com/cozy/mui-bottom-sheet.git#v1.0.9": version "1.0.8" - resolved "https://github.com/cozy/mui-bottom-sheet.git#3dc4c2a245ab39079bc2f73546bccf80847be14c" + resolved "git+https://github.com/cozy/mui-bottom-sheet.git#3dc4c2a245ab39079bc2f73546bccf80847be14c" dependencies: "@juggle/resize-observer" "^3.1.3" jest-environment-jsdom-sixteen "^1.0.3" @@ -13830,11 +13742,6 @@ pdf-lib@1.17.1: pako "^1.0.11" tslib "^1.11.1" -pdfjs-dist@2.12.313: - version "2.12.313" - resolved "https://registry.yarnpkg.com/pdfjs-dist/-/pdfjs-dist-2.12.313.tgz#62f2273737bb956267ae2e02cdfaddcb1099819c" - integrity sha512-1x6iXO4Qnv6Eb+YFdN5JdUzt4pAkxSp3aLAYPX93eQCyg/m7QFzXVWJHJVtoW48CI8HCXju4dSkhQZwoheL5mA== - peek-readable@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/peek-readable/-/peek-readable-4.1.0.tgz#4ece1111bf5c2ad8867c314c81356847e8a62e72" @@ -14903,22 +14810,6 @@ react-measure@2.5.2: prop-types "^15.6.2" resize-observer-polyfill "^1.5.0" -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" - file-loader "^6.0.0" - make-cancellable-promise "^1.0.0" - make-event-props "^1.1.0" - merge-class-names "^1.1.1" - 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" resolved "https://registry.yarnpkg.com/react-popper/-/react-popper-2.2.3.tgz#33d425fa6975d4bd54d9acd64897a89d904b9d97" @@ -15904,15 +15795,6 @@ schema-utils@^2.6.5: ajv "^6.12.4" ajv-keywords "^3.5.2" -schema-utils@^3.0.0: - version "3.1.2" - resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-3.1.2.tgz#36c10abca6f7577aeae136c804b0c741edeadc99" - integrity sha512-pvjEHOgWc9OWA/f/DE3ohBWTD6EleVLf7iFUkoSwAxttdBhB9QUebQgxER2kWueOvRJXPHNnyrvvh9eZINB8Eg== - dependencies: - "@types/json-schema" "^7.0.8" - ajv "^6.12.5" - ajv-keywords "^3.5.2" - script-ext-html-webpack-plugin@2.1.3: version "2.1.3" resolved "https://registry.yarnpkg.com/script-ext-html-webpack-plugin/-/script-ext-html-webpack-plugin-2.1.3.tgz#b4bf703cddbe3de2e6f483e19dfeba2b5ec4abfe" @@ -17181,12 +17063,7 @@ timers-browserify@^2.0.4: dependencies: setimmediate "^1.0.4" -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-warning@^1.0.0, tiny-warning@^1.0.2: +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== @@ -18615,11 +18492,6 @@ yallist@^4.0.0: resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== -yaml@^1.10.0: - version "1.10.2" - resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.10.2.tgz#2301c5ffbf12b467de8da2333a459e29e7920e4b" - integrity sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg== - yargs-parser@^11.1.1: version "11.1.1" resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-11.1.1.tgz#879a0865973bca9f6bab5cbdf3b1c67ec7d3bcf4" From 337dc881d9cd859a7246dbba61e2fb49923fb1d4 Mon Sep 17 00:00:00 2001 From: cballevre Date: Thu, 21 Nov 2024 17:44:57 +0100 Subject: [PATCH 3/8] feat: Update cozy-client from 48.25.0 to 51.3.0 --- package.json | 4 ++-- yarn.lock | 42 +++++++++++++++++++++--------------------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/package.json b/package.json index b5fa4e96..136fc4a5 100644 --- a/package.json +++ b/package.json @@ -75,7 +75,7 @@ "cozy-authentication": "2.10.10", "cozy-bar": "^15.0.0", "cozy-ci": "0.5.2", - "cozy-client": "^48.25.0", + "cozy-client": "51.3.0", "cozy-client-js": "0.20.0", "cozy-device-helper": "^2.5.0", "cozy-doctypes": "1.85.4", @@ -89,7 +89,7 @@ "cozy-scanner": "^7.0.0", "cozy-scripts": "^8.2.0", "cozy-sharing": "^16.0.0", - "cozy-stack-client": "^48.16.0", + "cozy-stack-client": "51.0.0", "cozy-ui": "113.3.0", "date-fns": "1.30.1", "justified-layout": "2.1.2", diff --git a/yarn.lock b/yarn.lock index adc144a9..4ab4833f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6129,16 +6129,16 @@ cozy-client@41.2.0, cozy-client@^41.2.0: sift "^6.0.0" url-search-params-polyfill "^8.0.0" -cozy-client@^44.0.0: - version "44.0.0" - resolved "https://registry.yarnpkg.com/cozy-client/-/cozy-client-44.0.0.tgz#83a38d4e7098e896ed719aaf92a2edcf7ecc96e8" - integrity sha512-vNVz/9az/BWGNl0ONXkFzWLAlk07XLE9z4Drt2oSnTx86ysMRkySiJz0Y5e8HhMwQh8gmjt6wi5dqtYMYvak/w== +cozy-client@51.3.0: + version "51.3.0" + resolved "https://registry.yarnpkg.com/cozy-client/-/cozy-client-51.3.0.tgz#a0272d6f51bf118773334d6545e88e9ec60a1b97" + integrity sha512-YgylGXNTGzOtWcBZA21D6fb8DBkkXqUHfHjJxZUl6wU6Orbf7lpdtZut1FzIynMgicwQG5ZZLoVTLXLCN8eKfg== dependencies: "@cozy/minilog" "1.0.0" "@types/jest" "^26.0.20" "@types/lodash" "^4.14.170" btoa "^1.2.1" - cozy-stack-client "^44.0.0" + cozy-stack-client "^51.0.0" date-fns "2.29.3" json-stable-stringify "^1.0.1" lodash "^4.17.13" @@ -6154,16 +6154,16 @@ cozy-client@^44.0.0: sift "^6.0.0" url-search-params-polyfill "^8.0.0" -cozy-client@^48.25.0: - version "48.25.0" - resolved "https://registry.yarnpkg.com/cozy-client/-/cozy-client-48.25.0.tgz#8676cdeb1e4b3bc808421de304653e10982ff9f3" - integrity sha512-bAmSWPS7+5AwJxDnudBMvgaBGyU/D+qZANz23oz+ie7HNC7u/thCthrpEk80RCbuNyCuepZM0+FF7lPwfzgtzg== +cozy-client@^44.0.0: + version "44.0.0" + resolved "https://registry.yarnpkg.com/cozy-client/-/cozy-client-44.0.0.tgz#83a38d4e7098e896ed719aaf92a2edcf7ecc96e8" + integrity sha512-vNVz/9az/BWGNl0ONXkFzWLAlk07XLE9z4Drt2oSnTx86ysMRkySiJz0Y5e8HhMwQh8gmjt6wi5dqtYMYvak/w== dependencies: "@cozy/minilog" "1.0.0" "@types/jest" "^26.0.20" "@types/lodash" "^4.14.170" btoa "^1.2.1" - cozy-stack-client "^48.16.0" + cozy-stack-client "^44.0.0" date-fns "2.29.3" json-stable-stringify "^1.0.1" lodash "^4.17.13" @@ -6516,6 +6516,15 @@ cozy-sharing@^16.0.0: react-tooltip "^3.11.1" snarkdown "^2.0.0" +cozy-stack-client@51.0.0, cozy-stack-client@^51.0.0: + version "51.0.0" + resolved "https://registry.yarnpkg.com/cozy-stack-client/-/cozy-stack-client-51.0.0.tgz#73fbdb1cf8efc46cb89ad2266d04e1289a9ae355" + integrity sha512-ToaheKT0cziulvAxUl+H8mqmSXQmblCp6a5TKNnrEHOS3ExTmzOHmIgNrRDgDKi4G8hK93CZTi8gj49ffk0HYw== + dependencies: + detect-node "^2.0.4" + mime "^2.4.0" + qs "^6.7.0" + cozy-stack-client@^41.2.0: version "41.2.0" resolved "https://registry.yarnpkg.com/cozy-stack-client/-/cozy-stack-client-41.2.0.tgz#0844c2680a6a5c70dba5caccaa2dbd23a78c3c20" @@ -6534,15 +6543,6 @@ cozy-stack-client@^44.0.0: mime "^2.4.0" qs "^6.7.0" -cozy-stack-client@^48.16.0: - version "48.16.0" - resolved "https://registry.yarnpkg.com/cozy-stack-client/-/cozy-stack-client-48.16.0.tgz#e8820197a0eb640e2d9061e21fad430ca5e56065" - integrity sha512-JgXAsmXESCfbC+T2EiXzUoPiDNFf2ePzNFQK98ZbWorAj8G6DcggdcG83/eD4QCwmv/1jXTaUWI1euTQdYEDQg== - dependencies: - detect-node "^2.0.4" - mime "^2.4.0" - qs "^6.7.0" - cozy-tsconfig@1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/cozy-tsconfig/-/cozy-tsconfig-1.2.0.tgz#17e61f960f139fae4d26cbac2254b9ab632b269e" @@ -12769,9 +12769,9 @@ msgpack5@^4.0.2: readable-stream "^2.3.6" safe-buffer "^5.1.2" -"mui-bottom-sheet@git+https://github.com/cozy/mui-bottom-sheet.git#v1.0.9": +"mui-bottom-sheet@https://github.com/cozy/mui-bottom-sheet.git#v1.0.9": version "1.0.8" - resolved "git+https://github.com/cozy/mui-bottom-sheet.git#3dc4c2a245ab39079bc2f73546bccf80847be14c" + resolved "https://github.com/cozy/mui-bottom-sheet.git#3dc4c2a245ab39079bc2f73546bccf80847be14c" dependencies: "@juggle/resize-observer" "^3.1.3" jest-environment-jsdom-sixteen "^1.0.3" From 3ba689dffd6dbddd04f9ca563b7415e805a0ad46 Mon Sep 17 00:00:00 2001 From: cballevre Date: Thu, 21 Nov 2024 17:49:10 +0100 Subject: [PATCH 4/8] feat: Update cozy-bar from 15.0.0 to 16.0.1 --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 136fc4a5..351a2003 100644 --- a/package.json +++ b/package.json @@ -73,7 +73,7 @@ "@sentry/react": "7.118.0", "classnames": "2.3.1", "cozy-authentication": "2.10.10", - "cozy-bar": "^15.0.0", + "cozy-bar": "16.0.1", "cozy-ci": "0.5.2", "cozy-client": "51.3.0", "cozy-client-js": "0.20.0", diff --git a/yarn.lock b/yarn.lock index 4ab4833f..fd844f08 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6064,10 +6064,10 @@ cozy-authentication@2.10.10: snarkdown "1.2.2" url-polyfill "1.1.7" -cozy-bar@^15.0.0: - version "15.0.0" - resolved "https://registry.yarnpkg.com/cozy-bar/-/cozy-bar-15.0.0.tgz#781d07c1ac759b57cebb8af8d64b8f8ab425706a" - integrity sha512-T5D2Me0gmp4SDMvDBfR7V3E1IYAo1Adby7jUr9bk+aouyte4uz+KnAyEdgp6VXWBnbfUvAfqwBpTdwDzjaHXvQ== +cozy-bar@16.0.1: + version "16.0.1" + resolved "https://registry.yarnpkg.com/cozy-bar/-/cozy-bar-16.0.1.tgz#1dc75cd4d23384777e6bbe7a068aacad3d1c0318" + integrity sha512-2B+bwKy+7WNR51HcXq+M1zie5epj8bdLQux3Ca/zBajAeCVBTfHPStywHh/KM758FpTN2b2z4P65/cjJ7O504Q== dependencies: hammerjs "2.0.8" lodash.debounce "4.0.8" From 4a133dc67a39e7388d5d9290fb49c045e371af30 Mon Sep 17 00:00:00 2001 From: cballevre Date: Thu, 21 Nov 2024 17:51:06 +0100 Subject: [PATCH 5/8] feat: Update cozy-flags from 3.0.1 to 4.6.1 --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 351a2003..9fdf4abe 100644 --- a/package.json +++ b/package.json @@ -79,7 +79,7 @@ "cozy-client-js": "0.20.0", "cozy-device-helper": "^2.5.0", "cozy-doctypes": "1.85.4", - "cozy-flags": "3.0.1", + "cozy-flags": "4.6.1", "cozy-harvest-lib": "^30.0.0", "cozy-intent": "2.29.1", "cozy-keys-lib": "6.0.0", diff --git a/yarn.lock b/yarn.lock index fd844f08..fcbb4cbc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6240,10 +6240,10 @@ cozy-doctypes@^1.91.1: lodash "^4.17.19" prop-types "^15.7.2" -cozy-flags@3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/cozy-flags/-/cozy-flags-3.0.1.tgz#ffb0f3e57f6e3d631f8fa420e866f0eacddd222a" - integrity sha512-+uvrrzchRxg2+M0a9uoCEJCLDLwe1DdmTgXlu56zFagqMQGCxgLSHLL7MrP/8cjt9LjgzVdqO4Mg+mDtAIqc/g== +cozy-flags@4.6.1: + version "4.6.1" + resolved "https://registry.yarnpkg.com/cozy-flags/-/cozy-flags-4.6.1.tgz#81eb05c8a77f4cd8f67be404248bed6d2853f2be" + integrity sha512-UW0+I78wUnPyDaP/bWEVSQTPh4nSJBFFeFOl8nm79PW76xriN5GncJVvUKRFQTL1FzHo65mOrn/ltFzeaLOlhg== dependencies: microee "^0.0.6" From 9f783943da5fab394a05ae4954ac23af0135d51d Mon Sep 17 00:00:00 2001 From: cballevre Date: Thu, 21 Nov 2024 17:57:22 +0100 Subject: [PATCH 6/8] feat: Migrate cozy-devtools to its own package --- package.json | 1 + src/photos/components/Layout.jsx | 2 +- yarn.lock | 16 +++++++++++++++- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 9fdf4abe..911c130c 100644 --- a/package.json +++ b/package.json @@ -78,6 +78,7 @@ "cozy-client": "51.3.0", "cozy-client-js": "0.20.0", "cozy-device-helper": "^2.5.0", + "cozy-devtools": "^1.2.1", "cozy-doctypes": "1.85.4", "cozy-flags": "4.6.1", "cozy-harvest-lib": "^30.0.0", diff --git a/src/photos/components/Layout.jsx b/src/photos/components/Layout.jsx index a4501424..e3d69929 100755 --- a/src/photos/components/Layout.jsx +++ b/src/photos/components/Layout.jsx @@ -12,7 +12,7 @@ import Nav, { NavText, genNavLinkForV6 } from 'cozy-ui/transpiled/react/Nav' -import CozyDevtools from 'cozy-client/dist/devtools' +import CozyDevtools from 'cozy-devtools' import { ModalManager } from 'react-cozy-helpers' import { isFlagshipApp } from 'cozy-device-helper' import flag from 'cozy-flags' diff --git a/yarn.lock b/yarn.lock index fcbb4cbc..26036216 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6207,6 +6207,15 @@ cozy-device-helper@^3.1.0: dependencies: lodash "^4.17.19" +cozy-devtools@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/cozy-devtools/-/cozy-devtools-1.2.1.tgz#680976ab69ebdf2d2727cffc07243705794d1a83" + integrity sha512-6hMoeEdT3coU/LMBlwnFWrBNB6dpa6HlzB8ejHbb6pZwQtvtX6Sr4IzvCuqqd2ztjrlTZ/wivWE5sZeu+G7f0Q== + dependencies: + date-fns "2.29.3" + lodash "4.17.13" + react-inspector "5.1.1" + cozy-doctypes@1.85.4: version "1.85.4" resolved "https://registry.yarnpkg.com/cozy-doctypes/-/cozy-doctypes-1.85.4.tgz#4c1f42d5bab1f15cc7da6431f820c676f21ba036" @@ -12185,6 +12194,11 @@ lodash@4, lodash@4.17.21, lodash@^4, lodash@^4.14.2, lodash@^4.17.10, lodash@^4. resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== +lodash@4.17.13: + version "4.17.13" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.13.tgz#0bdc3a6adc873d2f4e0c4bac285df91b64fc7b93" + integrity sha512-vm3/XWXfWtRua0FkUyEHBZy8kCPjErNBT9fJx8Zvs+U6zjqPbTUOpkaoum3O5uiA8sm+yNMHXfYkTUHFoMxFNA== + lodash@4.17.19: version "4.17.19" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.19.tgz#e48ddedbe30b3321783c5b4301fbd353bc1e4a4b" @@ -14747,7 +14761,7 @@ react-input-autosize@^3.0.0: dependencies: prop-types "^15.5.8" -react-inspector@^5.1.1: +react-inspector@5.1.1, react-inspector@^5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/react-inspector/-/react-inspector-5.1.1.tgz#58476c78fde05d5055646ed8ec02030af42953c8" integrity sha512-GURDaYzoLbW8pMGXwYPDBIv6nqei4kK7LPRZ9q9HCZF54wqXz/dnylBp/kfE9XmekBhHvLDdcYeyIwSrvtOiWg== From 3aa3282858558c9f666b8cf8e9055ff985fce376 Mon Sep 17 00:00:00 2001 From: cballevre Date: Thu, 21 Nov 2024 18:05:48 +0100 Subject: [PATCH 7/8] feat: Migrate cozy-viewer to its own package --- package.json | 1 + src/photos/components/PhotosViewer.jsx | 12 ++-- src/photos/targets/browser/index.jsx | 1 + src/photos/targets/public/index.jsx | 1 + yarn.lock | 83 +++++++++++++++++++++++++- 5 files changed, 91 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 911c130c..7cc3c7cb 100644 --- a/package.json +++ b/package.json @@ -92,6 +92,7 @@ "cozy-sharing": "^16.0.0", "cozy-stack-client": "51.0.0", "cozy-ui": "113.3.0", + "cozy-viewer": "2.9.0", "date-fns": "1.30.1", "justified-layout": "2.1.2", "kd-tree-javascript": "1.0.3", diff --git a/src/photos/components/PhotosViewer.jsx b/src/photos/components/PhotosViewer.jsx index f37febe9..e56dcf1d 100644 --- a/src/photos/components/PhotosViewer.jsx +++ b/src/photos/components/PhotosViewer.jsx @@ -1,11 +1,13 @@ import React, { useMemo } from 'react' - -import Viewer from 'cozy-ui/transpiled/react/Viewer' -import FooterActionButtons from 'cozy-ui/transpiled/react/Viewer/Footer/FooterActionButtons' -import ForwardOrDownloadButton from 'cozy-ui/transpiled/react/Viewer/Footer/ForwardOrDownloadButton' -import SharingButton from 'cozy-ui/transpiled/react/Viewer/Footer/Sharing' import { useNavigate, useParams } from 'react-router-dom' + +import Viewer, { + FooterActionButtons, + ForwardOrDownloadButton, + SharingButton +} from 'cozy-viewer' import { useQuery } from 'cozy-client' + import { buildTimelineQuery, buildAlbumsQuery } from '../queries/queries' export const TimelinePhotosViewer = () => { diff --git a/src/photos/targets/browser/index.jsx b/src/photos/targets/browser/index.jsx index 8f9ead61..841fabaf 100755 --- a/src/photos/targets/browser/index.jsx +++ b/src/photos/targets/browser/index.jsx @@ -4,6 +4,7 @@ import 'cozy-ui/dist/cozy-ui.utils.min.css' import 'cozy-ui/transpiled/react/stylesheet.css' import 'cozy-bar/dist/stylesheet.css' import 'cozy-sharing/dist/stylesheet.css' +import 'cozy-viewer/dist/stylesheet.css' import 'photos/styles/main.styl' import React from 'react' diff --git a/src/photos/targets/public/index.jsx b/src/photos/targets/public/index.jsx index 9569382a..93243fc9 100644 --- a/src/photos/targets/public/index.jsx +++ b/src/photos/targets/public/index.jsx @@ -2,6 +2,7 @@ import 'cozy-ui/dist/cozy-ui.min.css' import 'cozy-ui/transpiled/react/stylesheet.css' import 'cozy-bar/dist/stylesheet.css' import 'cozy-sharing/dist/stylesheet.css' +import 'cozy-viewer/dist/stylesheet.css' import 'photos/styles/main.styl' import React from 'react' diff --git a/yarn.lock b/yarn.lock index 26036216..06765f5a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3564,6 +3564,11 @@ resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.6.tgz#f4c7ec43e81b319a9815115031709f26987891f0" integrity sha512-3c+yGKvVP5Y9TYBEibGNR+kLtijnj7mYrXRg+WpFb2X9xm04g/DXYkfg4hmzJQosc9snFNUPkbYIhu+KAm6jJw== +"@types/json-schema@^7.0.8": + version "7.0.15" + resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.15.tgz#596a1747233694d50f6ad8a7869fcb6f56cf5841" + integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA== + "@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" @@ -4020,7 +4025,7 @@ ajv-keywords@^3.1.0, ajv-keywords@^3.4.1, ajv-keywords@^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.0, ajv@^6.10.2, ajv@^6.12.3, ajv@^6.12.4, ajv@^6.9.1: +ajv@^6.1.0, ajv@^6.10.0, ajv@^6.10.2, ajv@^6.12.3, ajv@^6.12.4, ajv@^6.12.5, ajv@^6.9.1: version "6.12.6" resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== @@ -6587,6 +6592,17 @@ cozy-ui@113.3.0: react-swipeable-views "^0.13.3" rooks "^5.11.2" +cozy-viewer@2.9.0: + version "2.9.0" + resolved "https://registry.yarnpkg.com/cozy-viewer/-/cozy-viewer-2.9.0.tgz#6b847c4d794172778cc1994b3ff12787a5f1bbef" + integrity sha512-P1RkMz39EsVXH8CH2cb+ovEziZM5RlNkZhHLTqeyvHma5Nh01djcAwhbHo7/Sv1NB+aUsgl9bt+PlrYPMoPfnA== + dependencies: + classnames "^2.2.5" + hammerjs "^2.0.8" + lodash "4.17.21" + react-markdown "^4.0.8" + react-pdf "^5.7.2" + create-ecdh@^4.0.0: version "4.0.4" resolved "https://registry.yarnpkg.com/create-ecdh/-/create-ecdh-4.0.4.tgz#d6e7f4bffa66736085a0762fd3a632684dabcc4e" @@ -8666,6 +8682,14 @@ file-loader@3.0.1: loader-utils "^1.0.2" schema-utils "^1.0.0" +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" + file-type@^16.5.0: version "16.5.4" resolved "https://registry.yarnpkg.com/file-type/-/file-type-16.5.4.tgz#474fb4f704bee427681f98dd390058a172a6c2fd" @@ -12281,6 +12305,11 @@ lz-string@^1.4.4: resolved "https://registry.yarnpkg.com/lz-string/-/lz-string-1.5.0.tgz#c1ab50f77887b712621201ba9fd4e3a6ed099941" integrity sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ== +make-cancellable-promise@^1.0.0: + version "1.3.2" + resolved "https://registry.yarnpkg.com/make-cancellable-promise/-/make-cancellable-promise-1.3.2.tgz#993c8c8b79cff13c74fa93de0bd8a17fe66685c1" + integrity sha512-GCXh3bq/WuMbS+Ky4JBPW1hYTOU+znU+Q5m9Pu+pI8EoUqIHk9+tviOKC6/qhHh8C4/As3tzJ69IF32kdz85ww== + make-dir@^1.0.0: version "1.3.0" resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-1.3.0.tgz#79c1033b80515bd6d24ec9933e860ca75ee27f0c" @@ -12303,6 +12332,11 @@ make-dir@^3.0.0, make-dir@^3.0.2: dependencies: semver "^6.0.0" +make-event-props@^1.1.0: + version "1.6.2" + resolved "https://registry.yarnpkg.com/make-event-props/-/make-event-props-1.6.2.tgz#c8e0e48eb28b9b808730de38359f6341de7ec5a2" + integrity sha512-iDwf7mA03WPiR8QxvcVHmVWEPfMY1RZXerDVNCRYW7dUr2ppH3J58Rwb39/WG39yTZdRSxr3x+2v22tvI0VEvA== + makeerror@1.0.12: version "1.0.12" resolved "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.12.tgz#3e5dd2079a82e812e983cc6610c4a2cb0eaa801a" @@ -12421,6 +12455,11 @@ memorystream@^0.3.1: resolved "https://registry.yarnpkg.com/memorystream/-/memorystream-0.3.1.tgz#86d7090b30ce455d63fbae12dda51a47ddcaf9b2" integrity sha1-htcJCzDORV1j+64S3aUaR93K+bI= +merge-class-names@^1.1.1: + 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-descriptors@1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.1.tgz#b00aaa556dd8b44568150ec9d1b953f3f90cbb61" @@ -12433,6 +12472,11 @@ merge-options@1.0.1: dependencies: is-plain-obj "^1.1" +merge-refs@^1.0.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/merge-refs/-/merge-refs-1.3.0.tgz#65d7f8c5058917b9d1fc204ae4b9a727614d0119" + integrity sha512-nqXPXbso+1dcKDpPCXvwZyJILz+vSLqGGOnDrYHQYE+B8n9JTCekVLC65AfCpR4ggVyA/45Y0iR9LDyS2iI+zA== + merge-stream@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" @@ -13756,6 +13800,11 @@ pdf-lib@1.17.1: pako "^1.0.11" tslib "^1.11.1" +pdfjs-dist@2.12.313: + version "2.12.313" + resolved "https://registry.yarnpkg.com/pdfjs-dist/-/pdfjs-dist-2.12.313.tgz#62f2273737bb956267ae2e02cdfaddcb1099819c" + integrity sha512-1x6iXO4Qnv6Eb+YFdN5JdUzt4pAkxSp3aLAYPX93eQCyg/m7QFzXVWJHJVtoW48CI8HCXju4dSkhQZwoheL5mA== + peek-readable@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/peek-readable/-/peek-readable-4.1.0.tgz#4ece1111bf5c2ad8867c314c81356847e8a62e72" @@ -14824,6 +14873,22 @@ react-measure@2.5.2: prop-types "^15.6.2" resize-observer-polyfill "^1.5.0" +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" + file-loader "^6.0.0" + make-cancellable-promise "^1.0.0" + make-event-props "^1.1.0" + merge-class-names "^1.1.1" + 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" resolved "https://registry.yarnpkg.com/react-popper/-/react-popper-2.2.3.tgz#33d425fa6975d4bd54d9acd64897a89d904b9d97" @@ -15809,6 +15874,15 @@ schema-utils@^2.6.5: ajv "^6.12.4" ajv-keywords "^3.5.2" +schema-utils@^3.0.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-3.3.0.tgz#f50a88877c3c01652a15b622ae9e9795df7a60fe" + integrity sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg== + dependencies: + "@types/json-schema" "^7.0.8" + ajv "^6.12.5" + ajv-keywords "^3.5.2" + script-ext-html-webpack-plugin@2.1.3: version "2.1.3" resolved "https://registry.yarnpkg.com/script-ext-html-webpack-plugin/-/script-ext-html-webpack-plugin-2.1.3.tgz#b4bf703cddbe3de2e6f483e19dfeba2b5ec4abfe" @@ -17077,7 +17151,12 @@ timers-browserify@^2.0.4: dependencies: setimmediate "^1.0.4" -tiny-warning@^1.0.2: +tiny-invariant@^1.0.0: + version "1.3.3" + resolved "https://registry.yarnpkg.com/tiny-invariant/-/tiny-invariant-1.3.3.tgz#46680b7a873a0d5d10005995eb90a70d74d60127" + integrity sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg== + +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== From db1c9c20433336f69813b0d1966b715aa1dc961d Mon Sep 17 00:00:00 2001 From: cballevre Date: Thu, 21 Nov 2024 18:51:56 +0100 Subject: [PATCH 8/8] fix: Remove attributes for useInstanceInfo --- src/components/PushBanner/QuotaBanner.spec.jsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/components/PushBanner/QuotaBanner.spec.jsx b/src/components/PushBanner/QuotaBanner.spec.jsx index eba3b909..f671a9c4 100644 --- a/src/components/PushBanner/QuotaBanner.spec.jsx +++ b/src/components/PushBanner/QuotaBanner.spec.jsx @@ -52,15 +52,13 @@ describe('QuotaBanner', () => { useInstanceInfo.mockReturnValue({ context: { data: { - attributes: { - enable_premium_links: enablePremiumLinks, - manager_url: 'http://mycozy.cloud' - } + enable_premium_links: enablePremiumLinks, + manager_url: 'http://mycozy.cloud' } }, instance: { data: { - attributes: { uuid: hasUuid ? '123' : null } + uuid: hasUuid ? '123' : null } } })