@plone/volto 16.31.8 → 16.31.10

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/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  }
10
10
  ],
11
11
  "license": "MIT",
12
- "version": "16.31.8",
12
+ "version": "16.31.10",
13
13
  "repository": {
14
14
  "type": "git",
15
15
  "url": "git@github.com:plone/volto.git"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plone/volto-slate",
3
- "version": "16.31.8",
3
+ "version": "16.31.10",
4
4
  "description": "Slate.js integration with Volto",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -3,7 +3,7 @@
3
3
  * TODO Enrich with features of user control panel. Then replace user control panel.
4
4
  */
5
5
  import React, { useEffect } from 'react';
6
- import { find, toNumber } from 'lodash';
6
+ import { find } from 'lodash';
7
7
  import { Portal } from 'react-portal';
8
8
  import { useHistory } from 'react-router';
9
9
  import { Link, useLocation } from 'react-router-dom';
@@ -38,7 +38,7 @@ const UserGroupMembershipPanel = () => {
38
38
  (state) => state.controlpanels.systeminformation,
39
39
  );
40
40
  const can_use_group_membership_panel = systeminformation
41
- ? toNumber(systeminformation?.plone_restapi_version.slice(0, 4)) >= 8.24
41
+ ? parseFloat(systeminformation?.plone_restapi_version.slice(0, 4)) >= 8.24
42
42
  : false;
43
43
  const actions = useSelector((state) => state.actions?.actions ?? {});
44
44
  const ploneSetupAction = find(actions.user, {
@@ -9,6 +9,7 @@ const HEADERS = [
9
9
  'content-type',
10
10
  'x-sendfile',
11
11
  'x-accel-redirect',
12
+ 'x-robots-tag',
12
13
  ];
13
14
 
14
15
  function filesMiddlewareFn(req, res, next) {
@@ -7,6 +7,7 @@ const HEADERS = [
7
7
  'cache-control',
8
8
  'x-sendfile',
9
9
  'x-accel-redirect',
10
+ 'x-robots-tag',
10
11
  ];
11
12
 
12
13
  function imageMiddlewareFn(req, res, next) {