io-sanita-theme 2.30.0 → 2.30.2
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
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.30.2](https://github.com/RedTurtle/io-sanita-theme/compare/2.30.1...2.30.2) (2026-05-27)
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* missing import ([bcebfdf](https://github.com/RedTurtle/io-sanita-theme/commit/bcebfdf83d2dbd55ec06306314a161b97f9a973f))
|
|
8
|
+
|
|
9
|
+
## [2.30.1](https://github.com/RedTurtle/io-sanita-theme/compare/2.30.0...2.30.1) (2026-05-27)
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* missing import ([0e91a38](https://github.com/RedTurtle/io-sanita-theme/commit/0e91a38ceb94654c918fbec805e37e5a42c4a2a9))
|
|
14
|
+
|
|
3
15
|
## [2.30.0](https://github.com/RedTurtle/io-sanita-theme/compare/2.29.0...2.30.0) (2026-05-27)
|
|
4
16
|
|
|
5
17
|
### Features
|
package/RELEASE.md
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import { defineMessages, useIntl } from 'react-intl';
|
|
3
3
|
import { CardContatti } from 'io-sanita-theme/components';
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
RichTextSection,
|
|
6
|
+
richTextHasContent,
|
|
7
|
+
RichText,
|
|
8
|
+
} from 'io-sanita-theme/helpers';
|
|
5
9
|
import { Row, Col } from 'design-react-kit';
|
|
6
10
|
|
|
7
11
|
const messages = defineMessages({
|
|
@@ -30,7 +34,7 @@ const UOContatti = ({ content }) => {
|
|
|
30
34
|
{/* Contenuto testuale alternativo, usato ad esempio con il sync virtualdesk */}
|
|
31
35
|
{has_richTextContent && (
|
|
32
36
|
<div className="richtext-blocks font-serif">
|
|
33
|
-
|
|
37
|
+
<RichText data={content?.pdc_correlato_text} />
|
|
34
38
|
</div>
|
|
35
39
|
)}
|
|
36
40
|
</RichTextSection>
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
richTextHasContent,
|
|
4
|
+
RichText,
|
|
5
|
+
RichTextSection,
|
|
6
|
+
} from 'io-sanita-theme/helpers';
|
|
3
7
|
import { defineMessages, useIntl } from 'react-intl';
|
|
4
8
|
|
|
5
9
|
const messages = defineMessages({
|
|
@@ -7,7 +11,7 @@ const messages = defineMessages({
|
|
|
7
11
|
id: 'other_info',
|
|
8
12
|
defaultMessage: 'Ulteriori informazioni',
|
|
9
13
|
},
|
|
10
|
-
|
|
14
|
+
come_accedere: {
|
|
11
15
|
id: 'struttura_come_accedere',
|
|
12
16
|
defaultMessage: 'Come accedere',
|
|
13
17
|
},
|
|
@@ -15,9 +19,11 @@ const messages = defineMessages({
|
|
|
15
19
|
|
|
16
20
|
const UOUlterioriInformazioni = ({ content }) => {
|
|
17
21
|
const intl = useIntl();
|
|
18
|
-
const has_richTextUlteriori = richTextHasContent(
|
|
22
|
+
const has_richTextUlteriori = richTextHasContent(
|
|
23
|
+
content?.ulteriori_informazioni,
|
|
24
|
+
);
|
|
19
25
|
const has_come_accedere = richTextHasContent(content?.come_accedere);
|
|
20
|
-
return
|
|
26
|
+
return has_richTextUlteriori || has_come_accedere ? (
|
|
21
27
|
<RichTextSection
|
|
22
28
|
tag_id="more_info"
|
|
23
29
|
title={intl.formatMessage(messages.other_info)}
|