design-comuni-plone-theme 12.6.5 → 12.6.6

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,20 @@
1
1
  # Changelog
2
2
 
3
+ ## [12.6.6](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v12.6.5...v12.6.6) (2025-11-06)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * added unique field name to form block subfields ([#1036](https://github.com/RedTurtle/design-comuni-plone-theme/issues/1036)) ([a812269](https://github.com/RedTurtle/design-comuni-plone-theme/commit/a8122694d7596b52a09783ec2c009d40818f7329))
9
+ * color-contrast on p color in dark blockquote ([#1035](https://github.com/RedTurtle/design-comuni-plone-theme/issues/1035)) ([bae3c83](https://github.com/RedTurtle/design-comuni-plone-theme/commit/bae3c8381e34896d9dcb750944d0bb9cf8bd99da))
10
+ * external link card with image ([#1032](https://github.com/RedTurtle/design-comuni-plone-theme/issues/1032)) ([ed246b9](https://github.com/RedTurtle/design-comuni-plone-theme/commit/ed246b9cda61736bc96ea8b01b31adddf0b4c749))
11
+ * style for text wrapping in form block legend ([#1034](https://github.com/RedTurtle/design-comuni-plone-theme/issues/1034)) ([54bd721](https://github.com/RedTurtle/design-comuni-plone-theme/commit/54bd7211b5463184243a0bedb9ba0c098a2d6aa4))
12
+
13
+
14
+ ### Documentation
15
+
16
+ * updated publiccode and release log ([a5c1ffe](https://github.com/RedTurtle/design-comuni-plone-theme/commit/a5c1ffe1b39d89076fa253a15a600c255dac26a9))
17
+
3
18
  ## [12.6.5](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v12.6.4...v12.6.5) (2025-11-04)
4
19
 
5
20
 
package/RELEASE.md CHANGED
@@ -41,6 +41,15 @@
41
41
  - ...
42
42
  -->
43
43
 
44
+ ## Versione 12.6.6 (06/11/2025)
45
+
46
+ ### Fix
47
+
48
+ - I campi "Obbligatorio" e "Univoco" per l'impostazione dei campi nel Blocco Form funzionano ora correttamente.
49
+ - Rimossa la visualizzazione dell'icona per i link esterni sulle immagine per il blocco card con immagine.
50
+ - L'etichetta dei campi nel blocco Form va a capo se troppo lunga.
51
+ - Lo stile di testo "blockquote" dell'editor in versione scura ha sempre un testo a contrasto garantendone la leggibilità.
52
+
44
53
  ## Versione 12.6.5 (04/11/2025)
45
54
 
46
55
  ### Fix
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": "12.6.5",
5
+ "version": "12.6.6",
6
6
  "main": "src/index.js",
7
7
  "repository": {
8
8
  "type": "git",
@@ -152,7 +152,7 @@
152
152
  "volto-dropdownmenu": "4.1.3",
153
153
  "volto-editablefooter": "5.1.7",
154
154
  "volto-feedback": "0.7.2",
155
- "volto-form-block": "3.13.1",
155
+ "volto-form-block": "3.13.2",
156
156
  "volto-gdpr-privacy": "2.2.12",
157
157
  "volto-google-analytics": "2.0.0",
158
158
  "volto-multilingual-widget": "3.2.1",
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-11-04'
230
+ releaseDate: '2025-11-06'
231
231
  softwareType: standalone/web
232
- softwareVersion: 12.6.5
232
+ softwareVersion: 12.6.6
233
233
  url: 'https://github.com/italia/design-comuni-plone-theme'
234
234
  usedBy:
235
235
  - ASP Comuni Modenesi Area Nord
@@ -51,6 +51,7 @@ const UniversalLink = ({
51
51
  };
52
52
  //questo perchè il provider di intl non è sempre definito, ad esempio in slate_wysiwyg_box (Slate RichTextWidget)
53
53
  let intl = null;
54
+
54
55
  try {
55
56
  intl = useIntl();
56
57
  Object.keys(translations).forEach(
@@ -59,7 +59,7 @@ const Field = ({
59
59
  description,
60
60
  name,
61
61
  field_type,
62
- required,
62
+ field_id,
63
63
  input_values,
64
64
  value,
65
65
  onChange,
@@ -71,7 +71,9 @@ const Field = ({
71
71
  id,
72
72
  reactSelect,
73
73
  autocomplete,
74
+ ...props
74
75
  }) => {
76
+ const required = props[`required-${field_id}`];
75
77
  const intl = useIntl();
76
78
  const Select = reactSelect.default;
77
79
 
@@ -100,7 +102,6 @@ const Field = ({
100
102
  static_text_value = fromHtml(value);
101
103
  } //per retrocompatibilità con il vecchio widget che usava draftjs
102
104
  }
103
-
104
105
  return (
105
106
  <div className="field">
106
107
  {field_type === 'text' && (
@@ -103,7 +103,7 @@ const Sidebar = ({
103
103
  {data.subblocks &&
104
104
  data.subblocks.map((subblock, index) => {
105
105
  return (
106
- <div key={'subblock' + index}>
106
+ <div key={'subblock' + subblock.id}>
107
107
  <Accordion.Title
108
108
  active={selected === index}
109
109
  index={index}
@@ -456,8 +456,10 @@ export default (props) => {
456
456
  props?.field_type !== 'static_text'
457
457
  ? ['autocomplete']
458
458
  : []),
459
- ...(props?.field_type === 'static_text' ? [] : ['required']),
460
- 'unique',
459
+ ...(props?.field_type === 'static_text'
460
+ ? []
461
+ : [`required-${props?.field_id}`]),
462
+ `unique-${props?.field_id}`,
461
463
  'visibility_conditions',
462
464
  ],
463
465
  },
@@ -501,13 +503,13 @@ export default (props) => {
501
503
  ),
502
504
  choices: autocompleteValues,
503
505
  },
504
- required: {
506
+ [`required-${props?.field_id}`]: {
505
507
  title: intl.formatMessage(messages.field_required),
506
508
  type: 'boolean',
507
509
  default: false,
508
510
  description: intl.formatMessage(messages.field_required_info_text),
509
511
  },
510
- unique: {
512
+ [`unique-${props?.field_id}`]: {
511
513
  title: intl.formatMessage(messages.field_unique_title),
512
514
  description: intl.formatMessage(messages.field_unique_description),
513
515
  type: 'boolean',
@@ -166,6 +166,11 @@
166
166
  }
167
167
  }
168
168
  }
169
+ a.img-wrapper.with-external-link-icon {
170
+ .external-link {
171
+ display: none;
172
+ }
173
+ }
169
174
  }
170
175
 
171
176
  @include media-breakpoint-only(lg) {
@@ -90,6 +90,10 @@
90
90
  }
91
91
  }
92
92
 
93
+ legend {
94
+ white-space: pre-wrap;
95
+ }
96
+
93
97
  .bootstrap-select-wrapper {
94
98
  > label {
95
99
  position: unset;
@@ -7,4 +7,10 @@ body.public-ui {
7
7
  font-size: 18px;
8
8
  line-height: 1.555;
9
9
  }
10
+
11
+ blockquote.blockquote-card.dark p {
12
+ // unless there's a specific customization, .blockquote-card.dark is always bg $primary
13
+ // this ensures the text is always readable
14
+ color: color-contrast($primary);
15
+ }
10
16
  }