Skip to content

Commit

Permalink
Merge pull request #27 from eea/develop
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
avoinea authored Oct 30, 2023
2 parents bb079d0 + ff5ad70 commit 8032f15
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 12 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ 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).

### [6.1.5](https://github.com/eea/volto-block-divider/compare/6.1.4...6.1.5) - 19 October 2023

#### :hammer_and_wrench: Others

- Avoid default export of unnamed function [Tiberiu Ichim - [`7befce4`](https://github.com/eea/volto-block-divider/commit/7befce4e9cb5db1d966272f83d26c4a38d45ed5c)]
- Avoid default export of unnamed function [Tiberiu Ichim - [`fa710c9`](https://github.com/eea/volto-block-divider/commit/fa710c948e4ecf32032f720ea0a01c397421c036)]
- Update README.md [ana-oprea - [`c6acbe5`](https://github.com/eea/volto-block-divider/commit/c6acbe518dcf63dcba22eb5517da52a14df00334)]
### [6.1.4](https://github.com/eea/volto-block-divider/compare/6.1.3...6.1.4) - 17 October 2023

#### :house: Internal changes
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

## Features

![Divider](https://github.com/eea/volto-block-divider/raw/master/docs/divider.gif)
![Divider](https://raw.githubusercontent.com/eea/volto-block-divider/master/docs/divider.gif)

## Upgrade

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-block-divider",
"version": "6.1.4",
"version": "6.1.5",
"description": "volto-block-divider: Volto add-on",
"main": "src/index.js",
"author": "European Environment Agency: IDM2 A-Team",
Expand Down
4 changes: 2 additions & 2 deletions src/components/Divider/Edit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const messages = defineMessages({
},
});

export default (props) => {
export default function DividerBlockEdit(props) {
const { data, block, onChangeBlock, selected, intl } = props;
const schema = DividerEditSchema({ intl });
return (
Expand Down Expand Up @@ -40,4 +40,4 @@ export default (props) => {
</SidebarPortal>
</>
);
};
}
4 changes: 2 additions & 2 deletions src/components/Divider/View.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import cx from 'classnames';
import { Divider } from 'semantic-ui-react';
import './divider.less';

export default ({ data }) => {
export default function ViewBlockDivider({ data }) {
const DividerRender = ({ data }) => (
<Divider
hidden={data.hidden}
Expand All @@ -28,4 +28,4 @@ export default ({ data }) => {
)}
</>
);
};
}
4 changes: 2 additions & 2 deletions src/deprecated/Splitter/Widgets/SimpleColorPicker.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import clearSVG from '@plone/volto/icons/clear.svg';
import loadable from '@loadable/component';
const GithubPicker = loadable(() => import('react-color/lib/Github'));

export default (props) => {
export default function SimpleColorPicker(props) {
const { id, value, onChange, available_colors } = props;
const [showPicker, setShowPicker] = React.useState(false);

Expand Down Expand Up @@ -54,4 +54,4 @@ export default (props) => {
</div>
</FormFieldWrapper>
);
};
}
4 changes: 2 additions & 2 deletions src/deprecated/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import SimpleColorPicker from './Splitter/Widgets/SimpleColorPicker';

import './Splitter/splitter.less';

export default (config) => {
export default function applyConfig(config) {
config.blocks.blocksConfig.splitter = {
id: 'splitter',
title: 'Splitter',
Expand Down Expand Up @@ -50,4 +50,4 @@ export default (config) => {
};
config.widgets.widget.style_simple_color = SimpleColorPicker;
return config;
};
}
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
DividerEdit,
} from '@eeacms/volto-block-divider/components';

export default (config) => {
export default function applyConfig(config) {
// Install Divider block
config.blocks.blocksConfig.dividerBlock = {
id: 'dividerBlock',
Expand All @@ -29,4 +29,4 @@ export default (config) => {

// BBB: DEPRECATED Splitter block
return installDeprecatedSplitter(config);
};
}

0 comments on commit 8032f15

Please sign in to comment.