io-sanita-theme 2.8.0 → 2.9.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,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.9.0](https://github.com/RedTurtle/io-sanita-theme/compare/2.8.0...2.9.0) (2025-03-21)
4
+
5
+ ### Maintenance
6
+
7
+ * updated volto-feedback ([13f4bd5](https://github.com/RedTurtle/io-sanita-theme/commit/13f4bd553c1ee2bcb837b4cb37acea95a69bb6ff))
8
+
3
9
  ## [2.8.0](https://github.com/RedTurtle/io-sanita-theme/compare/2.7.0...2.8.0) (2025-03-19)
4
10
 
5
11
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "io-sanita-theme",
3
- "version": "2.8.0",
3
+ "version": "2.9.0",
4
4
  "description": "io-sanita-theme: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "license": "MIT",
@@ -100,8 +100,8 @@
100
100
  "volto-data-grid-widget": "2.3.1",
101
101
  "volto-dropdownmenu": "4.1.4",
102
102
  "volto-editablefooter": "5.1.9",
103
- "volto-feedback": "0.5.3",
104
- "volto-feedback-italia": "1.0.6",
103
+ "volto-feedback": "0.6.0",
104
+ "volto-feedback-italia": "1.0.7",
105
105
  "volto-form-block": "3.10.2",
106
106
  "volto-form-block-italia": "1.0.5",
107
107
  "volto-gdpr-privacy": "2.2.14",
@@ -244,6 +244,21 @@ export default function applyConfig(config) {
244
244
  className="ms-1 external-link"
245
245
  />*/,
246
246
  },
247
+ 'volto-feedback': {
248
+ ...config.settings['volto-feedback'],
249
+ feedbackEnabledNonContentRoutes: [
250
+ ...(config.settings['volto-feedback']
251
+ ?.feedbackEnabledNonContentRoutes ?? []),
252
+ {
253
+ path: AGGREGATION_PAGE_TIPOLOGIA_UTENTE,
254
+ feedbackTitle: null /*usa il path per sapere quale tipologia è*/,
255
+ },
256
+ {
257
+ path: AGGREGATION_PAGE_ARGOMENTO,
258
+ feedbackTitle: null /*usa il path per sapere quale tipologia è*/,
259
+ },
260
+ ],
261
+ },
247
262
  videoAllowExternalsDefault: false,
248
263
  };
249
264
 
@@ -32,15 +32,18 @@ const Footer = ({ intl }) => {
32
32
  contentType = null;
33
33
  }
34
34
 
35
- const NoFeedbackFormFor = []; //['Plone Site', 'LRF', 'Subsite'];
36
- const feedbackFormEnabled =
37
- config.settings.siteProperties.enableFeedbackForm &&
38
- contentType &&
39
- NoFeedbackFormFor.indexOf(contentType) < 0;
35
+ const NoFeedbackFormFor =
36
+ config.settings.siteProperties.noFeedbackFormFor || [];
37
+ const showFeedbackForm = config.settings.siteProperties
38
+ ?.enableNoFeedbackFormFor
39
+ ? contentType &&
40
+ !noFeedbackFormFor.includes(contentType) &&
41
+ config.settings.siteProperties.enableFeedbackForm
42
+ : true;
40
43
 
41
44
  let content = (
42
45
  <>
43
- {feedbackFormEnabled && <FeedbackForm contentType={contentType} />}
46
+ {showFeedbackForm && <FeedbackForm contentType={contentType} />}
44
47
 
45
48
  <SubsiteFooter />
46
49
  <footer className="it-footer" id="footer">
@@ -1,5 +1,5 @@
1
1
  .siteroot,
2
- body.public-ui.contenttype-lrf {
2
+ body.public-ui.contenttype-lr:not(.section-search) {
3
3
  .block-editor-title,
4
4
  .documentFirstHeading,
5
5
  #briciole {
@@ -7,7 +7,7 @@ body.public-ui.contenttype-lrf {
7
7
  }
8
8
  }
9
9
 
10
- body.subsite.subsite-root {
10
+ body.subsite.subsite-root:not(.section-search) {
11
11
  &,
12
12
  .public-ui {
13
13
  .documentFirstHeading,