Releases: cozy/cozy-ui
Releases · cozy/cozy-ui
v105.1.0
v105.0.2
v105.0.1
v105.0.0
105.0.0 (2024-03-16)
Features
- Add all Table components from MUI (5c6438f)
BREAKING CHANGES
Table
component has been deprecated. Use codemods to deal with the change.
yarn global add @cozy/codemods
yarn global add [email protected]
jscodeshift -t $(yarn global dir)/node_modules/@cozy/codemods/src/transforms/transform-ui-deprecated-table.js src babel --ignore-pattern=src/targets/ --extensions js,jsx,tsx --parser tsx
v104.3.0
v104.2.0
104.2.0 (2024-03-12)
Bug Fixes
- Viewer: Adjust toolbar spacing and button size (6a2f8fe)
Features
- I18n: Add useExtendI18n to be able to add locales to existing ones (ad388b4)
- I18n: Expose polyglot, so can be get with useI18n (7770e7b)
- Update cozy-client to 45.15.0 (c5f2649)
- Viewer: Add Print button, based on print action definition (ba80052)
- Viewer: Add ToolbarButtons component (e0b014c)
- Viewer: Add variants on Download/Forward/Sharing buttons (594b79a)
- Viewer: Add WebviewIntentProvider (97f28ff)
- Viewer: Expose Toolbarbutton, FooterActionsButtons and ForwardButton (2b9130f)
- Viewer: Modify default buttons on toolbar and footer (d82013d)
- Viewer: Remove HOC for locals on no viewer DownloadButton (edda4a9)
- Viewer: Replace toolbar download button by icon button (6f59eda)
- Viewer: Use contact formatting from cozy-client (eb9c596)
- Viewer: Use date metadata qualification formatting from cozy-client (14bc95d)
- Viewer: Use formatMetadataQualification and METADATA_NAMES from (450fb74)
- Viewer: Use getMetadataQualificationType from cozy-client (ae133f4)
- Viewer: Use information metadata qualification formatting from cozy-client (1d106ef)
- Viewer: Use other metadata qualification formatting from cozy-client (98b6510)
- Viewer: Use useExtendI18n (d93b97d)
v104.1.0
v104.0.0
104.0.0 (2024-03-12)
Bug Fixes
- Color & square props are ignored (c37ad2f), closes /github.com/mui/material-ui/blob/bda562b435a70e3e8f6d7fb04581c6816a5ba0c7/packages/material-ui/src/Snackbar/Snackbar.js#L235 #L193
Features
- Add typedef to Alert component (16f2097)
- Improve AlertProvider (723a627)
- Replace ViewerSnackbarProvider by AlertProvider (374537a)
BREAKING CHANGES
- The following constants change name and must be imported from cozy-client:
Before
import {
knownDateMetadataNames,
knownInformationMetadataNames,
knownOtherMetadataNames
} from 'cozy-ui/transpiled/react/Viewer/helpers'
Now:
import {
KNOWN_DATE_METADATA_NAMES,
KNOWN_INFORMATION_METADATA_NAMES,
KNOWN_OTHER_METADATA_NAMES
} from 'cozy-client/dist/models/paper'
- You must have
cozy-client >= 45.15.0
- The
showAlert
function returned by theuseAlert
hook changes signature.
Also, the variant
was set to filled
,
it now takes the default value of Alert
, i.e. standard
.
Before:
const { showAlert } = useAlert()
showAlert(t('foo.bar'), 'error',)
Now:
const { showAlert } = useAlert()
showAlert({ message: t('foo.bar'), severity: 'error' })
Its options now support Alert component props.
Example:
showAlert({
message: t('foo.bar'),
severity: 'info',
icon: [secure],
color: 'blue',
square: true
})