From fd0d7f14f705b4c0e5e39e76f5085ceaa7e836a1 Mon Sep 17 00:00:00 2001 From: Paul Tran-Van Date: Thu, 21 Nov 2024 09:44:01 +0100 Subject: [PATCH] feat: Upgrade cozy-bar for new flag Benefit from the new `apps.hidden` flag, to hide apps in the bar menu. This is typically done to hide the new dataproxy app used for search. --- package.json | 5 +++-- src/components/AppLayout.jsx | 2 +- yarn.lock | 40 ++++++++++++++++++++++++------------ 3 files changed, 31 insertions(+), 16 deletions(-) diff --git a/package.json b/package.json index 07f151d3..40d55058 100644 --- a/package.json +++ b/package.json @@ -79,9 +79,10 @@ "@sentry/integrations": "7.88.0", "@sentry/react": "7.119.0", "classnames": "2.5.1", - "cozy-bar": "^15.0.0", - "cozy-client": "^49.8.0", + "cozy-bar": "^16.0.1", + "cozy-client": "^51.3.0", "cozy-device-helper": "^3.0.0", + "cozy-devtools": "^1.2.1", "cozy-doctypes": "^1.90.0", "cozy-flags": "^3.2.2", "cozy-harvest-lib": "^30.3.1", diff --git a/src/components/AppLayout.jsx b/src/components/AppLayout.jsx index 2df99155..241d0ba2 100644 --- a/src/components/AppLayout.jsx +++ b/src/components/AppLayout.jsx @@ -17,7 +17,7 @@ import { import { BarComponent, BarCenter } from 'cozy-bar' import { RealTimeQueries } from 'cozy-client' import { useClient } from 'cozy-client' -import CozyDevTools from 'cozy-client/dist/devtools' +import CozyDevTools from 'cozy-devtools' import flag from 'cozy-flags' import IconSprite from 'cozy-ui/transpiled/react/Icon/Sprite' import { Layout, Main, Content } from 'cozy-ui/transpiled/react/Layout' diff --git a/yarn.lock b/yarn.lock index ae7ecef3..affa28f2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5272,10 +5272,10 @@ cozy-app-publish@^0.27.2: request "^2.88.0" tar "^4.4.13" -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" @@ -5297,16 +5297,16 @@ cozy-bi-auth@0.0.25: lodash "^4.17.20" node-jose "^1.1.4" -cozy-client@^49.8.0: - version "49.8.0" - resolved "https://registry.yarnpkg.com/cozy-client/-/cozy-client-49.8.0.tgz#d4f6b3a2fb26dc6bfa561046b075eb6e221af73e" - integrity sha512-peb2n+buOihzqqNN3/zULmytQI8wOtQZsIqLWEaw2WfNXha1T23wNBrMuE7SaMOof361f011MrM5+WVYhKj+VA== +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 "^49.8.0" + cozy-stack-client "^51.0.0" date-fns "2.29.3" json-stable-stringify "^1.0.1" lodash "^4.17.13" @@ -5343,6 +5343,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.90.0: version "1.90.0" resolved "https://registry.yarnpkg.com/cozy-doctypes/-/cozy-doctypes-1.90.0.tgz#6ac69043d45be910c27cb0793a3e45e1a96b91de" @@ -5590,10 +5599,10 @@ cozy-sharing@^16.0.0: react-tooltip "^3.11.1" snarkdown "^2.0.0" -cozy-stack-client@^49.8.0: - version "49.8.0" - resolved "https://registry.yarnpkg.com/cozy-stack-client/-/cozy-stack-client-49.8.0.tgz#c57dfefe50e47f228fee7e1921c438d35f4e0877" - integrity sha512-sYJL2o+DsNs7V5eQghXpWKcMzxc39QAKtM8zAdmWl2MMCyiqO3lBehRomhstcJHtuZrMLXXPQPr1A0ONBlMmZg== +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" @@ -10525,6 +10534,11 @@ lodash.unionwith@4.6.0: resolved "https://registry.yarnpkg.com/lodash.unionwith/-/lodash.unionwith-4.6.0.tgz#74d140b5ca8146e6c643c3724f5152538d9ac1f0" integrity sha1-dNFAtcqBRubGQ8NyT1FSU42awfA= +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"