Skip to content

Commit

Permalink
Merge pull request #80 from eea/develop
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
avoinea authored Jul 19, 2023
2 parents c073473 + ab4ded0 commit 29260df
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,24 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

### [9.2.0](https://github.com/eea/volto-accordion-block/compare/9.1.0...9.2.0) - 19 July 2023

#### :rocket: New Features

- feat: make className prop available to View component [Dante Álvarez - [`8c12c28`](https://github.com/eea/volto-accordion-block/commit/8c12c282ce0b445f9df97ba1e36b9c24312fda91)]

#### :bug: Bug Fixes

- fix: th showRestricted option should be used from the configs [Claudia Ifrim - [`fe9695a`](https://github.com/eea/volto-accordion-block/commit/fe9695aff6af59a15194b1ab9743b1696167b729)]

#### :hammer_and_wrench: Others

- Release 9.2.0 [Alin Voinea - [`3f77074`](https://github.com/eea/volto-accordion-block/commit/3f77074d1bcd105f6ef30c2ef595babb11f358ec)]
### [9.1.0](https://github.com/eea/volto-accordion-block/compare/9.0.0...9.1.0) - 13 July 2023

#### :bug: Bug Fixes

- fix(accordion): block-chooser and power user menu display issues #76 from eea/develop [ichim-david - [`c073473`](https://github.com/eea/volto-accordion-block/commit/c073473f4c8d37705142b019c833d5c263ed606b)]
- fix(accordion): margin and padding of .item.accordion within power menu [David Ichim - [`3a9c8f5`](https://github.com/eea/volto-accordion-block/commit/3a9c8f5777d200dc6213d4648c97c94bd7991bcc)]

#### :nail_care: Enhancements
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eeacms/volto-accordion-block",
"version": "9.1.0",
"version": "9.2.0",
"description": "volto-accordion-block: Volto accordion block",
"main": "src/index.js",
"author": "European Environment Agency: IDM2 A-Team",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ const OpenedBlocksChooser = (props) => {
<BlockChooser
onInsertBlock={onInsertBlock}
currentBlock={block}
showRestricted
blocksConfig={blocksConfig}
ref={ref}
/>
Expand Down
4 changes: 2 additions & 2 deletions src/components/manage/Blocks/Accordion/View.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import config from '@plone/volto/registry';
import './editor.less';

const View = (props) => {
const { data } = props;
const { data, className } = props;
const location = useLocation();
const panels = getPanels(data.data);
const metadata = props.metadata || props.properties;
Expand Down Expand Up @@ -46,7 +46,7 @@ const View = (props) => {
}, [data.collapsed]);

return (
<div className="accordion-block">
<div className={cx('accordion-block', className)}>
{data.headline && <h2 className="headline">{data.headline}</h2>}
{panels.map(([id, panel], index) => {
return accordionBlockHasValue(panel) ? (
Expand Down

0 comments on commit 29260df

Please sign in to comment.