Releases: cozy/cozy-ui
Releases · cozy/cozy-ui
v135.1.0
v135.0.0
135.0.0 (2025-12-04)
Features
BREAKING CHANGES
- No longer expose I18n provider. You must import everything previously based on
providers/I18nfromtwake-i18n.
You can use this codemods to migrate:
yarn add twake-i18n
yarn global add @cozy/codemods
yarn global add [email protected]
jscodeshift -t $(yarn global dir)/node_modules/@cozy/codemods/src/transforms/transform-ui-bc-135.js src babel --ignore-pattern=src/targets/ --extensions js,jsx,tsx --parser tsx
You probably will need to fix linter issue after that with something like yarn lint --fix.
- you must have
twake-i18n >= 0.3.0
v134.2.0
v134.1.0
v134.0.0
134.0.0 (2025-11-13)
Bug Fixes
- ActionsBar: Theme type wasn't set correctly (89f4cc7)
- BottomSheet: Theme type wasn't set correctly (3f5e3e3)
Features
- CozyTheme: Rename prop
settingsThemeTypeintype(f397f65)
BREAKING CHANGES
- CozyTheme: If you use
import CozyTheme from 'cozy-ui/transpiled/react/providers/CozyTheme'you must replacesettingsThemeTypeprop bytype. Expl:<CozyTheme settingsThemeType={}>becomes<CozyTheme type={}>
v133.0.1
v133.0.0
133.0.0 (2025-10-30)
Features
- ActionsMenu/ActionsItems: No longer pass
clientin actions implicitly (aeaa262) - Actions: Some actions doesn't import
downloadFileanymore (df7a36f) - Actions: Some actions doesn't import
fetchBlobFileById, isFileanymore (98cf97f) - Actions: Some actions doesn't import
generateWebLinkanymore (809011e) - Actions: Some actions doesn't import
splitFilenameanymore (c13841c) - BarContextProvider: Removed (c080cd2)
- Remove all components related to cozy-client (840168a)
- Remove deprecated
modifyandviewInContactsactions (17dc240)
BREAKING CHANGES
- If you use a component in that list, you must import it from
cozy-ui-plusinstead:AppIcon, AppLinker, AppSections, AppTile, CipherIcon, ContactPicker, Contacts/AddModal, Contacts/GroupsSelect, Contacts/Header, ContactsList, ContactsListModal, AuthenticationDialogs, Field, FileImageLoader, FilePicker, hooks/useClientErrors, IntentDialogOpener, IntentIframe, Labs/CollectionField, ListItem/ListItemByDoc, ListItem/ListItemBase, ListItem/ListItemContact, ListItem/ListItemFile, Paywall, providers/CozyTheme, providers/Intent, QualificationGrid, QualificationIcon, QualificationItem, QualificationModal, ShortcutTile, SquareAppIcon, Storage, UploadQueue, Wizard.
You can use this codemods to migrate:
yarn add cozy-ui-plus
yarn global add @cozy/codemods
yarn global add [email protected]
jscodeshift -t $(yarn global dir)/node_modules/@cozy/codemods/src/transforms/transform-ui-bc-133.js src babel --ignore-pattern=src/targets/ --extensions js,jsx,tsx --parser tsx
You probably will need to fix linter issue after that with something like yarn lint --fix.
- Please note that these components have been completely removed:
deprecated/IntentModal, deprecated/IntentOpener, deprecated/QuotaAlert - If you used
deprecated/ActionMenu/Actions/modifanddeprecated/ActionMenu/Actions/viewInContactsplease use those in/ActionsMenu/Actionsinstead - BarContextProvider: If you use
BarContextProvideryou must create it yourself. Take a look to the code to copy/paste - Actions:
- You must
import { fetchBlobFileById, isFile } from 'cozy-client/dist/models/file'and pass it as action's optionmakeActions([], { fetchBlobFileById, isFile })when usingprintaction. - You must
import { downloadFile } from 'cozy-client/dist/models/file'and pass it as action's optionmakeActions([], { downloadFile })when usingdownloadaction. - You must
import { splitFilename } from 'cozy-client/dist/models/file'and pass it as action's optionmakeActions([], { splitFilename })when usingaddToFavorites,removeFromFavoritesactions. - You must
import { generateWebLink } from 'cozy-client'and pass it as action's optionmakeActions([], { generateWebLink })when usingmodify,viewInContacts,viewInDriveactions.
- You must
- ActionsMenu/ActionsItems: You have to pass
clientyourself as option when creating an action, for actions that usedclientas argaction: (docs, { client }) => {}. The simplest way to do that:const actions = makeActions([ ...someActions ], { client })
v132.1.0
v132.0.0
132.0.0 (2025-10-27)
Features
- AppSections: Replace cozy-flags by
configprop (6ecdad0) - Paywall: Replace cozy-flags by
isIapEnabledprop (953f28a) - QualificationGrid: Replace cozy-flags by
noHealthprop (68f14dc) - Remove cozy-flags from peerDeps (5131237)
BREAKING CHANGES
- AppSections: You must use
config={flag('store.alternative-source')}prop - QualificationGrid: You must use
noHealth={flag('hide.healthTheme.enabled')}prop - Paywall: You must use
isIapEnabled={flag('flagship.iap.enabled')}prop - You no longer need to install
cozy-flagspackage