@plone/volto 17.0.0 → 17.0.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/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  }
10
10
  ],
11
11
  "license": "MIT",
12
- "version": "17.0.0",
12
+ "version": "17.0.1",
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": "17.0.0",
3
+ "version": "17.0.1",
4
4
  "description": "Slate.js integration with Volto",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -40,7 +40,7 @@ test('renders a view video component with placeholder', () => {
40
40
  '@type': 'video',
41
41
  url: 'https://youtu.be/KqjeO_ekW3g',
42
42
  preview_image:
43
- 'https://github.com/plone/volto/raw/master/logos/volto-colorful.png',
43
+ 'https://github.com/plone/volto/raw/main/logos/volto-colorful.png',
44
44
  }}
45
45
  />,
46
46
  );
@@ -87,6 +87,10 @@ const messages = defineMessages({
87
87
  id: 'Permissions have been updated successfully',
88
88
  defaultMessage: 'Permissions have been updated successfully',
89
89
  },
90
+ assignNewRoles: {
91
+ id: 'Assign the {role} role to {entry}',
92
+ defaultMessage: 'Assign the {role} role to {entry}',
93
+ },
90
94
  });
91
95
 
92
96
  /**
@@ -419,6 +423,20 @@ class SharingComponent extends Component {
419
423
  )}
420
424
  {typeof entry.roles[role.id] === 'boolean' && (
421
425
  <Checkbox
426
+ name={this.props.intl.formatMessage(
427
+ messages.assignNewRoles,
428
+ {
429
+ entry: entry.title,
430
+ role: role.id,
431
+ },
432
+ )}
433
+ aria-label={this.props.intl.formatMessage(
434
+ messages.assignNewRoles,
435
+ {
436
+ entry: entry.title,
437
+ role: role.id,
438
+ },
439
+ )}
422
440
  onChange={this.onChange}
423
441
  value={`${entry.id}:${role.id}`}
424
442
  checked={entry.roles[role.id]}
@@ -1,10 +1,14 @@
1
1
  /* eslint no-console: 0 */
2
+ import dns from 'dns';
2
3
  import http from 'http';
3
4
 
4
5
  import app from './server';
5
6
  import debug from 'debug';
6
7
 
7
8
  export default function server() {
9
+ // If DNS returns both ipv4 and ipv6 addresses, prefer ipv4
10
+ dns.setDefaultResultOrder('ipv4first');
11
+
8
12
  const server = http.createServer(app);
9
13
  // const host = process.env.HOST || 'localhost';
10
14
  const port = process.env.PORT || 3000;
package/src/storybook.jsx CHANGED
@@ -298,7 +298,7 @@ const initialState = () => ({
298
298
  entityRanges: [],
299
299
  inlineStyleRanges: [],
300
300
  key: '55n44',
301
- text: 'You can use this site to test Volto. It runs on the master branch of Volto using latest Plone 5.2 Backend running on Python 3.',
301
+ text: 'You can use this site to test Volto. It runs on the main branch of Volto using latest Plone 5.2 Backend running on Python 3.',
302
302
  type: 'unstyled',
303
303
  },
304
304
  ],
@@ -886,7 +886,7 @@ const initialState = () => ({
886
886
  entityRanges: [],
887
887
  inlineStyleRanges: [],
888
888
  key: '55n44',
889
- text: 'You can use this site to test Volto. It runs on the master branch of Volto using latest Plone 5.2 Backend running on Python 3.',
889
+ text: 'You can use this site to test Volto. It runs on the main branch of Volto using latest Plone 5.2 Backend running on Python 3.',
890
890
  type: 'unstyled',
891
891
  },
892
892
  ],