io-sanita-theme 2.30.1 → 2.31.0

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,21 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.31.0](https://github.com/RedTurtle/io-sanita-theme/compare/2.30.2...2.31.0) (2026-05-28)
4
+
5
+ ### Features
6
+
7
+ * added table block in text editor ([#145](https://github.com/RedTurtle/io-sanita-theme/issues/145)) ([7c49d67](https://github.com/RedTurtle/io-sanita-theme/commit/7c49d67dedb3710128db04544884e0cdcaf0326b))
8
+
9
+ ### Maintenance
10
+
11
+ * preparing release 2.31.0 ([b17fcf4](https://github.com/RedTurtle/io-sanita-theme/commit/b17fcf4fb965a5c2786231c182aaac653165c2a9))
12
+
13
+ ## [2.30.2](https://github.com/RedTurtle/io-sanita-theme/compare/2.30.1...2.30.2) (2026-05-27)
14
+
15
+ ### Bug Fixes
16
+
17
+ * missing import ([bcebfdf](https://github.com/RedTurtle/io-sanita-theme/commit/bcebfdf83d2dbd55ec06306314a161b97f9a973f))
18
+
3
19
  ## [2.30.1](https://github.com/RedTurtle/io-sanita-theme/compare/2.30.0...2.30.1) (2026-05-27)
4
20
 
5
21
  ### Bug Fixes
package/RELEASE.md CHANGED
@@ -41,6 +41,12 @@
41
41
  - ...
42
42
  -->
43
43
 
44
+ ## Versione 2.31.0 (28/05/2026)
45
+
46
+ ### Novità
47
+
48
+ - Abilitato il blocco tabella nell'editor di testo per i campi a blocchi dei content-type.
49
+
44
50
  ## Versione 2.30.0 (27/05/2026)
45
51
 
46
52
  ### Fix
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "io-sanita-theme",
3
- "version": "2.30.1",
3
+ "version": "2.31.0",
4
4
  "description": "io-sanita-theme: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "license": "MIT",
@@ -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 { RichTextSection } from 'io-sanita-theme/helpers';
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
- <RichText data={content?.pdc_correlato_text} />
37
+ <RichText data={content?.pdc_correlato_text} />
34
38
  </div>
35
39
  )}
36
40
  </RichTextSection>
@@ -32,8 +32,9 @@ const UOUlterioriInformazioni = ({ content }) => {
32
32
  {content.ulteriori_informazioni && (
33
33
  <RichText data={content.ulteriori_informazioni} />
34
34
  )}
35
+ {/* presente ad esempio con il sync virtualdesk */}
35
36
  {content.come_accedere && (
36
- <div className="mt-4">
37
+ <div className="mt-4 richtext-blocks">
37
38
  <h3>{intl.formatMessage(messages.come_accedere)}</h3>
38
39
  <RichText data={content.come_accedere} />
39
40
  </div>
@@ -391,6 +391,7 @@ export const applyIoSanitaBlocksConfig = (config) => {
391
391
  'callout_block',
392
392
  'rssBlock',
393
393
  'repeatableContentBlock',
394
+ 'slateTable',
394
395
  //se si aggiunge un nuovo blocco, verificare che in edit non ci siano bottoni che provocano il submit della form. Se succede, gestirli con e.prevenDefault() e.stopPropagation().
395
396
  ],
396
397