@eeacms/volto-accordion-block
Advanced tools
Comparing version 10.3.0 to 10.4.0
@@ -7,2 +7,17 @@ ### Changelog | ||
### [10.4.0](https://github.com/eea/volto-accordion-block/compare/10.3.0...10.4.0) - 27 September 2023 | ||
#### :bug: Bug Fixes | ||
- fix: Inject styleWrapper classnames into the accordion custom EditBlockWrapper and Fix anonymous default export [Víctor Fernández de Alba - [`6f5975a`](https://github.com/eea/volto-accordion-block/commit/6f5975aeba527f2c9c2681bdd1a780cfbf3c24c6)] | ||
#### :house: Internal changes | ||
- style: lint-staged reorder in package.json [Alin Voinea - [`051f584`](https://github.com/eea/volto-accordion-block/commit/051f584e5a5f34912f44551e43d25497b9685b29)] | ||
#### :hammer_and_wrench: Others | ||
- Release 10.4.0 [Alin Voinea - [`26ccf43`](https://github.com/eea/volto-accordion-block/commit/26ccf435f4ac77a48d6e204940136eb9feff9075)] | ||
- test: EN locales, pre-commit fix, feature PRs checks [valentinab25 - [`96c8cf2`](https://github.com/eea/volto-accordion-block/commit/96c8cf2d65b7bcc682415613ecf8624ce4d48b48)] | ||
- test: add PR to develop tests [valentinab25 - [`0ae6fc1`](https://github.com/eea/volto-accordion-block/commit/0ae6fc1866ebaeba81afab3803902df50ae16649)] | ||
### [10.3.0](https://github.com/eea/volto-accordion-block/compare/10.2.0...10.3.0) - 29 August 2023 | ||
@@ -9,0 +24,0 @@ |
@@ -5,3 +5,3 @@ const { defineConfig } = require('cypress'); | ||
viewportWidth: 1280, | ||
defaultCommandTimeout: 8888, | ||
defaultCommandTimeout: 5000, | ||
chromeWebSecurity: false, | ||
@@ -11,3 +11,3 @@ reporter: 'junit', | ||
retries: { | ||
runMode: 8, | ||
runMode: 1, | ||
openMode: 0, | ||
@@ -14,0 +14,0 @@ }, |
{ | ||
"name": "@eeacms/volto-accordion-block", | ||
"version": "10.3.0", | ||
"version": "10.4.0", | ||
"description": "volto-accordion-block: Volto accordion block", | ||
@@ -27,4 +27,27 @@ "main": "src/index.js", | ||
"babel-plugin-transform-class-properties": "^6.24.1", | ||
"husky": "*", | ||
"lint-staged": "*", | ||
"md5": "^2.3.0" | ||
}, | ||
"lint-staged": { | ||
"src/**/*.{js,jsx,ts,tsx,json}": [ | ||
"make lint-fix", | ||
"make prettier-fix" | ||
], | ||
"src/**/*.{jsx}": [ | ||
"make i18n" | ||
], | ||
"theme/**/*.{css,less}": [ | ||
"make stylelint-fix" | ||
], | ||
"src/**/*.{css,less}": [ | ||
"make stylelint-fix" | ||
], | ||
"theme/**/*.overrides": [ | ||
"make stylelint-fix" | ||
], | ||
"src/**/*.overrides": [ | ||
"make stylelint-fix" | ||
] | ||
}, | ||
"scripts": { | ||
@@ -47,4 +70,5 @@ "release": "release-it", | ||
"cypress:run": "make cypress-run", | ||
"cypress:open": "make cypress-open" | ||
"cypress:open": "make cypress-open", | ||
"prepare": "husky install" | ||
} | ||
} |
import React from 'react'; | ||
import { Icon } from '@plone/volto/components'; | ||
import { blockHasValue } from '@plone/volto/helpers'; | ||
import { | ||
blockHasValue, | ||
buildStyleClassNamesFromData, | ||
} from '@plone/volto/helpers'; | ||
import config from '@plone/volto/registry'; | ||
@@ -64,2 +67,4 @@ import { Button } from 'semantic-ui-react'; | ||
const styles = buildStyleClassNamesFromData(data.styles); | ||
return ( | ||
@@ -70,3 +75,5 @@ <div> | ||
{...(selected ? draginfo?.draggableProps : null)} | ||
className={`block-editor-${data['@type']}`} | ||
className={cx(`block-editor-${data['@type']}`, styles, { | ||
[data.align]: data.align, | ||
})} | ||
> | ||
@@ -73,0 +80,0 @@ {(!selected || !visible || disabled) && ( |
@@ -113,3 +113,3 @@ import { defineMessages } from 'react-intl'; | ||
export default (intl) => ({ | ||
const layoutSchema = (intl) => ({ | ||
title: intl.formatMessage(messages.AccordionBlockSettings), | ||
@@ -212,1 +212,3 @@ fieldsets: [ | ||
}); | ||
export default layoutSchema; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
199785
41
2457
6