Skip to content

v92.0.0

Compare
Choose a tag to compare
@cozy-bot cozy-bot released this 28 Aug 08:13
· 692 commits to master since this release

92.0.0 (2023-08-28)

Features

  • Viewer: Display file path into the toolbar (e76e2f7)
  • Viewer: Move toolbarProps into componentsProps (b0582da)
  • Viewer: Remove onlyOfficeProps (9983c4a)

BREAKING CHANGES

  • Viewer: The toolbarProps and onlyOfficeProps attribute from Viewer property has been moved into the componentsProps attribute.

You can use this codemods to migrate. Don't forget to run js linter after the codemods.

The --parser option is essential to manage any TSX files in the project.

yarn global add @cozy/codemods
yarn global add [email protected]
jscodeshift -t $(yarn global dir)/node_modules/@cozy/codemods/src/transforms/transform-viewer-components-props.js src babel --ignore-pattern=src/targets/ --extensions js,jsx,tsx --parser tsx

You can do this manually by transferring the contents of toolbarProps to componentsProps under a toolbarProps property. For onlyOfficeProps, you have to move the contents under a OnlyOfficeViewer property into componentsProps.