v92.0.0
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
andonlyOfficeProps
attribute from Viewer property has been moved into thecomponentsProps
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
.