io-sanita-theme 2.30.2 → 2.31.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 CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.31.1](https://github.com/RedTurtle/io-sanita-theme/compare/2.31.0...2.31.1) (2026-05-29)
4
+
5
+ ### Bug Fixes
6
+
7
+ * gelocation edge cases ([#146](https://github.com/RedTurtle/io-sanita-theme/issues/146)) ([0ec2a50](https://github.com/RedTurtle/io-sanita-theme/commit/0ec2a509ba4098cdce3932145a11c4596313ddec))
8
+
9
+ ## [2.31.0](https://github.com/RedTurtle/io-sanita-theme/compare/2.30.2...2.31.0) (2026-05-28)
10
+
11
+ ### Features
12
+
13
+ * 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))
14
+
15
+ ### Maintenance
16
+
17
+ * preparing release 2.31.0 ([b17fcf4](https://github.com/RedTurtle/io-sanita-theme/commit/b17fcf4fb965a5c2786231c182aaac653165c2a9))
18
+
3
19
  ## [2.30.2](https://github.com/RedTurtle/io-sanita-theme/compare/2.30.1...2.30.2) (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.2",
3
+ "version": "2.31.1",
4
4
  "description": "io-sanita-theme: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "license": "MIT",
@@ -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
 
@@ -36,7 +36,12 @@ export const getItemIcon = (item) => {
36
36
  };
37
37
 
38
38
  export const hasGeolocation = (item) => {
39
- if (item?.geolocation?.latitude !== 0 && item?.geolocation?.longitude !== 0) {
39
+ if (
40
+ item &&
41
+ item.geolocation &&
42
+ item?.geolocation?.latitude !== 0 &&
43
+ item?.geolocation?.longitude !== 0
44
+ ) {
40
45
  return true;
41
- }
46
+ }
42
47
  };