design-comuni-plone-theme 8.7.0 → 8.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/package.json +1 -1
- package/publiccode.yml +2 -2
- package/src/components/ItaliaTheme/Blocks/ArgumentsInEvidence/BodyWrapper.jsx +2 -2
- package/src/components/ItaliaTheme/Blocks/ArgumentsInEvidence/View.jsx +1 -1
- package/src/components/ItaliaTheme/Blocks/CTABlock/Block.jsx +1 -1
- package/src/components/ItaliaTheme/Blocks/CTABlock/View.jsx +2 -2
- package/src/components/ItaliaTheme/Blocks/Calendar/Body.jsx +1 -0
- package/src/components/ItaliaTheme/Blocks/RssBlock/CardWithImageRssTemplate.jsx +4 -2
- package/src/components/ItaliaTheme/Blocks/RssBlock/CardWithoutImageRssTemplate.jsx +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
## [8.7.1](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v8.7.0...v8.7.1) (2023-09-21)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Maintenance
|
|
7
|
+
|
|
8
|
+
* added id in h2 title of some blocks to enable anchors ([#350](https://github.com/RedTurtle/design-comuni-plone-theme/issues/350)) ([e67e57a](https://github.com/RedTurtle/design-comuni-plone-theme/commit/e67e57a3f767f94377cae4605097977a0fa5021a))
|
|
9
|
+
* updated publicode ([cd8fc79](https://github.com/RedTurtle/design-comuni-plone-theme/commit/cd8fc791891105e69f7cbc7b8b14e19f0da71601))
|
|
10
|
+
|
|
3
11
|
## [8.7.0](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v8.6.0...v8.7.0) (2023-09-20)
|
|
4
12
|
|
|
5
13
|
|
package/package.json
CHANGED
package/publiccode.yml
CHANGED
|
@@ -227,9 +227,9 @@ maintenance:
|
|
|
227
227
|
name: io-Comune - Il sito AgID per Comuni ed Enti Pubblici
|
|
228
228
|
platforms:
|
|
229
229
|
- web
|
|
230
|
-
releaseDate: '2023-09-
|
|
230
|
+
releaseDate: '2023-09-21'
|
|
231
231
|
softwareType: standalone/web
|
|
232
|
-
softwareVersion: 8.7.
|
|
232
|
+
softwareVersion: 8.7.1
|
|
233
233
|
url: 'https://github.com/italia/design-comuni-plone-theme'
|
|
234
234
|
usedBy:
|
|
235
235
|
- ASP Comuni Modenesi Area Nord
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cx from 'classnames';
|
|
3
3
|
|
|
4
|
-
const BodyWrapper = ({ data, inEditMode, children }) => {
|
|
4
|
+
const BodyWrapper = ({ data, inEditMode, children, id }) => {
|
|
5
5
|
return (
|
|
6
6
|
<div className={cx('container pt-5', { 'p-5': inEditMode })}>
|
|
7
|
-
<h2>{data.text}</h2>
|
|
7
|
+
<h2 id={id + 'title'}>{data.text}</h2>
|
|
8
8
|
<div className="grid mt-5">{children}</div>
|
|
9
9
|
</div>
|
|
10
10
|
);
|
|
@@ -13,7 +13,7 @@ const View = ({ data, id }) => {
|
|
|
13
13
|
<div className="block full-width">
|
|
14
14
|
<div className="argumentInEvidence">
|
|
15
15
|
<ArgumentsInEvidenceBackground />
|
|
16
|
-
<BodyWrapper data={data} inEditMode={false}>
|
|
16
|
+
<BodyWrapper data={data} inEditMode={false} id={id}>
|
|
17
17
|
{data.subblocks
|
|
18
18
|
?.filter((subblock) => {
|
|
19
19
|
return subblock.argument?.length > 0;
|
|
@@ -4,10 +4,10 @@ import BodyWrapper from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks
|
|
|
4
4
|
|
|
5
5
|
import Block from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/CTABlock/Block';
|
|
6
6
|
|
|
7
|
-
const View = ({ data }) => {
|
|
7
|
+
const View = ({ data, id }) => {
|
|
8
8
|
return (
|
|
9
9
|
<BodyWrapper inEditMode={false}>
|
|
10
|
-
<Block data={data} inEditMode={false} />
|
|
10
|
+
<Block data={data} inEditMode={false} block={id} />
|
|
11
11
|
</BodyWrapper>
|
|
12
12
|
);
|
|
13
13
|
};
|
|
@@ -36,7 +36,7 @@ const CardWithImageRssTemplate = ({
|
|
|
36
36
|
moment: Moment,
|
|
37
37
|
}) => {
|
|
38
38
|
const intl = useIntl();
|
|
39
|
-
|
|
39
|
+
const titleID = data?.title ? data.title.replace(/[^A-Z0-9]+/gi, '_') : '';
|
|
40
40
|
return (
|
|
41
41
|
<div className={cx('', { 'public-ui': isEditMode })} aria-live="polite">
|
|
42
42
|
{items?.length > 0 ? (
|
|
@@ -44,7 +44,9 @@ const CardWithImageRssTemplate = ({
|
|
|
44
44
|
{data.title && (
|
|
45
45
|
<Row>
|
|
46
46
|
<Col>
|
|
47
|
-
<h2 className="mb-4 mt-5"
|
|
47
|
+
<h2 className="mb-4 mt-5" id={titleID}>
|
|
48
|
+
{data.title}
|
|
49
|
+
</h2>
|
|
48
50
|
</Col>
|
|
49
51
|
</Row>
|
|
50
52
|
)}
|
|
@@ -32,9 +32,10 @@ const CardWithoutImageRssTemplate = ({
|
|
|
32
32
|
items = [],
|
|
33
33
|
isEditMode,
|
|
34
34
|
data = {},
|
|
35
|
-
moment: Moment,
|
|
35
|
+
//moment: Moment,
|
|
36
36
|
}) => {
|
|
37
37
|
const intl = useIntl();
|
|
38
|
+
const titleID = data?.title ? data.title.replace(/[^A-Z0-9]+/gi, '_') : '';
|
|
38
39
|
|
|
39
40
|
return (
|
|
40
41
|
<div className={cx('', { 'public-ui': isEditMode })} aria-live="polite">
|
|
@@ -43,7 +44,9 @@ const CardWithoutImageRssTemplate = ({
|
|
|
43
44
|
{data.title && (
|
|
44
45
|
<Row>
|
|
45
46
|
<Col>
|
|
46
|
-
<h2 className="mb-4 mt-5"
|
|
47
|
+
<h2 className="mb-4 mt-5" id={titleID}>
|
|
48
|
+
{data.title}
|
|
49
|
+
</h2>
|
|
47
50
|
</Col>
|
|
48
51
|
</Row>
|
|
49
52
|
)}
|