Skip to content

Commit

Permalink
feat: Update cozy-ui to 110.1.0
Browse files Browse the repository at this point in the history
To better support dark mode (flagship app and dark mode button in
cozy-settings).
  • Loading branch information
zatteo committed Jun 25, 2024
1 parent ea3c644 commit 267f48f
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 21 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"cozy-authentication": "2.10.10",
"cozy-bar": "^12.2.4",
"cozy-ci": "0.5.2",
"cozy-client": "^47.6.0",
"cozy-client": "^48.4.0",
"cozy-client-js": "0.20.0",
"cozy-device-helper": "^2.5.0",
"cozy-doctypes": "1.85.4",
Expand All @@ -93,7 +93,7 @@
"cozy-scripts": "^8.2.0",
"cozy-sharing": "^14.1.0",
"cozy-stack-client": "^47.4.0",
"cozy-ui": "^108.0.0",
"cozy-ui": "^110.1.0",
"date-fns": "1.30.1",
"justified-layout": "2.1.2",
"kd-tree-javascript": "1.0.3",
Expand Down
3 changes: 2 additions & 1 deletion src/photos/targets/browser/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import thunkMiddleware from 'redux-thunk'
import { createLogger } from 'redux-logger'

import { BarProvider } from 'cozy-bar'
import CozyClient, { CozyProvider } from 'cozy-client'
import CozyClient, { CozyProvider, RealTimeQueries } from 'cozy-client'
import { RealtimePlugin } from 'cozy-realtime'
import flag from 'cozy-flags'
import { BreakpointsProvider } from 'cozy-ui/transpiled/react/providers/Breakpoints'
Expand Down Expand Up @@ -99,6 +99,7 @@ const App = props => {
<WaitFlags>
<BreakpointsProvider>
<StyledApp>
<RealTimeQueries doctype="io.cozy.settings" />
<SharingProvider
doctype={DOCTYPE_ALBUMS}
documentType="Albums"
Expand Down
3 changes: 2 additions & 1 deletion src/photos/targets/public/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { createStore, applyMiddleware, combineReducers } from 'redux'
import thunkMiddleware from 'redux-thunk'
import { createLogger } from 'redux-logger'
import { HashRouter, Routes, Route, Navigate } from 'react-router-dom'
import CozyClient, { CozyProvider } from 'cozy-client'
import CozyClient, { CozyProvider, RealTimeQueries } from 'cozy-client'
import { RealtimePlugin } from 'cozy-realtime'
import flag from 'cozy-flags'

Expand Down Expand Up @@ -72,6 +72,7 @@ async function init() {
<BarProvider>
<BreakpointsProvider>
<StyledApp>
<RealTimeQueries doctype="io.cozy.settings" />
<HashRouter>
<Routes>
<Route path="shared/:albumId" element={<App />}>
Expand Down
16 changes: 8 additions & 8 deletions test/components/AppLike.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ const AppLike = ({
sharingContextValue,
enLocale
}) => (
<CozyTheme>
<Provider store={(client && client.store) || store || mockStore}>
<CozyProvider client={client}>
<BarProvider>
<Provider store={(client && client.store) || store || mockStore}>
<CozyProvider client={client}>
<BarProvider>
<CozyTheme>
<TestI18n enLocale={enLocale}>
<SharingContext.Provider
value={sharingContextValue || mockSharingContextValue}
Expand All @@ -56,10 +56,10 @@ const AppLike = ({
</HashRouter>
</SharingContext.Provider>
</TestI18n>
</BarProvider>
</CozyProvider>
</Provider>
</CozyTheme>
</CozyTheme>
</BarProvider>
</CozyProvider>
</Provider>
)

export const PhotosAppLike = props => (
Expand Down
27 changes: 18 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6215,16 +6215,16 @@ cozy-client@^44.0.0:
sift "^6.0.0"
url-search-params-polyfill "^8.0.0"

cozy-client@^47.6.0:
version "47.6.0"
resolved "https://registry.yarnpkg.com/cozy-client/-/cozy-client-47.6.0.tgz#ed151e75003aa3eeda657d398d18958aadaa6e1c"
integrity sha512-hBALCB//rdMg2bj3k8dVHRaYFG0CQ7vF9u58BufYuNoJFB4HKh9R/KFSXH0+wkvDjUOK4olYjoz+7xH6bZmEPQ==
cozy-client@^48.4.0:
version "48.4.0"
resolved "https://registry.yarnpkg.com/cozy-client/-/cozy-client-48.4.0.tgz#ee2f4fd8585f5ed42711374593c1cf40dd7b381d"
integrity sha512-ziF0PBeu1VYXs9LgKDS/GnEP0HV5FBG9OH03TLasPKdYab6pEuJKqk5OXGt1AV3V+fBMyIyj7Pzn27sX/xAPMA==
dependencies:
"@cozy/minilog" "1.0.0"
"@types/jest" "^26.0.20"
"@types/lodash" "^4.14.170"
btoa "^1.2.1"
cozy-stack-client "^47.4.0"
cozy-stack-client "^48.2.0"
date-fns "2.29.3"
json-stable-stringify "^1.0.1"
lodash "^4.17.13"
Expand Down Expand Up @@ -6590,15 +6590,24 @@ cozy-stack-client@^47.4.0:
mime "^2.4.0"
qs "^6.7.0"

cozy-stack-client@^48.2.0:
version "48.2.0"
resolved "https://registry.yarnpkg.com/cozy-stack-client/-/cozy-stack-client-48.2.0.tgz#91e02713a88a61a5ca1a3071a9de5ae52b44d542"
integrity sha512-zORfxbMv2s1RpU1ZyDn9vg5tA+EDlWaJWLWF6yWA4fOQh9jR7d5u1ZtyVsaSPD2LoqwghCRHtPVdQr5nYqmWBQ==
dependencies:
detect-node "^2.0.4"
mime "^2.4.0"
qs "^6.7.0"

[email protected]:
version "1.2.0"
resolved "https://registry.yarnpkg.com/cozy-tsconfig/-/cozy-tsconfig-1.2.0.tgz#17e61f960f139fae4d26cbac2254b9ab632b269e"
integrity sha512-TRHnY9goF3FzVlUbP7BcHxuN2XAA4AmppT4fHHZmTKaSwYTByVR1Al+riFMDbce94kJZ1wzl9WNLWQuqzGZ6Cw==

cozy-ui@^108.0.0:
version "108.0.0"
resolved "https://registry.yarnpkg.com/cozy-ui/-/cozy-ui-108.0.0.tgz#94d265406f19040ee323ab078df752ca64dc948d"
integrity sha512-Et2KNzP397Eq8mEJclsVMAVZuFI8UUJz3ECfRHqYNetMmOTuO2BHlXMbkcMfJ3oYCua60kPtrgNIuvYOpiKFhw==
cozy-ui@^110.1.0:
version "110.1.0"
resolved "https://registry.yarnpkg.com/cozy-ui/-/cozy-ui-110.1.0.tgz#3881ca8945a41848558f8c8133d8fb611b1d6195"
integrity sha512-mjC1snnTFMOWbIa6pbqmeUuHCo0Fy+VieH6jLuMWrlz7cgi0pLqWQS3/B4qexkuF4v5DVqjGhc4krRz25If9Ig==
dependencies:
"@babel/runtime" "^7.3.4"
"@material-ui/core" "4.12.3"
Expand Down

0 comments on commit 267f48f

Please sign in to comment.