Skip to content

Releases: cozy/cozy-ui

v105.1.0

21 Mar 10:21
Compare
Choose a tag to compare

105.1.0 (2024-03-21)

Bug Fixes

  • NestedSelect: Remove title attribute on modal (de57aff)

Features

  • NestedSelect: Add ellipsis on modal title (341db5a)

v105.0.2

20 Mar 11:51
Compare
Choose a tag to compare

105.0.2 (2024-03-20)

Bug Fixes

  • Viewer: Events must be limited on the image (548994d)

v105.0.1

19 Mar 08:06
Compare
Choose a tag to compare

105.0.1 (2024-03-19)

Bug Fixes

  • Viewer: The Pinch event doesn't have a "tapCount" property (8cde71d)

v105.0.0

16 Mar 11:00
Compare
Choose a tag to compare

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

13 Mar 13:45
Compare
Choose a tag to compare

104.3.0 (2024-03-13)

Features

v104.2.0

12 Mar 17:24
Compare
Choose a tag to compare

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

12 Mar 16:29
Compare
Choose a tag to compare

104.1.0 (2024-03-12)

Features

  • ListItem: Add locales for reference tax numbers (a7d66d2)

v104.0.0

12 Mar 09:55
Compare
Choose a tag to compare

104.0.0 (2024-03-12)

Bug Fixes

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 the useAlert 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
})

v103.12.0

07 Mar 09:27
Compare
Choose a tag to compare

103.12.0 (2024-03-07)

Features

  • viewer: Remove useless locales (476fe37)
  • viewer: Use pinchend & tap events on mobile for download file (8f4b2e7)

v103.11.1

05 Mar 15:30
Compare
Choose a tag to compare

103.11.1 (2024-03-05)

Bug Fixes

  • Use /medium for PDF thumbnails (d117ee6)