design-comuni-plone-theme 11.29.1 → 11.29.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.
Binary file
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
 
2
2
 
3
+ ## [11.29.2](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.29.1...v11.29.2) (2025-03-26)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * rollback volto-blocks-editor to a compatible version, fix volto-blocks-editor text block is always slate in it's block chooser ([#924](https://github.com/RedTurtle/design-comuni-plone-theme/issues/924)) ([95aadac](https://github.com/RedTurtle/design-comuni-plone-theme/commit/95aadac3e8561f65dc03b6de03a4a44bd99e64f4))
9
+
10
+
11
+ ### Documentation
12
+
13
+ * updated publiccode and release log ([e057a1c](https://github.com/RedTurtle/design-comuni-plone-theme/commit/e057a1cc2394a175d45c40992f95401cf82d1b37))
14
+
3
15
  ## [11.29.1](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.29.0...v11.29.1) (2025-03-24)
4
16
 
5
17
 
package/RELEASE.md CHANGED
@@ -41,6 +41,13 @@
41
41
  - ...
42
42
  -->
43
43
 
44
+ ## Versione 11.29.2 (26/03/2025)
45
+
46
+ ### Fix
47
+
48
+ - Risolto un problema con l'aggiunta di un blocco di testo attraverso il selettore dei blocchi all'interno dei campi a blocchi delle form dei Content Type che li prevedono.
49
+ - Risolto un problema che impediva la visualizzazione della sidebar dei blocchi all'interno di alcuni campi a blocchi delle form dei Content Type che li prevedono, impattandone l'utilizzo e la modifica.
50
+
44
51
  ## Versione 11.29.1 (24/03/2025)
45
52
 
46
53
  ### Migliorie
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "design-comuni-plone-theme",
3
3
  "description": "Volto Theme for Italia design guidelines",
4
4
  "license": "GPL-v3",
5
- "version": "11.29.1",
5
+ "version": "11.29.2",
6
6
  "main": "src/index.js",
7
7
  "repository": {
8
8
  "type": "git",
@@ -147,7 +147,7 @@
147
147
  "typeface-lora": "0.0.72",
148
148
  "typeface-roboto-mono": "0.0.75",
149
149
  "typeface-titillium-web": "0.0.72",
150
- "volto-blocks-widget": "3.4.3",
150
+ "volto-blocks-widget": "3.4.1",
151
151
  "volto-data-grid-widget": "2.3.1",
152
152
  "volto-dropdownmenu": "4.1.3",
153
153
  "volto-editablefooter": "5.1.7",
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: '2025-03-24'
230
+ releaseDate: '2025-03-26'
231
231
  softwareType: standalone/web
232
- softwareVersion: 11.29.1
232
+ softwareVersion: 11.29.2
233
233
  url: 'https://github.com/italia/design-comuni-plone-theme'
234
234
  usedBy:
235
235
  - ASP Comuni Modenesi Area Nord
@@ -333,20 +333,6 @@ export default function applyConfig(voltoConfig) {
333
333
  component: SiteSettingsExtras,
334
334
  },
335
335
  ],
336
- 'volto-blocks-widget': {
337
- allowedBlocks: [
338
- ...(config.settings['volto-blocks-widget']?.allowedBlocks ?? []).filter(
339
- (block) => block !== 'maps',
340
- ),
341
- 'break',
342
- 'testo_riquadro_semplice',
343
- 'testo_riquadro_immagine',
344
- 'rssBlock',
345
- //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().
346
- ],
347
-
348
- showRestricted: false,
349
- },
350
336
 
351
337
  'volto-gdpr-privacy': {
352
338
  ...config.settings['volto-gdpr-privacy'],
@@ -385,6 +371,24 @@ export default function applyConfig(voltoConfig) {
385
371
  videoAllowExternalsDefault: false,
386
372
  showTrasparenzaFields: false,
387
373
  };
374
+ // Moved outside as config.settings.defaultBlockType keeps default value (slate) until object spread is concluded
375
+ config.settings['volto-blocks-widget'] = {
376
+ ...config.settings['volto-blocks-widget'],
377
+ allowedBlocks: [
378
+ ...(config.settings['volto-blocks-widget']?.allowedBlocks ?? []).filter(
379
+ (block) => !['maps', 'text', 'slate'].includes(block),
380
+ ),
381
+ 'break',
382
+ 'testo_riquadro_semplice',
383
+ 'testo_riquadro_immagine',
384
+ 'rssBlock',
385
+ config.settings.defaultBlockType,
386
+ //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().
387
+ // Se sono bottoni semantic basta mettere type="button"
388
+ ],
389
+
390
+ showRestricted: false,
391
+ };
388
392
 
389
393
  config.settings.nonContentRoutes = config.settings.nonContentRoutes.filter(
390
394
  (route) => route !== '/contact-form' && route !== '/diff',